:root {
    --thunder: #231F20;
    --big-stone: #102334;
    --limed-spruce: #3D4852;
    --casablanca: #FBB33E;
    --cinnabar: #FF8C55;
    --link: #3EB4FB;
    --feature: #3A68DF;
    --sand: #FBF8F2;
    --mid-sand: #F0EDE8;
    --dark-sand: #F3F1ED;
    --dark-gravel: #808080;
    --gravel: #E0E0E0;
    --mid-gravel: #F5F5F5;
    --light-gravel: #FBFBFB;
    --cloud: #F4F4F4;
    --dust: #F3F1ED;
    --dawn: #BBCEFF;
    --daylight: #D6CDBF;
    --dusk: #547ADB;
    --twilight: #779DFF;
    --night: #3D4852;
    --midnight: #26292C;
    --white: #fff;
    --status-pass: #8CEC6C;
    --status-fail: #EC6C6C;
    --status-pending: #ECAF6C;
    --status-unknown: #ddd;
    --scrollbar-width: calc(100vw - 100%);
}

html {
  font-size: 14px;
}

@font-face {
    font-family: 'Inter';
    src: url(/fonts/Inter-VariableFont_opsz,wght.ttf);
}

html, body {
    padding: 0;
    margin: 0;
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', system-ui, Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
}

main {
    background: var(--mid-gravel);
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    gap: 12px;
    flex: 1 auto;
    overflow: hidden;
}

section {
    background: var(--white);
    padding: 24px;
    box-sizing: border-box;
    border-radius: 4px;
    width: 100%;
}

footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 32px;
    font-size: 12px;
    font-weight: 500;
    color: var(--dark-gravel);
    padding: 24px 0;
    box-sizing: border-box;
    width: 100%;
    margin-top: 80px;
    margin-bottom: -80px;
    border-top: 1px solid var(--gravel);
    max-width: 1600px;
}

    footer div:last-child {
        display: flex;
        flex-direction: row;
        gap: 16px;
    }

h1,h2,h3,h4,h5,h6 {
    margin: 0;
    font-weight: normal;
}

h5 {
    font-weight: 600;
    color: #aaa;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

    a:hover,
    a.active {
        color: var(--dusk);
    }

input,
textarea,
.input,
#card-input {
    padding: 8px 10px;
    color: var(--thunder);
    border: 1px solid var(--gravel);
    outline: none;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
}

textarea {
    resize: vertical;
    max-height: 300px;
    overflow: auto;
}

select {
    padding: 7px;
    border: 1px solid var(--gravel);
    outline: none;
    border-radius: 4px;
    box-sizing: border-box;
    resize: vertical;
    color: var(--thunder);
}

    select[multiple]:not(.button) {
        min-height: 80px;
    }

select.button option {
    background: var(--white);
    color: var(--thunder);
}

section input,
section textarea,
section select {
    background: var(--light-gravel);
    border-color: var(--gravel);
}

button, .button {
    background: var(--dusk);
    color: var(--white);
    border: 1px solid var(--dusk);
    outline: none;
    padding: 6px 10px;
    box-sizing: border-box;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13.3333px;
    font-weight: 500;
    font-family: inherit;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

    button.button-small, .button.button-small {
        font-size: 12px;
        padding: 4px 8px;
    }

    button.button-tiny, .button.button-tiny {
        font-size: 12px;
        padding: 0px 4px;
    }

    button:not(.button-link, .button-inverse, .button-warning, :disabled):hover,
    .button:not(.button-link, .button-inverse, .button-warning, :disabled):hover {
        color: var(--white);
    }

    .button.button-inverse,
    button.button-inverse {
        background: none;
        color: var(--dusk);
    }

    button:disabled, .button:disabled {
        cursor: default;
        opacity: 0.5;
    }

.button-warning {
    border: 1px solid var(--status-fail);
    color: var(--status-fail);
    background: none;
}

    .button-warning:hover {
        background: var(--status-fail);
        color: var(--white);
    }

    /*button i, .button i {
        font-weight: 600;
    }*/

#sidebar {
    background: var(--white);
    border-radius: 4px;
    padding: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /*width: 100%;*/
    width: 200px;
    gap: 40px;
    margin: 8px;
}

.sidebar-header {
    display: flex;
    flex-direction: row !important;
    gap: 12px;
    align-items: center;
}

.sidebar-header img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    /*background: #111;*/
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sidebar-menu > div {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#sidebar-help-box {
    font-size: 12px;
    background: var(--dawn);
    outline: 10px solid var(--dawn);
    border-radius: 1px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#sidebar-help-box a {
    display: block;
    color: var(--feature);
    margin-top: 2px;
}

#sidebar-help-box:has(b:empty) 
{
    display: none;
}

    #sidebar-help-box.highlight-help-box {
        animation: highlightbox 0.3s ease-in-out forwards;
    }

@keyframes highlightbox {
    0% {
        outline-color: var(--twilight);
        background-color: var(--twilight);
    }

    100% {
        outline-color: var(--dawn);
        background-color: var(--dawn);
    }
}

#dashboard-link:not(:only-child) {
    display: none;
}

#page-container {
    flex:1;
    overflow: auto;
}

#page {
    padding: 32px;
    padding-top: 0px;
    padding-left: 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    /*gap: 32px;*/
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

#header {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 90;
    background: var(--mid-gravel);
    padding: 24px 0;
}

.section-menu {
    font-weight: 500;
}

    .section-menu .current {
        color: var(--dusk);
    }


/* ---- */

.heading-big {
    font-size: 72px;
    line-height: 1;
}

hr {
    border: 0;
    height: 1px;
    width: 100%;
    background: var(--gravel);
    margin: 0;
    flex: none;
}

iframe {
    outline: none;
    border: none;
}

pre {
    font-family: inherit;
    font-size: inherit;
    padding: 0;
    margin: 0;
    white-space: pre-wrap;
}

.overflow-y-auto {
    overflow-y: auto;
}

.show-link a {
    cursor: pointer;
    color: var(--link);
}

b,
.bold {
    font-weight: 600;
}

.bolder {
    font-weight: 800;
}

.link {
    text-decoration: underline;
}

a form {
    position: relative;
    z-index: 9;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.no-border {
    border: none !important;
}

.hand {
    cursor: pointer;
}

.bar {
    border-right: 1px solid var(--gravel);
    height: 100%;
}

/* PADDING */

.border-box {
    box-sizing: border-box;
}

.p-0 {
    padding: 0;
}

.p-2 {
    padding: 2px;
}

.p-4 {
    padding: 4px;
}

.p-8 {
    padding: 8px;
}

.p-16 {
    padding: 16px;
}

.p-24 {
    padding: 24px;
}

.p-32 {
    padding: 32px;
}

.p-48 {
    padding: 48px;
}

.p-64 {
    padding: 64px;
}

.p-80 {
    padding: 80px;
}

.pb-80 {
    padding-bottom: 80px !important;
}

/* LISTS */

ul {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

.show-list ul li {
    list-style: inside;
}

.show-list ol li {
    list-style: decimal;
}

.list-style-show li {
    list-style: inside;
}

.item-list li {
    /*border: 1px solid var(--gravel);*/
    padding: 12px;
    border-radius: 4px;
    background: var(--white);
    margin-bottom: 4px;
    /*font-size: 14px;*/
    position: relative;
}

section .item-list li {
    background: var(--mid-gravel);
}

.item-list:not(.link-list) li {
    min-height: 20px;
    align-content: center;
}

.item-list:not(#sortable) li .thumb {
    margin-left: -6px;
}

.item-list:not(.no-hover) li:hover {
    background: var(--gravel);
}

section .item-list:not(.no-hover) li:hover {
    background: var(--gravel);
}

.item-list li:has(>a),
.item-list li:not(.expandable):has(>label:only-child) {
    padding: 0;
}

.item-list li > a,
.item-list li:not(.expandable) > label:only-child {
    padding: 12px;
    display: flex;
}

.item-list li > a:hover {
    color: inherit;
}

a.list-link {
    position: absolute;
    width: 100%;
    display: flex;
    align-items: center;
    top: 0;
    bottom: 0;
}

.link-list li {
    padding: 0;
}

    .link-list li a {
        padding: 12px;
        display: block;
        min-height: 20px;
        align-content: center;
    }

    .link-list li form,
    .link-table td form {
        z-index: 9;
        position: relative;
    }

    /*.link-list-thumb li a {
        padding: 16px;
    }*/

    .link-list li:hover,
    .hover-list li:hover {
        background-color: var(--light-gravel);
    }

.bordered-list li {
    border-top: 1px solid var(--gravel);
    padding: 18px;
}

.bordered-list > li:hover {
    background: var(--light-gravel);
}

.sub-section.bordered-list li {
    padding: 12px;
}

.item-list .sub-section li {
    border-radius: 0;
}

    .sub-section.bordered-list li:hover {
        background: none;
    }

    .sub-section.bordered-list li:first-child {
        border-top: none;
        /*padding-top: 8px;*/
    }

    .sub-section.bordered-list li:last-child {
        /*padding-bottom: 8px;*/
    }

.tight-list li {
    font-size: 14px;
    padding: 16px;
    margin-bottom: 0;
}

    .tight-list li:not(:last-child):first-child {
        border: 1px solid var(--gravel);
        border-bottom: none;
        border-radius: 4px 4px 0 0;
    }

    .tight-list li:not(:first-child):last-child {
        border: 1px solid var(--gravel);
        border-radius: 0 0 4px 4px;
    }

    .tight-list li:not(:first-child):not(:last-child) {
        border: 1px solid var(--gravel);
        border-bottom: none;
        border-radius: 0px;
    }

    .tight-list li:only-child {
        border: 1px solid var(--gravel);
        border-radius: 4px;
    }

.message-list li {
    border: 1px solid var(--gravel);
    padding: 20px;
    border-radius: 8px;
    background: var(--light-gravel);
    margin-bottom: 8px;
    font-size: 14px;
    position: relative;
}

    .message-list li.unread:before {
        content: '';
        left: -15px;
        top: 20%;
        bottom: 20%;
        border-left: 2px solid var(--status-fail);
        position: absolute;
    }

.message-list:not(.link-list) li {
    padding: 40px;
}

.message-list.link-list li {
    padding: 0;
}

    .message-list.link-list li a {
        padding: 32px;
    }

    .message-list.link-list li > *:not(:only-child) {
        padding-left: 24px;
    }

.drag-handle {
    cursor: ns-resize;
}

.column-labels {
    padding: 0 10px;
    font-size: 14px;
    color: var(--dark-gravel);
}

/* ICONS */

.icon {
    -webkit-text-stroke-width: 0.25px;
    transition: 0.1s;
    /*font-weight: inherit;*/
}

.icons-list .icon {
    padding: 0 8px;
}

.icons-list > *:not(:last-child) {
    border-right: 1px solid var(--gravel);
}

button:not(.clean) .icon,
.button:not(.clean) .icon {
    -webkit-text-stroke-width: 0.5px;
}

.icon-alert-count {
    width: 16px;
    height: 16px;
    background: var(--status-fail);
    color: var(--white);
    font-weight: 600;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* FORMS */

form.saving {
    pointer-events: none;
    opacity: 0.7;
}

    form.saving button[type=submit],
    form.saving .button[type=submit] {
        font-size: 0;
        pointer-events: none;
        user-select: none;
    }

        form.saving button[type=submit]:before,
        form.saving .button[type=submit]:before {
            content: 'Saving...';
            font-size: 0.9rem;
        }

    form.saving.please-wait button[type=submit]:before,
    form.saving.please-wait .button[type=submit]:before {
        content: 'Please Wait...';
    }

input.loading,
select.loading {
    opacity: 0.5;
    user-select: none;
    position: relative;
}

    input.loading:after,
    select.loading:after {
        content: '';
        width: 20px;
        height: 20px;
        left: 50%;
        top: 50%;
        margin-left: -10px;
        margin-top: -10px;
        border: 2px solid;
        border-color: var(--thunder) transparent;
        border-radius: 50%;
        box-sizing: border-box;
        animation: rotation 1.5s linear infinite;
        position: absolute;
    }

.input-short {
    max-width: 8em;
}

.field-option:has(input[type=checkbox]:checked) {
    display: none;
}

#clone {
    display: none;
}

div:has(input[required]) > label:after,
label.required:after {
    content: '*';
    color: red;
    padding-left: 2px;
}

#portals-toggle:checked ~ .sidebar-portal-select {
    display: flex;
}

#portals-toggle:checked:checked ~ label .icon-chevron-down {
    transform: scaleY(-1);
}

.action-box {
    display: none;
    position: absolute;
    flex-direction: column;
    z-index: 999;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--gravel);
    padding: 12px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.1);
}

    .action-box.action-box-menu {
        border-radius: 4px;
        padding: 4px;
    }

    .action-box a,
    .action-box button {
        padding: 8px;
        box-sizing: border-box;
        display: flex;
        gap: 16px;
        font-weight: normal;
        align-items: center;
        border-radius: 8px;
        transition: 0.2s;
        user-select: none;
        white-space: nowrap;
        justify-content: space-between;
    }

    .action-box.action-box-menu a,
    .action-box.action-box-menu button {
        border-radius: 4px;
    }

    .action-box a:hover,
    .action-box button:hover {
        background: var(--gravel);
    }

.action-box-toggle:checked ~ .action-box {
    display: flex;
    z-index: 98;
}

.action-box-toggle:checked ~ label:before {
    content: '';
    cursor: default;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.15);
    z-index: 97;
}

.user-actions {
    top: 30px;
}

/* BILLING */

.billing-options input[type=radio]:checked ~ label {
    border-color: var(--dusk);
    box-shadow: 0px 0px 0px 2px var(--dusk);
    background: rgba(84,122,219, 0.075);
}

/*.billing-options .selected-label {
    display: none;
}

.billing-options input[type=radio]:checked ~ label .selected-label {
    display: block;
}*/

/* LAYOUT */

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.overflow-hidden {
    overflow: hidden;
}

.full-height {
    /*height: 100%;*/
    min-height: 100%;
}

.full-width {
    width: 100%;
}

.fullscreened {
    position: fixed;
    width: auto;
    top: 20px;
    left: 20px;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    background: var(--white);
}

    .fullscreened:before {
        position: fixed;
        top: 0px;
        left: 0px;
        bottom: 0px;
        right: 0px;
        content: '';
        background: rgba(0,0,0,0.8);
    }

    .fullscreened section {
        position: relative;
        height: 100%;
    }

    .fullscreened .fullscreened-hide {
        display: none;
    }

.sub-section {
    padding: 0px;
    border: 1px solid var(--gravel);
    border-radius: 4px;
    background: var(--white);
    width: 100%;
    box-sizing: border-box;
}

.align-left {
    text-align: left;
}

.align-center {
    text-align: center;
}

.align-right {
    text-align: right;
}

.max-full {
    max-width: 100%;
}

.max-1920 {
    max-width: 1920px;
}

.max-1600 {
    max-width: 1600px;
}

.max-1280 {
    max-width: 1280px;
}

.max-880 {
    max-width: 880px;
}

.max-620 {
    max-width: 620px;
}

.max-500 {
    max-width: 500px;
}

.max-440 {
    max-width: 440px;
}

.min-440 {
    min-width: 440px;
}

.max-220 {
    max-width: 220px;
}

.min-220 {
    min-width: 220px;
}

.max-120 {
    max-width: 120px;
}

.min-120 {
    min-width: 120px;
}

.w-880 {
    width: 880px;
}

.w-440 {
    width: 440px;
}

.w-220 {
    width: 220px;
}

.hide {
    display: none !important;
}

/* FLEX */

.flex-between {
    justify-content: space-between;
}

.flex {
    display: flex;
}

.flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.flex-row-reverse {
    display: flex;
    flex-direction: row-reverse;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.flex-col-reverse {
    display: flex;
    flex-direction: column-reverse;
}

.flex-align-stretch {
    align-items: stretch;
}

.flex-gap-4 {
    gap: 4px;
}

.flex-gap-8 {
    gap: 8px;
}

.flex-gap-16 {
    gap: 16px;
}

.flex-gap-24 {
    gap: 24px;
}

.flex-gap-32 {
    gap: 32px;
}

.flex-gap-48 {
    gap: 48px;
}

.flex-gap-64 {
    gap: 64px;
}

.flex-gap-80 {
    gap: 80px;
}

.flex-gap-100 {
    gap: 100px;
}

.flex-gap-160 {
    gap: 160px;
}

.flex-start {
    align-self: flex-start;
}

.flex-end {
    align-self: flex-end;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-items-start {
    align-items: start;
}

.flex-items-center {
    align-items: center;
}

.flex-items-end {
    align-items: end;
}

.flex-items-stretch {
    align-items: stretch;
}

.flex-justify-center {
    justify-content: center;
}

.flex-justify-start {
    justify-content: start;
}

.flex-justify-end {
    justify-content: end;
}

.flex-fill {
    flex: 1 auto;
}

.flex-fill-items > * {
    flex: 1 auto;
}

.flex-90 {
    width: 90%;
    flex: 90%;
}


.flex-80 {
    width: 80%;
    flex: 80%;
}

.flex-75 {
    width: 75%;
    flex: 75%;
}

.flex-70 {
    width: 70%;
    flex: 70%;
}

.flex-66 {
    width: 66.6666%;
    flex: 66.6666%;
}

.flex-60 {
    width: 60%;
    flex: 60%;
}

.flex-50 {
    width: 50%;
    flex: 50%;
}

.flex-40 {
    width: 40%;
    flex: 40%;
}

.flex-33 {
    width: 33.3333%;
    flex: 33.3333%;
}

.flex-30 {
    width: 30%;
    flex: 30%;
}

.flex-25 {
    width: 25%;
    flex: 25%;
}

.flex-20 {
    width: 20%;
    flex: 20%;
}

.flex-16 {
    width: 16.6666%;
    flex: 16.6666%;
}

.flex-15 {
    width: 15%;
    flex: 15%;
}

.flex-12 {
    width: 12.5%;
    flex: 12.5%;
}

.flex-10 {
    width: 10%;
    flex: 10%;
}

/* COURSE CARDS */
.course-card,
.course-card-enrolled {
    position: relative;
    border-radius: 8px;
    box-sizing: border-box;
    padding: 24px;
    box-shadow: 0 0 0 1px #E0E0E0;
    transition: 0.2s;
    background: var(--light-gravel);
}

.course-card {
    width: calc(25% - 18px);
    max-width: 306px;
    height: 472px;
    cursor: default;
}

    .course-card:hover,
    .course-card-enrolled:hover {
        /*box-shadow: 0 0 0 1px var(--gravel);*/
    }

    /*.course-card img,
    .course-card-enrolled img {
        height: 80px;
        border-radius: 8px;
        transition: 0.3s;
    }*/

    .course-card img {
        max-height: 150px;
    }

    .course-card h2 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.course-card-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/*.course-card-enrolled > div {
        display: flex;
        flex-direction: column;
        gap: 24px;
        width: 100%;
    }*/

.course-card input[type=checkbox],
.course-card-enrolled input[type=checkbox] {
    display: none;
}

.course-card > label,
.course-card-enrolled > label {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    cursor: pointer;
    z-index: 1;
}

.course-card-enrolled .course-card-enrolled-details {
    display: none;
    justify-content: space-between;
    flex: 1 auto;
    gap: 16px;
}

.course-card-enrolled:has(input[type=checkbox]:checked) {
    /*box-shadow: 0 0 0 1px var(--dark-gravel);*/
    padding: 32px;
}

.course-card-enrolled input[type=checkbox]:checked ~ div .course-card-enrolled-details {
    display: flex;
}

.course-card-enrolled input[id*="card-"]:checked ~ div .icon-chevron-down {
    /*transform: rotate(-180deg);*/
    transform: scaleY(-1);
}

.course-card-enrolled input[type=checkbox]:checked ~ .thumb {
    min-width: 252px;
    height: 252px;
}

.course-card-enrolled-details {
    flex-direction: column;
    position: relative;
    z-index: 10;
}

.course-card button,
.course-card-enrolled button {
    position: relative;
    z-index: 2;
}

.progress-section {
    display: flex;
    gap: 16px;
    align-items: center;
    min-width: 30%;
}

    .progress-section label {
        color: var(--thunder);
        font-size: 12px;
    }

.progress-bar {
    height: 8px;
    flex: 1 auto;
    border-radius: 4px;
    background: var(--gravel);
    overflow: hidden;
    position: relative;
}

.progress-bar-inner {
    background: var(--thunder);
    height: 100%;
}

.carousel-section div {
    position: relative;
}

.carousel-section button {
    font-size: 32px !important;
    position: absolute;
    left: -48px;
    top: 50%;
    transform: translateY(calc(-50% - 16px));
}

    .carousel-section button:last-child {
        left: calc(100% + 16px);
    }

.carousel-section ul {
    overflow: hidden;
    display: flex;
    flex-direction: row;
    gap: 16px;
    transition: 0.4s;
    align-items: start;
}

    .carousel-section ul li {
        transition: 0.4s;
    }

.carousel-section li a {
    width: 360px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.carousel-section li .bg-img {
    width: 100%;
    height: 200px;
    background-color: var(--gravel);
    border-radius: 8px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* SUB MENU */

.sub-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: fit-content;
}

    .sub-menu a {
        color: var(--dark-gravel);
        font-weight: bolder;
        font-size: 14px;
        padding: 4px 0;
        width: fit-content;
        white-space: nowrap;
    }

        .sub-menu a.current {
            color: var(--big-stone);
            border-bottom: 1px solid var(--casablanca);
        }

#header .current {
    font-weight: bold;
}

#mobile-header img {
    max-width: 80%;
    max-height: 40px;
}

#mobile-header i {
    font-weight: 500;
    font-size: 20px;
}

#mobile-header-menu {
    position: absolute;
    display: none;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    height: 100%;
    z-index: 99;
    padding: 24px;
    padding-top: 48px;
    box-sizing: border-box;
}

    #mobile-header-menu a {
        align-items: center;
        font-weight: 500;
        display: flex;
        flex-direction: row;
        gap: 8px;
    }

/*#mobile-header input:checked ~ label {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gravel);
    opacity: 0.8;
    flex-direction: row-reverse;
    display: flex;
}*/

#mobile-header input:checked ~ #mobile-header-menu {
    display: flex;
}

.clean {
    background: none;
    border: none;
    padding: 0;
    font-weight: normal;
    font-size: inherit;
    color: inherit;
}

.button-link {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font-weight: 600;
}

/*button:disabled {
    cursor: default;
    color: var(--dark-gravel);
    border-color: var(--gravel);
    opacity: 0.7;
}*/

.button-rounded {
    border-radius: 25px;
}

/* TOGGLE */

.toggle {
    position: relative;
    z-index: 3;
}

    .toggle input {
        display: none;
    }

    .toggle label {
        border: 2px solid var(--gravel);
        background: var(--white);
        padding: 1px;
        width: 18px;
        border-radius: 30px;
        display: flex;
        flex-direction: row;
    }

    .toggle input:checked ~ label {
        flex-direction: row-reverse;
        background: var(--dusk);
        border: 2px solid var(--dusk);
    }

    .toggle label:after {
        content: '';
        width: 9px;
        height: 9px;
        background: var(--gravel);
        border-radius: 20px;
        transition: 0.2s;
    }

    .toggle input:checked ~ label:after {
        background: var(--white);
    }

/* INPUT */

.input-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-price {
    position: relative;
}

    .input-price small {
        position: absolute;
        top: 10px;
        left: 10px;
    }

    .input-price input {
        text-indent: 10px;
    }

form label {
    font-size: 14px;
    color: var(--dark-gravel);
}

/*input,
textarea,
select,
.input,
#card-input {
    outline: none;
    background: var(--white);
    border: 1px solid var(--gravel);
    padding: 8px 16px;
    border-radius: 4px;
    color: var(--thunder);
    height: min-content;
    font-family: inherit;
    box-sizing: border-box;
}*/

    input[type=color] {
        border-radius: 4px;
        height: 30px;
        width: 75px;
        border: none;
        outline: none;
        -webkit-appearance: none;
        padding: 4px;
        border: 1px solid var(--gravel);
        cursor: pointer;
    }

        input[type=color]::-webkit-color-swatch-wrapper {
            padding: 0;
        }

        input[type=color]::-webkit-color-swatch {
            border: none;
            border-radius: 4px;
        }

/*textarea {
    min-height: 80px;
    max-height: 400px;
    resize: vertical;
}

select {
    padding: 8px 16px;
}*/

input::placeholder,
textarea::placeholder {
    color: var(--dark-gravel);
}

/*input:not(:disabled):hover,
textarea:not(:disabled):hover,
select:not(:disabled):hover,
.input:not(:disabled):hover {
    background: var(--light-gravel);
}*/

input[type=checkbox]:not(:disabled),
input[type=radio]:not(:disabled) {
    accent-color: var(--dusk);
    cursor: pointer;
}

input[type=checkbox] + label,
input[type=radio] + label {
    cursor: pointer;
    user-select: none;
}

input[type=text]:disabled,
input[type=email]:disabled,
input[type=number]:disabled,
input[type=checkbox]:disabled {
    border: 1px solid var(--gravel);
    outline: none;
    cursor: text;
    opacity: 0.7;
}

label.disabled,
input:disabled + label {
    cursor: default;
}

input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    height: 1.2rem;
    width: 1.2rem;
    border-radius: 50em;
    background: url(/img/circle-x.svg) no-repeat 50% 50%;
    background-size: contain;
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
}

input[type="search"]:not(:focus):placeholder-shown {
    background: url(/img/search.svg) no-repeat 50% 50%;
    background-color: var(--white);
    background-size: contain;
    background-position-x: calc(100% - 0.5rem);
    background-size: 1rem;
}

input[type="search"]:focus::-webkit-search-cancel-button {
    opacity: .5;
    pointer-events: all;
}

    input[type="search"]:focus::-webkit-search-cancel-button:hover {
        opacity: 0.8;
    }

.checkbox-list > li {
    padding: 8px;
}

    .checkbox-list > li:hover {
        background: var(--light-gravel);
    }

.checkbox-list label {
    color: inherit;
}

.input-with-button {
    align-items: stretch;
}

    .input-with-button button {
        height: auto;
    }

/* PILLS */

.pill {
    font-size: 12px;
    background: var(--gravel);
    border-radius: 4px;
    padding: 2px 4px;
    position: relative;
    white-space: nowrap;
    width: fit-content;
}

    .pill:after {
        background: var(--white);
        content: '';
        opacity: 80%;
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        right: 0;
        border-radius: 4px;
    }

    .pill span {
        z-index: 1;
        position: relative;
        filter: brightness(0.6);
    }

.pill-big {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 8px;
}

/* TAGS */

.tag {
    display: flex;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--dark-gravel);
    line-height: 16px;
    gap: 4px;
    white-space: nowrap;
    font-size: 12px;
}

#tagBox {
    padding: 16px;
    flex-wrap: wrap;
}

.tag:has(input[type=checkbox].isDeleted:checked) {
    display: none;
}

.tag {
    background: var(--cloud);
    border: 1px solid var(--gravel);
}

    .tag i {
        cursor: pointer;
    }

.newTag {
    background: var(--dark-sand);
    border-color: var(--casablanca);
    cursor: pointer;
}

input[type=text].clean,
input[type=search].clean {
    border: none;
    padding: 4px;
    line-height: 16px;
    background: none;
}

/* ALERTS */

.alert {
    position: relative;
}

    .alert::after {
        content: '';
        position: absolute;
        top: -1px;
        left: -1px;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--status-fail);
    }

/* COLOURS */

.bg-pass {
    background: var(--status-pass);
}

.bg-fail {
    background: var(--status-fail);
}

.bg-pending {
    background: var(--status-pending);
}

.bg-casablanca {
    background: var(--casablanca);
}

.bg-cinnabar {
    background: var(--cinnabar);
}

.bg-feature {
    background: var(--feature);
}

.bg-sand {
    background: var(--sand);
}

.bg-dark-sand {
    background: var(--dark-sand);
}

.bg-gravel {
    background: var(--gravel);
}

.bg-mid-gravel {
    background: var(--mid-gravel);
}

.bg-light-gravel {
    background: var(--light-gravel);
}

.bg-thunder {
    background: var(--thunder);
}

.bg-dawn {
    background: var(--dawn);
}

.bg-daylight {
    background: var(--daylight);
}

.bg-dusk {
    background: var(--dusk);
}

.bg-twilight {
    background: var(--twilight);
}

.bg-night {
    background: var(--night);
}

.bg-midnight {
    background: var(--midnight);
}

.bg-dust {
    background: var(--dust);
}

.bg-dots {
    background-image: radial-gradient(circle at 15px 15px, rgba(0, 0, 0, 0.1) 1px, transparent 0);
    background-size: 30px 30px;
}

.bg-white {
    background: var(--white);
}

.text-pass {
    color: var(--status-pass) !important;
}

.text-fail {
    color: var(--status-fail) !important;
}

.text-white {
    color: var(--white) !important;
}

.text-pending {
    color: var(--status-pending) !important;
}

.text-casablanca {
    color: var(--casablanca);
}

.text-cinnabar {
    color: var(--cinnabar);
}

.text-gravel {
    color: var(--gravel);
}

.text-darkgravel {
    color: var(--dark-gravel);
}

.text-light-gravel {
    color: var(--light-gravel);
}

.text-dawn {
    color: var(--dawn);
}

.text-daylight {
    color: var(--daylight);
}

.text-dusk {
    color: var(--dusk);
}

.text-twilight {
    color: var(--twilight);
}

.text-night {
    color: var(--night);
}

.text-midnight {
    color: var(--midnight);
}

.text-dust {
    color: var(--dust);
}

.text-thunder {
    color: var(--thunder);
}

.text-inherit {
    color: inherit;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-75 {
    opacity: 0.75;
}

.border {
    border: 1px solid var(--thunder);
}

.border-thunder {
    border: 1px solid var(--thunder);
}

.border-gravel {
    border: 1px solid var(--gravel);
}

.border-light-gravel {
    border: 1px solid var(--light-gravel);
}

.border-dawn {
    border: 1px solid var(--dawn);
}

.border-daylight {
    border: 1px solid var(--daylight);
}

.border-dusk {
    border: 1px solid var(--dusk);
}

.border-twilight {
    border: 1px solid var(--twilight);
}

.border-night {
    border: 1px solid var(--night);
}

.border-midnight {
    border: 1px solid var(--midnight);
}

.border-dust {
    border: 1px solid var(--dust);
}

.border-white {
    border: 1px solid var(--white);
}

.border-round-4 {
    border-radius: 4px;
}

.border-round-8 {
    border-radius: 8px;
}

.border-round-16 {
    border-radius: 16px;
}

.underline {
    border-bottom: 1px solid var(--dark-gravel);
    padding-bottom: 4px;
}

.link-underline {
    border-bottom: 1px solid var(--twilight);
    padding-bottom: 4px;
}

.text-underline {
    text-decoration: underline;
}

/* TEXT SIZE */

.text-12 {
    font-size: 12px;
}

.text-16 {
    font-size: 16px;
}

/* ACCORDION */

.expandable {
    position: relative;
    overflow: hidden;
}

    .expandable input[type=checkbox] {
        display: none;
    }

    .expandable > label {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        cursor: pointer;
        z-index: 1;
    }

    .expandable button {
        position: relative;
        z-index: 9;
    }

    .expandable .expandee {
        display: none;
        position: relative;
        z-index: 2;
    }

    .expandable.dropdown:hover .expandee,
    .expandable input[type=checkbox]:checked ~ .expandee,
    .expandable.expand-if-only:only-child .expandee {
        display: flex;
    }

input[id*="expander-"]:checked ~ div .icon-chevron-down {
    /*transform: rotate(-180deg);*/
    transform: scaleY(-1);
}

.expandable.dropdown:has(input[type=checkbox]:checked),
.expandable.dropdown:hover,
.expandable.expand-if-only:only-child {
    overflow: visible !important;
}

.expandable.dropdown .expandee {
    position: absolute;
    top: 0px;
    padding-top: 30px;
}

.toggler:not(:checked) ~ .togglee {
    display: none;
}

.toggler:checked ~ .togglee {
    display: flex;
}

input.show-hidden ~ label.show-hidden {
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

input.show-hidden:not(:checked) ~ label.show-hidden:before {
    content: "Show " attr(data-label);
}

input.show-hidden:checked ~ label.show-hidden:before {
    content: "Hide " attr(data-label);
}

input.show-hidden:not(:checked) ~ .show-hidden-content {
    display: none;
}

input.show-hidden:checked ~ .show-hidden-content {
    display: block;
}

/* IMAGES */

.logo-preview {
    max-height: 100px;
    width: fit-content;
}

.logo {
    max-height: 80px;
    max-width: 220px;
}

.image-preview {
    max-height: 180px;
    width: fit-content;
}

.thumb {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.thumb-small {
    width: 48px;
    height: 48px;
    border-radius: 4px;
}

img.thumb-small {
    height: auto;
    max-height: 48px;
}

.thumb-med {
    width: 132px;
    height: 132px;
    border-radius: 8px;
}

img.thumb-med {
    height: auto;
    max-height: 132px;
}

.thumb-large {
    width: 252px;
    height: 252px;
    border-radius: 8px;
}

img.thumb-large {
    height: auto;
    max-height: 252px;
}

.thumb-icon {
    font-size: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--gravel);
    border-radius: 16px;
    padding: 16px;
}

.thumb-icon-round {
    border-radius: 50%;
    border: 1px solid var(--thunder);
}

.thumb-icon-small {
    font-size: 18px;
    padding: 0;
}

.thumb-icon-med {
    width: 88px;
    height: 88px;
}

.thumb-box {
    position: relative;
    width: 24px;
}

    .thumb-box img {
        position: absolute;
        top: -16px;
    }

.icon-large {
    font-size: 40px;
}

.icon-med {
    font-size: 24px;
}

.icon-small {
    font-size: 16px;
}

.icon-circle-check-filled {
    -webkit-text-stroke-width: 0px;
}

/* MISC*/

.no-input,
.no-select {
    user-select: none;
}

.fit-content {
    width: fit-content;
}

.bg-image {
    background-size: cover;
    background-position: center;
}

.stats-box {
    background: var(--thunder);
    border-radius: 8px;
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    display: flex;
}

    .stats-box > div {
        display: flex;
        justify-content: space-between;
        padding: 16px;
    }

.stats-box-vertical > div:not(:last-child) {
    border-bottom: 1px dotted var(--dark-gravel);
}

.stats-box-vertical > div:first-child {
    padding-bottom: 8px;
}

.stats-box-vertical > div:last-child {
    padding-top: 8px;
}

.stats-box-vertical > div:not(:first-child):not(:last-child) {
    padding-top: 8px;
    padding-bottom: 8px;
}

.stats-box-horizontal {
    padding: 32px;
    border-radius: 16px;
}

.stats-box h1 {
    font-size: 32px;
}

.stats-box-horizontal > div {
    padding: 0;
}

    .stats-box-horizontal > div:not(:last-child) {
        border-right: 1px dotted var(--dark-gravel);
    }

    .stats-box-horizontal > div:first-child {
        padding-right: 24px;
    }

    .stats-box-horizontal > div:last-child {
        padding-left: 24px;
    }

    .stats-box-horizontal > div:not(:first-child):not(:last-child) {
        padding-left: 24px;
        padding-right: 24px;
    }

.stats-box > div div:last-child {
    font-weight: normal;
}


.step-circles {
    overflow: hidden;
    position: relative;
}

    .step-circles div {
        border: 1px solid var(--gravel);
        border-radius: 50%;
        width: 20px;
        height: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: var(--dark-gravel);
        font-weight: 500;
        background: var(--white);
        font-size: 12px;
        z-index: 1;
    }

    .step-circles .active {
        color: var(--thunder);
        border-color: var(--status-fail);
    }

    .step-circles:after {
        content: '';
        position: absolute;
        top: 10px;
        background: var(--gravel);
        height: 1px;
        width: 100%;
    }

.disabled {
    opacity: 0.6;
}

.read-only input,
.read-only input ~ label,
.read-only select,
.read-only textarea,
.read-only button[type=submit] {
    pointer-events: none;
    cursor: default;
}

    .read-only button[type=submit],
    .read-only input[type=file] {
        display: none;
    }

.no-pointer-events {
    pointer-events: none;
    cursor: default;
}

/* BREADCRUMBS */

.breadcrumbs b {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .breadcrumbs b i {
        -webkit-text-stroke-width: 1px;
    }

/* NOTIFICATIONS */
.error,
.success {
    position: fixed;
    z-index: 9999;
    top: 10px;
    left: 50%;
    transform: translate(-50%, 0);
    background: var(--status-fail);
    padding: 1rem 3rem;
    text-align: center;
    font-weight: 500;
    border-radius: 4px;
    margin-top: 10px;
    box-shadow: 0px 3px 4px 0px var(--gravel);
    cursor: pointer;
}

.success {
    background: var(--status-pass);
}

/* PROFILE > CERTS */

.cert-box {
    width: 200px;
}

    .cert-box > div {
        min-height: 140px;
        border-radius: 8px 8px 0 0;
        background: var(--cloud);
        border: 1px dashed var(--gravel);
        border-bottom-style: solid;
    }

        .cert-box > div img {
            max-width: 150px;
            max-height: 30px;
        }

/* BANNERS */

.banner {
    background-color: var(--cloud);
    border-radius: 8px;
    background-position: center left;
    background-size: contain;
    background-repeat: no-repeat;
    min-height: 140px;
    padding: 32px;
    box-sizing: border-box;
}

    .banner > * {
        color: inherit;
    }

    .banner a.button:hover {
        color: inherit;
        border-color: inherit;
        background: inherit;
    }


/* LOADING */

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#loading-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--big-stone);
    opacity: 0.9;
}

#loading:not(.uploading) #uploading {
    display: none;
}

#loading:not(.no-refresh) #no-refresh {
    display: none;
}

#loading:not(.try-refresh) #try-refresh {
    display: none;
}

.loader {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    z-index: 1;
    color: var(--casablanca);
}

    .loader .spinner {
        width: 96px;
        height: 96px;
        border: 5px solid;
        border-color: var(--twilight) transparent;
        border-radius: 50%;
        display: inline-block;
        box-sizing: border-box;
        animation: rotation 1.5s linear infinite;
    }

#uploading #loading-bar {
    height: 10px;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* PLAYERS ETC */

#videoPlayer,
#imageViewer {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(61,72,82,0.95);
    display: flex;
    flex-direction: column;
    padding: 1rem;
    box-sizing: border-box;
    gap: 1rem;
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #videoPlayer iframe {
        flex: 1 0;
        width: 100%;
        z-index: 1;
        background: var(--light-gravel);
    }

    #imageViewer img {
        z-index: 1;
        max-height: 90%;
        max-width: 100%;
    }

    #videoPlayer h3,
    #imageViewer h3 {
        position: absolute;
        color: var(--light-gravel);
    }

#scorm-player iframe {
    background: var(--light-gravel);
}

#player-nav {
}

    #player-nav button,
    #player-nav .button {
        margin: 8px;
        padding: 12px 20px;
    }

    #player-nav #next-button button {
        background: var(--casablanca);
    }

/* CAROUSEL */

.carousel-wrapper {
    overflow: hidden;
    position: relative;
    display: flex;
    min-height: 100px;
    padding: 64px 0;
}

    .carousel-wrapper:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 20%;
        z-index: 1;
        background: linear-gradient(90deg, rgba(255,255,255,1) 10%, rgba(0,212,255,0) 100%);
    }


    .carousel-wrapper:after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: 20%;
        z-index: 1;
        background: linear-gradient(90deg, rgba(255,255,255,0) 10%, rgba(255,255,255,1) 100%);
    }

.carousel {
    display: flex;
    align-items: center;
    margin: 0 auto;
    gap: 96px;
    padding-right: 96px;
    animation: carousel-scroll var(--iteration-time) linear infinite;
}

    .carousel img {
        display: flex;
        flex-direction: column;
        flex: 0 0 auto;
        width: var(--slide-width);
        box-sizing: border-box;
    }

@keyframes carousel-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* AUTH */
:root {
    --slide-width: 200px;
    --iteration-time: 45s;
}

.code {
    letter-spacing: 4px;
    font-family: monospace;
    text-decoration: line-through;
    /* background: radial-gradient(circle, rgba(79,79,79,1) 0%, rgba(166,166,166,1) 36%, rgba(89,89,89,1) 67%, rgba(204,204,204,0) 100%); */
}

    .code:before {
        content: attr(data-code1);
    }

    .code:after {
        content: attr(data-code2);
    }

/* background: repeating-linear-gradient(45deg, #ff0000, transparent 12px);*/

/* TOOLTIPS */
[data-tip] {
    position: relative;
}

    [data-tip]:after {
        content: attr(data-tip);
        position: absolute;
        top: 0px;
        left: 0;
        color: var(--thunder);
        background: var(--white);
        border: 1px solid #aaa;
        font-weight: normal;
        font-size: 14px;
        font-family: arial;
        white-space: nowrap;
        padding: 0 5px;
        line-height: 16px;
        opacity: 0;
        transition-delay: 0s;
        -webkit-transition-delay: 0s;
        z-index: 9999;
        pointer-events: none;
    }

    [data-tip]:hover:after {
        opacity: 1;
        transition-delay: 0.3s;
        -webkit-transition-delay: 0.3s;
    }

/* INFO */

.info {
    /*position: relative;*/
}

    .info > label {
        color: var(--link);
    }

    .info div {
        display: none;
        position: absolute;
        right: 0;
        bottom: 24px;
        max-width: 100%;
        background: var(--white);
        border-radius: 4px;
        border: 1px solid var(--link);
        box-shadow: 0 2px 5px 2px rgba(0,0,0,0.1);
    }

        .info div > label {
            padding: 12px;
            box-sizing: border-box;
            color: var(--link);
            z-index: 9;
        }

    .info:hover div,
    .info input:checked ~ div {
        display: flex;
    }

label:has(~.info:hover),
div:has(~ .info:hover) label {
    color: var(--link);
}

/* TABLES */
table {
    width: 100%;
    text-align: left;
    border-collapse: separate;
    border-spacing: 0 0.25rem;
}

    table.fixed-layout {
        table-layout: fixed;
    }

    table.wrap-text td {
        text-wrap: wrap;
    }

    table.spaced {
        border-spacing: 2px;
    }

    table.table-default {
        border-collapse: collapse;
        border-spacing: 0;
    }

        table.table-default td {
            border: 1px solid var(--gravel);
            padding: 12px;
            text-wrap: nowrap;
            max-width: unset;
            overflow: unset;
        }

#tableControls {
    font-size: 12px;
    color: var(--dark-gravel);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

tbody tr {
    background: var(--white);
    position: relative;
    transform: translate(0);
    clip-path: inset(0);
}

tbody:not(.no-hover) tr:not(.no-hover):hover {
    background: var(--gravel);
}

tbody.subtle-hover tr:hover {
    background: var(--gravel);
}

tbody.hover-bg tr:hover {
    background: var(--gravel);
}

tbody tr td:first-child {
    border-radius: 0.25rem 0 0 0.25rem;
}

tbody tr td:last-child {
    border-radius: 0 0.25rem 0.25rem 0;
}

tr:has(input[type=checkbox]:checked) {
    background: var(--gravel);
}

td, th {
    padding: 0.75rem;
    vertical-align: middle;
    text-overflow: ellipsis;
    text-wrap: nowrap;
    overflow: hidden;
    max-width: 25vw;
    box-sizing: border-box;
}

tbody:not(.no-hover) tr:hover td,
tbody.subtle-hover tr:hover td {
    text-wrap: wrap;
}

th {
    font-size: 0.85rem;
    padding: 0.25rem 0.25rem;
}

.bordered-table {
    border-collapse: collapse;
}

    .bordered-table tbody tr:not(:last-child) td {
        border-bottom: 1px solid var(--gravel);
    }

.link-table th:first-child > a::before,
.link-table td:first-child > a::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    top: 0;
    inset: 0;
}

/* MODALS */

#modal {
    z-index: 100;
}

#modal-bg {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: var(--limed-spruce);
    opacity: 0.9;
}

#modal-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px;
    overflow: auto;
}

#modal-content {
    min-width: 400px;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

/* COURSE PAGE */
.top-section {
    height: 380px;
}

    .top-section h1 {
        font-size: 40px;
    }

.course-image-box {
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

.bg-nth > div:nth-child(2n) {
    background: var(--light-gravel);
    box-shadow: 0px 0px 0px 48px var(--light-gravel);
    border-radius: 4px;
}

.faq-section li:not(:only-child),
.module-section li:not(:only-child) {
    padding: 16px 0;
    border-bottom: 1px solid var(--gravel);
}

/*.progress-section {
    background: var(--light-gravel);
    box-shadow: 0px 0px 0px 48px var(--light-gravel);
    border-radius: 4px;
}*/

/* MENU */

#sidebar-toggle-button {
    display: none;
    position: absolute;
    top: 4px;
    left: 0px;
    background: var(--casablanca);
    border: 2px solid var(--casablanca);
    border-radius: 0 8px 8px 0;
    border-left: none;
    padding: 8px 4px;
}

    #sidebar-toggle-button i {
        font-weight: bold;
        display: block;
    }

/* TEXT EDITOR */

.textarea-container .input {
    border-radius: 0 0 4px 4px;
}

.texteditor-toolbar {
    border: 1px solid var(--gravel);
    background: var(--cloud);
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}

    .texteditor-toolbar button {
        background: none;
        border: none;
        color: inherit;
        border-radius: 0;
        padding: 6px 8px;
    }

        .texteditor-toolbar button:not(:last-child) {
            border-right: 1px solid var(--gravel);
        }

        .texteditor-toolbar button:hover {
            background: var(--light-gravel);
        }

/* RESPONSIVENESS */

.mobile-only {
    display: none;
}

@media screen and (max-width: 1920px) {
    .course-card {
        width: calc(25% - 18px);
    }
}

@media screen and (max-width: 1600px) {
    .course-card {
        width: calc(33% - 14px);
    }
}

@media screen and (max-width: 1400px) {
    .course-card {
        width: calc(50% - 14px);
    }
}

@media screen and (max-width: 1000px) {

    #sidebar-toggle-button {
        display: block;
    }

    #sidebar-toggle:checked ~ #sidebar-toggle-button {
        left: 90%;
    }

        #sidebar-toggle:checked ~ #sidebar-toggle-button i {
            transform: scaleX(-1);
        }

    /*#sidebar {
        width: 0;
        min-width: 0;
        overflow-y: auto;
    }*/

    #sidebar-toggle:checked ~ #sidebar {
        width: 90%;
        min-width: 90%;
    }

    .wrap-1000 {
        flex-wrap: wrap;
    }

    .course-card-enrolled {
        flex-wrap: wrap;
    }

        .course-card-enrolled .thumb {
            width: 100%;
        }

    .learner #header {
        flex-direction: column;
        flex-wrap: wrap;
        gap: 32px;
    }

    .mobile-flex-col {
        flex-direction: column;
    }

    .mobile-flex-col-reverse {
        flex-direction: column-reverse;
    }
}

@media screen and (max-width: 680px) {
    .mobile-only {
        display: flex;
    }

    .no-mobile {
        display: none;
    }

    /*#page {
        padding: 48px 24px;
    }

    section {
        padding: 32px;
    }*/

    .mobile-hide {
        display: none;
    }

    .mobile-no-padding {
        padding: 0 !important;
    }

    .mobile-no-padding-x {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .mobile-no-padding-y {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .mobile-flex-end {
        justify-content: end;
    }

    section.mobile-clean {
        padding: 0;
        border: none;
        background-color: transparent;
    }

    .mobile-flex-wrap {
        flex-wrap: wrap;
    }

    .heading-big {
        font-size: 46px;
    }

    .w-440 {
        width: 100%;
    }

    .max-440 {
        max-width: none;
    }

    .wrap-680 {
        flex-wrap: wrap;
    }

    .identity-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .course-card {
        width: 100%;
        max-width: none;
        height: unset;
        min-height: 472px;
    }

    .card-title-section {
        flex-direction: column;
        align-items: start;
        gap: 12px;
    }

    .card-status-section {
        justify-content: space-between;
        width: 100%;
    }

    .top-section {
        height: unset;
        flex-wrap: wrap-reverse;
        gap: 32px;
    }

        .top-section br {
            display: none;
        }

        .top-section .course-image-box {
            height: 200px;
        }

    .cert-box {
        width: 100%;
    }

    .module-section .thumb {
        display: none;
    }

    .carousel-section button {
        display: none;
    }

    .carousel-section ul {
        flex-direction: column;
    }

    .carousel-section li,
    .carousel-section li a {
        width: 100%;
    }

    .flex-gap-160 {
        gap: 80px;
    }

    .flex-gap-100 {
        gap: 48px;
    }

    .flex-gap-48 {
        gap: 24px;
    }

    .flex-gap-64 {
        gap: 32px;
    }

    .flex-gap-32 {
        gap: 16px;
    }

    .p-80 {
        padding: 32px;
    }

    .p-48 {
        padding: 24px;
    }

    .flex-fill {
        width: 100%;
        flex: 100%;
    }

    .mobile-full-width {
        max-width: 100% !important;
        width: 100% !important;
        flex: 100% !important;
        box-sizing: border-box;
    }

    .mobile-full-height {
        max-height: 100% !important;
        height: 100% !important;
        flex: 100% !important;
        box-sizing: border-box;
    }

    /*.learner #header {
        flex-direction: column;
        flex-wrap: wrap;
        gap: 32px;
    }*/

    #header {
        flex-direction: column;
        gap: 8px;
        align-items: start;
    }

    #header > div,
    #header form,
    #header select {
        width: 100%;
    }

    #sidebar {
        width: 0;
        overflow: hidden;
        padding: 0;
        margin:0;
    }

        #sidebar.mobile-open {
            width: 100%;
            max-width: none;
            z-index: 99;
            padding: 24px;
        }

    .sidebar-menu:first-child > div:first-child {
        flex-direction: row;
    }
}
