@import url("https://fonts.googleapis.com/css2?family=Alexandria:wght@100..900&display=swap");

:root {
    --staff-ink: #132c40;
    --staff-navy: #0b293d;
    --staff-teal: #09645e;
    --staff-teal-dark: #074d49;
    --staff-muted: #506575;
    --staff-line: #dbe5e9;
    --staff-surface: #f3f7f8;
    --staff-shadow: 0 14px 40px rgba(11, 41, 61, .08);
}

.staff-site, .staff-auth, .staff-admin {
    background: var(--staff-surface);
    color: var(--staff-ink);
    font-family: "Alexandria", Tahoma, system-ui, sans-serif;
    line-height: 1.65;
}

.staff-site, .staff-auth {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    text-align: start;
}

.staff-site > main, .staff-auth > main { flex: 1; min-width: 0; }
.staff-site :is(h1, h2, h3, h4, h5, h6, input, select, textarea, button),
.staff-auth :is(h1, h2, h3, h4, h5, h6, input, select, textarea, button),
.staff-admin :is(h1, h2, h3, h4, h5, h6, input, select, textarea, button) {
    font-family: inherit;
}

.staff-site :is(h1, h2, h3), .staff-auth :is(h1, h2), .staff-admin :is(h1, h4) {
    font-weight: 700;
}

.staff-header { position: relative; z-index: 20; background: #fff; border-bottom: 1px solid var(--staff-line); }
.staff-header-inner, .staff-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem 1.25rem;
    padding-block: .85rem;
}

.staff-brand, .staff-nav { display: flex; align-items: center; gap: .75rem; }
.staff-brand { color: var(--staff-ink); line-height: 1.4; }
.staff-brand img { object-fit: contain; }
.staff-brand strong, .staff-brand small { display: block; }
.staff-brand small { color: var(--staff-muted); margin-top: .15rem; }
.staff-nav { flex-wrap: wrap; }
.staff-nav-link {
    display: inline-block;
    color: var(--staff-teal-dark);
    background: #eaf5f3;
    border-radius: .55rem;
    padding: .45rem .8rem;
    font-size: .875rem;
    font-weight: 700;
}
.staff-nav-link:hover { background: #d9eeeb; }
.staff-account { position: relative; }
.staff-account summary { cursor: pointer; display: list-item; }
.staff-account-menu {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + .4rem);
    min-width: 11rem;
    max-width: 80vw;
    background: white;
    border: 1px solid var(--staff-line);
    border-radius: .65rem;
    box-shadow: var(--staff-shadow);
    padding: .35rem;
}
.staff-account-menu a, .staff-account-menu button {
    display: block;
    padding: .5rem .7rem;
    color: var(--staff-ink);
    overflow-wrap: anywhere;
}
.staff-account-menu button { background: transparent; border: 0; font: inherit; cursor: pointer; }
.staff-footer { background: var(--staff-navy); color: #d5e1e7; font-size: .875rem; }
.staff-footer a { color: white; text-decoration: underline; }
.staff-footer-inner { padding-block: 1.3rem; }

.staff-hero, .staff-login-intro {
    color: white;
}
.staff-hero, .staff-profile-cover {
    --staff-hero-accent-side: right;
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(ellipse at var(--staff-hero-accent-side) bottom, #1c696766, transparent 56%),
        linear-gradient(125deg, #0a2234, #103a4c);
}
.staff-hero { padding: clamp(2.75rem, 7vw, 6rem) 0 5rem; }
[dir="rtl"] :is(.staff-hero, .staff-profile-cover) { --staff-hero-accent-side: left; }
:is(.staff-hero, .staff-profile-cover)::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background: repeating-radial-gradient(
        ellipse at var(--staff-hero-accent-side) 115%,
        transparent 0 2rem,
        #e1bf7833 2rem calc(2rem + 1px),
        transparent calc(2rem + 1px) 3.3rem
    );
    mask-image: linear-gradient(to var(--staff-hero-accent-side), transparent 55%, #000);
}
.staff-login-intro {
    background: linear-gradient(105deg, #0b293ded, #0b293df7),
        url('../img/psu_default_banner.jpg') center / cover var(--staff-navy);
}
.staff-hero-content { max-width: 46rem; }
.staff-eyebrow { color: #a7e6d6; font-size: .9rem; font-weight: 700; margin-bottom: .8rem; }
.staff-hero h1, .staff-login-intro h1 {
    color: white;
    font-size: clamp(1.9rem, 5vw, 3.5rem);
    line-height: 1.25;
    margin-bottom: .85rem;
    overflow-wrap: anywhere;
}
.staff-hero p:last-child, .staff-login-intro p:last-child { color: #d5e5ee; margin-bottom: 0; }

.staff-directory { position: relative; margin-top: -2rem; padding-bottom: 3rem; }
.staff-search {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: .85rem;
    padding: clamp(1rem, 3vw, 1.5rem);
    background: white;
    border: 1px solid var(--staff-line);
    border-radius: 1rem;
    box-shadow: var(--staff-shadow);
}
.staff-search > div { flex: 1 1 12rem; min-width: 0; }
.staff-search > div:first-child { flex-grow: 2; }
.staff-search label, .staff-login-form label { color: var(--staff-ink); font-size: .875rem; font-weight: 700; }
.staff-search .form-control, .staff-login-form .form-control { height: 2.9rem; border: 1px solid #b1c3ce; border-radius: .55rem; }
.staff-search .btn, .staff-login-form .btn { min-height: 2.9rem; padding-inline: 1.4rem; }
.staff-site .btn-primary, .staff-auth .btn-primary, .staff-admin .btn-primary {
    background: var(--staff-teal);
    border-color: var(--staff-teal);
    color: white;
}
.staff-site .btn-primary:hover, .staff-auth .btn-primary:hover, .staff-admin .btn-primary:hover {
    background: var(--staff-teal-dark);
    border-color: var(--staff-teal-dark);
}
.staff-site :focus-visible, .staff-auth :focus-visible, .staff-admin :focus-visible {
    outline: 2px solid #158d80;
    outline-offset: 3px;
}
.staff-results-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    margin: 2rem 0 1rem;
}
.staff-results-heading h2 { font-size: 1.45rem; margin-bottom: .2rem; }
.staff-results-heading p { color: var(--staff-muted); margin: 0; font-size: .9rem; }
.staff-results-heading a { color: var(--staff-teal-dark); text-decoration: underline; }
.staff-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.staff-card {
    display: flex;
    align-items: center;
    gap: .95rem;
    min-width: 0;
    padding: 1rem;
    background: white;
    border: 1px solid var(--staff-line);
    border-radius: .85rem;
    color: var(--staff-ink);
}
.staff-card:hover { border-color: #69a69f; color: var(--staff-teal-dark); box-shadow: var(--staff-shadow); }
.staff-card img {
    flex: none;
    object-fit: contain;
    padding: 4px;
    background: #eaf0f3;
    border-radius: .65rem;
}
.staff-card h3 { font-size: 1rem; line-height: 1.5; margin: 0 0 .25rem; overflow-wrap: anywhere; }
.staff-card span { color: var(--staff-teal-dark); font-size: .8rem; }
.staff-pagination { display: flex; justify-content: center; margin-top: 1.5rem; }
.staff-pagination .pagination { flex-wrap: wrap; justify-content: center; gap: .25rem; }
.staff-pagination .page-link { border-radius: .4rem; }
.staff-pagination .page-item.active .page-link { background: var(--staff-teal); border-color: var(--staff-teal); }
.staff-empty { text-align: center; padding: 2.5rem 1rem; border: 1px solid var(--staff-line); border-radius: .85rem; background: white; }
.staff-empty h3 { font-size: 1.1rem; }
.staff-empty p { margin-bottom: 0; color: var(--staff-muted); }

.staff-profile { max-width: 1100px; padding-block: 1.5rem 3rem; }
.staff-profile-back { display: inline-block; margin-bottom: .85rem; color: var(--staff-teal-dark); }
.staff-profile-card {
    background: white;
    border: 1px solid var(--staff-line);
    border-radius: 1rem;
    box-shadow: 0 4px 16px #0b293d08;
    min-width: 0;
    overflow-wrap: anywhere;
}
.staff-profile-cover {
    display: flex;
    align-items: center;
    gap: clamp(.75rem, 3vw, 1.5rem);
    min-height: clamp(8.5rem, 20vw, 13rem);
    padding: clamp(1rem, 4vw, 2.5rem);
    border-radius: calc(1rem - 1px) calc(1rem - 1px) 0 0;
    color: #fff;
}
.staff-profile-cover img {
    width: clamp(4.5rem, 11vw, 7.5rem);
    height: auto;
    flex-shrink: 0;
}
.staff-profile-cover-brand {
    display: grid;
    gap: .25rem;
    font-size: clamp(1rem, 3vw, 1.75rem);
    font-weight: 700;
    line-height: 1.35;
}
.staff-profile-cover-brand small {
    color: #d5e5ee;
    font-size: .75em;
    font-weight: 500;
}
.staff-profile-intro, .staff-profile-panel { padding: clamp(1rem, 3vw, 1.75rem); }
.staff-profile-avatar {
    display: block;
    margin-bottom: .75rem;
    width: 8rem;
    height: 8rem;
    object-fit: contain;
    padding: .35rem;
    border: .3rem solid white;
    border-radius: 50%;
    background: var(--staff-surface);
    box-shadow: 0 3px 10px #0b293d22;
}
.staff-profile-intro h1 { font-size: clamp(1.55rem, 4vw, 2.3rem); margin-bottom: .45rem; }
.staff-profile-degree { font-weight: 700; margin-bottom: .15rem; }
.staff-profile-actions, .staff-profile-links, .staff-profile-share { display: flex; flex-wrap: wrap; gap: .55rem; }
.staff-profile-actions:not(:empty) { margin-top: 1rem; }
.staff-profile-actions .btn { white-space: normal; }
.staff-profile-share .btn { color: var(--staff-teal); border-color: var(--staff-teal); }
.staff-profile-share .btn:hover, .staff-profile-share .btn:active {
    background: var(--staff-teal);
    border-color: var(--staff-teal);
    color: white;
}
.staff-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(15rem, 1fr);
    align-items: start;
    gap: 1rem;
    margin-top: 1rem;
}
.staff-profile-sections { display: grid; gap: 1rem; min-width: 0; }
.staff-profile-grid-single { grid-template-columns: minmax(0, 1fr); }
.staff-profile-panel h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.staff-profile-panel h3 { font-size: 1rem; margin-top: 1.25rem; }
.staff-profile-rich { overflow-x: auto; }
.staff-profile-rich :is(img, iframe, video) { max-width: 100%; }
.staff-profile-rich > :last-child { margin-bottom: 0; }
.staff-profile-details dt { color: var(--staff-muted); font-size: .875rem; }
.staff-profile-details dd { margin-bottom: .85rem; }
.staff-profile-details a, .staff-profile-links a { color: var(--staff-teal-dark); }
.staff-profile-links a { border-radius: .4rem; padding: .25rem .55rem; background: #eaf5f3; font-size: .875rem; }

@media (max-width: 767px) { .staff-profile-grid { grid-template-columns: minmax(0, 1fr); } }

.staff-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 60rem;
    margin: clamp(1.25rem, 6vw, 5rem) auto;
    width: calc(100% - 2rem);
    border: 1px solid var(--staff-line);
    border-radius: 1rem;
    box-shadow: var(--staff-shadow);
    overflow: hidden;
}
.staff-login-intro, .staff-login-form { padding: clamp(1.5rem, 5vw, 3.5rem); }
.staff-login-intro { display: flex; flex-direction: column; justify-content: center; }
.staff-login-intro h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
.staff-login-form { background: white; }
.staff-login-form h2 { margin-bottom: 1.25rem; font-size: 1.5rem; }

.staff-admin .c-sidebar {
    background: #f5faf9;
    color: var(--staff-ink);
    box-shadow: inset -1px 0 var(--staff-line);
}
[dir="rtl"] .staff-admin .c-sidebar { box-shadow: inset 1px 0 var(--staff-line); }
.staff-admin .c-sidebar .c-sidebar-brand {
    min-height: 56px;
    background: #fff;
    border-bottom: 1px solid var(--staff-line);
}
.staff-admin-brand {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: var(--staff-ink);
    font-weight: 700;
    font-size: .85rem;
}
.staff-admin-brand:hover { color: var(--staff-teal-dark); }
.staff-admin-brand img { flex: none; object-fit: contain; }
.c-sidebar-minimized:not(:hover) .staff-admin-brand span { display: none; }
.staff-admin .c-sidebar .c-sidebar-nav-link,
.staff-admin .c-sidebar .c-sidebar-nav-dropdown-toggle { color: var(--staff-ink); }
.staff-admin .c-sidebar .c-sidebar-nav-title { color: var(--staff-muted); }
.staff-admin .c-sidebar .c-sidebar-nav-icon { color: var(--staff-teal-dark); }
.staff-admin .c-sidebar .c-sidebar-nav-link:hover,
.staff-admin .c-sidebar .c-sidebar-nav-dropdown-toggle:hover { background: #eef6f4; color: var(--staff-teal-dark); }
.staff-admin .c-sidebar .c-sidebar-nav-link.c-active,
.staff-admin .c-sidebar .c-sidebar-nav-link.active,
.staff-admin .c-sidebar .active > .c-sidebar-nav-link {
    background: #deeeeb;
    color: var(--staff-teal-dark);
    box-shadow: inset 3px 0 var(--staff-teal);
    font-weight: 700;
}
.staff-admin .c-sidebar .c-sidebar-nav-link:is(:hover, :focus, .c-active, .active) .c-sidebar-nav-icon,
.staff-admin .c-sidebar .active > .c-sidebar-nav-link .c-sidebar-nav-icon,
.staff-admin .c-sidebar .c-sidebar-nav-dropdown-toggle:is(:hover, :focus, .c-active) .c-sidebar-nav-icon {
    color: var(--staff-navy);
}
[dir="rtl"] .staff-admin .c-sidebar .c-sidebar-nav-link.c-active,
[dir="rtl"] .staff-admin .c-sidebar .c-sidebar-nav-link.active,
[dir="rtl"] .staff-admin .c-sidebar .active > .c-sidebar-nav-link { box-shadow: inset -3px 0 var(--staff-teal); }
.staff-admin .c-sidebar .c-sidebar-minimizer { background: #eaf4f2; }
.staff-admin .c-sidebar .c-sidebar-minimizer:hover { background: #deeeeb; }
.staff-admin .c-header, .staff-admin .c-footer { background: white; border-color: var(--staff-line); }
.staff-admin .staff-admin-header {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1rem;
    padding-inline: clamp(.5rem, 2vw, 1.25rem);
}
.staff-admin-header-start, .staff-admin-header-directory, .staff-admin-header-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.staff-admin-header-start { min-width: 0; }
.staff-admin-header-directory { color: var(--staff-teal-dark); font-weight: 700; }
.staff-admin-header-directory .c-icon { flex: none; }
.staff-admin-header-actions { flex: none; }
.staff-admin .staff-admin-header .c-header-toggler,
.staff-admin .staff-admin-header-actions .c-header-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: .3rem;
    color: var(--staff-teal-dark);
}
.staff-admin-header-actions .c-header-nav-link:hover,
.staff-admin .staff-admin-header .c-header-toggler:hover {
    border-radius: .45rem;
    background: #eaf5f3;
}
.staff-admin-header-actions .c-avatar,
.staff-admin-header-actions .c-avatar-img { width: 36px; height: 36px; }
.staff-admin-header-actions .c-avatar-img { object-fit: cover; }
.staff-admin-header-actions .dropdown-menu { text-align: start; }

.staff-admin .c-main { padding-block: 1.4rem; }
.staff-admin .card, .staff-admin .modal-content { border: 1px solid var(--staff-line); border-radius: .75rem; box-shadow: 0 4px 16px #0b293d08; }
.staff-admin .card-header, .staff-admin .table thead th { background: #ebf2f5; color: var(--staff-ink); }
.staff-admin .form-control { border-color: #bbcbd4; }
.staff-admin .btn { border-radius: .45rem; }
.staff-admin .staff-admin-hero { background: #eaf5f3; color: var(--staff-ink); }
.staff-admin .staff-admin-hero h1 { color: var(--staff-teal-dark); font-size: clamp(1.35rem, 3vw, 2rem); margin-bottom: .3rem; }
.staff-admin .staff-admin-hero p { color: var(--staff-muted); margin-bottom: 0; }

@media (max-width: 991px) { .staff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) {
    .staff-grid, .staff-login { grid-template-columns: 1fr; }
    .staff-search > div { flex-basis: 100%; }
    .staff-search .btn { width: 100%; }
    .staff-account-menu { inset-inline-start: 0; inset-inline-end: auto; }
}

.staff-profile-toolbar, .staff-profile-language-settings {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    margin-bottom: .85rem;
}
.staff-profile-toolbar .staff-profile-back { margin: 0; }
.staff-profile-links a[aria-current="page"] { background: var(--staff-teal); color: white; }
.staff-profile-plain { white-space: pre-wrap; }
.staff-profile-language-settings { justify-content: flex-start; }
.staff-profile-language-settings a { margin-inline-start: .45rem; text-decoration: underline; }
.staff-profile-language-settings input { accent-color: var(--staff-teal); }
.staff-profile-language-content { text-align: start; margin-bottom: 1rem; }
.staff-profile-language-content legend { font-size: 1.15rem; font-weight: 700; }

.staff-edit-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .85rem 1rem;
    margin-bottom: 1.25rem;
}
.staff-edit-header img {
    object-fit: contain;
    padding: .25rem;
    background: white;
    border: 1px solid var(--staff-line);
    border-radius: .85rem;
}
.staff-edit-header h1 { font-size: clamp(1.5rem, 4vw, 2.15rem); margin-bottom: .2rem; }
.staff-edit-header p { color: var(--staff-muted); margin: 0; }
.staff-edit-header .btn { margin-inline-start: auto; }
.staff-edit-layout { display: grid; grid-template-columns: minmax(13rem, 1fr) minmax(0, 3fr); align-items: start; gap: 1rem; }
.staff-edit-nav { display: grid; gap: .2rem; padding: .5rem; position: sticky; top: 1rem; }
.staff-edit-nav a { color: var(--staff-teal-dark); border-radius: .45rem; padding: .6rem .75rem; }
.staff-edit-nav a:hover, .staff-edit-secondary:hover { background: #eaf5f3; color: var(--staff-teal-dark); }
.staff-edit-secondary { border-color: var(--staff-teal); color: var(--staff-teal-dark); }
.staff-edit-content { display: grid; gap: 1rem; min-width: 0; }
.staff-edit-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1rem; }
.staff-profile-language-content .staff-edit-fields > .form-group { margin-bottom: 0; }
.staff-edit-field-wide { grid-column: 1 / -1; }
.staff-edit label { font-size: .9rem; font-weight: 700; }
.staff-edit .form-control { border-color: #b1c3ce; }
.staff-edit .form-control-file { max-width: 100%; margin-bottom: .45rem; }
.staff-edit .cke { max-width: 100%; }

@media (max-width: 767px) {
    .staff-edit-layout, .staff-edit-fields { grid-template-columns: minmax(0, 1fr); }
    .staff-edit-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .staff-edit-header .btn { margin-inline-start: 0; }
}

.staff-edit-thumbnail { object-fit: contain; border: 1px solid var(--staff-line); border-radius: .45rem; }

.staff-admin-overview > h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: .85rem; }
.staff-admin-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.75rem), 1fr));
    gap: .85rem;
}
.staff-admin .staff-admin-metric { margin-bottom: 0; }
.staff-admin-metric .card-body { padding: 1rem 1.15rem; }
.staff-admin-metric-heading, .staff-admin-metric-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}
.staff-admin-metric-heading h3 { margin: 0; font-size: .92rem; font-weight: 700; line-height: 1.5; }
.staff-admin-metric-icon {
    display: grid;
    place-items: center;
    flex: 0 0 2.25rem;
    height: 2.25rem;
    border-radius: .6rem;
    color: var(--staff-teal-dark);
    background: #eaf5f3;
}
.staff-admin-metric-total .staff-admin-metric-icon { background: #eaf0f5; color: var(--staff-navy); }
.staff-admin-metric-blocked .staff-admin-metric-icon { background: #f8eee4; color: #884711; }
.staff-admin-metric-value {
    display: block;
    margin-top: .5rem;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}
.staff-admin-metric-detail { flex-wrap: wrap; margin-top: .5rem; color: var(--staff-muted); }
.staff-admin-metric-detail .btn-link { color: var(--staff-teal-dark); text-decoration: underline; }


.staff-faculty-modal .modal-header, .staff-csv-guide .modal-header {
    align-items: center;
    background: #eaf5f3;
    border-color: var(--staff-line);
    color: var(--staff-teal-dark);
}
.staff-faculty-modal .modal-title, .staff-csv-guide .modal-title { font-size: clamp(1rem, 2.5vw, 1.25rem); font-weight: 700; }
.staff-faculty-modal .modal-title i { margin-inline-end: .3rem; }
.staff-faculty-modal .modal-header .close, .staff-csv-guide .modal-header .close { color: var(--staff-teal-dark); opacity: 1; }
.staff-faculty-modal .modal-footer, .staff-csv-guide .modal-footer { border-color: var(--staff-line); }
.staff-admin-quiet-button { border: 1px solid var(--staff-line); color: var(--staff-ink); background: #fff; }
.staff-admin-quiet-button:hover { background: #eaf5f3; color: var(--staff-teal-dark); }
.staff-faculty-table { min-width: 34rem; margin-bottom: 0; font-variant-numeric: tabular-nums; }
.staff-faculty-table th, .staff-faculty-table td { vertical-align: middle; border-color: var(--staff-line); }
.staff-admin .staff-faculty-table thead th,
.staff-faculty-table tfoot { background: #f0f6f5; }
.staff-faculty-table tbody tr:nth-child(even) { background: #f8fbfa; }
.staff-faculty-table .staff-faculty-updated { color: var(--staff-teal-dark); font-weight: 700; }
.staff-faculty-progress { display: grid; grid-template-columns: minmax(4rem, 1fr) auto; align-items: center; gap: .6rem; }
.staff-faculty-progress progress {
    appearance: none;
    width: 100%;
    height: .45rem;
    border: 0;
    background: #dfebe8;
    color: var(--staff-teal);
    border-radius: 1rem;
    overflow: hidden;
}
.staff-faculty-progress progress::-webkit-progress-bar { background: #dfebe8; }
.staff-faculty-progress progress::-webkit-progress-value { background: var(--staff-teal); border-radius: 1rem; }
.staff-faculty-progress progress::-moz-progress-bar { background: var(--staff-teal); border-radius: 1rem; }
.staff-faculty-progress bdi { min-width: 3.6rem; text-align: end; font-weight: 700; }

.staff-csv-section { margin-bottom: 1.25rem; }
.staff-csv-guide h3 { font-size: .95rem; font-weight: 700; margin-bottom: .65rem; }
.staff-csv-columns { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 0; }
.staff-csv-columns code, .staff-csv-actions code {
    display: inline-block;
    padding: .15rem .45rem;
    border-radius: .3rem;
    background: #eaf5f3;
    color: var(--staff-teal-dark);
    font-size: .85rem;
}
.staff-csv-example {
    padding: .85rem;
    overflow: auto;
    border-radius: .5rem;
    background: var(--staff-navy);
    color: #f6fcff;
    font-size: .85rem;
    line-height: 1.65;
    text-align: left;
}
.staff-csv-example code { color: inherit; }
.staff-csv-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .4rem .85rem;
    margin: 0;
}
.staff-csv-actions > div { display: grid; grid-template-columns: 4.75rem 1fr; align-items: start; gap: .4rem; }
.staff-csv-actions dd { margin: 0; }
.staff-csv-note { padding: .85rem; border: 1px solid var(--staff-line); border-radius: .5rem; background: #f1f7f6; }
.staff-csv-note p { margin-bottom: .45rem; }

@media (max-width: 575px) {
    .staff-csv-actions { grid-template-columns: minmax(0, 1fr); }
}

.staff-user-filters {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(5, minmax(0, 1fr)) auto;
    align-items: end;
    gap: .75rem;
}
.staff-user-filters.staff-user-search-only { grid-template-columns: minmax(0, 28rem) repeat(3, minmax(0, 12rem)) auto; justify-content: start; }
.staff-user-filters label { font-weight: 700; }
.staff-user-filters .btn { min-height: calc(1.5em + .75rem + 2px); }

@media (max-width: 1200px) {
    .staff-user-filters, .staff-user-filters.staff-user-search-only { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
    .staff-user-filters, .staff-user-filters.staff-user-search-only { grid-template-columns: minmax(0, 1fr); }
}

.staff-admin .staff-admin-footer {
    justify-content: space-between;
    align-items: center;
    gap: .5rem 1rem;
    flex-wrap: wrap;
    padding: .8rem 1.25rem;
    background: #f5faf9;
    color: var(--staff-muted);
    font-size: .875rem;
}
.staff-admin-footer-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; }
.staff-admin-footer-meta small { font-size: .82rem; }
.staff-admin-footer a { color: var(--staff-teal-dark); }
.staff-admin-footer a:hover { text-decoration: underline; }
.staff-admin-footer-directory { font-weight: 700; }
.staff-admin-footer-custom > :last-child { margin-bottom: 0; }

.staff-admin-quick-actions h2 { margin: 0 0 .9rem; font-size: 1.1rem; font-weight: 700; }
.staff-quick-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
    gap: .65rem;
}
.staff-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 5.25rem;
    padding: .65rem;
    border: 1px solid var(--staff-line);
    border-radius: .65rem;
    background: #f5faf9;
    color: var(--staff-teal-dark);
    text-align: center;
    font: inherit;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
}
.staff-quick-action > i { font-size: 1.05rem; }
.staff-quick-action:hover { background: #eaf5f3; border-color: #9bbfba; color: var(--staff-teal-dark); }
.staff-quick-action-primary { background: var(--staff-teal); color: #fff; border-color: var(--staff-teal); }
.staff-quick-action-primary:hover { background: var(--staff-teal-dark); color: #fff; border-color: var(--staff-teal-dark); }
.staff-quick-action-count {
    display: inline-block;
    min-width: 1.4em;
    padding-inline: .25em;
    border-radius: .3rem;
    background: #deeeeb;
    font-size: .8em;
}

.staff-user-management h2 {
    margin: 0 0 .9rem;
    font-size: 1.1rem;
    font-weight: 700;
}
.staff-user-management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: .75rem;
}
.staff-user-management-action {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    min-width: 0;
    padding: .9rem;
    border: 1px solid var(--staff-line);
    border-radius: .75rem;
    background: #f5faf9;
}
.staff-user-management-action h3 {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}
.staff-user-management-action h3 i {
    display: grid;
    place-items: center;
    flex: 0 0 2rem;
    height: 2rem;
    border-radius: .5rem;
    background: #deeeeb;
    color: var(--staff-teal-dark);
}
.staff-user-management-action p {
    margin: 0;
    color: var(--staff-muted);
}
.staff-user-management-footer { margin-top: auto; }
.staff-user-management-button,
.staff-user-file-picker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    width: 100%;
    min-height: 2.5rem;
    padding: .45rem .6rem;
    border: 1px solid var(--staff-line);
    border-radius: .5rem;
    background: #fff;
    color: var(--staff-teal-dark);
    text-align: center;
    font: inherit;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
}
.staff-user-management-button:hover,
.staff-user-file-picker:hover {
    border-color: #9bbfba;
    background: #eaf5f3;
    color: var(--staff-teal-dark);
    text-decoration: none;
}
.staff-user-management-primary {
    margin-top: .65rem;
    border-color: var(--staff-teal);
    background: var(--staff-teal);
    color: #fff;
}
.staff-user-management-primary:hover {
    border-color: var(--staff-teal-dark);
    background: var(--staff-teal-dark);
    color: #fff;
}
.staff-user-file-picker {
    position: relative;
    flex-wrap: wrap;
    margin: 0;
}
.staff-user-file-picker input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.staff-user-file-picker bdi {
    max-width: 100%;
    overflow-wrap: anywhere;
}
.staff-user-file-picker bdi:empty { display: none; }
.staff-user-file-picker:focus-within,
.staff-user-management-button:focus-visible {
    outline: 2px solid var(--staff-teal);
    outline-offset: 2px;
}

.staff-import-modal .modal-content {
    border: 1px solid var(--staff-line);
    border-radius: .85rem;
    overflow: hidden;
}
.staff-import-modal .modal-body {
    min-height: 7rem;
    padding: 1rem;
}
.staff-import-modal .modal-header,
.staff-import-modal .modal-footer {
    padding: .75rem 1rem;
}
.staff-import-modal h6 {
    margin-bottom: .45rem;
    font-weight: 700;
}
.staff-import-modal h6 label { margin: 0; }
.staff-import-modal .alert-success {
    background: #eaf5f3;
    border-color: #c3ded9;
    color: var(--staff-teal-dark);
}
.staff-import-modal #mappingRows {
    display: grid;
    gap: .35rem;
}
.staff-import-modal .mapping-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.35fr) minmax(6.5rem, auto);
    align-items: center;
    gap: .55rem;
    padding: .45rem .65rem;
    border: 1px solid var(--staff-line);
    border-radius: .5rem;
    background: #f5faf9;
}
.staff-import-source {
    min-width: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.staff-import-modal .mapping-arrow { color: var(--staff-teal-dark); }
[dir="rtl"] .staff-import-modal .mapping-arrow { transform: scaleX(-1); }
.staff-import-modal .confidence-badge {
    justify-self: start;
    white-space: nowrap;
}
.staff-import-modal .form-control:focus {
    border-color: var(--staff-teal);
    box-shadow: none;
    outline: 2px solid var(--staff-teal);
    outline-offset: 1px;
}
.staff-import-modal .table-responsive {
    border: 1px solid var(--staff-line);
    border-radius: .5rem;
}
.staff-import-modal .preview-table { margin: 0; }
.staff-import-modal .preview-table th,
.staff-import-modal .preview-table td {
    padding: .55rem .7rem;
    white-space: nowrap;
}
.staff-import-modal .preview-table th { background: #eaf5f3; }
.staff-import-modal .staff-user-management-button { width: auto; margin-top: 0; }
.staff-import-count { margin-inline-end: auto; }

@media (max-width: 575.98px) {
    .staff-import-modal .mapping-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }
    .staff-import-source { grid-column: 1 / -1; }
    .staff-import-count { flex-basis: 100%; }
}
