:root {
    --ats-ink: #20242d;
    --ats-muted: #697180;
    --ats-border: #e2e5ea;
    --ats-canvas: #f5f6f8;
    --ats-surface: #ffffff;
    --ats-surface-soft: #f9fafb;
    --ats-accent: #ef5b5b;
    --ats-accent-hover: #d94848;
    --ats-accent-soft: #fff0f0;
    --ats-success: #25835b;
    --ats-sidebar: #171a22;
    --ats-sidebar-border: #2a2e38;
    --ats-content-max: 96rem;
    --ats-shadow-sm: 0 1px 2px rgb(16 24 40 / 4%), 0 3px 10px rgb(16 24 40 / 4%);
    --ats-shadow-md: 0 10px 30px rgb(16 24 40 / 8%);
    --bs-primary: #ef5b5b;
    --bs-primary-rgb: 239, 91, 91;
    --bs-body-color: #20242d;
    --bs-body-bg: #f5f6f8;
    --bs-border-color: #e2e5ea;
}

[data-bs-theme='dark'] {
    --ats-ink: #f2f3f5;
    --ats-muted: #9ba3b0;
    --ats-border: #30343e;
    --ats-canvas: #0e1117;
    --ats-surface: #191d25;
    --ats-surface-soft: #151920;
    --ats-accent: #ff6767;
    --ats-accent-hover: #ff7b7b;
    --ats-accent-soft: #3a2227;
    --ats-success: #4cc38a;
    --ats-sidebar: #13161d;
    --ats-sidebar-border: #282c36;
    --ats-shadow-sm: 0 1px 2px rgb(0 0 0 / 20%), 0 5px 16px rgb(0 0 0 / 14%);
    --ats-shadow-md: 0 14px 38px rgb(0 0 0 / 24%);
    --bs-primary: #ff6767;
    --bs-primary-rgb: 255, 103, 103;
    --bs-body-color: #f2f3f5;
    --bs-body-bg: #0e1117;
    --bs-border-color: #30343e;
    --bs-secondary-color: #9ba3b0;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ats-ink);
    background: var(--ats-canvas);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

.ats-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

.ats-brand-mark {
    display: inline-grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border-radius: 6px;
    color: #ffffff;
    background: var(--ats-accent);
    font-size: 0.75rem;
    letter-spacing: 0;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.auth-header,
.auth-footer {
    width: min(100% - 2rem, 72rem);
    margin-inline: auto;
}

.auth-header {
    padding-block: 1.5rem;
}

.auth-main {
    display: grid;
    place-items: center;
    padding: 2rem 1rem 4rem;
}

.auth-card {
    width: min(100%, 27rem);
    border: 1px solid var(--ats-border);
    border-radius: 8px;
    background: var(--ats-surface);
    box-shadow: 0 14px 40px rgb(24 36 51 / 8%);
}

.auth-card-accent {
    height: 4px;
    border-radius: 8px 8px 0 0;
    background: var(--ats-accent);
}

.auth-card-body {
    padding: 2rem;
}

.auth-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.auth-subtitle {
    margin: 0.4rem 0 1.75rem;
    color: var(--ats-muted);
    font-size: 0.925rem;
}

.auth-footer {
    padding-block: 1rem 1.5rem;
    color: var(--ats-muted);
    font-size: 0.8rem;
    text-align: center;
}

.form-label {
    margin-bottom: 0.45rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.form-control {
    min-height: 2.75rem;
    border-color: var(--ats-border);
    border-radius: 6px;
}

.form-control:focus {
    border-color: var(--ats-accent);
    box-shadow: 0 0 0 0.2rem rgb(32 107 196 / 14%);
}

.form-check-input:checked {
    border-color: var(--ats-accent);
    background-color: var(--ats-accent);
}

.btn {
    border-radius: 6px;
    font-weight: 600;
}

.btn-primary {
    border-color: var(--ats-accent);
    background: var(--ats-accent);
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--ats-accent-hover);
    background: var(--ats-accent-hover);
}

.alert {
    border-radius: 6px;
    font-size: 0.875rem;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
}

.app-sidebar {
    min-height: 100vh;
    padding: 1.25rem 1rem;
    color: #dce5ee;
    background: var(--ats-sidebar);
}

.app-sidebar .ats-brand {
    padding-inline: 0.5rem;
    color: #ffffff;
}

.app-nav-label {
    margin: 2rem 0.75rem 0.6rem;
    color: #8292a4;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.app-nav-link {
    display: flex;
    align-items: center;
    min-height: 2.6rem;
    padding: 0.65rem 0.75rem;
    border-radius: 6px;
    color: #b9c5d1;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.app-nav-link.active {
    color: #ffffff;
    background: rgb(255 255 255 / 10%);
}

.app-frame {
    min-width: 0;
    background: var(--ats-canvas);
}

.app-topbar {
    min-height: 4.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 2rem;
    border-bottom: 1px solid var(--ats-border);
    background: var(--ats-surface);
}

.app-user-name {
    font-size: 0.875rem;
    font-weight: 700;
}

.app-user-email {
    color: var(--ats-muted);
    font-size: 0.75rem;
}

.topbar-actions,
.theme-control {
    display: flex;
    align-items: center;
}

.topbar-actions {
    gap: 1rem;
}

.theme-control {
    gap: 0.55rem;
    color: var(--ats-muted);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.theme-control .form-check-input {
    margin: 0;
    cursor: pointer;
}

.app-main {
    width: min(100%, 90rem);
    padding: 2rem;
}

.page-kicker {
    margin-bottom: 0.3rem;
    color: var(--ats-accent);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.page-title {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 700;
}

.page-subtitle {
    margin: 0.45rem 0 0;
    color: var(--ats-muted);
    font-size: 0.925rem;
}

.status-panel {
    margin-top: 2rem;
    border-top: 1px solid var(--ats-border);
    border-bottom: 1px solid var(--ats-border);
    background: var(--ats-surface);
}

.status-row {
    display: grid;
    grid-template-columns: 10rem minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.status-row + .status-row {
    border-top: 1px solid var(--ats-border);
}

.status-label {
    color: var(--ats-muted);
    font-size: 0.825rem;
    font-weight: 600;
}

.status-value {
    font-size: 0.875rem;
    font-weight: 600;
}

.status-indicator {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    margin-right: 0.4rem;
    border-radius: 50%;
    background: var(--ats-success);
}

.role-badge {
    display: inline-block;
    margin: 0 0.3rem 0.3rem 0;
    padding: 0.25rem 0.5rem;
    border: 1px solid #b8d4f3;
    border-radius: 4px;
    color: #18579d;
    background: #eaf3fc;
    font-size: 0.75rem;
    font-weight: 700;
}

.dashboard-page-header,
.section-heading,
.role-distribution-meta,
.module-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-date {
    color: var(--ats-muted);
    font-size: 0.825rem;
    font-weight: 600;
}

.welcome-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 1.75rem;
    padding: 1.5rem;
    border: 1px solid var(--ats-border);
    border-left: 4px solid var(--ats-accent);
    border-radius: 8px;
    background: var(--ats-surface);
}

.welcome-card h2 {
    margin: 0.25rem 0 0.35rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.welcome-card p {
    margin: 0;
    color: var(--ats-muted);
    font-size: 0.875rem;
}

.welcome-eyebrow,
.welcome-access-label {
    color: var(--ats-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.welcome-access {
    min-width: 12rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--ats-border);
}

.welcome-access-label {
    display: block;
    margin-bottom: 0.45rem;
}

.dashboard-section {
    margin-top: 2rem;
}

.section-heading {
    margin-bottom: 1rem;
}

.section-heading h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.section-heading p {
    margin: 0.25rem 0 0;
    color: var(--ats-muted);
    font-size: 0.8rem;
}

.section-status {
    padding: 0.25rem 0.55rem;
    border: 1px solid var(--ats-border);
    border-radius: 4px;
    color: var(--ats-muted);
    background: var(--ats-surface);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
}

.metric-card {
    min-width: 0;
    padding: 1rem 1.1rem;
    border: 1px solid var(--ats-border);
    border-top: 3px solid var(--ats-accent);
    border-radius: 6px;
    background: var(--ats-surface);
}

.metric-card-active_users {
    border-top-color: var(--ats-success);
}

.metric-card-inactive_users {
    border-top-color: #d97706;
}

.metric-card-total_roles {
    border-top-color: #6f42c1;
}

.metric-card-total_permissions {
    border-top-color: #0f766e;
}

.metric-label,
.metric-context {
    color: var(--ats-muted);
    font-size: 0.75rem;
}

.metric-label {
    overflow-wrap: anywhere;
    font-weight: 700;
}

.metric-value {
    margin-block: 0.45rem 0.25rem;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1;
}

.dashboard-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr);
    gap: 2rem;
}

.dashboard-table-wrap,
.role-distribution-list {
    border-top: 1px solid var(--ats-border);
    border-bottom: 1px solid var(--ats-border);
    background: var(--ats-surface);
}

.dashboard-table {
    color: var(--ats-ink);
    font-size: 0.8rem;
}

.dashboard-table > :not(caption) > * > * {
    padding: 0.8rem 1rem;
    border-color: var(--ats-border);
    background: transparent;
}

.dashboard-table thead th {
    color: var(--ats-muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.user-cell {
    display: flex;
    min-width: 12rem;
    align-items: center;
    gap: 0.7rem;
}

.user-avatar {
    flex: 0 0 auto;
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 6px;
    color: #174f87;
    background: #dfeefa;
    font-size: 0.72rem;
    font-weight: 800;
}

.user-cell-name,
.user-cell-email {
    display: block;
}

.user-cell-name {
    font-weight: 700;
}

.user-cell-email {
    max-width: 16rem;
    overflow: hidden;
    color: var(--ats-muted);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-role {
    display: inline-block;
    margin: 0.15rem 0.2rem 0.15rem 0;
    color: var(--ats-muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.status-pill {
    display: inline-block;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
}

.status-pill-active {
    color: #216e35;
    background: #e5f5e9;
}

.status-pill-inactive {
    color: #9a4b0b;
    background: #fff1db;
}

.empty-table-state,
.empty-section-state {
    padding: 2rem;
    color: var(--ats-muted);
    font-size: 0.825rem;
    text-align: center;
}

.role-distribution-list {
    padding: 0.35rem 1.1rem;
}

.role-distribution-item {
    padding-block: 0.85rem;
}

.role-distribution-item + .role-distribution-item {
    border-top: 1px solid var(--ats-border);
}

.role-distribution-meta {
    margin-bottom: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.role-distribution-meta span:last-child {
    color: var(--ats-muted);
}

.role-progress {
    height: 0.35rem;
    overflow: hidden;
    border-radius: 4px;
    background: var(--ats-canvas);
}

.role-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--ats-accent);
}

.upcoming-section {
    padding-bottom: 2rem;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.module-card {
    min-width: 0;
    min-height: 7.5rem;
    padding: 1rem;
    border: 1px solid var(--ats-border);
    border-radius: 6px;
    background: var(--ats-surface);
}

.module-card h3 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
}

.module-card-header span {
    color: var(--ats-muted);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.module-card p {
    margin: 0.75rem 0 0;
    color: var(--ats-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

[data-bs-theme='dark'] .role-badge {
    border-color: #315d88;
    color: #a9d2f5;
    background: #17324b;
}

[data-bs-theme='dark'] .user-avatar {
    color: #b8dcfa;
    background: #243f58;
}

[data-bs-theme='dark'] .status-pill-active {
    color: #a9e8b7;
    background: #20492d;
}

[data-bs-theme='dark'] .status-pill-inactive {
    color: #f4c78c;
    background: #523716;
}

@media (max-width: 1199.98px) {
    .metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-detail-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 991.98px) {
    .module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .app-sidebar {
        min-height: auto;
        padding: 0.8rem 1rem;
    }

    .app-sidebar-nav {
        display: none;
    }

    .app-topbar {
        padding-inline: 1rem;
    }

    .app-main {
        padding: 1.5rem 1rem;
    }

    .app-user-email,
    .theme-control > span:first-child {
        display: none;
    }

    .topbar-actions {
        gap: 0.65rem;
    }

    .dashboard-page-header,
    .welcome-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-date {
        align-self: flex-start;
    }

    .welcome-access {
        width: 100%;
        min-width: 0;
        padding: 1rem 0 0;
        border-top: 1px solid var(--ats-border);
        border-left: 0;
    }

    .metric-grid,
    .module-grid {
        grid-template-columns: 1fr;
    }

    .status-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .auth-card-body {
        padding: 1.5rem;
    }
}

.candidate-resumes-section {
    padding-bottom: 2rem;
}

.candidate-resumes-heading {
    margin-bottom: 1rem;
}

.resume-upload-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: end;
    gap: 1rem;
    padding: 1rem;
    border-top: 1px solid var(--ats-border);
    border-bottom: 1px solid var(--ats-border);
    background: var(--ats-surface);
}

.resume-upload-field {
    min-width: 0;
}

.resume-upload-field .form-text {
    color: var(--ats-muted);
    font-size: 0.7rem;
}

.resume-primary-check {
    min-height: 2.4rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.resume-primary-check .form-check-input {
    margin: 0;
}

.resume-list {
    background: var(--ats-surface);
}

.resume-list-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--ats-border);
}

.resume-file-mark {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border-radius: 6px;
    color: #8f2634;
    background: #fbe7ea;
    font-size: 0.62rem;
    font-weight: 800;
}

.resume-file-info {
    min-width: 0;
}

.resume-file-name {
    overflow: hidden;
    font-size: 0.82rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resume-file-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.8rem;
    margin-top: 0.3rem;
    color: var(--ats-muted);
    font-size: 0.68rem;
}

.resume-primary-badge {
    margin-left: 0.35rem;
    color: #155d54;
    background: #d9f0ec;
    vertical-align: middle;
}

.resume-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.resume-empty-state {
    padding: 2rem 1rem;
    border-top: 1px solid var(--ats-border);
    border-bottom: 1px solid var(--ats-border);
    color: var(--ats-muted);
    font-size: 0.8rem;
    text-align: center;
}

[data-bs-theme='dark'] .resume-file-mark {
    color: #f1b1ba;
    background: #53262d;
}

[data-bs-theme='dark'] .resume-primary-badge {
    color: #a8e3da;
    background: #1d4943;
}

@media (max-width: 767.98px) {
    .resume-upload-form,
    .resume-list-item {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .resume-primary-check {
        min-height: auto;
    }

    .resume-file-mark {
        width: 100%;
        height: 2rem;
    }

    .resume-actions .btn,
    .resume-actions form {
        flex: 1;
    }

    .resume-actions .btn,
    .resume-actions form .btn {
        width: 100%;
    }
}

.candidate-filter-toolbar {
    display: grid;
    grid-template-columns: minmax(14rem, 1.5fr) repeat(5, minmax(8rem, 1fr)) auto auto;
}

.candidate-filter-toolbar > div,
.candidate-filter-toolbar .form-control,
.candidate-filter-toolbar .form-select {
    min-width: 0;
    width: 100%;
}

.candidate-name-cell,
.candidate-profile-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.candidate-name-cell {
    min-width: 13rem;
}

.candidate-name-cell a,
.candidate-name-cell small {
    display: block;
}

.candidate-name-cell a {
    color: var(--ats-ink);
    font-weight: 700;
    text-decoration: none;
}

.candidate-name-cell a:hover {
    color: var(--ats-accent);
}

.candidate-name-cell small {
    margin-top: 0.15rem;
    color: var(--ats-muted);
    font-size: 0.7rem;
}

.candidate-avatar {
    flex: 0 0 auto;
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    place-items: center;
    border-radius: 6px;
    color: #5b3f8f;
    background: #ece4f8;
    font-size: 0.7rem;
    font-weight: 800;
}

.candidate-avatar-large {
    width: 3.4rem;
    height: 3.4rem;
    font-size: 0.95rem;
}

.candidate-badge {
    display: inline-block;
    padding: 0.22rem 0.48rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}

.candidate-badge-source,
.candidate-badge-availability,
.candidate-status-new {
    color: #4d5b69;
    background: #e9edf1;
}

.candidate-status-active {
    color: #216e35;
    background: #e5f5e9;
}

.candidate-status-inactive {
    color: #9a4b0b;
    background: #fff1db;
}

.candidate-status-archived {
    color: #6c3d75;
    background: #f2e7f5;
}

.candidate-summary-card {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 1.75rem;
    border: 1px solid var(--ats-border);
    border-radius: 8px;
    background: var(--ats-surface);
}

.candidate-summary-card > div {
    min-width: 0;
    padding: 1rem 1.2rem;
}

.candidate-summary-card > div + div {
    border-left: 1px solid var(--ats-border);
}

.candidate-summary-card span,
.candidate-summary-card strong {
    display: block;
}

.candidate-summary-card > div > span {
    margin-bottom: 0.35rem;
    color: var(--ats-muted);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.candidate-summary-card strong {
    overflow-wrap: anywhere;
    font-size: 0.8rem;
}

.candidate-skills-section {
    padding-bottom: 2rem;
}

.candidate-skills-copy {
    padding: 1rem;
    border-top: 1px solid var(--ats-border);
    border-bottom: 1px solid var(--ats-border);
    color: var(--ats-ink);
    background: var(--ats-surface);
    font-size: 0.84rem;
    line-height: 1.7;
    white-space: pre-line;
}

[data-bs-theme='dark'] .candidate-avatar {
    color: #d8c5f3;
    background: #44325d;
}

[data-bs-theme='dark'] .candidate-badge-source,
[data-bs-theme='dark'] .candidate-badge-availability,
[data-bs-theme='dark'] .candidate-status-new {
    color: #c4ced8;
    background: #33404d;
}

[data-bs-theme='dark'] .candidate-status-active {
    color: #a9e8b7;
    background: #20492d;
}

[data-bs-theme='dark'] .candidate-status-inactive {
    color: #f4c78c;
    background: #523716;
}

[data-bs-theme='dark'] .candidate-status-archived {
    color: #dfb9e8;
    background: #4c3153;
}

@media (max-width: 1399.98px) {
    .candidate-filter-toolbar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .candidate-filter-search {
        grid-column: span 2;
    }
}

@media (max-width: 767.98px) {
    .candidate-filter-toolbar,
    .candidate-summary-card {
        grid-template-columns: 1fr;
    }

    .candidate-filter-search {
        grid-column: auto;
    }

    .candidate-summary-card > div + div {
        border-top: 1px solid var(--ats-border);
        border-left: 0;
    }
}

.app-alert {
    margin-bottom: 1.25rem;
    border: 1px solid #a8d8b2;
    color: #216e35;
    background: #e9f7ec;
}

.resource-breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.75rem;
}

.resource-breadcrumb a {
    color: var(--ats-muted);
    text-decoration: none;
}

.resource-breadcrumb a:hover {
    color: var(--ats-accent);
}

.resource-page-header,
.resource-header-actions,
.company-heading,
.company-toolbar,
.company-name-cell,
.table-actions,
.form-section-status,
.form-actions {
    display: flex;
    align-items: center;
}

.resource-page-header {
    justify-content: space-between;
    gap: 1.5rem;
}

.resource-header-actions,
.table-actions,
.form-actions {
    gap: 0.55rem;
}

.company-toolbar {
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.75rem;
    padding: 0.85rem;
    border-top: 1px solid var(--ats-border);
    border-bottom: 1px solid var(--ats-border);
    background: var(--ats-surface);
}

.company-search-field {
    flex: 1 1 22rem;
}

.company-toolbar .form-control,
.company-toolbar .form-select {
    min-height: 2.4rem;
    font-size: 0.8rem;
}

.company-toolbar .form-select {
    min-width: 9rem;
    border-color: var(--ats-border);
    border-radius: 6px;
}

.company-toolbar .btn-link {
    color: var(--ats-muted);
    font-size: 0.8rem;
    text-decoration: none;
}

.data-panel {
    border-bottom: 1px solid var(--ats-border);
    background: var(--ats-surface);
}

.resource-table {
    color: var(--ats-ink);
    font-size: 0.8rem;
}

.resource-table > :not(caption) > * > * {
    padding: 0.85rem 1rem;
    border-color: var(--ats-border);
    background: transparent;
}

.resource-table thead th {
    color: var(--ats-muted);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.resource-table td > small,
.company-name-cell small,
.table-primary-value {
    display: block;
}

.resource-table td > small,
.company-name-cell small {
    margin-top: 0.15rem;
    color: var(--ats-muted);
    font-size: 0.7rem;
}

.company-name-cell,
.company-heading {
    gap: 0.7rem;
}

.company-name-cell {
    min-width: 13rem;
}

.company-name-cell a {
    color: var(--ats-ink);
    font-weight: 700;
    text-decoration: none;
}

.company-name-cell a:hover {
    color: var(--ats-accent);
}

.company-mark {
    flex: 0 0 auto;
    display: grid;
    width: 2.1rem;
    height: 2.1rem;
    place-items: center;
    border-radius: 6px;
    color: #155d54;
    background: #d9f0ec;
    font-size: 0.75rem;
    font-weight: 800;
}

.company-mark-large {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1rem;
}

.table-actions {
    justify-content: flex-end;
    min-width: 12rem;
}

.resource-pagination {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.resource-pagination .pagination {
    margin: 0;
}

.resource-pagination .page-link {
    border-color: var(--ats-border);
    color: var(--ats-muted);
    background: var(--ats-surface);
}

.resource-pagination .active > .page-link {
    border-color: var(--ats-accent);
    color: #ffffff;
    background: var(--ats-accent);
}

.resource-form {
    width: min(100%, 58rem);
    margin-top: 1.75rem;
}

.form-section {
    padding: 1.5rem;
    border-top: 1px solid var(--ats-border);
    background: var(--ats-surface);
}

.form-section + .form-section {
    border-top: 1px solid var(--ats-border);
}

.form-section-heading {
    margin-bottom: 1.25rem;
}

.form-section h2,
.form-section-heading h2 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
}

.form-section p,
.form-section-heading p {
    margin: 0.25rem 0 0;
    color: var(--ats-muted);
    font-size: 0.78rem;
}

.form-section textarea.form-control {
    min-height: auto;
    resize: vertical;
}

.form-section-status {
    justify-content: space-between;
    gap: 1.5rem;
    border-bottom: 1px solid var(--ats-border);
}

.form-section-status .form-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.form-section-status .form-check-input {
    margin: 0;
}

.form-actions {
    justify-content: flex-end;
    padding-top: 1rem;
}

.company-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.75rem;
    border-top: 1px solid var(--ats-border);
    border-bottom: 1px solid var(--ats-border);
    background: var(--ats-surface);
}

.company-summary > div {
    padding: 1rem 1.25rem;
}

.company-summary > div + div {
    border-left: 1px solid var(--ats-border);
}

.company-summary span,
.company-summary strong {
    display: block;
}

.company-summary span {
    margin-bottom: 0.35rem;
    color: var(--ats-muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.company-summary strong {
    width: max-content;
    max-width: 100%;
    font-size: 0.82rem;
}

.company-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.detail-section {
    margin-top: 2rem;
}

.detail-list {
    margin: 0;
    border-top: 1px solid var(--ats-border);
    border-bottom: 1px solid var(--ats-border);
    background: var(--ats-surface);
}

.detail-list > div {
    display: grid;
    grid-template-columns: 8rem minmax(0, 1fr);
    gap: 1rem;
    padding: 0.85rem 1rem;
}

.detail-list > div + div {
    border-top: 1px solid var(--ats-border);
}

.detail-list dt {
    color: var(--ats-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.detail-list dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 0.8rem;
    font-weight: 600;
}

.detail-list a {
    color: var(--ats-accent);
}

.company-description {
    padding-bottom: 2rem;
}

.company-description > p {
    margin: 0;
    padding: 1rem;
    border-top: 1px solid var(--ats-border);
    border-bottom: 1px solid var(--ats-border);
    color: var(--ats-muted);
    background: var(--ats-surface);
    font-size: 0.82rem;
    line-height: 1.65;
    white-space: pre-line;
}

[data-bs-theme='dark'] .app-alert {
    border-color: #346c43;
    color: #b3e8be;
    background: #203f29;
}

[data-bs-theme='dark'] .company-mark {
    color: #a8e3da;
    background: #1d4943;
}

.department-mark {
    color: #6a3f12;
    background: #f7e6c8;
}

.resource-inline-link {
    color: var(--ats-accent);
    font-weight: 600;
    text-decoration: none;
}

.resource-inline-link:hover {
    color: var(--ats-accent-hover);
    text-decoration: underline;
}

[data-bs-theme='dark'] .department-mark {
    color: #f0cc9e;
    background: #53391d;
}

.job-posting-form {
    width: min(100%, 68rem);
}

.job-filter-toolbar {
    display: grid;
    grid-template-columns: minmax(14rem, 1.4fr) repeat(5, minmax(9rem, 1fr)) auto auto;
}

.job-filter-toolbar > div,
.job-filter-toolbar .form-control,
.job-filter-toolbar .form-select {
    min-width: 0;
    width: 100%;
}

.job-title-cell {
    min-width: 14rem;
}

.job-title-cell a,
.job-title-cell small {
    display: block;
}

.job-title-cell a {
    color: var(--ats-ink);
    font-weight: 700;
    text-decoration: none;
}

.job-title-cell a:hover {
    color: var(--ats-accent);
}

.job-title-cell small {
    margin-top: 0.2rem;
    color: var(--ats-muted);
    font-size: 0.7rem;
}

.job-badge {
    display: inline-block;
    padding: 0.22rem 0.48rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}

.job-status-draft,
.job-badge-neutral {
    color: #536170;
    background: #e9edf1;
}

.job-status-open {
    color: #216e35;
    background: #e5f5e9;
}

.job-status-paused {
    color: #9a4b0b;
    background: #fff1db;
}

.job-status-closed {
    color: #8f2634;
    background: #fbe7ea;
}

.job-summary-card {
    margin-top: 1.75rem;
    padding: 1.4rem;
    border: 1px solid var(--ats-border);
    border-radius: 8px;
    background: var(--ats-surface);
}

.job-summary-primary,
.job-summary-metrics,
.job-audit-strip {
    display: flex;
    align-items: center;
}

.job-summary-primary {
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ats-border);
}

.job-summary-primary strong,
.job-summary-primary span {
    display: block;
}

.job-summary-primary div > span {
    margin-top: 0.15rem;
    color: var(--ats-muted);
    font-size: 0.75rem;
}

.job-summary-metrics {
    align-items: stretch;
    padding-top: 1rem;
}

.job-summary-metrics > div {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 1rem;
}

.job-summary-metrics > div:first-child {
    padding-left: 0;
}

.job-summary-metrics > div + div {
    border-left: 1px solid var(--ats-border);
}

.job-summary-metrics span,
.job-summary-metrics strong {
    display: block;
}

.job-summary-metrics span,
.job-audit-strip span {
    margin-bottom: 0.3rem;
    color: var(--ats-muted);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.job-summary-metrics strong,
.job-audit-strip strong {
    overflow-wrap: anywhere;
    font-size: 0.8rem;
}

.job-content-copy {
    padding: 1rem;
    border-top: 1px solid var(--ats-border);
    border-bottom: 1px solid var(--ats-border);
    color: var(--ats-ink);
    background: var(--ats-surface);
    font-size: 0.84rem;
    line-height: 1.7;
    white-space: pre-line;
}

.job-audit-strip {
    align-items: stretch;
    margin-bottom: 2rem;
    border-top: 1px solid var(--ats-border);
    border-bottom: 1px solid var(--ats-border);
    background: var(--ats-surface);
}

.job-audit-strip > div {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.9rem 1rem;
}

.job-audit-strip > div + div {
    border-left: 1px solid var(--ats-border);
}

[data-bs-theme='dark'] .job-status-draft,
[data-bs-theme='dark'] .job-badge-neutral {
    color: #c4ced8;
    background: #33404d;
}

[data-bs-theme='dark'] .job-status-open {
    color: #a9e8b7;
    background: #20492d;
}

[data-bs-theme='dark'] .job-status-paused {
    color: #f4c78c;
    background: #523716;
}

[data-bs-theme='dark'] .job-status-closed {
    color: #f1b1ba;
    background: #53262d;
}

@media (max-width: 1399.98px) {
    .job-filter-toolbar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

    .job-summary-metrics,
    .job-audit-strip {
        align-items: stretch;
        flex-direction: column;
    }

    .job-summary-metrics > div,
    .job-summary-metrics > div:first-child {
        padding: 0.75rem 0;
    }

    .job-summary-metrics > div + div,
    .job-audit-strip > div + div {
        border-top: 1px solid var(--ats-border);
        border-left: 0;
    }
}

@media (max-width: 991.98px) {
    .company-detail-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 767.98px) {
    .resource-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .resource-header-actions {
        width: 100%;
    }

    .resource-header-actions .btn {
        flex: 1;
    }

    .company-toolbar > div,
    .company-toolbar .btn:not(.btn-link) {
        width: 100%;
    }

    .company-toolbar .form-select {
        width: 100%;
    }

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

    .company-summary > div + div {
        border-top: 1px solid var(--ats-border);
        border-left: 0;
    }

    .detail-list > div {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }

    .form-section {
        padding: 1.25rem 1rem;
    }
}

.application-filter-toolbar {
    display: grid;
    grid-template-columns: minmax(15rem, 2fr) minmax(9rem, 1fr) minmax(13rem, 1.5fr) minmax(9rem, 1fr) auto auto;
    gap: 0.75rem;
    align-items: center;
    margin: 1.75rem 0 1rem;
}

.application-filter-toolbar .form-control,
.application-filter-toolbar .form-select {
    width: 100%;
}

.application-person-cell a,
.application-person-cell small {
    display: block;
}

.application-person-cell a {
    color: var(--ats-ink);
    font-weight: 700;
    text-decoration: none;
}

.application-person-cell a:hover {
    color: var(--ats-accent);
}

.application-person-cell small {
    margin-top: 0.2rem;
    color: var(--ats-muted);
    font-size: 0.7rem;
}

.application-badge {
    display: inline-block;
    padding: 0.24rem 0.5rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}

.application-status-applied {
    color: #145b9e;
    background: #e2f0ff;
}

.application-status-screening {
    color: #8a5706;
    background: #fff1cc;
}

.application-status-shortlisted {
    color: #216e35;
    background: #e5f5e9;
}

.application-status-rejected {
    color: #8f2634;
    background: #fbe7ea;
}

.application-status-withdrawn {
    color: #536170;
    background: #e9edf1;
}

.application-summary-card {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 1.75rem;
    border: 1px solid var(--ats-border);
    border-radius: 8px;
    background: var(--ats-surface);
}

.application-summary-card > div {
    min-width: 0;
    padding: 1rem 1.1rem;
}

.application-summary-card > div + div {
    border-left: 1px solid var(--ats-border);
}

.application-summary-card span,
.application-summary-card strong {
    display: block;
}

.application-summary-card > div > span {
    margin-bottom: 0.4rem;
    color: var(--ats-muted);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.application-summary-card > div > strong {
    overflow-wrap: anywhere;
    font-size: 0.82rem;
}

.application-notes-copy {
    min-height: 5rem;
    padding: 1rem;
    border-top: 1px solid var(--ats-border);
    color: var(--ats-ink);
    background: var(--ats-surface);
    font-size: 0.84rem;
    line-height: 1.7;
    white-space: pre-line;
}

.related-applications-section {
    overflow: hidden;
}

.related-applications-heading,
.related-applications-actions {
    display: flex;
    align-items: center;
}

.related-applications-heading {
    justify-content: space-between;
    gap: 1rem;
}

.related-applications-actions {
    flex: 0 0 auto;
    gap: 0.75rem;
}

.related-application-table {
    color: var(--ats-ink);
    font-size: 0.8rem;
}

.related-application-table > :not(caption) > * > * {
    padding: 0.8rem 1rem;
    border-color: var(--ats-border);
    background: transparent;
}

.related-application-table thead th {
    color: var(--ats-muted);
    background: color-mix(in srgb, var(--ats-canvas) 70%, transparent);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.related-application-table td > small {
    display: block;
    margin-top: 0.15rem;
    color: var(--ats-muted);
    font-size: 0.7rem;
}

[data-bs-theme='dark'] .application-status-applied {
    color: #aad3ff;
    background: #173d61;
}

[data-bs-theme='dark'] .application-status-screening {
    color: #f5d28f;
    background: #523b17;
}

[data-bs-theme='dark'] .application-status-shortlisted {
    color: #a9e8b7;
    background: #20492d;
}

[data-bs-theme='dark'] .application-status-rejected {
    color: #f1b1ba;
    background: #53262d;
}

[data-bs-theme='dark'] .application-status-withdrawn {
    color: #c4ced8;
    background: #33404d;
}

@media (max-width: 1199.98px) {
    .application-filter-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .application-filter-search {
        grid-column: 1 / -1;
    }
}

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

    .application-filter-search {
        grid-column: auto;
    }

    .application-summary-card {
        grid-template-columns: 1fr;
    }

    .application-summary-card > div + div {
        border-top: 1px solid var(--ats-border);
        border-left: 0;
    }

    .related-applications-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .related-applications-actions {
        width: 100%;
        justify-content: space-between;
    }
}

.interview-filter-toolbar {
    display: grid;
    grid-template-columns: minmax(15rem, 2fr) repeat(2, minmax(8rem, 1fr)) repeat(2, minmax(9rem, 1fr)) auto auto;
    gap: 0.75rem;
    align-items: center;
    margin: 1.75rem 0 1rem;
}

.interview-filter-toolbar .form-control,
.interview-filter-toolbar .form-select {
    width: 100%;
}

.interview-date-cell strong,
.interview-date-cell small {
    display: block;
}

.interview-date-cell strong {
    font-size: 0.8rem;
}

.interview-date-cell small {
    margin-top: 0.2rem;
    color: var(--ats-muted);
    font-size: 0.7rem;
}

.interview-badge {
    display: inline-block;
    padding: 0.24rem 0.5rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}

.interview-type-phone,
.interview-type-hr {
    color: #536170;
    background: #e9edf1;
}

.interview-type-video {
    color: #145b9e;
    background: #e2f0ff;
}

.interview-type-onsite {
    color: #76530a;
    background: #fff2cc;
}

.interview-type-technical {
    color: #5c3b91;
    background: #eee7fa;
}

.interview-status-scheduled {
    color: #145b9e;
    background: #e2f0ff;
}

.interview-status-rescheduled {
    color: #8a5706;
    background: #fff1cc;
}

.interview-status-completed {
    color: #216e35;
    background: #e5f5e9;
}

.interview-status-cancelled {
    color: #8f2634;
    background: #fbe7ea;
}

.interview-summary-card {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 1.75rem;
    border: 1px solid var(--ats-border);
    border-radius: 8px;
    background: var(--ats-surface);
}

.interview-summary-card > div {
    min-width: 0;
    padding: 1rem 1.1rem;
}

.interview-summary-card > div + div {
    border-left: 1px solid var(--ats-border);
}

.interview-summary-card span,
.interview-summary-card strong {
    display: block;
}

.interview-summary-card > div > span {
    margin-bottom: 0.4rem;
    color: var(--ats-muted);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.interview-summary-card > div > strong {
    overflow-wrap: anywhere;
    font-size: 0.82rem;
}

.interview-notes-copy {
    min-height: 5rem;
    padding: 1rem;
    border-top: 1px solid var(--ats-border);
    color: var(--ats-ink);
    background: var(--ats-surface);
    font-size: 0.84rem;
    line-height: 1.7;
    white-space: pre-line;
}

.application-interviews-section {
    overflow: hidden;
}

.application-interviews-heading,
.application-interviews-actions {
    display: flex;
    align-items: center;
}

.application-interviews-heading {
    justify-content: space-between;
    gap: 1rem;
}

.application-interviews-actions {
    flex: 0 0 auto;
    gap: 0.75rem;
}

.related-interview-table {
    color: var(--ats-ink);
    font-size: 0.8rem;
}

.related-interview-table > :not(caption) > * > * {
    padding: 0.8rem 1rem;
    border-color: var(--ats-border);
    background: transparent;
}

.related-interview-table thead th {
    color: var(--ats-muted);
    background: color-mix(in srgb, var(--ats-canvas) 70%, transparent);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.related-interview-table td > small {
    display: block;
    margin-top: 0.15rem;
    color: var(--ats-muted);
    font-size: 0.7rem;
}

[data-bs-theme='dark'] .interview-type-phone,
[data-bs-theme='dark'] .interview-type-hr {
    color: #c4ced8;
    background: #33404d;
}

[data-bs-theme='dark'] .interview-type-video,
[data-bs-theme='dark'] .interview-status-scheduled {
    color: #aad3ff;
    background: #173d61;
}

[data-bs-theme='dark'] .interview-type-onsite,
[data-bs-theme='dark'] .interview-status-rescheduled {
    color: #f5d28f;
    background: #523b17;
}

[data-bs-theme='dark'] .interview-type-technical {
    color: #d7c0fa;
    background: #3f2d5f;
}

[data-bs-theme='dark'] .interview-status-completed {
    color: #a9e8b7;
    background: #20492d;
}

[data-bs-theme='dark'] .interview-status-cancelled {
    color: #f1b1ba;
    background: #53262d;
}

@media (max-width: 1399.98px) {
    .interview-filter-toolbar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .interview-filter-search {
        grid-column: span 2;
    }
}

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

    .interview-filter-search {
        grid-column: auto;
    }

    .interview-summary-card {
        grid-template-columns: 1fr;
    }

    .interview-summary-card > div + div {
        border-top: 1px solid var(--ats-border);
        border-left: 0;
    }

    .application-interviews-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .application-interviews-actions {
        width: 100%;
        justify-content: space-between;
    }
}

.feedback-context-strip,
.feedback-summary-card {
    display: grid;
    margin-top: 1.75rem;
    border: 1px solid var(--ats-border);
    border-radius: 8px;
    background: var(--ats-surface);
}

.feedback-context-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feedback-summary-card {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feedback-context-strip > div,
.feedback-summary-card > div {
    min-width: 0;
    padding: 1rem 1.1rem;
}

.feedback-context-strip > div + div,
.feedback-summary-card > div + div {
    border-left: 1px solid var(--ats-border);
}

.feedback-context-strip span,
.feedback-context-strip strong,
.feedback-summary-card span,
.feedback-summary-card strong {
    display: block;
}

.feedback-context-strip span,
.feedback-summary-card > div > span {
    margin-bottom: 0.4rem;
    color: var(--ats-muted);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.feedback-context-strip strong,
.feedback-summary-card > div > strong {
    overflow-wrap: anywhere;
    font-size: 0.82rem;
}

.feedback-decision-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--ats-border);
    border-radius: 6px;
    background: color-mix(in srgb, var(--ats-canvas) 60%, transparent);
}

.feedback-decision-panel fieldset {
    min-width: 0;
    margin: 0;
}

.feedback-rating-control {
    display: grid;
    grid-template-columns: repeat(5, minmax(2.25rem, 1fr));
    gap: 0.4rem;
}

.feedback-rating-option {
    display: grid;
    min-height: 2.5rem;
    place-items: center;
    border: 1px solid var(--ats-border);
    border-radius: 6px;
    color: var(--ats-muted);
    background: var(--ats-surface);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
}

.btn-check:checked + .feedback-rating-option {
    border-color: var(--ats-accent);
    color: #ffffff;
    background: var(--ats-accent);
}

.btn-check:focus-visible + .feedback-rating-option {
    outline: 3px solid rgb(32 107 196 / 22%);
    outline-offset: 2px;
}

.feedback-field-error {
    margin-top: 0.4rem;
    color: var(--bs-form-invalid-color);
    font-size: 0.78rem;
}

.feedback-recommendation,
.feedback-score-badge {
    display: inline-block;
    padding: 0.24rem 0.5rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}

.feedback-recommendation-strong_hire {
    color: #216e35;
    background: #e5f5e9;
}

.feedback-recommendation-hire {
    color: #145b9e;
    background: #e2f0ff;
}

.feedback-recommendation-maybe {
    color: #8a5706;
    background: #fff1cc;
}

.feedback-recommendation-no_hire {
    color: #8f2634;
    background: #fbe7ea;
}

.feedback-score-badge {
    color: #5c3b91;
    background: #eee7fa;
}

.feedback-rating-display {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.feedback-rating-display i {
    width: 0.55rem;
    height: 0.55rem;
    display: block;
    border: 1px solid var(--ats-border);
    border-radius: 50%;
    background: transparent;
}

.feedback-rating-display i.active {
    border-color: #7c4db2;
    background: #7c4db2;
}

.feedback-rating-display strong {
    margin-left: 0.35rem;
}

.feedback-long-copy {
    min-height: 5rem;
    padding: 1rem;
    border-top: 1px solid var(--ats-border);
    color: var(--ats-ink);
    background: var(--ats-surface);
    font-size: 0.84rem;
    line-height: 1.7;
    white-space: pre-line;
}

.feedback-evidence-grid .detail-section {
    display: flex;
    flex-direction: column;
}

.feedback-evidence-grid .feedback-long-copy {
    flex: 1 1 auto;
}

.interview-feedback-section {
    overflow: hidden;
}

.interview-feedback-heading,
.feedback-list-header,
.feedback-list-badges,
.feedback-list-actions {
    display: flex;
    align-items: center;
}

.interview-feedback-heading,
.feedback-list-header {
    justify-content: space-between;
    gap: 1rem;
}

.feedback-card-list {
    border-top: 1px solid var(--ats-border);
}

.feedback-list-card {
    padding: 1rem;
}

.feedback-list-card + .feedback-list-card {
    border-top: 1px solid var(--ats-border);
}

.feedback-list-header > div:first-child strong,
.feedback-list-header > div:first-child span {
    display: block;
}

.feedback-list-header > div:first-child strong {
    font-size: 0.84rem;
}

.feedback-list-header > div:first-child span {
    margin-top: 0.2rem;
    color: var(--ats-muted);
    font-size: 0.7rem;
}

.feedback-list-badges,
.feedback-list-actions {
    gap: 0.45rem;
}

.feedback-list-card p {
    margin: 0.8rem 0;
    color: var(--ats-muted);
    font-size: 0.8rem;
    line-height: 1.6;
    white-space: pre-line;
}

.feedback-empty-state {
    padding: 1.5rem 1rem;
    color: var(--ats-muted);
    font-size: 0.82rem;
    text-align: center;
}

.table-muted-value {
    color: var(--ats-muted);
    font-size: 0.75rem;
}

[data-bs-theme='dark'] .feedback-recommendation-strong_hire {
    color: #a9e8b7;
    background: #20492d;
}

[data-bs-theme='dark'] .feedback-recommendation-hire {
    color: #aad3ff;
    background: #173d61;
}

[data-bs-theme='dark'] .feedback-recommendation-maybe {
    color: #f5d28f;
    background: #523b17;
}

[data-bs-theme='dark'] .feedback-recommendation-no_hire {
    color: #f1b1ba;
    background: #53262d;
}

[data-bs-theme='dark'] .feedback-score-badge {
    color: #d7c0fa;
    background: #3f2d5f;
}

@media (max-width: 767.98px) {
    .feedback-context-strip,
    .feedback-summary-card {
        grid-template-columns: 1fr;
    }

    .feedback-context-strip > div + div,
    .feedback-summary-card > div + div {
        border-top: 1px solid var(--ats-border);
        border-left: 0;
    }

    .interview-feedback-heading,
    .feedback-list-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .feedback-list-badges {
        flex-wrap: wrap;
    }
}

.application-status-interview {
    color: #5c3b91;
    background: #eee7fa;
}

.application-status-selected {
    color: #146c63;
    background: #dff5f1;
}

.pipeline-filter-toolbar {
    display: grid;
    grid-template-columns: minmax(16rem, 2fr) minmax(14rem, 1.5fr) auto auto;
    gap: 0.75rem;
    align-items: center;
    margin: 1.75rem 0 1rem;
}

.pipeline-board {
    display: grid;
    grid-auto-columns: minmax(16rem, 1fr);
    grid-auto-flow: column;
    gap: 0.8rem;
    overflow-x: auto;
    padding: 0.1rem 0 1rem;
    scroll-snap-type: x proximity;
}

.pipeline-column {
    min-height: 28rem;
    overflow: hidden;
    border: 1px solid var(--ats-border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--ats-canvas) 72%, var(--ats-surface));
    scroll-snap-align: start;
}

.pipeline-column-header {
    min-height: 3.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem;
    border-bottom: 1px solid var(--ats-border);
    background: var(--ats-surface);
}

.pipeline-column-header > div {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.pipeline-column-header h2 {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
}

.pipeline-column-header > span {
    display: grid;
    min-width: 1.65rem;
    height: 1.65rem;
    place-items: center;
    border-radius: 50%;
    color: var(--ats-muted);
    background: var(--ats-canvas);
    font-size: 0.7rem;
    font-weight: 700;
}

.pipeline-stage-mark {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: #5f6f7f;
}

.pipeline-column-applied .pipeline-stage-mark {
    background: #206bc4;
}

.pipeline-column-screening .pipeline-stage-mark {
    background: #d38b13;
}

.pipeline-column-shortlisted .pipeline-stage-mark {
    background: #2b8a3e;
}

.pipeline-column-interview .pipeline-stage-mark {
    background: #7c4db2;
}

.pipeline-column-selected .pipeline-stage-mark {
    background: #148277;
}

.pipeline-column-rejected .pipeline-stage-mark {
    background: #c23b4b;
}

.pipeline-card-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.65rem;
}

.pipeline-card {
    padding: 0.85rem;
    border: 1px solid var(--ats-border);
    border-radius: 6px;
    background: var(--ats-surface);
    box-shadow: 0 3px 10px rgb(24 36 51 / 4%);
}

.pipeline-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    color: var(--ats-muted);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pipeline-card h3 {
    margin: 0.7rem 0 0.2rem;
    font-size: 0.9rem;
}

.pipeline-card h3 a {
    color: var(--ats-ink);
    text-decoration: none;
}

.pipeline-card h3 a:hover {
    color: var(--ats-accent);
}

.pipeline-card p {
    margin: 0;
    color: var(--ats-ink);
    font-size: 0.76rem;
}

.pipeline-card > small {
    display: block;
    margin-top: 0.25rem;
    overflow-wrap: anywhere;
    color: var(--ats-muted);
    font-size: 0.68rem;
}

.pipeline-card-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
    margin-top: 0.8rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--ats-border);
}

.pipeline-empty-state {
    padding: 2rem 0.75rem;
    color: var(--ats-muted);
    font-size: 0.75rem;
    text-align: center;
}

.pipeline-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1rem;
}

.pipeline-transition-form {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border-top: 1px solid var(--ats-border);
}

.pipeline-transition-form .btn {
    justify-self: start;
}

.pipeline-terminal-state,
.pipeline-history-empty {
    padding: 1.25rem 1rem;
    border-top: 1px solid var(--ats-border);
    color: var(--ats-muted);
    font-size: 0.8rem;
}

.pipeline-history-list {
    border-top: 1px solid var(--ats-border);
}

.pipeline-history-item {
    position: relative;
    display: grid;
    grid-template-columns: 1rem minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.9rem 1rem;
}

.pipeline-history-item + .pipeline-history-item {
    border-top: 1px solid var(--ats-border);
}

.pipeline-history-dot {
    width: 0.65rem;
    height: 0.65rem;
    margin-top: 0.22rem;
    border: 2px solid var(--ats-surface);
    border-radius: 50%;
    background: var(--ats-accent);
    box-shadow: 0 0 0 1px var(--ats-accent);
}

.pipeline-history-stages {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
}

.pipeline-history-stages span {
    color: var(--ats-muted);
    text-decoration: line-through;
}

.pipeline-history-stages strong::before {
    margin-right: 0.6rem;
    color: var(--ats-muted);
    content: 'to';
    font-size: 0.65rem;
    font-weight: 500;
}

.pipeline-history-item p {
    margin: 0.35rem 0;
    color: var(--ats-muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

.pipeline-history-item small {
    color: var(--ats-muted);
    font-size: 0.66rem;
}

[data-bs-theme='dark'] .application-status-interview {
    color: #d7c0fa;
    background: #3f2d5f;
}

[data-bs-theme='dark'] .application-status-selected {
    color: #a4e3dc;
    background: #174d47;
}

@media (max-width: 991.98px) {
    .pipeline-detail-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

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

    .pipeline-board {
        grid-auto-columns: minmax(15rem, 86vw);
    }
}

.offer-filter-toolbar {
    display: grid;
    grid-template-columns: minmax(16rem, 2fr) minmax(10rem, 1fr) auto auto;
    gap: 0.75rem;
    align-items: center;
    margin: 1.75rem 0 1rem;
}

.offer-badge {
    display: inline-block;
    padding: 0.24rem 0.5rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}

.offer-status-draft {
    color: #536170;
    background: #e9edf1;
}

.offer-status-sent {
    color: #145b9e;
    background: #e2f0ff;
}

.offer-status-accepted {
    color: #216e35;
    background: #e5f5e9;
}

.offer-status-declined,
.offer-status-withdrawn {
    color: #8f2634;
    background: #fbe7ea;
}

.offer-status-expired {
    color: #8a5706;
    background: #fff1cc;
}

.offer-form-context,
.offer-summary-card {
    display: grid;
    margin-top: 1.75rem;
    border: 1px solid var(--ats-border);
    border-radius: 8px;
    background: var(--ats-surface);
}

.offer-form-context {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.offer-summary-card {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.offer-form-context > div,
.offer-summary-card > div {
    min-width: 0;
    padding: 1rem 1.1rem;
}

.offer-form-context > div + div,
.offer-summary-card > div + div {
    border-left: 1px solid var(--ats-border);
}

.offer-form-context span,
.offer-form-context strong,
.offer-summary-card span,
.offer-summary-card strong {
    display: block;
}

.offer-form-context span,
.offer-summary-card > div > span {
    margin-bottom: 0.4rem;
    color: var(--ats-muted);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.offer-form-context strong,
.offer-summary-card > div > strong {
    overflow-wrap: anywhere;
    font-size: 0.82rem;
}

.offer-notes-copy {
    min-height: 5rem;
    padding: 1rem;
    border-top: 1px solid var(--ats-border);
    color: var(--ats-ink);
    background: var(--ats-surface);
    font-size: 0.84rem;
    line-height: 1.7;
    white-space: pre-line;
}

.offer-workflow-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1rem;
}

.offer-transition-form {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border-top: 1px solid var(--ats-border);
}

.offer-transition-form .btn {
    justify-self: start;
}

.offer-terminal-state,
.offer-history-empty {
    padding: 1.25rem 1rem;
    border-top: 1px solid var(--ats-border);
    color: var(--ats-muted);
    font-size: 0.8rem;
}

.offer-history-list {
    border-top: 1px solid var(--ats-border);
}

.offer-history-item {
    display: grid;
    grid-template-columns: 1rem minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.9rem 1rem;
}

.offer-history-item + .offer-history-item {
    border-top: 1px solid var(--ats-border);
}

.offer-history-dot {
    width: 0.65rem;
    height: 0.65rem;
    margin-top: 0.22rem;
    border: 2px solid var(--ats-surface);
    border-radius: 50%;
    background: var(--ats-accent);
    box-shadow: 0 0 0 1px var(--ats-accent);
}

.offer-history-statuses {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
}

.offer-history-statuses span {
    color: var(--ats-muted);
    text-decoration: line-through;
}

.offer-history-statuses strong::before {
    margin-right: 0.6rem;
    color: var(--ats-muted);
    content: 'to';
    font-size: 0.65rem;
    font-weight: 500;
}

.offer-history-item p {
    margin: 0.35rem 0;
    color: var(--ats-muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

.offer-history-item small {
    color: var(--ats-muted);
    font-size: 0.66rem;
}

.application-offers-section {
    overflow: hidden;
}

.application-offers-heading,
.application-offers-actions {
    display: flex;
    align-items: center;
}

.application-offers-heading {
    justify-content: space-between;
    gap: 1rem;
}

.application-offers-actions {
    flex: 0 0 auto;
    gap: 0.75rem;
}

.related-offer-table {
    color: var(--ats-ink);
    font-size: 0.8rem;
}

.related-offer-table > :not(caption) > * > * {
    padding: 0.8rem 1rem;
    border-color: var(--ats-border);
    background: transparent;
}

.related-offer-table thead th {
    color: var(--ats-muted);
    background: color-mix(in srgb, var(--ats-canvas) 70%, transparent);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.related-offer-table td > small {
    display: block;
    margin-top: 0.15rem;
    color: var(--ats-muted);
    font-size: 0.7rem;
}

[data-bs-theme='dark'] .offer-status-draft {
    color: #c4ced8;
    background: #33404d;
}

[data-bs-theme='dark'] .offer-status-sent {
    color: #aad3ff;
    background: #173d61;
}

[data-bs-theme='dark'] .offer-status-accepted {
    color: #a9e8b7;
    background: #20492d;
}

[data-bs-theme='dark'] .offer-status-declined,
[data-bs-theme='dark'] .offer-status-withdrawn {
    color: #f1b1ba;
    background: #53262d;
}

[data-bs-theme='dark'] .offer-status-expired {
    color: #f5d28f;
    background: #523b17;
}

@media (max-width: 991.98px) {
    .offer-workflow-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 767.98px) {
    .offer-filter-toolbar,
    .offer-form-context,
    .offer-summary-card {
        grid-template-columns: 1fr;
    }

    .offer-form-context > div + div,
    .offer-summary-card > div + div {
        border-top: 1px solid var(--ats-border);
        border-left: 0;
    }

    .application-offers-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .application-offers-actions {
        width: 100%;
        justify-content: space-between;
    }
}

.report-page-header,
.report-header-actions,
.report-section-heading,
.report-catalog-title {
    display: flex;
    align-items: center;
}

.report-page-header,
.report-section-heading,
.report-catalog-title {
    justify-content: space-between;
}

.report-page-header {
    gap: 1rem;
}

.report-header-actions {
    flex: 0 0 auto;
    gap: 0.6rem;
}

.report-snapshot-date {
    min-width: 9rem;
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--ats-accent);
    background: var(--ats-surface);
}

.report-snapshot-date span,
.report-snapshot-date strong {
    display: block;
}

.report-snapshot-date span {
    color: var(--ats-muted);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.report-snapshot-date strong {
    margin-top: 0.2rem;
    font-size: 0.82rem;
}

.report-metric-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.report-metric-card {
    min-width: 0;
    min-height: 7rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.95rem 1rem;
    border: 1px solid var(--ats-border);
    border-top: 3px solid var(--ats-accent);
    border-radius: 6px;
    background: var(--ats-surface);
}

.report-metric-card:nth-child(2) {
    border-top-color: #148277;
}

.report-metric-card:nth-child(3) {
    border-top-color: #d38b13;
}

.report-metric-card:nth-child(4) {
    border-top-color: #7c4db2;
}

.report-metric-card:nth-child(5) {
    border-top-color: #c23b4b;
}

.report-metric-card:nth-child(6) {
    border-top-color: #536170;
}

.report-metric-card span,
.report-metric-card small {
    color: var(--ats-muted);
}

.report-metric-card span {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.report-metric-card strong {
    margin-block: 0.5rem;
    font-size: 1.65rem;
    line-height: 1;
}

.report-metric-card small {
    font-size: 0.67rem;
    line-height: 1.4;
}

.report-filter-panel {
    display: grid;
    grid-template-columns: repeat(5, minmax(9rem, 1fr));
    align-items: end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--ats-border);
    border-radius: 6px;
    background: var(--ats-surface);
}

.report-filter-panel > div {
    min-width: 0;
}

.report-filter-panel .form-control,
.report-filter-panel .form-select {
    width: 100%;
    min-width: 0;
}

.report-filter-actions {
    display: flex;
    gap: 0.5rem;
}

.report-filter-actions .btn {
    white-space: nowrap;
}

.report-catalog-section,
.report-table-section {
    margin-top: 1.75rem;
}

.report-section-heading {
    gap: 1rem;
    padding: 0 0.15rem 0.8rem;
}

.report-section-heading h2,
.report-catalog-title h2 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
}

.report-section-heading p {
    margin: 0.25rem 0 0;
    color: var(--ats-muted);
    font-size: 0.75rem;
}

.report-section-heading > span,
.report-catalog-title span {
    flex: 0 0 auto;
    padding: 0.2rem 0.45rem;
    border: 1px solid var(--ats-border);
    border-radius: 4px;
    color: var(--ats-muted);
    background: var(--ats-surface);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.report-catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.report-catalog-card {
    min-width: 0;
    min-height: 10rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid var(--ats-border);
    border-radius: 6px;
    color: var(--ats-ink);
    background: var(--ats-surface);
    text-decoration: none;
    transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.report-catalog-card:hover {
    border-color: var(--ats-accent);
    color: var(--ats-ink);
    box-shadow: 0 8px 18px rgb(24 36 51 / 7%);
    transform: translateY(-2px);
}

.report-catalog-mark {
    display: grid;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    border-radius: 6px;
    color: #145b9e;
    background: #e2f0ff;
    font-size: 0.66rem;
    font-weight: 800;
}

.report-catalog-title {
    gap: 0.5rem;
}

.report-catalog-card p {
    margin: 0.6rem 0 1rem;
    color: var(--ats-muted);
    font-size: 0.76rem;
    line-height: 1.55;
}

.report-catalog-card > div:last-child > strong {
    color: var(--ats-accent);
    font-size: 0.72rem;
}

.report-table-section {
    overflow: hidden;
    border: 1px solid var(--ats-border);
    border-radius: 6px;
    background: var(--ats-surface);
}

.report-table-section .report-section-heading {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--ats-border);
}

.report-table {
    color: var(--ats-ink);
    font-size: 0.78rem;
}

.report-table > :not(caption) > * > * {
    padding: 0.8rem 1rem;
    border-color: var(--ats-border);
    background: transparent;
    vertical-align: middle;
}

.report-table thead th {
    color: var(--ats-muted);
    background: color-mix(in srgb, var(--ats-canvas) 70%, transparent);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.report-table td > small,
.report-performance-table td > strong {
    display: block;
}

.report-table td > small {
    margin-top: 0.2rem;
    color: var(--ats-muted);
    font-size: 0.67rem;
}

.report-status-badge {
    display: inline-block;
    min-width: 6.5rem;
    padding: 0.23rem 0.48rem;
    border-radius: 4px;
    color: #536170;
    background: #e9edf1;
    font-size: 0.67rem;
    font-weight: 700;
}

.report-status-active,
.report-status-selected,
.report-status-accepted,
.report-status-strong_hire,
.report-status-hire,
.report-status-completed {
    color: #216e35;
    background: #e5f5e9;
}

.report-status-applied,
.report-status-scheduled,
.report-status-sent,
.report-status-new {
    color: #145b9e;
    background: #e2f0ff;
}

.report-status-screening,
.report-status-rescheduled,
.report-status-expired,
.report-status-maybe {
    color: #8a5706;
    background: #fff1cc;
}

.report-status-interview,
.report-status-shortlisted {
    color: #5c3b91;
    background: #eee7fa;
}

.report-status-rejected,
.report-status-withdrawn,
.report-status-declined,
.report-status-cancelled,
.report-status-no_hire {
    color: #8f2634;
    background: #fbe7ea;
}

.report-progress {
    width: min(100%, 18rem);
    height: 0.38rem;
    overflow: hidden;
    border-radius: 4px;
    background: var(--ats-canvas);
}

.report-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--ats-accent);
}

.report-split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.report-empty-state {
    padding: 2rem !important;
    color: var(--ats-muted);
    text-align: center;
}

[data-bs-theme='dark'] .report-catalog-mark {
    color: #aad3ff;
    background: #173d61;
}

[data-bs-theme='dark'] .report-status-badge {
    color: #c4ced8;
    background: #33404d;
}

[data-bs-theme='dark'] .report-status-active,
[data-bs-theme='dark'] .report-status-selected,
[data-bs-theme='dark'] .report-status-accepted,
[data-bs-theme='dark'] .report-status-strong_hire,
[data-bs-theme='dark'] .report-status-hire,
[data-bs-theme='dark'] .report-status-completed {
    color: #a9e8b7;
    background: #20492d;
}

[data-bs-theme='dark'] .report-status-applied,
[data-bs-theme='dark'] .report-status-scheduled,
[data-bs-theme='dark'] .report-status-sent,
[data-bs-theme='dark'] .report-status-new {
    color: #aad3ff;
    background: #173d61;
}

[data-bs-theme='dark'] .report-status-screening,
[data-bs-theme='dark'] .report-status-rescheduled,
[data-bs-theme='dark'] .report-status-expired,
[data-bs-theme='dark'] .report-status-maybe {
    color: #f5d28f;
    background: #523b17;
}

[data-bs-theme='dark'] .report-status-interview,
[data-bs-theme='dark'] .report-status-shortlisted {
    color: #d7c0fa;
    background: #3f2d5f;
}

[data-bs-theme='dark'] .report-status-rejected,
[data-bs-theme='dark'] .report-status-withdrawn,
[data-bs-theme='dark'] .report-status-declined,
[data-bs-theme='dark'] .report-status-cancelled,
[data-bs-theme='dark'] .report-status-no_hire {
    color: #f1b1ba;
    background: #53262d;
}

@media (max-width: 1399.98px) {
    .report-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .report-filter-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .report-catalog-grid,
    .report-split-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .report-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .report-header-actions,
    .report-snapshot-date {
        width: 100%;
    }

    .report-header-actions .btn {
        flex: 1;
    }

    .report-metric-grid,
    .report-filter-panel {
        grid-template-columns: 1fr;
    }

    .report-filter-actions .btn {
        flex: 1;
    }

    .report-catalog-card {
        grid-template-columns: 1fr;
    }

    .report-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

.audit-page-header,
.audit-ledger-heading,
.audit-detail-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.audit-filter-panel {
    display: grid;
    grid-template-columns: minmax(14rem, 2fr) repeat(5, minmax(9rem, 1fr)) auto;
    align-items: end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--ats-border);
    border-radius: 6px;
    background: var(--ats-surface);
}

.audit-filter-panel > div,
.audit-filter-panel .form-control,
.audit-filter-panel .form-select {
    min-width: 0;
    width: 100%;
}

.audit-filter-actions {
    display: flex;
    gap: 0.5rem;
}

.audit-filter-actions .btn {
    white-space: nowrap;
}

.audit-ledger,
.audit-detail-section {
    overflow: hidden;
    margin-top: 1.5rem;
    border: 1px solid var(--ats-border);
    border-radius: 6px;
    background: var(--ats-surface);
}

.audit-ledger-heading,
.audit-detail-heading {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--ats-border);
}

.audit-ledger-heading h2,
.audit-detail-heading h2 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
}

.audit-ledger-heading p {
    margin: 0.25rem 0 0;
    color: var(--ats-muted);
    font-size: 0.74rem;
}

.audit-ledger-heading > span,
.audit-detail-heading > span {
    flex: 0 0 auto;
    padding: 0.2rem 0.45rem;
    border: 1px solid var(--ats-border);
    border-radius: 4px;
    color: var(--ats-muted);
    background: var(--ats-canvas);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.audit-table {
    color: var(--ats-ink);
    font-size: 0.78rem;
}

.audit-table > :not(caption) > * > * {
    padding: 0.8rem 0.9rem;
    border-color: var(--ats-border);
    background: transparent;
    vertical-align: middle;
}

.audit-table thead th {
    color: var(--ats-muted);
    background: color-mix(in srgb, var(--ats-canvas) 70%, transparent);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.audit-table td strong,
.audit-table td small,
.audit-table time {
    display: block;
}

.audit-table td small {
    max-width: 15rem;
    margin-top: 0.2rem;
    overflow: hidden;
    color: var(--ats-muted);
    font-size: 0.66rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audit-summary-cell {
    min-width: 15rem;
    max-width: 24rem;
    line-height: 1.45;
}

.audit-action-badge,
.audit-entity-badge {
    display: inline-block;
    padding: 0.23rem 0.48rem;
    border-radius: 4px;
    font-size: 0.66rem;
    font-weight: 700;
    white-space: nowrap;
}

.audit-action-badge {
    color: #536170;
    background: #e9edf1;
}

.audit-action-created,
.audit-action-uploaded {
    color: #216e35;
    background: #e5f5e9;
}

.audit-action-updated,
.audit-action-status_changed {
    color: #145b9e;
    background: #e2f0ff;
}

.audit-action-deleted {
    color: #8f2634;
    background: #fbe7ea;
}

.audit-action-downloaded {
    color: #6c3d75;
    background: #f2e7f5;
}

.audit-entity-badge {
    color: #4d5b69;
    background: #edf0f3;
}

.audit-empty-state,
.audit-detail-empty {
    padding: 2rem !important;
    color: var(--ats-muted);
    font-size: 0.78rem;
    text-align: center;
}

.audit-pagination {
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--ats-border);
}

.audit-pagination .pagination {
    margin: 0;
}

.audit-event-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 1.5rem;
    border: 1px solid var(--ats-border);
    border-radius: 6px;
    background: var(--ats-surface);
}

.audit-event-strip > div {
    min-width: 0;
    padding: 1rem;
}

.audit-event-strip > div + div {
    border-left: 1px solid var(--ats-border);
}

.audit-event-strip span:first-child,
.audit-event-strip strong,
.audit-event-strip small {
    display: block;
}

.audit-event-strip > div > span:first-child {
    margin-bottom: 0.4rem;
    color: var(--ats-muted);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
}

.audit-event-strip strong {
    overflow-wrap: anywhere;
    font-size: 0.8rem;
}

.audit-event-strip small {
    margin-top: 0.2rem;
    overflow: hidden;
    color: var(--ats-muted);
    font-size: 0.66rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audit-summary-copy {
    margin: 0;
    padding: 1rem;
    font-size: 0.84rem;
    line-height: 1.65;
}

.audit-diff-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.audit-json-block {
    min-height: 12rem;
    max-height: 32rem;
    margin: 0;
    overflow: auto;
    padding: 1rem;
    color: var(--ats-ink);
    background: color-mix(in srgb, var(--ats-canvas) 72%, var(--ats-surface));
    font-size: 0.72rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.audit-context-list {
    margin: 0;
}

.audit-context-list > div {
    display: grid;
    grid-template-columns: 9rem minmax(0, 1fr);
    gap: 1rem;
    padding: 0.8rem 1rem;
}

.audit-context-list > div + div {
    border-top: 1px solid var(--ats-border);
}

.audit-context-list dt {
    color: var(--ats-muted);
    font-size: 0.7rem;
    font-weight: 700;
}

.audit-context-list dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 0.76rem;
}

[data-bs-theme='dark'] .audit-action-badge {
    color: #c4ced8;
    background: #33404d;
}

[data-bs-theme='dark'] .audit-action-created,
[data-bs-theme='dark'] .audit-action-uploaded {
    color: #a9e8b7;
    background: #20492d;
}

[data-bs-theme='dark'] .audit-action-updated,
[data-bs-theme='dark'] .audit-action-status_changed {
    color: #aad3ff;
    background: #173d61;
}

[data-bs-theme='dark'] .audit-action-deleted {
    color: #f1b1ba;
    background: #53262d;
}

[data-bs-theme='dark'] .audit-action-downloaded {
    color: #d7c0fa;
    background: #3f2d5f;
}

[data-bs-theme='dark'] .audit-entity-badge {
    color: #c4ced8;
    background: #33404d;
}

@media (max-width: 1399.98px) {
    .audit-filter-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .audit-filter-search {
        grid-column: span 2;
    }
}

@media (max-width: 991.98px) {
    .audit-event-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .audit-event-strip > div:nth-child(3) {
        border-top: 1px solid var(--ats-border);
        border-left: 0;
    }

    .audit-event-strip > div:nth-child(4) {
        border-top: 1px solid var(--ats-border);
    }

    .audit-diff-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 767.98px) {
    .audit-page-header,
    .audit-ledger-heading,
    .audit-detail-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .audit-page-header .btn {
        width: 100%;
    }

    .audit-filter-panel,
    .audit-event-strip {
        grid-template-columns: 1fr;
    }

    .audit-filter-search {
        grid-column: auto;
    }

    .audit-filter-actions .btn {
        flex: 1;
    }

    .audit-event-strip > div + div,
    .audit-event-strip > div:nth-child(4) {
        border-top: 1px solid var(--ats-border);
        border-left: 0;
    }

    .audit-context-list > div {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

/* Final product design system */

html {
    background: var(--ats-canvas);
    scrollbar-color: color-mix(in srgb, var(--ats-muted) 55%, transparent) transparent;
}

body {
    color: var(--ats-ink);
    background: var(--ats-canvas);
    font-size: 0.9rem;
    line-height: 1.5;
}

a,
button,
input,
select,
textarea {
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ats-accent) 28%, transparent);
    outline-offset: 2px;
}

.app-shell {
    grid-template-columns: 16.5rem minmax(0, 1fr);
}

.app-sidebar {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: 100vh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
    border-right: 1px solid var(--ats-sidebar-border);
    background: var(--ats-sidebar);
    box-shadow: 8px 0 28px rgb(0 0 0 / 10%);
}

.app-sidebar-header {
    min-height: 4.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 1.1rem;
    border-bottom: 1px solid var(--ats-sidebar-border);
}

.app-sidebar .ats-brand {
    min-width: 0;
    gap: 0.7rem;
    padding: 0;
}

.ats-brand:hover {
    color: inherit;
}

.ats-brand-mark {
    flex: 0 0 auto;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 8px;
    background: var(--ats-accent);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--ats-accent) 30%, transparent);
    font-size: 1rem;
}

.ats-brand-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ats-brand-copy strong,
.ats-brand-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ats-brand-copy strong {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.2;
}

.ats-brand-copy small {
    margin-top: 0.15rem;
    color: #8f98a8;
    font-size: 0.64rem;
    font-weight: 600;
}

.app-sidebar-nav {
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.65rem 0.7rem 1rem;
}

.app-nav-label {
    margin: 1.2rem 0.75rem 0.45rem;
    color: #727b8b;
    font-size: 0.62rem;
    letter-spacing: 0;
}

.app-nav-link {
    position: relative;
    min-height: 2.65rem;
    gap: 0.75rem;
    margin-bottom: 0.15rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #a9b0be;
    font-size: 0.82rem;
}

.app-nav-link i {
    width: 1.15rem;
    flex: 0 0 1.15rem;
    color: #7f8898;
    font-size: 1rem;
    text-align: center;
}

.app-nav-link:hover {
    border-color: rgb(255 255 255 / 5%);
    color: #ffffff;
    background: rgb(255 255 255 / 5%);
}

.app-nav-link:hover i {
    color: #d8dce3;
}

.app-nav-link.active {
    border-color: rgb(255 255 255 / 6%);
    color: #ffffff;
    background: #252933;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%), 0 5px 14px rgb(0 0 0 / 12%);
}

.app-nav-link.active::before {
    position: absolute;
    top: 0.48rem;
    bottom: 0.48rem;
    left: -0.7rem;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--ats-accent);
    content: '';
}

.app-nav-link.active i {
    color: var(--ats-accent);
}

.app-sidebar-footer {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: auto 0.7rem 0.8rem;
    padding: 0.8rem;
    border: 1px solid var(--ats-sidebar-border);
    border-radius: 7px;
    color: #c5cad3;
    background: rgb(255 255 255 / 3%);
}

.app-sidebar-footer > span:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.app-sidebar-footer strong,
.app-sidebar-footer small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-sidebar-footer strong {
    font-size: 0.7rem;
}

.app-sidebar-footer small {
    margin-top: 0.1rem;
    color: #747e8e;
    font-size: 0.61rem;
}

.system-status-dot {
    width: 0.55rem;
    height: 0.55rem;
    flex: 0 0 0.55rem;
    border: 2px solid #1f4435;
    border-radius: 50%;
    background: #4cc38a;
    box-shadow: 0 0 0 3px rgb(76 195 138 / 10%);
}

.app-frame {
    min-height: 100vh;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    min-height: 4.75rem;
    padding: 0;
    border-bottom-color: var(--ats-border);
    background: color-mix(in srgb, var(--ats-surface) 92%, transparent);
    box-shadow: 0 1px 0 rgb(16 24 40 / 2%);
    backdrop-filter: blur(14px);
}

.app-topbar-inner {
    width: 100%;
    max-width: var(--ats-content-max);
    min-height: 4.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-inline: auto;
    padding: 0.7rem 2.25rem;
}

.topbar-context,
.app-user-profile,
.topbar-actions {
    display: flex;
    align-items: center;
}

.topbar-context {
    min-width: 0;
    gap: 0.75rem;
}

.topbar-context > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar-context span {
    color: var(--ats-muted);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
}

.topbar-context strong {
    overflow: hidden;
    margin-top: 0.1rem;
    font-size: 0.83rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-actions {
    gap: 0.55rem;
}

.app-icon-button {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-grid;
    flex: 0 0 2.35rem;
    place-items: center;
    padding: 0;
    border: 1px solid var(--ats-border);
    border-radius: 7px;
    color: var(--ats-muted);
    background: var(--ats-surface);
    cursor: pointer;
}

.app-icon-button:hover {
    border-color: color-mix(in srgb, var(--ats-accent) 35%, var(--ats-border));
    color: var(--ats-accent);
    background: var(--ats-accent-soft);
}

.app-icon-button i {
    font-size: 0.95rem;
}

.sidebar-close-button,
.sidebar-menu-button {
    display: none;
}

.sidebar-close-button {
    border-color: var(--ats-sidebar-border);
    color: #9ca4b2;
    background: transparent;
}

.topbar-divider {
    width: 1px;
    height: 1.8rem;
    margin-inline: 0.15rem;
    background: var(--ats-border);
}

.app-user-profile {
    min-width: 0;
    gap: 0.65rem;
}

.app-user-avatar {
    width: 2.35rem;
    height: 2.35rem;
    display: grid;
    flex: 0 0 2.35rem;
    place-items: center;
    border-radius: 7px;
    color: #ffffff;
    background: #3e4655;
    font-size: 0.74rem;
    font-weight: 800;
}

.app-user-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.app-user-name,
.app-user-email {
    max-width: 13rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-user-name {
    font-size: 0.76rem;
}

.app-user-email {
    margin-top: 0.1rem;
    font-size: 0.63rem;
}

.app-main {
    width: 100%;
    max-width: var(--ats-content-max);
    margin-inline: auto;
    padding: 2rem 2.25rem 3rem;
}

.app-alert {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    border: 1px solid color-mix(in srgb, var(--ats-success) 25%, var(--ats-border));
    box-shadow: var(--ats-shadow-sm);
}

.page-kicker {
    margin-bottom: 0.35rem;
    color: var(--ats-accent);
    font-size: 0.65rem;
    letter-spacing: 0;
}

.page-title {
    color: var(--ats-ink);
    font-size: 1.55rem;
    line-height: 1.2;
}

.page-subtitle {
    max-width: 46rem;
    margin-top: 0.4rem;
    font-size: 0.82rem;
}

.resource-breadcrumb {
    margin: 0 0 1.15rem;
    font-size: 0.69rem;
}

.resource-breadcrumb a {
    color: var(--ats-muted);
    text-decoration: none;
}

.resource-breadcrumb a:hover {
    color: var(--ats-accent);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: color-mix(in srgb, var(--ats-muted) 65%, transparent);
}

.resource-page-header,
.dashboard-page-header,
.report-page-header,
.audit-page-header {
    min-height: 4.75rem;
    align-items: flex-end;
    margin-bottom: 1.4rem;
}

.btn {
    min-height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding-inline: 0.9rem;
    border-radius: 6px;
    font-size: 0.78rem;
    box-shadow: none;
}

.btn-sm {
    min-height: 2rem;
    padding-inline: 0.65rem;
    font-size: 0.7rem;
}

.btn-primary {
    border-color: var(--ats-accent);
    color: #ffffff;
    background: var(--ats-accent);
    box-shadow: 0 5px 14px color-mix(in srgb, var(--ats-accent) 22%, transparent);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    border-color: var(--ats-accent-hover) !important;
    color: #ffffff !important;
    background: var(--ats-accent-hover) !important;
}

.btn-outline-secondary {
    border-color: var(--ats-border);
    color: var(--ats-ink);
    background: var(--ats-surface);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    border-color: color-mix(in srgb, var(--ats-muted) 45%, var(--ats-border));
    color: var(--ats-ink);
    background: var(--ats-surface-soft);
}

.btn-outline-danger {
    border-color: color-mix(in srgb, #d84c5b 45%, var(--ats-border));
    color: #c63f4e;
}

.btn-link {
    color: var(--ats-muted);
    text-decoration: none;
}

.btn-link:hover {
    color: var(--ats-accent);
}

.form-label {
    margin-bottom: 0.38rem;
    color: var(--ats-ink);
    font-size: 0.72rem;
    font-weight: 700;
}

.form-control,
.form-select {
    min-height: 2.55rem;
    border-color: var(--ats-border);
    border-radius: 6px;
    color: var(--ats-ink);
    background-color: var(--ats-surface);
    font-size: 0.78rem;
    box-shadow: inset 0 1px 1px rgb(16 24 40 / 2%);
}

.form-control:hover,
.form-select:hover {
    border-color: color-mix(in srgb, var(--ats-muted) 40%, var(--ats-border));
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ats-accent);
    color: var(--ats-ink);
    background-color: var(--ats-surface);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ats-accent) 15%, transparent);
}

.form-control::placeholder {
    color: color-mix(in srgb, var(--ats-muted) 72%, transparent);
}

.form-select:disabled {
    border-color: var(--ats-border);
    color: var(--ats-muted);
    background-color: var(--ats-surface-soft);
    opacity: 0.72;
}

.form-select option {
    color: var(--ats-ink);
    background: var(--ats-surface);
}

.ats-filter-select {
    position: relative;
    width: 100%;
    min-width: 0;
}

.ats-filter-select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.ats-filter-select-trigger {
    width: 100%;
    min-height: 2.55rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--ats-border);
    border-radius: 6px;
    color: var(--ats-ink);
    background: var(--ats-surface);
    font-size: 0.78rem;
    text-align: left;
    box-shadow: inset 0 1px 1px rgb(16 24 40 / 2%);
}

.ats-filter-select-trigger:hover {
    border-color: color-mix(in srgb, var(--ats-muted) 40%, var(--ats-border));
}

.ats-filter-select-trigger:focus-visible,
.ats-filter-select.is-open .ats-filter-select-trigger {
    outline: 0;
    border-color: var(--ats-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ats-accent) 15%, transparent);
}

.ats-filter-select-trigger:disabled {
    color: var(--ats-muted);
    background: var(--ats-surface-soft);
    cursor: not-allowed;
    opacity: 0.72;
}

.ats-filter-select-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ats-filter-select-trigger i {
    flex: 0 0 auto;
    color: var(--ats-muted);
    font-size: 0.72rem;
    transition: transform 160ms ease;
}

.ats-filter-select.is-open .ats-filter-select-trigger i {
    color: var(--ats-accent);
    transform: rotate(180deg);
}

.ats-filter-select-menu {
    position: absolute;
    z-index: 1080;
    top: calc(100% + 0.4rem);
    right: 0;
    left: 0;
    max-height: 17rem;
    overflow-y: auto;
    padding: 0.35rem;
    border: 1px solid var(--ats-border);
    border-radius: 8px;
    background: var(--ats-surface);
    box-shadow: var(--ats-shadow-md);
}

.ats-filter-select-menu[hidden] {
    display: none;
}

.ats-filter-select-option {
    width: 100%;
    min-height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.48rem 0.6rem;
    border: 0;
    border-radius: 5px;
    color: var(--ats-ink);
    background: transparent;
    font-size: 0.76rem;
    text-align: left;
}

.ats-filter-select-option:hover,
.ats-filter-select-option:focus-visible {
    outline: 0;
    color: var(--ats-ink);
    background: var(--ats-surface-soft);
}

.ats-filter-select-option.is-selected {
    color: var(--ats-accent);
    background: var(--ats-accent-soft);
    font-weight: 700;
}

.ats-filter-select-option.is-selected::after {
    content: '\F26E';
    flex: 0 0 auto;
    font-family: bootstrap-icons;
    font-size: 0.75rem;
}

.ats-filter-select-option:disabled {
    color: var(--ats-muted);
    cursor: not-allowed;
    opacity: 0.55;
}

.form-text,
.invalid-feedback {
    font-size: 0.68rem;
}

.form-check-input:checked {
    border-color: var(--ats-accent);
    background-color: var(--ats-accent);
}

.dropdown-menu,
.modal-content {
    border: 1px solid var(--ats-border);
    border-radius: 8px;
    color: var(--ats-ink);
    background: var(--ats-surface);
    box-shadow: var(--ats-shadow-md);
}

.modal-header,
.modal-footer {
    border-color: var(--ats-border);
}

.alert {
    border-radius: 7px;
}

:is(
    .company-toolbar,
    .job-filter-toolbar,
    .candidate-filter-toolbar,
    .application-filter-toolbar,
    .interview-filter-toolbar,
    .pipeline-filter-toolbar,
    .offer-filter-toolbar,
    .report-filter-panel,
    .audit-filter-panel
) {
    margin: 0 0 1rem;
    padding: 0.85rem;
    border: 1px solid var(--ats-border);
    border-radius: 8px;
    background: var(--ats-surface);
    box-shadow: var(--ats-shadow-sm);
}

.company-toolbar.candidate-filter-toolbar {
    display: grid;
    grid-template-columns: minmax(15rem, 2fr) repeat(3, minmax(8rem, 1fr)) repeat(2, minmax(6.5rem, 0.75fr)) auto auto;
    align-items: end;
}

@media (min-width: 768px) and (max-width: 1599.98px) {
    .company-toolbar.candidate-filter-toolbar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .candidate-filter-search {
        grid-column: span 2;
    }
}

.data-panel,
.dashboard-table-wrap,
.role-distribution-list,
.detail-section,
.report-table-section,
.audit-ledger,
.audit-detail-section {
    border: 1px solid var(--ats-border);
    border-radius: 8px;
    background: var(--ats-surface);
    box-shadow: var(--ats-shadow-sm);
}

.dashboard-detail-grid > *,
.dashboard-section,
.table-responsive {
    min-width: 0;
    max-width: 100%;
}

.data-panel,
.dashboard-table-wrap,
.role-distribution-list {
    overflow: hidden;
    border-top: 1px solid var(--ats-border);
    border-bottom: 1px solid var(--ats-border);
}

.resource-table,
.dashboard-table,
.related-application-table,
.related-interview-table,
.related-offer-table,
.report-table,
.audit-table {
    color: var(--ats-ink);
    font-size: 0.76rem;
}

:is(
    .resource-table,
    .dashboard-table,
    .related-application-table,
    .related-interview-table,
    .related-offer-table,
    .report-table,
    .audit-table
) > :not(caption) > * > * {
    padding: 0.8rem 0.95rem;
    border-color: var(--ats-border);
    background: transparent;
}

:is(
    .resource-table,
    .dashboard-table,
    .related-application-table,
    .related-interview-table,
    .related-offer-table,
    .report-table,
    .audit-table
) thead th {
    border-bottom-width: 1px;
    color: var(--ats-muted);
    background: var(--ats-surface-soft);
    font-size: 0.62rem;
    letter-spacing: 0;
}

:is(
    .resource-table,
    .dashboard-table,
    .related-application-table,
    .related-interview-table,
    .related-offer-table,
    .report-table,
    .audit-table
) tbody tr:hover > * {
    background: color-mix(in srgb, var(--ats-accent) 3.5%, var(--ats-surface));
}

.table-actions {
    gap: 0.35rem;
}

.table-icon-action {
    width: 2rem;
    min-width: 2rem;
    height: 2rem;
    min-height: 2rem;
    padding: 0;
}

.table-icon-action i {
    font-size: 0.78rem;
}

.empty-table-state,
.empty-section-state,
.resume-empty-state,
.feedback-empty-state,
.pipeline-empty-state,
.report-empty-state,
.audit-empty-state,
.audit-detail-empty {
    color: var(--ats-muted);
    background: var(--ats-surface-soft) !important;
}

.pagination {
    gap: 0.25rem;
}

.page-link {
    min-width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    padding: 0.25rem;
    border: 1px solid var(--ats-border);
    border-radius: 6px !important;
    color: var(--ats-muted);
    background: var(--ats-surface);
    font-size: 0.7rem;
}

.page-link:hover,
.active > .page-link {
    border-color: var(--ats-accent);
    color: #ffffff;
    background: var(--ats-accent);
}

.resource-pagination,
.audit-pagination {
    margin-top: 1rem;
}

.form-card {
    border-color: var(--ats-border);
    border-radius: 8px;
    background: var(--ats-surface);
    box-shadow: var(--ats-shadow-sm);
}

.form-section + .form-section {
    border-color: var(--ats-border);
}

.form-section-heading h2,
.section-heading h2,
.report-section-heading h2,
.audit-ledger-heading h2,
.audit-detail-heading h2 {
    font-size: 0.86rem;
}

.form-section-heading p,
.section-heading p {
    font-size: 0.72rem;
}

.company-summary,
.candidate-summary-card,
.job-summary-card,
.application-summary-card,
.interview-summary-card,
.feedback-summary-card,
.offer-summary-card,
.feedback-context-strip,
.offer-form-context,
.audit-event-strip,
.report-snapshot-date {
    border-color: var(--ats-border);
    border-radius: 8px;
    background: var(--ats-surface);
    box-shadow: var(--ats-shadow-sm);
}

.detail-list > div,
.audit-context-list > div,
.pipeline-history-item,
.offer-history-item,
.feedback-list-card,
.resume-list-item {
    border-color: var(--ats-border);
}

.detail-list dt,
.company-summary span,
.candidate-summary-card > div > span,
.application-summary-card > div > span,
.interview-summary-card > div > span,
.feedback-summary-card > div > span,
.offer-summary-card > div > span {
    color: var(--ats-muted);
}

.welcome-card {
    border: 1px solid var(--ats-border);
    border-left: 3px solid var(--ats-accent);
    border-radius: 8px;
    background: var(--ats-surface);
    box-shadow: var(--ats-shadow-sm);
}

.metric-grid {
    gap: 0.75rem;
}

.metric-card,
.report-metric-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--ats-border);
    border-top: 1px solid var(--ats-border);
    border-radius: 8px;
    background: var(--ats-surface);
    box-shadow: var(--ats-shadow-sm);
}

.metric-card::before,
.report-metric-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--ats-accent);
    content: '';
}

.metric-card-active_users::before,
.report-metric-card:nth-child(2)::before {
    background: #2d9d72;
}

.metric-card-inactive_users::before,
.report-metric-card:nth-child(3)::before {
    background: #d29235;
}

.metric-card-total_roles::before,
.report-metric-card:nth-child(4)::before {
    background: #7b67d9;
}

.metric-card-total_permissions::before,
.report-metric-card:nth-child(5)::before {
    background: #3f8ca7;
}

.metric-value,
.report-metric-card strong {
    font-variant-numeric: tabular-nums;
}

.metric-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.metric-icon,
.module-icon {
    display: grid;
    place-items: center;
    border-radius: 7px;
    color: var(--ats-accent);
    background: var(--ats-accent-soft);
}

.metric-icon {
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    font-size: 0.85rem;
}

.role-progress,
.report-progress {
    background: var(--ats-canvas);
}

.role-progress span,
.report-progress span {
    background: var(--ats-accent);
}

.module-card,
.report-catalog-card,
.pipeline-card,
.pipeline-column {
    border-color: var(--ats-border);
    border-radius: 8px;
    background: var(--ats-surface);
    box-shadow: var(--ats-shadow-sm);
}

.module-card-link {
    color: var(--ats-ink);
    text-decoration: none;
}

.module-card-link:hover {
    color: var(--ats-ink);
}

.module-card-link .module-card-header {
    margin-bottom: 0.85rem;
}

.module-card-link .module-icon {
    width: 2.15rem;
    height: 2.15rem;
    flex: 0 0 2.15rem;
    font-size: 0.9rem;
}

.module-card-link .module-arrow {
    color: var(--ats-muted);
    font-size: 0.8rem;
}

.module-card-link h3 {
    font-size: 0.82rem;
}

.module-card-link:hover .module-arrow {
    color: var(--ats-accent);
}

.module-card:hover,
.report-catalog-card:hover,
.pipeline-card:hover {
    border-color: color-mix(in srgb, var(--ats-accent) 45%, var(--ats-border));
    box-shadow: var(--ats-shadow-md);
    transform: translateY(-2px);
}

.module-card,
.pipeline-card {
    transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.pipeline-board {
    gap: 0.75rem;
}

.pipeline-column {
    background: var(--ats-surface-soft);
}

.pipeline-column-header {
    border-color: var(--ats-border);
    background: var(--ats-surface);
}

.pipeline-card {
    box-shadow: none;
}

.pipeline-card-action {
    border-color: var(--ats-border);
}

.role-badge,
.status-pill,
.candidate-badge,
.application-badge,
.interview-badge,
.feedback-recommendation,
.feedback-score-badge,
.offer-badge,
.audit-action-badge,
.audit-entity-badge,
.report-status-badge,
.section-status {
    border-radius: 4px;
}

.auth-body {
    background: var(--ats-canvas);
}

.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 1.25rem;
}

.auth-header .ats-brand-copy strong {
    color: var(--ats-ink);
}

.auth-header .ats-brand-copy small {
    color: var(--ats-muted);
}

.auth-main {
    padding-top: 1rem;
}

.auth-card {
    border-color: var(--ats-border);
    background: var(--ats-surface);
    box-shadow: var(--ats-shadow-md);
}

.auth-card-accent {
    height: 3px;
    background: var(--ats-accent);
}

[data-bs-theme='dark'] .app-topbar {
    background: color-mix(in srgb, var(--ats-surface) 90%, transparent);
}

[data-bs-theme='dark'] .app-user-avatar {
    color: #ffffff;
    background: #343a47;
}

[data-bs-theme='dark'] .form-control,
[data-bs-theme='dark'] .form-select {
    color-scheme: dark;
}

[data-bs-theme='dark'] .btn-outline-secondary:hover,
[data-bs-theme='dark'] .btn-outline-secondary:focus {
    background: #222731;
}

[data-bs-theme='dark'] .table {
    --bs-table-color: var(--ats-ink);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--ats-border);
}

[data-bs-theme='dark'] .text-secondary {
    color: var(--ats-muted) !important;
}

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

@media (max-width: 1199.98px) {
    .app-main {
        padding-inline: 1.5rem;
    }

    .app-topbar-inner {
        padding-inline: 1.5rem;
    }

    .app-user-email {
        max-width: 9rem;
    }
}

@media (max-width: 767.98px) {
    body.sidebar-open {
        overflow: hidden;
    }

    .app-shell {
        display: block;
    }

    .app-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(17rem, 86vw);
        height: 100vh;
        min-height: 0;
        padding: 0;
        transform: translateX(-105%);
        transition: transform 200ms ease;
    }

    .sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .app-sidebar-nav {
        display: block;
    }

    .app-sidebar-backdrop {
        position: fixed;
        z-index: 1025;
        display: block;
        inset: 0;
        visibility: hidden;
        opacity: 0;
        background: rgb(4 7 12 / 65%);
        transition: visibility 200ms ease, opacity 200ms ease;
    }

    .sidebar-open .app-sidebar-backdrop {
        visibility: visible;
        opacity: 1;
    }

    .sidebar-close-button,
    .sidebar-menu-button {
        display: inline-grid;
    }

    .app-topbar,
    .app-topbar-inner {
        min-height: 4.25rem;
    }

    .app-topbar-inner {
        padding-inline: 1rem;
    }

    .app-main {
        padding: 1.25rem 1rem 2rem;
    }

    .topbar-context > div > span,
    .app-user-copy,
    .topbar-divider {
        display: none;
    }

    .topbar-context strong {
        max-width: 9rem;
    }

    .resource-page-header,
    .dashboard-page-header,
    .report-page-header,
    .audit-page-header {
        min-height: 0;
        align-items: flex-start;
        margin-bottom: 1rem;
    }

    :is(
        .company-toolbar,
        .job-filter-toolbar,
        .candidate-filter-toolbar,
        .application-filter-toolbar,
        .interview-filter-toolbar,
        .pipeline-filter-toolbar,
        .offer-filter-toolbar,
        .report-filter-panel,
        .audit-filter-panel
    ) {
        padding: 0.75rem;
    }

    .company-toolbar.candidate-filter-toolbar {
        grid-template-columns: 1fr;
    }

    .candidate-filter-search {
        grid-column: auto;
    }

    .table-actions {
        min-width: 8rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .auth-header {
        width: min(100% - 1.5rem, 72rem);
    }

    .auth-main {
        padding-inline: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
