@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+Arabic:wght@400;500;600;700;800&display=swap');

:root {
    --ink: #172b37;
    --muted: #73838a;
    --navy: #113a48;
    --teal: #2f8b86;
    --line: #e7edec;
    --bg: #f6f8f7;
    --white: #fff
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'DM Sans',sans-serif
}

h1, h2, h3 {
    font-family: Manrope,sans-serif;
    letter-spacing: -.045em
}

a {
    color: #177f80;
    text-decoration: none
}

    a:hover {
        color: #0f5b61
    }

.app-shell {
    min-height: 100vh;
    display: flex
}

.sidebar {
    width: 256px;
    flex: none;
    background: #123947;
    /*background: #195063;*/
    color: #d8e9e9;
    display: flex;
    flex-direction: column;
    padding: 31px 20px;
    position: sticky;
    top: 0;
    height: 100vh
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #103745;
    font-family: Manrope,sans-serif;
    font-size: 20px;
    font-weight: var(--arabic-heading-weight, 800);
    letter-spacing: -.055em
}

    .brand:hover {
        color: inherit
    }

    .brand small {
        display: block;
        font: var(--arabic-control-weight, 700) 9px 'DM Sans',sans-serif;
        letter-spacing: .23em;
        color: #75a8ad;
        margin-top: 1px
    }

.sidebar .brand {
    color: white;
    margin: 0 9px 56px
}

.brand-mark {
    display: block;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain
}

.nav-caption {
    font-size: 10px;
    font-weight: var(--arabic-control-weight, 700);
    letter-spacing: .17em;
    color: #7ba1a9;
    margin: 0 14px 15px
}

.side-nav a {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #c5dddf;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: var(--arabic-control-weight, 600);
    margin-bottom: 5px
}

    .side-nav a:hover, .side-nav a:focus {
        background: #23505c;
        color: white
    }

.side-nav .nav-caption {
    margin-top: 31px
}

.nav-icon {
    font-size: 19px;
    width: 22px;
    text-align: center;
    color: #9acaca
}

.sidebar-foot {
    margin-top: auto;
    padding: 18px 13px;
    border-top: 1px solid #315663;
    color: #94b9bc;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 9px
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6ac9ad
}

.main-column {
    flex: 1;
    min-width: 0
}

.topbar {
    min-height: 76px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 45px;
    gap: 15px
}

.topbar-title {
    color: #6b8088;
    font-size: 13px;
    font-weight: var(--arabic-control-weight, 600)
}

.topbar-divider {
    color: #cad3d3;
    margin: 0 10px
}

.user-area {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px
}

    .user-area form {
        margin: 0
    }

.avatar {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    background: #e5f3ef;
    border-radius: 50%;
    color: #25867b;
    font-weight: var(--arabic-heading-weight, 800)
}

.user-name {
    font-weight: var(--arabic-control-weight, 700);
    color: var(--ink)
}

.text-button {
    border: 0;
    background: transparent;
    color: #177f80;
    padding: 0;
    font-weight: var(--arabic-control-weight, 600);
    cursor: pointer
}

.content {
    max-width: 1320px;
    margin: auto;
    padding: 42px 45px 80px
}

.eyebrow {
    font-size: 10px;
    font-weight: var(--arabic-heading-weight, 800);
    letter-spacing: .19em;
    color: #28978e;
    margin-bottom: 13px
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px
}

    .page-heading h1 {
        font-size: 34px;
        font-weight: var(--arabic-heading-weight, 800);
        margin: 0 0 6px
    }

    .page-heading p, .muted {
        color: var(--muted);
        margin: 0
    }

.date-pill, .count-pill {
    border: 1px solid var(--line);
    background: white;
    border-radius: 100px;
    color: #6d8185;
    padding: 9px 15px;
    font-size: 12px;
    white-space: nowrap
}

.hero-card {
    min-height: 276px;
    background: linear-gradient(110deg,#163d49 0%,#1c5359 72%,#348479 100%);
    border-radius: 18px;
    color: #fff;
    padding: 42px 47px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 30px #21484b19;
    /*MAA*/
    display: none;
}

.hero-label {
    font-size: 10px;
    font-weight: var(--arabic-heading-weight, 800);
    letter-spacing: .18em;
    color: #9ce0cd
}

.hero-card h2 {
    font-size: 35px;
    max-width: 440px;
    font-weight: var(--arabic-heading-weight, 800);
    margin: 22px 0 14px
}

.hero-card p {
    max-width: 455px;
    color: #d2e5e2;
    line-height: 1.7;
    margin: 0
}

.hero-art {
    position: absolute;
    width: 300px;
    height: 300px;
    right: 60px;
    top: 28px;
    border: 1px solid #ffffff35;
    border-radius: 50%
}

    .hero-art span {
        position: absolute;
        border: 1px solid #ffffff42;
        border-radius: 50%;
        inset: 32px
    }

        .hero-art span:nth-child(2) {
            inset: 70px;
            background: #ffffff12
        }

        .hero-art span:nth-child(3) {
            inset: 112px;
            background: #9ce0cd55
        }

.card-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
    margin-top: 23px
}

.info-card, .panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 5px 17px #19394408
}

.info-card {
    padding: 27px
}

.card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 22px;
    margin-bottom: 20px
}

    .card-icon.blue {
        background: #e9f3f7;
        color: #438cad
    }

    .card-icon.mint {
        background: #e4f4ee;
        color: #2e9c82
    }

    .card-icon.peach {
        background: #fff1e8;
        color: #cb855c
    }

.info-card h3 {
    font-size: 17px;
    font-weight: var(--arabic-heading-weight, 800)
}

.info-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
    margin: 0
}

.panel {
    padding: 27px;
    margin-bottom: 22px
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 17px
}

    .section-head h2, .form-panel h2 {
        font-size: 20px;
        font-weight: var(--arabic-heading-weight, 800);
        margin: 0 0 5px
    }

    .section-head p {
        color: var(--muted);
        font-size: 13px;
        margin: 0
    }

.table-wrap {
    overflow-x: auto
}

.data-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px
}

    .data-table th {
        text-transform: uppercase;
        letter-spacing: .12em;
        font-size: 10px;
        color: #8c9ba0;
        font-weight: var(--arabic-heading-weight, 800);
        border-bottom: 1px solid var(--line);
        padding: 15px 12px
    }

    .data-table td {
        padding: 18px 12px;
        border-bottom: 1px solid #edf1f0;
        color: #52656b
    }

    .data-table tr:last-child td {
        border-bottom: 0
    }

    .data-table strong {
        color: var(--ink)
    }

.status {
    border-radius: 100px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: var(--arabic-control-weight, 700)
}

    .status.active {
        background: #e6f6ee;
        color: #288960
    }

    .status.inactive {
        background: #f9ecea;
        color: #aa5753
    }

.actions {
    display: flex;
    align-items: center;
    gap: 14px
}

    .actions form {
        margin: 0
    }

.danger {
    color: #b65b5b
}

.form-panel {
    max-width: 850px;
    padding: 35px
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

label {
    display: block;
    font-size: 12px;
    font-weight: var(--arabic-control-weight, 700);
    color: #3a5158;
    margin: 18px 0 8px
}

.form-control {
    border: 1px solid #dce5e4;
    border-radius: 9px;
    padding: 11px 13px;
    font-size: 14px
}

    .form-control:focus {
        border-color: #60b4ab;
        box-shadow: 0 0 0 3px #60b4ab25
    }

.form-panel h2 {
    margin-top: 33px
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 10px;
    margin-top: 19px
}

.check-item {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    font-size: 13px
}

    .check-item input {
        accent-color: #288f85;
        width: 17px;
        height: 17px;
        flex: none
    }

    .check-item small {
        display: block;
        color: #9aabab;
        font-weight: 400;
        margin-top: 3px
    }

    .check-item.compact {
        display: inline-flex;
        margin-top: 20px
    }

.form-actions {
    margin-top: 30px;
    border-top: 1px solid var(--line);
    padding-top: 24px
}

.primary-button {
    border: 0;
    background: #1b7371;
    color: #fff;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    width: 100%;
    padding: 13px 17px;
    font-weight: var(--arabic-control-weight, 700);
    font-size: 13px;
    cursor: pointer
}

    .primary-button:hover {
        background: #125c5d;
        color: #fff
    }

.inline-button {
    width: auto;
    display: inline-flex
}

.narrow {
    max-width: 520px
}

    .narrow .primary-button {
        margin-top: 25px
    }

.guest-content {
    min-height: 100vh
}

.login-page {
    display: grid;
    grid-template-columns: 49% 51%;
    min-height: 100vh
}

.login-story {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg,#143b4b,#1e6266);
    padding: 56px 68px;
    color: white;
    display: flex;
    flex-direction: column
}

    .login-story .brand {
        z-index: 1
    }

.brand.light {
    color: white
}

.story-copy {
    position: relative;
    z-index: 1;
    margin: auto 0;
    max-width: 520px
}

    .story-copy .eyebrow {
        color: #9edccd
    }

    .story-copy h1 {
        font-size: clamp(47px,5vw,72px);
        font-weight: var(--arabic-heading-weight, 800);
        line-height: 1.08;
        margin: 25px 0
    }

        .story-copy h1 em {
            font-style: normal;
            color: #93d8bd
        }

    .story-copy p {
        font-size: 16px;
        line-height: 1.8;
        color: #d0e5e4;
        max-width: 425px
    }

.story-foot {
    position: relative;
    z-index: 1;
    color: #9bbfc1;
    font-size: 12px
}

.story-orb {
    position: absolute;
    border: 1px solid #ffffff20;
    border-radius: 50%;
    width: 510px;
    height: 510px;
    right: -170px;
    bottom: -180px
}

.orb-two {
    width: 350px;
    height: 350px;
    right: -90px;
    bottom: -100px;
    background: #ffffff08
}

.login-panel {
    display: grid;
    place-items: center;
    padding: 50px;
    background: #fbfcfb
}

.login-box {
    width: min(430px,100%)
}

    .login-box h2 {
        font-weight: var(--arabic-heading-weight, 800);
        font-size: 32px;
        margin: 0 0 10px
    }

    .login-box > .muted {
        margin-bottom: 32px
    }

.microsoft-button {
    width: 100%;
    background: #fff;
    border: 1px solid #dbe5e3;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 13px;
    font-weight: var(--arabic-control-weight, 700);
    color: #294650
}

    .microsoft-button > span:last-child {
        margin-left: auto
    }

.ms-mark {
    display: grid;
    grid-template-columns: repeat(2,8px);
    grid-template-rows: repeat(2,8px);
    gap: 2px
}

    .ms-mark i:nth-child(1) {
        background: #f25022
    }

    .ms-mark i:nth-child(2) {
        background: #7fba00
    }

    .ms-mark i:nth-child(3) {
        background: #00a4ef
    }

    .ms-mark i:nth-child(4) {
        background: #ffb900
    }

.divider {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #9baaaa;
    font-size: 11px;
    margin: 30px 0 6px
}

    .divider:before, .divider:after {
        content: '';
        height: 1px;
        background: #e2e8e7;
        flex: 1
    }

.login-box label {
    margin-top: 17px
}

.login-box .primary-button {
    margin-top: 24px
}

.login-help {
    text-align: center;
    color: #8c9c9e;
    font-size: 12px;
    margin-top: 30px
}

.notice {
    background: #edf6f3;
    border-radius: 10px;
    padding: 14px;
    color: #547f78;
    font-size: 13px
}

.center-message {
    max-width: 550px;
    margin: 12vh auto;
    text-align: center;
    padding: 40px
}

    .center-message h1 {
        font-weight: var(--arabic-heading-weight, 800)
    }

    .center-message p {
        color: var(--muted);
        line-height: 1.7
    }

    .center-message .inline-button {
        margin: auto
    }

.message-icon {
    font-size: 38px;
    color: #43a99e;
    margin-bottom: 20px
}

@media(max-width:850px) {
    .sidebar {
        width: 72px;
        padding: 22px 10px
    }

        .sidebar .brand {
            margin: 0 5px 40px
        }

            .sidebar .brand span:last-child, .sidebar .nav-caption, .sidebar-foot, .side-nav a {
                font-size: 0
            }

    .side-nav a {
        justify-content: center;
        padding: 10px
    }

    .nav-icon {
        font-size: 22px
    }

    .topbar {
        padding: 16px 22px
    }

    .content {
        padding: 30px 22px
    }

    .hero-art {
        right: -90px;
        opacity: .5
    }

    .login-story {
        padding: 35px
    }

    .user-name {
        display: none
    }
}

@media(max-width:640px) {
    .login-page {
        grid-template-columns: 1fr
    }

    .login-story {
        min-height: 240px
    }

    .story-copy {
        margin: 40px 0 0
    }

        .story-copy h1 {
            font-size: 36px;
            margin: 10px 0
        }

        .story-copy p, .story-foot, .story-orb {
            display: none
        }

    .login-panel {
        padding: 38px 25px
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column
    }

        .page-heading h1 {
            font-size: 27px
        }

    .date-pill {
        display: none
    }

    .hero-card {
        padding: 30px;
        min-height: 250px
    }

        .hero-card h2 {
            font-size: 27px
        }

    .hero-art {
        display: none
    }

    .card-grid, .form-row, .check-grid {
        grid-template-columns: 1fr
    }

    .topbar-title {
        font-size: 0
    }

    .topbar-divider {
        display: none
    }

    .user-area {
        margin-left: auto
    }

    .panel {
        padding: 20px
    }
}

.profile-avatar {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: #e3f2ee;
    color: #277f78;
    display: grid;
    place-items: center;
    font: var(--arabic-heading-weight, 800) 30px Manrope,sans-serif;
    margin-bottom: 20px
}

.profile-detail {
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 25px;
    padding-top: 20px;
    font-size: 13px
}

    .profile-detail span {
        color: var(--muted)
    }

    .profile-detail strong {
        color: var(--ink)
    }

.request-id {
    font-size: 11px;
    margin-top: 24px
}

/* Language and navigation controls */
.sidebar {
    transition: width .22s ease,padding .22s ease
}

.sidebar-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 47px
}

    .sidebar-brand-row .brand {
        margin: 0;
        min-width: 0
    }

    .sidebar-brand-row .brand-copy {
        white-space: nowrap
    }

.sidebar-toggle {
    flex: none;
    width: 29px;
    height: 29px;
    border: 1px solid #47707a;
    border-radius: 8px;
    background: #23505c;
    color: #e4f5f2;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 22px;
    line-height: 1
}

    .sidebar-toggle:hover, .sidebar-toggle:focus-visible {
        background: #34717a;
        outline: 2px solid #9ce0cd;
        outline-offset: 2px
    }

    .sidebar-toggle span {
        transform: translateY(-1px)
    }

.side-nav .nav-label {
    font-size: 16px
}

.language-form {
    margin: 0
}

.language-button {
    border: 1px solid #d9e5e3;
    border-radius: 8px;
    background: #fff;
    color: #216f6c;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: var(--arabic-heading-weight, 800);
    cursor: pointer;
    white-space: nowrap
}

    .language-button:hover, .language-button:focus-visible {
        background: #e8f5f2;
        outline: 2px solid #70c4b9;
        outline-offset: 2px
    }

.guest-content {
    position: relative
}

.guest-language {
    position: absolute;
    z-index: 5;
    inset-block-start: 28px;
    inset-inline-end: 30px
}

    .guest-language .language-button {
        box-shadow: 0 3px 12px #12394718
    }

.button-arrow, .back-arrow {
    display: inline-block
}

html[dir="rtl"] .button-arrow, html[dir="rtl"] .back-arrow {
    transform: scaleX(-1)
}

html.sidebar-collapsed .sidebar {
    width: 78px;
    padding-inline: 12px
}

html.sidebar-collapsed .sidebar-brand-row {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px
}

    html.sidebar-collapsed .sidebar-brand-row .brand-copy, html.sidebar-collapsed .sidebar .nav-caption, html.sidebar-collapsed .sidebar .nav-label, html.sidebar-collapsed .sidebar-foot-label {
        display: none
    }

html.sidebar-collapsed .sidebar .brand-mark {
    width: 40px
}

html.sidebar-collapsed .sidebar-toggle span {
    transform: rotate(180deg) translateY(1px)
}

html.sidebar-collapsed .side-nav a {
    justify-content: center;
    padding: 12px
}

html.sidebar-collapsed .sidebar-foot {
    justify-content: center;
    padding-inline: 0
}

.sidebar .side-nav a {
    white-space: nowrap
}

html[dir="rtl"] body, html[dir="rtl"] button, html[dir="rtl"] input {
    font-family: 'Noto Sans Arabic',sans-serif
}

html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 {
    font-family: 'Noto Sans Arabic',sans-serif;
    letter-spacing: 0
}

html[dir="rtl"] .eyebrow, html[dir="rtl"] .nav-caption, html[dir="rtl"] .data-table th {
    letter-spacing: 0
}

html[dir="rtl"] .hero-art {
    right: auto;
    left: 60px
}

html[dir="rtl"] .microsoft-button > span:last-child {
    margin-left: 0;
    margin-right: auto
}

html[dir="rtl"] .story-orb {
    right: auto;
    left: -170px
}

html[dir="rtl"] .orb-two {
    left: -90px
}

html[dir="rtl"] .sidebar-toggle span {
    transform: scaleX(-1) translateY(-1px)
}

html[dir="rtl"].sidebar-collapsed .sidebar-toggle span {
    transform: scaleX(-1) rotate(180deg) translateY(1px)
}

@media(max-width:850px) {
    .app-shell {
        display: block
    }

    .sidebar, html.sidebar-collapsed .sidebar {
        position: fixed;
        inset-block: 0;
        inset-inline-start: 0;
        z-index: 20;
        width: 72px;
        height: 100vh
    }

    .main-column {
        margin-inline-start: 72px
    }

    .sidebar-brand-row .brand-copy, .sidebar .nav-caption, .sidebar .nav-label, .sidebar-foot-label {
        display: none
    }

    .side-nav a {
        font-size: 14px
    }

    html:not(.sidebar-collapsed) .sidebar {
        width: 256px;
        padding: 22px 18px;
        box-shadow: 12px 0 30px #102f3c29
    }

        html:not(.sidebar-collapsed) .sidebar-brand-row .brand-copy, html:not(.sidebar-collapsed) .sidebar .nav-caption, html:not(.sidebar-collapsed) .sidebar .nav-label, html:not(.sidebar-collapsed) .sidebar-foot-label {
            display: block
        }

    html:not(.sidebar-collapsed) .side-nav a {
        justify-content: flex-start;
        padding: 12px 14px
    }

    html:not(.sidebar-collapsed) .sidebar-brand-row {
        flex-direction: row
    }
}

@media(max-width:640px) {
    .user-area {
        gap: 8px
    }

    .topbar {
        padding-inline: 12px
    }

    .content {
        padding-inline: 14px
    }

    .guest-language {
        inset-block-start: 16px;
        inset-inline-end: 16px
    }

    html[dir="rtl"] .user-area {
        margin-left: 0;
        margin-right: auto
    }
}

@media(max-width:850px) {
    html:not(.sidebar-collapsed) .sidebar-brand-row .brand-copy {
        font-size: 20px
    }

        html:not(.sidebar-collapsed) .sidebar-brand-row .brand-copy small {
            font-size: 9px
        }

    html:not(.sidebar-collapsed) .sidebar .nav-caption {
        font-size: 10px
    }

    html:not(.sidebar-collapsed) .sidebar-foot {
        font-size: 12px
    }
}

/* On small screens the menu is an overlay, not an icon rail. */
.admin-access {
    border-top: 1px solid var(--line);
    margin-top: 30px;
    padding-top: 20px
}

    .admin-access summary {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        width: max-content;
        max-width: 100%;
        margin: auto;
        color: #287d78;
        font-size: 12px;
        font-weight: var(--arabic-control-weight, 700);
        cursor: pointer;
        list-style: none
    }

        .admin-access summary::-webkit-details-marker {
            display: none
        }

        .admin-access summary::marker {
            content: ""
        }

        .admin-access summary:hover {
            text-decoration: underline
        }

        .admin-access summary:focus-visible {
            outline: 2px solid #60b4ab;
            outline-offset: 5px;
            border-radius: 3px
        }

.admin-access-chevron {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    transition: transform .2s ease
}

.admin-access[open] .admin-access-chevron {
    transform: rotate(180deg)
}

.admin-access form {
    margin-top: 14px
}

.mobile-menu-toggle, .sidebar-backdrop {
    display: none
}

.mobile-menu-toggle {
    flex: none;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--navy);
    font-size: 20px;
    cursor: pointer
}

    .mobile-menu-toggle:focus-visible {
        outline: 2px solid #60b4ab;
        outline-offset: 2px
    }

@media(max-width:850px) {
    .main-column {
        margin-inline-start: 0
    }

    .mobile-menu-toggle {
        display: inline-flex
    }

    .sidebar, html.sidebar-collapsed .sidebar {
        width: min(280px,calc(100vw - 48px));
        padding: 22px 18px;
        transform: translateX(0);
        transition: transform .22s ease;
        box-shadow: 12px 0 30px #102f3c29
    }

    html.sidebar-collapsed .sidebar {
        transform: translateX(-105%);
        box-shadow: none
    }

    html[dir="rtl"].sidebar-collapsed .sidebar {
        transform: translateX(105%)
    }

    html:not(.sidebar-collapsed) .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 19;
        width: 100%;
        height: 100%;
        border: 0;
        background: #0d303d78;
        cursor: pointer
    }

    body.mobile-menu-open {
        overflow: hidden
    }
}

/* Keep long menus reachable while the sidebar header and footer stay visible. */
.sidebar, html.sidebar-collapsed .sidebar {
    height: 100vh;
    height: 100dvh;
    overflow: hidden
}

    .sidebar-brand-row, .sidebar > .nav-caption, .sidebar-foot {
        flex-shrink: 0
    }

.side-nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    scroll-padding-block: 4px;
    scrollbar-width: thin;
    scrollbar-color: #7ba1a9 #123947
}

/* Evaluation and organization screens */
.eval-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 18px 0 24px
}

    .eval-actions .primary-button, .eval-row .primary-button, .eval-form > .primary-button, .eval-builder-card .primary-button {
        width: auto;
        display: inline-flex;
        justify-content: center
    }

.eval-two-columns {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px;
    margin: 18px 0
}

    .eval-two-columns .info-card {
        min-width: 0
    }

.eval-form {
    max-width: 900px
}

    .eval-form > .info-card {
        margin-bottom: 18px
    }

    .eval-form label {
        display: block
    }

    .eval-form .form-control, .eval-form .form-select {
        width: 100%
    }

    .eval-form > .primary-button {
        margin-top: 18px
    }

.eval-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    flex-wrap: wrap
}

    .eval-row > span, .eval-row > strong {
        min-width: 145px
    }

    .eval-row > .form-select {
        width: auto;
        min-width: 220px;
        flex: 1
    }

    .eval-row > label {
        margin: 0;
        flex: 1;
        min-width: 130px
    }

.inline-form {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 5px
}

.eval-builder-card, .eval-question {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px;
    margin: 14px 0
}

.eval-question {
    background: #f9fbfa
}

.eval-builder-card h3 {
    margin: 0
}

.eval-fields {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 6px 16px
}

    .eval-fields label {
        min-width: 0
    }

    .eval-fields input, .eval-fields select {
        width: 100%
    }

.eval-check {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 12px 14px 4px 0
}

.eval-score {
    font-size: 32px !important;
    font-weight: var(--arabic-heading-weight, 800);
    color: #176f6a !important
}

.eval-preline {
    white-space: pre-wrap
}

.temporary-password {
    font-size: 20px;
    display: inline-block;
    padding: 16px;
    background: #edf6f3;
    border-radius: 8px;
    word-break: break-all
}

.info-card {
    margin-bottom: 18px
}

.table-responsive {
    overflow-x: auto
}

.table {
    min-width: 540px
}

@media(max-width:700px) {
    .eval-two-columns, .eval-fields {
        grid-template-columns: 1fr
    }

    .eval-row {
        align-items: stretch
    }

        .eval-row > .form-select, .eval-row > .primary-button {
            width: 100%
        }

    .eval-actions .primary-button {
        max-width: 100%
    }
}

.eval-model-names, .eval-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px
}

.eval-inline-field {
    display: grid !important;
    grid-template-columns: minmax(145px,34%) minmax(0,1fr);
    align-items: center;
    gap: 14px;
    min-width: 0;
    margin: 0 !important
}

    .eval-inline-field > span, .eval-inline-field > label {
        min-width: 0;
        line-height: 1.35
    }

    .eval-inline-field > .form-control, .eval-inline-field > .form-select {
        min-width: 0;
        width: 100%
    }

    .eval-inline-field.eval-check {
        display: grid !important;
        margin: 0 !important
    }

        .eval-inline-field.eval-check input {
            width: 18px;
            height: 18px;
            margin: 0
        }

.eval-builder-card, .eval-question, .eval-question-list {
    display: block;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0;
    margin: 14px 0;
    background: #fff
}

.eval-question-list {
    background: #f6f9f8
}

.eval-question {
    background: #fff
}

    .eval-builder-card > summary, .eval-question-list > summary, .eval-question > summary {
        cursor: pointer;
        padding: 16px 18px;
        font-weight: var(--arabic-control-weight, 700);
        line-height: 1.4;
        overflow-wrap: anywhere
    }

        .eval-builder-card > summary:hover, .eval-question-list > summary:hover, .eval-question > summary:hover {
            background: #edf6f3
        }

        .eval-builder-card > summary:focus-visible, .eval-question-list > summary:focus-visible, .eval-question > summary:focus-visible {
            outline: 2px solid #176f6a;
            outline-offset: -3px
        }

.eval-detail-body {
    padding: 0 18px 18px
}

.eval-detail-actions {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 12px
}

.eval-band-row {
    border-top: 1px solid var(--line);
    padding: 16px 0
}

    .eval-band-row .text-button {
        margin-top: 8px
    }

.eval-top-level > summary {
    cursor: pointer;
    font: var(--arabic-heading-weight, 800) 20px Manrope,sans-serif;
    letter-spacing: -.045em;
    line-height: 1.4;
    overflow-wrap: anywhere
}

    .eval-top-level > summary:focus-visible {
        outline: 2px solid #176f6a;
        outline-offset: 4px;
        border-radius: 4px
    }

.eval-top-level-body {
    padding-top: 14px
}

.danger-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #a33136;
    border-radius: 8px;
    background: #a33136;
    color: #fff;
    font-weight: var(--arabic-control-weight, 700);
    padding: 10px 17px;
    cursor: pointer
}

    .danger-button:hover, .danger-button:focus-visible {
        background: #84282e;
        color: #fff
    }

.eval-confirmation {
    max-width: 700px
}

    .eval-confirmation p + p {
        margin-top: 10px
    }

.eval-list-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    white-space: nowrap
}

    .eval-list-actions form {
        margin: 0
    }

.danger-link {
    color: #a33136
}

    .danger-link:hover {
        color: #84282e
    }

.eval-admin-table td:first-child {
    min-width: 175px
}

.eval-admin-table .eval-list-actions {
    margin-top: 8px;
    font-size: 12px
}

.eval-reset-warning {
    margin: 20px 0 !important;
    padding: 14px 16px;
    border: 1px solid #d7a8aa;
    border-radius: 10px;
    background: #fff1f1;
    color: #84282e !important;
    font-weight: var(--arabic-control-weight, 700)
}

.eval-reset-counts {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 0 20px;
    margin: 18px 0
}

    .eval-reset-counts > div {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        padding: 9px 0;
        border-bottom: 1px solid var(--line)
    }

    .eval-reset-counts dt {
        font-weight: var(--arabic-control-weight, 600)
    }

    .eval-reset-counts dd {
        margin: 0;
        font-weight: var(--arabic-heading-weight, 800)
    }

.eval-reset-confirm {
    margin-top: 20px !important
}

@media(max-width:600px) {
    .eval-reset-counts {
        grid-template-columns: 1fr
    }
}

.eval-cycle-fields {
    display: grid;
    gap: 12px;
    margin: 18px 0
}

.eval-cycle-models {
    margin-top: 18px
}

    .eval-cycle-models p {
        margin: 5px 0 0
    }

@media(max-width:700px) {
    .eval-inline-field {
        grid-template-columns: minmax(100px,38%) minmax(0,1fr);
        gap: 8px
    }

    .eval-builder-card > summary, .eval-question-list > summary, .eval-question > summary {
        padding: 14px
    }

    .eval-detail-body {
        padding: 0 12px 14px
    }
}

@media(display-mode:standalone) {
    .topbar {
        padding-top: calc(15px + env(safe-area-inset-top))
    }

    .content {
        padding-bottom: calc(80px + env(safe-area-inset-bottom))
    }

    .guest-content {
        padding-top: env(safe-area-inset-top)
    }
}

.login-page, .login-panel, .login-box {
    min-width: 0
}

.login-box {
    width: 100%;
    max-width: 430px
}

.login-help, .notice {
    overflow-wrap: anywhere
}
/* Feature grants stay readable on narrow screens. */
.group-permissions {
    display: grid;
    gap: 24px;
    margin-top: 24px
}

.group-permission-section {
    min-width: 0;
    border: 0;
    padding: 0;
    margin: 0
}

    .group-permission-section legend {
        float: none;
        width: auto;
        font-size: 16px;
        font-weight: var(--arabic-heading-weight, 800);
        margin: 0 0 8px;
        color: var(--ink)
    }

.group-permission-list {
    display: grid
}

.group-permission-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 44px;
    margin: 0;
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    font-weight: var(--arabic-control-weight, 600);
    line-height: 1.6;
    cursor: pointer;
    border-radius: 6px
}

    .group-permission-row input {
        flex: none;
        width: 17px;
        height: 17px;
        margin-top: 2px;
        accent-color: #288f85
    }

    .group-permission-row span {
        min-width: 0;
        overflow-wrap: anywhere
    }

    .group-permission-row:hover {
        background: #f4f8f7
    }

    .group-permission-row:has(input:checked) {
        background: #edf6f3
    }

    .group-permission-row:focus-within {
        outline: 2px solid #60b4ab;
        outline-offset: 2px
    }

.access-grants {
    display: grid;
    gap: 0
}

.access-grant {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .85rem 0;
    border-bottom: 1px solid #dbe5e8
}

    .access-grant:last-child {
        border-bottom: 0
    }

    .access-grant strong {
        display: block
    }

    .access-grant small {
        display: block;
        margin-top: .25rem;
        color: #607b89
    }

    .access-grant form {
        flex: none
    }

.access-people {
    display: grid
}

.access-person {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #dbe5e8
}

    .access-person:last-child {
        border-bottom: 0
    }

    .access-person strong, .access-person small {
        display: block
    }

    .access-person small {
        margin-top: .25rem;
        color: #607b89
    }

    .access-person a {
        flex: none
    }

@media(max-width:600px) {
    .access-person {
        align-items: flex-start;
        flex-direction: column;
        gap: .5rem
    }
}

.access-permission-fieldset {
    border: 0;
    padding: 0;
    margin: 1.5rem 0 0
}

    .access-permission-fieldset legend {
        font-size: 1.1rem;
        font-weight: var(--arabic-control-weight, 700);
        margin-bottom: .35rem
    }

.access-permission-list {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: .55rem
}

.access-permission {
    display: flex !important;
    align-items: flex-start;
    gap: .65rem;
    margin: 0 !important;
    padding: .85rem;
    border: 1px solid #dbe5e8;
    border-radius: 10px;
    cursor: pointer
}

    .access-permission input {
        width: 1.15rem;
        height: 1.15rem;
        flex: none;
        margin-top: .12rem
    }

    .access-permission span {
        line-height: 1.35
    }

    .access-permission:has(input:checked) {
        background: #edf6f3;
        border-color: #5ca99d
    }

    .access-permission[hidden], [data-feature-scope][hidden] {
        display: none !important
    }

@media(max-width:600px) {
    .access-permission-list {
        grid-template-columns: 1fr
    }
}

.impersonation-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff3d6;
    border-bottom: 1px solid #e6cf91;
    color: #634b11;
    padding: 10px 45px;
    font-size: 13px;
    font-weight: var(--arabic-control-weight, 700)
}

    .impersonation-banner form {
        margin: 0
    }

    .impersonation-banner .text-button {
        color: #634b11;
        text-decoration: underline
    }

@media(max-width:850px) {
    .impersonation-banner {
        padding-inline: 22px
    }
}

@media(max-width:640px) {
    .impersonation-banner {
        padding-inline: 14px;
        flex-wrap: wrap
    }
}

.employee-table-filters {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 14px;
    margin: 18px 0;
    align-items: end
}

    .employee-table-filters > div {
        min-width: 0
    }

    .employee-table-filters label {
        display: block;
        font-size: 12px;
        font-weight: var(--arabic-control-weight, 700);
        margin-bottom: 6px
    }

.employee-filter-search {
    grid-column: span 2
}

.employee-filter-actions {
    grid-column: span 3;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap
}

.employee-result-count {
    font-size: 12px;
    margin-bottom: 12px !important
}

.employee-row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap
}

    .employee-row-actions form {
        margin: 0;
        display: flex
    }

.employee-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: none;
    border: 1px solid #d9e6e2;
    border-radius: 9px;
    background: #f5faf8;
    color: #176f6a;
    cursor: pointer;
    text-decoration: none
}

    .employee-action svg {
        width: 19px;
        height: 19px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round
    }

    .employee-action:hover {
        background: #e6f2ed;
        color: #125b57;
        border-color: #9fc5ba
    }

    .employee-action:focus-visible {
        outline: 2px solid #176f6a;
        outline-offset: 2px
    }

.employee-status {
    display: inline-block;
    white-space: nowrap;
    font-size: 11px;
    font-weight: var(--arabic-control-weight, 700);
    border-radius: 6px;
    padding: 4px 8px
}

    .employee-status.is-active {
        background: #edf6f3;
        color: #23775f
    }

    .employee-status.is-inactive {
        background: #f0f1f3;
        color: #657080
    }

.employee-table .employee-empty {
    text-align: center;
    padding: 30px;
    color: #657080
}

.employee-table td {
    vertical-align: middle
}

.employee-filter-actions .primary-button {
    width: auto;
    flex: none
}

.employee-table {
    min-width: 820px
}

@media(max-width:1000px) {
    .employee-table-filters {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .employee-filter-actions {
        grid-column: span 1
    }
}

@media(max-width:600px) {
    .employee-table-filters {
        grid-template-columns: 1fr
    }

    .employee-filter-search {
        grid-column: span 1
    }
}
/* Questionnaire score controls: the visual and typed answers share one value. */
.rating-question .rating-competency {
    font-size: 15px;
    font-weight: var(--arabic-heading-weight, 800);
    color: #176f6a;
    margin: 0 0 8px
}

.rating-question-text {
    font-size: 17px;
    font-weight: var(--arabic-control-weight, 700);
    line-height: 1.5;
    margin: 0 0 6px
}

.rating-question .rating-help {
    font-size: 12px;
    margin: 0 0 18px;
    color: #657080
}

.rating-controls {
    display: grid;
    grid-template-columns: minmax(0,1fr) 210px;
    gap: 28px;
    align-items: start
}

    .rating-controls > div {
        min-width: 0
    }

.rating-entry {
    border-inline-start: 1px solid #e1e9e6;
    padding-inline-start: 24px
}

    .rating-entry > label {
        font-size: 12px;
        font-weight: var(--arabic-control-weight, 700);
        margin: 0 0 8px
    }

.rating-number-controls {
    display: flex;
    align-items: center;
    gap: 8px
}

    .rating-number-controls .rating-number {
        min-width: 0;
        flex: 1;
        width: 0;
        text-align: center;
        padding-inline: 6px;
        appearance: textfield
    }

.rating-number::-webkit-inner-spin-button, .rating-number::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0
}

.rating-adjust {
    flex: none;
    width: 38px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd9d5;
    background: #fff;
    border-radius: 8px;
    font-size: 20px;
    color: #176f6a;
    cursor: pointer
}

    .rating-adjust[hidden], .rating-visual[hidden] {
        display: none !important
    }

    .rating-adjust:hover {
        background: #edf6f3
    }

    .rating-adjust:focus-visible {
        outline: 2px solid #176f6a;
        outline-offset: 2px
    }

.rating-bounds {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    color: #657080
}

.rating-visual {
    padding-top: 8px
}

.rating-bar-shell {
    position: relative;
    padding-bottom: 24px
}

.rating-slider {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100%;
    height: 44px;
    margin: 0;
    background: transparent;
    cursor: pointer;
    --rating-percent: 0%
}

    .rating-slider::-webkit-slider-runnable-track {
        height: 4px;
        border-radius: 4px;
        background: linear-gradient(to right,#23877c var(--rating-percent),#d2d9de var(--rating-percent))
    }

    .rating-slider::-moz-range-track {
        height: 4px;
        border-radius: 4px;
        background: linear-gradient(to right,#23877c var(--rating-percent),#d2d9de var(--rating-percent))
    }

    .rating-slider::-webkit-slider-thumb {
        appearance: none;
        -webkit-appearance: none;
        width: 20px;
        height: 20px;
        border: 2px solid #fff;
        border-radius: 50%;
        background: #23877c;
        box-shadow: 0 0 0 1px #23877c;
        margin-top: -8px;
        position: relative;
        z-index: 2
    }

    .rating-slider::-moz-range-thumb {
        width: 18px;
        height: 18px;
        border: 2px solid #fff;
        border-radius: 50%;
        background: #23877c;
        box-shadow: 0 0 0 1px #23877c
    }

.is-unanswered .rating-slider::-webkit-slider-thumb {
    opacity: 0
}

.is-unanswered .rating-slider::-moz-range-thumb {
    opacity: 0
}

.rating-slider:focus-visible {
    outline: 2px solid #176f6a;
    outline-offset: 3px;
    border-radius: 6px
}

.rating-marks {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 0;
    pointer-events: none
}

.rating-mark {
    position: absolute;
    top: 19px;
    transform: translateX(-50%)
}

.rating-dot {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d2d9de
}

.rating-mark.is-filled .rating-dot {
    background: #23877c
}

.rating-mark-label {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: #657080;
    font-size: 11px;
    white-space: nowrap
}

.rating-mark.is-selected .rating-mark-label {
    color: #176f6a;
    font-weight: var(--arabic-heading-weight, 800)
}

.rating-question .rating-status {
    font-size: 13px;
    color: #214b54;
    margin: 12px 0 0
}

.rating-error {
    font-size: 12px;
    margin-top: 12px
}

    .rating-error:empty {
        display: none
    }

.rating-number[aria-invalid="true"] {
    border-color: #b33342
}

.rating-entry:only-child {
    border: 0;
    padding: 0
}

.rating-controls:has(.rating-visual[hidden]) {
    display: block
}

.rating-mark-label {
    font-size: 12px
}

.rating-question:not(.is-unanswered) .rating-status {
    color: #176f6a;
    font-weight: var(--arabic-control-weight, 700)
}

@media(max-width:700px) {
    .rating-controls {
        grid-template-columns: 1fr;
        gap: 18px
    }

    .rating-entry {
        border-inline-start: 0;
        border-top: 1px solid #e1e9e6;
        padding-inline-start: 0;
        padding-top: 16px
    }

    .rating-number-controls {
        max-width: 240px
    }

    .rating-question-text {
        font-size: 16px
    }
}
/* Evaluation tracking */
.tracking-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

    .tracking-tabs a {
        padding: 10px 16px;
        border: 1px solid #dce5eb;
        border-radius: 8px;
        color: #244257;
        background: #fff;
        text-decoration: none;
    }

        .tracking-tabs a.active {
            background: #173653;
            color: #fff;
            border-color: #173653;
        }

.tracking-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(185px,1fr));
    gap: 14px;
}

.tracking-filters label {
    display: block;
    margin: 0 0 6px;
    font-weight: var(--arabic-control-weight, 600);
}

.info-card .tracking-note {
    margin-bottom: 18px;
}

.tracking-advanced {
    margin-top: 18px;
}

    .tracking-advanced summary {
        cursor: pointer;
        margin-bottom: 14px;
        font-weight: var(--arabic-control-weight, 600);
    }

.tracking-filter-actions {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

    .tracking-filter-actions > div {
        width: 130px;
    }

    .tracking-filter-actions .primary-button {
        width: auto;
        flex: none;
        justify-content: center;
    }

.tracking-table th, .tracking-table td {
    min-width: 110px;
    vertical-align: top;
}

.tracking-table small {
    display: block;
    margin-top: 4px;
    color: #596d7a;
    font-size: 12px;
}

.tracking-table td:first-child {
    min-width: 150px;
}

.tracking-table details {
    min-width: 190px;
}

.tracking-table summary {
    cursor: pointer;
}

.tracking-sources {
    padding-inline-start: 18px;
    margin-top: 10px;
    min-width: 210px;
}

    .tracking-sources li {
        margin-bottom: 12px;
    }

    .tracking-sources span {
        display: block;
        font-size: 12px;
    }

.tracking-status {
    font-size: 13px;
    font-weight: var(--arabic-control-weight, 600);
}

.tracking-actions {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.tracking-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    margin-top: 18px;
}

.tracking-count {
    font-weight: var(--arabic-control-weight, 600);
}

.tracking-empty {
    color: #596d7a;
}

@media(max-width:600px) {
    .tracking-filter-grid {
        grid-template-columns: minmax(0,1fr);
    }

    .tracking-tabs a {
        flex: 1;
        text-align: center;
    }
}

/* Model workspace and explicit cycle participants */
.model-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,250px),1fr));
    gap: 16px
}

.model-card {
    border: 1px solid #dce5eb;
    border-radius: 10px;
    padding: 18px
}

    .model-card h3 {
        margin: 0 0 16px;
        overflow-wrap: anywhere
    }

.model-roster-list {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
    margin-top: 16px
}

.model-roster-row {
    padding: 12px;
    border: 1px solid #dce5eb;
    border-radius: 8px;
    align-items: flex-start !important;
    overflow-wrap: anywhere
}

    .model-roster-row input[type=checkbox] {
        flex: none;
        width: 18px;
        height: 18px;
        margin-top: 2px
    }

    .model-roster-row small {
        display: block;
        color: #657080;
        margin-top: 4px
    }

    .model-roster-row[hidden] {
        display: none !important
    }

.roster-actions, .cycle-list-filters {
    margin: 18px 0
}

.cycle-participants {
    margin-top: 24px
}

    .cycle-participants .model-roster-row {
        margin-bottom: 8px
    }

.roster-count {
    margin-top: 16px
}

.cycle-list-filters .eval-actions {
    align-self: end;
    margin: 0
}

.tracking-tabs {
    margin-top: 16px
}

@media(max-width:650px) {
    .model-roster-list {
        grid-template-columns: 1fr
    }

    .model-card {
        padding: 14px
    }

    .cycle-participants {
        min-width: 0
    }
}

.peer-picker {
    border: 1px solid var(--border, #d9e1e8);
    border-radius: 12px;
    padding: 1rem;
    margin-block: 1rem;
    min-width: 0;
}

    .peer-picker legend {
        float: none;
        width: auto;
        font-size: 1.15rem;
        padding-inline: .4rem;
    }

.peer-candidate {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    cursor: pointer;
}

    .peer-candidate small {
        display: block;
        color: var(--muted, #526371);
    }

    .peer-candidate[hidden] {
        display: none;
    }

    .peer-candidate input {
        margin-block-start: .25rem;
        flex-shrink: 0;
    }

.peer-picker input:focus-visible, .peer-picker button:focus-visible {
    outline: 2px solid #155ecc;
    outline-offset: 3px;
}

/* Employee directory and ERP selection share the same row states. */
.employee-list-table > tbody > [data-employee-row] {
    cursor: pointer;
}

    .employee-list-table > tbody > [data-employee-row] > td {
        transition: background-color .12s ease;
    }

        .employee-list-table > tbody > [data-employee-row] > td:first-child {
            border-inline-start: 3px solid transparent;
        }

@media (hover: hover) {
    .employee-list-table > tbody > [data-employee-row]:hover > td {
        --bs-table-bg: #eff7f5;
        --bs-table-accent-bg: #eff7f5;
        --bs-table-bg-state: #eff7f5;
        background-color: #eff7f5;
    }
}

.employee-list-table[data-employee-rows="single"] > tbody > [data-employee-row][aria-selected="true"] > td,
.employee-list-table > tbody > [data-employee-row]:has(input[name="pageSelected"]:checked) > td {
    --bs-table-bg: #dcefe8;
    --bs-table-accent-bg: #dcefe8;
    --bs-table-bg-state: #dcefe8;
    background-color: #dcefe8;
}

    .employee-list-table[data-employee-rows="single"] > tbody > [data-employee-row][aria-selected="true"] > td:first-child,
    .employee-list-table > tbody > [data-employee-row]:has(input[name="pageSelected"]:checked) > td:first-child {
        border-inline-start-color: #1b7371;
    }

.employee-list-table > tbody > [data-employee-row]:focus-visible {
    outline: 2px solid #1b7371;
    outline-offset: -2px;
}

.employee-list-table input[name="pageSelected"], [data-select-page] {
    accent-color: #1b7371;
}

@media (prefers-reduced-motion: reduce) {
    .employee-list-table > tbody > [data-employee-row] > td {
        transition: none;
    }
}

/* Shared Arabic typography. English keeps the original component weights
   through the variable fallbacks above. Keep page-specific density rules in
   the corresponding stylesheet; do not change form markup or behavior. */
html[dir="rtl"] {
    --arabic-control-weight: 500;
    --arabic-heading-weight: 600;
    --ink: #203744;
    --muted: #52656b;
}

    html[dir="rtl"] body {
        font-family: 'Noto Sans Arabic', sans-serif;
        font-size: 16px;
        font-weight: 400;
        line-height: 1.7;
        color: var(--ink);
    }

    html[dir="rtl"] :is(button, input, select, textarea, h1, h2, h3, h4, h5, h6, legend),
    html[dir="rtl"] :is(.brand small, .profile-avatar, .eval-top-level > summary) {
        font-family: 'Noto Sans Arabic', sans-serif;
        letter-spacing: 0;
    }

    html[dir="rtl"] h1,
    html[dir="rtl"] .page-heading h1,
    html[dir="rtl"] .login-box h2,
    html[dir="rtl"] .hero-card h2 {
        font-size: 28px;
        font-weight: 600;
        line-height: 1.5;
    }

    html[dir="rtl"] .story-copy h1 {
        font-size: clamp(32px, 4vw, 48px);
        font-weight: 600;
        line-height: 1.3;
    }

    html[dir="rtl"] h2,
    html[dir="rtl"] :is(.info-card, .section-head, .form-panel) h2 {
        font-size: 22px;
        font-weight: 600;
        line-height: 1.6;
    }

    html[dir="rtl"] h3,
    html[dir="rtl"] .info-card h3,
    html[dir="rtl"] legend {
        font-size: 18px;
        font-weight: 600;
        line-height: 1.6;
    }

    html[dir="rtl"] :is(h4, h5, h6) {
        font-size: 16px;
        font-weight: 600;
        line-height: 1.6;
    }

    html[dir="rtl"] .page-heading p {
        font-size: 15px;
        line-height: 1.8;
        color: var(--muted);
    }

    html[dir="rtl"] :is(.info-card, .section-head) p,
    html[dir="rtl"] :is(small, .small, .notice, .login-help, .story-foot, .profile-detail, .request-id, .employee-result-count, .eval-admin-table .eval-list-actions) {
        font-size: 14px;
        line-height: 1.8;
    }

    html[dir="rtl"] :is(.login-help, .profile-detail > span, .employee-result-count) {
        color: var(--muted);
    }

    html[dir="rtl"] label,
    html[dir="rtl"] dt,
    html[dir="rtl"] :is(.employee-table-filters, .tracking-filters, .rating-entry) > label,
    html[dir="rtl"] .group-permission-row {
        font-size: 14px;
        font-weight: 500;
        line-height: 1.6;
        color: #344d57;
    }

    html[dir="rtl"] dd {
        font-size: 15px;
        font-weight: 400;
        line-height: 1.8;
    }

    html[dir="rtl"] :is(.user-area, .topbar-title, .date-pill, .count-pill) {
        font-size: 14px;
    }

@media(max-width:850px) {
    html[dir="rtl"] .topbar-title {
        font-size: 0;
    }
}

html[dir="rtl"] :is(.form-control, .form-select, .search-select-option) {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
}

html[dir="rtl"] :is(.primary-button, .text-button, .danger-button, .microsoft-button, .language-button, .btn),
html[dir="rtl"] .page-heading > a,
html[dir="rtl"] .eval-actions > a,
html[dir="rtl"] .admin-access summary {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}

html[dir="rtl"] :is(.table, .data-table),
html[dir="rtl"] :is(.table, .data-table) td {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
}

    html[dir="rtl"] :is(.table, .data-table) th {
        font-size: 14px;
        font-weight: 500;
        line-height: 1.8;
        letter-spacing: 0;
        color: #344d57;
    }

html[dir="rtl"] :is(strong, b) {
    font-weight: 600;
}

html[dir="rtl"] :is(.table, .data-table) td :is(strong, b) {
    font-weight: 400;
}

html[dir="rtl"] :is(.status, .employee-status, .tracking-status, .tracking-count, .tracking-sources span) {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.7;
}

html[dir="rtl"] .tracking-table small {
    font-size: 14px;
    line-height: 1.8;
}

html[dir="rtl"] :is(.side-nav a, .topbar-title, summary) {
    font-weight: 500;
}

html[dir="rtl"] .sidebar .nav-caption,
html[dir="rtl"] :is(.eyebrow, .hero-label) {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
}

html[dir="rtl"] .sidebar .sidebar-foot {
    font-size: 13px;
    line-height: 1.7;
}

/* Preserve the Latin wordmark; make only its Arabic caption more legible. */
html[dir="rtl"] .brand {
    font-weight: 800;
}

    html[dir="rtl"] .brand small,
    html[dir="rtl"] .sidebar .sidebar-brand-row .brand-copy small {
        font-family: 'Noto Sans Arabic', sans-serif;
        font-size: 11px;
        font-weight: 500;
        line-height: 1.6;
        letter-spacing: 0;
    }

html[dir="rtl"] .eval-top-level > summary {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.6;
}

html[dir="rtl"] :is(.rating-question-text, .rating-question .rating-question-text) {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
}

html[dir="rtl"] .rating-question .rating-competency {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.7;
}

html[dir="rtl"] :is(.rating-help, .rating-bounds, .rating-status, .rating-error, .search-select-note) {
    font-size: 14px;
    line-height: 1.8;
}

html[dir="rtl"] :is(.rating-help, .rating-bounds, .search-select-note) {
    color: var(--muted);
}

html[dir="rtl"] .rating-adjust {
    font-size: 18px;
    font-weight: 500;
}

html[dir="rtl"] .rating-mark-label {
    font-size: 12px;
    line-height: 1.3;
}

html[dir="rtl"] .rating-mark.is-selected .rating-mark-label {
    font-weight: 600;
}

html[dir="rtl"] :is(.validation-summary-errors, .field-validation-error, form .text-danger) {
    --bs-danger-rgb: 157, 52, 58;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
}

/* Existing cards also contain the few administration tables without wrappers. */
html[dir="rtl"] .info-card:has(> :is(.table, .data-table)) {
    overflow-x: auto;
}

/* Keep the employee form's approved label spacing and checkbox alignment. */
html[dir="rtl"] form[data-require-company="true"][data-require-department="true"] > label {
    margin-block: 20px 8px;
}

    html[dir="rtl"] form[data-require-company="true"][data-require-department="true"] > label:has(input[type="checkbox"]) {
        display: flex;
        align-items: center;
        gap: 8px;
    }

html[dir="rtl"] form[data-require-company="true"][data-require-department="true"] input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: none;
}

/* Employee entry point and personal workspace actions. */
.login-registration { margin:24px 0; padding:20px; border:1px solid #ccded9; border-radius:12px; background:#f4faf7; }
.login-registration h3 { margin:0 0 8px; font-size:18px; line-height:1.5; }
.login-registration p { margin:0 0 16px; color:#486168; font-size:14px; line-height:1.7; }
.login-register-button { display:flex; align-items:center; justify-content:center; gap:12px; width:100%; min-height:48px; padding:11px 16px; border:1.5px solid #177f80; border-radius:9px; background:#fff; color:#126565; font-weight:600; text-align:center; }
.login-register-button:hover { background:#e5f3ef; color:#0e5656; }
.login-register-button:focus-visible, .questionnaire-view-button:focus-visible { outline:3px solid #288f83; outline-offset:3px; }
.questionnaires-nav { position:relative; }
.nav-pending-count { display:inline-flex; flex:none; align-items:center; justify-content:center; min-width:24px; padding:2px 7px; margin-inline-start:auto; border-radius:20px; background:#f8cb79; color:#503408; font-size:12px; font-weight:700; line-height:1.5; font-variant-numeric:tabular-nums; }
html.sidebar-collapsed .sidebar .questionnaires-nav .nav-pending-count { position:absolute; inset-block-start:1px; inset-inline-end:0; min-width:19px; padding:1px 4px; font-size:10px; box-shadow:0 0 0 2px #123947; }
.questionnaire-actions { margin:0 0 24px; border:1px solid #e2c98e; border-block-start:4px solid #d69b35; border-radius:16px; background:#fffcf5; overflow:hidden; }
.questionnaire-actions-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:24px; }
.action-eyebrow { display:block; color:#77521b; font-size:12px; font-weight:600; margin-bottom:7px; }
.questionnaire-actions-heading h2 { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:0 0 8px; font-size:23px; line-height:1.5; }
.questionnaire-actions-heading p { margin:0; color:#52666b; line-height:1.7; font-size:14px; }
.questionnaire-actions-heading > a { flex:none; }
.pending-count { display:inline-flex; align-items:center; justify-content:center; min-width:30px; padding:2px 9px; border-radius:20px; background:#f8dfaa; color:#63400b; font-size:15px; font-weight:600; line-height:1.6; font-variant-numeric:tabular-nums; }
.questionnaire-action-list { padding:0 24px 8px; }
.questionnaire-action { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:22px 0; border-top:1px solid #e9dfc7; }
.questionnaire-action-copy { min-width:0; flex:1; }
.questionnaire-action h3 { margin:0 0 10px; font-size:19px; line-height:1.6; overflow-wrap:anywhere; }
.questionnaire-action-meta { display:flex; align-items:center; flex-wrap:wrap; gap:8px 16px; color:#4e646b; font-size:13px; }
.questionnaire-status { border-radius:6px; padding:3px 8px; background:#edf1ef; color:#405950; font-weight:500; }
.deadline-label { color:#7c5215; font-weight:600; }
.deadline-label.overdue { color:#9d3434; }
.questionnaire-action .primary-button, .questionnaire-view-button { display:inline-flex; align-items:center; justify-content:center; flex:none; gap:12px; width:auto; min-height:46px; min-width:190px; }
.questionnaire-view-button { padding:10px 16px; border:1px solid #aebfbd; border-radius:8px; background:#fff; color:#315f5b; font-weight:500; }
.questionnaire-action .submission-closed-note { margin:10px 0 0; color:#7e4841; font-size:13px; line-height:1.7; }
.questionnaire-clear { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.questionnaire-clear h2 { font-size:22px; margin:0 0 8px; }
.questionnaire-clear p { margin:0; }
.questionnaire-clear > a { flex:none; }
.workspace-shortcuts { grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); }
.workspace-brand { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; padding:24px 0 0; margin-top:24px; border-top:1px solid var(--line); }
.workspace-brand .eyebrow { display:block; margin-bottom:5px; }
.workspace-brand strong { color:#294f58; font-size:20px; }
.workspace-brand p { margin:0; color:#64787d; font-size:13px; }
@media(max-width:700px) {
    .questionnaire-actions-heading { align-items:flex-start; flex-direction:column; padding:20px; gap:12px; }
    .questionnaire-actions-heading h2 { font-size:21px; }
    .questionnaire-action-list { padding:0 20px 4px; }
    .questionnaire-action { align-items:stretch; flex-direction:column; gap:16px; padding:20px 0; }
    .questionnaire-action .primary-button, .questionnaire-view-button { width:100%; min-width:0; }
    .questionnaire-clear { align-items:flex-start; flex-direction:column; }
    .login-registration { padding:17px; }
}
