@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;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color:var(--surface-surface-secondary ) var(--surface-surface-bg);
    font-family: var(--mit-font-family);
}

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

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(--mit-font-Xsmall);
}

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

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

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

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

.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(--mit-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(--mit-gray-800);
    padding: 10px 60px 10px 15px;
    outline: 1px solid var(--surface-surface-tertiary);
    box-shadow: 0 1px 3px 0 rgba(16, 24, 40, 0.10), 0 1px 2px 0 rgba(16, 24, 40, 0.06);
}

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

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

#dropup ul li a:hover {
    background: var(--surface-surface-bg);
    color: var(--text-text-primary);
}

/* Sidebar */
.sidebar-logo * {
    height: 25px !important;
    max-height: 25px !important;
}

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

.logo-icon {
    max-width: 32px;
}

/* Sidebar Expanded */
/* .sb-expanded nav {
    text-align: start;
} */

.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-down {
    display: block;
}

.sb-expanded aside .resize {
    rotate: 180deg;
}

.sb-expanded .sidebar-logo .logo-text {
    display: inline-block !important;
    max-width: 165px;

}

/* 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);
}

nav ul > li > ul > li:last-child {
    position: relative;
}

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;
}

/* Resize Button */
.resize {
    right: -15px;
    top: 25px;
    transition: 0.2s;
}

/* Tooltip */
.tooltip{
    margin-left: 5px;
}

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

.tooltip.warning:before{
    content: "\e90d";
    color: var(--text-warning-text-primary);
}

.tooltip.ssl:before{
    content: "\ebb7";
}

.tooltip-text {
    position: absolute;
    background-color: var(--mit-gray-800);
    white-space: normal;
    z-index: 9999;
    display: none;
    pointer-events: none;
    word-wrap: break-word;
    box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
    color: var(--mit-white);
    padding: 11px 14px 12px 14px;
    font-weight: 400;
    white-space: break-spaces;
}

.tooltip-text.visible {
    display: block;
}

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

.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(--mit-font-small);
    color: var(--text-text-primary);
    overflow: hidden;
}

.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(--mit-font-family);
    /*font-size: var(--mit-font-small);*/
}

.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(--mit-font-Xsmall);
}

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[size] {
    background: var(--surface-surface-bg);
}

select[multiple]{
    background: none;
}

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 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 {
    border-color: var(--surface-brand-surface-brand-primary);
    outline:1px solid var(--surface-brand-surface-brand-primary);
}

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

.radio input[type="radio"]:checked + 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;
}

/* 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 */
/* .card > div{
    color: var(--surface-surface-bg-accent);
} */

.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; }

/* 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(--mit-dark-200);
}

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

#tabs{
    border-bottom: 1px solid var(--mit-gray-300);
    float: left;
    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{
    box-shadow: 0 1px 3px #1018280F;
    border: 1px solid var(--surface-surface-tertiary);
    overflow-x: auto;
    overflow-y: visible;
}

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

table th, table td{
    padding: 16px 24px;
}

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

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

th {
    text-align: inherit;
}

.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: 150px;
    overflow-y: auto;
    top: 45px;
}

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

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

/* Components that are changed completely on mobile */
@media (max-width: 768px){
    #header .important-card{
        background: var(--mit-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(--mit-gray-300);
    }

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