.invalid-feedback-cs {
    display: none
}

.hasError .invalid-feedback-cs {
    font-size: .875em;
    display: block !important;
    color: var(--bs-form-invalid-color)
}

.hasError input {
    border-color: red
}

.buttonRight {
    float: right;
    margin-top: 10px;
    margin-bottom: 10px
}

.btn-primary {
    background-color: #98181c;
    border: #98181c
}

.btn-primary:hover {
    background-color: #98181c !important;
    opacity: .8
}

body {
    background: var(--page-bg);
}

.header-nav .nav-profile {
    color: #98181c
}

.logo span {
    font-size: 26px;
    font-weight: 700;
    color: #98181c
}

.pagetitle h1 {
    font-size: 24px;
    margin-bottom: 0;
    font-weight: 600;
    color: #98181c
}

.sameline {
    display: flex;
    justify-content: space-between
}

.addButon {
    color: blue
}

.logo {
    justify-content: center !important
}

.logo img {
    max-height: 50px !important
}

.iconResult img {
    width: 32px;
    height: 32px
}

.blueStatus {
    color: blue !important
}

.readStatus {
    color: #98181c !important
}

.colorApply {
    font-weight: bold;
    margin-top: 10px;
    color: #98181c
}

.combobox input {
    width: 100%;
    outline: none;
    border-radius: 5px
}

.combobox datalist {
    position: absolute;
    background-color: #fff;
    border: 1px solid blue;
    border-radius: 0 0 5px 5px;
    border-top: none;
    font-family: sans-serif;
    width: 100%;
    padding: 5px;
    max-height: 10rem;
    overflow-y: auto
}

.combobox option {
    background-color: #fff;
    padding: 4px;
    margin-bottom: 1px;
    cursor: pointer
}

.combobox option:hover,
.combobox .active {
    background-color: #add8e6
}

.badgeIcon {
    background-color: red;
    color: #fff;
    padding: 4px 8px;
    border-radius: 50% !important;
    text-align: center;
    border-radius: 5px;
    margin-left: 10px
}

.show {
    display: block !important
}

.nav-tabs {
    display: flex;
    justify-content: start;
    flex-wrap: wrap;
    background: #f1f3f5;
    padding: 0;
    border: none;
    border-radius: 12px 12px 0 0;
    box-shadow: inset 0 -1px 0 #dee2e6;
    overflow: auto
}

.nav-tabs .nav-item {
    flex: 1 1 auto;
    text-align: center;
    border-right: 1px solid #dee2e6
}

.nav-tabs .nav-item:last-child {
    border-right: none
}

.nav-tabs .nav-link {
    border: none;
    background-color: rgba(0, 0, 0, 0);
    color: #495057;
    padding: 14px 0;
    font-weight: 600;
    border-radius: 0;
    transition: all .3s ease-in-out;
    position: relative;
    width: 100%
}

.nav-tabs .nav-link:hover {
    background-color: #e9ecef;
    color: #0d6efd
}

.nav-tabs .nav-link.active {
    background: #fff;
    color: #0d6efd;
    font-weight: bold;
    border-bottom: 3px solid #0d6efd;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, .05)
}

.tab-content {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-top: none;
    padding: 24px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05)
}

.tab-pane .form-group {
    margin-bottom: 20px
}

.tab-pane .form-label {
    font-weight: 600;
    margin-bottom: 6px;
    display: inline-block;
    color: #495057
}

.tab-pane .form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 10px 14px;
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease
}

.tab-pane .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 .15rem rgba(13, 110, 253, .25);
    outline: none
}

.invalid-feedback-cs {
    color: #dc3545;
    font-size: .9rem;
    margin-top: 5px;
    display: none
}

/* Force date format dd/MM/yyyy trên Firefox */
@-moz-document url-prefix() {

    /* Firefox specific styles */
    td,
    th,
    span,
    div,
    p,
    a,
    label {
        /* Force text rendering để ngăn Firefox auto-format date */
        text-rendering: auto;
        -webkit-font-feature-settings: normal;
        font-feature-settings: normal;
    }
}

/* Class cho date display - force format */
.date-display {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    white-space: nowrap;
    direction: ltr;
    unicode-bidi: embed;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.file-thumb {
    width: 72px;
    height: 72px;
    border: 1px solid #e1e5ea;
    border-radius: 8px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    overflow: hidden;
}

.file-thumb.is-file {
    flex-direction: column;
    gap: 4px;
}

.file-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.file-thumb .bi {
    font-size: 28px;
    color: #6c757d;
}

.file-ext {
    font-size: 11px;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
}

.file-link {
    color: #0d6efd;
    text-decoration: none;
    font-size: 14px;
    word-break: break-all;
}

:root {
    --brand-accent: #1f4e79;
    --brand-accent-strong: #173b5c;
    --brand-accent-soft: #e8f1ff;
    --button-bg: #1f4e79;
    --button-bg-hover: #173b5c;
    --page-bg: #f6f9ff;
    --text-strong: #1f2d3d;
    --text-muted-strong: #4b5563;
    --input-border: #bfc9d9;
    --row-stripe: rgba(31, 45, 61, 0.04);
    --status-working-bg: #e6f4ea;
    --status-working-text: #1e7e34;
    --status-working-border: #b7e0c5;
    --status-leave-bg: #e8f1ff;
    --status-leave-text: #1e5bb8;
    --status-leave-border: #c6d9fb;
    --status-paused-bg: #f4f5f7;
    --status-paused-text: #6c757d;
    --status-paused-border: #d8dde4;
    --status-resigned-bg: #fdecec;
    --status-resigned-text: #c44141;
    --status-resigned-border: #f5b5b5;
}

.header-nav .nav-profile {
    color: var(--brand-accent);
}

.logo span {
    color: var(--brand-accent);
}

.pagetitle h1 {
    color: var(--brand-accent);
}

.readStatus,
.colorApply {
    color: var(--brand-accent) !important;
}

.btn-primary,
.btn-success {
    background-color: var(--button-bg);
    border-color: var(--button-bg);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus {
    background-color: var(--button-bg-hover) !important;
    border-color: var(--button-bg-hover) !important;
    opacity: 1;
}

.btn-primary:focus,
.btn-success:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.15);
}

.btn-outline-primary {
    color: var(--button-bg);
    border-color: var(--button-bg);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--button-bg);
    border-color: var(--button-bg);
    color: #fff;
}

.btn-outline-success {
    color: var(--button-bg);
    border-color: var(--button-bg);
}

.btn-outline-success:hover,
.btn-outline-success:focus {
    background-color: var(--button-bg);
    border-color: var(--button-bg);
    color: #fff;
}

.nav-tabs .nav-link:hover {
    color: var(--brand-accent);
    background-color: var(--brand-accent-soft);
}

.nav-tabs .nav-link.active {
    color: var(--brand-accent);
    border-bottom-color: var(--brand-accent);
}

.addButon {
    color: var(--brand-accent);
}

.blueStatus {
    color: var(--brand-accent) !important;
}

.combobox datalist {
    border-color: var(--brand-accent);
}

.combobox option:hover,
.combobox .active {
    background-color: var(--brand-accent-soft);
}

.form-label {
    font-weight: 600;
    color: var(--text-muted-strong);
}

.form-control,
.form-select {
    color: var(--text-strong);
    font-weight: 500;
    border-color: var(--input-border);
    background-color: #fbfdff;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 0.15rem rgba(31, 78, 121, 0.15);
}

.form-control::placeholder {
    color: #8a94a6;
}

.table td {
    color: var(--text-strong);
}

.table-striped tbody tr:nth-of-type(odd) td {
    background-color: var(--row-stripe);
}

.editable-grid thead th {
    background: var(--brand-accent);
    color: #fff;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.status-working {
    background-color: var(--status-working-bg);
    color: var(--status-working-text);
    border: 1px solid var(--status-working-border);
}

.status-leave {
    background-color: var(--status-leave-bg);
    color: var(--status-leave-text);
    border: 1px solid var(--status-leave-border);
}

.status-paused {
    background-color: var(--status-paused-bg);
    color: var(--status-paused-text);
    border: 1px solid var(--status-paused-border);
}

.status-resigned {
    background-color: var(--status-resigned-bg);
    color: var(--status-resigned-text);
    border: 1px solid var(--status-resigned-border);
}

.file-link {
    color: var(--brand-accent);
}

/* Interview Dashboard Styles */
.interview-active {
    border: 2px solid var(--bs-warning);
    background: linear-gradient(135deg, #fff 0%, #fff9e6 100%);
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

.bg-info-light {
    background-color: #e0f7fa !important;
}

.bg-warning-light {
    background-color: #fff3e0 !important;
}

.bg-primary-light {
    background-color: #e8f1ff !important;
}

.bg-success-light {
    background-color: #e8f5e9 !important;
}

.status-prominent {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--brand-accent) !important;
    background: var(--brand-accent-soft);
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(31, 78, 121, 0.1);
}

/* Modern shell refresh */
:root {
    --app-font-sans: "Public Sans", "Segoe UI", sans-serif;
    --app-font-display: "Manrope", "Public Sans", sans-serif;
    --brand-accent: #2563eb;
    --brand-accent-strong: #1d4ed8;
    --brand-accent-soft: #dbeafe;
    --button-bg: #2563eb;
    --button-bg-hover: #1d4ed8;
    --page-bg: #f4f7fb;
    --surface-base: rgba(255, 255, 255, 0.88);
    --surface-elevated: #ffffff;
    --surface-muted: #f8fafc;
    --surface-border: #e2e8f0;
    --surface-border-strong: #cbd5e1;
    --text-strong: #0f172a;
    --text-muted-strong: #475569;
    --text-soft: #94a3b8;
    --input-border: #d8e0ea;
    --row-stripe: rgba(148, 163, 184, 0.08);
    --shadow-xs: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 18px 40px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 24px 60px rgba(15, 23, 42, 0.12);
    --status-working-bg: #e7f8ee;
    --status-working-text: #166534;
    --status-working-border: #b7e4c7;
    --status-leave-bg: #ebf3ff;
    --status-leave-text: #1d4ed8;
    --status-leave-border: #bfd7ff;
    --status-paused-bg: #fff6dd;
    --status-paused-text: #a16207;
    --status-paused-border: #f6d98b;
    --status-resigned-bg: #fdecec;
    --status-resigned-text: #b42318;
    --status-resigned-border: #f5c2c7;
    --status-neutral-bg: #f1f5f9;
    --status-neutral-text: #334155;
    --status-neutral-border: #d8e1ec;
    --status-warning-bg: #fff4e5;
    --status-warning-text: #b45309;
    --status-warning-border: #f7d7a7;
}

html {
    font-size: 15px;
}

body,
button,
input,
select,
textarea {
    font-family: var(--app-font-sans);
}

body.app-shell {
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, var(--page-bg) 42%, #eef4fb 100%);
    color: var(--text-strong);
}

a {
    color: var(--brand-accent);
}

a:hover {
    color: var(--brand-accent-strong);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--app-font-display);
    color: var(--text-strong);
    letter-spacing: -0.02em;
}

.header {
    height: 72px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: none;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
}

.header-brand-group {
    gap: 12px;
    min-width: 280px;
}

.shell-icon-btn {
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid var(--surface-border);
    background: var(--surface-muted);
    color: var(--text-strong) !important;
}

.shell-icon-btn:hover,
.shell-icon-btn:focus {
    background: #fff;
    color: var(--brand-accent) !important;
}

.header .toggle-sidebar-btn {
    padding: 0;
    font-size: 22px;
}

.app-brand {
    gap: 14px;
}

.logo {
    justify-content: flex-start !important;
}

.logo img {
    max-height: 38px !important;
    margin-right: 0;
}

.app-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1;
}

.app-brand-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-soft);
}

.app-brand-copy strong {
    font-family: var(--app-font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-strong);
}

.header-page-meta {
    margin-left: 18px;
    padding-left: 18px;
    border-left: 1px solid var(--surface-border);
    flex-direction: column;
    gap: 4px;
}

.header-page-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-soft);
}

.header-page-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-strong);
}

.header-nav .nav-profile {
    gap: 12px;
    padding: 8px 10px 8px 16px !important;
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-strong);
}

.header-nav .nav-profile:hover,
.header-nav .nav-profile:focus {
    background: #fff;
    color: var(--brand-accent);
}

.header-user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.header-user-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-strong);
}

.header-user-role {
    font-size: 12px;
    color: var(--text-muted-strong);
}

.header-nav .nav-profile img {
    width: 40px;
    height: 40px;
    max-height: 40px;
    object-fit: cover;
    border: 2px solid rgba(37, 99, 235, 0.12);
    box-shadow: var(--shadow-xs);
}

.sidebar {
    top: 72px;
    width: 288px;
    padding: 18px 16px 24px;
    border-right: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(22px);
}

@media (max-width: 1199px) {
    .sidebar {
        left: -288px;
    }
}

@media (min-width: 1200px) {

    #main,
    #footer {
        margin-left: 288px;
    }
}

@media (max-width: 1199px) {
    .toggle-sidebar .sidebar {
        left: 0;
    }
}

@media (min-width: 1200px) {

    .toggle-sidebar #main,
    .toggle-sidebar #footer {
        margin-left: 0;
    }

    .toggle-sidebar .sidebar {
        left: -288px;
    }
}

.sidebar-nav .nav-heading {
    margin: 18px 12px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.sidebar-nav .nav-item {
    margin-bottom: 4px;
}

.sidebar-nav .nav-link {
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted-strong);
}

.sidebar-nav .nav-link i {
    color: var(--text-soft);
}

.sidebar-nav .nav-link.collapsed {
    background: transparent;
    color: var(--text-muted-strong);
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active,
.sidebar-nav .nav-link:not(.collapsed) {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.03));
    color: var(--text-strong);
    border-left: none;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.sidebar-nav .nav-link:hover i,
.sidebar-nav .nav-link.active i,
.sidebar-nav .nav-link:not(.collapsed) i {
    color: var(--brand-accent);
}

.sidebar-nav .nav-content {
    padding: 6px 0 0 12px;
}

.sidebar-nav .nav-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    color: var(--text-muted-strong);
    font-size: 13px;
    font-weight: 600;
}

.sidebar-nav .nav-content a.active,
.sidebar-nav .nav-content a:hover {
    background: var(--surface-muted);
    color: var(--text-strong);
}

.sidebar-nav .nav-content a i {
    margin-right: 0;
    font-size: 14px;
    color: var(--text-soft);
}

#main {
    margin-top: 72px;
    padding: 30px 32px 44px;
}

@media (max-width: 1199px) {
    #main {
        padding: 24px 18px 36px;
    }
}

.footer {
    padding: 18px 32px 28px;
    background: transparent;
    color: var(--text-soft);
}

.footer .credits {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.footer-separator {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.5;
}

.back-to-top {
    background: var(--brand-accent);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

.pagetitle {
    position: sticky;
    top: 72px;
    z-index: 100;
    padding: 12px 0 10px;
    margin-bottom: 20px;
    background: linear-gradient(180deg, rgba(244, 247, 251, 0.98) 0%, rgba(244, 247, 251, 0.95) 78%, rgba(244, 247, 251, 0) 100%);
    backdrop-filter: blur(12px);
}

.pagetitle h1 {
    font-family: var(--app-font-display);
    font-size: 30px;
    font-weight: 800;
    color: var(--text-strong);
}

.breadcrumb {
    margin-top: 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-soft);
}

.breadcrumb a,
.breadcrumb .active {
    color: var(--text-muted-strong);
}

.card {
    margin-bottom: 24px;
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    background: var(--surface-base);
    box-shadow: var(--shadow-sm);
}

.card-header,
.card-footer {
    border-color: var(--surface-border);
    background: transparent;
}

.card-body {
    padding: 24px 24px 28px;
}

@media (max-width: 992px) {
    .card-body {
        padding: 20px;
    }
}

.dropdown-menu {
    border: 1px solid var(--surface-border);
    border-radius: 18px;
    padding: 8px;
    box-shadow: var(--shadow-md);
}

.dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--text-strong);
}

.dropdown-menu .dropdown-item:hover {
    background: var(--surface-muted);
}

.btn {
    border-radius: 14px;
    font-weight: 700;
    padding: 0.72rem 1rem;
    box-shadow: none;
}

.btn-sm {
    border-radius: 12px;
}

.btn-primary,
.btn-success {
    background: linear-gradient(180deg, var(--button-bg), var(--button-bg-hover));
    border-color: var(--button-bg);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus {
    background: linear-gradient(180deg, var(--button-bg-hover), var(--button-bg-hover)) !important;
    border-color: var(--button-bg-hover) !important;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
}

.btn-outline-secondary {
    color: var(--text-muted-strong);
    border-color: var(--surface-border-strong);
    background: #fff;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    color: var(--text-strong);
    border-color: var(--surface-border-strong);
    background: var(--surface-muted);
}

.btn-outline-primary,
.btn-outline-success {
    color: var(--brand-accent);
    border-color: rgba(37, 99, 235, 0.22);
    background: rgba(255, 255, 255, 0.92);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-success:hover,
.btn-outline-success:focus {
    background: var(--brand-accent-soft);
    border-color: rgba(37, 99, 235, 0.24);
    color: var(--brand-accent-strong);
}

.form-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.form-control,
.form-select {
    min-height: 46px;
    padding: 0.68rem 0.9rem;
    border-radius: 14px;
    border: 1px solid var(--input-border);
    background: #fff;
    color: var(--text-strong);
    font-size: 14px;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-control::placeholder {
    color: var(--text-soft);
}

.table {
    margin-bottom: 0;
    border-color: var(--surface-border);
}

.table-responsive {
    position: relative;
}

.table > :not(caption) > * > * {
    padding: 0.9rem 1rem;
    vertical-align: middle;
    border-bottom-color: var(--surface-border);
}

.table thead th {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted-strong);
    background: rgba(248, 250, 252, 0.92);
}

.table.table-sticky-enabled thead th {
    position: sticky;
    top: var(--sticky-table-offset, 156px);
    z-index: 85;
    background: rgba(248, 250, 252, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 -1px 0 var(--surface-border), 0 1px 0 rgba(15, 23, 42, 0.06);
}

@media (min-width: 992px) {
    .table-responsive.table-sticky-host {
        overflow: visible;
    }
}

.table tbody tr {
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.92);
}

.table td {
    color: var(--text-strong);
}

.table td a {
    font-weight: 700;
}

.table-striped tbody tr:nth-of-type(odd) td {
    background-color: var(--row-stripe);
}

.pagination {
    gap: 8px;
    margin-top: 28px;
}

.page-link {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 12px;
    background: #fff;
    color: var(--text-muted-strong);
    box-shadow: var(--shadow-xs);
}

.page-item.active .page-link {
    background: var(--brand-accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.status-neutral {
    background: var(--status-neutral-bg);
    color: var(--status-neutral-text);
    border: 1px solid var(--status-neutral-border);
}

.status-warning {
    background: var(--status-warning-bg);
    color: var(--status-warning-text);
    border: 1px solid var(--status-warning-border);
}

.employee-filter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.employee-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 1200px) {
    .employee-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .employee-filter-grid {
        grid-template-columns: 1fr;
    }
}

.employee-filter-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.employee-filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.employee-name-link {
    color: var(--text-strong);
    font-weight: 700;
}

.employee-name-link:hover {
    color: var(--brand-accent);
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.table-action-link {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--surface-muted);
    color: var(--text-muted-strong);
    transition: all 0.2s ease;
}

.table-action-link:hover {
    color: var(--brand-accent);
    background: var(--brand-accent-soft);
}

.table-action-link.is-danger:hover {
    color: #dc2626;
    background: #fee2e2;
}

.table-action-link.is-success:hover {
    color: #15803d;
    background: #dcfce7;
}

.employee-summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--surface-border);
    background: rgba(255, 255, 255, 0.86);
    color: var(--text-muted-strong);
    font-size: 13px;
    font-weight: 600;
}

.employee-summary-chip strong {
    color: var(--text-strong);
}

.employee-summary-chip-muted {
    background: rgba(248, 250, 252, 0.94);
}

@media (max-width: 768px) {
    .header {
        padding: 0 14px;
    }

    .app-brand-copy {
        display: none !important;
    }

    .header-nav .nav-profile {
        padding-left: 10px !important;
    }

    .footer {
        padding: 12px 18px 24px;
    }

    .footer .credits {
        flex-wrap: wrap;
    }
}

/* Employee workspace */
.employee-workspace {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.employee-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.employee-toolbar-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 640px;
}

.employee-panel-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.employee-section-heading {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
}

.employee-inline-note {
    margin: 0;
    color: var(--text-muted-strong);
    font-size: 14px;
}

.employee-toolbar-actions,
.employee-table-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.employee-toolbar-summary {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.employee-filter-panel,
.employee-table-panel {
    border: 1px solid var(--surface-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.employee-filter-panel.is-collapsed {
    display: none;
}

.employee-filter-header,
.employee-table-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--surface-border);
}

.employee-table-header {
    align-items: center;
}

.employee-filter-header h3,
.employee-table-header h3 {
    margin: 4px 0 0;
    font-size: 18px;
    font-weight: 800;
}

.employee-filter-header p,
.employee-table-header p {
    margin: 6px 0 0;
    color: var(--text-muted-strong);
    font-size: 13px;
}

.employee-filter-body {
    padding: 20px;
}

.employee-grid-shell {
    position: relative;
}

.extended-scroll-container {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    border-radius: 0 0 22px 22px;
}

.extended-scroll-container .table {
    min-width: 1320px;
}

.extended-scroll-container.edit-mode .table {
    min-width: 2500px;
}

.extended-scroll-container .table th,
.extended-scroll-container .table td {
    white-space: nowrap;
    min-width: 100px;
}

.extended-scroll-container .table th.col-narrow,
.extended-scroll-container .table td.col-narrow {
    min-width: 56px;
    max-width: 76px;
}

.extended-scroll-container .table th.col-wide,
.extended-scroll-container .table td.col-wide {
    min-width: 190px;
}

#employeeGrid thead tr:first-child th {
    position: relative;
    top: auto;
    z-index: 18;
    padding: 14px 12px;
    vertical-align: top;
    background: rgba(248, 250, 252, 0.96);
    backdrop-filter: blur(12px);
    will-change: transform;
    transition: box-shadow 0.18s ease;
}

#employeeGrid thead th,
#employeeGrid tbody td {
    border-color: var(--surface-border);
}

#employeeGrid thead th .header-cell {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 24px;
}

#employeeGrid thead th .header-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted-strong);
}

#employeeGrid thead th .header-filter {
    display: none;
}

.employee-grid-shell.show-column-filters #employeeGrid thead th .header-filter {
    display: block;
}

#employeeGrid thead .table-filter-input,
#employeeGrid thead .table-filter-select {
    min-width: 84px;
    height: 34px;
    padding: 0.35rem 0.55rem;
    font-size: 12px;
    border-radius: 10px;
}

#employeeGrid thead .col-narrow .table-filter-input,
#employeeGrid thead .col-narrow .table-filter-select {
    min-width: 56px;
}

.employee-grid-shell.show-column-filters #employeeGrid thead tr:first-child th {
    padding-bottom: 16px;
}

.employee-grid-shell.is-header-floating #employeeGrid thead tr:first-child th {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.extended-col {
    display: none;
}

.extended-scroll-container.edit-mode .extended-col {
    display: table-cell;
}

.table-action-cell {
    min-width: 132px;
}

.text-muted-cell {
    color: var(--text-muted-strong);
}

.employee-filter-badge {
    display: none;
    min-width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--brand-accent-soft);
    color: var(--brand-accent-strong);
    font-size: 11px;
    font-weight: 800;
}

.employee-filter-badge.has-value {
    display: inline-flex;
}

@media (max-width: 1400px) {
    .col-hide-xl {
        display: none !important;
    }
}

@media (max-width: 1200px) {
    .col-hide-lg {
        display: none !important;
    }
}

@media (max-width: 992px) {
    .col-hide-md {
        display: none !important;
    }

    .employee-filter-header,
    .employee-table-header {
        padding: 16px;
    }

    .employee-filter-body {
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .employee-section-heading {
        font-size: 24px;
    }

    .employee-toolbar-actions,
    .employee-table-tools {
        width: 100%;
    }

    .employee-toolbar-actions .btn,
    .employee-table-tools .btn,
    .employee-toolbar-actions .dropdown {
        flex: 1 1 auto;
    }
}

/* Candidate detail refresh */
.candidate-page-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.page-subtitle {
    margin: 6px 0 0;
    max-width: 720px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted-strong);
}

.candidate-detail-card .card-body {
    padding: 24px;
    background: linear-gradient(180deg, #fbfcfe 0%, #f7f9fc 100%);
}

.candidate-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.95fr);
    gap: 20px;
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 34%),
        linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.92));
}

.candidate-hero-kicker,
.candidate-tab-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-accent);
}

.candidate-hero-copy h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
}

.candidate-hero-copy p {
    margin: 10px 0 0;
    max-width: 620px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted-strong);
}

.candidate-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.candidate-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(37, 99, 235, 0.12);
    color: var(--text-strong);
    font-size: 13px;
    font-weight: 700;
}

.candidate-hero-pill i {
    color: var(--brand-accent);
}

.candidate-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.candidate-stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid var(--surface-border);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-xs);
}

.candidate-stat-card--editable {
    gap: 10px;
}

.candidate-stat-card-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.candidate-stat-card-headline > span:first-child {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted-strong);
}

.candidate-stat-card span,
.candidate-stat-card small {
    color: var(--text-muted-strong);
}

.candidate-stat-card span {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.candidate-stat-card strong {
    font-size: 20px;
    line-height: 1.25;
    color: var(--text-strong);
}

.candidate-stat-card small {
    font-size: 12px;
}

.candidate-detail-tabs {
    gap: 8px;
    padding: 6px;
    border-radius: 20px 20px 0 0;
    background: rgba(226, 232, 240, 0.48);
    box-shadow: none;
}

.candidate-detail-tabs .nav-item {
    border-right: none;
}

.candidate-detail-tabs .nav-link {
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    color: var(--text-muted-strong);
}

.candidate-detail-tabs .nav-link:hover {
    background: rgba(255, 255, 255, 0.9);
}

.candidate-detail-tabs .nav-link.active {
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.candidate-detail-tab-content {
    padding: 24px 0 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.candidate-detail-page {
    padding-bottom: 110px;
}

.candidate-primary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

.candidate-primary-grid > .form-group,
.candidate-primary-grid > .candidate-inline-upload {
    margin-bottom: 0;
}

.candidate-inline-upload,
.candidate-note-field,
.candidate-action-bar {
    grid-column: 1 / -1;
}

.candidate-inline-upload > .form-group {
    margin: 0;
    padding: 12px 14px;
    border: 1px dashed #e1e6ef;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: none;
}

.candidate-inline-upload .form-control {
    margin-top: 8px;
}

.candidate-detail-page .form-group-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.candidate-detail-page .form-group-important {
    background: transparent;
}

.candidate-detail-page .form-group-card .form-label {
    margin-bottom: 0;
}

.candidate-detail-page .form-label,
.candidate-hero .form-label,
.candidate-inline-date .form-label {
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-transform: none;
    color: #64748b;
}

.candidate-detail-page .form-group-card .form-control,
.candidate-detail-page .form-group-card .form-select {
    min-height: 40px;
    padding: 0.56rem 0.78rem;
    border-radius: 9px;
    border: 1px solid #d6dee8;
    background: #fff;
    box-shadow: none;
    color: #0f172a;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.candidate-detail-page .form-group-card .form-control::placeholder,
.candidate-inline-date .form-control::placeholder,
.candidate-hero .form-select:invalid {
    color: #94a3b8;
}

.candidate-detail-page .form-group-card .form-control[readonly] {
    background: #f8fafc;
    border-color: #e3e8f1;
    color: var(--text-muted-strong);
}

.candidate-detail-page .form-group-card .form-select,
.candidate-hero .form-select {
    padding-right: 2.35rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.78rem center;
    background-size: 12px 12px;
    appearance: none;
}

.candidate-detail-page .form-group-card .form-control:hover,
.candidate-detail-page .form-group-card .form-select:hover,
.candidate-hero .form-select:hover,
.candidate-inline-date .form-control:hover {
    border-color: #c7d1de;
}

.candidate-detail-page .form-group-card .form-control:focus,
.candidate-detail-page .form-group-card .form-select:focus,
.candidate-hero .form-select:focus,
.candidate-inline-date .form-control:focus {
    border-color: #7f9ec7;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(127, 158, 199, 0.12);
}

.candidate-detail-page .form-group-card.is-required .form-label::after {
    content: " *";
    color: #dc2626;
}

.form-helper-text {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted-strong);
}

.candidate-note-input {
    min-height: 92px;
    resize: vertical;
}

.candidate-detail-page textarea.form-control {
    padding-top: 0.7rem;
}

.candidate-detail-page input[type="date"].form-control {
    padding-right: 2.35rem;
}

.candidate-detail-page input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.58;
    cursor: pointer;
}

.candidate-detail-page input[type="file"].form-control {
    padding: 0.38rem 0.42rem 0.38rem 0.68rem;
}

.candidate-detail-page input[type="file"].form-control::file-selector-button {
    margin-right: 0.75rem;
    padding: 0.48rem 0.82rem;
    border: 0;
    border-radius: 7px;
    background: #eff4fb;
    color: #31598f;
    font-size: 12px;
    font-weight: 600;
}

.candidate-onboard-field.is-hidden {
    display: none;
}

.candidate-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 2px;
}

.candidate-file-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    grid-column: 1 / -1;
}

.required-legend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(37, 99, 235, 0.12);
    color: var(--text-muted-strong);
    font-size: 12px;
    font-weight: 700;
}

.required-legend span {
    color: #dc2626;
}

.candidate-tab-panel {
    padding: 22px;
    border: 1px solid #eef2f7;
    border-radius: 20px;
    background: #fff;
    box-shadow: none;
}

.candidate-tab-panel + .candidate-tab-panel {
    margin-top: 20px;
}

.candidate-tab-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.candidate-tab-panel-head h3 {
    margin: 0;
    font-size: 24px;
}

.candidate-tab-panel-head p {
    margin: 8px 0 0;
    color: var(--text-muted-strong);
    font-size: 14px;
    line-height: 1.6;
}

.candidate-document-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.candidate-documents-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.candidate-documents-grid > .form-group {
    margin: 0;
    padding: 14px;
    border: 1px solid #edf1f6;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: none;
}

.candidate-documents-grid .form-control {
    margin-top: 8px;
}

.candidate-schedule-form-shell {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #edf1f6;
    background: #fbfcfd;
}

.candidate-table-panel .table-responsive {
    border: 1px solid var(--surface-border);
    border-radius: 18px;
    overflow: hidden;
}

.candidate-interview-table td:last-child {
    white-space: nowrap;
}

.candidate-table-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.candidate-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.candidate-status-badge--success {
    background: #dcfce7;
    color: #15803d;
}

.candidate-status-badge--warning {
    background: #fef3c7;
    color: #b45309;
}

.candidate-status-badge--danger {
    background: #fee2e2;
    color: #dc2626;
}

.candidate-status-badge--info {
    background: #dbeafe;
    color: #1d4ed8;
}

.candidate-inline-date {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.candidate-inline-date.is-hidden {
    display: none;
}

.candidate-activity-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.candidate-activity-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    align-items: flex-start;
}

.candidate-activity-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.candidate-activity-body {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--surface-border);
    background: rgba(255, 255, 255, 0.92);
}

.candidate-activity-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.candidate-activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted-strong);
}

.candidate-activity-details {
    margin-top: 12px;
}

.candidate-activity-details summary {
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-accent);
}

.candidate-activity-details pre {
    margin: 10px 0 0;
    padding: 12px;
    border-radius: 12px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.candidate-sticky-actions {
    position: fixed;
    right: 24px;
    bottom: 22px;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.candidate-sticky-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.candidate-sticky-meta strong {
    color: var(--text-strong);
}

.candidate-sticky-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.candidate-cv-preview-body {
    min-height: 72vh;
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
}

.candidate-cv-preview-body iframe,
.candidate-cv-preview-body img {
    width: 100%;
    height: 72vh;
    border: 0;
    display: block;
    object-fit: contain;
    background: #fff;
}

.candidate-empty-state {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    margin-top: 16px;
    border: 1px dashed var(--surface-border-strong);
    border-radius: 18px;
    background: var(--surface-muted);
    color: var(--text-muted-strong);
}

.candidate-empty-state i {
    font-size: 22px;
    color: var(--brand-accent);
}

.candidate-empty-state strong,
.candidate-empty-state span {
    display: block;
}

.candidate-empty-state strong {
    margin-bottom: 4px;
    color: var(--text-strong);
}

.candidate-detail-page .hasError.form-group-card,
.candidate-detail-page .hasError.candidate-note-field,
.candidate-detail-page .hasError .form-group-card {
    border-color: transparent;
    background: transparent;
}

.candidate-detail-page .hasError .form-control,
.candidate-detail-page .hasError .form-select {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.candidate-detail-page .invalid-feedback-cs {
    margin-top: 2px;
    font-size: 12px;
}

.header-shortcuts {
    align-items: center;
    gap: 10px;
    margin-left: 18px;
}

.header-shortcut-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    padding: 10px 14px;
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-strong);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    box-shadow: var(--shadow-xs);
}

.header-shortcut-link:hover,
.header-shortcut-link:focus {
    background: #fff;
    color: var(--brand-accent);
    border-color: rgba(37, 99, 235, 0.2);
}

.header-shortcut-link i {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--brand-accent);
}

.header-shortcut-badge {
    min-width: 24px;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.header-shortcut-hint,
.quick-actions-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.header-shortcut-overflow,
.header-quick-actions-toggle {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 14px;
    border: 1px solid var(--surface-border);
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-strong);
    box-shadow: var(--shadow-xs);
}

.header-shortcut-overflow:hover,
.header-shortcut-overflow:focus,
.header-quick-actions-toggle:hover,
.header-quick-actions-toggle:focus {
    color: var(--brand-accent);
    border-color: rgba(37, 99, 235, 0.18);
    background: #fff;
}

.quick-actions-dropdown {
    min-width: 280px;
}

.quick-actions-item {
    justify-content: space-between;
    gap: 12px;
}

.quick-actions-item i {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--brand-accent);
}

.quick-actions-item span {
    flex: 1;
    font-weight: 700;
}

.sidebar.sidebar-admin {
    padding: 14px 14px 20px;
}

.sidebar-priority-panel {
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(219, 234, 254, 0.92), rgba(255, 255, 255, 0.96)),
        rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.sidebar-priority-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.sidebar-priority-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-accent);
}

.sidebar-priority-head strong {
    font-size: 15px;
    line-height: 1.2;
    color: var(--text-strong);
}

.sidebar-priority-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-priority-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    background: rgba(255, 255, 255, 0.86);
    color: var(--text-strong);
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.sidebar-priority-link:hover,
.sidebar-priority-link:focus,
.sidebar-priority-link.active {
    color: var(--brand-accent);
    border-color: rgba(37, 99, 235, 0.2);
    background: #fff;
    box-shadow: var(--shadow-xs);
}

.sidebar-priority-link.is-primary {
    border-color: rgba(37, 99, 235, 0.18);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.12), rgba(255, 255, 255, 0.94));
}

.sidebar-priority-link i {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--brand-accent);
}

.sidebar-priority-link span {
    flex: 1;
    line-height: 1.3;
}

.sidebar-link-badge {
    min-width: 24px;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.sidebar-admin .sidebar-nav-enhanced {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-admin .sidebar-nav-enhanced .nav-item {
    margin-bottom: 2px;
}

.sidebar-admin .sidebar-nav-enhanced .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 14px;
    font-size: 13px;
}

.sidebar-admin .sidebar-nav-enhanced .nav-link > span {
    flex: 1;
    line-height: 1.3;
}

.sidebar-admin .sidebar-nav-enhanced .nav-link > i:first-child {
    width: 32px;
    height: 32px;
    margin-right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.12);
    transition: all 0.2s ease;
}

.sidebar-admin .sidebar-nav-enhanced .nav-link .bi-chevron-down {
    width: auto;
    height: auto;
    margin-right: 0;
    background: transparent;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.sidebar-admin .sidebar-nav-enhanced .nav-link:hover > i:first-child,
.sidebar-admin .sidebar-nav-enhanced .nav-link.active > i:first-child,
.sidebar-admin .sidebar-nav-enhanced .nav-link:not(.collapsed) > i:first-child {
    background: rgba(37, 99, 235, 0.12);
    color: var(--brand-accent);
}

.sidebar-admin .sidebar-nav-enhanced .nav-link.active .bi-chevron-down,
.sidebar-admin .sidebar-nav-enhanced .nav-link:not(.collapsed) .bi-chevron-down {
    transform: rotate(180deg);
}

.sidebar-admin .sidebar-nav-enhanced .nav-content {
    margin: 4px 0 8px 8px;
    padding: 6px 8px;
    border-left: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.92);
}

.sidebar-admin .sidebar-nav-enhanced .nav-content a {
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.sidebar-admin .sidebar-nav-enhanced .nav-content a i {
    width: 26px;
    height: 26px;
    margin-right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.12);
}

.sidebar-admin .sidebar-nav-enhanced .nav-content a span {
    line-height: 1.25;
}

.sidebar-admin .sidebar-nav-enhanced .nav-heading {
    position: relative;
    margin-top: 10px;
    margin-bottom: 4px;
    padding-left: 10px;
}

.sidebar-admin .sidebar-nav-enhanced .nav-heading::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 10px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.32);
}

.admin-page-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.late-early-request-shell {
    gap: 14px;
}

.admin-kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.admin-kpi-card {
    padding: 14px 16px;
    border: 1px solid var(--surface-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-xs);
}

.admin-kpi-label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.admin-kpi-value {
    display: block;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-strong);
}

.admin-kpi-meta {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted-strong);
}

.admin-list-card .card-body {
    padding: 20px 20px 22px;
}

.admin-list-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.06), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.admin-list-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.admin-list-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 720px;
}

.admin-list-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.admin-list-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
}

.admin-list-note {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted-strong);
}

.admin-list-meta,
.admin-list-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid var(--surface-border);
    background: rgba(248, 250, 252, 0.94);
    color: var(--text-muted-strong);
    font-size: 12px;
    font-weight: 700;
}

.admin-meta-chip strong {
    color: var(--text-strong);
}

.admin-table-scroll {
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    overflow: auto;
}

.admin-list-card .admin-table-scroll.table-sticky-host {
    overflow: auto;
}

.admin-table-scroll .table {
    min-width: 720px;
    margin-bottom: 0;
}

.admin-table-scroll .table.table-sticky-enabled thead th {
    top: 0 !important;
}

.admin-table-scroll::-webkit-scrollbar {
    height: 10px;
}

.admin-table-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.45);
}

.table-admin-compact > :not(caption) > * > * {
    padding: 0.64rem 0.76rem;
    font-size: 13px;
    vertical-align: middle;
}

.table-admin-compact thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    padding-top: 0.78rem;
    padding-bottom: 0.78rem;
    background: rgba(241, 245, 249, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(203, 213, 225, 0.9);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-soft);
    white-space: nowrap;
}

.table-admin-compact tbody tr {
    transition: background-color 0.18s ease;
}

.table-admin-compact tbody tr:hover > * {
    background: rgba(239, 246, 255, 0.86);
}

.table-primary-text {
    font-weight: 700;
    color: var(--text-strong);
}

.table-secondary-text {
    margin-top: 2px;
    font-size: 12px;
    color: var(--text-muted-strong);
}

.table-col-truncate {
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-col-truncate.is-wide {
    max-width: 320px;
}

.table-actions.table-actions-compact .btn {
    padding: 0.42rem 0.66rem;
    border-radius: 10px;
}

.admin-hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
    gap: 18px;
    padding: 20px 22px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    box-shadow: var(--shadow-sm);
}

.admin-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-hero-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-accent);
}

.admin-hero-title {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.08;
}

.admin-hero-subtitle {
    margin: 0;
    max-width: 720px;
    color: var(--text-muted-strong);
    font-size: 14px;
    line-height: 1.55;
}

.admin-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.admin-hero-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-hero-note {
    padding: 14px 16px;
    border: 1px solid var(--surface-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
}

.admin-hero-note strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: var(--text-strong);
}

.admin-hero-note span {
    display: block;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted-strong);
}

.table-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.table-stack-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-strong);
    line-height: 1.3;
}

.table-stack-subtitle {
    font-size: 12px;
    color: var(--text-muted-strong);
    line-height: 1.45;
}

.table-stack-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.table-info-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(241, 245, 249, 0.96);
    border: 1px solid rgba(203, 213, 225, 0.75);
    color: var(--text-muted-strong);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.table-info-chip.is-primary {
    background: rgba(219, 234, 254, 0.92);
    border-color: rgba(147, 197, 253, 0.8);
    color: #1d4ed8;
}

.table-info-chip.is-success {
    background: rgba(220, 252, 231, 0.92);
    border-color: rgba(134, 239, 172, 0.8);
    color: #166534;
}

.table-info-chip.is-warning {
    background: rgba(255, 244, 229, 0.96);
    border-color: rgba(247, 215, 167, 0.88);
    color: #b45309;
}

.table-metric-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.table-metric-card {
    min-width: 70px;
    padding: 6px 8px;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.table-metric-card strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-strong);
    line-height: 1.1;
}

.table-metric-card span {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.table-reason-block {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 340px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-muted-strong);
}

.table-status-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.table-status-stack .badge {
    max-width: 100%;
    white-space: normal;
    text-align: left;
    line-height: 1.35;
}

.late-early-request-shell .admin-kpi-card {
    border-radius: 12px;
    padding: 12px 14px;
}

.late-early-request-shell .admin-list-card {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-xs);
}

.late-early-request-shell .admin-list-card .card-body {
    padding: 18px;
}

.late-early-request-shell .admin-list-header {
    align-items: center;
}

.late-early-request-shell .admin-table-scroll {
    border-radius: 12px;
}

.late-early-request-table {
    min-width: 920px;
    table-layout: fixed;
}

.late-early-request-table th:nth-child(1),
.late-early-request-table td:nth-child(1) {
    width: 52px;
}

.late-early-request-table th:nth-child(2),
.late-early-request-table td:nth-child(2) {
    width: 20%;
}

.late-early-request-table th:nth-child(3),
.late-early-request-table td:nth-child(3) {
    width: 18%;
}

.late-early-request-table th:nth-child(4),
.late-early-request-table td:nth-child(4) {
    width: 27%;
}

.late-early-request-table th:nth-child(5),
.late-early-request-table td:nth-child(5) {
    width: 15%;
}

.late-early-request-table th:nth-child(6),
.late-early-request-table td:nth-child(6) {
    width: 132px;
}

.late-early-request-table .table-reason-block {
    max-width: none;
}

.late-early-request-table .table-actions {
    flex-wrap: nowrap;
}

@media (max-width: 1200px) {
    .candidate-hero {
        grid-template-columns: 1fr;
    }

    .candidate-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .admin-hero-panel {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .candidate-page-title,
    .candidate-tab-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .candidate-detail-card .card-body {
        padding: 22px;
    }

    .candidate-primary-grid,
    .candidate-documents-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-shortcuts {
        margin-left: 10px;
    }

    .quick-actions-dropdown {
        min-width: min(280px, calc(100vw - 32px));
    }

    .admin-kpi-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-list-card .card-body {
        padding: 16px;
    }

    .admin-list-title {
        font-size: 20px;
    }

    .sidebar-priority-panel {
        padding: 12px;
    }

    .sidebar-priority-link span {
        font-size: 12px;
    }

    .candidate-hero {
        padding: 18px;
    }

    .candidate-hero-stats {
        grid-template-columns: 1fr;
    }

    .candidate-stat-card {
        min-height: auto;
    }

    .candidate-document-actions,
    .candidate-action-bar {
        width: 100%;
    }

    .candidate-document-actions .btn,
    .candidate-action-bar .btn,
    .candidate-file-actions .btn,
    .candidate-file-actions a {
        width: 100%;
    }

    .candidate-sticky-actions {
        left: 12px;
        right: 12px;
        bottom: 12px;
        flex-direction: column;
        align-items: stretch;
    }

    .candidate-sticky-meta,
    .candidate-sticky-buttons {
        width: 100%;
    }

    .candidate-sticky-buttons .btn {
        flex: 1 1 auto;
    }
}

@media (max-width: 576px) {
    .admin-kpi-strip {
        grid-template-columns: 1fr;
    }
}

/* Horizontal application menu */
.app-horizontal-menu #sidebar.app-top-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    min-height: 56px;
    z-index: 996;
    display: flex;
    align-items: center;
    padding: 0 28px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
}

.app-horizontal-menu #sidebar.app-top-menu.sidebar-admin {
    padding: 0 28px;
}

.app-horizontal-menu .app-top-menu-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 1440px;
    min-width: 0;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    overflow: visible;
}

.app-horizontal-menu .app-top-menu-list .nav-item {
    margin: 0;
    position: relative;
    flex: 0 0 auto;
}

.app-horizontal-menu .app-top-menu-list .nav-link {
    position: relative;
    height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border-radius: 8px;
    color: var(--text-muted-strong);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.app-horizontal-menu .app-top-menu-list .nav-link::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: transparent;
}

.app-horizontal-menu .app-top-menu-list .nav-link i {
    width: 24px;
    height: 24px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    border-radius: 8px;
    color: var(--text-soft);
    background: rgba(100, 116, 139, 0.08);
    font-size: 15px;
    line-height: 1;
}

.app-horizontal-menu .app-top-menu-list .nav-link:hover,
.app-horizontal-menu .app-top-menu-list .nav-link:focus,
.app-horizontal-menu .app-top-menu-list .nav-link.active,
.app-horizontal-menu .app-top-menu-list .nav-link.show,
.app-horizontal-menu .app-top-menu-list .dropdown.show > .nav-link {
    color: var(--text-strong);
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.18);
}

.app-horizontal-menu .app-top-menu-list .nav-link:hover::before,
.app-horizontal-menu .app-top-menu-list .nav-link:focus::before,
.app-horizontal-menu .app-top-menu-list .nav-link.active::before,
.app-horizontal-menu .app-top-menu-list .nav-link.show::before,
.app-horizontal-menu .app-top-menu-list .dropdown.show > .nav-link::before {
    background: var(--brand-accent);
}

.app-horizontal-menu .app-top-menu-list .nav-link:hover i,
.app-horizontal-menu .app-top-menu-list .nav-link:focus i,
.app-horizontal-menu .app-top-menu-list .nav-link.active i,
.app-horizontal-menu .app-top-menu-list .nav-link.show i,
.app-horizontal-menu .app-top-menu-list .dropdown.show > .nav-link i {
    color: var(--brand-accent);
    background: #ffffff;
}

.app-horizontal-menu .app-top-menu-list .nav-link:focus-visible,
.app-horizontal-menu .app-top-menu-dropdown .dropdown-item:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.45);
    outline-offset: 2px;
}

.app-horizontal-menu .app-top-menu-list .dropdown-toggle::after {
    margin-left: 1px;
    color: var(--text-soft);
}

.app-horizontal-menu .sidebar-link-badge {
    min-width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
    color: #ffffff;
    background: #dc2626;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.app-horizontal-menu .app-top-menu-dropdown {
    max-height: calc(100vh - 152px);
    overflow-y: auto;
    padding: 8px;
    margin-top: 8px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.16);
}

.app-horizontal-menu .app-menu-panel-compact {
    width: min(320px, calc(100vw - 32px));
}

.app-horizontal-menu .app-menu-panel-medium {
    width: min(520px, calc(100vw - 32px));
}

.app-horizontal-menu .app-menu-panel-medium.show {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 8px;
}

.app-horizontal-menu .app-menu-panel-medium > li {
    min-width: 0;
}

.app-horizontal-menu .app-menu-panel-medium > li:has(.dropdown-header),
.app-horizontal-menu .app-menu-panel-medium > li:has(.dropdown-divider) {
    grid-column: 1 / -1;
}

.app-horizontal-menu .app-menu-panel-wide {
    width: min(660px, calc(100vw - 32px));
}

.app-horizontal-menu .app-menu-panel-wide.show {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 8px;
}

.app-horizontal-menu .app-menu-panel-wide > li {
    min-width: 0;
}

.app-horizontal-menu .app-menu-panel-wide > li:has(.dropdown-header),
.app-horizontal-menu .app-menu-panel-wide > li:has(.dropdown-divider) {
    grid-column: 1 / -1;
}

.app-horizontal-menu .app-top-menu-dropdown .dropdown-header {
    padding: 7px 10px 5px;
    text-align: left;
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

.app-horizontal-menu .app-top-menu-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--text-muted-strong);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0;
    white-space: normal;
}

.app-horizontal-menu .app-top-menu-dropdown .dropdown-item i {
    width: 24px;
    height: 24px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    border-radius: 8px;
    color: var(--text-soft);
    background: rgba(100, 116, 139, 0.08);
    font-size: 14px;
}

.app-horizontal-menu .app-top-menu-dropdown .dropdown-item span {
    min-width: 0;
    line-height: 1.25;
}

.app-horizontal-menu .app-top-menu-dropdown .dropdown-item:hover,
.app-horizontal-menu .app-top-menu-dropdown .dropdown-item:focus,
.app-horizontal-menu .app-top-menu-dropdown .dropdown-item.active {
    color: var(--text-strong);
    background: rgba(37, 99, 235, 0.08);
}

.app-horizontal-menu .app-top-menu-dropdown .dropdown-item:hover i,
.app-horizontal-menu .app-top-menu-dropdown .dropdown-item:focus i,
.app-horizontal-menu .app-top-menu-dropdown .dropdown-item.active i {
    color: var(--brand-accent);
    background: #ffffff;
}

.app-horizontal-menu .app-top-menu-dropdown .dropdown-divider {
    margin: 8px 4px;
    border-top-color: rgba(226, 232, 240, 0.95);
}

.app-horizontal-menu .candidate-top-menu-list {
    justify-content: flex-start;
}

.app-horizontal-menu #main {
    margin-top: 124px;
    margin-left: 0 !important;
}

.app-horizontal-menu #footer {
    margin-left: 0 !important;
}

.app-horizontal-menu.toggle-sidebar #main,
.app-horizontal-menu.toggle-sidebar #footer {
    margin-left: 0 !important;
}

@media (min-width: 1200px) {
    .app-horizontal-menu.toggle-sidebar #sidebar.app-top-menu {
        transform: translateY(-110%);
        opacity: 0;
        pointer-events: none;
    }

    .app-horizontal-menu.toggle-sidebar #main {
        margin-top: 72px;
    }
}

@media (max-width: 1399px) {
    .app-horizontal-menu #sidebar.app-top-menu {
        padding: 0 18px;
    }

    .app-horizontal-menu .app-top-menu-list {
        gap: 4px;
    }

    .app-horizontal-menu .app-top-menu-list .nav-link {
        padding: 0 10px;
    }
}

@media (max-width: 1199px) {
    .app-horizontal-menu #sidebar.app-top-menu {
        top: 72px;
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100vh - 72px);
        align-items: flex-start;
        padding: 12px;
        overflow-y: auto;
        transform: translateY(-115%);
        opacity: 0;
        pointer-events: none;
    }

    .app-horizontal-menu.toggle-sidebar #sidebar.app-top-menu {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .app-horizontal-menu .app-top-menu-list {
        flex-wrap: wrap;
        gap: 8px;
    }

    .app-horizontal-menu .app-top-menu-list .nav-link {
        height: 40px;
        padding: 0 11px;
    }

    .app-horizontal-menu .app-top-menu-dropdown {
        position: static !important;
        transform: none !important;
        width: 100%;
        max-width: none;
        margin-top: 6px !important;
    }

    .app-horizontal-menu .app-menu-panel-wide,
    .app-horizontal-menu .app-menu-panel-medium,
    .app-horizontal-menu .app-menu-panel-compact {
        width: 100%;
    }

    .app-horizontal-menu #main {
        margin-top: 72px;
    }
}

@media (max-width: 575px) {
    .app-horizontal-menu .header-brand-group {
        min-width: 0;
    }

    .app-horizontal-menu .app-top-menu-list {
        flex-direction: column;
        align-items: stretch;
    }

    .app-horizontal-menu .app-top-menu-list .nav-item,
    .app-horizontal-menu .app-top-menu-list .nav-link {
        width: 100%;
    }

    .app-horizontal-menu .app-top-menu-list .nav-link {
        justify-content: flex-start;
    }

    .app-horizontal-menu .app-menu-panel-wide.show,
    .app-horizontal-menu .app-menu-panel-medium.show {
        grid-template-columns: 1fr;
    }
}

/* Hard override the legacy sidebar rules so the main navigation stays horizontal. */
body.app-horizontal-menu .header-shortcuts {
    display: none !important;
}

#sidebar.app-top-menu {
    position: fixed !important;
    top: 72px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    padding: 0 28px !important;
    overflow: visible !important;
}

#sidebar-nav.app-top-menu-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    height: 100% !important;
    overflow: visible !important;
}

#sidebar-nav.app-top-menu-list > .nav-item {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

#sidebar-nav.app-top-menu-list > .nav-item > .nav-link {
    height: 38px !important;
    padding: 0 12px !important;
    border-radius: 8px !important;
}

body.app-horizontal-menu #main {
    margin-top: 126px !important;
}

body.app-horizontal-menu.toggle-sidebar #main {
    margin-top: 72px !important;
}

@media (max-width: 1199px) {
    body.app-horizontal-menu .header-shortcuts {
        display: none !important;
    }

    #sidebar.app-top-menu {
        height: auto !important;
        min-height: 0 !important;
        max-height: calc(100vh - 72px) !important;
        padding: 12px !important;
        overflow-y: auto !important;
    }

    #sidebar-nav.app-top-menu-list {
        flex-wrap: wrap !important;
        height: auto !important;
        overflow-x: visible !important;
    }

    body.app-horizontal-menu #main {
        margin-top: 72px !important;
    }
}

@media (max-width: 575px) {
    #sidebar-nav.app-top-menu-list {
        flex-direction: column !important;
        align-items: stretch !important;
    }
}

/* Single-row header: logo, menu and profile share the same line. */
body.app-horizontal-menu #header.header {
    height: 72px !important;
    min-height: 72px !important;
    padding: 0 24px !important;
    gap: 16px !important;
    overflow: visible !important;
}

body.app-horizontal-menu .header-page-meta,
body.app-horizontal-menu .header-shortcuts {
    display: none !important;
}

body.app-horizontal-menu .header-brand-group {
    flex: 0 0 auto;
    min-width: 260px;
}

body.app-horizontal-menu .header-menu-slot {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

body.app-horizontal-menu .header-nav {
    flex: 0 0 auto;
    margin-left: 0 !important;
}

body.app-horizontal-menu .header-menu-slot #sidebar.app-top-menu {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    overflow: visible !important;
    z-index: auto !important;
}

body.app-horizontal-menu .header-menu-slot #sidebar-nav.app-top-menu-list {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    overflow: visible !important;
}

body.app-horizontal-menu .header-menu-slot #sidebar-nav.app-top-menu-list > .nav-item {
    flex: 0 0 auto !important;
    margin: 0 !important;
}

body.app-horizontal-menu .header-menu-slot #sidebar-nav.app-top-menu-list > .nav-item > .nav-link {
    height: 40px !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
}

body.app-horizontal-menu .header-menu-slot .app-top-menu-dropdown {
    z-index: 1105;
}

body.app-horizontal-menu #main,
body.app-horizontal-menu.toggle-sidebar #main {
    margin-top: 72px !important;
    margin-left: 0 !important;
}

body.app-horizontal-menu #footer,
body.app-horizontal-menu.toggle-sidebar #footer {
    margin-left: 0 !important;
}

@media (max-width: 1499px) {
    body.app-horizontal-menu .header-brand-group {
        min-width: 220px;
    }

    body.app-horizontal-menu .app-brand {
        gap: 10px;
    }

    body.app-horizontal-menu .app-brand-kicker {
        display: none;
    }

    body.app-horizontal-menu .app-brand-copy strong {
        font-size: 20px;
    }

    body.app-horizontal-menu .header-menu-slot #sidebar-nav.app-top-menu-list > .nav-item > .nav-link {
        padding: 0 8px !important;
    }
}

@media (max-width: 1199px) {
    body.app-horizontal-menu .header-menu-slot {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        height: auto;
        max-height: calc(100vh - 72px);
        display: none;
        padding: 12px;
        overflow-y: auto;
        border-bottom: 1px solid rgba(226, 232, 240, 0.95);
        background: #ffffff;
        box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
        z-index: 995;
    }

    body.app-horizontal-menu.toggle-sidebar .header-menu-slot {
        display: block;
    }

    body.app-horizontal-menu .header-menu-slot #sidebar.app-top-menu {
        display: block !important;
    }

    body.app-horizontal-menu .header-menu-slot #sidebar-nav.app-top-menu-list {
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 6px !important;
    }

    body.app-horizontal-menu .header-menu-slot #sidebar-nav.app-top-menu-list > .nav-item,
    body.app-horizontal-menu .header-menu-slot #sidebar-nav.app-top-menu-list > .nav-item > .nav-link {
        width: 100% !important;
    }
}

@media (max-width: 767px) {
    body.app-horizontal-menu #header.header {
        padding: 0 12px !important;
        gap: 10px !important;
    }

    body.app-horizontal-menu .header-brand-group {
        min-width: 0;
    }

    body.app-horizontal-menu .app-brand-copy {
        display: none !important;
    }
}

/* Color polish for the single-row navigation. */
body.app-horizontal-menu {
    --menu-primary: #2563eb;
    --menu-primary-strong: #1d4ed8;
    --menu-cyan: #0891b2;
    --menu-green: #059669;
    --menu-rose: #e11d48;
    --menu-soft-blue: #eff6ff;
    --menu-soft-cyan: #ecfeff;
    --menu-soft-green: #ecfdf5;
}

body.app-horizontal-menu #header.header {
    border-bottom-color: rgba(147, 197, 253, 0.55);
    background:
        linear-gradient(90deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.94) 34%, rgba(236, 253, 245, 0.9));
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.08);
}

body.app-horizontal-menu .shell-icon-btn {
    color: var(--menu-primary) !important;
    border-color: rgba(37, 99, 235, 0.18);
    background: linear-gradient(180deg, #ffffff, var(--menu-soft-blue));
}

body.app-horizontal-menu .shell-icon-btn:hover,
body.app-horizontal-menu .shell-icon-btn:focus {
    color: #ffffff !important;
    border-color: var(--menu-primary);
    background: var(--menu-primary);
}

body.app-horizontal-menu .app-brand-copy strong {
    color: #0f172a;
}

body.app-horizontal-menu .app-brand-copy strong::after {
    content: "";
    display: block;
    width: 58px;
    height: 3px;
    margin-top: 5px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--menu-primary), var(--menu-cyan), var(--menu-green));
}

body.app-horizontal-menu .header-menu-slot #sidebar-nav.app-top-menu-list > .nav-item > .nav-link {
    color: #334155;
    border-color: rgba(148, 163, 184, 0.14) !important;
    background: rgba(255, 255, 255, 0.56);
}

body.app-horizontal-menu .header-menu-slot #sidebar-nav.app-top-menu-list > .nav-item > .nav-link i {
    color: #64748b;
    background: rgba(148, 163, 184, 0.12);
}

body.app-horizontal-menu .header-menu-slot #sidebar-nav.app-top-menu-list > .nav-item > .nav-link:hover,
body.app-horizontal-menu .header-menu-slot #sidebar-nav.app-top-menu-list > .nav-item > .nav-link:focus,
body.app-horizontal-menu .header-menu-slot #sidebar-nav.app-top-menu-list > .nav-item > .nav-link.show,
body.app-horizontal-menu .header-menu-slot #sidebar-nav.app-top-menu-list > .nav-item > .nav-link.active,
body.app-horizontal-menu .header-menu-slot #sidebar-nav.app-top-menu-list > .nav-item.dropdown.show > .nav-link {
    color: var(--menu-primary-strong);
    border-color: rgba(37, 99, 235, 0.28) !important;
    background: linear-gradient(180deg, #ffffff, var(--menu-soft-blue));
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
}

body.app-horizontal-menu .header-menu-slot #sidebar-nav.app-top-menu-list > .nav-item > .nav-link:hover i,
body.app-horizontal-menu .header-menu-slot #sidebar-nav.app-top-menu-list > .nav-item > .nav-link:focus i,
body.app-horizontal-menu .header-menu-slot #sidebar-nav.app-top-menu-list > .nav-item > .nav-link.show i,
body.app-horizontal-menu .header-menu-slot #sidebar-nav.app-top-menu-list > .nav-item > .nav-link.active i,
body.app-horizontal-menu .header-menu-slot #sidebar-nav.app-top-menu-list > .nav-item.dropdown.show > .nav-link i {
    color: #ffffff;
    background: linear-gradient(135deg, var(--menu-primary), var(--menu-cyan));
}

body.app-horizontal-menu .header-menu-slot #sidebar-nav.app-top-menu-list > .nav-item > .nav-link::before {
    background: linear-gradient(90deg, var(--menu-primary), var(--menu-cyan));
}

body.app-horizontal-menu .sidebar-link-badge,
body.app-horizontal-menu .header-shortcut-badge,
body.app-horizontal-menu .notification-counter {
    color: #ffffff;
    background: var(--menu-rose) !important;
}

body.app-horizontal-menu .header-nav .nav-icon {
    color: var(--menu-primary);
}

body.app-horizontal-menu .header-nav .nav-profile {
    border-color: rgba(37, 99, 235, 0.2);
    background: linear-gradient(180deg, #ffffff, var(--menu-soft-cyan));
    box-shadow: 0 8px 18px rgba(8, 145, 178, 0.1);
}

body.app-horizontal-menu .header-nav .nav-profile:hover,
body.app-horizontal-menu .header-nav .nav-profile:focus {
    border-color: rgba(8, 145, 178, 0.35);
    color: var(--menu-cyan);
}

body.app-horizontal-menu .header-nav .nav-profile img {
    border-color: rgba(8, 145, 178, 0.32);
}

body.app-horizontal-menu .header-menu-slot .app-top-menu-dropdown {
    border-color: rgba(37, 99, 235, 0.16);
    background:
        linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.98) 22%),
        #ffffff;
    box-shadow: 0 22px 44px rgba(37, 99, 235, 0.16);
}

body.app-horizontal-menu .header-menu-slot .app-top-menu-dropdown .dropdown-header {
    color: var(--menu-primary-strong);
}

body.app-horizontal-menu .header-menu-slot .app-top-menu-dropdown .dropdown-item i {
    color: var(--menu-cyan);
    background: var(--menu-soft-cyan);
}

body.app-horizontal-menu .header-menu-slot .app-top-menu-dropdown .dropdown-item:hover,
body.app-horizontal-menu .header-menu-slot .app-top-menu-dropdown .dropdown-item:focus,
body.app-horizontal-menu .header-menu-slot .app-top-menu-dropdown .dropdown-item.active {
    color: var(--menu-primary-strong);
    background: var(--menu-soft-blue);
}

body.app-horizontal-menu .header-menu-slot .app-top-menu-dropdown .dropdown-item:hover i,
body.app-horizontal-menu .header-menu-slot .app-top-menu-dropdown .dropdown-item:focus i,
body.app-horizontal-menu .header-menu-slot .app-top-menu-dropdown .dropdown-item.active i {
    color: #ffffff;
    background: var(--menu-green);
}
