@font-face{
    font-family: 'Inter';
    src: url('../fonts/Inter/Inter-Regular.ttf');
}

@font-face{
    font-family: 'Inter';
    src: url('../fonts/Inter/Inter-ExtraLight.ttf') format('truetype');
    font-weight: 200;
}

@font-face{
    font-family: 'Inter';
    src: url('../fonts/Inter/Inter-Light.ttf') format('truetype');
    font-weight: 300;
}

@font-face{
    font-family: 'Inter';
    src: url('../fonts/Inter/Inter-Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face{
    font-family: 'Inter';
    src: url('../fonts/Inter/Inter-Medium.ttf') format('truetype');
    font-weight: 500;
}

@font-face{
    font-family: 'Inter';
    src: url('../fonts/Inter/Inter-SemiBold.ttf') format('truetype');
    font-weight: 600;
}

@font-face{
    font-family: 'Inter';
    src: url('../fonts/Inter/Inter-Bold.ttf') format('truetype');
    font-weight: 700;
}

@font-face{
    font-family: 'Inter';
    src: url('../fonts/Inter/Inter-ExtraBold.ttf') format('truetype');
    font-weight: 800;
}

@font-face{
    font-family: 'Inter';
    src: url('../fonts/Inter/Inter-Black.ttf') format('truetype');
    font-weight: 900;
}

:root{
    --track-off-bg: var(--surface-surface-bg);
    --track-on-bg: var(--surface-brand-surface-brand-primary);
    --track-border: var(--surface-surface-tertiary);

    --thumb-bg: #fff;
    --thumb-shadow: 0 1px 1px rgba(0,0,0,.08), 0 3px 6px rgba(0,0,0,.12);
    --focus-ring: 0 0 0 3px rgba(52,199,89,.35);
    --transition-fast: .2s cubic-bezier(.24,0,.5,1);
    --transition-snap: .35s cubic-bezier(.54,1.6,.5,1);
}

body:not(.sb-expanded) {
    --track-width: 38px;
    --track-height: 22px;
    --thumb-size: 18px;
}

body.sb-expanded {
    --track-width: 42px;
    --track-height: 22px;
    --thumb-size: 18px;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

html, body {
    font-size: var(--font-s);
    color: var(--text-text-secondary);
    font-style: normal;
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: var(--surface-surface-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-surface-tertiary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--surface-surface-tertiary);
}

/* Firefox */
* {
    scrollbar-width: thin; /* makes it small */
    scrollbar-color: var(--surface-surface-tertiary) var(--surface-surface-bg);
}


body, input, select, option {
    background-color: var(--surface-surface-bg);
}

#footer{
    background-color: var(--surface-surface-primary);
}

a, .a {
    all: unset;
    display: inline-block;
}

a:hover, .a:hover{
    text-decoration: underline;
}

.btn:hover{
    text-decoration: none;
}

a, .a, button, .tooltip, select{
    cursor: pointer;
}

.btn-light, .input-group{
    border: 1px solid var(--surface-surface-tertiary);
}

nav ul > li > ul > li:last-child:before, .input-group textarea {
    background-color: var(--surface-surface-bg);
}

.card, nav ul li a.active, nav ul li a:hover, nav ul li a:focus{
    background-color: var(--surface-surface-primary);
}

.btn, .input-group, .input-group input, .input-group textarea, table tfoot button, button, select,
 .tooltip-text,  .important-icon,  .table {
    border-radius: 8px;
}

/* Font sizes */
.tooltip .tooltiptext, .input-group > label, .input-group p {
    font-size: var(--font-xs);
}

.breadcrumb ul, table tfoot button, button, .btn {
    font-size: var(--font-s);
}

 .input-group textarea, .important-icon{
    font-size: var(--font-m);
}

.breadcrumb i{
    font-size: var(--font-l);
}

/* Buttons */
button, .btn {
    padding: 10px 14px;
    font-weight: 600;
    justify-content: center !important;
    text-align: center;
    border: 1px solid transparent;
    color: var(--text-text-body);
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.btn + .btn, button + button {
    margin-left: 5px;
}

.btn-primary {
    background-color: var(--surface-brand-surface-brand-primary);
    box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--surface-brand-surface-brand-quaternary);
}

.btn-primary:active {
    background-color: var(--surface-brand-surface-brand-click);
}

.btn-light {
    background-color: var(--surface-button-surface-button-primary);
    color: var(--surface-button-text-button-secondary);
    border: 1px solid var(--surface-surface-tertiary);
}

.btn-light:hover {
    background-color: var(--surface-button-surface-button-hover);
}

.btn-light:active {
    background-color: var(--surface-button-surface-button-focused);
}

.btn-secondary {
    background-color: var(--surface-button-surface-secondary-button);
    border: 1px solid  var(--surface-button-surface-secondary-outline);
    color: var(--surface-button-text-button-brand);
}

.btn-secondary:hover {
    background-color: var(--surface-button-surface-secondary-button-hover);
    border: 1px solid  var(--surface-button-surface-secondary-outline-hover);
    color: var(--surface-button-text-button-brand-hover);
}

.btn-secondary.active {
    background-color: var(--surface-button-surface-secondary-button-active);
    border: 1px solid  var(--surface-button-surface-secondary-outline);
    color: var(--surface-button-text-button-brand-active);
}

.btn-secondary.active:hover {
    background-color: var(--surface-button-surface-secondary-button-hover);
    color: var(--surface-button-text-button-brand-hover);
}

/* Breadcrumb */
.breadcrumb i {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--surface-brand-surface-brand-tertiary);
    color: var(--surface-brand-surface-brand-primary);
    border-radius: 100%;
}

.breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    align-items: center;
    gap: 5px 0;
}

.breadcrumb ul li {
    display: flex;
    align-items: center;
}

.breadcrumb ul li a {
    color: var(--text-text-body);
    padding: 4px 8px;
}

.breadcrumb ul li a:hover {
    color: var(--surface-brand-surface-brand-primary);
}

.breadcrumb ul li:first-child a{
    padding: 0;
}

.breadcrumb ul li a:first-child:hover {
    text-decoration: none;
}

.breadcrumb ul li:last-child:not(:only-child) a {
    border-radius: 4px;
    background: var(--surface-surface-primary);
    color: var(--text-text-secondary);
    box-shadow: 0px 1px 2px 0px #2323230D;
}

.breadcrumb ul li:last-child:not(:only-child) a:hover {
    background-color: var(--surface-surface-tertiary);
}

.breadcrumb ul li::after {
    content: "\e9e9";
    font-family: 'munnichit-icons' !important;
    color: var(--surface-surface-tertiary);
    margin: 0 10px;
    display: inline-block;
}

.breadcrumb ul li:last-child::after {
    display: none;
}

.breadcrumb ul:has(> li:last-child + li) li:last-child {
    padding: 6px 8px;
    background: var(--surface-surface-primary);
    color: var(--text-text-secondary);
    border-radius: 6px;
}

/* Dropup */
#dropup {
    right: 0;
    bottom: 100%;
    transform: translateX(100%);
    background: var(--grey-800);
    padding: 10px 60px 10px 15px;
}

#dropup.dropup-active {
    display: block !important;
}

#dropup ul li a {
    color: var(--white);
}

/* Sidebar */
aside {
    inset: 0 auto 0 0;
    width: var(--sb-width);
    transition: width 0.5s ease-in-out;
    border-right: 1px solid var(--surface-surface-tertiary);
}

.sb-expanded nav span {
    display: block !important;
}

.sb-expanded nav a {
    display: flex;
}

.sb-expanded nav i{
    display: block !important;
}

.sb-expanded .logo-icon {
    display: none;
}

.sb-expanded nav ul li .mnh-icon-chevron-right {
    display: block;
}

.sb-expanded .sidebar-logo .logo-text {
    display: inline-block !important;
}

.sb-expanded ul { 
    max-width: 100%!important;
}

.collapse{
    cursor: col-resize;
}

.collapsed-logo {
    background-image: var(--logo-icon);
    width: 38px;
    background-size: contain;
    height: 38px;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
}

.expanded-logo {
    background-image: var(--logo-img-bg);
    width: 168px;
    background-size: contain;
    height: 29px;
    flex-shrink: 0;
    background-repeat: no-repeat;
}

.collapse-icon { display: inline-block; }
.expand-icon   { display: none; }

.sb-expanded .collapse-icon { display: inline-block; }
.sb-expanded .expand-icon   { display: none;  }
.sb-expanded .collapsed-logo { display: none !important; }

body:not(.sb-expanded) .expand-icon   { display: inline-block; }
body:not(.sb-expanded) .expanded-logo { display: none !important; }

body:not(.sb-expanded) .brand { justify-content: start !important; }
body:not(.sb-expanded) .brand [data-collapse-desktop] { display: none !important; }
body:not(.sb-expanded) .brand:hover [data-collapse-desktop] { display: flex !important; }
body:not(.sb-expanded) .collapse-icon { display: none; }

.brand:hover .collapsed-logo { display: none !important; }

/* Navigation */
nav .active-parent:before {
    background-color: var(--surface-surface-tertiary);
}

nav > ul > li > ul > li a {
    color: var(--text-text-quaternary);
}

nav a {
    color: var(--text-text-secondary);
}

nav i {
    color: var(--surface-surface-quaternary);
}

nav a.active i,
nav a:hover i {
    color: var(--text-brand-text-brand-primary);
}

nav ul > li > ul::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 15px;
    width: 2px;
    height: calc(100% - 30px);
    background-color: var(--surface-surface-tertiary);
    z-index: 10;
}

nav ul > li > ul > li:last-child:before {
    content: "";
    position: absolute;
    left: 18px;
    top: 20px;
    width: 5px;
    height: calc(100% - 35px);
}

nav ul li span {
    margin-right: auto;
}

/* Tooltip */
.tooltip {
    margin-left: 5px;
    display: inline-block;
    position: relative;
    font-weight: 400;
    cursor: help;
}

.tooltip:before {
    content: "\eb44";
    font-family: 'munnichit-icons' !important;
}

.tooltip-text {
    position: fixed;
    background-color: var(--grey-800);
    color: var(--white);
    padding: 11px 14px 12px 14px;
    border-radius: 4px;
    z-index: 9999;
    max-width: 400px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: normal;
    transition: opacity 0.2s ease;
    opacity: 0;
    visibility: hidden;
}

.tooltip-arrow {
    position: absolute;
    width: 8px;
    height: 8px;
    background: inherit;
    transform: rotate(45deg);
}

.tooltip-text.visible {
    opacity: 1;
    visibility: visible;
}

.tooltip.warning .tooltip-text {
    background-color: var(--surface-warning-surface-primary);
    color: var(--text-warning-text-primary);
}

.tooltip.warning .tooltip-arrow {
    background-color: var(--surface-warning-surface-primary);
}

mark {
	background-color: yellow;
	color: black;
	padding: 0 2px;
	border-radius: 2px;
}

/* Inputs */
label{
    color: var(--text-text-tertiary);
    font-weight: 600;
}

/* Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

.input-group {
    color: var(--text-text-primary);
    box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
    display: flex;
    width: 100%;
}

.input-group span {
    display: flex;
    align-items: center;
    padding: 0 14px;
    white-space: nowrap;
    background: var(--surface-surface-primary);
    color: var(--text-text-tertiary);
}

.input-group input, .input-group textarea, .input-group select {
    border: 0;
    padding: 10px 14px;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    position: relative;
    font-size: var(--font-s);
    color: var(--text-text-primary);
}

.input-group span:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    border-right: 1px solid var(--surface-surface-tertiary);
}

.input-group span:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-left: 1px solid var(--surface-surface-tertiary);
}

.input-group > span:first-child + input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group > input + span {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group:has(span:first-child):not(:has(span:last-child)) input {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.input-group:has(span:last-child):not(:has(span:first-child)) input {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.input-group:has(span:first-child) input,
.input-group:has(span:last-child) input {
    border-radius: 0;
}

.input-group input::placeholder ,.input-group textarea::placeholder{
    color: var(--surface-surface-quaternary);
    font-family: var(--font-family);
}

.input-group:hover{
    border: 1px solid var(--surface-brand-surface-brand-secondary);
    box-shadow: 0 1px 2px 0 var(--surface-brand-surface-brand-tertiary);
    outline: 1px solid var(--surface-brand-surface-brand-secondary);
}

.input-group input:focus,
.input-group input:focus-visible,
.input-group textarea:focus,
.input-group textarea:focus-visible{
    box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05), 0 0 0 4px var(--surface-brand-surface-brand-tertiary);
    outline: 1px solid var(--surface-brand-surface-brand-secondary);
}

.input-group input:disabled, .input-group textarea:disabled {
    color: var(--text-text-body);
    background: var(--surface-surface-primary);
}

.input-group:has(input:disabled):hover {
    border: 1px solid var(--surface-surface-tertiary);
    box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
    outline: none;
}

.input-group.error{
    border: 1px solid var(--surface-error-surface-secondary);
}

.muted{
    font-weight: 400;
    margin-top: 4px;
    font-size: var(--font-xs);
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px !important;
    background: var(--surface-surface-bg) url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="6" height="3" viewBox="0 0 6 3" fill="none"><path d="M1 0.5L3 2.5L5 0.5" stroke="grey" stroke-width="0.5" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat right 10px center;
    background-size: 16px;
}

select[multiple]{
    background: none;
    padding: 0;
}

select:focus {
    box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05), 0 0 0 4px var(--surface-brand-surface-brand-tertiary);
    outline: 1px solid var(--surface-brand-surface-brand-secondary);
}

/* Options */
select option {
    padding: 10px;
    color: var(--text-text-primary);
}

/* Radio Buttons */
.radio.disabled {
    pointer-events: none;
}

.radio:not(.disabled) label::after{
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--surface-brand-surface-brand-primary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.radio:hover{
    outline-width: 1px;
}

.radio:hover, .radio.checked:not(.disabled) {
    border-color: var(--surface-brand-surface-brand-primary);
    outline:1px solid var(--surface-brand-surface-brand-primary);
}

.radio:not(.disabled) input[type="radio"]:checked + label{
    background: var(--surface-surface-bg);
    border: 2px solid var(--surface-brand-surface-brand-primary);
}

.radio input[type="radio"]:checked:not(.disabled) + label::after{
    opacity: 1;
}

/* Radio Success*/
.radio.success label::after{
   background: var(--surface-success-surface-secondary);
}

.radio.success:hover, .radio.success.checked{
    border-color: var(--surface-success-surface-secondary) ;
    outline: 1px solid var(--surface-success-surface-secondary) ;
}

.radio.success input[type="radio"]:checked + label{
    border: 2px solid var(--surface-success-surface-secondary);
}
.radio.success > div:first-child > span:has(i) {
    background-color: var(--surface-success-surface-primary);
    color:var(--text-success-text-primary);
}

/* Radio warning*/
.radio.warning label::after{
   background: var(--surface-warning-surface-secondary);
}

.radio.warning:hover, .radio.warning.checked{
    border-color: var(--surface-warning-surface-secondary) ;
    outline: 1px  solid var(--surface-warning-surface-secondary) ;
}

.radio.warning input[type="radio"]:checked + label{
    border: 2px solid var(--surface-warning-surface-secondary);
}

.radio.warning > div:first-child > span:has(i) {
    background-color: var(--surface-warning-surface-primary);
    color:var(--text-warning-text-primary);
}
/* Checkbox */
.checkbox > span:first-of-type{
    border-radius:4px;
}

.checkbox:has(div):hover,
.checkbox.checked:has(div){
    border-color: var(--surface-brand-surface-brand-primary);
    outline:1px solid var(--surface-brand-surface-brand-primary);
}

.checkbox:hover > span:first-of-type,
.checkbox.checked > span:first-of-type{
    border: 1px solid var(--surface-brand-surface-brand-primary);
    background: var(--surface-brand-surface-brand-tertiary);
}

/* Checkmark */
.checkbox > span:first-of-type::before{
    content: '';
    position: absolute;
    top: 1px;
    left: 4px;
    width: 4px;
    background-color: var(--surface-brand-surface-brand-tertiary);
    height: 8px;
    border: 2px solid var(--surface-brand-surface-brand-primary);
    border-width: 0 2px 2px 0 ;
    transform: rotate(45deg);
    opacity: 0;
}

.checkbox.checked > span:first-of-type::before{
    opacity: 1 !important;
}

.checkbox input[type="checkbox"] {
    position: absolute;
    bottom: 50%;
    left: 25px;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.checkbox.disabled, .checkbox input:disabled + span {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Success checkbox */
.checkbox.success:has(div):hover,
.checkbox.success.checked:has(div){
    border-color: var(--surface-success-surface-secondary);
    outline:1px solid var(--surface-success-surface-secondary);
}
.checkbox.success:hover > span:first-of-type,
.checkbox.success.checked > span:first-of-type{
    border: 1px solid var(--surface-success-surface-secondary);
    background: var(--surface-success-surface-primary);
}
.checkbox.success > span:first-of-type::before{
    background: var(--surface-success-surface-primary);
    border-color: var(--surface-success-surface-secondary);
}

/* Warning checkbox */
.checkbox.warning:has(div):hover,
.checkbox.warning.checked:has(div){
    border-color: var(--surface-warning-surface-secondary);
    outline:1px solid var(--surface-warning-surface-secondary);
}
.checkbox.warning:hover > span:first-of-type,
.checkbox.warning.checked > span:first-of-type{
    border: 1px solid var(--surface-warning-surface-secondary);
    background: var(--surface-warning-surface-primary);
}
.checkbox.warning > span:first-of-type::before{
    background: var(--surface-warning-surface-primary);
    border-color: var(--surface-warning-surface-secondary);
}

.card span:first-of-type{
    color: var(--text-text-primary);
}

/* Important card */
.important-card{
    border-color: var(--surface-brand-surface-brand-subtle);
    color: var(--text-brand-text-brand-secondary,);
}

.important-card a{ font-weight:600; }
.important-card i{ color: var(--surface-brand-surface-brand-secondary); }

/* Upload & link cards*/

.upload-card{
    border-color:var(--surface-brand-surface-brand-subtle) !important;
}

.link-card:hover{
    box-shadow: 0 1px 3px 0 rgba(16, 24, 40, 0.10), 0 1px 2px 0 rgba(16, 24, 40, 0.06);
}

.upload-card i,.link-card i{
    align-self: center;
    color: var(--surface-surface-quaternary);
    background: var(--surface-surface-primary);
    align-content: center;
    width: 40px;
    height: 40px;
}

.pill{
    padding: 6px 10px 6px 20px;
    border-radius: 16px;
    position: relative;
    font-weight: 500;
    display: block;
    float: left;
}

.pill:before{
    content: "";
    display: block;
    width: 5px;
    height: 5px;
    position: absolute;
    border-radius: 100%;
    top: calc(50% - 2.5px);
    left: 8px;
}

.pill.bg-light:before{ background: var(--surface-surface-quaternary); }
.pill.bg-success:before{ background: var(--surface-success-surface-secondary); }
.pill.bg-danger:before{ background: var(--surface-error-surface-secondary); }
.pill.bg-warning:before{ background: var(--surface-warning-surface-secondary);}

.alert{
    padding: 10px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 var(--dark-200);
}

/* Tabs */
#tab-container{
    margin-bottom: 32px;
}

#tabs{
    border-bottom: 1px solid var(--surface-surface-tertiary);
    width: 100%;
}

#tabs a{
    padding: 10px 0;
    margin: 0 5px;
    font-weight: 600;
    text-align: center;
    border: 1px solid transparent;
    color: var(--surface-button-text-button-secondary);
    border-bottom: 2px solid transparent;
}

#tabs a.active, #tabs a:hover{
    border-bottom: 2px solid var(--surface-brand-surface-brand-primary);
    color: var(--surface-brand-surface-brand-primary);
    text-decoration: none;
}

#tabs a.active i, #tabs a:hover i{
    background: var(--surface-brand-surface-brand-primary);
    color: var(--surface-surface-bg);
}

#tabs a i{
    background: var(--surface-surface-secondary);
    color: var(--surface-surface-quaternary);
    padding: 5px;
    border-radius: 100%;
    margin-right: 5px;
}

#tabs a:first-child {
    margin-left: 0;
}

#tabs a:last-child {
    margin-right: 0;
}

/* Table */
.table-parent{
    box-shadow: 0 1px 3px #1018280F;
    border: 1px solid var(--surface-surface-tertiary);
}
.table{
    overflow-x: auto;
    overflow-y: visible;
}

table{
    width:100%;
    max-width: 100%;
    border-collapse: collapse;
    background-color: transparent;
}

table th, table td{
    padding: 15px 20px;
}

table thead th {
    color: var(--text-text-primary);
    background-color: var(--surface-surface-primary);
}

table td{
    border-top: 1px solid var(--surface-surface-secondary);
}

table tbody tr:nth-child(even) {
    background: var(--surface-surface-light);
}

table tbody tr:nth-child(even) > th.sticky_actions,
table tbody tr:nth-child(even) > td.sticky_actions {
    background-color: var(--surface-surface-light);
}
table tbody tr:nth-child(odd) > th.sticky_actions {
    background-color: var(--surface-surface-primary);
}
table tbody tr:nth-child(odd) > td.sticky_actions {
    background-color: var(--surface-surface-bg);
}

table.nested-table tbody > tr:nth-child(even),
table.nested-table tbody > tr:nth-child(even) > th,
table.nested-table tbody > tr:nth-child(even) > td {
    background: transparent;
    background-color: transparent;
}

table.nested-table tbody > tr.row-parent:nth-child(even of .row-parent),
table.nested-table tbody > tr.row-parent:nth-child(even of .row-parent) > th,
table.nested-table tbody > tr.row-parent:nth-child(even of .row-parent) > td,
table.nested-table tbody > tr.row-parent:nth-child(even of .row-parent) + tr.row-child,
table.nested-table tbody > tr.row-parent:nth-child(even of .row-parent) + tr.row-child > th,
table.nested-table tbody > tr.row-parent:nth-child(even of .row-parent) + tr.row-child > td,
table.nested-table tbody > tr.row-parent:nth-child(even of .row-parent) > th.sticky_actions,
table.nested-table tbody > tr.row-parent:nth-child(even of .row-parent) > td.sticky_actions,
table.nested-table tbody > tr.row-parent:nth-child(even of .row-parent) + tr.row-child > th.sticky_actions,
table.nested-table tbody > tr.row-parent:nth-child(even of .row-parent) + tr.row-child > td.sticky_actions {
    background-color: var(--surface-surface-light);
}

table.nested-table tbody > tr:not(.row-parent):not(.row-child) > th.sticky_actions,
table.nested-table tbody > tr.row-parent:nth-child(odd of .row-parent) > th.sticky_actions,
table.nested-table tbody > tr.row-parent:nth-child(odd of .row-parent) + tr.row-child > th.sticky_actions {
    background-color: var(--surface-surface-primary);
}
table.nested-table tbody > tr:not(.row-parent):not(.row-child) > td.sticky_actions,
table.nested-table tbody > tr.row-parent:nth-child(odd of .row-parent) > td.sticky_actions,
table.nested-table tbody > tr.row-parent:nth-child(odd of .row-parent) + tr.row-child > td.sticky_actions {
    background-color: var(--surface-surface-bg);
}

th {
    text-align: inherit;
}

th.sticky_actions,
td.sticky_actions {
    width: 10%;
    position: sticky;
    z-index: 4;
    right: 0;
}

td.sticky_actions span {
    width: max-content;
}

th.sticky_actions {
    text-align: right;
}

td.sticky_actions {
    vertical-align: top;
}

.table.scrolling th.sticky_actions,
.table.scrolling td.sticky_actions {
    filter: drop-shadow(-1px 0 0 var(--surface-surface-secondary));
}

.actions{
    color: var(--text-text-body);
    font-size: 18px;
}

.actions a:hover{
    text-decoration: none;
    color: var(--text-brand-text-brand-primary);
}

.actions a + a{
    margin-left: 20px;
}

.dropdown-content {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.2s ease-out 0.2s;
}

.dropdown.active .dropdown-content {
    opacity: 1;
    max-height: 100%;
}

.dropdown .mnh-icon-chevron-right { transition: 0.2s; }
.dropdown.active > .mnh-icon-chevron-right { transform: rotate(90deg); }

.dropdown-list {
    max-height: 170px;
    overflow-y: auto;
    top: 45px;
}

.dropdown-list div {
    padding: 10px 14px;
    cursor: pointer;
}

.dropdown-item.active {
    background-color: var(--surface-surface-primary);
}

.dropdown-list div:hover{
    background-color: var(--surface-surface-primary);
}

/* Toast */
#toast-container {
    position: fixed;
    top: 20px;
    right: 50%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    max-width: 300px;
    transform: translateX(150px);
}

.toast {
    --delay: 7s;
    min-width: 250px;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(16, 24, 40, 0.10), 0 1px 2px 0 rgba(16, 24, 40, 0.06);
    opacity: 0;
    transform: translateX(100%);
    animation: slideIn 0.5s forwards, fadeOut 0.5s ease-out var(--delay) forwards;
}

.toast.success {
    background: var(--surface-success-surface-primary);
    color: var(--text-success-text-primary);
}

.toast.warning {
    background: var(--surface-warning-surface-primary);
    color: var(--text-warning-text-primary);
}

.toast.danger {
    background: var(--surface-error-surface-primary);
    color: var(--text-error-text-primary);
}

.sort-icon {
    margin-left: 5px;
    cursor: pointer;
}

body:not(.sb-expanded) .sb-collapsed-none {
    display: none;
}

body aside nav{
    padding: 0 10px;
}

/* Compact View */    
body.compact-mode table th, body.compact-mode table td { padding: 5px 10px; }

body.compact-mode main .p-30 { padding: 20px; }
body.compact-mode main .p-20 { padding: 10px; }
body.compact-mode main .p-10 { padding: 5px; }

body.compact-mode main .fs-2xl { font-size: var(--font-l); }
body.compact-mode main .fs-xl  { font-size: var(--font-m); }
body.compact-mode main .fs-l   { font-size: var(--font-s); }
body.compact-mode main .fs-m   { font-size: var(--font-s); }
body.compact-mode main .fs-s   { font-size: var(--font-xs); }
body.compact-mode main .fs-xs  { font-size: var(--font-xs); }

body.compact-mode main button, body.compact-mode main .btn{ padding: 6px 10px; }

body.compact-mode main .input-group input, body.compact-mode main .input-group textarea, body.compact-mode main .input-group select{ padding: 6px 10px; }

.toggle{
    display:inline-block;
    padding: 12px;
    background:#fff;
    border:1px solid #eee;
    border-radius:8px;
}

.toggle-compact{
    position:absolute;
    inline-size:1px;
    block-size:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0 0 0 0);
    white-space:nowrap;
    border:0;
}

.toggle-label{
    position:relative;
    display:inline-block;
    inline-size:var(--track-width);
    block-size:var(--track-height);
    user-select:none;
    cursor:pointer;
}

.toggle-label::before{
    content:'';
    position:absolute;
    inset:0;
    background:var(--track-off-bg);
    border:1px solid var(--track-border);
    border-radius:999px;
    transition:background var(--transition-fast), border-color var(--transition-fast);
}

.toggle-label::after{
    content:'';
    position:absolute;
    inset:2px auto auto 2px;
    inline-size:var(--thumb-size);
    block-size:var(--thumb-size);
    background:var(--thumb-bg);
    border-radius:50%;
    box-shadow:var(--thumb-shadow);
    transition:transform var(--transition-snap), box-shadow var(--transition-fast);
}

.toggle-compact:checked + .toggle-label::before{
    background:var(--track-on-bg);
    border-color:var(--track-on-bg);
}

.toggle-compact:checked + .toggle-label::after{
    transform:translateX(calc(var(--track-width) - var(--thumb-size) - 4px));
}

.toggle-compact:focus-visible + .toggle-label::after{
    box-shadow:var(--thumb-shadow), var(--focus-ring);
}

.toggle-compact:disabled + .toggle-label{
    cursor:not-allowed;
    opacity:.6;
}

@media (prefers-reduced-motion: reduce){
    .toggle-label::before,
    .toggle-label::after{
        transition:none;
    }
}

/* Slide-in Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade-out Animation */
@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(100%);
    }
}

/* Components that are changed completely on mobile */
@media (max-width: 767px){
    #header .important-card{
        background: var(--primary-50);
        padding: 10px;
        border: none;
    }

    #tabs{
        border: 0;
    }

    #tabs a{
        margin: 0;
        width: 100%;
        float: left;
        text-align: left;
        border-bottom: 1px solid var(--grey-300);
    }

    #tabs a:first-child, #tabs a:last-child{
        margin-left: unset;
        margin-right: unset;
    }

    /* Toast */
    #toast-container {
        left: 30px;
        right: 30px;
        max-width: 100%;
        transform: translateX(0px);
    }
}