@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

:root {
    --accent: #b09149;
    --accent-dark: #977425;
    --accent-light: #caba95;
    --accent-lighter: #faf6ee;
}

*, :after, :before {
    box-sizing:border-box
}

::placeholder {
    color: var(--accent-light);
}

body {
    margin: 0;
    background-color: #f4f7fa;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
}

body[hidden] {
    display: block;
}

header {
    display: flex;
    padding: 10px 20px;
    border-bottom: 1px solid #d9e3ec;
    background-color: #fff;
    align-items: center;
    justify-content: space-between;
}

main {
    display: flex;
    align-items: flex-start;
    max-width: 1888px;
    margin: 0 auto;
    padding: 2em;
}

h1, h2, h3 {
    margin-top: 0;
    margin-bottom: 1.25em;
}

h1 {
    font-size: 2em;
    font-weight: 300;
}

h2 {
    font-size: 1.25em;
}

h3 {
    font-size: 1em;
}

input {
    width: 100%;
    height: 40px;
    margin-bottom: 1em;
    padding: .5em 1em;
    border: 1px solid var(--accent-light);
    border-radius: 10px;
    color: #666;
    background-color: #fff;
    font-family: inherit;
    font-size: 1em;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

input:focus {
    border-color: var(--accent);
    outline: none;
}

input::file-selector-button {
    height: 40px;
    margin: -0.5em -1em;
    margin-right: 1em;
    padding: inherit;
    border: 0;
    border-radius: 0;
    color: #666;
    background-color: var(--accent-lighter);
    pointer-events: none;
}

input.invalid {
    border-color: #f45 !important;
    box-shadow: 0 0 5px #f45;
}

input.invalid:focus {
    box-shadow: 0 0 10px #f21;
}

select,
select + .fsb-select {
    width: 100%;
    height: 40px;
    margin-bottom: 1em;
    --fsb-border: 1px solid var(--accent-light);
    --fsb-radius: 10px;
    --fsb-color: #666;
    --fsb-padding: .5em 1em;
    --fsb-arrow-size: 8px;
    --fsb-arrow-padding: 1em;
    --fsb-hover-background: var(--accent-lighter);
    --fsb-shadow: none;
}

label {
    display: block;
    margin-bottom: .5em;
    font-weight: 700;
}

label.required:after {
    content: '*';
    display: inline-block;
    margin-left: .125em;
    color: #c00;
    font-size: 1.25em;
    vertical-align: middle;
}

form > .button {
    margin-top: .5em;
}

a {
    color: var(--accent-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 0 1px 1px #f4f4f4;
}

thead {
    background-color: #f4f4f4;
}

tbody tr:hover {
    background-color: #fafafa;
}

tr {
    border-top: 1px solid #f4f4f4;
}

th, td {
    padding: 1em 1.5em;
    text-align: inherit;
}

th {
    padding: 1em 1.75em;
    font-size: .875em;
    white-space: nowrap;
}


th.short {
    max-width: 100px;
}

th.action,
td.action {
    width: 80px;
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0,0,0,0);
    overflow: hidden;
}

.error,
.confirmation {
    display: inline-block;
    margin-bottom: 15px;
}

.error {
    color: #c00;
}

.confirmation {
    color: #480;
}

.error.toast,
.confirmation.toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5em 1em;
    border-radius: 10px;
    box-shadow: 0 0 1px .5px;
}

.error.toast {
    background-color: #fee;
}

.confirmation.toast {
    background-color: #efe;
}

.toast button {
    width: 2em;
    height: 2em;
    padding: 0;
    color: currentColor;
    background-color: transparent;
    font-size: 1em;
}

.toast button:hover {
    background-color: rgba(127, 127, 0, .1);
}

.button {
    display: inline-block;
    height: 36px;
    padding: 0 20px;
    border: 0;
    border-radius: 5px;
    color: #fff;
    background-color: var(--accent);
    font-family: inherit;
    font-size: .875em;
    font-weight: 400;
    line-height: 36px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    vertical-align: middle;
    cursor: pointer;
}

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

.button:hover {
    background-color: var(--accent-dark);
    text-decoration: none;
}

.button:not(.outline)[disabled] {
    color: #fff !important;
    background-color: #ccc !important;
    cursor: not-allowed;
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 0;
    font-size: 1em;
    color: var(--accent);
    background-color: transparent;
}

.icon:hover {
    color: var(--accent-dark);
    background-color: transparent;
}

.icon svg {
    display: inline-block;
    width: 1.25em;
    height: 1.25em;
    stroke-width: 0;
    stroke: currentColor;
    fill: currentColor;
    pointer-events: none;
}

.outline {
    border: 1px solid currentColor;
    color: var(--accent);
    background-color: transparent;
}

.outline:hover {
    background-color: var(--accent-lighter);
}

.outline[disabled] {
    color: #ccc;
    background-color: transparent;
    cursor: not-allowed;
}

.assertive:not(.icon):not(.outline) {
    background-color: #c00;
}

.assertive:not(.icon):not(.outline):hover {
    background-color: #f21;
}

.assertive.icon,
.assertive.outline:not([disabled]) {
    color: #c00;
}

.assertive.icon:hover {
    color: #f21;
}

.svg-sprites {
    display: none;
}

.toolbar {
    display: flex;
}

.toolbar .button:not(.icon) {
    font-size: .75em;
}

.toolbar .icon.button {
    width: 36px;
}

.branding img {
    height: 50px;
}

.connected-user {
    display: none;
}

.login section {
    width: 300px;
    margin: 100px auto;
    padding: 30px;
    border-radius: 10px;
    background-color: #fff;
    text-align: center;
    box-shadow: 0 0 100px rgba(0, 0, 0, .15);
}

.login label {
    width: 1px;
    height: 1px;
    margin: 0;
    text-indent: 10px;
    overflow: hidden;
}

.login button {
    width: 100%;
    margin-bottom: 1.5em;
}

.menu {
    flex-shrink: 0;
    width: 200px;
    margin-right: 1.5em;
    padding: 1em 0;
    border-radius: 10px;
    color: #fff;
    background-color: var(--accent-dark);
    box-shadow: 0 5px 20px rgba(0, 0, 0, .2);
}

.menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu a {
    display: block;
    padding: .75em 1.5em;
    color: #fff;
    font-size: .875em;
    text-decoration: none;
}

.menu a.active,
.menu a:hover {
    background-color: var(--accent);
}

.content {
    flex-grow: 1;
    padding: 1.5em;
    border-radius: 10px;
    background-color: #fff;
    font-size: .875em;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .1);
}

.page-header,
.page-footer {
    display: flex;
    justify-content: space-between;
}

.page-footer {
    margin-top: 2em;
    align-items: center;
}

.page-header .button {
    margin-bottom: 1.5em;
}

.no-records {
    padding: 1em;
    text-align: center;
    box-shadow: 0 0 1px 1px #f4f4f4;
}

.form,
.details {
    margin-bottom: 1.5em;
    padding: 2em;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    background-color: #f7f7f7;
}

.details {
    display: grid;
    grid-template-columns: 1fr 1.75fr;
    gap: .5em;
    border-color: var(--accent-light);
    background-color: var(--accent-lighter);
    white-space: nowrap;
}

.dashboard .details {
    grid-template-columns: 1fr 1fr;
}

.settings {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: 1.5em;
}

.scorm-file {
    margin-bottom: .5em;
    padding: 1em;
    border: 1px solid #a9d67c;
    border-radius: 10px;
    background-color: #d6e8c4;
}

.update-scorm-file {
    margin: 1em 0 .5em 0;
}

.float-right {
    float: right;
}

form.single-action {
    display: inline-block;
}

form.single-action .button {
    margin-top: 0;
}

.button + form.single-action,
form.single-action + form.single-action {
    margin-left: 5px;
}

.client-courses {
    margin-top: 4em;
}

.client-courses:before {
    content: '';
    display: block;
    width: 50%;
    height: 1px;
    margin: 3em auto;
    background-color: #ddd;
}

.bulk-actions {
    margin-bottom: 1em;
}

.bulk-actions > div {
    margin-bottom: .5em;
    font-size: .875em;
    font-weight: 700;
}

.page-footer:has(.bulk-actions) {
    margin-top: 1em;
    margin-bottom: -1em;
}

.bulk-actions-form {
    display: none;
    margin-top: 1em;
}

.enrollment,
.inline-form {
    display: flex;
    justify-content: space-between;
}

.inline-form > div {
    width: 32%;
}

.inline-form label {
    font-weight: normal;
}

.enrollment > div {
    width: 48.5%;
}

.enrollment-courses > div {
    padding: 0;
    margin-bottom: 1.5em;
    border: 1px solid var(--accent-light);
    border-radius: 10px;
    background-color: #fff;
    overflow: auto;
}

.enrollment-courses > div.invalid {
    border-color: #f45;
    box-shadow: 0 0 5px #f45;
}

.enrollment-courses .error {
    display: block;
    margin-top: -1em;
}

.enrollment-courses ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.enrollment-courses ul label {
    display: flex;
    margin: 1em 0;
}

.enrollment-courses ul label input {
    margin-right: 5px;
}

.enrollment-courses ul ul {
    margin-left: 1.5em;
}

.enrollment-courses input.course + span {
    font-weight: normal;
}

.enrollment-courses > div > ul {
    height: 400px;
    padding: 0 1em;
    overflow: auto;
}

.subtree {
    display: inline-block;
    width: 1em;
    height: .75em;
    margin-right: .75em;
    vertical-align: text-top;
    box-shadow: -1px 1px 0 0;
}

.category-level:not(:has(.course)) {
    display: none;
}

/* Large phone, Tablet, Desktop */
/*@media only screen and (min-width: 600px) {*/

    .connected-user {
        display: flex;
        margin-right: 1em;
        font-size: .9em;
        align-items: center;
    }

    .dialog-wrapper {
        width: 45%;
        
    }
/*}*/