:root {
    --app-bg: #f4f6f8;
    --surface: #ffffff;
    --ink: #14212d;
    --muted: #61707d;
    --line: rgba(20, 33, 45, 0.08);
    --accent: #0d6b72;
    --accent-dark: #093e43;
    --hero: linear-gradient(135deg, #0f1720 0%, #10323d 55%, #0d6b72 100%);
}

body {
    background: var(--app-bg);
    color: var(--ink);
    font-family: "Instrument Sans", sans-serif;
}

h1, h2, h3, .display-5 {
    letter-spacing: 0;
}

.topbar {
    background: rgba(10, 18, 29, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.topbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: #f7fbfc;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.topbar .navbar-brand:hover,
.topbar .navbar-brand:focus {
    color: #f7fbfc;
    text-decoration: none;
}

.topbar .navbar-collapse {
    justify-content: flex-end;
}

.topbar .navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
}

.topbar .nav-link {
    color: rgba(247, 251, 252, 0.78);
    text-decoration: none;
    font-weight: 500;
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    transition: background 160ms ease, color 160ms ease;
}

.topbar .nav-link:hover,
.topbar .nav-link:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
    text-decoration: none;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #7de6db, #fef3c7);
    color: #111827;
    font-weight: 700;
}

.public-shell {
    min-height: calc(100vh - 65px);
}

.public-main .container-fluid {
    max-width: 1520px;
    margin-inline: auto;
}

.app-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: calc(100vh - 64px);
}

.sidebar-panel {
    border-right: 1px solid var(--line);
    background: #0b1320;
    color: white;
}

.sidebar-inner {
    position: sticky;
    top: 64px;
    padding: 1.5rem 1rem;
}

.nav-caption {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
}

.sidebar-link {
    color: rgba(255, 255, 255, 0.82);
    border-radius: 0.9rem;
    margin-bottom: 0.25rem;
    padding: 0.8rem 0.9rem;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.app-main {
    min-width: 0;
}

.surface-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 1.35rem;
    padding: 1.4rem;
    box-shadow: 0 18px 40px rgba(15, 23, 32, 0.06);
}

.hero-surface {
    background: var(--hero);
    color: white;
    box-shadow: 0 28px 60px rgba(15, 23, 32, 0.22);
}

.hero-copy {
    min-height: 100%;
}

.hero-panel {
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
}

.hero-panel-card {
    border-radius: 1.2rem;
    border: 1px solid rgba(15, 23, 32, 0.08);
    background: white;
    padding: 1.2rem;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
    color: #8fe5dd;
    margin-bottom: 1rem;
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.metric-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
}

.timeline-list {
    padding-left: 1.15rem;
    margin-bottom: 0;
    color: var(--muted);
}

.section-header {
    margin-bottom: 1.5rem;
}

.table-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(15, 23, 32, 0.05);
}

.table-panel .table {
    margin-bottom: 0;
}

.table-row-link {
    cursor: pointer;
}

.table-row-link:hover td,
.table-row-link:focus-visible td {
    background: rgba(13, 107, 114, 0.05);
}

.stat-tile {
    background: linear-gradient(180deg, rgba(13, 107, 114, 0.06), rgba(255, 255, 255, 0.98));
    border: 1px solid rgba(13, 107, 114, 0.1);
    border-radius: 1.2rem;
    padding: 1.1rem 1.2rem;
}

.stat-tile .value {
    font-size: 1.8rem;
    font-weight: 700;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.admin-export-card {
    border-radius: 8px;
    border-color: rgba(180, 126, 31, 0.32);
    border-left: 5px solid #b47e1f;
    background: #ffffff;
}

.admin-export-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-export-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.45rem;
    color: #8a5b0b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-export-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #14212d;
    color: #ffffff;
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.admin-export-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.admin-export-option {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    min-height: 74px;
    padding: 0.8rem;
    border: 1px solid rgba(20, 33, 45, 0.1);
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.admin-export-option:hover,
.admin-export-option:focus-within {
    border-color: rgba(13, 107, 114, 0.34);
    box-shadow: 0 8px 18px rgba(15, 23, 32, 0.06);
}

.admin-export-option.is-default {
    border-color: rgba(180, 126, 31, 0.36);
    background: #fffaf0;
}

.admin-export-option .form-check-input {
    flex: 0 0 auto;
    margin-top: 0.2rem;
}

.admin-export-option-copy {
    display: grid;
    gap: 0.16rem;
    min-width: 0;
}

.admin-export-option-title {
    color: var(--ink);
    font-weight: 700;
}

.admin-export-option-help {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.3;
}

.admin-export-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.form-share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.form-block {
    background: white;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    padding: 1.4rem;
    margin-bottom: 1rem;
}

.public-form-notes {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.public-form-inline-note {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(20, 33, 45, 0.08);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 6px 14px rgba(15, 23, 32, 0.03);
    flex: 0 0 auto;
}

.public-form-inline-chip {
    background: linear-gradient(135deg, rgba(13, 107, 114, 0.08), rgba(255, 255, 255, 0.96));
    border-color: rgba(13, 107, 114, 0.14);
}

.public-form-note-icon {
    font-size: 0.88rem;
    color: var(--accent);
    line-height: 1;
}

.public-form-step-indicator {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--accent-dark);
}

.public-form-section {
    display: none;
}

.public-form-section.is-active {
    display: block;
}

.public-form-section-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.public-form-college {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(13, 107, 114, 0.12), rgba(255, 255, 255, 0.96));
    border: 1px solid rgba(13, 107, 114, 0.18);
    box-shadow: 0 8px 18px rgba(15, 23, 32, 0.04);
    flex: 1 1 100%;
    min-width: 0;
}

.public-form-college-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.public-form-college-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-dark);
    white-space: nowrap;
}

#draft-save-indicator {
    color: var(--muted);
}

.file-preview {
    max-width: 220px;
    border-radius: 1rem;
    border: 1px solid var(--line);
}

.auth-card {
    margin-top: 4rem;
}

.utr-entry-layout {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(320px, 520px);
    gap: 1rem;
    align-items: start;
}

.utr-entry-upload-card,
.utr-entry-input-card {
    padding: 1.15rem;
}

.utr-entry-upload-card .form-label,
.utr-entry-input-card .form-label {
    margin-bottom: 0.35rem;
}

.utr-entry-upload-card .form-text,
.utr-entry-input-card .form-text {
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.utr-entry-numbers-box.form-control {
    min-height: 5.5rem;
}

.utr-entry-remarks-box.form-control {
    min-height: 2.5rem;
}

.home-summary-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
    gap: 1.25rem;
    align-items: center;
    padding: 1.35rem 1.5rem;
    border-radius: 8px;
    border-color: rgba(20, 33, 45, 0.1);
    box-shadow: 0 14px 32px rgba(15, 23, 32, 0.05);
}

.home-summary-copy {
    min-width: 0;
}

.home-summary-title {
    font-size: clamp(1.85rem, 3.2vw, 2.8rem);
    line-height: 1.04;
    margin: 0;
    font-weight: 700;
}

.home-summary-text {
    max-width: 50rem;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.45;
}

.home-overview-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.home-overview-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    cursor: pointer;
    font: inherit;
    color: inherit;
    min-height: 4.85rem;
    width: 100%;
    border: 1px solid rgba(20, 33, 45, 0.1);
    border-radius: 8px;
    padding: 0.8rem 0.9rem;
    background: #ffffff;
    text-align: left;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.home-overview-stat:hover,
.home-overview-stat.is-active {
    transform: translateY(-2px);
    border-color: rgba(13, 107, 114, 0.42);
    box-shadow: 0 10px 20px rgba(15, 23, 32, 0.07);
}

.home-overview-stat .label {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.home-overview-stat .value {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1;
}

.home-overview-stat.accent {
    border-color: rgba(13, 107, 114, 0.16);
    background: linear-gradient(180deg, rgba(13, 107, 114, 0.08), rgba(255, 255, 255, 0.98));
}

.home-directory-toolbar {
    position: sticky;
    top: 76px;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(20, 33, 45, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 28px rgba(15, 23, 32, 0.06);
    backdrop-filter: blur(10px);
}

.home-search-copy {
    min-width: min(100%, 260px);
}

.home-toolbar-search {
    position: relative;
    flex: 1 1 360px;
    max-width: 620px;
}

.home-toolbar-search .bi {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.home-toolbar-search .form-control {
    min-height: 2.7rem;
    padding-left: 2.75rem;
    border-radius: 8px;
}

.home-college-code {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.24rem 0.5rem;
    border-radius: 8px;
    background: rgba(13, 107, 114, 0.08);
    border: 1px solid rgba(13, 107, 114, 0.14);
    color: var(--accent-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.home-directory-panel {
    overflow: hidden;
    border: 1px solid rgba(20, 33, 45, 0.08);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 32, 0.05);
}

.home-directory-head,
.home-directory-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px 116px 132px;
    align-items: center;
    gap: 0.75rem;
}

.home-directory-head {
    padding: 0.7rem 1rem;
    color: var(--muted);
    background: rgba(20, 33, 45, 0.03);
    border-bottom: 1px solid rgba(20, 33, 45, 0.08);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.home-directory-row {
    position: relative;
    min-height: 4.65rem;
    padding: 0.72rem 1rem;
    border-left: 4px solid transparent;
    border-bottom: 1px solid rgba(20, 33, 45, 0.07);
    transition: background 150ms ease, border-color 150ms ease;
}

.home-directory-row:last-child {
    border-bottom: 0;
}

.home-directory-row:hover,
.home-directory-row.is-open,
.home-directory-row.is-search-match {
    background: rgba(13, 107, 114, 0.035);
    border-left-color: rgba(13, 107, 114, 0.82);
}

.home-directory-main {
    min-width: 0;
}

.home-directory-title-line {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.home-directory-title-line h2 {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.04rem;
    font-weight: 600;
    line-height: 1.25;
}

.home-directory-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.22rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.home-directory-meta span + span::before,
.home-form-subtitle span + span::before {
    content: "\2022";
    margin-right: 0.4rem;
}

.home-directory-number {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 2.8rem;
    padding: 0.45rem 0.6rem;
    border: 1px solid rgba(20, 33, 45, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
}

.home-directory-number.accent {
    border-color: rgba(13, 107, 114, 0.15);
    background: rgba(13, 107, 114, 0.05);
}

.home-directory-number span {
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1;
}

.home-directory-number small {
    margin-top: 0.18rem;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.home-directory-action {
    display: flex;
    justify-content: flex-end;
}

.home-directory-action .btn,
.home-form-row .btn {
    min-width: 6.4rem;
    border-radius: 8px;
    font-weight: 700;
    white-space: nowrap;
}

.home-directory-forms {
    grid-column: 1 / -1;
    display: grid;
    gap: 0.45rem;
    padding: 0.55rem 0 0.15rem;
}

.home-directory-row:not(.is-open):not(.is-search-match) .home-directory-forms {
    display: none;
}

.home-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.62rem 0.75rem;
    border: 1px solid rgba(20, 33, 45, 0.08);
    border-radius: 8px;
    background: #ffffff;
}

.home-form-main {
    min-width: 0;
}

.home-form-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 600;
}

.home-form-subtitle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.18rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.home-directory-empty {
    padding: 2rem;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 991.98px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar-panel {
        display: none;
    }

    .hero-metrics {
        gap: 1rem;
    }

    .public-form-college {
        width: 100%;
    }

    .public-form-section-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .admin-export-header,
    .admin-export-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-export-footer .btn {
        width: 100%;
    }

    .utr-entry-layout {
        grid-template-columns: 1fr;
    }

    .topbar .navbar-collapse {
        width: 100%;
    }

    .topbar .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        padding-top: 1rem;
        gap: 0.25rem;
    }

    .home-summary-shell {
        grid-template-columns: 1fr;
    }

    .home-directory-head,
    .home-directory-row {
        grid-template-columns: minmax(0, 1fr) 76px 96px 118px;
    }
}

@media (max-width: 575.98px) {
    .public-main .container-fluid {
        padding-inline: 0.75rem;
    }

    .home-summary-shell {
        gap: 0.95rem;
        padding: 1rem;
    }

    .home-summary-title {
        font-size: 2rem;
        line-height: 1.08;
    }

    .home-overview-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .home-overview-stat {
        min-height: 4.6rem;
        padding: 0.6rem;
    }

    .home-overview-stat .label {
        font-size: 0.62rem;
        letter-spacing: 0;
    }

    .home-overview-stat .value {
        font-size: 1.35rem;
    }

    .home-directory-toolbar {
        top: 116px;
        padding: 0.8rem;
    }

    .home-toolbar-search {
        flex-basis: 100%;
    }

    .home-directory-head {
        display: none;
    }

    .home-directory-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
        gap: 0.6rem;
        padding: 0.8rem;
        min-height: 0;
    }

    .home-directory-main {
        grid-column: 1 / -1;
    }

    .home-directory-title-line {
        align-items: flex-start;
    }

    .home-directory-title-line h2 {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        font-size: 1rem;
    }

    .home-directory-number {
        min-height: 2.5rem;
    }

    .home-directory-action .btn {
        min-width: 5.9rem;
        min-height: 2.5rem;
    }

    .home-directory-forms {
        grid-column: 1 / -1;
    }

    .home-form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-form-row .btn {
        width: 100%;
    }
}

.review-focus-toggle {
    display: none;
    white-space: nowrap;
}

.review-sidebar-backdrop {
    display: none;
}

.sidebar-focus-head {
    display: none;
}

.focus-review-mode .review-focus-toggle {
    display: inline-flex;
    align-items: center;
}

.focus-review-mode .app-shell {
    grid-template-columns: minmax(0, 1fr);
}

.focus-review-mode .sidebar-panel {
    display: block;
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    width: 250px;
    transform: translateX(-100%);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    z-index: 1045;
}

.focus-review-mode.review-sidebar-open .sidebar-panel {
    transform: translateX(0);
    box-shadow: 0 22px 50px rgba(15, 23, 32, 0.24);
}

.focus-review-mode .sidebar-inner {
    position: static;
    top: auto;
    height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 1.15rem 0.9rem 1rem;
}

.focus-review-mode .app-main .container-fluid {
    max-width: 1760px;
    padding-inline: 1rem;
}

.focus-review-mode.review-sidebar-open .review-sidebar-backdrop {
    display: block;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 19, 32, 0.28);
    z-index: 1040;
}

.focus-review-mode .sidebar-focus-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.focus-review-mode .sidebar-focus-title {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.focus-review-mode .sidebar-focus-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border-radius: 0.7rem;
}

@media (min-width: 992px) {
    .focus-review-mode .app-main {
        padding-left: 0;
        transition: padding-left 0.22s ease;
    }

    .focus-review-mode.review-sidebar-open .app-main {
        padding-left: 250px;
    }

    .focus-review-mode.review-sidebar-open .review-sidebar-backdrop {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .focus-review-mode .sidebar-panel {
        width: 260px;
    }

    .focus-review-mode .app-main .container-fluid {
        padding-inline: 0.85rem;
    }
}

.review-collapsible {
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface);
    overflow: hidden;
}

.review-collapsible summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    cursor: pointer;
    font-weight: 600;
}

.review-collapsible summary::-webkit-details-marker {
    display: none;
}

.review-collapsible summary::after {
    content: "+";
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1;
}

.review-collapsible[open] summary::after {
    content: "-";
}

.review-collapsible-meta {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.review-collapsible-body {
    border-top: 1px solid var(--line);
}

.review-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1.1rem;
}

.review-line + .review-line {
    border-top: 1px solid var(--line);
}

.review-line-label {
    color: var(--muted);
    font-size: 0.95rem;
}

.review-line-value {
    max-width: 62%;
    text-align: right;
    font-weight: 600;
    word-break: break-word;
}

.verification-review-page .app-main .container-fluid {
    height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.review-screen-layout {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.45fr);
    gap: 1.5rem;
}

.review-side-column,
.review-main-column {
    min-height: 0;
}

.review-side-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-status-card {
    flex: 0 0 auto;
}

.review-history-card {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.review-history-list {
    min-height: 0;
    overflow: auto;
}

.review-workspace-card {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.review-details-scroll {
    min-height: 0;
    overflow: auto;
    padding-right: 0.2rem;
    margin-right: -0.2rem;
}

.review-actions-shell {
    border-top: 1px solid var(--line);
    margin-top: 1rem;
    padding-top: 1.25rem;
}

@media (max-width: 767.98px) {
    .review-line {
        flex-direction: column;
    }

    .review-line-value {
        max-width: 100%;
        text-align: left;
    }
}

@media (max-width: 1199.98px) {
    .verification-review-page .app-main .container-fluid {
        height: auto;
        overflow: visible;
    }

    .review-screen-layout {
        display: block;
    }

    .review-side-column,
    .review-main-column,
    .review-history-card,
    .review-workspace-card,
    .review-details-scroll,
    .review-history-list {
        min-height: auto;
        height: auto;
        overflow: visible;
    }

    .review-side-column {
        gap: 0;
    }
}

.employee-review-shell {
    flex: 1;
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.58fr) minmax(320px, 0.76fr);
    gap: 1rem;
    align-items: stretch;
}

.verification-review-page .page-actions {
    align-items: flex-start;
    margin-bottom: 1rem;
}

.employee-review-toolbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.9rem 1rem;
    align-items: end;
}

.employee-review-toolbar-title {
    min-width: 0;
}

.employee-review-status-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: flex-end;
    gap: 0.7rem;
    min-width: 0;
    margin: 0;
}

.employee-review-status-toolbar-item {
    flex: 0 1 210px;
    min-width: 150px;
}

.employee-review-status-summary {
    justify-self: end;
    min-width: 230px;
}

.employee-review-status-summary-value {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0.65rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: var(--surface);
    font-size: 1rem;
    font-weight: 600;
}

.employee-review-status-toolbar-item .form-control,
.employee-review-status-toolbar-item .form-select {
    width: 100%;
}

.employee-review-status-toolbar-action {
    flex: 0 0 auto;
}

.employee-review-sheet,
.employee-review-rail-card {
    height: 100%;
    min-height: 0;
    padding: 1rem 1.05rem;
}

.employee-review-sheet {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.employee-review-scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding-right: 0.2rem;
    margin-right: -0.2rem;
}

.employee-review-rail {
    min-height: 0;
}

.employee-review-rail-card {
    display: flex;
    flex-direction: column;
    overflow: auto;
    padding-right: 1rem;
}

.employee-review-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.employee-review-sheet-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.employee-review-priority-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    overflow: hidden;
    background: var(--surface);
}

.employee-review-priority-row {
    padding: 0.6rem 0.8rem;
    min-width: 0;
}

.employee-review-priority-row:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.employee-review-priority-row:nth-child(n + 3) {
    border-top: 1px solid var(--line);
}

.employee-review-priority-label {
    color: var(--muted);
    font-size: 0.8rem;
}

.employee-review-priority-value {
    margin-top: 0.12rem;
    font-size: 0.94rem;
    font-weight: 700;
    word-break: break-word;
}

.employee-review-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.65rem;
}

.employee-review-contact-card {
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    padding: 0.65rem 0.8rem;
    background: var(--surface);
    min-width: 0;
}

.employee-copyable {
    position: relative;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.employee-copyable:hover,
.employee-copyable:focus-visible {
    border-color: rgba(13, 107, 114, 0.28);
    background: rgba(13, 107, 114, 0.03);
    box-shadow: 0 0 0 3px rgba(13, 107, 114, 0.08);
    outline: none;
}

.employee-copyable::after {
    content: "Copy";
    position: absolute;
    top: 0.45rem;
    right: 0.55rem;
    padding: 0.14rem 0.38rem;
    border-radius: 999px;
    background: rgba(20, 33, 45, 0.08);
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease, background 140ms ease, color 140ms ease;
}

.employee-copyable:hover::after,
.employee-copyable:focus-visible::after,
.employee-copyable[data-copy-state="copied"]::after {
    opacity: 1;
}

.employee-copyable[data-copy-state="copied"]::after {
    content: "Copied";
    background: rgba(13, 107, 114, 0.12);
    color: var(--accent-dark);
}

.employee-review-contact-label {
    color: var(--muted);
    font-size: 0.8rem;
}

.employee-review-contact-value {
    margin-top: 0.12rem;
    font-size: 0.94rem;
    font-weight: 700;
    word-break: break-word;
}

.employee-review-inline-meta {
    min-width: 170px;
    padding: 0.35rem 0.85rem;
    border-top: 1px solid var(--line);
}

.employee-review-inline-label {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.2;
}

.employee-review-inline-value {
    margin-top: 0.2rem;
    font-weight: 700;
    word-break: break-word;
}

.employee-review-copy-block {
    min-width: 150px;
    border-radius: 0.8rem;
    padding: 0.35rem 2.9rem 0.35rem 0.1rem;
}

.employee-review-complete-note {
    border: 1px solid rgba(22, 101, 52, 0.14);
    border-radius: 0.85rem;
    background: rgba(22, 101, 52, 0.05);
    padding: 0.75rem 0.85rem;
}

.employee-review-complete-note-admin {
    border-color: rgba(13, 107, 114, 0.14);
    background: rgba(13, 107, 114, 0.05);
}

.employee-review-edit-hint {
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: 0.85rem;
    background: rgba(245, 158, 11, 0.08);
    padding: 0.8rem 0.9rem;
}

.employee-review-edit-hint-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #9a3412;
    margin-bottom: 0.2rem;
}

.employee-review-complete-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
}

.employee-review-field-label {
    display: inline-block;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.employee-review-history {
    min-height: 0;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
}

.employee-review-rail-card .review-history-list {
    overflow: visible;
}

.employee-detail-section {
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    overflow: hidden;
    background: var(--surface);
}

.employee-detail-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0.8rem;
    border-bottom: 1px solid var(--line);
}

.employee-detail-section-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
}

.employee-detail-section-meta {
    color: var(--muted);
    font-size: 0.76rem;
    white-space: nowrap;
}

.employee-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.55rem;
    padding: 0.55rem;
}

.employee-detail-item {
    padding: 0.6rem 0.75rem;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.92);
}

.employee-detail-label {
    color: var(--muted);
    font-size: 0.78rem;
}

.employee-detail-value {
    font-weight: 700;
    font-size: 0.93rem;
    word-break: break-word;
}

.employee-document-list {
    display: grid;
}

.employee-document-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0.8rem;
}

.employee-document-row + .employee-document-row {
    border-top: 1px solid var(--line);
}

@media (max-width: 1199.98px) {
    .employee-review-toolbar {
        grid-template-columns: 1fr auto;
        align-items: start;
    }

    .employee-review-status-toolbar {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .employee-review-status-summary {
        justify-self: start;
    }

    .employee-review-shell {
        display: block;
        height: auto;
    }

    .employee-review-sheet,
    .employee-review-rail-card,
    .employee-review-scroll {
        min-height: auto;
        height: auto;
        overflow: visible;
    }

    .employee-review-rail {
        position: static;
        margin-top: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .employee-review-toolbar {
        grid-template-columns: 1fr;
    }

    .employee-review-status-toolbar {
        grid-column: auto;
    }

    .employee-review-status-toolbar-item,
    .employee-review-status-toolbar-action {
        flex: 1 1 100%;
    }

    .review-focus-toggle {
        justify-self: start;
    }
}

@media (max-width: 767.98px) {
    .employee-review-priority-panel {
        grid-template-columns: 1fr;
    }

    .employee-review-priority-row:nth-child(odd) {
        border-right: 0;
    }

    .employee-review-priority-row + .employee-review-priority-row {
        border-top: 1px solid var(--line);
    }

    .employee-review-contact-grid {
        grid-template-columns: 1fr;
    }

    .employee-detail-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .employee-document-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
