﻿/* PLACE AT: WorldScholarArena.Backend/wwwroot/academy/css/emp.css   (new file) */
/* Employee Onboarding: employee portal, sign-in and invitation pages, admin console. Loaded after academy.css and publish.css. Nothing here is wider than its container, so no page scrolls sideways. */
.emp {
    --em: #0b4a38;
    --emd: #06281e;
    --em3: #0f5c45;
    --gold: #b8891a;
    --gold2: #e5c765;
    --ink: #1d2a26;
    --ink2: #44534d;
    --mut: #55645e;
    --line: #d9d0b4;
    --line2: #e9e2cb;
    --tint: #eef5f1;
    --cream: #fbf6e6;
    --card: #fffdf7;
    --red: #a33a2f;
    --grn: #1f7a5c;
    margin: 0;
    background: #fbf8f0;
    color: var(--ink);
    font: 16px/1.6 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip
}

    .emp * {
        box-sizing: border-box
    }

    .emp img {
        max-width: 100%
    }

    .emp h1, .emp h2, .emp h3 {
        font-family: Georgia,"Times New Roman",serif;
        color: var(--em);
        line-height: 1.2;
        text-wrap: balance;
        margin: 0
    }

    .emp #app {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-width: 0
    }

.e-top {
    background: linear-gradient(180deg,#06281e,#0b4a38);
    border-bottom: 3px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 30
}

    .e-top .in {
        max-width: 1180px;
        margin: 0 auto;
        padding: 8px 16px;
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
        min-height: 62px
    }

.e-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    min-width: 0
}

    .e-brand img {
        height: 40px;
        width: auto;
        border-radius: 8px;
        background: #fff;
        padding: 2px
    }

    .e-brand b {
        display: block;
        font: 700 16px/1.15 Georgia,serif
    }

    .e-brand small {
        display: block;
        font-size: 11px;
        letter-spacing: .14em;
        text-transform: uppercase;
        color: var(--gold2)
    }

.e-nav {
    margin-left: auto;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap
}

    .e-nav a, .e-nav button {
        color: #fff;
        background: transparent;
        border: 1px solid transparent;
        border-radius: 8px;
        padding: 7px 11px;
        font: 600 14px system-ui,sans-serif;
        text-decoration: none;
        cursor: pointer;
        min-height: 38px
    }

        .e-nav a:hover, .e-nav button:hover, .e-nav .on {
            background: rgba(255,255,255,.14)
        }

    .e-nav .lang {
        border-color: rgba(255,255,255,.45)
    }

    .e-nav :focus-visible {
        outline: 3px solid var(--gold2);
        outline-offset: 2px
    }

.e-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 16px 48px;
    width: 100%;
    min-width: 0
}

.e-foot {
    background: #f3efe2;
    border-top: 1px solid var(--line);
    padding: 18px 16px;
    font-size: 12.5px;
    color: var(--mut)
}

    .e-foot .in {
        max-width: 1180px;
        margin: 0 auto;
        display: flex;
        gap: 14px;
        align-items: center;
        flex-wrap: wrap
    }

    .e-foot img {
        height: 54px;
        width: auto
    }

    .e-foot b {
        color: var(--em)
    }

.e-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(11,74,56,.06),0 6px 22px rgba(11,74,56,.07);
    min-width: 0
}

.e-hero {
    background: linear-gradient(135deg,#06281e,#0b4a38 70%);
    color: #fff;
    border-radius: 16px;
    padding: 26px;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 22px;
    align-items: center;
    border-bottom: 4px solid var(--gold)
}

    .e-hero h1 {
        color: #fff;
        font-size: clamp(24px,3.6vw,36px)
    }

    .e-hero p {
        margin: 8px 0 0;
        color: #e9f1ed;
        max-width: 62ch
    }

    .e-hero .k {
        font: 700 11px system-ui;
        letter-spacing: .2em;
        text-transform: uppercase;
        color: var(--gold2);
        margin-bottom: 6px
    }

.e-ring {
    width: 118px;
    height: 118px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--gold2) calc(var(--p)*1%),rgba(255,255,255,.16) 0);
    flex: none
}

    .e-ring > div {
        width: 92px;
        height: 92px;
        border-radius: 50%;
        background: #06281e;
        display: grid;
        place-items: center;
        text-align: center;
        font: 700 24px Georgia,serif;
        color: #fff;
        line-height: 1
    }

    .e-ring small {
        display: block;
        font: 600 10px system-ui;
        letter-spacing: .1em;
        color: var(--gold2);
        text-transform: uppercase;
        margin-top: 3px
    }

@media(max-width:640px) {
    .e-hero {
        grid-template-columns: 1fr
    }

    .e-ring {
        margin: 0 auto
    }
}

.e-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill,minmax(250px,1fr))
}

.e-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0
}

.e-kpis {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit,minmax(140px,1fr))
}

.e-kpi {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px
}

    .e-kpi .v {
        font: 700 26px Georgia,serif;
        color: var(--em)
    }

    .e-kpi .l {
        font-size: 12px;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--mut)
    }

.e-track {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    overflow: hidden
}

    .e-track > header {
        background: var(--tint);
        padding: 14px 18px;
        display: flex;
        gap: 12px;
        align-items: center;
        flex-wrap: wrap;
        border-bottom: 1px solid var(--line)
    }

        .e-track > header h2 {
            font-size: 20px;
            flex: 1;
            min-width: 200px
        }

        .e-track > header p {
            margin: 2px 0 0;
            font-size: 14px;
            color: var(--ink2);
            flex-basis: 100%
        }

    .e-track .body {
        padding: 16px 18px
    }

    .e-track.locked {
        opacity: .72
    }

.e-mod {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: var(--ink);
    overflow: hidden;
    min-width: 0;
    transition: box-shadow .15s,transform .15s
}

    .e-mod:hover {
        box-shadow: 0 8px 22px rgba(11,74,56,.16);
        transform: translateY(-2px)
    }

    .e-mod:focus-visible {
        outline: 3px solid var(--gold);
        outline-offset: 2px
    }

    .e-mod .pic {
        height: 92px;
        background: linear-gradient(135deg,#0b4a38,#1f7a5c);
        display: grid;
        place-items: center;
        overflow: hidden
    }

        .e-mod .pic img {
            height: 76px;
            width: auto;
            border-radius: 8px;
            object-fit: contain
        }

    .e-mod .tx {
        padding: 12px 14px 14px;
        display: flex;
        flex-direction: column;
        gap: 6px;
        flex: 1
    }

    .e-mod .n {
        font: 700 11px system-ui;
        letter-spacing: .14em;
        text-transform: uppercase;
        color: var(--gold)
    }

    .e-mod h3 {
        font-size: 17px
    }

    .e-mod p {
        margin: 0;
        font-size: 13.5px;
        color: var(--ink2);
        flex: 1
    }

.e-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    padding: 3px 10px;
    font: 700 12px system-ui;
    background: var(--line2);
    color: var(--ink2);
    white-space: nowrap
}

    .e-pill.ok {
        background: #dcefe5;
        color: #145a43
    }

    .e-pill.warn {
        background: #fbf0cf;
        color: #7d5a0b
    }

    .e-pill.bad {
        background: #f6d9d4;
        color: #8a2f25
    }

    .e-pill.dark {
        background: var(--em);
        color: #fff
    }

.e-bar {
    height: 8px;
    border-radius: 99px;
    background: var(--line2);
    overflow: hidden;
    min-width: 60px
}

    .e-bar > i {
        display: block;
        height: 100%;
        background: linear-gradient(90deg,var(--em),var(--grn));
        border-radius: 99px
    }

.e-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 9px;
    border: 1.5px solid var(--gold);
    background: var(--gold);
    color: #1a1405;
    font: 700 15px system-ui,sans-serif;
    text-decoration: none;
    cursor: pointer
}

    .e-btn:hover {
        background: var(--gold2)
    }

    .e-btn.em {
        background: var(--em);
        border-color: var(--em);
        color: #fff
    }

        .e-btn.em:hover {
            background: var(--em3)
        }

    .e-btn.line {
        background: transparent;
        border-color: var(--em);
        color: var(--em)
    }

        .e-btn.line:hover {
            background: var(--tint)
        }

    .e-btn.sm {
        min-height: 34px;
        padding: 5px 12px;
        font-size: 13px
    }

    .e-btn.danger {
        background: var(--red);
        border-color: var(--red);
        color: #fff
    }

    .e-btn[disabled] {
        opacity: .55;
        cursor: not-allowed
    }

    .e-btn:focus-visible {
        outline: 3px solid var(--gold2);
        outline-offset: 2px
    }

.e-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center
}

.e-note {
    border-left: 4px solid var(--gold);
    background: var(--cream);
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
    font-size: 15px
}

    .e-note.ok {
        border-color: var(--grn);
        background: #eaf5ef
    }

    .e-note.bad {
        border-color: var(--red);
        background: #fbeceb
    }

.e-sub {
    color: var(--ink2);
    margin: 6px 0 0
}

.e-mut {
    color: var(--mut);
    font-size: 13.5px
}
/* lesson */
.e-lesson {
    max-width: 820px;
    margin: 0 auto;
    width: 100%
}

    .e-lesson .lead {
        font: italic 18px/1.6 Georgia,serif;
        color: var(--ink2);
        margin: 8px 0 0
    }

    .e-lesson section {
        margin-top: 26px
    }

        .e-lesson section h2 {
            font-size: 22px;
            padding-bottom: 6px;
            border-bottom: 2px solid var(--gold);
            margin-bottom: 10px
        }

        .e-lesson section p {
            margin: 0;
            font-size: 17px;
            line-height: 1.75;
            max-width: 68ch
        }

.e-lhero {
    display: grid;
    grid-template-columns: minmax(0,1fr) 150px;
    gap: 18px;
    align-items: center
}

    .e-lhero img {
        width: 150px;
        height: auto;
        border-radius: 12px;
        border: 1px solid var(--line);
        background: #fff
    }

@media(max-width:560px) {
    .e-lhero {
        grid-template-columns: 1fr
    }

        .e-lhero img {
            width: 120px
        }
}

.e-fig {
    margin: 22px 0 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 14px
}

    .e-fig figcaption {
        text-align: center;
        font: italic 13.5px Georgia,serif;
        color: var(--mut);
        margin-top: 10px
    }

.e-tiles {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit,minmax(150px,1fr))
}

.e-tile {
    background: var(--tint);
    border-radius: 10px;
    padding: 12px;
    min-width: 0
}

    .e-tile b {
        display: block;
        color: var(--em);
        font-size: 15px
    }

    .e-tile span {
        display: block;
        font-size: 13px;
        color: var(--ink2);
        margin-top: 3px
    }

    .e-tile .num {
        display: inline-grid;
        place-items: center;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: var(--em);
        color: #fff;
        font: 700 14px system-ui;
        margin-bottom: 6px
    }

    .e-tile.first {
        background: var(--emd)
    }

        .e-tile.first b {
            color: #fff
        }

        .e-tile.first span {
            color: var(--gold2)
        }

        .e-tile.first .num {
            background: var(--gold2);
            color: var(--emd)
        }

.e-layers {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.e-layer {
    display: grid;
    grid-template-columns: 34px minmax(90px,150px) minmax(0,1fr);
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--tint)
}

    .e-layer:nth-child(odd) {
        background: var(--emd);
        color: #fff
    }

    .e-layer i {
        font: 700 20px Georgia,serif;
        font-style: normal;
        color: var(--gold)
    }

    .e-layer:nth-child(odd) i {
        color: var(--gold2)
    }

    .e-layer b {
        color: var(--em)
    }

    .e-layer:nth-child(odd) b {
        color: #fff
    }

    .e-layer span {
        font-size: 14px
    }

@media(max-width:520px) {
    .e-layer {
        grid-template-columns: 28px minmax(0,1fr)
    }

        .e-layer span {
            grid-column: 2
        }
}

.e-pair {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr))
}

    .e-pair > div {
        border-radius: 10px;
        padding: 14px;
        background: var(--tint)
    }

        .e-pair > div:first-child {
            background: var(--emd);
            color: #fff
        }

    .e-pair b {
        display: block;
        font: 700 16px Georgia,serif;
        color: var(--em);
        margin-bottom: 6px
    }

    .e-pair > div:first-child b {
        color: var(--gold2)
    }

    .e-pair ul {
        margin: 0;
        padding-left: 18px;
        font-size: 14.5px
    }

    .e-pair li {
        margin: 3px 0
    }

.e-take {
    margin-top: 26px;
    background: var(--cream);
    border-left: 4px solid var(--gold);
    border-radius: 0 12px 12px 0;
    padding: 14px 18px
}

    .e-take h2 {
        font-size: 18px;
        margin-bottom: 6px
    }

    .e-take ul {
        margin: 0;
        padding-left: 20px
    }

    .e-take li {
        margin: 4px 0
    }
/* examinations */
.e-exam {
    max-width: 780px;
    margin: 0 auto;
    width: 100%
}

.e-timer {
    position: sticky;
    top: 70px;
    z-index: 5;
    background: var(--emd);
    color: #fff;
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between
}

    .e-timer b {
        font: 700 22px ui-monospace,Menlo,Consolas,monospace;
        color: var(--gold2)
    }

.e-q {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 16px;
    margin-top: 14px
}

    .e-q legend, .e-q .qt {
        font: 700 16.5px/1.45 system-ui;
        color: var(--ink);
        padding: 0;
        margin-bottom: 10px;
        display: block
    }

    .e-q fieldset {
        border: 0;
        padding: 0;
        margin: 0;
        min-width: 0
    }

.e-opt {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 8px;
    cursor: pointer;
    background: #fff
}

    .e-opt:hover {
        border-color: var(--em)
    }

    .e-opt input {
        margin-top: 4px;
        accent-color: var(--em);
        width: 18px;
        height: 18px;
        flex: none
    }

    .e-opt:has(input:checked) {
        border-color: var(--em);
        background: var(--tint)
    }

    .e-opt.right {
        border-color: var(--grn);
        background: #eaf5ef
    }

    .e-opt.wrong {
        border-color: var(--red);
        background: #fbeceb
    }

.e-why {
    margin-top: 10px;
    font-size: 14.5px;
    color: var(--ink2)
}

.e-score {
    text-align: center;
    padding: 24px
}

    .e-score .big {
        font: 700 56px Georgia,serif;
        color: var(--em);
        line-height: 1
    }

    .e-score.fail .big {
        color: var(--red)
    }
/* forms and tables */
.emp .fld {
    margin: 0 0 14px;
    min-width: 0
}

    .emp .fld label {
        display: block;
        font: 700 13.5px system-ui;
        color: var(--ink2);
        margin-bottom: 5px
    }

    .emp .fld input, .emp .fld select, .emp .fld textarea {
        width: 100%;
        min-height: 44px;
        padding: 9px 12px;
        border: 1.5px solid #8a8470;
        border-radius: 9px;
        font: 16px system-ui;
        background: #fff;
        color: var(--ink)
    }

    .emp .fld textarea {
        min-height: 84px
    }

        .emp .fld input:focus, .emp .fld select:focus, .emp .fld textarea:focus {
            outline: 3px solid var(--gold2);
            border-color: var(--em)
        }

.emp .hint {
    font-size: 12.5px;
    color: var(--mut);
    margin-top: 4px
}

.emp .err {
    color: var(--red);
    font-weight: 700;
    min-height: 0;
    margin: 6px 0
}

.e-form {
    display: grid;
    gap: 0 14px;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr))
}

    .e-form .full {
        grid-column: 1/-1
    }

.e-auth {
    max-width: 600px;
    margin: 30px auto 50px;
    padding: 0 16px;
    width: 100%
}

    .e-auth .e-card {
        padding: 28px
    }

    .e-auth h1 {
        font-size: 28px;
        margin-bottom: 6px
    }

.e-scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    max-width: 100%
}

.e-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
    min-width: 640px
}

    .e-table th {
        background: var(--em);
        color: #fff;
        text-align: left;
        padding: 9px 10px;
        font: 700 12.5px system-ui;
        letter-spacing: .04em;
        white-space: nowrap
    }

    .e-table td {
        padding: 9px 10px;
        border-top: 1px solid var(--line2);
        vertical-align: top;
        overflow-wrap: anywhere
    }

    .e-table tr:nth-child(even) td {
        background: #fbf8f0
    }

.e-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 0 0 16px;
    border-bottom: 2px solid var(--line)
}

    .e-tabs a {
        padding: 9px 14px;
        border-radius: 9px 9px 0 0;
        text-decoration: none;
        color: var(--ink2);
        font: 700 14.5px system-ui
    }

        .e-tabs a.on {
            background: var(--em);
            color: #fff
        }

        .e-tabs a:hover:not(.on) {
            background: var(--tint)
        }

.e-checks {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

    .e-checks label {
        display: inline-flex;
        gap: 6px;
        align-items: center;
        border: 1.5px solid var(--line);
        border-radius: 9px;
        padding: 7px 11px;
        font: 600 14px system-ui;
        cursor: pointer;
        background: #fff
    }

    .e-checks input {
        accent-color: var(--em);
        width: 17px;
        height: 17px
    }

.e-cert {
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 14px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0
}

    .e-cert code {
        font: 700 13px ui-monospace,Menlo,Consolas,monospace;
        color: var(--em);
        overflow-wrap: anywhere
    }

@media print {
    .e-top, .e-foot, .e-nav, .noprint {
        display: none !important
    }
}

@media (prefers-reduced-motion:reduce) {
    .e-mod {
        transition: none
    }
}
/* phones: the header scrolls away so the lesson and the examination timer keep the screen */
@media(max-width:700px) {
    .e-top {
        position: static
    }

    .e-timer {
        top: 8px
    }

    .e-nav {
        margin-left: 0
    }
}
