:root {
    --ink: #10243d;
    --ink-soft: #4d6482;
    --paper: #f4f8fc;
    --card: #ffffff;
    --line: #d5e4f2;
    --navy: #07182c;
    --navy-mid: #0e2a4a;
    --blue: #1a6fd4;
    --blue-deep: #1257ad;
    --sky: #4aa3ef;
    --sky-soft: #e7f3fd;
    --danger: #b42318;
    --ok: #0b6f97;
    --shadow: 0 16px 40px rgba(7, 24, 44, 0.12);
    --sidebar: 248px;
    --sans: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    font-family: var(--sans);
    color: var(--ink);
    background:
        radial-gradient(880px 380px at 100% -8%, rgba(74, 163, 239, 0.22), transparent 62%),
        linear-gradient(180deg, #eef5fb 0%, var(--paper) 46%);
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); text-decoration: none; }
.req { color: var(--blue); margin-left: 3px; }

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}
.login-story {
    position: relative;
    overflow: hidden;
    color: #eaf3fb;
    background:
        radial-gradient(600px 360px at 85% 10%, rgba(74, 163, 239, 0.28), transparent 65%),
        linear-gradient(160deg, #0d2c52 0%, var(--navy) 60%, #0f3358 100%);
    padding: 44px 64px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.login-story::before {
    content: "";
    position: absolute;
    width: 560px;
    height: 560px;
    border: 64px solid rgba(74, 163, 239, 0.14);
    border-radius: 50%;
    right: -200px;
    bottom: -220px;
}
.login-story::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}
.story-brand, .story-copy, .story-foot { position: relative; z-index: 1; }
.story-brand {
    align-self: flex-start;
    background: #fff;
    border-radius: 14px;
    padding: 10px 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.story-brand img { display: block; width: 180px; height: auto; }
.story-copy { margin: auto 0; max-width: 560px; }
.story-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(74, 163, 239, 0.16);
    border: 1px solid rgba(74, 163, 239, 0.35);
    color: #cfe6fb;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.story-copy h1 {
    font-weight: 700;
    letter-spacing: -0.03em;
    font-size: clamp(34px, 3.6vw, 50px);
    line-height: 1.08;
    margin: 18px 0 14px;
    max-width: 16ch;
    color: #fff;
}
.story-copy p { max-width: 44ch; color: #bcd3ea; font-size: 17px; line-height: 1.55; margin: 0; }
.story-foot { color: #8eabc4; font-size: 13px; }

.login-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 28px 110px;
    background:
        radial-gradient(520px 320px at 100% 0%, rgba(74, 163, 239, 0.30), transparent 65%),
        linear-gradient(160deg, #cfe8fc 0%, #e9f5fe 45%, #ffffff 100%);
}
.login-card {
    width: min(430px, 100%);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 36px 34px 30px;
    box-shadow: 0 24px 60px rgba(7, 24, 44, 0.12);
}
.login-card-logo { display: none; margin-bottom: 20px; }
.login-card-logo img { display: block; width: 170px; height: auto; }
.login-card h2 { font-weight: 700; font-size: 30px; letter-spacing: -0.02em; margin: 0 0 6px; color: var(--navy-mid); }
.login-card .hint { margin-bottom: 26px; font-size: 15px; }
.login-field { margin-bottom: 16px; }
.login-field label { display: block; font-size: 13px; font-weight: 650; color: var(--ink); margin-bottom: 6px; }
.login-input { position: relative; display: flex; align-items: center; }
.login-input > .bi {
    position: absolute;
    left: 14px;
    color: var(--ink-soft);
    font-size: 16px;
    pointer-events: none;
}
.login-input input {
    width: 100%;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fbfe;
    padding: 0 44px 0 42px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.login-input input:focus {
    background: #fff;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(26, 111, 212, 0.14);
}
.login-input input:focus ~ .bi, .login-input:focus-within > .bi { color: var(--blue); }
.login-eye {
    position: absolute;
    right: 6px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
    display: grid;
    place-items: center;
}
.login-eye:hover { background: var(--sky-soft); color: var(--blue); }
.btn.login-submit {
    height: 46px;
    margin-top: 8px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 650;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
    box-shadow: 0 10px 22px rgba(26, 111, 212, 0.28);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn.login-submit:hover { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(26, 111, 212, 0.32); }
.btn.login-submit:disabled { opacity: 0.75; cursor: progress; transform: none; }
.login-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 18px 0 0;
    color: var(--ink-soft);
    font-size: 13px;
}
.login-secure .bi { color: var(--ok); }
.login-credit {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 26px;
    text-align: center;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.6;
}
.login-credit p { margin: 0; }
.login-credit strong { color: var(--ink); font-weight: 650; }
.login-credit a { color: var(--blue); font-weight: 600; text-decoration: none; }
.login-credit a:hover { text-decoration: underline; }
.login-credit a strong { color: inherit; }
.hint { color: var(--ink-soft); margin: 0 0 28px; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.field label, .check-line { font-size: 13px; font-weight: 600; letter-spacing: 0.01em; }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .field select, .field textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 14px;
    line-height: 1.35;
    outline: none;
}
.field input[type="file"] { font-size: 13px; }
.field textarea { min-height: 78px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(26, 111, 212, 0.14);
}
.btn {
    border: 0;
    border-radius: 8px;
    padding: 6px 12px;
    background: var(--blue);
    color: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn:hover { background: var(--blue-deep); }
.btn.block { width: 100%; padding: 8px 12px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: var(--danger); }

.app-shell { display: flex; min-height: 100vh; }
.sidebar {
    width: var(--sidebar);
    background: linear-gradient(180deg, #0b2340 0%, var(--navy) 100%);
    color: #e7f1fa;
    padding: 22px 14px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
}
.side-brand { padding: 4px 4px 22px; }
.side-logo {
    display: block;
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.side-logo img { display: block; width: 100%; height: auto; max-height: 64px; object-fit: contain; }
.side-brand small { color: #8ec8f5; letter-spacing: 0.16em; text-transform: uppercase; font-size: 11px; font-weight: 600; }
.side-brand strong { display: block; font-size: 22px; font-weight: 650; letter-spacing: -0.02em; margin-top: 4px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a, .side-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    color: #d6e6f4;
    background: transparent;
    border: 0;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 550;
    cursor: pointer;
    font: inherit;
}
.side-nav a i, .side-btn i { font-size: 16px; width: 18px; text-align: center; opacity: 0.92; }
.side-nav a:hover, .side-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.side-nav a.active { background: rgba(74, 163, 239, 0.24); color: #fff; box-shadow: inset 3px 0 0 var(--sky); }
.side-group { display: flex; flex-direction: column; gap: 2px; }
.side-group-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    color: #d6e6f4;
    background: transparent;
    border: 0;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 550;
    cursor: pointer;
    font: inherit;
}
.side-group-toggle i { font-size: 16px; width: 18px; text-align: center; opacity: 0.92; }
.side-group-toggle .side-chevron {
    margin-left: auto;
    width: auto;
    font-size: 12px;
    transition: transform 0.2s ease;
}
.side-group.open .side-group-toggle .side-chevron { transform: rotate(180deg); }
.side-group-toggle:hover,
.side-group-toggle.active { background: rgba(255, 255, 255, 0.08); color: #fff; }
.side-group.open > .side-group-toggle.active {
    background: rgba(74, 163, 239, 0.18);
    color: #fff;
    box-shadow: inset 3px 0 0 var(--sky);
}
.side-sub {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 2px 0 6px 12px;
}
.side-group.open > .side-sub { display: flex; }
.side-sub a {
    padding: 8px 12px 8px 28px;
    font-size: 13px;
    color: #b7cde0;
    border-radius: 8px;
}
.side-sub a:hover { color: #fff; }
.side-sub a.active {
    background: rgba(74, 163, 239, 0.28);
    color: #fff;
    box-shadow: inset 3px 0 0 var(--sky);
}
.workspace { flex: 1; min-width: 0; }
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px 0;
}
.crumb { color: var(--ink-soft); font-size: 13px; margin: 0; }
.topbar h1 { font-weight: 650; font-size: 26px; letter-spacing: -0.02em; margin: 2px 0 0; }
.who {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px 8px 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(7, 24, 44, 0.06);
}
.who strong { display: block; font-size: 14px; line-height: 1.2; }
.who .crumb { font-size: 12px; margin-top: 2px; }
.avatar {
    width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--sky-soft); color: var(--blue-deep); font-weight: 700;
    flex: 0 0 auto;
}
.page { padding: 18px 28px 40px; }
.flash {
    background: #eef6ff;
    border: 1px solid #c5ddf5;
    color: #16456f;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
}
.stat-grid, .split-2 { display: grid; gap: 16px; }
.stat-grid { grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; }
.split-2 { grid-template-columns: 1.4fr 0.8fr; }
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
.stat-card span { color: var(--ink-soft); font-size: 13px; }
.stat-card strong { display: block; font-size: 34px; font-weight: 650; letter-spacing: -0.03em; margin-top: 8px; color: var(--navy-mid); }
.stat-card em { font-style: normal; color: var(--blue); font-size: 13px; }
.toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin-bottom: 14px; flex-wrap: wrap; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters select { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: white; }
.table-wrap { overflow: auto; position: relative; min-height: 220px; }
.table-wrap.is-sk-loading { min-height: 280px; }
.table-wrap.is-sk-loading > table,
.table-wrap.is-sk-loading > .dataTables_wrapper {
    opacity: 0.18;
    pointer-events: none;
    filter: grayscale(0.15);
}
.table-sk {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 6;
    padding: 14px 12px;
    gap: 10px;
    background: linear-gradient(180deg, rgba(248, 251, 254, 0.92), rgba(248, 251, 254, 0.98));
    border-radius: 12px;
    overflow: hidden;
}
.table-wrap.is-sk-loading > .table-sk {
    display: grid;
    align-content: start;
}
.table-sk-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 12px;
    align-items: center;
    padding: 12px 10px;
    border: 1px solid #e4edf6;
    border-radius: 10px;
    background: #fff;
}
.table-sk-row .sk-line { height: 11px; min-width: 0; width: 100%; }
.table-sk .sk {
    background: linear-gradient(90deg, #e8eef5 25%, #f5f8fc 37%, #e8eef5 63%);
    background-size: 400% 100%;
}
.dataTables_wrapper .dataTables_processing {
    display: none !important;
}
.finance-summary.is-sk-loading .stat-value {
    min-height: 28px;
    display: flex;
    align-items: center;
}
.finance-summary .sk-num { width: 96px; height: 26px; }
.finance-summary.is-sk-loading .stat-income .sk,
.finance-summary.is-sk-loading .stat-expense .sk,
.finance-summary.is-sk-loading .stat-pending .sk,
.finance-summary.is-sk-loading .stat-box .sk {
    background: linear-gradient(90deg, rgba(255,255,255,0.28) 25%, rgba(255,255,255,0.5) 37%, rgba(255,255,255,0.28) 63%);
    background-size: 400% 100%;
}
.drawer-body.is-sk-loading,
.drawer-tab-panel.is-sk-loading,
[data-deployment-panel].is-sk-loading {
    position: relative;
    min-height: 220px;
}
.drawer-body.is-sk-loading > *:not(.drawer-sk),
.drawer-tab-panel.is-sk-loading > *:not(.drawer-sk),
[data-deployment-panel].is-sk-loading > *:not(.drawer-sk) {
    opacity: 0.12;
    pointer-events: none;
}
.drawer-sk {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 4;
    padding: 16px;
    gap: 12px;
    background: #f8fbfe;
    overflow: auto;
}
.drawer-body.is-sk-loading > .drawer-sk,
.drawer-tab-panel.is-sk-loading > .drawer-sk,
[data-deployment-panel].is-sk-loading > .drawer-sk {
    display: grid;
    align-content: start;
}
.drawer-sk .sk-block {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #e4edf6;
    border-radius: 12px;
    background: #fff;
}
.drawer-sk .sk {
    background: linear-gradient(90deg, #e8eef5 25%, #f5f8fc 37%, #e8eef5 63%);
    background-size: 400% 100%;
}
.drawer-head .sk {
    background: linear-gradient(90deg, #e8eef5 25%, #f5f8fc 37%, #e8eef5 63%);
    background-size: 400% 100%;
}
table.dataTable { width: 100% !important; border-collapse: collapse; }
table.dataTable thead th {
    text-align: left;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line);
    padding: 7px 8px;
}
table.dataTable tbody td { padding: 6px 8px; border-bottom: 1px solid #e8f1f8; vertical-align: middle; font-size: 14px; line-height: 1.3; }
.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; background: white; font-size: 14px;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--blue) !important;
    color: #fff !important;
    border-color: var(--blue) !important;
}
.pill { display: inline-flex; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 650; white-space: nowrap; border: 0; font-family: inherit; line-height: 1.2; }
.pill-click { cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.pill-click:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(7, 24, 44, 0.12); }
.pill-click:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pill-on { background: #e5f4fb; color: var(--ok); }
.pill-off { background: #fdecec; color: var(--danger); }
.pill-status-1 { background: #e8f0fe; color: #1a56db; } /* Interview Lineup */
.pill-status-2 { background: #f3e8ff; color: #7c3aed; } /* Shortlisted */
.pill-status-8 { background: #dcfce7; color: #15803d; } /* Selected */
.pill-status-3 { background: #fee2e2; color: #b91c1c; } /* Rejected */
.pill-status-4 { background: #e0f2fe; color: #0369a1; } /* Documentation */
.pill-status-5 { background: #ffedd5; color: #c2410c; } /* Physical Test */
.pill-status-6 { background: #fef9c3; color: #a16207; } /* Apply For Visa */
.pill-status-7 { background: #ccfbf1; color: #0f766e; } /* Deployed */
.cell-stack { display: grid; gap: 2px; line-height: 1.25; }
.cell-date { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.cell-source { font-size: 13px; color: var(--ink); font-weight: 600; }
.link-btn {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    color: var(--blue);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}
.link-btn:hover { text-decoration: underline; color: var(--blue-deep); }
.link-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.link-btn .cell-stack { text-align: left; }
.link-btn .cell-source { color: var(--blue); }
.link-btn:hover .cell-source { color: var(--blue-deep); }

.view-timeline { margin-top: 18px; }
.view-timeline[hidden] { display: none !important; }
.view-timeline > .info-section { margin: 0 0 10px; padding: 0; }
.timeline-list { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 2px solid #d7e6f5; }
.timeline-item { position: relative; padding: 0 0 16px 16px; }
.timeline-item:last-child { padding-bottom: 2px; }
.timeline-dot {
    position: absolute;
    left: -17px;
    top: 12px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blue);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #cfe3f7;
}
.timeline-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
}
.timeline-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.timeline-head strong { font-size: 14px; color: var(--navy-mid); }
.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 12px;
    color: var(--ink-soft);
    font-weight: 600;
    margin-bottom: 10px;
}
.timeline-changes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.timeline-changes li {
    display: grid;
    gap: 4px;
    padding: 8px 10px;
    background: #f7fbfe;
    border: 1px solid #e6f0f8;
    border-radius: 8px;
}
.tl-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.tl-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    font-size: 13px;
    color: var(--ink);
    line-height: 1.35;
}
.tl-from, .tl-to { white-space: nowrap; }
.tl-arrow { color: var(--blue); font-weight: 700; }
.tl-to { font-weight: 700; color: var(--navy-mid); }
.tl-note { font-size: 13px; color: var(--ink); font-weight: 600; }
.timeline-remark {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #d9e7f3;
}
.timeline-remark p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--ink);
    line-height: 1.45;
    word-break: break-word;
}
.text-btn {
    border: 0; background: transparent; color: var(--blue); padding: 0; font-weight: 650; cursor: pointer;
    display: inline-flex; align-items: center; gap: 4px;
}
.action-btns { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
table.dataTable th.actions-col, table.dataTable td.actions-col { width: 96px; min-width: 96px; text-align: right; }
.icon-action {
    width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line);
    background: #fff; color: var(--blue-deep); display: inline-grid; place-items: center;
    cursor: pointer; padding: 0; text-decoration: none;
}
.icon-action:hover { background: var(--sky-soft); border-color: #b9d6f2; }
.icon-action.danger { color: var(--danger); }
.icon-action.danger:hover { background: #fdecec; border-color: #f3c4c4; }

.drawer {
    position: fixed;
    inset: 0;
    z-index: 40;
    pointer-events: none;
}
.drawer[hidden] { display: none !important; }
.drawer.is-open { pointer-events: auto; }
.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 24, 44, 0.46);
    opacity: 0;
    transition: opacity 0.28s ease;
}
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: min(420px, 100%);
    max-height: 100%;
    background: #f8fbfe; display: flex; flex-direction: column;
    box-shadow: -20px 0 60px rgba(7, 24, 44, 0.18);
    transform: translateX(104%);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
    will-change: transform;
    pointer-events: auto;
}
.drawer.is-open .drawer-panel { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
    .drawer-backdrop,
    .drawer-panel { transition: none; }
}
.drawer-head { flex: 0 0 auto; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); background: #f8fbfe; }
.drawer-head h2 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.eyebrow { margin: 0; letter-spacing: 0.14em; text-transform: uppercase; font-size: 11px; color: var(--blue); font-weight: 650; }
.icon-btn { border: 0; background: var(--sky-soft); color: var(--navy-mid); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; }
.drawer-body { padding: 0; overflow: auto; flex: 1 1 auto; min-height: 0; display: block; background: #f8fbfe; }
#pageDrawerSlot { width: 100%; }
.drawer-form { display: block; width: 100%; }
.drawer-form[hidden],
#viewPanel[hidden],
#pageDrawerSlot[hidden],
#passwordForm[hidden] { display: none !important; }
.drawer-form-scroll { padding: 14px 16px 8px; }
.drawer-form-foot, .form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 10px 16px 16px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}
.drawer-form-foot {
    position: relative;
    z-index: 2;
}
.form-actions {
    margin: 18px -20px -20px;
    border-radius: 0 0 16px 16px;
}
.toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}
.toggle input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.toggle-ui {
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: #c5d4e4;
    position: relative;
    flex: 0 0 auto;
    transition: background 0.15s ease;
}
.toggle-ui::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(7, 24, 44, 0.28);
    transition: transform 0.15s ease;
}
.toggle input:checked + .toggle-ui { background: var(--blue); }
.toggle input:checked + .toggle-ui::after { transform: translateX(16px); }
.toggle input:focus-visible + .toggle-ui { box-shadow: 0 0 0 3px rgba(26, 111, 212, 0.22); }
.select2-container--default .select2-selection--single {
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--ink);
    line-height: 30px;
    padding-left: 10px;
    padding-right: 28px;
    font-size: 14px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 30px; right: 4px; }
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(26, 111, 212, 0.14);
}
.select2-dropdown.app-select-drop, .select2-dropdown {
    border: 1px solid #c5daf0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(7, 24, 44, 0.14);
    font-family: var(--sans);
}
.select2-container--open { z-index: 80; }
.select2-search--dropdown { padding: 8px; background: #f4f9fd; }
.select2-search--dropdown .select2-search__field {
    border: 1px solid var(--line) !important;
    border-radius: 8px;
    padding: 6px 8px;
    font-family: var(--sans);
    font-size: 14px;
    outline: none;
}
.select2-search--dropdown .select2-search__field:focus { border-color: var(--blue) !important; }
.select2-results__option { padding: 7px 10px; font-size: 14px; }
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: var(--blue);
    color: #fff;
}
.select2-container--default .select2-results__option--selected {
    background: var(--sky-soft);
    color: var(--navy-mid);
}
.filters .select2-container { min-width: 180px; }
.file-note { color: var(--ink-soft); font-size: 13px; }
.toast-stack { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--navy); color: white; border-radius: 12px; padding: 12px 14px; max-width: 360px; box-shadow: var(--shadow); }
.toast.is-danger { background: var(--danger); }
.toast.is-success { background: var(--blue); }
.submit-error { margin: 0; padding-left: 18px; }
.confirm-box { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(7, 24, 44, 0.35); }
.confirm-box[hidden] { display: none; }
.confirm-card { width: min(420px, calc(100% - 32px)); background: white; border-radius: 16px; padding: 22px; }
.perm-table { width: 100%; border-collapse: collapse; }
.perm-table th, .perm-table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
.note-card p { color: var(--ink-soft); line-height: 1.6; }
.back-link { display: inline-flex; margin-bottom: 14px; font-weight: 600; }
.form-card { overflow: hidden; }
.info-grid {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
}
.info-grid > div {
    display: grid;
    gap: 2px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8f1f8;
    min-width: 0;
}
.info-grid .info-section {
    grid-column: 1 / -1;
    margin: 6px 0 0;
    padding: 8px 0 4px;
    border-bottom: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
}
.info-grid .info-full { grid-column: 1 / -1; }
.info-grid dt { font-size: 11px; font-weight: 650; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.info-grid dd { margin: 0; font-size: 14px; color: var(--ink); line-height: 1.35; word-break: break-word; }
@media (max-width: 520px) {
    .info-grid { grid-template-columns: 1fr; }
}

.doc-builder { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #f7fbfe; }
.doc-add-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; }
.doc-add-row input[type="text"], .doc-add-row input[type="file"] {
    width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: #fff; font-size: 14px;
}
.doc-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.doc-list li {
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 14px;
}
.doc-list li strong { font-weight: 650; }
.doc-list li a { font-weight: 600; }
.doc-view-list { margin: 0; padding-left: 18px; }
.doc-view-list li { margin: 2px 0; }
@media (max-width: 720px) {
    .doc-add-row { grid-template-columns: 1fr; }
}
.form-grid { display: grid; grid-template-columns: minmax(0, 560px) auto; justify-content: start; gap: 16px 28px; align-items: end; }
.perm-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); align-items: start; gap: 12px; margin-top: 6px; }
.perm-group { border: 1px solid var(--line); border-radius: 14px; background: #f7fbfe; padding: 14px 14px 8px; }
.perm-group-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.perm-group-head h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--navy-mid); }
.select-all { font-size: 13px; font-weight: 600; color: var(--blue); display: flex; gap: 6px; align-items: center; }
.perm-grid { display: grid; gap: 2px; }
.perm-grid label { display: flex; gap: 10px; align-items: center; justify-content: flex-start; padding: 8px 2px; font-size: 15px; font-weight: 500; }
.perm-grid input { width: 16px; height: 16px; margin: 0; flex: 0 0 auto; }
@media (max-width: 980px) {
    .login-shell, .stat-grid, .split-2, .form-grid { grid-template-columns: 1fr; }
    .login-story { display: none; }
    .login-panel { min-height: 100vh; padding: 32px 18px 110px; }
    .login-card-logo { display: block; }
    .page, .topbar { padding-left: 16px; padding-right: 16px; }
}

.dash-board, #dashApp { display: grid; gap: 16px; }

/* Skeleton loading */
.sk {
    display: inline-block;
    background: linear-gradient(90deg, rgba(255,255,255,0.22) 25%, rgba(255,255,255,0.4) 37%, rgba(255,255,255,0.22) 63%);
    background-size: 400% 100%;
    animation: skShine 1.2s ease-in-out infinite;
    border-radius: 8px;
    vertical-align: middle;
}
.sk-stack .sk,
.dash-remind-card .sk,
.dash-status-card .sk {
    background: linear-gradient(90deg, #e8eef5 25%, #f5f8fc 37%, #e8eef5 63%);
    background-size: 400% 100%;
}
.dash-recruit-banner .sk,
.dash-summary .sk {
    background: linear-gradient(90deg, rgba(255,255,255,0.22) 25%, rgba(255,255,255,0.42) 37%, rgba(255,255,255,0.22) 63%);
    background-size: 400% 100%;
}
.sk-num { width: 72px; height: 28px; }
.sk-line { width: 100%; height: 12px; }
.sk-line.sk-short { width: 46%; }
.sk-line.sk-mid { width: 64%; }
.sk-pill { width: 88px; height: 22px; border-radius: 999px; }
.sk-avatar { width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto; }
.sk-stack { display: grid; gap: 10px; padding: 4px 0; }
.sk-card, .sk-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e4edf6;
    border-radius: 12px;
    background: #fff;
}
.sk-card { flex-wrap: wrap; }
.sk-card .sk-line { flex: 1 1 140px; }
.sk-row { justify-content: space-between; }
.dash-summary.is-loading .stat-card strong { min-height: 34px; display: flex; align-items: center; }
.dash-kpi.is-loading strong { min-height: 24px; display: flex; align-items: center; }
.dash-fade-in { animation: dashFadeIn 0.35s ease; }
@keyframes skShine {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}
@keyframes dashFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .sk { animation: none; }
    .dash-fade-in { animation: none; }
}
#dashTotals.stat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 0; }
.dash-summary .stat-card {
    position: relative;
    overflow: hidden;
    border: 0;
    box-shadow: 0 10px 22px rgba(14, 42, 74, 0.14);
}
.dash-summary .stat-card::after {
    content: "";
    position: absolute;
    right: -26px;
    bottom: -34px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}
.dash-summary .stat-card span { color: rgba(255, 255, 255, 0.82); font-weight: 600; }
.dash-summary .stat-card strong { color: #fff; }
.dash-summary .stat-card em { color: rgba(255, 255, 255, 0.85); }
.dash-sum-mis { background: #1a6fd4; }
.dash-sum-deployed { background: #1e40af; }
.dash-sum-bucket { background: #2b4fc7; }
.dash-sum-client { background: #0e3d78; }
.dash-sum-agent { background: #0b7fa8; }
.dash-card h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.dash-head { display: flex; justify-content: space-between; gap: 12px 20px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.dash-head > div:first-child { min-width: 180px; }
.dash-sub, .dash-note, .dash-loading, .dash-empty { margin: 2px 0 0; color: var(--ink-soft); font-size: 13px; }
.dash-empty { padding: 12px 4px; }
.dash-note { margin-top: 8px; }
.dash-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; flex: 1 1 280px; }
.dash-filters input[type="search"],
.dash-filters input[type="date"],
.dash-filters select {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 7px 10px;
    background: #fff;
    font-size: 14px;
}
.dash-filters input[type="search"] { min-width: min(220px, 100%); }
.dash-custom { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dash-custom[hidden] { display: none !important; }
.dash-row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.dash-row-2 > .dash-card, .dash-right-stack { min-width: 0; }
.dash-right-stack { display: grid; gap: 16px; align-content: start; }
.dash-recruit-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #b7d3ef;
    background: #f3f8ff;
    box-shadow: 0 12px 28px rgba(18, 87, 173, 0.1);
}
.dash-recruit-banner {
    position: relative;
    overflow: hidden;
    padding-bottom: 4px;
    background: #1257ad;
}
.dash-recruit-banner::after {
    content: "";
    position: absolute;
    inset: auto -40px -50px auto;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 28px solid rgba(255, 255, 255, 0.07);
    pointer-events: none;
}
.dash-recruit-top {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 18px 18px 12px;
}
.dash-recruit-title { display: flex; gap: 12px; align-items: center; min-width: 0; }
.dash-recruit-title h2 { color: #fff; }
.dash-recruit-title .dash-sub { color: #cfe4fb; }
.dash-recruit-mark {
    width: 46px; height: 46px; border-radius: 14px; flex: 0 0 auto;
    display: grid; place-items: center;
    background: #4aa3ef;
    color: #fff; font-size: 20px;
    box-shadow: 0 8px 18px rgba(7, 24, 44, 0.22);
}
.dash-recruit-filters { flex: 1 1 260px; }
.dash-recruit-filters input[type="search"],
.dash-recruit-filters select,
.dash-recruit-filters input[type="date"] {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 16px rgba(7, 24, 44, 0.12);
}
.dash-kpi {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 0 18px 14px;
}
.dash-kpi-item {
    border-radius: 14px;
    padding: 11px 12px;
    border: 1px solid transparent;
    box-shadow: 0 8px 18px rgba(7, 24, 44, 0.12);
}
.dash-kpi-item span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.dash-kpi-item strong {
    display: block;
    margin-top: 4px;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.dash-kpi-total { background: #ffffff; }
.dash-kpi-total span { color: #1a5fb4; }
.dash-kpi-total strong { color: #0b2f57; }
.dash-kpi-recruiter { background: #0e2a4a; }
.dash-kpi-recruiter span { color: #9fc8f0; }
.dash-kpi-recruiter strong { color: #fff; }
.dash-kpi-agent { background: #4aa3ef; }
.dash-kpi-agent span { color: #0b2f57; }
.dash-kpi-agent strong { color: #0b2f57; }
.dash-kpi-people { background: #dcecff; }
.dash-kpi-people span { color: #1257ad; }
.dash-kpi-people strong { color: #0b2f57; }
.dash-recruit-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 18px 10px;
    background: #dcecff;
    border-bottom: 1px solid #b7d3ef;
}
.dash-tab {
    border: 1px solid #b7d3ef;
    background: #fff;
    color: #3d6796;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.dash-tab em {
    font-style: normal;
    margin-left: 6px;
    color: #1a6fd4;
}
.dash-tab.is-active {
    background: #1257ad;
    border-color: #1257ad;
    color: #fff;
    box-shadow: 0 6px 14px rgba(18, 87, 173, 0.25);
}
.dash-tab.is-active em { color: #cfe4fb; }
.dash-recruit-body {
    flex: 1 1 auto;
    min-height: 320px;
    padding: 14px;
    background: #f3f8ff;
}
.dash-person-list { display: grid; gap: 10px; }
.dash-person-card {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 12px 12px 10px;
    border: 1px solid #c9def4;
    border-left: 4px solid #1a6fd4;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 14px rgba(18, 87, 173, 0.07);
}
.dash-person-card:hover {
    border-color: #7eb0e4;
    box-shadow: 0 10px 22px rgba(18, 87, 173, 0.14);
}
.dash-person-main { display: flex; gap: 12px; min-width: 0; flex: 1; }
.dash-avatar {
    width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
    display: grid; place-items: center;
    font-size: 13px; font-weight: 800; letter-spacing: 0.02em;
    box-shadow: 0 6px 12px rgba(18, 87, 173, 0.16);
}
.dash-avatar-recruiter { background: #1257ad; color: #fff; }
.dash-avatar-agent { background: #4aa3ef; color: #0b2f57; }
.dash-person-copy { min-width: 0; }
.dash-person-copy strong { display: block; font-size: 14px; line-height: 1.25; color: #0e2a4a; }
.dash-person-sub { display: block; color: #4d6482; font-size: 12px; margin-top: 2px; }
.dash-person-total {
    text-align: center;
    flex: 0 0 auto;
    min-width: 62px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #1257ad;
    box-shadow: 0 6px 12px rgba(18, 87, 173, 0.22);
}
.dash-person-total span {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #cfe4fb;
}
.dash-person-total b {
    display: block;
    margin-top: 2px;
    font-size: 22px;
    line-height: 1;
    color: #fff;
    letter-spacing: -0.03em;
}
.dash-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dash-pills .pill em {
    font-style: normal;
    margin-left: 4px;
    opacity: 0.92;
}
.dash-remind-card,
.dash-status-card {
    padding: 0;
    overflow: hidden;
    border: 1px solid #b7d3ef;
    background: #fff;
    box-shadow: 0 10px 24px rgba(18, 87, 173, 0.08);
}
.dash-widget-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
}
.dash-widget-head h2 { color: #fff; }
.dash-widget-head .dash-sub { color: rgba(255, 255, 255, 0.8); }
.dash-widget-mark {
    width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
    display: grid; place-items: center;
    font-size: 18px; color: #fff;
}
.dash-remind-head { background: #0e3d78; }
.dash-remind-head .dash-widget-mark { background: #1a6fd4; }
.dash-status-head { background: #1a6fd4; }
.dash-status-head .dash-widget-mark { background: #0e3d78; }
#dashRemindBody { padding: 4px 8px 12px; background: #f3f8ff; }
#dashStatusBody { padding: 14px 16px 16px; background: #f3f8ff; }
.dash-remind-card .dash-table th { background: #dcecff; color: #1257ad; border-bottom-color: #b7d3ef; }
.dash-remind-card .dash-table td { background: #fff; border-bottom-color: #e1edf9; }
.dash-remind-card .dash-row-today td { background: #fff4d6; }
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th {
    text-align: left;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line);
    padding: 8px 10px;
    font-weight: 700;
}
.dash-table td { padding: 10px; border-bottom: 1px solid #e8f1f8; vertical-align: middle; font-size: 14px; }
.dash-status-list { display: grid; gap: 8px; }
.dash-status-row {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 9px 11px; border-radius: 12px;
    background: #fff;
    border: 1px solid #c9def4;
}
.dash-status-row strong { font-size: 18px; color: #0e2a4a; }
.dash-status-total {
    background: #0e3d78;
    border-color: #0e3d78;
    color: #fff;
    font-weight: 700;
}
.dash-status-total span { color: #d7ebff; }
.dash-status-total strong { color: #fff; }
.dash-remind-wrap { overflow: auto; max-height: 560px; }
.dash-remind th:last-child, .dash-route { text-align: right; font-weight: 700; letter-spacing: 0.01em; }
.dash-row-today td { background: #fff8e6; }
.dash-flight { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 700; white-space: nowrap; }
.dash-flight i {
    width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
    background: #1a6fd4; color: #fff; font-size: 14px;
}
.dash-person, .dash-due { display: grid; gap: 2px; line-height: 1.25; }
.dash-person strong, .dash-due strong { font-size: 14px; }
.dash-person span, .dash-due span { color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.dash-day {
    display: inline-flex; align-items: center; border-radius: 999px;
    padding: 4px 10px; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.dash-day-today { background: #f6c453; color: #6b4a00; }
.dash-day-soon { background: #b7ebc9; color: #146c43; }
@media (max-width: 1100px) {
    .dash-row-2 { grid-template-columns: 1fr; }
    .dash-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #dashTotals.stat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    #dashTotals .stat-card { grid-column: span 2; }
    #dashTotals .stat-card:nth-child(n+4) { grid-column: span 3; }
}
@media (max-width: 640px) {
    #dashTotals.stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #dashTotals .stat-card, #dashTotals .stat-card:nth-child(n+4) { grid-column: span 1; }
    #dashTotals .stat-card:last-child { grid-column: 1 / -1; }
}

.toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.drawer-panel.drawer-wide { width: min(720px, 100%); }
.drawer-panel.drawer-view { width: min(760px, 100%); background: #eef4fa; }
.drawer-panel.drawer-view .drawer-head { background: #fff; }
.drawer-panel.drawer-view .drawer-body { background: #eef4fa; }
.view-scroll { padding: 16px 18px 10px; }
.view-board { display: grid; gap: 14px; }
.view-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(7, 24, 44, 0.05);
}
.view-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    background: linear-gradient(180deg, #f7fbfe 0%, #eef6fc 100%);
    border-bottom: 1px solid var(--line);
    color: var(--navy-mid);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.view-card-head-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.view-card-head .bi {
    color: var(--blue);
    font-size: 15px;
}
.view-card-meta {
    font-size: 11px;
    font-weight: 550;
    color: var(--ink-soft);
    letter-spacing: 0;
    text-align: right;
    line-height: 1.35;
    max-width: 55%;
}
.view-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}
.view-item {
    padding: 12px 14px;
    border-right: 1px solid #eef3f8;
    border-bottom: 1px solid #eef3f8;
    min-width: 0;
}
.view-item:nth-child(3n) { border-right: 0; }
.view-item-full {
    grid-column: 1 / -1;
    border-right: 0;
}
.view-label {
    font-size: 11px;
    font-weight: 650;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.view-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
    word-break: break-word;
}
.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
}
.field-grid .field { min-width: 0; }
@media (max-width: 900px) {
    .drawer-panel.drawer-view { width: min(640px, 100%); }
    .view-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .view-item:nth-child(3n) { border-right: 1px solid #eef3f8; }
    .view-item:nth-child(2n) { border-right: 0; }
    .view-card-head { flex-direction: column; align-items: flex-start; }
    .view-card-meta { text-align: left; max-width: 100%; }
}
@media (max-width: 720px) {
    .drawer-panel.drawer-wide,
    .drawer-panel.drawer-view { width: 100%; }
    .field-grid { grid-template-columns: 1fr; }
    .view-card-grid { grid-template-columns: 1fr; }
    .view-item { border-right: 0; }
}
.upload-notes {
    background: #eef6ff;
    border: 1px solid #c5ddf5;
    color: #16456f;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 13px;
}
.upload-notes ul { margin: 8px 0 0; padding-left: 18px; }
.upload-notes li { margin: 4px 0; }
.upload-result {
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 12px 14px;
}
.upload-summary { margin-bottom: 8px; font-size: 14px; }
.upload-errors { max-height: 240px; overflow: auto; font-size: 13px; }
.upload-errors ul { margin: 6px 0 0; padding-left: 18px; color: #8a1f1f; }
.upload-errors li { margin: 3px 0; }
.file-note { margin: 4px 0 0; font-size: 12px; color: var(--ink-soft); }


/* -- Finance Module -------------------------------------------- */
.finance-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    padding: 0 16px 14px;
    box-sizing: border-box;
}
.finance-summary .stat-box {
    min-width: 0;
    width: 100%;
    padding: 10px 14px;
}
.finance-summary .stat-label {
    font-size: 11px;
    margin-bottom: 2px;
}
.finance-summary .stat-value {
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
}
@media (max-width: 720px) {
    .finance-summary { grid-template-columns: 1fr; }
}
.deployed-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    flex-wrap: nowrap;
    align-items: stretch;
}
.deployed-summary .stat-box {
    min-width: 0;
    padding: 10px 12px;
}
.deployed-summary .stat-label {
    font-size: 11px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.deployed-summary .stat-value {
    font-size: 14px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 1100px) {
    .deployed-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .deployed-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .deployed-summary { grid-template-columns: 1fr; }
}
.finance-report-wrap {
    padding: 0 16px 16px;
}
.finance-report-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}
.finance-report-table thead th {
    background: #f3f8fd;
    color: var(--navy-mid);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
    text-align: left;
}
.finance-report-table tbody td,
.finance-report-table tfoot th {
    padding: 11px 14px;
    border-bottom: 1px solid #eef3f8;
    font-size: 14px;
    color: var(--ink);
    vertical-align: middle;
    text-align: left;
}
.finance-report-table tbody tr:nth-child(even) td { background: #fafcfe; }
.finance-report-table tbody tr:hover td { background: #f0f7fc; }
.finance-report-table tfoot th {
    background: #eef5fb;
    border-bottom: 0;
    font-weight: 700;
}
.finance-report-table .col-month { text-align: left; width: 28%; }
.finance-report-table .col-num,
.finance-report-table th.col-num,
.finance-report-table td.col-num,
.finance-report-table .dt-right { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.finance-report-table .dt-left { text-align: left !important; }
.finance-report-table .is-pos { color: #1f7a3d; font-weight: 650; }
.finance-report-table .is-neg { color: #b42318; font-weight: 650; }
.finance-report-table .is-pending { color: #c48a00; font-weight: 650; }
.finance-report-table .empty-row td {
    text-align: center;
    color: var(--ink-soft);
    padding: 28px 14px;
}
.deployed-report-wrap .dataTables_wrapper .dataTables_filter {
    float: right;
    margin-bottom: 10px;
}
.deployed-report-wrap .dataTables_wrapper .dataTables_length {
    float: left;
    margin-bottom: 10px;
}
.deployed-report-wrap .dataTables_wrapper .dataTables_filter input {
    width: min(320px, 70vw);
    margin-left: 8px;
}
.deployed-report-wrap .dataTables_wrapper .dataTables_info,
.deployed-report-wrap .dataTables_wrapper .dataTables_paginate {
    margin-top: 12px;
}
.deployed-report-table tfoot .col-total-label { text-align: left !important; }
.finance-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}
.finance-nav a {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 650;
}
.finance-nav a:hover { border-color: var(--sky); color: var(--blue); }
.finance-nav a.active {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}
.candidate-picker { display: grid; gap: 8px; max-width: 420px; }
.candidate-search-wrap { position: relative; }
.candidate-search-input {
    width: 100%;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    font-family: var(--sans);
    font-size: 14px;
    color: var(--ink);
    background: #fff;
    box-sizing: border-box;
}
.candidate-search-input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(26, 111, 212, 0.14);
}
.candidate-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 90;
    max-height: 220px;
    overflow: auto;
    background: #fff;
    border: 1px solid #c5daf0;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(7, 24, 44, 0.14);
}
.candidate-results[hidden] { display: none !important; }
.candidate-result {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 9px 12px;
    font-family: var(--sans);
    font-size: 14px;
    color: var(--ink);
    cursor: pointer;
}
.candidate-result:hover,
.candidate-result.is-active { background: var(--blue); color: #fff; }
.candidate-results-empty {
    padding: 10px 12px;
    font-size: 13px;
    color: var(--ink-soft);
}
.candidate-chips {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
}
.candidate-chips.has-chips { display: flex; }
.candidate-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 6px 8px 6px 10px;
    border-radius: 999px;
    background: #eef6ff;
    border: 1px solid #c5ddf5;
    color: #16456f;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}
.candidate-chip-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 280px;
}
.candidate-chip-x {
    border: 0;
    background: rgba(22, 69, 111, 0.12);
    color: #16456f;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0;
}
.candidate-chip-x:hover { background: #b42318; color: #fff; }
.stat-box { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 10px; padding: 12px 18px; min-width: 160px; }
.stat-box .stat-label { font-size: 12px; color: #6c757d; margin-bottom: 4px; }
.stat-box .stat-value { font-size: 20px; font-weight: 700; color: #212529; }
.stat-income { border-left: 4px solid #28a745; }
.stat-income .stat-value { color: #28a745; }
.stat-expense { border-left: 4px solid #dc3545; }
.stat-expense .stat-value { color: #dc3545; }
.stat-danger { border-left: 4px solid #dc3545; }
.stat-danger .stat-value { color: #dc3545; }

.deployment-process-block {
    margin: 0 0 10px;
    padding: 10px 12px 8px;
    border: 1px solid #d7e6f5;
    border-radius: 12px;
    background: #f7fbff;
}
.deployment-status-timeline {
    margin-top: 4px;
}
.deployment-process-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.deployment-process-block .info-section {
    margin: 0;
}
.deployment-process-head .btn {
    flex: 0 0 auto;
    padding: 6px 12px;
    font-size: 13px;
}
.deployment-process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 10px;
}
.deployment-process-remark {
    grid-column: 1 / -1;
}
.deployment-process-remark textarea {
    min-height: 52px;
    resize: vertical;
}
.deployment-process-block .view-timeline {
    margin-top: 6px;
}
@media (max-width: 720px) {
    .deployment-process-grid { grid-template-columns: 1fr; }
}
.deployment-finance-grid {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 0 10px;
}
.deployment-finance-grid > .field:nth-child(1) { grid-column: 1 / 4; }  /* Type */
.deployment-finance-grid > .field:nth-child(2) { grid-column: 4 / 7; }  /* Category */
.deployment-finance-grid > .field:nth-child(3) { grid-column: 7 / 11; } /* Date */
.deployment-finance-ref { grid-column: 1 / 4; }
.deployment-finance-ref[hidden] { display: none !important; }
.deployment-finance-amount { grid-column: 1 / 4; }  /* ~30% when Income */
.deployment-finance-note { grid-column: 4 / 11; }   /* rest when Income */
.deployment-finance-grid.is-expense .deployment-finance-amount { grid-column: 4 / 7; }
.deployment-finance-grid.is-expense .deployment-finance-note { grid-column: 7 / 11; }
.deployment-finance-note textarea {
    min-height: 52px;
    resize: vertical;
}
.expense-ref-input {
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #0f2744 !important;
    background: #eef5fb !important;
}
.deployment-details-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0 10px;
}
.deployment-details-grid > .field:nth-child(1),
.deployment-details-grid > .field:nth-child(2),
.deployment-details-grid > .field:nth-child(3) {
    grid-column: span 2;
}
.deployment-details-grid > .field:nth-child(4),
.deployment-details-grid > .field:nth-child(5),
.deployment-details-span2 {
    grid-column: span 3;
}
.deployment-details-remark {
    grid-column: 1 / -1;
}
.deployment-details-remark textarea {
    min-height: 52px;
    resize: vertical;
}
.deployment-form-foot {
    margin: 8px -16px 0;
    border-bottom: 0;
    padding-top: 8px;
}
@media (max-width: 720px) {
    .deployment-finance-grid,
    .deployment-details-grid { grid-template-columns: 1fr; }
    .deployment-finance-grid > .field:nth-child(1),
    .deployment-finance-grid > .field:nth-child(2),
    .deployment-finance-grid > .field:nth-child(3),
    .deployment-finance-ref,
    .deployment-finance-amount,
    .deployment-finance-grid.is-expense .deployment-finance-amount,
    .deployment-finance-note,
    .deployment-finance-grid.is-expense .deployment-finance-note,
    .deployment-details-grid > .field:nth-child(1),
    .deployment-details-grid > .field:nth-child(2),
    .deployment-details-grid > .field:nth-child(3),
    .deployment-details-grid > .field:nth-child(4),
    .deployment-details-grid > .field:nth-child(5),
    .deployment-details-span2,
    .deployment-details-remark { grid-column: 1; }
}
.drawer-tabs {
    display: flex;
    gap: 6px;
    margin: 12px 0 14px;
    padding: 4px;
    background: #eef5fb;
    border: 1px solid #d7e6f5;
    border-radius: 12px;
}
.drawer-tabs-dark {
    background: #0f2744;
    border-color: #0a1c33;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.drawer-tab {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: var(--ink-soft);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 12px;
    border-radius: 9px;
    cursor: pointer;
}
.drawer-tabs-dark .drawer-tab {
    color: rgba(255, 255, 255, 0.72);
}
.drawer-tab:hover { color: var(--navy-mid); background: rgba(255, 255, 255, 0.55); }
.drawer-tabs-dark .drawer-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
.drawer-tab.is-active {
    background: #fff;
    color: var(--navy-mid);
    box-shadow: 0 1px 2px rgba(7, 24, 44, 0.08);
}
.drawer-tabs-dark .drawer-tab.is-active {
    background: #fff;
    color: #0f2744;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}
.drawer-tab-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    flex: 0 0 auto;
    background: rgba(15, 39, 68, 0.12);
    color: inherit;
}
.drawer-tabs-dark .drawer-tab .drawer-tab-step {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}
.drawer-tabs-dark .drawer-tab.is-active .drawer-tab-step {
    background: #0f2744;
    color: #fff;
}
.drawer-tab-label {
    min-width: 0;
    text-align: left;
}
.drawer-tab-panel[hidden] { display: none !important; }
.deployment-finance-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}
.deployment-finance-summary .stat-box {
    min-width: 0;
    padding: 8px 10px;
}
.deployment-finance-summary .stat-value { font-size: 14px; }
.stat-pending { border-left: 4px solid #e6a800; }
.stat-pending .stat-value { color: #c48a00; }
.finance-tx-card.is-income {
    border: 1px solid #8fd4a4;
    background: #f4fcf6;
    box-shadow: inset 3px 0 0 #28a745;
}
.finance-tx-card.is-expense {
    border: 1px solid #f0a8a8;
    background: #fff6f6;
    box-shadow: inset 3px 0 0 #dc3545;
}
.timeline-dot-income {
    background: #28a745;
    box-shadow: 0 0 0 2px #c8ecd4;
}
.timeline-dot-expense {
    background: #dc3545;
    box-shadow: 0 0 0 2px #f5c8c8;
}
@media (max-width: 720px) {
    .deployment-finance-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .deployment-finance-summary { grid-template-columns: 1fr; }
    .drawer-tabs { flex-direction: column; }
}
.text-success { color: #28a745 !important; }
.text-danger  { color: #dc3545 !important; }
.filters input[type="date"] { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: white; font-family: inherit; font-size: 14px; }

/* -- Candidate Bucket ------------------------------------------ */
.cb-bulk-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; padding: 10px 14px; border: 1px solid #c5ddf5; border-radius: 12px; background: #eef6ff; color: #16456f; }
.cb-bulk-bar[hidden] { display: none; }
.cb-bulk-bar strong { margin-right: auto; }
table.dataTable th.cb-check-col, table.dataTable td.cb-check-col { width: 36px; text-align: center; }
.cb-check-col input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--blue); }
#cbExistingResume { margin-top: 8px; display: inline-flex; }
#cbExistingResume[hidden] { display: none; }
.cb-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.cb-head-title { display: flex; align-items: center; gap: 12px; }
.cb-head-mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #1257ad; color: #fff; font-size: 19px; }
.cb-head-title h2 { margin: 0; font-size: 18px; color: #0e2a4a; }
.cb-head-title p { margin: 2px 0 0; font-size: 13px; color: var(--ink-soft); }
.cb-filter-panel { border: 1px solid #d3e3f4; background: #f3f8ff; border-radius: 14px; padding: 12px 14px 14px; margin-bottom: 16px; }
.cb-filter-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.cb-filter-head > span { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: #0e3d78; text-transform: uppercase; letter-spacing: 0.04em; }
.cb-filter-head em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 12px; background: #1257ad; color: #fff; border-radius: 999px; padding: 2px 9px; }
.cb-filter-head em[hidden] { display: none; }
.cb-filter-actions { display: flex; align-items: flex-end; }
.cb-clear { width: 100%; justify-content: center; padding: 7px 12px; font-size: 13px; background: #fff; }
.cb-clear:disabled { opacity: 0.5; cursor: not-allowed; }
.cb-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 12px; }
.cb-filter-field { display: grid; gap: 4px; min-width: 0; }
.cb-filter-field > span { font-size: 12px; font-weight: 600; color: #36506d; }
.cb-filter-field select { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: #fff; }
.cb-filter-field .select2-container { width: 100% !important; }
@media (max-width: 900px) { .cb-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cb-filter-grid { grid-template-columns: 1fr; } }

/* -- Reminder -------------------------------------------------- */
.rem-head-mark { background: #0e3d78; }
.rem-day-past { background: #e4e9f0; color: #4a5b70; }
.rem-day-pending { background: #fde2e1; color: #b42318; }
.rem-table td { vertical-align: middle; }
.rem-route-col { white-space: nowrap; }
.rem-picker { max-width: none; }
.rem-chip-tag { margin-left: 8px; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 8px; background: #dcecff; color: #1257ad; }
.rem-chip-tag.is-new { background: #b7ebc9; color: #146c43; }
.rem-result-tag { font-size: 11px; opacity: 0.75; }

/* -- Responsive layout ----------------------------------------- */
.topbar-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-title h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-toggle {
    display: none;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--navy-mid);
    font-size: 22px;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(7, 24, 44, 0.06);
}
.menu-toggle:hover { background: var(--sky-soft); color: var(--blue-deep); }
.side-close {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    place-items: center;
}
.side-close:hover { background: rgba(255, 255, 255, 0.22); }
.sidebar-backdrop { display: none; }
.dt-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; }
.dt-scroll, .table-wrap, .dash-remind-wrap { scrollbar-width: thin; scrollbar-color: #8fb3d6 #e6eff8; }
.dt-scroll::-webkit-scrollbar, .table-wrap::-webkit-scrollbar, .dash-remind-wrap::-webkit-scrollbar { height: 10px; width: 10px; }
.dt-scroll::-webkit-scrollbar-track, .table-wrap::-webkit-scrollbar-track, .dash-remind-wrap::-webkit-scrollbar-track { background: #e6eff8; border-radius: 999px; }
.dt-scroll::-webkit-scrollbar-thumb, .table-wrap::-webkit-scrollbar-thumb, .dash-remind-wrap::-webkit-scrollbar-thumb { background: #8fb3d6; border-radius: 999px; border: 2px solid #e6eff8; }
.dt-scroll::-webkit-scrollbar-thumb:hover, .table-wrap::-webkit-scrollbar-thumb:hover { background: var(--blue); }
.drag-scroll-ready { cursor: grab; }
.drag-scrolling, .drag-scrolling * { cursor: grabbing !important; user-select: none !important; }
.toast { max-width: min(360px, calc(100vw - 36px)); }

@media (max-width: 1024px) {
    .app-shell { display: block; }
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        height: 100vh;
        height: 100dvh;
        width: min(280px, 84vw);
        z-index: 50;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: 20px 0 50px rgba(7, 24, 44, 0.28);
    }
    .side-brand { position: relative; padding-right: 44px; }
    .side-close { display: grid; }
    body.sidebar-open .sidebar { transform: none; }
    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 45;
        background: rgba(7, 24, 44, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }
    body.sidebar-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
    body.sidebar-open { overflow: hidden; }
    .menu-toggle { display: inline-grid; }

    .dt-scroll > table.dataTable,
    .table-wrap > table,
    .dash-remind-wrap > table { min-width: 760px; }
    .dt-scroll > table.dataTable thead th { white-space: nowrap; }
    .split-2 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .topbar { padding: 14px 12px 0; gap: 10px; }
    .topbar h1 { font-size: 20px; }
    .topbar .crumb { font-size: 12px; }
    .who { padding: 4px; gap: 0; }
    .who > div:first-child { display: none; }
    .page { padding: 12px 12px 28px; }
    .card { padding: 14px; border-radius: 12px; }
    .form-actions { margin: 14px -14px -14px; border-radius: 0 0 12px 12px; }

    .toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
    .filters { width: 100%; }
    .filters > * { flex: 1 1 160px; min-width: 0; }
    .filters .select2-container { width: 100% !important; min-width: 0; }
    .toolbar-actions { width: 100%; }
    .toolbar-actions > .btn { flex: 1 1 auto; }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter { float: none; text-align: left; margin-bottom: 8px; }
    .dataTables_wrapper .dataTables_filter label { display: block; width: 100%; }
    .dataTables_wrapper .dataTables_filter input { width: 100%; margin-left: 0; }
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate { float: none; text-align: center; padding-top: 8px; }
    .dataTables_wrapper .dataTables_paginate .paginate_button { padding: 0.3em 0.7em; min-width: 0; }

    .finance-report-wrap { padding: 0 0 12px; }
    .drawer-head { padding: 12px; }
    .drawer-head h2 { font-size: 18px; }
    .drawer-form-scroll { padding: 12px; }
    .drawer-form-foot { padding: 10px 12px 12px; }
    .toast-stack { left: 12px; right: 12px; bottom: 12px; }
    .toast { max-width: none; }
}
