/* Extracted from hanh-chinh.html to keep the page lighter and cacheable. */

/* Inline style block 1 */
:root {
        --gold: #AE7C41; --gold-pale: #F5EDD8; --charcoal: #1A1A1A;
        --ivory: #FAFAF7; --white: #FFFFFF; --border: #E5DCCC; --muted: #888;
        --shadow: 0 24px 54px rgba(18,18,18,0.08); --radius-xl: 28px; --radius-lg: 22px; --radius-md: 16px;
    }

    html, body {
        min-height: 100%;
        height: 100%;
    }
    body {
        background:
            radial-gradient(circle at top right, rgba(174,124,65,0.08), transparent 24%),
            linear-gradient(180deg, #fbfaf7 0%, #f2eee7 100%);
        font-family: 'Inter', sans-serif;
        height: 100vh;
        overflow: hidden;
    }

    .badge-pending { background: #e53935; color: white; border-radius: 50%; width: 20px; height: 20px; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; margin-left: 4px; font-weight: 700; vertical-align: middle; }

    /* ===== LAYOUT ===== */
    .hc-shell {
        min-height: 100vh;
        height: 100vh;
        display: grid;
        grid-template-columns: clamp(244px, 18vw, 284px) minmax(0, 1fr);
        overflow: hidden;
    }
    .hc-sidebar {
        background: linear-gradient(180deg, #171717 0%, #1f1d1b 100%);
        color: #f6efe5;
        padding: 24px 18px;
        display: flex;
        flex-direction: column;
        gap: 18px;
        border-right: 1px solid rgba(255,255,255,0.08);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    .hc-side-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px;
        border-radius: 20px;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.08);
    }
    .hc-side-mark {
        width: 54px;
        height: 54px;
        border-radius: 18px;
        background: linear-gradient(135deg, #C9973E 0%, #8F6028 100%);
        display: grid;
        place-items: center;
        color: #fff;
        font-family: 'Cormorant Garamond', serif;
        font-size: 28px;
        font-weight: 700;
        box-shadow: 0 12px 24px rgba(174,124,65,0.24);
    }
    .hc-side-meta small,
    .hc-nav-group-label,
    .hc-side-profile-label {
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    .hc-side-meta small {
        display: block;
        color: rgba(246,239,229,0.66);
        font-size: 11px;
        margin-bottom: 4px;
    }
    .hc-side-meta strong {
        display: block;
        color: #fff;
        font-size: 20px;
        line-height: 1.1;
    }
    .hc-side-meta span {
        display: block;
        margin-top: 5px;
        color: rgba(246,239,229,0.72);
        font-size: 12px;
        line-height: 1.45;
    }
    .hc-sidebar-toggle {
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 11px 14px;
        border-radius: 16px;
        border: 1px solid rgba(255,255,255,0.08);
        background: rgba(255,255,255,0.04);
        color: #f6efe5;
        cursor: pointer;
        font: inherit;
        font-size: 12px;
        font-weight: 700;
        transition: 0.2s ease;
    }
    .hc-sidebar-toggle:hover {
        background: rgba(255,255,255,0.08);
    }
    .hc-side-profile {
        padding: 14px;
        border-radius: 20px;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.08);
    }
    .hc-side-profile-label {
        color: rgba(246,239,229,0.62);
        font-size: 11px;
        font-weight: 700;
        margin-bottom: 10px;
    }
    .hc-side-profile-name {
        color: #fff;
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 4px;
    }
    .hc-side-profile-role {
        color: #d6b892;
        font-size: 12px;
        font-weight: 700;
        margin-bottom: 12px;
    }
    .hc-side-profile-grid {
        display: grid;
        gap: 10px;
    }
    .hc-side-profile-chip {
        padding: 11px 12px;
        border-radius: 14px;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.06);
    }
    .hc-side-profile-chip label {
        display: block;
        color: rgba(246,239,229,0.58);
        font-size: 10px;
        margin-bottom: 4px;
        text-transform: uppercase;
        letter-spacing: 0.9px;
    }
    .hc-side-profile-chip strong {
        display: block;
        color: #fff;
        font-size: 12px;
        line-height: 1.4;
        word-break: break-word;
    }
    .hc-sidebar-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .hc-nav-group-label {
        color: rgba(246,239,229,0.46);
        font-size: 11px;
        margin: 0 10px;
    }
    .hc-main-nav {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .hc-main-nav-link {
        width: 100%;
        border: 0;
        border-radius: 16px;
        background: transparent;
        color: rgba(246,239,229,0.86);
        padding: 12px 14px;
        display: flex;
        align-items: center;
        gap: 10px;
        text-align: left;
        cursor: pointer;
        font: inherit;
        text-decoration: none;
        transition: background 0.2s ease, transform 0.2s ease;
    }
    .hc-main-nav-link:hover {
        background: rgba(255,255,255,0.06);
    }
    .hc-main-nav-link.active {
        background: linear-gradient(135deg, rgba(174,124,65,0.28), rgba(174,124,65,0.1));
        box-shadow: inset 0 0 0 1px rgba(214,184,146,0.22);
    }
    .hc-main-nav-link .material-icons {
        font-size: 20px;
        color: #d6b892;
    }
    .hc-main-nav-text {
        flex: 1;
        min-width: 0;
    }
    .hc-main-nav-title {
        display: block;
        font-size: 13px;
        font-weight: 700;
        color: #fff;
    }
    .hc-main-nav-sub {
        display: block;
        margin-top: 2px;
        color: rgba(246,239,229,0.52);
        font-size: 11px;
    }
    .hc-main {
        min-width: 0;
        height: 100%;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    .hc-page {
        width: min(100%, 1540px);
        max-width: 1540px;
        margin: 0 auto;
        padding: 24px 24px 40px;
        display:flex;
        flex-direction:column;
        gap:22px;
    }
    .hc-main-topbar {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 18px;
        margin-bottom: 2px;
    }
    .hc-topbar-title small {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: var(--gold);
        font-size: 12px;
        font-weight: 700;
        margin-bottom: 8px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    .hc-topbar-title h1 {
        font-family: 'Cormorant Garamond', serif;
        font-size: 31px;
        line-height: 1;
        color: var(--charcoal);
        margin-bottom: 8px;
    }
    .hc-topbar-title p {
        color: #6f685e;
        font-size: 13px;
        line-height: 1.55;
        max-width: 760px;
    }
    .hc-topbar-title p:empty {
        display: none;
    }
    .hc-topbar-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .hc-topbar-primary,
    .hc-topbar-secondary {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    .hc-topbar-secondary {
        justify-content: flex-end;
    }
    .hc-topbar-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 12px 16px;
        border-radius: 16px;
        border: 1px solid var(--border);
        background: rgba(255,255,255,0.92);
        color: var(--charcoal);
        font: inherit;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
        cursor: pointer;
        transition: 0.2s ease;
    }
    .hc-topbar-btn:hover {
        transform: translateY(-1px);
        border-color: #d9c29a;
    }
    .hc-topbar-btn.danger {
        background: var(--charcoal);
        color: #fff;
        border-color: var(--charcoal);
    }
    .sidebar-collapsed .hc-shell {
        grid-template-columns: 88px minmax(0, 1fr);
    }
    .sidebar-collapsed .hc-sidebar {
        padding: 24px 12px;
    }
    .sidebar-collapsed .hc-side-brand,
    .sidebar-collapsed .hc-main-nav-link {
        justify-content: center;
    }
    .sidebar-collapsed .hc-side-meta,
    .sidebar-collapsed .hc-side-profile,
    .sidebar-collapsed .hc-nav-group-label,
    .sidebar-collapsed .hc-main-nav-text,
    .sidebar-collapsed .hc-sidebar-toggle span {
        display: none !important;
    }
    .sidebar-collapsed .hc-main-nav-link {
        padding: 12px;
    }
    .sidebar-collapsed .hc-sidebar-toggle {
        justify-content: center;
    }
    .module-workspace {
        display:grid;
        grid-template-columns:minmax(320px, 0.68fr) minmax(0, 1.32fr);
        gap:22px;
        align-items:start;
    }
    .module-workspace-left {
        display:flex;
        flex-direction:column;
        gap:16px;
        position:sticky;
        top:24px;
    }
    .module-workspace-right {
        min-width:0;
    }
    .workspace-main-card,
    .attendance-board-card,
    .attendance-sync-card,
    .attendance-summary-card,
    .attendance-reconciliation-card,
    .work-assignment-panel,
    .work-assignment-hero-main,
    .work-assignment-stat,
    .attendance-manager-review,
    .hub-card,
    .req-card {
        min-width: 0;
    }
    .workspace-side-panel {
        background: rgba(255,255,255,0.96);
        border:1px solid var(--border);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow);
        padding:20px 22px;
    }
    .workspace-side-panel.tools-only {
        padding: 18px;
    }
    .workspace-pane-title {
        font-family:'Cormorant Garamond', serif;
        font-size:26px;
        color:var(--charcoal);
        margin-bottom:8px;
    }
    .workspace-pane-note {
        margin:0 0 16px;
        color:#6f685e;
        font-size:13px;
        line-height:1.65;
    }
    .workspace-side-panel.tools-only .workspace-pane-title,
    .workspace-side-panel.tools-only .workspace-pane-note {
        display: none;
    }
    .workspace-quick-pills {
        display:flex;
        flex-direction:column;
        align-items:stretch;
        gap:14px;
        width:100%;
        max-width:420px;
        margin:0 auto;
    }
    .workspace-side-panel.tools-only .workspace-quick-pills {
        max-width: none;
        margin: 0;
        gap: 10px;
    }
    .workspace-quick-pill {
        width:100%;
        min-height:72px;
        display:inline-flex;
        align-items:center;
        justify-content:center;
        gap:10px;
        padding:18px 24px;
        border-radius:22px;
        border:2px solid #dec5a0;
        background:linear-gradient(180deg, #fffdfa 0%, #f8f1e6 100%);
        color:#8b6b3f;
        font-size:16px;
        font-weight:700;
        cursor:pointer;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
        transition:0.2s ease;
    }
    .workspace-side-panel.tools-only .workspace-quick-pill {
        min-height: 58px;
        padding: 14px 18px;
        border-radius: 18px;
        font-size: 14px;
        justify-content: flex-start;
    }
    .workspace-quick-pill:hover {
        transform:translateY(-1px);
        border-color:#c79b62;
        background:linear-gradient(180deg, #fff9f1 0%, #f6ebdb 100%);
        box-shadow:0 10px 22px rgba(174,124,65,0.08);
    }
    .workspace-quick-pill.active {
        background:linear-gradient(135deg, rgba(174,124,65,0.22), rgba(174,124,65,0.1));
        border-color:#b78343;
        color:#9a6c35;
        box-shadow:0 12px 24px rgba(174,124,65,0.12);
    }
    .workspace-quick-pills .hc-tab {
        margin-bottom:0;
        border-bottom:none;
        white-space:normal;
    }
    .workspace-quick-pill .material-icons {
        font-size:24px !important;
    }
    .workspace-side-list {
        display:grid;
        gap:10px;
    }
    .workspace-side-item {
        display:flex;
        align-items:flex-start;
        gap:10px;
        padding:12px 14px;
        border-radius:18px;
        background:#fcf7ef;
        border:1px solid #eadfcd;
        color:var(--charcoal);
        font-size:13px;
        line-height:1.55;
        font-weight:600;
    }
    .workspace-side-item .material-icons {
        color:var(--gold);
        font-size:18px;
        margin-top:1px;
        flex-shrink:0;
    }
    .workspace-main-card {
        background: rgba(255,255,255,0.96);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow);
        padding: 20px;
    }
    .workspace-main-card.compact {
        padding: 16px 18px;
    }
    /* Layout 3 hang ngang cho khu Quan ly thong tin */
    .info-hub-columns {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .info-hub-column {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }
    .info-hub-column .workspace-section-title {
        margin-bottom: 10px;
        font-size: 24px;
        line-height: 1.15;
    }
    .info-hub-scroll {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 10px;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
    .info-hub-card {
        min-width: 0;
        min-height: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 12px 13px;
        border-radius: 14px;
        border: 1px solid var(--border);
        background: #fff;
        box-shadow: 0 6px 14px rgba(26, 26, 26, 0.035);
    }
    .info-hub-card.employee {
        background: #FFFDF7;
        border-color: #F0E4C4;
    }
    .info-hub-card.customer {
        background: #F8FBF8;
        border-color: #D6ECD9;
    }
    .info-hub-card.customer.past-birthday {
        opacity: 0.56;
        filter: saturate(0.72);
        background: #F4F5F1;
        border-color: #D7DACF;
    }
    .info-hub-card.holiday {
        border-color: #E9DCC7;
        border-left: 4px solid var(--holiday-accent, #B36B0C);
    }
    .info-hub-card-head {
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }
    .info-hub-card-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-family: 'Cormorant Garamond', serif;
        font-size: 18px;
        flex-shrink: 0;
    }
    .info-hub-card-avatar.employee {
        background: #F5E5D6;
        color: #B36B0C;
    }
    .info-hub-card-avatar.customer {
        background: #DFF5E1;
        color: #1F6B33;
    }
    .info-hub-card-body {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    .info-hub-card-title-row {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: wrap;
    }
    .info-hub-card-title {
        color: #1A1A1A;
        font-size: 14.5px;
        font-weight: 700;
        line-height: 1.3;
        word-break: break-word;
    }
    .info-hub-card-sub {
        color: var(--muted);
        font-size: 12px;
        line-height: 1.4;
    }
    .info-hub-card-highlight {
        font-size: 12px;
        font-weight: 700;
        line-height: 1.4;
    }
    .info-hub-card-highlight.employee {
        color: #B36B0C;
    }
    .info-hub-card-highlight.customer {
        color: #1F6B33;
    }
    .info-hub-card-source {
        font-size: 11.8px;
        color: var(--muted);
        line-height: 1.4;
    }
    .info-hub-chip {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 3px 8px;
        border-radius: 999px;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.28px;
        text-transform: uppercase;
        white-space: nowrap;
    }
    .info-hub-chip.service-used {
        background: #EEF1FB;
        color: #3B4EA6;
    }
    .info-hub-chip.service-new {
        background: #FBF6EA;
        color: #8B6B3F;
    }
    .info-hub-chip.past-birthday {
        background: #ECEFF1;
        color: #5F6B72;
    }
    .info-hub-tag-stack {
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
        flex-wrap: wrap;
        max-width: 100%;
    }
    .info-hub-card-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
        margin-top: auto;
    }
    .info-hub-card-actions .btn {
        justify-content: center;
        min-height: 30px;
    }
    .info-hub-holiday-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
    }
    .info-hub-holiday-date {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    .info-hub-holiday-day {
        color: var(--holiday-accent, #B36B0C);
        font-family: 'Cormorant Garamond', serif;
        font-size: 24px;
        font-weight: 800;
        line-height: 1;
    }
    .info-hub-holiday-month {
        color: var(--muted);
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.35px;
    }
    .info-hub-empty-state {
        grid-column: 1 / -1;
        padding: 14px 16px;
        border: 1px dashed #D9C8A8;
        border-radius: 14px;
        background: #FCF8F1;
        color: var(--muted);
        font-style: italic;
    }
    @media (max-width: 1680px) {
        .info-hub-scroll {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }
    }
    @media (max-width: 1380px) {
        .info-hub-scroll {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    }
    @media (max-width: 1100px) {
        .info-hub-scroll {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }
    @media (max-width: 720px) {
        .info-hub-scroll {
            grid-template-columns: 1fr;
        }
    }
    /* Khu Thong tin nhan su */
    .personnel-card-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap:14px; }
    .personnel-card { background:#fff; border:1px solid var(--border); border-radius:14px; padding:16px 18px; display:flex; flex-direction:column; gap:10px; box-shadow:0 4px 14px rgba(0,0,0,0.03); }
    .personnel-card.resigned { opacity:0.86; }
    .personnel-card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
    .personnel-card-name { font-family:'Cormorant Garamond',serif; font-size:19px; font-weight:700; color:#1A1A1A; line-height:1.2; }
    .personnel-card-sub { font-size:12.5px; color:var(--muted); margin-top:2px; }
    .personnel-branch-bar { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:12px; margin:0 0 16px; }
    .personnel-branch-chip { display:flex; flex-direction:column; gap:6px; align-items:flex-start; padding:14px 16px; border-radius:16px; border:1px solid var(--border); background:#fff; color:#4A4A4A; font-family:'Inter',sans-serif; cursor:pointer; transition:all .15s ease; box-shadow:0 4px 14px rgba(0,0,0,0.03); }
    .personnel-branch-chip:hover { border-color:var(--gold); transform:translateY(-1px); }
    .personnel-branch-chip.active { background:#2F3B63; border-color:#2F3B63; color:#fff; }
    .personnel-branch-chip strong { font-size:14px; line-height:1.35; }
    .personnel-branch-chip span { font-size:12px; opacity:0.84; }
    .personnel-branch-chip .branch-count { display:inline-flex; align-items:center; gap:6px; padding:2px 8px; border-radius:999px; background:rgba(0,0,0,0.08); font-size:11px; font-weight:700; }
    .personnel-branch-chip.active .branch-count { background:rgba(255,255,255,0.2); }
    .personnel-status-badge { padding:5px 10px; border-radius:999px; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:0.4px; white-space:nowrap; }
    .personnel-status-badge.active { background:#DFF5E1; color:#1F6B33; }
    .personnel-status-badge.resigned { background:#ECEFF1; color:#455A64; }
    .personnel-tag-row { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
    .personnel-tag-chip { display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border-radius:999px; font-size:11px; font-weight:700; letter-spacing:0.25px; background:#EEF1FB; color:#3B4EA6; }
    .personnel-tag-chip.branch { background:#FFF3D8; color:#9A6500; }
    .personnel-tag-chip.special { background:#FDE7EF; color:#B2386B; }
    .personnel-info-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap:8px 14px; font-size:12.5px; }
    .personnel-info-grid label { display:block; color:var(--muted); font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:0.3px; margin-bottom:2px; }
    .personnel-info-grid span { color:#1A1A1A; font-weight:600; }
    .personnel-card-note { font-size:12.5px; color:#7A5C2E; background:#FFF7EC; border:1px solid #EAD9BF; border-radius:8px; padding:8px 10px; }
    .personnel-card-actions { display:flex; gap:8px; justify-content:flex-end; margin-top:4px; flex-wrap:wrap; }
    .personnel-dept-bar { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px; }
    .personnel-dept-chip { display:inline-flex; align-items:center; gap:6px; padding:8px 14px; border-radius:999px; border:1px solid var(--border); background:#fff; color:#4A4A4A; font-family:'Inter',sans-serif; font-size:12.5px; font-weight:700; cursor:pointer; transition:all .15s ease; }
    .personnel-dept-chip:hover { border-color:var(--gold); color:#7b613d; }
    .personnel-dept-chip.active { background:#2F3B63; border-color:#2F3B63; color:#fff; }
    .personnel-dept-chip .dept-count { background:rgba(0,0,0,0.08); border-radius:999px; padding:1px 7px; font-size:11px; }
    .personnel-dept-chip.active .dept-count { background:rgba(255,255,255,0.22); }
    .workspace-chip.clickable { cursor:pointer; transition:transform .12s ease, box-shadow .12s ease; }
    .workspace-chip.clickable:hover { transform:translateY(-1px); box-shadow:0 4px 10px rgba(0,0,0,0.08); }
    .personnel-status-dropdown { position:relative; display:inline-block; }
    .personnel-status-trigger { cursor:pointer; user-select:none; min-height:34px; }
    .personnel-status-trigger::-webkit-details-marker { display:none; }
    .personnel-status-trigger::marker { content:''; }
    .personnel-status-dropdown[open] .personnel-status-trigger { box-shadow:0 6px 16px rgba(176,141,87,0.16); border-color:#D8C29C; }
    .personnel-status-menu { position:absolute; top:calc(100% + 8px); right:0; min-width:250px; padding:8px; border-radius:16px; border:1px solid #E5D8C3; background:#fffdfa; box-shadow:0 18px 36px rgba(0,0,0,0.12); display:grid; gap:6px; z-index:20; }
    .personnel-status-option { display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; padding:10px 12px; border:none; border-radius:12px; background:#fff; color:#5F574C; font:inherit; font-size:12.5px; font-weight:700; cursor:pointer; text-align:left; }
    .personnel-status-option:hover { background:#FBF6EC; color:#7B613D; }
    .personnel-status-option.active { background:#FBF1DF; color:#7B613D; }
    .personnel-status-option-main { display:inline-flex; align-items:center; gap:8px; }
    .personnel-status-option-count { display:inline-flex; align-items:center; justify-content:center; min-width:28px; padding:2px 8px; border-radius:999px; background:rgba(0,0,0,0.08); font-size:11px; }
    .personnel-form-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:12px 16px; }
    .personnel-form-grid label { display:block; }
    .personnel-form-grid span { display:block; font-size:12px; font-weight:700; letter-spacing:0.3px; text-transform:uppercase; color:var(--muted); margin-bottom:4px; }
    .personnel-form-grid input, .personnel-form-grid select, .personnel-form-grid textarea { width:100%; padding:9px 12px; border:1px solid var(--border); border-radius:10px; font-size:13.5px; font-family:'Inter',sans-serif; background:#fff; }
    .personnel-form-grid .full-row { grid-column: 1 / -1; }
    .personnel-form-section { font-family:'Cormorant Garamond',serif; font-size:16px; font-weight:700; color:#7b613d; border-top:1px solid var(--border); padding-top:12px; margin-top:4px; }
    .personnel-section-card { grid-column:1 / -1; border:1px solid var(--border); border-radius:14px; padding:16px; background:#fbf8f1; }
    .personnel-section-card h3 { margin:0 0 6px; font-family:'Cormorant Garamond',serif; font-size:21px; color:#1A1A1A; }
    .personnel-section-card p { margin:0 0 14px; color:var(--muted); font-size:13px; line-height:1.55; }
    .personnel-history-list { display:flex; flex-direction:column; gap:12px; }
    .personnel-history-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; flex-wrap:wrap; }
    .personnel-history-head strong { color:#1A1A1A; font-size:14px; }
    .personnel-history-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:10px 12px; }
    .personnel-history-grid label { display:block; }
    .personnel-history-grid span { display:block; font-size:11.5px; font-weight:700; letter-spacing:0.3px; text-transform:uppercase; color:var(--muted); margin-bottom:4px; }
    .personnel-history-grid input, .personnel-history-grid textarea { width:100%; padding:9px 12px; border:1px solid var(--border); border-radius:10px; font-size:13px; font-family:'Inter',sans-serif; background:#fff; }
    .personnel-history-empty { padding:14px; border:1px dashed #D8C5A7; border-radius:12px; background:#FFFCF7; color:var(--muted); font-size:13px; text-align:center; }
    .personnel-inline-actions { display:flex; justify-content:flex-end; margin-top:12px; }
    .personnel-card-section-title { font-size:10.5px; font-weight:800; letter-spacing:0.4px; text-transform:uppercase; color:#B8935A; margin:10px 0 4px; }
    .personnel-history-item { border:1px solid var(--border); border-radius:10px; padding:8px 10px; margin-bottom:8px; font-size:12px; line-height:1.6; background:#fff; }
    .personnel-history-item b { color:#1A1A1A; }
    .personnel-import-panel { display:grid; grid-template-columns:minmax(180px,.8fr) minmax(240px,1fr) auto auto; gap:12px; align-items:end; padding:16px 18px; margin:0 0 18px; border:1px solid var(--border); border-radius:18px; background:linear-gradient(180deg,#fffdfa 0%,#f7f0e5 100%); box-shadow:0 8px 20px rgba(0,0,0,0.04); }
    .personnel-import-panel label { display:block; margin-bottom:7px; color:var(--muted); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; }
    .personnel-import-panel select, .personnel-import-panel input { width:100%; padding:10px 12px; border:1px solid var(--border); border-radius:10px; font:inherit; background:#fff; color:var(--charcoal); }
    .personnel-import-status { display:none; grid-column:1 / -1; padding:12px 14px; border-radius:12px; border:1px solid #ead9bf; background:#fff7ec; color:var(--charcoal); font-size:13px; line-height:1.55; }
    .personnel-import-status.success { border-color:#C8E6C9; background:#EBFBEE; color:#1B5E20; }
    .personnel-import-status.error { border-color:#FFCDD2; background:#FFEBEE; color:#B71C1C; }
    .personnel-import-modal { position:fixed; inset:0; z-index:1200; background:rgba(29, 24, 16, 0.34); align-items:center; justify-content:center; padding:24px; }
    .modal-floating-shell { position:relative; }
    .modal-floating-shell-scroll { overflow-y:auto; }
    .modal-floating-close-anchor { position:sticky; top:12px; z-index:40; display:flex; justify-content:flex-end; height:0; pointer-events:none; }
    .modal-floating-close { pointer-events:auto; width:38px; height:38px; border:none; border-radius:999px; background:rgba(245,245,245,0.96); color:#455A64; cursor:pointer; display:flex; align-items:center; justify-content:center; box-shadow:0 10px 24px rgba(0,0,0,0.14); backdrop-filter:blur(6px); }
    .modal-floating-close:hover { background:#fff; color:#1A1A1A; }
    .personnel-import-dialog { width:min(920px, calc(100vw - 32px)); max-height:calc(100vh - 48px); overflow-y:auto; background:#fff; border:1px solid var(--border); border-radius:24px; padding:20px; box-shadow:0 28px 70px rgba(0,0,0,0.22); }
    .personnel-import-dialog-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:14px; }
    .personnel-import-dialog-title { font-family:'Cormorant Garamond',serif; font-size:30px; font-weight:700; color:#1A1A1A; line-height:1.1; }
    .personnel-import-dialog-sub { margin-top:6px; color:#6E6254; font-size:13px; line-height:1.55; }
    .personnel-import-modal .personnel-import-panel { margin:0; box-shadow:none; }
    .hr-doc-branch-toolbar { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:10px; }
    .hr-doc-matrix-btn[disabled] { opacity:0.56; cursor:not-allowed; filter:saturate(0.7); }
    .hr-doc-matrix-dialog {
        background:#fff;
        border-radius:20px;
        width:min(96vw, 1840px);
        max-height:92vh;
        overflow-y:auto;
        padding:24px;
        box-shadow:0 24px 70px rgba(0,0,0,0.28);
        border-top:4px solid var(--gold);
        display:flex;
        flex-direction:column;
        gap:16px;
        position:relative;
    }
    .hr-doc-matrix-header {
        display:flex;
        align-items:flex-start;
        justify-content:space-between;
        gap:14px;
        flex-wrap:wrap;
        padding-right:40px;
    }
    .hr-doc-matrix-header h2 {
        margin:0;
        font-family:'Cormorant Garamond',serif;
        color:#2C2C2C;
        font-size:30px;
        line-height:1.05;
    }
    .hr-doc-matrix-subtitle {
        margin-top:6px;
        color:var(--muted);
        font-size:13px;
        line-height:1.6;
    }
    .hr-doc-matrix-meta {
        display:flex;
        flex-wrap:wrap;
        gap:8px;
        margin-top:10px;
    }
    .hr-doc-matrix-meta span,
    .hr-doc-matrix-legend span {
        display:inline-flex;
        align-items:center;
        gap:6px;
        padding:6px 10px;
        border-radius:999px;
        background:#F6F0E6;
        border:1px solid #E6D8BE;
        color:#7B613D;
        font-size:11.5px;
        font-weight:700;
    }
    .hr-doc-matrix-meta-control {
        display:inline-flex;
        align-items:center;
        gap:8px;
        padding:6px 10px;
        border-radius:999px;
        background:#F6F0E6;
        border:1px solid #E6D8BE;
        color:#7B613D;
        font-size:11.5px;
        font-weight:700;
    }
    .hr-doc-matrix-meta-control select {
        border:none;
        background:transparent;
        color:#7B613D;
        font:inherit;
        font-weight:800;
        outline:none;
        cursor:pointer;
        min-width:170px;
    }
    .hr-doc-matrix-legend {
        display:flex;
        flex-wrap:wrap;
        gap:8px;
        justify-content:flex-end;
    }
    .hr-doc-matrix-legend .material-icons,
    .hr-doc-matrix-meta .material-icons {
        font-size:15px;
    }
    .hr-doc-matrix-summary {
        display:flex;
        flex-wrap:wrap;
        gap:12px;
    }
    .hr-doc-matrix-summary-card {
        flex:1;
        min-width:180px;
        padding:14px 16px;
        border-radius:16px;
        border:1px solid var(--border);
        background:linear-gradient(180deg,#fffdfa 0%,#f8f1e6 100%);
        box-shadow:0 6px 18px rgba(0,0,0,0.03);
    }
    .hr-doc-matrix-summary-card label {
        display:block;
        margin-bottom:6px;
        color:var(--muted);
        font-size:11px;
        font-weight:800;
        letter-spacing:0.45px;
        text-transform:uppercase;
    }
    .hr-doc-matrix-summary-card strong {
        font-size:26px;
        line-height:1;
        color:#2C2C2C;
    }
    .hr-doc-matrix-summary-card span {
        display:block;
        margin-top:8px;
        color:#786D60;
        font-size:12px;
        line-height:1.45;
    }
    .hr-doc-matrix-toolbar {
        display:grid;
        grid-template-columns:minmax(220px,1.35fr) minmax(220px,1.35fr) repeat(3, minmax(140px, 1fr)) minmax(150px, 1fr) auto;
        gap:10px 12px;
        align-items:end;
        padding:14px 16px;
        border:1px solid #E6D8BE;
        border-radius:18px;
        background:linear-gradient(180deg,#FFFDF9 0%,#F7F0E5 100%);
    }
    .hr-doc-matrix-filter {
        display:flex;
        flex-direction:column;
        gap:5px;
        min-width:0;
    }
    .hr-doc-matrix-filter.wide {
        grid-column:auto / span 2;
    }
    .hr-doc-matrix-filter span {
        font-size:11px;
        font-weight:800;
        letter-spacing:0.38px;
        text-transform:uppercase;
        color:var(--muted);
    }
    .hr-doc-matrix-filter input,
    .hr-doc-matrix-filter select {
        width:100%;
        min-width:0;
        padding:10px 12px;
        border:1px solid var(--border);
        border-radius:12px;
        font:inherit;
        font-size:13px;
        color:#2C2C2C;
        background:#fff;
    }
    .hr-doc-matrix-toolbar-actions {
        display:flex;
        align-items:flex-end;
        justify-content:flex-end;
        gap:8px;
        min-height:100%;
    }
    .hr-doc-matrix-toolbar-actions .btn {
        min-height:42px;
        padding:10px 14px;
        border-radius:12px;
    }
    .hr-doc-matrix-wrapper {
        border:1px solid var(--border);
        border-radius:18px;
        overflow:auto;
        max-height:calc(92vh - 265px);
        background:#fffdfa;
        -webkit-overflow-scrolling:touch;
        overscroll-behavior:contain;
    }
    .hr-doc-matrix-table {
        width:max-content;
        min-width:100%;
        border-collapse:collapse;
        table-layout:fixed;
        font-size:12px;
        color:#2C2C2C;
    }
    .hr-doc-matrix-table th,
    .hr-doc-matrix-table td {
        border:1px solid #E5DCCC;
        padding:8px 6px;
        text-align:center;
        background:#fff;
        white-space:nowrap;
    }
    .hr-doc-matrix-table th {
        position:sticky;
        top:0;
        z-index:5;
        background:var(--charcoal);
        color:var(--gold);
        font-weight:700;
        font-size:11px;
        text-transform:uppercase;
        letter-spacing:0.32px;
        line-height:1.35;
        white-space:normal;
    }
    .hr-doc-matrix-table .sticky-left {
        position:sticky;
        left:0;
        z-index:4;
    }
    .hr-doc-matrix-table th.sticky-left {
        z-index:7;
        background:var(--charcoal);
        color:var(--gold);
    }
    .hr-doc-matrix-table .sticky-left-2 {
        position:sticky;
        left:58px;
        z-index:4;
    }
    .hr-doc-matrix-table th.sticky-left-2 {
        z-index:7;
        background:var(--charcoal);
        color:var(--gold);
    }
    .hr-doc-matrix-table .sticky-right {
        position:sticky;
        right:0;
        z-index:4;
    }
    .hr-doc-matrix-table th.sticky-right {
        z-index:7;
        background:var(--charcoal);
        color:var(--gold);
    }
    .hr-doc-matrix-table td.sticky-left,
    .hr-doc-matrix-table td.sticky-left-2,
    .hr-doc-matrix-table td.sticky-right {
        background:#fffdf9;
    }
    .hr-doc-matrix-table .hr-doc-matrix-col-stt { width:58px; min-width:58px; max-width:58px; }
    .hr-doc-matrix-table .hr-doc-matrix-col-name { width:230px; min-width:230px; max-width:230px; text-align:left; }
    .hr-doc-matrix-table .hr-doc-matrix-col-dept { width:160px; min-width:160px; max-width:160px; text-align:left; }
    .hr-doc-matrix-table .hr-doc-matrix-col-position { width:190px; min-width:190px; max-width:190px; text-align:left; }
    .hr-doc-matrix-table .hr-doc-matrix-col-gender { width:86px; min-width:86px; max-width:86px; }
    .hr-doc-matrix-table .hr-doc-matrix-col-status { width:126px; min-width:126px; max-width:126px; }
    .hr-doc-matrix-table .hr-doc-matrix-col-join { width:118px; min-width:118px; max-width:118px; }
    .hr-doc-matrix-table .hr-doc-matrix-col-resign { width:118px; min-width:118px; max-width:118px; }
    .hr-doc-matrix-table .hr-doc-matrix-doc-head,
    .hr-doc-matrix-table .hr-doc-matrix-doc-cell { width:86px; min-width:86px; max-width:86px; }
    .hr-doc-matrix-table .hr-doc-matrix-total-cell { width:90px; min-width:90px; max-width:90px; font-weight:700; background:#FBF5EA; }
    .hr-doc-matrix-table .hr-doc-matrix-progress-cell { width:94px; min-width:94px; max-width:94px; font-weight:700; }
    .hr-doc-matrix-table .hr-doc-matrix-action-cell { width:112px; min-width:112px; max-width:112px; }
    .hr-doc-matrix-group-row td {
        background:linear-gradient(180deg,#F6EBD5 0%,#F0E2C6 100%);
        color:#71572B;
        font-size:12px;
        font-weight:800;
        text-transform:uppercase;
        letter-spacing:0.35px;
        text-align:left;
        padding:10px 12px;
    }
    .hr-doc-matrix-person-btn {
        border:none;
        background:none;
        padding:0;
        color:#2C2C2C;
        font:inherit;
        font-weight:700;
        text-align:left;
        cursor:pointer;
        line-height:1.45;
    }
    .hr-doc-matrix-person-btn:hover { color:#8A6531; }
    .hr-doc-matrix-subtext {
        display:block;
        margin-top:4px;
        color:var(--muted);
        font-size:11px;
        line-height:1.45;
    }
    .hr-doc-matrix-status-badge {
        display:inline-flex;
        align-items:center;
        justify-content:center;
        padding:5px 10px;
        border-radius:999px;
        font-size:11px;
        font-weight:700;
        line-height:1.2;
    }
    .hr-doc-matrix-status-badge.active { background:#E8F5E9; color:#1F6B33; }
    .hr-doc-matrix-status-badge.resigned { background:#ECEFF1; color:#455A64; }
    .hr-doc-matrix-doc-cell {
        font-weight:700;
        line-height:1;
        vertical-align:middle;
    }
    .hr-doc-matrix-doc-cell .material-icons {
        font-size:19px;
        vertical-align:middle;
    }
    .hr-doc-matrix-doc-cell.ok { background:#EDF8EF; color:#1F7A34; }
    .hr-doc-matrix-doc-cell.missing { background:#FFF5F5; color:#C62828; }
    .hr-doc-matrix-doc-cell.na { background:#EFF2F5; color:#7D8A97; }
    .hr-doc-matrix-doc-cell.expired { background:#FFF4E5; color:#C27A00; }
    .hr-doc-matrix-doc-cell.redo { background:#F4EBFF; color:#7B3FD6; }
    .hr-doc-matrix-row.resigned td { background:#FCFAF6; }
    .hr-doc-matrix-row.resigned .hr-doc-matrix-person-btn { color:#5E5A54; }
    .hr-doc-matrix-action-btn {
        border:none;
        border-radius:999px;
        padding:8px 12px;
        background:linear-gradient(135deg,#AE7C41 0%,#8C6431 100%);
        color:#fff;
        font-size:11px;
        font-weight:700;
        cursor:pointer;
        display:inline-flex;
        align-items:center;
        gap:5px;
        justify-content:center;
        box-shadow:0 6px 14px rgba(140,100,49,0.18);
    }
    .hr-doc-matrix-action-btn .material-icons { font-size:15px; }
    .hr-doc-matrix-empty {
        padding:24px;
        text-align:center;
        color:var(--muted);
        font-size:13px;
        line-height:1.65;
    }
    @media (max-width: 640px) { .personnel-form-grid, .personnel-history-grid, .personnel-import-panel { grid-template-columns: 1fr; } }
    @media (max-width: 900px) {
        .hr-doc-branch-toolbar { align-items:stretch; }
        .hr-doc-matrix-dialog {
            width:100vw;
            height:100vh;
            max-height:none;
            border-radius:0;
            padding:18px 14px 16px;
        }
        .hr-doc-matrix-header {
            padding-right:34px;
            gap:10px;
        }
        .hr-doc-matrix-header h2 {
            font-size:24px;
        }
        .hr-doc-matrix-toolbar {
            grid-template-columns:repeat(2, minmax(0, 1fr));
        }
        .hr-doc-matrix-filter.wide,
        .hr-doc-matrix-toolbar-actions { grid-column:1 / -1; }
        .hr-doc-matrix-wrapper {
            max-height:calc(100vh - 280px);
            border-radius:16px;
        }
        .hr-doc-matrix-table th,
        .hr-doc-matrix-table td {
            padding:7px 5px;
            font-size:11px;
        }
        .hr-doc-matrix-table .hr-doc-matrix-col-name { width:180px; min-width:180px; max-width:180px; }
        .hr-doc-matrix-table .sticky-left-2 { left:58px; }
        .hr-doc-matrix-table .hr-doc-matrix-col-dept { width:126px; min-width:126px; max-width:126px; }
        .hr-doc-matrix-table .hr-doc-matrix-col-position { width:150px; min-width:150px; max-width:150px; }
        .hr-doc-matrix-table .hr-doc-matrix-col-gender { width:72px; min-width:72px; max-width:72px; }
        .hr-doc-matrix-table .hr-doc-matrix-col-status { width:106px; min-width:106px; max-width:106px; }
        .hr-doc-matrix-table .hr-doc-matrix-col-join { width:98px; min-width:98px; max-width:98px; }
        .hr-doc-matrix-table .hr-doc-matrix-col-resign { width:98px; min-width:98px; max-width:98px; }
        .hr-doc-matrix-table .hr-doc-matrix-doc-head,
        .hr-doc-matrix-table .hr-doc-matrix-doc-cell { width:72px; min-width:72px; max-width:72px; }
        .hr-doc-matrix-table .hr-doc-matrix-total-cell,
        .hr-doc-matrix-table .hr-doc-matrix-progress-cell { width:78px; min-width:78px; max-width:78px; }
        .hr-doc-matrix-table .hr-doc-matrix-action-cell { width:94px; min-width:94px; max-width:94px; }
    }
    @media (max-width: 640px) {
        .hr-doc-matrix-toolbar {
            grid-template-columns:1fr;
        }
        .hr-doc-matrix-filter.wide,
        .hr-doc-matrix-toolbar-actions { grid-column:auto; }
    }
    .workspace-section-title {
        margin: 0 0 12px;
        font-family: 'Cormorant Garamond', serif;
        font-size: 26px;
        color: var(--charcoal);
    }
    .workspace-section-note {
        margin: 0 0 16px;
        font-size: 13px;
        color: #6f685e;
        line-height: 1.65;
    }
    .workspace-chip-row {
        display:flex;
        flex-wrap:wrap;
        gap:8px;
    }
    .hc-mobile-overview-note {
        display: none;
    }
    .workspace-chip {
        display:inline-flex;
        align-items:center;
        gap:6px;
        padding:8px 10px;
        border-radius:999px;
        border:1px solid #eadfcd;
        background:#fffdfa;
        color:#7b613d;
        font-size:12px;
        font-weight:700;
    }
    .hc-hero {
        display:grid;
        grid-template-columns:minmax(0, 1.18fr) minmax(300px, 0.82fr);
        gap:20px;
    }
    .hc-hero-panel,
    .hc-hero-side,
    .form-card,
    .attendance-board-card,
    .attendance-sync-card,
    .attendance-summary-card,
    .hub-card,
    .req-card,
    .flow-hint,
    .modal-box {
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow);
    }
    .hc-hero-panel {
        background: linear-gradient(135deg, #171717 0%, #1f1b16 100%);
        color:#fff;
        padding:32px 34px;
        position:relative;
        overflow:hidden;
        border:1px solid rgba(174,124,65,0.24);
    }
    .hc-hero-panel::after {
        content:'';
        position:absolute;
        width:250px;
        height:250px;
        border-radius:50%;
        right:-70px;
        bottom:-100px;
        background: radial-gradient(circle, rgba(201,151,62,0.24), transparent 68%);
        pointer-events:none;
    }
    .hc-hero-eyebrow {
        display:inline-flex;
        align-items:center;
        gap:8px;
        padding:7px 12px;
        border-radius:999px;
        background:rgba(255,255,255,0.08);
        color:#e4c79f;
        font-size:11px;
        font-weight:700;
        text-transform:uppercase;
        letter-spacing:1px;
        margin-bottom:16px;
    }
    .hc-hero-panel h1 {
        margin:0 0 12px;
        font-family:'Cormorant Garamond', serif;
        font-size:clamp(34px, 3.8vw, 46px);
        line-height:0.96;
        font-weight:600;
    }
    .hc-hero-panel p {
        margin:0;
        max-width:760px;
        color:rgba(255,255,255,0.78);
        font-size:14px;
        line-height:1.7;
    }
    .hc-hero-chips {
        display:grid;
        grid-template-columns:repeat(3, minmax(0, 1fr));
        gap:12px;
        margin-top:20px;
    }
    .hc-hero-chip {
        padding:14px 15px;
        border-radius:18px;
        background:rgba(255,255,255,0.05);
        border:1px solid rgba(255,255,255,0.08);
    }
    .hc-hero-chip span {
        display:block;
        color:rgba(255,255,255,0.58);
        font-size:10px;
        font-weight:700;
        text-transform:uppercase;
        letter-spacing:1px;
        margin-bottom:5px;
    }
    .hc-hero-chip strong {
        display:block;
        color:#fff;
        font-size:14px;
        line-height:1.45;
    }
    .hc-hero-side {
        background: linear-gradient(180deg, #fffdfa 0%, #f7f1e7 100%);
        padding:24px;
        border:1px solid var(--border);
    }
    .hc-hero-side h3 {
        margin:0 0 8px;
        font-family:'Cormorant Garamond', serif;
        font-size:28px;
        color:var(--charcoal);
    }
    .hc-hero-side p {
        margin:0 0 16px;
        color:#6f685e;
        font-size:13px;
        line-height:1.65;
    }
    .hc-hero-list { display:grid; gap:10px; }
    .hc-hero-item {
        display:flex;
        align-items:center;
        gap:10px;
        padding:12px 14px;
        border-radius:18px;
        background:rgba(255,255,255,0.92);
        border:1px solid #eee1cf;
        color:var(--charcoal);
        font-size:13px;
        font-weight:600;
    }
    .hc-hero-item .material-icons { color:var(--gold); font-size:18px; }

    /* ===== HUB BLOCKS ===== */
    .hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin-bottom: 32px; }
    .hub-home-layout {
        display:block;
    }
    .hub-home-panel .hub-grid {
        margin-bottom:0;
        margin-top:18px;
    }
    .hub-home-head {
        display:flex;
        flex-direction:column;
        gap:14px;
        margin-bottom:6px;
    }
    .hub-home-head.tools-only {
        gap: 0;
        margin-bottom: 0;
    }
    .hub-home-head.tools-only .workspace-section-title,
    .hub-home-head.tools-only .workspace-section-note,
    .hub-home-head.tools-only .workspace-chip-row {
        display: none;
    }
    .hub-home-side {
        position:sticky;
        top:24px;
    }
    .hub-card { background: rgba(255,255,255,0.96); border: 1px solid var(--border); border-radius: 22px; padding: 24px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 16px; }
    .hub-card:hover { border-color: var(--gold); box-shadow: 0 4px 20px rgba(174,124,65,0.12); transform: translateY(-2px); }
    .hub-card-icon { width: 52px; height: 52px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .hub-card-icon.blue  { background: #E3F2FD; color: #1565C0; }
    .hub-card-icon.green { background: #E8F5E9; color: #2E7D32; }
    .hub-card-icon.orange{ background: #FFF3E0; color: #E65100; }
    .hub-card-icon.gold  { background: var(--gold-pale); color: var(--gold); }
    .hub-card-icon.red   { background: #FFF0F0; color: #C92A2A; }
    .hub-card-info h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; color: var(--charcoal); }
    .hub-card-info p  { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
    .hub-arrow { color: #bbb; margin-left: auto; flex-shrink: 0; }
    .approval-card-badge {
        margin-left:auto;
        min-width:30px;
        height:30px;
        border-radius:999px;
        display:inline-flex;
        align-items:center;
        justify-content:center;
        background:#C92A2A;
        color:#fff;
        font-size:13px;
        font-weight:800;
        padding:0 9px;
        box-shadow:0 8px 18px rgba(201,42,42,0.18);
    }
    .approval-inbox-card {
        margin-bottom:16px;
        border:1px solid #F0D0C8;
        background:linear-gradient(135deg, #fffafa 0%, #fff7ef 100%);
    }
    .approval-inbox-head {
        display:flex;
        align-items:flex-start;
        justify-content:space-between;
        gap:14px;
        margin-bottom:14px;
    }
    .approval-inbox-title {
        margin:0 0 4px;
        font-family:'Cormorant Garamond', serif;
        font-size:25px;
        color:var(--charcoal);
    }
    .approval-inbox-note {
        margin:0;
        color:#6f685e;
        font-size:13px;
        line-height:1.55;
    }
    .approval-inbox-summary {
        display:flex;
        flex-wrap:wrap;
        gap:8px;
        margin-bottom:12px;
    }
    .approval-inbox-chip {
        display:inline-flex;
        align-items:center;
        gap:6px;
        padding:7px 10px;
        border-radius:999px;
        background:#fff;
        border:1px solid #EADCCA;
        color:#8B6B3F;
        font-size:12px;
        font-weight:800;
    }
    .approval-inbox-list {
        display:grid;
        gap:10px;
    }
    .approval-inbox-item {
        width:100%;
        border:1px solid #EADCCA;
        border-radius:16px;
        background:#fff;
        padding:12px 14px;
        display:flex;
        align-items:center;
        gap:12px;
        text-align:left;
        cursor:pointer;
        transition:0.2s ease;
        font-family:'Inter', sans-serif;
    }
    .approval-inbox-item:hover {
        border-color:var(--gold);
        transform:translateY(-1px);
        box-shadow:0 10px 20px rgba(174,124,65,0.08);
    }
    .approval-inbox-item-icon {
        width:42px;
        height:42px;
        border-radius:14px;
        display:grid;
        place-items:center;
        background:#FFF0F0;
        color:#C92A2A;
        flex-shrink:0;
    }
    .approval-inbox-item-icon.attendance {
        background:#E8F5E9;
        color:#2B8A3E;
    }
    .approval-inbox-item-main {
        flex:1;
        min-width:0;
    }
    .approval-inbox-item-title {
        display:block;
        color:var(--charcoal);
        font-size:14px;
        font-weight:800;
        margin-bottom:4px;
        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
    }
    .approval-inbox-item-meta {
        display:block;
        color:#776f65;
        font-size:12px;
        line-height:1.4;
    }
    .approval-inbox-empty {
        padding:16px;
        border-radius:16px;
        background:#fff;
        border:1px dashed #EADCCA;
        color:#7a7167;
        font-size:13px;
        text-align:center;
    }

    /* ===== BACK BUTTON ===== */
    .sub-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
    .sub-header.tools-only {
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 18px;
    }
    .sub-header.tools-only .sub-title {
        display: none;
    }
    .sub-header.tools-only .btn-back,
    .sub-header.tools-only .btn,
    .sub-header.tools-only .btn-outline,
    .sub-header.tools-only input[type="month"] {
        min-height: 46px;
        border-radius: 16px;
    }
    .sub-header.tools-only input[type="month"] {
        min-width: 180px;
        padding: 0 14px !important;
        background: #fff;
    }
    .btn-back { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--white); cursor: pointer; font-size: 13px; font-weight: 600; color: var(--charcoal); transition: all 0.2s; }
    .btn-back:hover { border-color: var(--gold); color: var(--gold); }
    .sub-title { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 600; color: var(--charcoal); margin: 0; }

    /* ===== FORM TẠO ĐƠN ===== */
    .form-card { background: rgba(255,255,255,0.96); border: 1px solid var(--border); border-radius: 22px; padding: 32px; width: 100%; box-sizing: border-box; }
    .form-section-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); margin: 24px 0 12px; }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    @media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
    .form-group { margin-bottom: 16px; }
    .form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--charcoal); margin-bottom: 6px; }
    .form-group input, .form-group select, .form-group textarea {
        width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px;
        font-size: 14px; font-family: 'Inter', sans-serif; background: var(--ivory);
        color: var(--charcoal); outline: none; transition: border 0.2s; box-sizing: border-box;
    }
    .form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); background: white; }
    .form-group textarea { min-height: 100px; resize: vertical; }
    .field-note { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Inline style block 2 */
/* ===== BUTTONS ===== */
    .btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 24px; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; }
    .btn-primary { background: var(--gold); color: white; }
    .btn-primary:hover { background: #9a6c35; }
    .btn-outline { background: transparent; color: var(--charcoal); border: 1px solid var(--border); }
    .btn-outline:hover { border-color: var(--gold); color: var(--gold); }
    .btn-sm { padding: 7px 16px; font-size: 13px; }
    .btn-approve { background: #2B8A3E; color: white; }
    .btn-approve:hover { background: #236632; }
    .btn-reject { background: #e53935; color: white; }
    .btn-reject:hover { background: #b71c1c; }
    .btn-sign { background: var(--charcoal); color: var(--gold); border: 2px solid var(--gold); font-size: 15px; padding: 13px 28px; letter-spacing: 0.5px; }
    .btn-sign:hover { background: var(--gold); color: white; }
    .btn-push { background: var(--gold); color: white; font-size: 13px; padding: 9px 18px; border-radius: 6px; }
    .btn-push:hover { background: #9a6c35; }

    /* ===== CHỮ KÝ BLOCK ===== */
    .sig-block { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid #D5C4AA; border-radius: 4px; padding: 5px 12px; font-size: 12px; color: var(--charcoal); background: #FDFBF7; margin: 4px 4px 0 0; }
    .sig-block .sig-name { font-weight: 700; color: var(--gold); }
    .sig-block .sig-role { font-size: 11px; color: var(--muted); margin-left: 2px; }
    .sig-block-approved { border-color: #A3D9A5; background: #F0FFF2; }
    .sig-block-rejected { border-color: #FFAAAA; background: #FFF5F5; }

    .push-area { margin-top: 12px; padding: 14px; background: #FBF7EF; border: 1px dashed var(--gold); border-radius: 8px; }
    .push-area .push-label { font-size: 12px; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
    .push-area .push-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
    .push-area select { padding: 9px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; font-family: 'Inter', sans-serif; background: white; min-width: 220px; }

    .reject-box { margin-top: 12px; padding: 14px 16px; background: #FFF5F5; border: 1px solid #FFC9C9; border-left: 4px solid #e53935; border-radius: 8px; }
    .reject-box .rb-title { font-size: 13px; font-weight: 700; color: #c92a2a; display: flex; align-items: center; gap: 6px; }
    .reject-box .rb-reason { font-size: 13px; color: #842029; margin: 6px 0 10px; font-style: italic; }

    /* ===== TABS ===== */
    .hc-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 32px; overflow-x: auto; }
    .hc-tab { padding: 12px 24px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; transition: all 0.2s; display: flex; align-items: center; gap: 6px; }
    .hc-tab:hover { color: var(--charcoal); }
    .hc-tab.active { color: var(--gold); border-bottom-color: var(--gold); font-weight: 600; }

    /* ===== PANELS ===== */
    .hc-panel { display: none; animation: fadeIn 0.3s ease; }
    .hc-panel.active { display: block; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

    /* ===== DANH SÁCH ĐƠN ===== */
    .req-list { display: flex; flex-direction: column; gap: 12px; }
    .req-card { background: rgba(255,255,255,0.96); border: 1px solid var(--border); border-radius: 18px; padding: 20px 24px; display: flex; align-items: flex-start; gap: 16px; transition: all 0.2s; }
    .req-card.clickable { cursor: pointer; }
    .req-card.clickable:hover { border-color: var(--gold); box-shadow: 0 4px 16px rgba(174,124,65,0.1); }
    .req-card .req-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--gold-pale); color: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
    .req-card .req-info { flex: 1; min-width: 0; }
    .req-card .req-title { font-size: 15px; font-weight: 600; color: var(--charcoal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .req-card .req-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
    .req-card .req-status { flex-shrink: 0; }

    /* Status badges */
    .status-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
    .status-processing { background: #FFF8E1; color: #F59E0B; }
    .status-approved  { background: #E8F5E9; color: #2B8A3E; }
    .status-rejected  { background: #FFEBEE; color: #e53935; }
    .status-pending   { background: #E3F2FD; color: #1565C0; }

    /* ===== FLOW HINT ===== */
    .flow-hint { background: linear-gradient(180deg, #fbf4e8 0%, #f7efdf 100%); border: 1px solid var(--border); border-radius: 18px; padding: 14px 18px; margin-bottom: 24px; font-size: 13px; color: #6b5836; display: flex; align-items: center; gap: 10px; }
    .flow-hint b { color: var(--gold); }

    /* ===== MODAL ===== */
    .modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; align-items: center; justify-content: center; padding: 20px; }
    .modal-overlay.open { display: flex; }
    .modal-box { background: white; border-radius: 24px; width: 100%; max-width: 680px; max-height: 90vh; overflow-y: auto; position:relative; }
    .modal-header { position:sticky; top:0; z-index:15; padding: 20px 28px 12px; display: flex; align-items: flex-start; justify-content: space-between; background:#fff; border-bottom:1px solid rgba(0,0,0,0.05); }
    .modal-header h3 { font-size: 20px; font-weight: 700; margin: 0; color: var(--charcoal); }
    .modal-close { width:36px; height:36px; border:none; border-radius:999px; background:#F5F5F5; font-size:24px; cursor: pointer; color: var(--muted); line-height: 1; padding: 0; display:inline-flex; align-items:center; justify-content:center; box-shadow:0 8px 18px rgba(0,0,0,0.08); }
    .modal-body { padding: 16px 28px 28px; }

    .timeline { margin: 20px 0 0; }
    .tl-item { display: flex; gap: 14px; margin-bottom: 20px; }
    .tl-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; }
    .tl-icon.done    { background: #E8F5E9; color: #2B8A3E; }
    .tl-icon.pending { background: #E3F2FD; color: #1565C0; }
    .tl-icon.wait    { background: #f5f5f5; color: #aaa; }
    .tl-icon.rejected{ background: #FFEBEE; color: #e53935; }
    .tl-content { flex: 1; }
    .tl-role { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
    .tl-name { font-size: 15px; font-weight: 600; color: var(--charcoal); margin: 2px 0; }
    .tl-comment { font-size: 13px; color: #555; font-style: italic; background: var(--ivory); border-radius: 4px; padding: 6px 10px; margin-top: 4px; }
    .tl-time { font-size: 12px; color: var(--muted); margin-top: 2px; }

    .approve-box { background: var(--gold-pale); border: 1px solid #E5DCCC; border-radius: 8px; padding: 20px; margin-top: 20px; }
    .approve-box h4 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
    .approve-box textarea { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 6px; font-family: 'Inter', sans-serif; font-size: 14px; outline: none; resize: vertical; box-sizing: border-box; }
    .approve-btns { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

    .modal-sigs { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
    .modal-sigs-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 10px; }
    .modal-sigs-row { display: flex; flex-wrap: wrap; gap: 8px; }

    .empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
    .empty-state i { font-size: 48px; opacity: 0.3; display: block; margin-bottom: 12px; }

    .file-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
    .file-chip { display: flex; align-items: center; gap: 6px; background: var(--gold-pale); color: var(--charcoal); border-radius: 4px; padding: 4px 10px; font-size: 12px; }
    .file-chip button { background: none; border: none; cursor: pointer; color: #999; font-size: 14px; line-height: 1; padding: 0; }

    /* ===== CHẤM CÔNG ===== */
    .smart-input-box {
        background: linear-gradient(180deg, #fffdfa 0%, #faf5ed 100%);
        border: 1px solid #E7D7C0;
        padding: 18px;
        border-radius: 22px;
        margin-bottom: 0;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
    }
    .smart-input-head {
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:12px;
        margin-bottom: 12px;
        flex-wrap: wrap;
    }
    .smart-input-box h4 {
        margin: 0;
        font-family: 'Cormorant Garamond', serif;
        font-size: 18px;
        color: var(--gold);
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .smart-input-kicker {
        display:inline-flex;
        align-items:center;
        gap:6px;
        padding:7px 10px;
        border-radius:999px;
        background:#fff;
        border:1px solid #EADCCA;
        color:#8B6B3F;
        font-size:11px;
        font-weight:700;
        letter-spacing:0.3px;
        white-space: nowrap;
    }
    .smart-input-row {
        display:grid;
        grid-template-columns: 200px minmax(0, 1fr) 190px;
        gap: 14px;
        align-items: stretch;
        margin-bottom: 0;
    }
    .smart-input-row input[type="date"],
    .smart-input-row input[type="text"],
    .smart-input-row textarea {
        width: 100%;
        min-width: 0;
        padding: 12px 14px;
        border: 1px solid #E2D4C0;
        border-radius: 14px;
        font-size: 14px;
        font-family: 'Inter', sans-serif;
        background: white;
        outline: none;
        box-sizing: border-box;
    }
    .smart-input-row textarea {
        resize: vertical;
        min-height: 136px;
    }
    .smart-input-row input:focus {
        border-color: var(--gold);
        box-shadow: 0 0 0 3px rgba(174,124,65,0.08);
    }
    .smart-input-row .btn {
        justify-content:center;
        min-height: 56px;
        border-radius: 14px;
        letter-spacing: 0.6px;
        align-self: stretch;
        font-size: 15px;
    }
    .smart-hint {
        display:flex;
        flex-wrap:wrap;
        gap:8px;
        margin-top: 4px;
    }
    .smart-hint-label {
        font-size: 11px;
        font-weight: 700;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.9px;
        padding-top: 6px;
    }
    .smart-hint-chips {
        display:flex;
        flex-wrap:wrap;
        gap:8px;
        flex:1;
    }
    .smart-hint-chip {
        display:inline-flex;
        align-items:center;
        padding:6px 10px;
        border-radius:999px;
        background:#fff;
        border:1px solid #EADCCA;
        color:#8B6B3F;
        font-size:12px;
        font-weight:700;
        line-height:1.2;
    }
    .attendance-confirm-list {
        display:grid;
        gap:12px;
        margin-top: 8px;
    }
    .attendance-confirm-item {
        border:1px solid #E7D7C0;
        border-radius:16px;
        padding:14px;
        background:#FCFBF8;
    }
    .attendance-confirm-item strong {
        display:block;
        color:var(--charcoal);
        font-size:14px;
        margin-bottom:6px;
    }
    .attendance-confirm-item p {
        margin:0 0 8px;
        font-size:12px;
        color:#6D665C;
        line-height:1.5;
        white-space:pre-wrap;
    }
    .attendance-confirm-item .attendance-confirm-meta {
        display:flex;
        flex-wrap:wrap;
        gap:8px;
        margin:0 0 10px;
    }
    .attendance-confirm-item .attendance-confirm-badge {
        display:inline-flex;
        align-items:center;
        gap:6px;
        padding:6px 10px;
        border-radius:999px;
        font-size:11px;
        font-weight:700;
        color:#8B6B3F;
        background:#FFF7EC;
        border:1px solid #E7D7C0;
    }
    .attendance-confirm-item select {
        width:100%;
        padding:10px 12px;
        border:1px solid var(--border);
        border-radius:12px;
        font-size:14px;
        font-family:'Inter', sans-serif;
        background:#fff;
    }
    .attendance-quick-card {
        margin-bottom: 16px;
    }
    .attendance-quick-layout {
        display:block;
    }
    .attendance-quick-card .smart-input-box {
        background: #FCFBF8;
    }
    .attendance-summary-grid {
        display:flex;
        gap:10px;
        margin: 0 0 14px;
        overflow-x:auto;
        padding-bottom: 2px;
        scrollbar-width: thin;
    }
    .attendance-summary-card {
        flex: 0 0 198px;
        min-height: 88px;
        display:flex;
        align-items:flex-start;
        gap:10px;
        background: linear-gradient(180deg, #fffdfa 0%, #f8f2e8 100%);
        border: 1px solid #E9DDCB;
        border-radius: 18px;
        padding: 12px 13px;
        box-shadow: none;
    }
    .attendance-summary-icon {
        width: 34px;
        height: 34px;
        border-radius: 12px;
        display:flex;
        align-items:center;
        justify-content:center;
        flex-shrink:0;
        background:#F4E7D2;
        color: var(--gold);
    }
    .attendance-summary-card.is-good .attendance-summary-icon {
        background:#E8F5E9;
        color:#2B8A3E;
    }
    .attendance-summary-card.is-alert .attendance-summary-icon {
        background:#FFEBEE;
        color:#C62828;
    }
    .attendance-summary-card.is-info .attendance-summary-icon {
        background:#E3F2FD;
        color:#1565C0;
    }
    .attendance-summary-body {
        min-width: 0;
        display:flex;
        flex-direction:column;
    }
    .attendance-summary-card .sum-label {
        display: block;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.9px;
        color: var(--muted);
        margin-bottom: 4px;
    }
    .attendance-summary-card .sum-value {
        font-size: 25px;
        line-height: 1;
        font-weight: 700;
        color: var(--charcoal);
        font-family: 'Cormorant Garamond', serif;
    }
    .attendance-summary-card .sum-note {
        margin-top: 6px;
        font-size: 11px;
        color: #6D665C;
        line-height: 1.38;
    }
    .attendance-summary-card.is-alert .sum-value { color: #C62828; }
    .attendance-summary-card.is-info .sum-value { color: #1565C0; }
    .attendance-summary-card.is-good .sum-value { color: #2B8A3E; }

    .attendance-board-card {
        background: rgba(255,255,255,0.96); border: 1px solid var(--border); border-radius: 22px; padding: 18px;
    }
    .attendance-board-toolbar {
        display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 12px; flex-wrap: wrap;
    }
    .attendance-board-toolbar > * {
        min-width: 0;
    }
    .attendance-board-title { font-size: 18px; font-weight: 700; color: var(--charcoal); margin: 0; }
    .attendance-board-desc { margin: 6px 0 0; font-size: 13px; color: #6D665C; max-width: 620px; line-height: 1.55; }
    .attendance-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
    .attendance-month-close-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 12px;
        border-radius: 999px;
        border: 1px solid var(--border);
        background: #FFF8EC;
        color: #8B6B3F;
        font-size: 12px;
        font-weight: 700;
        min-height: 38px;
    }
    .attendance-month-close-badge.closed {
        background: #E8F5E9;
        border-color: #CFE7D3;
        color: #2E7D32;
    }
    .attendance-month-close-badge.open {
        background: #FFF8EC;
        border-color: #E7D8BC;
        color: #8B6B3F;
    }
    .attendance-sync-card {
        border: 1px solid #E8DCC8; border-radius: 22px; background: #FCFBF8; padding: 16px 18px; margin-bottom: 0;
        display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; flex-wrap: wrap;
    }
    .attendance-sync-copy { flex: 1 1 380px; }
    .attendance-sync-copy,
    .attendance-sync-actions {
        min-width: 0;
    }
    .attendance-sync-title { font-size: 15px; font-weight: 700; color: var(--charcoal); margin-bottom: 4px; }
    .attendance-sync-note { font-size: 12px; color: #6D665C; line-height: 1.55; }
    .attendance-sync-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
    .attendance-sync-badge {
        display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border);
        background: white; font-size: 12px; color: var(--charcoal); min-height: 38px;
    }
    .attendance-sync-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
    .attendance-sync-chip {
        display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px;
        background: #fff; border: 1px solid #E8DCC8; font-size: 12px; color: var(--charcoal);
    }
    .attendance-sync-chip .dot {
        width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: #C62828;
        box-shadow: 0 0 0 4px rgba(198,40,40,0.08);
    }
    .attendance-sync-chip.online .dot { background: #2E7D32; box-shadow: 0 0 0 4px rgba(46,125,50,0.08); }
    .attendance-sync-meta { font-size: 11px; color: #7A746B; margin-top: 8px; }
    .attendance-legend {
        display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; padding: 12px; border: 1px solid #EEE4D5;
        border-radius: 12px; background: #FCFBF8;
    }
    .legend-pill {
        display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 10px;
        font-size: 11px; font-weight: 700; letter-spacing: 0.3px;
    }
    .legend-pill.full { background: #E8F5E9; color: #2E7D32; }
    .legend-pill.half { background: #FFF3E0; color: #E65100; }
    .legend-pill.absent { background: #FFEBEE; color: #C62828; }
    .legend-pill.trip { background: #E0F7FA; color: #00838F; }
    .legend-pill.leave { background: #E8F5E9; color: #388E3C; }
    .legend-pill.dot { background: #F8F5EF; color: #5E5341; }
    .legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
    .legend-dot.red { background: #e53935; }
    .legend-dot.blue { background: #1565C0; }

    /* Ma trận chấm công */
    .matrix-scroll-hint {
        display:inline-flex;
        align-items:center;
        gap:6px;
        padding:8px 12px;
        border-radius:999px;
        background:#fcfbf8;
        border:1px solid #eee4d5;
        color:#6d665c;
        font-size:12px;
        font-weight:700;
    }
    .matrix-scroll-sync {
        position: sticky;
        top: 0;
        z-index: 6;
        width: 100%;
        height: 18px;
        overflow-x: auto;
        overflow-y: hidden;
        margin-bottom: 10px;
        border: 1px solid #EEE4D5;
        border-radius: 999px;
        background: linear-gradient(180deg, #FCFBF8 0%, #F6F0E6 100%);
        -webkit-overflow-scrolling: touch;
    }
    .matrix-scroll-sync-track {
        height: 1px;
    }
    .matrix-scroll-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: white;
        cursor: grab;
        scrollbar-gutter: stable both-edges;
    }
    .matrix-scroll-wrapper.dragging {
        cursor: grabbing;
        user-select: none;
    }
    .matrix-table { width: max-content; min-width: 100%; border-collapse: collapse; font-size: 12px; text-align: center; table-layout: fixed; }
    .matrix-table th, .matrix-table td { border: 1px solid #E5DCCC; padding: 7px 5px; min-width: 32px; position: relative; white-space: nowrap; }
    .matrix-table th { background: var(--charcoal); color: var(--gold); font-weight: 600; font-size: 11px; }
    .matrix-table .matrix-sticky-left {
        position: sticky; left: 0; z-index: 10; background: #FAF7F2;
        box-shadow: 2px 0 5px rgba(0,0,0,0.05); min-width: 130px;
        text-align: left; padding-left: 10px;
    }
    .matrix-table th.matrix-sticky-left { background: var(--charcoal); color: var(--gold); z-index: 11; text-align: center; }
    .matrix-table .matrix-sticky-right {
        position: sticky; right: 0; z-index: 9; background: #FFFDF9; min-width: 170px;
        box-shadow: -2px 0 10px rgba(26,26,26,0.06);
    }
    .matrix-table th.matrix-sticky-right { background: var(--charcoal); color: var(--gold); z-index: 11; }
    .matrix-table .matrix-day-head,
    .matrix-table .matrix-day-weekday,
    .matrix-table .matrix-day-cell {
        width: 48px;
        min-width: 48px;
        max-width: 48px;
        padding-left: 4px;
        padding-right: 4px;
    }
    .matrix-table .matrix-summary-head { min-width: 92px; }
    .matrix-table .matrix-summary-cell { min-width: 92px; white-space: normal; line-height: 1.45; }
    .matrix-table .matrix-employee-cell { width: 220px; min-width: 220px; max-width: 220px; }
    .matrix-table .matrix-export-cell { width: 190px; min-width: 190px; max-width: 190px; }
    .matrix-table .matrix-dept-row td {
        background: linear-gradient(90deg, #F5EDD8 0%, #FCFBF8 100%);
        color: #6B5836;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.4px;
        text-transform: uppercase;
        text-align: left;
        padding: 10px 14px;
        white-space: normal;
    }
    .matrix-table tr.matrix-manager-row td {
        background-image: linear-gradient(90deg, rgba(174,124,65,0.08) 0%, rgba(174,124,65,0.02) 100%);
    }
    .matrix-table tr.matrix-manager-row .matrix-day-cell,
    .matrix-table tr.matrix-manager-row .matrix-summary-cell,
    .matrix-table tr.matrix-manager-row .matrix-export-cell {
        font-weight: 700;
    }
    .matrix-table .matrix-employee-name {
        display: block;
        font-size: 12px;
        font-weight: 700;
        color: var(--charcoal);
    }
    .matrix-table .matrix-employee-name.manager {
        font-weight: 900;
        color: #7C5528;
    }
    .matrix-table .matrix-employee-meta {
        display: block;
        margin-top: 2px;
    }
    .matrix-table .matrix-employee-meta.manager {
        font-weight: 800;
        color: #7C5528 !important;
    }
    .cell-full    { background: #E8F5E9 !important; color: #2E7D32; font-weight: 700; }
    .cell-half    { background: #FFF3E0 !important; color: #E65100; font-weight: 700; }
    .cell-absent  { background: #FFEBEE !important; color: #C62828; font-weight: 700; }
    .cell-cong-tac{ background: #E0F7FA !important; color: #00838F; font-weight: 700; }
    .cell-leave   { background: #E8F5E9 !important; color: #388E3C; font-weight: 700; font-style: italic; }
    .cell-holiday { background: #F3E5F5 !important; color: #7B1FA2; font-weight: 700; }
    .cell-empty   { background: #fafafa; color: #ccc; }
    .attendance-checkin-dot { color: #E53935 !important; font-size: 18px; line-height: 1; font-weight: 900; display: inline-block; }
    .badge-violation { width: 6px; height: 6px; background: #e53935; border-radius: 50%; position: absolute; top: 2px; right: 2px; display: inline-block; }
    .badge-ot        { width: 6px; height: 6px; background: #1565C0; border-radius: 50%; position: absolute; bottom: 2px; right: 2px; display: inline-block; }
    .cell-popover {
        display: none; position: absolute; bottom: 110%; left: 50%; transform: translateX(-50%);
        background: #1A1A1A; color: white; padding: 8px 10px; border-radius: 6px;
        font-size: 11px; z-index: 999; width: 170px; text-align: left;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3); white-space: normal; line-height: 1.5;
    }
    td:hover .cell-popover { display: block; }
    .row-total-cell { font-weight: 700; background: var(--gold-pale) !important; color: var(--charcoal); }
    .row-export-wrap { display: flex; align-items: center; justify-content: center; }
    .row-export-note {
        display: block;
        font-size: 11px;
        line-height: 1.35;
        color: var(--muted);
        font-weight: 700;
        text-align: center;
    }
    .row-export-btn {
        border: none; background: linear-gradient(135deg, #AE7C41 0%, #8C6431 100%); color: white; border-radius: 999px;
        padding: 8px 12px; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
        box-shadow: 0 10px 18px rgba(174,124,65,0.18);
    }
    .row-export-btn:hover { transform: translateY(-1px); }

    .attendance-report-modal {
        max-width: 1180px; max-height: calc(100vh - 40px); padding: 0; overflow: hidden;
        display: flex; flex-direction: column;
    }
    .attendance-report-modal .modal-header {
        padding: 24px 28px 18px; border-bottom: 1px solid var(--border); flex-shrink: 0;
    }
    .attendance-report-modal .modal-body { padding: 0; }
    .attendance-modal-meta {
        padding: 16px 28px; display: flex; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid #EFE8DD; background: #FCFBF8;
        flex-shrink: 0;
    }
    .attendance-meta-pill {
        display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: white; border: 1px solid var(--border);
        border-radius: 999px; font-size: 12px; color: var(--charcoal);
    }
    .attendance-preview-stage {
        background: linear-gradient(180deg, #F3EEE5 0%, #EEE4D4 100%); padding: 22px;
        flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain;
    }
    .attendance-preview-shell {
        width: min(100%, 840px); margin: 0 auto; background: white; border-radius: 14px; box-shadow: 0 18px 40px rgba(26,26,26,0.12);
        padding: 28px;
    }
    .attendance-preview-loading {
        min-height: 240px; display: flex; align-items: center; justify-content: center; color: #6D665C; font-size: 14px;
    }
    .attendance-report-actions {
        padding: 18px 28px 24px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
        border-top: 1px solid var(--border); background: white; flex-shrink: 0;
        box-shadow: 0 -10px 24px rgba(26,26,26,0.05);
    }
    .attendance-send-box {
        flex: 1 1 420px; border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; background: #FCFBF8;
    }
    .attendance-send-box .send-title { font-size: 14px; font-weight: 700; color: var(--charcoal); margin-bottom: 6px; }
    .attendance-send-box .send-note { font-size: 12px; color: #6D665C; margin-bottom: 12px; line-height: 1.55; }
    .attendance-send-actions { display: flex; gap: 10px; flex-wrap: wrap; }
    .btn-zalo { background: #0068FF; color: white; }
    .btn-zalo:hover { background: #0057d6; }
    .btn-email { background: #2B8A3E; color: white; }
    .btn-email:hover { background: #236632; }
    .attendance-report-shell { color: var(--charcoal); }
    .attendance-report-header { text-align: center; padding-bottom: 14px; border-bottom: 2px solid var(--gold); margin-bottom: 14px; }
    .attendance-report-brand {
        font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 4px;
    }
    .attendance-report-header h1 {
        margin: 0; font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 600; color: var(--charcoal);
    }
    .attendance-report-header p { margin: 6px 0 0; color: #6D665C; font-size: 12px; line-height: 1.5; }
    .attendance-report-meta {
        display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px;
    }
    .attendance-report-meta-card, .attendance-report-stat {
        border: 1px solid var(--border); border-radius: 8px; background: #FCFBF8; padding: 9px 10px;
    }
    .attendance-report-meta-card strong, .attendance-report-stat strong {
        display: block; font-size: 14px; color: var(--charcoal); line-height: 1.3;
    }
    .meta-label {
        display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.7px; color: #7A746B; margin-bottom: 4px;
    }
    .attendance-report-summary {
        display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px;
    }
    .attendance-report-stat span {
        display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.7px; color: #7A746B; margin-bottom: 4px;
    }
    .attendance-report-table { width: 100%; border-collapse: collapse; font-size: 11px; table-layout: fixed; }
    .attendance-report-table th, .attendance-report-table td { border: 1px solid #D9D1C2; padding: 6px 5px; vertical-align: middle; text-align: center; word-break: break-word; }
    .attendance-report-table th { background: var(--charcoal); color: var(--gold-pale); font-size: 10px; text-transform: uppercase; letter-spacing: 0.4px; }
    .attendance-report-date-cell strong, .attendance-report-daywork-cell strong { display: block; font-size: 12px; color: var(--charcoal); }
    .attendance-report-date-cell span, .attendance-report-daywork-cell span { display: block; margin-top: 2px; color: #6D665C; font-size: 10px; line-height: 1.4; }
    .attendance-report-daywork-cell { background: #FCFBF8; }
    .attendance-report-daywork-cell strong { font-size: 14px; line-height: 1.2; }
    .daywork-label { margin-top: 4px !important; }
    .attendance-report-footer {
        display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 10px; color: #6D665C;
    }

    /* Calendar cá nhân */
    .calendar-stage {
        background: rgba(255,255,255,0.96);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow);
        padding: 20px;
    }
    .attendance-focus-layout {
        display: contents;
    }
    .calendar-stage-legend {
        display:flex;
        flex-wrap:wrap;
        gap:12px;
        margin-bottom:16px;
        font-size:12px;
    }
    .stats-stage {
        margin-top:16px;
        background:var(--gold-pale);
        border:1px solid var(--border);
        border-radius:18px;
        padding:16px;
        display:none;
    }
    .attendance-month-list {
        display: grid;
        gap: 10px;
    }
    .attendance-month-card {
        width: 100%;
        border: 1px solid #E9DCC8;
        border-radius: 18px;
        background: linear-gradient(180deg, #fffdfa 0%, #f8f2e8 100%);
        padding: 14px 16px;
        text-align: left;
        cursor: pointer;
        transition: 0.2s ease;
    }
    .attendance-month-card:hover,
    .attendance-month-card.active {
        border-color: var(--gold);
        box-shadow: 0 12px 26px rgba(174,124,65,0.12);
        transform: translateY(-1px);
    }
    .attendance-month-card strong {
        display: block;
        font-size: 14px;
        color: var(--charcoal);
        margin-bottom: 6px;
    }
    .attendance-month-card span {
        display: block;
        font-size: 12px;
        color: #6D665C;
        line-height: 1.55;
    }
    .attendance-month-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-top: 8px;
        padding: 5px 10px;
        border-radius: 999px;
        background: rgba(174,124,65,0.12);
        color: #8A6332;
        font-size: 11px;
        font-weight: 700;
    }
    .attendance-accepted-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 5px 10px;
        border-radius: 999px;
        background: rgba(46,125,50,0.14);
        color: #1E6B2A;
        font-size: 12px;
        font-weight: 700;
    }
    .attendance-accepted-note {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
        border-radius: 12px;
        background: #EDF7EF;
        border: 1px solid #C8E6CD;
        color: #1E6B2A;
        font-size: 13px;
        font-weight: 700;
    }
    .attendance-cta-box {
        margin-top: 16px;
        border: 1px solid #E9DCC8;
        border-radius: 20px;
        background: linear-gradient(135deg, #fffdfa 0%, #f7efe2 100%);
        padding: 18px;
        display: none;
    }
    .attendance-cta-box.active {
        display: block;
    }
    .attendance-cta-box h4 {
        margin: 0 0 8px;
        font-size: 18px;
        color: var(--charcoal);
        font-family: 'Cormorant Garamond', serif;
    }
    .attendance-cta-box p {
        margin: 0;
        font-size: 13px;
        color: #6D665C;
        line-height: 1.65;
    }
    .attendance-cta-actions {
        margin-top: 14px;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .attendance-reconciliation-card {
        margin-top: 16px;
        background: rgba(255,255,255,0.98);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow);
        padding: 22px;
        display: none;
    }
    .attendance-reconciliation-card.active {
        display: block;
    }
    .attendance-reconciliation-head {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        align-items: flex-start;
        flex-wrap: wrap;
        margin-bottom: 16px;
    }
    .attendance-reconciliation-head h3 {
        margin: 0 0 6px;
        font-family: 'Cormorant Garamond', serif;
        font-size: 30px;
        color: var(--charcoal);
    }
    .attendance-reconciliation-head p {
        margin: 0;
        color: #6D665C;
        font-size: 13px;
        line-height: 1.6;
        max-width: 760px;
    }
    .attendance-reconciliation-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .attendance-reconciliation-print-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
        justify-content: flex-end;
    }
    .attendance-reconciliation-meta span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 12px;
        border: 1px solid #E9DCC8;
        border-radius: 999px;
        background: #FCFBF8;
        font-size: 12px;
        color: var(--charcoal);
    }
    .attendance-reconciliation-sheet {
        border: 1px solid #E7D9C4;
        border-radius: 22px;
        overflow: hidden;
        background: #fff;
    }
    .attendance-sheet-header {
        padding: 24px 22px 18px;
        text-align: center;
        border-bottom: 1px solid #EFE6D8;
        background: linear-gradient(180deg, #fffdfa 0%, #faf6ef 100%);
    }
    .attendance-sheet-header h4 {
        margin: 0;
        font-family: 'Cormorant Garamond', serif;
        font-size: 34px;
        color: var(--charcoal);
    }
    .attendance-sheet-header p {
        margin: 8px 0 0;
        font-size: 13px;
        color: #6D665C;
    }
    .attendance-sheet-employee {
        padding: 14px 22px;
        border-bottom: 1px solid #EFE6D8;
        font-size: 14px;
        color: var(--charcoal);
        background: #fffdfa;
    }
    .attendance-sheet-summary {
        padding: 16px 22px;
        display: grid;
        gap: 12px;
        border-bottom: 1px solid #EFE6D8;
        background: #FCFBF8;
    }
    .attendance-sheet-summary.recheck-locked {
        opacity: 0.58;
        filter: grayscale(0.15);
    }
    .attendance-sheet-summary-row {
        display: grid;
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 12px;
        align-items: flex-start;
    }
    .attendance-sheet-summary-label {
        font-weight: 700;
        color: var(--charcoal);
        font-size: 13px;
    }
    .attendance-sheet-summary textarea {
        width: 100%;
        min-height: 64px;
        resize: vertical;
        border: 1px solid #DECDB4;
        border-radius: 14px;
        padding: 12px 14px;
        font: inherit;
        font-size: 13px;
        background: #fff;
        color: var(--charcoal);
        outline: none;
    }
    .attendance-sheet-summary.recheck-locked textarea {
        background: #F5F1EA;
        cursor: not-allowed;
    }
    .attendance-sheet-summary textarea:focus,
    .attendance-reconciliation-table textarea:focus {
        border-color: var(--gold);
        box-shadow: 0 0 0 3px rgba(174,124,65,0.12);
    }
    .attendance-reconciliation-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        cursor: grab;
    }
    .attendance-reconciliation-scroll.dragging {
        cursor: grabbing;
        user-select: none;
    }
    .attendance-reconciliation-scrollbar {
        overflow-x: auto;
        overflow-y: hidden;
        height: 18px;
        margin: 14px 22px 12px;
        border: 1px solid #E7D9C4;
        border-radius: 999px;
        background: linear-gradient(180deg, #FCFBF8 0%, #F2E8D9 100%);
        -webkit-overflow-scrolling: touch;
    }
    .attendance-reconciliation-scrollbar-track {
        height: 1px;
    }
    .attendance-reconciliation-table {
        width: 100%;
        min-width: 940px;
        border-collapse: collapse;
        table-layout: fixed;
    }
    .attendance-reconciliation-table col.col-order { width: 4.5%; }
    .attendance-reconciliation-table col.col-date { width: 9%; }
    .attendance-reconciliation-table col.col-credit { width: 8.5%; }
    .attendance-reconciliation-table col.col-weekday { width: 7%; }
    .attendance-reconciliation-table col.col-time { width: 7.5%; }
    .attendance-reconciliation-table col.col-note { width: 15%; }
    .attendance-reconciliation-table col.col-explanation { width: 41%; }
    .attendance-reconciliation-table th,
    .attendance-reconciliation-table td {
        border: 1px solid #E7D9C4;
        padding: 7px 6px;
        vertical-align: middle;
        text-align: center;
        font-size: 12px;
        color: var(--charcoal);
    }
    .attendance-reconciliation-table th {
        background: #1A1A1A;
        color: #F5EDD8;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .attendance-reconciliation-table td strong {
        font-size: inherit;
    }
    .attendance-reconciliation-table textarea {
        width: 100%;
        min-height: 58px;
        resize: vertical;
        border: 1px solid #DECDB4;
        border-radius: 10px;
        padding: 8px 10px;
        font: inherit;
        font-size: 12px;
        line-height: 1.4;
        text-align: center;
        background: #fff;
        color: var(--charcoal);
        outline: none;
    }
    .attendance-reconciliation-table tr.is-sunday td {
        background: #FBF8F1;
        color: #8A7A66;
    }
    .attendance-reconciliation-note {
        display: block;
        line-height: 1.35;
        word-break: break-word;
        text-align: center;
    }
    .reconciliation-sunday-note {
        display: inline-flex;
        align-items: center;
        padding: 4px 7px;
        border-radius: 999px;
        background: #F2E8D9;
        color: #6B5836;
        font-size: 11px;
        font-weight: 700;
    }
    .attendance-review-card-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 16px 18px 18px;
        background: #fff;
    }
    .attendance-review-card-list.hc-review-mode {
        grid-template-columns: 1fr;
    }
    .attendance-review-day-card {
        border: 1.5px solid #333;
        background: #fff;
        display: grid;
        grid-template-columns: 128px minmax(0, 1fr);
        min-height: 118px;
        color: #111;
        overflow: hidden;
    }
    /* Thu gọn 1 dòng khi HC đã bấm Đồng ý/Từ chối cho ngày đó */
    .attendance-review-day-card.collapsed-decision {
        display: flex;
        min-height: 0;
        align-items: center;
        gap: 12px;
        padding: 10px 14px;
        flex-wrap: wrap;
    }
    .attendance-review-day-card.collapsed-decision.approved {
        border-color: #1E6B2A;
        background: #F1F8F1;
    }
    .attendance-review-day-card.collapsed-decision.rejected {
        border-color: #D32F2F;
        background: #FFF3F1;
    }
    .attendance-review-collapsed-date {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        font-weight: 700;
        color: #1A1A1A;
        min-width: 140px;
    }
    .attendance-review-collapsed-date small {
        font-size: 11px;
        color: #6D665C;
        font-weight: 600;
    }
    .attendance-review-collapsed-state {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        font-weight: 700;
        flex: 1 1 auto;
    }
    .attendance-review-day-card.collapsed-decision.approved .attendance-review-collapsed-state { color: #1E6B2A; }
    .attendance-review-day-card.collapsed-decision.rejected .attendance-review-collapsed-state { color: #B71C1C; }
    .attendance-review-collapsed-state .material-icons { font-size: 18px; }
    .attendance-review-collapsed-hint {
        font-size: 11px;
        color: #6D665C;
        font-weight: 500;
        margin-left: 4px;
    }
    .attendance-review-collapsed-actions {
        display: inline-flex;
        gap: 8px;
    }
    .attendance-review-collapsed-actions button {
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 8px;
    }
    /* Cum nut Dong y / Tu choi nho, dat inline canh dong De xuat */
    .attendance-inline-decision {
        display: inline-flex;
        gap: 6px;
        margin-left: 10px;
        align-items: center;
    }
    .attendance-inline-decision-btn {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 4px 10px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 700;
        border: 1px solid transparent;
        cursor: pointer;
        transition: transform .1s ease, filter .1s ease;
    }
    .attendance-inline-decision-btn .material-icons { font-size: 14px; }
    .attendance-inline-decision-btn.approve { background: #E7F5EA; color: #1E6B2A; border-color: #C8E6CD; }
    .attendance-inline-decision-btn.reject  { background: #FBEAEA; color: #B71C1C; border-color: #F1C1BE; }
    .attendance-inline-decision-btn:hover { filter: brightness(0.96); transform: translateY(-1px); }
    .attendance-inline-decision-btn:active { transform: translateY(0); }
    /* Trang thai da chon: to hon, dam mau hon, co bong nhe */
    .attendance-inline-decision-btn.approve.is-selected {
        background: #1E6B2A; color: #fff; border-color: #1E6B2A;
        box-shadow: 0 2px 6px rgba(30,107,42,0.35);
    }
    .attendance-inline-decision-btn.reject.is-selected {
        background: #B71C1C; color: #fff; border-color: #B71C1C;
        box-shadow: 0 2px 6px rgba(183,28,28,0.35);
    }
    .attendance-review-day-card.has-review-actions {
        grid-template-columns: 128px minmax(0, 1fr) 124px;
    }
    .attendance-review-day-card.hc-review-card {
        grid-template-columns: 150px minmax(0, 1fr);
    }
    .attendance-review-day-card.hc-review-card.has-review-actions {
        grid-template-columns: 150px minmax(0, 1fr) 154px;
    }
    .attendance-review-day-card.rejected {
        border-color: #D32F2F;
        box-shadow: inset 0 0 0 2px rgba(211,47,47,0.12);
    }
    .attendance-review-day-card.approved {
        border-color: #2B8A3E;
    }
    .attendance-review-day-card.dimmed {
        opacity: 0.34;
        filter: grayscale(0.25);
    }
    .attendance-review-day-card.recheck {
        border-color: #D32F2F;
        box-shadow: 0 0 0 3px rgba(211,47,47,0.16), inset 0 0 0 2px rgba(211,47,47,0.12);
    }
    .attendance-recheck-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-top: 4px;
        padding: 4px 7px;
        border-radius: 999px;
        background: #FFEBEE;
        color: #B71C1C;
        font-size: 10px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.2px;
    }
    .attendance-recheck-topup {
        margin-bottom: 7px;
        padding: 7px 9px;
        border-radius: 10px;
        background: #FFF5F5;
        border: 1px solid #F2C6C6;
        color: #B71C1C;
        font-size: 12px;
        font-weight: 900;
        line-height: 1.35;
    }
    .attendance-work-adjustment {
        margin-top: 8px;
        padding: 9px;
        border-radius: 12px;
        background: #F8F3EA;
        border: 1px solid #E7D8C2;
        display: grid;
        gap: 7px;
        font-size: 12px;
        color: #4B4033;
    }
    .attendance-work-adjustment.has-dispute {
        border-color: #D86A5A;
        box-shadow: 0 0 0 2px rgba(216,106,90,0.14);
        background: linear-gradient(135deg, #FFF8F5 0%, #FFF2EC 100%);
    }
    .attendance-work-adjustment-row {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    /* Title chiem het khong gian con lai (flex-basis nho 60px de khong bao gio
       ep dropdown xuong dong duoi). Dropdown/o-locked luon 130px ben phai,
       dam bao tren card hep vẫn cùng hàng. Cac nut Dong y/Tu choi khi hien
       (HC review) co the wrap xuong dong duoi neu that su chat. */
    .attendance-work-adjustment-row > .attendance-work-item-title {
        flex: 1 1 60px;
        min-width: 0;
    }
    .attendance-work-adjustment select,
    .attendance-work-adjustment .attendance-locked-value {
        flex: 0 0 130px;
        border-radius: 10px;
        padding: 8px 10px;
        font: inherit;
        font-size: 13px;
        font-weight: 700;
        text-align: center;
        box-sizing: border-box;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .attendance-work-adjustment select {
        border: 1.5px solid #DECDB4;
        background: #fff;
        color: #1A1A1A;
        outline: none;
        cursor: pointer;
    }
    /* O tinh cong / tang ca da chot cung (khong cho sua) — nhin nhu dropdown
       nhung khong bam duoc, mau nhat hon de phan biet. */
    .attendance-work-adjustment .attendance-locked-value {
        border: 1.5px dashed #D8CDB4;
        background: #FAF6EF;
        color: #4B4033;
    }
    .attendance-work-adjustment select:hover {
        border-color: var(--gold, #AE7C41);
    }
    .attendance-work-adjustment select:focus {
        border-color: var(--gold, #AE7C41);
        box-shadow: 0 0 0 3px rgba(174,124,65,0.15);
    }
    .attendance-work-adjustment strong {
        color: var(--charcoal);
    }
    .attendance-work-item-title {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        font-size: 13px;
        line-height: 1.35;
        font-weight: 900;
    }
    .attendance-work-item-requested {
        color: #4B4033;
        font-weight: 900;
    }
    .attendance-work-item-mark {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 0;
        border-radius: 0;
        background: transparent;
        border: none;
        font-size: 13px;
        font-weight: 900;
        line-height: 1.35;
    }
    .attendance-work-item-mark.approved {
        color: #1B8A3A;
    }
    .attendance-work-item-mark.rejected {
        color: #C62828;
    }
    .attendance-work-compare {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        flex-wrap: wrap;
        justify-content: flex-end;
        text-align: right;
    }
    .attendance-work-compare-old {
        color: #C14E42;
        font-weight: 800;
        text-decoration: line-through;
        text-decoration-thickness: 2px;
    }
    .attendance-work-compare-arrow {
        color: #B58645;
        font-weight: 900;
    }
    .attendance-work-compare-new {
        color: #8A5A00;
        font-weight: 900;
    }
    .attendance-work-dispute-alert {
        display: grid;
        gap: 6px;
        padding: 12px 13px;
        border-radius: 12px;
        background: linear-gradient(135deg, #FFF5F2 0%, #FFE9E2 100%);
        border: 1px solid #F0B7A8;
        color: #9D3427;
    }
    .attendance-work-dispute-alert strong {
        color: #A33A2D;
        font-size: 15px;
        line-height: 1.35;
    }
    .attendance-work-dispute-alert span {
        font-size: 14px;
        line-height: 1.55;
        color: #7A3027;
        font-weight: 800;
    }
    .attendance-work-dispute-alert span .attendance-work-compare {
        justify-content: flex-start;
        text-align: left;
        font-size: 17px;
        font-weight: 900;
    }
    .attendance-work-dispute-alert span .attendance-work-compare-old {
        font-size: 17px;
        color: #C13F31;
    }
    .attendance-work-dispute-alert span .attendance-work-compare-arrow,
    .attendance-work-dispute-alert span .attendance-work-compare-new {
        font-size: 17px;
    }
    .attendance-work-final-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap;
    }
    .attendance-work-final-status {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 5px 10px;
        border-radius: 999px;
        background: rgba(255,255,255,0.75);
        border: 1px solid rgba(155,92,0,0.2);
        color: #8A5A00;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.2px;
    }
    .attendance-work-appeal-ticket {
        display: grid;
        gap: 6px;
        padding: 10px 11px;
        border-radius: 11px;
        background: #FFF6E5;
        border: 1px solid #E9C67D;
    }
    .attendance-work-appeal-ticket strong {
        color: #8A5A00;
    }
    .attendance-work-final {
        display: grid;
        gap: 6px;
        margin-top: 2px;
        padding: 10px 11px;
        border-radius: 12px;
        background: linear-gradient(135deg, #FFF7E4 0%, #F5E6BF 100%);
        border: 1px solid #D9BE79;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
    }
    .attendance-work-final-title {
        font-size: 10px;
        font-weight: 900;
        color: #8A5A00;
        text-transform: uppercase;
        letter-spacing: 0.4px;
    }
    .attendance-work-final-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 8px;
    }
    .attendance-work-final-box {
        position: relative;
        min-width: 0;
        padding: 8px 9px;
        border-radius: 10px;
        background: rgba(255,255,255,0.88);
        border: 1px solid rgba(138,90,0,0.2);
        text-align: center;
    }
    .attendance-work-final-box.approved {
        border-color: rgba(43,138,62,0.38);
        box-shadow: inset 0 0 0 1px rgba(43,138,62,0.08);
    }
    .attendance-work-final-box.rejected {
        border-color: rgba(198,40,40,0.36);
        box-shadow: inset 0 0 0 1px rgba(198,40,40,0.08);
    }
    .attendance-work-final-label {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin-bottom: 3px;
        font-size: 10px;
        font-weight: 800;
        color: #7B6745;
        text-transform: uppercase;
    }
    .attendance-work-final-label-mark {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 19px;
        height: 19px;
        border-radius: 999px;
        font-size: 15px;
        font-weight: 900;
    }
    .attendance-work-final-label-mark.approved {
        background: #E8F5E9;
        color: #1B8A3A;
    }
    .attendance-work-final-label-mark.rejected {
        background: #FFEBEE;
        color: #C62828;
    }
    .attendance-work-final-value {
        display: block;
        font-size: 18px;
        line-height: 1.1;
        font-weight: 900;
        color: #9B5C00;
    }
    .attendance-work-final-box.locked {
        background: #F7F4EE;
        border-style: dashed;
    }
    .attendance-work-final-box.locked .attendance-work-final-value {
        color: #5F574D;
    }
    .attendance-work-final-box.meal-box .attendance-work-final-value {
        font-size: 16px;
    }
    .attendance-work-status {
        display: inline-flex;
        align-items: center;
        width: fit-content;
        padding: 4px 8px;
        border-radius: 999px;
        background: #EFE6D8;
        color: #6B5836;
        font-size: 11px;
        font-weight: 900;
    }
    .attendance-work-status.deducted,
    .attendance-work-status.appeal_rejected {
        background: #FFEBEE;
        color: #B71C1C;
    }
    .attendance-work-status.appeal_pending {
        background: #FFF4D6;
        color: #8A5A00;
    }
    .attendance-work-status.approved,
    .attendance-work-status.appeal_approved {
        background: #E8F5E9;
        color: #1B5E20;
    }
    .attendance-work-adjustment.is-user-view {
        background: #FBF8F1;
    }
    .attendance-work-appeal-cta {
        margin-top: 2px;
        padding: 12px;
        border-radius: 14px;
        background: linear-gradient(135deg, #FFF1EE 0%, #FFE1DA 100%);
        border: 1px solid #F2B2A6;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
    }
    .attendance-work-appeal-button {
        width: 100%;
        min-height: 52px;
        border: none;
        border-radius: 12px;
        background: linear-gradient(135deg, #D64232 0%, #B82118 100%);
        color: #fff;
        font-size: 19px;
        font-weight: 900;
        letter-spacing: 0.1px;
        box-shadow: 0 10px 24px rgba(182,33,24,0.22);
    }
    .attendance-work-appeal-button:hover {
        filter: brightness(1.03);
    }
    .attendance-work-appeal-button:active {
        transform: translateY(1px);
    }
    .attendance-review-day-main {
        background: #f2f2f2;
        border-right: 1.5px solid #333;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        text-align: center;
        padding: 10px 8px;
    }
    .attendance-review-day-main span {
        font-size: 12px;
        font-weight: 800;
        color: #555;
    }
    .attendance-review-day-main strong {
        font-family: "Times New Roman", serif;
        font-size: 27px;
        line-height: 1;
    }
    .attendance-review-day-main b {
        font-size: 15px;
    }
    .attendance-review-credit {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 72px;
        max-width: 170px;
        padding: 5px 10px;
        border-radius: 999px;
        border: 1px solid #aaa;
        background: #fff;
        font-size: 13px;
        font-weight: 800;
        text-align: center;
        line-height: 1.28;
        white-space: normal;
    }
    .attendance-review-day-body {
        display: grid;
        grid-template-rows: auto 1fr;
        min-width: 0;
    }
    .attendance-review-day-top {
        display: grid;
        grid-template-columns: 78px 78px 68px minmax(0, 1fr);
        border-bottom: 1.5px solid #333;
    }
    .attendance-review-day-card.hc-review-card .attendance-review-day-top {
        grid-template-columns: 92px 92px 86px minmax(180px, 1fr);
    }
    .attendance-review-cell {
        padding: 7px 8px;
        text-align: center;
        border-right: 1.5px solid #333;
        min-width: 0;
    }
    .attendance-review-day-card.hc-review-card .attendance-review-cell {
        padding: 8px 10px;
    }
    .attendance-review-cell:last-child {
        border-right: 0;
    }
    .attendance-review-label {
        display: block;
        font-size: 10px;
        text-transform: uppercase;
        font-weight: 800;
        color: #555;
        margin-bottom: 3px;
    }
    .attendance-review-value {
        display: block;
        font-size: 15px;
        line-height: 1.2;
        font-weight: 700;
        word-break: break-word;
    }
    .attendance-review-day-card.hc-review-card .attendance-review-value {
        font-size: 14px;
    }
    .attendance-review-day-card.hc-review-card .attendance-review-cell:last-child .attendance-review-value {
        line-height: 1.45;
        word-break: normal;
        overflow-wrap: anywhere;
    }
    .attendance-review-note-empty {
        color: #999;
        font-style: italic;
        font-weight: 800;
    }
    .attendance-review-explanation {
        padding: 8px 10px;
        min-width: 0;
    }
    .attendance-review-day-card.hc-review-card .attendance-review-explanation {
        padding: 10px 12px;
    }
    .attendance-review-explanation textarea {
        width: 100%;
        min-height: 56px;
        border: 0;
        outline: none;
        resize: vertical;
        font: inherit;
        font-size: 14px;
        line-height: 1.35;
        font-weight: 800;
        color: #111;
        background: transparent;
        padding: 0;
    }
    .attendance-review-explanation textarea.rejected {
        border: 1.5px solid #D32F2F;
        border-radius: 10px;
        background: #FFF1F1;
        padding: 8px 10px;
        color: #B71C1C;
    }
    .attendance-review-explanation textarea:disabled {
        color: #7A746B;
        cursor: not-allowed;
    }
    .attendance-review-reject-note {
        margin-top: 6px;
        padding: 7px 9px;
        border-radius: 10px;
        background: #FFEBEE;
        color: #B71C1C;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.35;
    }
    .attendance-review-reject-note span {
        display: block;
        margin-top: 3px;
        font-weight: 700;
    }
    .attendance-review-actions {
        border-left: 1.5px solid #333;
        background: #FDF7EF;
        display: grid;
        grid-template-rows: 1fr 1fr;
        min-width: 0;
    }
    .attendance-review-day-card.hc-review-card .attendance-review-actions {
        align-self: stretch;
        min-height: 100%;
        grid-template-rows: minmax(96px, 1fr) minmax(96px, 1fr);
    }
    .attendance-review-action {
        border: 0;
        border-bottom: 1.5px solid #333;
        background: #fff;
        font: inherit;
        font-size: 11px;
        font-weight: 900;
        color: #2B8A3E;
        cursor: pointer;
        padding: 9px 7px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: 1.25;
        text-transform: uppercase;
        letter-spacing: 0.2px;
    }
    .attendance-review-day-card.hc-review-card .attendance-review-action {
        font-size: 13px;
        padding: 10px 8px;
    }
    .attendance-review-action:last-child {
        border-bottom: 0;
        color: #D32F2F;
    }
    .attendance-review-action.active.approve {
        background: #E8F5E9;
        color: #1B5E20;
        box-shadow: inset 4px 0 0 #2B8A3E;
    }
    .attendance-review-action.active.reject {
        background: #FFEBEE;
        color: #B71C1C;
        box-shadow: inset 4px 0 0 #D32F2F;
    }
    .attendance-review-action:disabled {
        cursor: not-allowed;
        opacity: 0.58;
    }
    .attendance-review-actions.is-final {
        grid-template-rows: 1fr;
    }
    .attendance-review-day-card.hc-review-card .attendance-review-actions.is-final {
        display: flex;
    }
    .attendance-review-decision-state {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-height: 100%;
        padding: 12px 8px;
        text-align: center;
        font-size: 12px;
        font-weight: 900;
        line-height: 1.25;
        text-transform: uppercase;
        letter-spacing: 0.2px;
    }
    .attendance-review-day-card.hc-review-card .attendance-review-decision-state {
        flex: 1;
        height: 100%;
        padding: 14px 10px;
    }
    .attendance-review-decision-state .material-icons {
        font-size: 24px;
    }
    .attendance-review-decision-state small {
        display: block;
        font-size: 10px;
        font-weight: 800;
        opacity: 0.72;
        text-transform: none;
        letter-spacing: 0;
    }
    .attendance-review-decision-state.can-change {
        cursor: pointer;
    }
    .attendance-review-decision-state.approved {
        background: #E8F5E9;
        color: #1B5E20;
        box-shadow: inset 5px 0 0 #2B8A3E;
    }
    .attendance-review-decision-state.rejected {
        background: #FFEBEE;
        color: #B71C1C;
        box-shadow: inset 5px 0 0 #D32F2F;
    }
    .attendance-line-reject-modal {
        max-width: 760px;
    }
    .attendance-line-reject-box {
        display: grid;
        gap: 12px;
    }
    .attendance-line-reject-context {
        padding: 13px 15px;
        border-radius: 16px;
        border: 1px solid #F2C6C6;
        background: #FFF5F5;
        color: #842029;
        font-size: 13px;
        line-height: 1.55;
    }
    .attendance-line-reject-box textarea {
        width: 100%;
        min-height: 190px;
        resize: vertical;
        border: 1px solid #DECDB4;
        border-radius: 16px;
        padding: 14px 16px;
        font: inherit;
        font-size: 14px;
        outline: none;
    }
    .attendance-line-reject-actions {
        display: flex;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 10px;
    }
    .attendance-sheet-total {
        padding: 14px 22px;
        display: flex;
        justify-content: space-between;
        gap: 12px;
        align-items: center;
        background: #fffdfa;
        border-top: 1px solid #EFE6D8;
        font-size: 13px;
        color: var(--charcoal);
    }
    .attendance-sheet-signatures {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 18px 22px 22px;
        border-top: 1px solid #EFE6D8;
        background: #fff;
        text-align: center;
    }
    .attendance-signature-box {
        min-height: 108px;
        border: 1px solid #E7D9C4;
        border-radius: 16px;
        padding: 12px;
        position: relative;
        background: #fffdfa;
        color: var(--charcoal);
    }
    .attendance-signature-title {
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        font-weight: 800;
    }
    .attendance-signature-stamp {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 18px auto 12px;
        min-width: 128px;
        min-height: 34px;
        padding: 5px 14px;
        border: 2px solid #2B8A3E;
        border-radius: 6px;
        color: #2B8A3E;
        font-size: 12px;
        font-weight: 900;
        transform: rotate(-6deg);
        text-transform: uppercase;
        letter-spacing: 0.4px;
        background: rgba(255,255,255,0.72);
    }
    .attendance-signature-stamp.pending {
        border-color: #9C8B73;
        color: #7A6B58;
        transform: none;
    }
    .attendance-signature-stamp.reject {
        border-color: #D32F2F;
        color: #D32F2F;
    }
    .attendance-signature-name {
        font-family: 'Cormorant Garamond', serif;
        font-size: 20px;
        font-weight: 700;
        color: var(--gold);
        min-height: 24px;
    }
    .attendance-signature-date {
        font-size: 12px;
        color: #6D665C;
        font-style: italic;
        margin-top: 4px;
    }
    .attendance-print-root {
        display: none;
    }
    .attendance-sheet-actions {
        padding: 18px 22px 22px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 14px;
        flex-wrap: wrap;
        background: #FCFBF8;
        border-top: 1px solid #EFE6D8;
    }
    .attendance-sheet-action-buttons {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .attendance-manager-review {
        border: 1px solid #E9DCC8;
        border-radius: 16px;
        background: #fffdfa;
        padding: 14px;
        display: grid;
        gap: 10px;
        min-width: min(100%, 420px);
    }
    .attendance-manager-review textarea {
        width: 100%;
        min-height: 74px;
        border: 1px solid #DECDB4;
        border-radius: 12px;
        padding: 10px 12px;
        resize: vertical;
        font: inherit;
        font-size: 13px;
        outline: none;
    }
    .work-assignment-hero {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
        padding: 12px 16px;
        border: 1px solid var(--border);
        border-radius: 20px;
        background: linear-gradient(135deg, #FFFDF9 0%, #F7EFE3 100%);
        box-shadow: 0 10px 24px rgba(0,0,0,0.04);
    }
    .work-assignment-hero-main,
    .work-assignment-panel,
    .work-assignment-stat {
        border: 1px solid var(--border);
        border-radius: 22px;
        background: rgba(255,255,255,0.96);
        box-shadow: var(--shadow);
    }
    .work-assignment-hero-main {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
        padding: 0;
        background: transparent;
        color: var(--charcoal);
        overflow: visible;
        position: relative;
        border: none;
        box-shadow: none;
    }
    .work-assignment-hero-main::after {
        display: none;
    }
    .work-assignment-kicker {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 7px 11px;
        border-radius: 999px;
        background: #2B2118;
        color: #F5D9A7;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.9px;
        text-transform: uppercase;
        margin: 0;
    }
    .work-assignment-hero-main h3 {
        margin: 0;
        font-family: 'Cormorant Garamond', serif;
        font-size: 28px;
        line-height: 1.05;
        font-weight: 600;
    }
    .work-assignment-hero-main p {
        display: none;
    }
    .work-assignment-hero > .work-assignment-panel {
        display: none;
    }
    .work-assignment-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    /* 4 o thong ke bo tri 1 hang ngang full-width (thay cho luong hero cu) */
    .work-assignment-stats-full {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-bottom: 18px;
    }
    .work-assignment-stat {
        padding: 16px;
    }
    .work-assignment-stat span {
        display: block;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        color: #7A746B;
        font-weight: 800;
        margin-bottom: 8px;
    }
    .work-assignment-stat strong {
        display: block;
        font-family: 'Cormorant Garamond', serif;
        font-size: 30px;
        line-height: 1;
        color: var(--charcoal);
    }
    .work-assignment-board {
        display: grid;
        grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
        gap: 18px;
        align-items: start;
    }
    .work-assignment-board.staff-only {
        grid-template-columns: minmax(0, 1fr);
    }
    .work-assignment-panel {
        padding: 18px;
        min-width: 0;
    }
    .work-assignment-panel-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
    }
    .work-assignment-panel-title {
        margin: 0;
        font-size: 16px;
        font-weight: 800;
        color: var(--charcoal);
    }
    .work-assignment-panel-note {
        margin: 5px 0 0;
        color: #6D665C;
        font-size: 12px;
        line-height: 1.55;
    }
    .dept-permission-summary,
    .dept-permission-groups,
    .dept-permission-group-items,
    .dept-permission-user-list {
        display: grid;
        gap: 12px;
    }
    .dept-permission-summary-head,
    .dept-permission-group-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
    }
    .dept-permission-summary-head strong,
    .dept-permission-group-head h4 {
        display: block;
        margin: 0;
        color: var(--charcoal);
        font-size: 15px;
        font-weight: 800;
    }
    .dept-permission-summary-head span,
    .dept-permission-group-head p {
        display: block;
        margin-top: 5px;
        color: #6D665C;
        font-size: 12px;
        line-height: 1.55;
    }
    .dept-permission-chip-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .dept-permission-chip {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 9px 12px;
        border-radius: 999px;
        background: #F6EEDF;
        color: #805B28;
        border: 1px solid rgba(174,124,65,0.18);
        font-size: 12px;
        font-weight: 700;
    }
    .dept-permission-user-list {
        max-height: 620px;
        overflow: auto;
        padding-right: 4px;
    }
    .dept-permission-user-card {
        width: 100%;
        border: 1px solid #E8DCC8;
        border-radius: 18px;
        background: #fffdfa;
        padding: 14px 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        cursor: pointer;
        text-align: left;
        transition: 0.2s ease;
    }
    .dept-permission-user-card:hover {
        transform: translateY(-1px);
        border-color: #D0B083;
        box-shadow: 0 10px 18px rgba(174,124,65,0.08);
    }
    .dept-permission-user-card.active {
        border-color: #B78343;
        background: linear-gradient(135deg, #FFF9F1 0%, #F6ECDD 100%);
        box-shadow: 0 0 0 3px rgba(174,124,65,0.1);
    }
    .dept-permission-user-meta {
        min-width: 0;
        display: grid;
        gap: 5px;
    }
    .dept-permission-user-meta strong {
        color: var(--charcoal);
        font-size: 14px;
        font-weight: 800;
    }
    .dept-permission-user-meta span {
        color: #756D62;
        font-size: 12px;
        line-height: 1.5;
    }
    .dept-permission-user-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 60px;
        padding: 7px 10px;
        border-radius: 999px;
        background: #F3E8D4;
        color: #7A5524;
        font-size: 12px;
        font-weight: 800;
        white-space: nowrap;
    }
    .dept-permission-group {
        border: 1px solid #EEE1CD;
        border-radius: 20px;
        background: #FFFDFA;
        padding: 16px;
    }
    .dept-permission-group.is-summary {
        background: linear-gradient(180deg, #FFFDF8 0%, #FBF6EC 100%);
    }
    .dept-permission-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        border: 1px solid #EAE2D5;
        border-radius: 16px;
        padding: 14px;
        background: #fff;
    }
    .dept-permission-item.enabled {
        border-color: rgba(31,107,51,0.16);
        background: #F6FCF6;
    }
    .dept-permission-item-copy {
        min-width: 0;
        display: grid;
        gap: 5px;
    }
    .dept-permission-item-copy strong {
        color: var(--charcoal);
        font-size: 13px;
        font-weight: 800;
    }
    .dept-permission-item-copy span {
        color: #6D665C;
        font-size: 12px;
        line-height: 1.55;
    }
    .dept-permission-toggle,
    .dept-permission-state {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-width: 116px;
        padding: 10px 12px;
        border-radius: 14px;
        font-size: 12px;
        font-weight: 800;
        white-space: nowrap;
    }
    .dept-permission-toggle {
        border: 0;
        cursor: pointer;
        transition: 0.2s ease;
    }
    .dept-permission-toggle.enabled,
    .dept-permission-state.enabled {
        background: #1F6B33;
        color: #fff;
    }
    .dept-permission-toggle.disabled,
    .dept-permission-state.disabled {
        background: #ECEFF4;
        color: #58636E;
    }
    .dept-permission-toggle:hover {
        transform: translateY(-1px);
    }
    .dept-permission-empty {
        border: 1px dashed #D8C4A5;
        border-radius: 16px;
        padding: 16px;
        background: #FFF9F1;
        color: #7A6A54;
        font-size: 13px;
        line-height: 1.6;
    }
    .work-assignment-list {
        display: grid;
        gap: 12px;
    }
    .work-assignment-card {
        border: 1px solid #E8DCC8;
        border-radius: 18px;
        background: #fffdfa;
        padding: 14px;
        display: grid;
        gap: 12px;
        transition: 0.2s ease;
    }
    .work-assignment-card.appeal-ticket {
        border-color: #D86A5A;
        background: linear-gradient(135deg, #FFF9F8 0%, #FFF1EE 100%);
        box-shadow: 0 10px 24px rgba(216,106,90,0.08);
    }
    .work-assignment-card.highlight {
        border-color: var(--gold);
        box-shadow: 0 0 0 4px rgba(174,124,65,0.1);
    }
    .work-assignment-card.done {
        background: #F1F8F0;
        border-color: #B7DAB4;
    }
    .work-assignment-card-top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
    }
    .work-assignment-person {
        min-width: 0;
    }
    .work-assignment-person strong {
        display: block;
        color: var(--charcoal);
        font-size: 14px;
        line-height: 1.35;
    }
    .work-assignment-person span {
        display: block;
        margin-top: 3px;
        color: #7A746B;
        font-size: 12px;
        line-height: 1.45;
    }
    .work-assignment-badge {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 6px 9px;
        border-radius: 999px;
        background: var(--gold-pale);
        color: #805A2E;
        font-size: 11px;
        font-weight: 800;
        white-space: nowrap;
    }
    .work-assignment-badge.done {
        background: #E8F5E9;
        color: #2B8A3E;
    }
    .work-assignment-badge.appeal {
        background: #FFE7E2;
        color: #B03A2E;
    }
    .work-assignment-appeal-box {
        display: grid;
        gap: 8px;
        padding: 12px;
        border-radius: 14px;
        border: 1px solid #F1C0B6;
        background: rgba(255,255,255,0.84);
    }
    .work-assignment-appeal-box strong {
        color: #8E2C20;
        font-size: 13px;
    }
    .work-assignment-appeal-lines {
        display: grid;
        gap: 7px;
    }
    .work-assignment-appeal-line {
        display: grid;
        gap: 3px;
        padding: 9px 10px;
        border-radius: 11px;
        background: #FFF7F5;
        border: 1px solid #F3D4CC;
        color: #6B4D46;
        font-size: 12px;
        line-height: 1.5;
    }
    .work-assignment-appeal-line b {
        color: #9B3A2C;
    }
    .work-assignment-actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        align-items: center;
    }
    .work-assignment-actions select,
    .work-assignment-card textarea {
        border: 1px solid #DECDB4;
        border-radius: 12px;
        background: #fff;
        font: inherit;
        font-size: 13px;
        outline: none;
    }
    .work-assignment-actions select {
        min-width: 210px;
        flex: 1 1 210px;
        padding: 9px 11px;
    }
    .work-assignment-card textarea {
        width: 100%;
        min-height: 72px;
        resize: vertical;
        padding: 10px 12px;
    }
    .work-assignment-empty {
        border: 1px dashed #DECDB4;
        border-radius: 18px;
        background: #FCFBF8;
        padding: 22px;
        color: #6D665C;
        font-size: 13px;
        line-height: 1.6;
        text-align: center;
    }
    .outside-work-toolbar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 12px;
        align-items: end;
        padding: 16px 18px;
        margin-bottom: 18px;
        border: 1px solid var(--border);
        border-radius: 18px;
        background: rgba(255,255,255,0.96);
        box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    }
    .outside-work-toolbar label {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    .outside-work-toolbar span {
        font-size: 12px;
        color: var(--muted);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .outside-work-sales-card {
        width: 100%;
        border: 1px solid #E8DCC8;
        border-radius: 18px;
        background: #fffdfa;
        padding: 14px;
        display: grid;
        gap: 10px;
        text-align: left;
        cursor: pointer;
        font: inherit;
        transition: 0.2s ease;
    }
    .outside-work-sales-card.active {
        border-color: var(--gold);
        box-shadow: 0 0 0 4px rgba(174,124,65,0.1);
        background: linear-gradient(180deg, #fffdfa 0%, #faf1e3 100%);
    }
    .outside-work-sales-card:hover {
        border-color: #D4B17A;
        transform: translateY(-1px);
    }
    .outside-work-sales-card small {
        color: #7A746B;
        font-size: 12px;
        line-height: 1.5;
    }
    .outside-work-record-grid {
        display: grid;
        grid-template-columns: 132px minmax(0, 1fr);
        gap: 14px;
        align-items: start;
    }
    .outside-work-record-media {
        border-radius: 16px;
        overflow: hidden;
        border: 1px solid #E8DCC8;
        background: #F4EFE6;
        aspect-ratio: 4 / 5;
    }
    .outside-work-record-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .outside-work-record-body {
        display: grid;
        gap: 10px;
        min-width: 0;
    }
    .outside-work-detail-list {
        display: grid;
        gap: 7px;
        font-size: 13px;
        color: #3B342C;
        line-height: 1.55;
    }
    .outside-work-detail-list strong {
        color: var(--charcoal);
    }
    .outside-work-chip-row {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .outside-work-chip {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 6px 10px;
        border-radius: 999px;
        background: #F8F2E8;
        border: 1px solid #E7D9C0;
        color: #7B6036;
        font-size: 11px;
        font-weight: 700;
        white-space: nowrap;
    }
    .outside-work-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .attendance-sheet-empty {
        padding: 18px 20px;
        border-radius: 18px;
        background: #FCFBF8;
        border: 1px dashed #DECDB4;
        font-size: 13px;
        color: #6D665C;
        line-height: 1.65;
    }
    .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
    .cal-day-header { text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px 0; }
    .cal-day { min-height: 48px; border: 1px solid var(--border); border-radius: 6px; padding: 4px 6px; font-size: 12px; position: relative; background: white; }
    .cal-day.today { border-color: var(--gold); background: var(--gold-pale); }
    .cal-day.empty { background: transparent; border: none; }
    .cal-num { font-weight: 600; font-size: 13px; }
    .cal-status { font-size: 10px; margin-top: 2px; }
    .cal-day.c-full  { border-color: #A5D6A7; background: #F1F8E9; }
    .cal-day.c-half  { border-color: #FFCC80; background: #FFF8E1; }
    .cal-day.c-absent{ border-color: #EF9A9A; background: #FFEBEE; }
    .cal-day.c-trip  { border-color: #80DEEA; background: #E0F7FA; }
    .cal-day.c-leave { border-color: #A5D6A7; background: #E8F5E9; }
    #moduleMyAttendance.reconciliation-focus .module-workspace {
        grid-template-columns: 1fr;
    }
    #moduleMyAttendance.reconciliation-focus .module-workspace-left {
        display: none;
    }
    #moduleMyAttendance.reconciliation-focus .module-workspace-right {
        grid-column: 1 / -1;
        width: 100%;
        display: grid;
        grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
        gap: 18px;
        align-items: start;
    }
    #moduleMyAttendance.reconciliation-focus .attendance-focus-layout {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        gap: 16px;
        position: sticky;
        top: 24px;
        min-width: 0;
    }
    #moduleMyAttendance.reconciliation-focus .attendance-reconciliation-card {
        grid-column: 2;
        grid-row: 1;
        margin-top: 0;
        min-width: 0;
    }
    #moduleMyAttendance.reconciliation-focus .attendance-cta-box {
        display: none !important;
    }
    #moduleMyAttendance.reconciliation-focus .calendar-stage,
    #moduleMyAttendance.reconciliation-focus .stats-stage {
        margin-top: 0;
    }
    #moduleMyAttendance.reconciliation-focus .calendar-stage {
        padding: 14px;
        border-radius: 22px;
    }
    #moduleMyAttendance.reconciliation-focus .cal-grid {
        gap: 5px;
    }
    #moduleMyAttendance.reconciliation-focus .cal-day-header {
        font-size: 10px;
        padding: 2px 0 4px;
    }
    #moduleMyAttendance.reconciliation-focus .cal-day {
        min-height: 42px;
        border-radius: 10px;
        padding: 5px 4px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        overflow: hidden;
    }
    #moduleMyAttendance.reconciliation-focus .cal-num {
        font-size: 13px;
        line-height: 1;
    }
    #moduleMyAttendance.reconciliation-focus .cal-status {
        font-size: 10px;
        line-height: 1;
        margin-top: 0;
        font-weight: 700;
        white-space: nowrap;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    #moduleMyAttendance.reconciliation-focus .cal-flags {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-height: 6px;
    }
    #moduleMyAttendance.reconciliation-focus .cal-flag {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        display: inline-block;
    }
    #moduleMyAttendance.reconciliation-focus .cal-flag.late { background: #E53935; }
    #moduleMyAttendance.reconciliation-focus .cal-flag.ot { background: #1565C0; }
    #moduleMyAttendance.reconciliation-focus .calendar-stage-legend {
        display: none;
    }
    #moduleMyAttendance.reconciliation-focus .stats-stage {
        padding: 12px;
        border-radius: 18px;
    }
    #moduleMyAttendance.reconciliation-focus #calStatsContent {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px !important;
        font-size: 12px !important;
    }
    #moduleMyAttendance.reconciliation-focus #calStatsContent span {
        display: block;
        padding: 8px 9px;
        border-radius: 12px;
        background: rgba(255,255,255,0.62);
        border: 1px solid rgba(174,124,65,0.16);
        line-height: 1.35;
    }

    @media (max-width: 1480px) {
        .hc-page {
            padding: 20px 20px 32px;
            gap: 18px;
        }
        .module-workspace {
            grid-template-columns: minmax(280px, 0.74fr) minmax(0, 1.26fr);
            gap: 18px;
        }
        .hc-hero {
            grid-template-columns: 1fr;
        }
        .hc-hero-chips {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
        .hub-grid {
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        }
        .personnel-card-grid {
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        }
        .personnel-history-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
        .smart-input-row {
            grid-template-columns: 170px minmax(0, 1fr) 170px;
        }
        .work-assignment-hero,
        .work-assignment-board {
            grid-template-columns: 1fr;
        }
        .work-assignment-stats-full {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
        .matrix-table {
            font-size: 11px;
        }
        .matrix-table th,
        .matrix-table td {
            padding: 6px 4px;
        }
        .matrix-table .matrix-day-head,
        .matrix-table .matrix-day-weekday,
        .matrix-table .matrix-day-cell {
            width: 44px;
            min-width: 44px;
            max-width: 44px;
        }
        .matrix-table .matrix-summary-head,
        .matrix-table .matrix-summary-cell {
            min-width: 80px;
        }
        .matrix-table .matrix-employee-cell {
            width: 190px;
            min-width: 190px;
            max-width: 190px;
        }
        .matrix-table .matrix-export-cell {
            width: 160px;
            min-width: 160px;
            max-width: 160px;
        }
        .attendance-sheet-summary-row {
            grid-template-columns: 180px minmax(0, 1fr);
        }
        #moduleMyAttendance.reconciliation-focus .module-workspace-right {
            grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
            gap: 14px;
        }
    }

    @media (max-width: 1360px) {
        .hc-shell {
            grid-template-columns: clamp(220px, 20vw, 258px) minmax(0, 1fr);
        }
        .hc-sidebar {
            padding: 20px 15px;
            gap: 16px;
        }
        .hc-side-brand {
            padding: 10px 11px;
            gap: 10px;
            border-radius: 18px;
        }
        .hc-side-mark {
            width: 50px;
            height: 50px;
            border-radius: 16px;
            font-size: 26px;
        }
        .hc-side-meta strong {
            font-size: 18px;
        }
        .hc-side-meta span {
            font-size: 11.5px;
        }
        .hc-sidebar-toggle {
            padding: 10px 12px;
            font-size: 11.5px;
        }
        .hc-side-profile {
            padding: 12px;
            border-radius: 18px;
        }
        .hc-side-profile-name {
            font-size: 16px;
        }
        .hc-side-profile-role {
            margin-bottom: 10px;
            font-size: 11.5px;
        }
        .hc-side-profile-grid {
            gap: 8px;
        }
        .hc-side-profile-chip {
            padding: 10px 11px;
        }
        .hc-main-nav-link {
            padding: 10px 12px;
            border-radius: 14px;
        }
        .hc-main-nav-title {
            font-size: 12.5px;
        }
        .hc-main-nav-sub {
            font-size: 10.5px;
        }
        .hc-page {
            padding: 18px 18px 30px;
            gap: 16px;
        }
        .module-workspace {
            grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
            gap: 16px;
        }
        .module-workspace-left {
            top: 18px;
        }
        .workspace-side-panel {
            padding: 16px 18px;
        }
        .workspace-side-panel.tools-only {
            padding: 16px;
        }
        .workspace-main-card {
            padding: 18px;
        }
        .workspace-main-card.compact {
            padding: 15px 16px;
        }
        .workspace-quick-pill {
            min-height: 66px;
            padding: 16px 18px;
            font-size: 15px;
        }
        .workspace-side-panel.tools-only .workspace-quick-pill {
            min-height: 54px;
            padding: 13px 16px;
            font-size: 13.5px;
        }
    }

    @media (max-width: 1024px) {
        body {
            height: auto;
            overflow: auto;
        }
        .hc-shell {
            grid-template-columns: 1fr;
            height: auto;
            min-height: 0;
            overflow: visible;
        }
        .hc-sidebar {
            overflow: visible;
            border-right: 0;
            border-bottom: 1px solid rgba(255,255,255,0.08);
        }
        .hc-main {
            height: auto;
            overflow: visible;
        }
        .sidebar-collapsed .hc-shell {
            grid-template-columns: 1fr;
        }
        .module-workspace {
            grid-template-columns: 1fr;
        }
        .module-workspace-left,
        .hub-home-side {
            position: static;
            top: auto;
        }
        .info-hub-columns,
        .personnel-form-grid,
        .personnel-history-grid,
        .smart-input-row {
            grid-template-columns: 1fr;
        }
        .outside-work-record-grid {
            grid-template-columns: 1fr;
        }
        .attendance-board-toolbar,
        .attendance-sync-card,
        .attendance-sheet-total,
        .attendance-sheet-actions,
        .attendance-reconciliation-head {
            flex-direction: column;
            align-items: stretch;
        }
        .attendance-tools,
        .attendance-sync-actions,
        .attendance-reconciliation-print-actions {
            width: 100%;
            justify-content: flex-start;
        }
        .attendance-sheet-summary-row {
            grid-template-columns: 1fr;
        }
        .attendance-review-card-list {
            grid-template-columns: 1fr;
        }
        #moduleMyAttendance.reconciliation-focus .module-workspace-right {
            grid-template-columns: 1fr;
        }
        #moduleMyAttendance.reconciliation-focus .attendance-focus-layout {
            grid-column: 1;
            grid-row: auto;
            position: static;
            top: auto;
        }
        #moduleMyAttendance.reconciliation-focus .attendance-reconciliation-card {
            grid-column: 1;
            grid-row: auto;
        }
    }

    @media (max-width: 900px) {
        .attendance-report-meta { grid-template-columns: 1fr 1fr; }
        .attendance-report-summary { grid-template-columns: 1fr 1fr; }
        .attendance-report-actions { padding: 16px 18px 20px; }
        .attendance-modal-meta { padding: 14px 18px; }
        .attendance-preview-stage { padding: 14px; }
        .attendance-preview-shell { padding: 18px; }
        .attendance-report-modal .modal-header { padding: 18px 18px 14px; }
        .attendance-review-card-list {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 640px) {
        .hc-page { gap: 16px; }
        .module-workspace { grid-template-columns:1fr; }
        .module-workspace-left { position:static; top:auto; }
        .attendance-quick-layout { grid-template-columns: 1fr; }
        .smart-input-head { align-items:flex-start; }
        .smart-input-row { grid-template-columns: 1fr; }
        .hub-home-layout { grid-template-columns: 1fr; }
        .work-assignment-hero,
        .work-assignment-board {
            grid-template-columns: 1fr;
        }
        .work-assignment-stats,
        .work-assignment-stats-full {
            grid-template-columns: 1fr 1fr;
        }
        .work-assignment-card-top,
        .work-assignment-panel-head {
            flex-direction: column;
            align-items: stretch;
        }
        .dept-permission-summary-head,
        .dept-permission-group-head,
        .dept-permission-item {
            flex-direction: column;
            align-items: stretch;
        }
        .dept-permission-toggle,
        .dept-permission-state,
        .dept-permission-user-count {
            width: 100%;
        }
        .hub-home-side { position:static; top:auto; }
        .attendance-board-card { padding: 14px; }
        .attendance-summary-card { flex-basis: 230px; }
        .workspace-main-card { padding: 16px; }
        .attendance-report-meta, .attendance-report-summary { grid-template-columns: 1fr; }
        .attendance-report-header h1 { font-size: 27px; }
        .attendance-report-footer { flex-direction: column; }
        .attendance-report-modal { max-height: calc(100vh - 20px); }
        #moduleMyAttendance.reconciliation-focus .module-workspace-right {
            grid-template-columns: 1fr;
        }
        #moduleMyAttendance.reconciliation-focus .attendance-focus-layout {
            grid-column: 1;
            grid-row: auto;
            position: static;
        }
        #moduleMyAttendance.reconciliation-focus .attendance-reconciliation-card {
            grid-column: 1;
            grid-row: auto;
        }
        .attendance-sheet-summary-row {
            grid-template-columns: 1fr;
        }
        .attendance-review-card-list {
            padding: 12px;
        }
        .attendance-review-day-card {
            grid-template-columns: 108px minmax(0, 1fr);
        }
        .attendance-review-day-card.has-review-actions {
            grid-template-columns: 108px minmax(0, 1fr);
        }
        .attendance-review-day-main strong {
            font-size: 23px;
        }
        .attendance-review-day-top {
            grid-template-columns: 1fr 1fr;
        }
        .attendance-review-day-top .attendance-review-cell:nth-child(3),
        .attendance-review-day-top .attendance-review-cell:nth-child(4) {
            border-top: 1.5px solid #333;
        }
        .attendance-review-day-top .attendance-review-cell:nth-child(3) {
            grid-column: auto;
            border-right: 1.5px solid #333;
        }
        .attendance-review-day-top .attendance-review-cell:nth-child(4) {
            border-top: 1.5px solid #333;
            border-right: 0;
        }
        .attendance-review-actions {
            grid-column: 1 / -1;
            border-left: 0;
            border-top: 1.5px solid #333;
            grid-template-columns: 1fr 1fr;
            grid-template-rows: auto;
        }
        .attendance-review-action {
            border-bottom: 0;
            border-right: 1.5px solid #333;
        }
        .attendance-review-action:last-child {
            border-right: 0;
        }
        .attendance-sheet-total,
        .attendance-sheet-actions,
        .attendance-reconciliation-head {
            flex-direction: column;
            align-items: stretch;
        }
    }

    @media (max-width: 768px) {
        body.hc-mobile-mode {
            min-height: 100vh;
            overflow-x: hidden;
        }
        body.hc-mobile-mode .hc-sidebar {
            display: none !important;
        }
        body.hc-mobile-mode .hc-shell {
            grid-template-columns: 1fr !important;
            min-height: 100vh !important;
            height: auto !important;
            overflow: visible !important;
        }
        body.hc-mobile-mode .hc-main {
            height: auto !important;
            overflow: visible !important;
        }
        body.hc-mobile-mode .hc-page {
            padding-top: calc(12px + env(safe-area-inset-top));
        }
        body.hc-mobile-mode .hc-main-topbar {
            flex-direction: column;
            align-items: stretch;
            gap: 12px;
            margin-bottom: 12px;
        }
        body.hc-mobile-mode .hc-topbar-title p,
        body.hc-mobile-mode .hc-topbar-title small {
            display: none;
        }
        body.hc-mobile-mode .hc-topbar-title {
            min-width: 0;
        }
        body.hc-mobile-mode .hc-topbar-title h1 {
            font-size: 24px;
            line-height: 1.05;
            margin-bottom: 0;
        }
        body.hc-mobile-mode .hc-topbar-actions {
            width: 100%;
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
            gap: 10px;
            align-items: center;
            justify-content: stretch;
        }
        body.hc-mobile-mode .hc-topbar-primary {
            display: contents;
        }
        body.hc-mobile-mode .hc-topbar-primary .hc-topbar-btn {
            min-width: 0;
        }
        body.hc-mobile-mode .hc-topbar-secondary {
            display: contents;
        }
        body.hc-mobile-mode .hc-topbar-secondary #notifMount {
            justify-self: end;
        }
        body.hc-mobile-mode .hc-topbar-secondary .hc-topbar-btn.danger {
            display: none !important;
        }
        body.hc-mobile-mode #notifMount {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        body.hc-mobile-mode .hc-topbar-btn {
            min-height: 48px;
            padding: 10px 14px;
            justify-content: center;
            font-size: 12.5px;
            border-radius: 16px;
            box-shadow: 0 10px 22px rgba(30,37,50,0.06);
            white-space: nowrap;
        }
        body.hc-mobile-mode .hc-topbar-btn .material-icons {
            font-size: 18px !important;
            margin: 0;
        }
        body.hc-mobile-mode #notifMount .nb-wrap {
            display: inline-flex;
        }
        body.hc-mobile-mode #notifMount .nb-bell {
            width: 48px;
            height: 48px;
            border-radius: 16px;
            background: rgba(255,255,255,0.96);
            border: 1px solid var(--border);
            box-shadow: 0 12px 24px rgba(30,37,50,0.08);
            color: var(--gold);
        }
        body.hc-mobile-mode #notifMount .nb-bell:hover {
            background: #fff;
            transform: translateY(-1px);
        }
        body.hc-mobile-mode #notifMount .nb-bell .material-icons {
            font-size: 22px;
        }
        body.hc-mobile-mode #notifMount .nb-count {
            top: 3px;
            right: 3px;
            min-width: 18px;
            height: 18px;
            border-radius: 999px;
            font-size: 10px;
            box-shadow: 0 4px 10px rgba(229,57,53,0.30);
        }
        body.hc-mobile-mode #notifMount .nb-panel {
            top: 56px;
            right: 0;
            width: min(380px, calc(100vw - 28px));
            max-width: calc(100vw - 28px);
            border-radius: 18px;
        }
        body.hc-mobile-mode #notifMount .nb-head {
            flex-direction: column;
            align-items: stretch;
            gap: 10px;
        }
        body.hc-mobile-mode #notifMount .nb-head > div {
            width: 100%;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 10px !important;
        }
        body.hc-mobile-mode #notifMount .nb-readall {
            font-size: 12px;
        }
        body.hc-mobile-mode .hub-home-head .workspace-chip-row {
            display: none;
        }
        body.hc-mobile-mode .hub-home-panel {
            padding: 16px;
        }
        body.hc-mobile-mode .hub-grid {
            grid-template-columns: 1fr;
            gap: 12px;
        }
        body.hc-mobile-mode .hub-card {
            padding: 16px;
            border-radius: 18px;
        }
        body.hc-mobile-mode .workspace-section-note {
            display: none;
        }
        body.hc-mobile-mode .hc-mobile-overview-note {
            display: block;
            margin: 0 0 14px;
            padding: 12px 14px;
            border-radius: 16px;
            background: linear-gradient(180deg, #fff8ee 0%, #f8efe0 100%);
            border: 1px solid #ead9bf;
            color: #6b5836;
            font-size: 12.5px;
            line-height: 1.55;
        }
        body.hc-mobile-mode.hc-module-attendance-manager .hc-page {
            gap: 12px;
        }
        body.hc-mobile-mode.hc-module-attendance-manager .hc-topbar-title h1 {
            font-size: clamp(18px, 6.4vw, 22px);
            line-height: 1.08;
        }
        body.hc-mobile-mode.hc-module-attendance-manager .hc-topbar-btn {
            min-height: 44px;
            padding: 10px 12px;
            font-size: 12px;
            border-radius: 15px;
        }
        body.hc-mobile-mode.hc-module-attendance-manager .sub-header.tools-only {
            margin-bottom: 8px;
        }
        body.hc-mobile-mode.hc-module-attendance-manager .sub-header.tools-only .sub-title {
            display: none;
        }
        body.hc-mobile-mode.hc-module-attendance-manager .sub-header.tools-only .btn-back {
            width: fit-content;
            min-height: 42px;
            padding: 9px 14px;
            border-radius: 15px;
            font-size: 12.5px;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .module-workspace {
            gap: 12px;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-sync-card,
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-board-card,
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .workspace-main-card.compact {
            padding: 14px;
            border-radius: 18px;
            overflow: hidden;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-sync-card {
            gap: 12px;
            justify-content: flex-start;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-sync-copy {
            flex: 0 0 auto;
            width: 100%;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-sync-title {
            font-size: 14px;
            line-height: 1.3;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-sync-note,
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-sync-meta,
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-board-desc {
            font-size: 12px;
            line-height: 1.55;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-sync-list {
            gap: 6px;
            margin-top: 8px;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-sync-chip {
            font-size: 11.5px;
            padding: 7px 10px;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-sync-actions {
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            gap: 8px;
            width: 100%;
            max-width: 100%;
            align-content: start;
            overflow: hidden;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-sync-actions > * {
            min-width: 0;
            width: 100%;
            max-width: 100%;
            align-self: stretch;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-sync-actions input[type="month"],
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-sync-badge,
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-tools input[type="month"],
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-tools .attendance-month-close-badge {
            min-height: 42px;
            border-radius: 14px;
            font-size: 11.5px;
            box-sizing: border-box;
            max-width: 100%;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-sync-badge {
            display: flex;
            justify-content: center;
            padding: 8px 10px;
            line-height: 1.35;
            text-align: center;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-sync-actions input[type="month"],
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-tools input[type="month"] {
            display: block;
            width: 100% !important;
            inline-size: 100% !important;
            max-inline-size: 100% !important;
            min-width: 0 !important;
            margin: 0 !important;
            padding: 0 12px !important;
            font-size: 12px !important;
            -webkit-appearance: none;
            appearance: none;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager #attendanceSyncBtn {
            min-height: 46px;
            border-radius: 14px;
            font-size: 13px;
            letter-spacing: 0.35px;
            justify-content: center;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .workspace-section-title,
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-board-title {
            font-size: 16px;
            line-height: 1.18;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-quick-card {
            margin-bottom: 12px;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .smart-input-box {
            padding: 14px;
            border-radius: 18px;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .smart-input-head {
            gap: 8px;
            margin-bottom: 10px;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .smart-input-box h4 {
            font-size: 16px;
            line-height: 1.18;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .smart-input-kicker {
            padding: 6px 9px;
            font-size: 10px;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .smart-input-row {
            gap: 10px;
            width: 100%;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .smart-input-row input[type="date"],
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .smart-input-row textarea {
            padding: 11px 12px;
            border-radius: 12px;
            font-size: 13.5px;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .smart-input-row input[type="date"] {
            display: block;
            width: 100% !important;
            inline-size: 100% !important;
            max-inline-size: 100% !important;
            min-width: 0 !important;
            margin: 0 !important;
            -webkit-appearance: none;
            appearance: none;
            box-sizing: border-box;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .smart-input-row textarea {
            min-height: 120px;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .smart-input-row .btn {
            min-height: 46px;
            border-radius: 12px;
            font-size: 13.5px;
            justify-content: center;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-board-toolbar {
            gap: 12px;
            margin-bottom: 10px;
            justify-content: flex-start;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-tools {
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            gap: 8px;
            width: 100%;
            max-width: 100%;
            align-content: start;
            overflow: hidden;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-tools > * {
            min-width: 0;
            width: 100%;
            max-width: 100%;
            align-self: stretch;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-tools input[type="month"],
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-tools .attendance-month-close-badge,
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-tools .btn {
            min-height: 42px;
            border-radius: 14px;
            font-size: 12px;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-tools .btn {
            padding: 10px 12px;
            justify-content: center;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-tools .attendance-month-close-badge {
            display: flex;
            justify-content: center;
            padding: 8px 10px;
            line-height: 1.35;
            text-align: center;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .matrix-scroll-hint {
            justify-content: center;
            padding: 7px 10px;
            font-size: 11px;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-summary-grid {
            display: none !important;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-summary-card {
            flex: none;
            min-width: 0;
            min-height: 0;
            padding: 11px 10px;
            border-radius: 16px;
            gap: 8px;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-summary-icon {
            width: 30px;
            height: 30px;
            border-radius: 10px;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-summary-card .sum-label {
            font-size: 9px;
            letter-spacing: 0.6px;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-summary-card .sum-value {
            font-size: 20px;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-summary-card .sum-note {
            margin-top: 4px;
            font-size: 10.5px;
            line-height: 1.35;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .attendance-legend {
            gap: 6px;
            padding: 10px;
            margin-bottom: 12px;
            border-radius: 14px;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .legend-pill {
            padding: 6px 8px;
            font-size: 10.5px;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .matrix-scroll-sync {
            display: none !important;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .matrix-scroll-wrapper {
            max-height: 62vh;
            overflow: auto;
            border-radius: 16px;
            overscroll-behavior: contain;
            touch-action: pan-x pan-y;
            -webkit-overflow-scrolling: touch;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .matrix-table {
            font-size: 11px;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .matrix-table th,
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .matrix-table td {
            padding: 6px 4px;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .matrix-table .matrix-sticky-left {
            min-width: 148px;
            padding-left: 8px;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .matrix-table .matrix-employee-cell {
            width: 148px;
            min-width: 148px;
            max-width: 148px;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .matrix-table .matrix-export-cell,
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .matrix-table .matrix-sticky-right {
            width: 72px;
            min-width: 72px;
            max-width: 72px;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .matrix-table .matrix-summary-head,
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .matrix-table .matrix-summary-cell {
            min-width: 66px;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .matrix-table .matrix-day-head,
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .matrix-table .matrix-day-weekday,
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .matrix-table .matrix-day-cell {
            width: 38px;
            min-width: 38px;
            max-width: 38px;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .matrix-table .matrix-employee-name {
            font-size: 11.5px;
            line-height: 1.3;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .matrix-table .matrix-employee-meta {
            margin-top: 4px;
            font-size: 10px;
            line-height: 1.35;
            white-space: normal;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .matrix-table .matrix-dept-row td {
            padding: 8px 10px;
            font-size: 10.5px;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .row-export-wrap {
            padding: 2px 0;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .row-export-btn {
            width: 100%;
            max-width: 60px;
            min-height: 32px;
            padding: 6px 6px;
            border-radius: 12px;
            font-size: 9px;
            line-height: 1.2;
            gap: 2px;
            white-space: normal;
            text-align: center;
            justify-content: center;
            box-shadow: none;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .row-export-btn .material-icons {
            font-size: 11px !important;
        }
        body.hc-mobile-mode.hc-module-attendance-manager #moduleAttendanceManager .row-export-note {
            display: block;
            font-size: 8.5px;
            line-height: 1.25;
            text-align: center;
        }
    }

    @media (max-width: 768px) {
        .hc-page {
            padding: 16px 14px 28px;
        }
        .hc-sidebar {
            padding: 16px;
        }
        body:not(.hc-mobile-mode) .hc-main-topbar,
        body:not(.hc-mobile-mode) .hc-topbar-actions {
            flex-direction: column;
            align-items: stretch;
        }
    }

    @media print {
        @page {
            size: A4 portrait;
            margin: 8mm;
        }
        * {
            -webkit-print-color-adjust: exact !important;
            print-color-adjust: exact !important;
        }
        html,
        body {
            width: auto;
            height: auto;
            min-height: 0 !important;
            margin: 0 !important;
            padding: 0 !important;
            overflow: visible !important;
            background: #fff !important;
        }
        .hc-shell,
        .modal-overlay,
        #notifMount,
        #myAttendanceReconciliationCard {
            display: none !important;
        }
        .attendance-print-root {
            display: block !important;
            width: 100% !important;
            margin: 0 !important;
            padding: 0 !important;
            background: #fff !important;
            color: #111 !important;
            font-family: Arial, sans-serif !important;
            font-size: 8pt !important;
            line-height: 1.18 !important;
        }
        .attendance-print-sheet {
            width: 100% !important;
            margin: 0 !important;
            padding: 0 !important;
            background: #fff !important;
        }
        .attendance-print-header {
            text-align: center;
            border-bottom: 1px solid #222;
            padding-bottom: 1.4mm;
            margin-bottom: 1.3mm;
        }
        .attendance-print-header h1 {
            margin: 0;
            font-family: "Times New Roman", serif;
            font-size: 15pt;
            letter-spacing: 0.2px;
        }
        .attendance-print-header p {
            margin: 1.1mm 0 0;
            font-size: 7.4pt;
        }
        .attendance-print-employee,
        .attendance-print-total {
            display: flex;
            justify-content: space-between;
            gap: 8mm;
            border-bottom: 1px solid #444;
            padding: 1mm 0;
            font-size: 7pt;
        }
        .attendance-print-summary {
            display: grid;
            gap: 0.7mm;
            border-bottom: 1px solid #444;
            padding: 1mm 0;
            margin-bottom: 1.2mm;
            font-size: 6.7pt;
        }
        .attendance-print-summary-row {
            display: grid;
            grid-template-columns: 30mm 1fr;
            gap: 2mm;
            align-items: start;
        }
        .attendance-print-summary-label {
            font-weight: 700;
        }
        .attendance-print-summary-text {
            white-space: pre-wrap;
        }
        .attendance-print-day-list {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.6mm;
            page-break-inside: auto;
            break-inside: auto;
        }
        .attendance-print-day-card {
            border: 1px solid #333;
            min-height: 22mm;
            page-break-inside: avoid;
            break-inside: avoid;
            display: grid;
            grid-template-columns: 28mm 1fr;
            background: #fff;
        }
        .attendance-print-day-main {
            border-right: 1px solid #333;
            background: #f2f2f2;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0.8mm;
            padding: 1.2mm;
            text-align: center;
        }
        .attendance-print-day-index {
            font-size: 6.7pt;
            font-weight: 700;
            color: #555;
        }
        .attendance-print-day-date {
            font-family: "Times New Roman", serif;
            font-size: 12.4pt;
            font-weight: 800;
            line-height: 1;
        }
        .attendance-print-day-weekday {
            font-size: 8.4pt;
            font-weight: 700;
        }
        .attendance-print-day-credit {
            display: inline-flex;
            justify-content: center;
            min-width: 17mm;
            max-width: 34mm;
            padding: 0.6mm 1.4mm;
            border-radius: 99px;
            background: #fff;
            border: 1px solid #999;
            font-size: 8.4pt;
            font-weight: 800;
            text-align: center;
            line-height: 1.2;
            white-space: normal;
        }
        .attendance-print-day-body {
            display: grid;
            grid-template-columns: 24mm 24mm 33mm minmax(0, 1fr);
            grid-template-rows: auto 1fr;
            min-width: 0;
        }
        .attendance-print-field {
            border-right: 1px solid #333;
            border-bottom: 1px solid #333;
            padding: 1mm 1.2mm;
            text-align: center;
            min-width: 0;
        }
        .attendance-print-field:nth-child(3) {
            border-right: 0;
        }
        .attendance-print-field-label {
            display: block;
            font-size: 6.2pt;
            text-transform: uppercase;
            color: #555;
            font-weight: 700;
            margin-bottom: 0.4mm;
        }
        .attendance-print-field-value {
            display: block;
            font-size: 8.6pt;
            font-weight: 500;
            line-height: 1.2;
            word-break: break-word;
        }
        .attendance-print-note-value {
            font-weight: 800;
        }
        .attendance-print-explanation {
            grid-column: 1 / -1;
            padding: 1.2mm 1.6mm;
            text-align: left;
            min-height: 8.6mm;
            overflow: hidden;
        }
        .attendance-print-explanation-label {
            font-size: 6.3pt;
            text-transform: uppercase;
            color: #555;
            font-weight: 700;
            margin-bottom: 0.5mm;
        }
        .attendance-print-explanation-text {
            font-size: 8.8pt;
            font-weight: 800;
            line-height: 1.25;
            max-height: 21pt;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            word-break: break-word;
        }
        .attendance-print-empty {
            color: #999;
            font-style: italic;
        }
        .attendance-print-sunday-note {
            display: inline-block;
            padding: 0.5mm 1.4mm;
            border-radius: 99px;
            background: #F2E8D9;
            color: #6B5836;
            font-weight: 700;
        }
        /* Hien thi thay doi "cu -> moi" khi HC da duyet sua so cong / tang ca.
           Chu cu gach ngang do, mui ten den, chu moi xanh dam. */
        .attendance-print-old {
            text-decoration: line-through;
            color: #B71C1C;
            font-weight: 600;
            margin-right: 1mm;
        }
        .attendance-print-arrow {
            color: #4B4033;
            font-weight: 900;
            margin: 0 0.6mm;
        }
        .attendance-print-new {
            color: #1E6B2A;
            font-weight: 900;
        }
        .attendance-print-signatures {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8mm;
            padding-top: 2mm;
            page-break-inside: avoid;
            break-inside: avoid;
            text-align: center;
        }
        .attendance-print-signature-box {
            min-height: 14mm;
            font-family: Arial, sans-serif;
        }
        .attendance-print-signature-title {
            font-size: 7pt;
            font-weight: 800;
            text-transform: uppercase;
        }
        .attendance-print-signature-stamp {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 24mm;
            min-height: 6mm;
            margin: 1mm auto 0.8mm;
            border: 1.5px solid #2B8A3E;
            border-radius: 4px;
            color: #2B8A3E;
            font-size: 6.5pt;
            font-weight: 900;
            transform: rotate(-6deg);
            text-transform: uppercase;
        }
        .attendance-print-signature-stamp.pending {
            color: #777;
            border-color: #777;
            transform: none;
        }
        .attendance-print-signature-stamp.reject {
            color: #D32F2F;
            border-color: #D32F2F;
        }
        .attendance-print-signature-name {
            font-family: "Times New Roman", serif;
            font-size: 9pt;
            font-weight: 700;
        }
        .attendance-print-signature-date {
            font-size: 6.3pt;
            color: #333;
            font-style: italic;
        }
    }

/* ===== Department workspace concept sync ===== */
body:not(.hc-mobile-mode) .hc-shell {
    grid-template-columns: 302px minmax(0, 1fr);
}

body:not(.hc-mobile-mode) .hc-sidebar {
    padding: 18px;
    gap: 16px;
    background: linear-gradient(180deg, rgba(23, 22, 21, 0.98), rgba(36, 29, 22, 0.98));
}

.hc-side-brand,
.hc-side-profile,
.hc-sidebar-toggle,
.hc-main-nav-link,
.hc-topbar-btn,
#hubHome .workspace-main-card,
#hubHome .hub-card {
    border-radius: 8px;
}

.hc-side-brand {
    padding: 12px;
}

.hc-side-mark {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: #F7DDAE;
    color: #2B2118;
    box-shadow: none;
    font-size: 26px;
    font-weight: 800;
}

.hc-side-meta strong {
    font-size: 15px;
    line-height: 1.25;
}

.hc-side-meta span {
    font-size: 12px;
    line-height: 1.35;
}

.hc-main-nav-link {
    min-height: 50px;
    padding: 10px 11px;
}

.hc-main-nav-link:hover,
.hc-main-nav-link.active {
    transform: none;
}

.hc-main-nav-link.active {
    border: 1px solid rgba(231, 197, 142, 0.34);
    background: rgba(174, 124, 65, 0.18);
    box-shadow: none;
}

body:not(.hc-mobile-mode) .hc-page {
    max-width: none;
    padding: 22px clamp(16px, 3vw, 34px) 30px;
    gap: 14px;
}

.hc-main-topbar {
    margin-bottom: 0;
}

.hc-topbar-title h1 {
    font-size: clamp(32px, 4vw, 50px);
    line-height: 0.96;
}

.hc-topbar-title small {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.9px;
}

.hc-topbar-btn {
    min-height: 40px;
    padding: 9px 12px;
}

#hubHome .hub-home-layout {
    display: block;
}

#hubHome .hub-home-panel {
    padding: 18px;
    border-radius: 8px;
}

#hubHome .hub-home-head.tools-only {
    display: none;
}

#hubHome .hub-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 8px;
    margin: 0;
}

#hubHome .hub-card {
    min-height: 70px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    background: var(--white);
    box-shadow: none;
}

#hubHome .hub-card::after {
    content: "open_in_new";
    font-family: "Material Icons";
    color: #7E531F;
    font-size: 20px;
}

#hubHome .hub-card:hover {
    transform: none;
    border-color: #dec5a0;
    box-shadow: 0 8px 22px rgba(42, 34, 22, 0.07);
}

#hubHome .hub-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

#hubHome .hub-card-icon .material-icons {
    font-size: 20px !important;
}

#hubHome .hub-card-info {
    min-width: 0;
}

#hubHome .hub-card-info h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
}

#hubHome .hub-card-info p {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.45;
}

body:not(.hc-mobile-mode).hc-sidebar-collapsed .hc-shell {
    grid-template-columns: 88px minmax(0, 1fr);
}

body:not(.hc-mobile-mode).hc-sidebar-collapsed .hc-sidebar {
    padding: 18px 12px;
}

body:not(.hc-mobile-mode).hc-sidebar-collapsed .hc-side-brand,
body:not(.hc-mobile-mode).hc-sidebar-collapsed .hc-main-nav-link {
    justify-content: center;
}

body:not(.hc-mobile-mode).hc-sidebar-collapsed .hc-side-meta,
body:not(.hc-mobile-mode).hc-sidebar-collapsed .hc-side-profile,
body:not(.hc-mobile-mode).hc-sidebar-collapsed .hc-nav-group-label,
body:not(.hc-mobile-mode).hc-sidebar-collapsed .hc-main-nav-text,
body:not(.hc-mobile-mode).hc-sidebar-collapsed .hc-sidebar-toggle span {
    display: none !important;
}

body:not(.hc-mobile-mode).hc-sidebar-collapsed .hc-main-nav-link,
body:not(.hc-mobile-mode).hc-sidebar-collapsed .hc-sidebar-toggle {
    justify-content: center;
    padding-inline: 12px;
}

/* 2026-07-17 refined command-center layout for Hanh chinh: Plus Jakarta Sans, EVER gold/cream only. */
:root {
    --hc-font: "Plus Jakarta Sans", system-ui, sans-serif;
    --hc-ink: #1D1A16;
    --hc-muted: #75695D;
    --hc-bronze: #AE7C41;
    --hc-bronze-dark: #6D4D23;
    --hc-cream: #FFFDF9;
    --hc-cream-2: #F7EFE3;
    --hc-line-soft: rgba(126, 92, 54, 0.12);
    --hc-card-shadow: 0 18px 52px rgba(84, 50, 25, 0.10);
}

html {
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

body,
button,
input,
select,
textarea {
    font-family: var(--hc-font) !important;
}

body:not(.hc-mobile-mode) {
    background:
        radial-gradient(circle at 58% 0%, rgba(174,124,65,0.14), transparent 32%),
        radial-gradient(circle at 86% 12%, rgba(214,184,146,0.22), transparent 28%),
        linear-gradient(135deg, #FFFDF9 0%, #F7EFE3 56%, #F2E5D4 100%);
}

body:not(.hc-mobile-mode) .hc-shell {
    grid-template-columns: 260px minmax(0, 1fr);
}

body:not(.hc-mobile-mode) .hc-sidebar {
    padding: 30px 20px;
    gap: 18px;
    color: var(--hc-ink);
    background: rgba(255,253,249,0.90);
    border-right: 1px solid var(--hc-line-soft);
    box-shadow: 18px 0 54px rgba(72,44,20,0.08);
}

body:not(.hc-mobile-mode) .hc-sidebar::-webkit-scrollbar {
    width: 6px;
}

body:not(.hc-mobile-mode) .hc-sidebar::-webkit-scrollbar-thumb {
    background: rgba(122,73,34,0.22);
    border-radius: 999px;
}

.hc-sidebar-toggle,
.hc-side-profile,
.hc-side-brand {
    border-radius: 18px;
    border-color: rgba(126,92,54,0.14);
    background: rgba(255,255,255,0.72);
    box-shadow: 0 14px 36px rgba(94,56,26,0.07);
}

.hc-sidebar-toggle {
    min-height: 44px;
    color: var(--hc-bronze-dark);
}

.hc-sidebar-toggle:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--hc-bronze), var(--hc-bronze-dark));
    box-shadow: 0 14px 28px rgba(122,85,43,0.20);
}

.hc-side-profile-label,
.hc-nav-group-label,
.hc-side-profile-role,
.hc-main-nav-sub,
.hc-side-profile-chip label {
    color: rgba(95,69,42,0.60);
}

.hc-side-profile-name,
.hc-side-profile-chip strong,
.hc-main-nav-title {
    color: var(--hc-ink);
}

.hc-side-profile-role {
    font-weight: 800;
}

.hc-side-profile-chip {
    background: rgba(255,255,255,0.58);
    border-color: rgba(126,92,54,0.12);
}

.hc-nav-group-label {
    margin-top: 12px;
    font-weight: 900;
}

.hc-main-nav-link {
    min-height: 46px;
    border-radius: 13px;
    color: #5C544C;
    background: transparent;
    gap: 9px;
    padding-inline: 11px;
}

.hc-main-nav-title {
    font-size: 13px;
    line-height: 1.25;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.hc-main-nav-link .material-icons {
    color: var(--hc-bronze);
}

.hc-main-nav-link:hover,
.hc-main-nav-link.active {
    color: #fff;
    border: 1px solid rgba(255,255,255,0.70);
    background: linear-gradient(135deg, var(--hc-bronze), var(--hc-bronze-dark));
    box-shadow: 0 14px 28px rgba(122,85,43,0.20);
}

.hc-main-nav-link:hover .material-icons,
.hc-main-nav-link.active .material-icons,
.hc-main-nav-link:hover .hc-main-nav-title,
.hc-main-nav-link.active .hc-main-nav-title {
    color: #fff;
}

.hc-main-nav-link:hover .hc-main-nav-sub,
.hc-main-nav-link.active .hc-main-nav-sub {
    color: rgba(255,255,255,0.74);
}

body:not(.hc-mobile-mode) .hc-page {
    max-width: none;
    padding: 42px clamp(22px, 3.5vw, 54px) 42px;
    gap: 22px;
}

.hc-main-topbar {
    align-items: flex-start;
    margin-bottom: 0;
}

.hc-topbar-title small {
    color: var(--hc-bronze);
    font-weight: 900;
    letter-spacing: 0.6px;
}

.hc-topbar-title h1,
.workspace-section-title,
.sub-title,
.workspace-main-card h1,
.workspace-main-card h2,
.workspace-main-card h3,
.modal-content h2,
.modal-content h3,
.personnel-card-name,
.personnel-import-dialog-title,
.attendance-print-title {
    font-family: var(--hc-font) !important;
}

.hc-topbar-title h1 {
    color: #17120F;
    font-size: clamp(34px, 3.6vw, 58px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.hc-topbar-title p {
    color: var(--hc-muted);
}

.hc-topbar-btn {
    min-height: 42px;
    border-radius: 999px;
    background: rgba(255,255,255,0.74);
    border-color: rgba(174,124,65,0.20);
    color: #3A241B;
    box-shadow: 0 12px 26px rgba(84,50,25,0.07);
}

.hc-topbar-btn.danger {
    color: #fff;
    background: linear-gradient(135deg, var(--hc-ink), #3A241B);
    border-color: var(--hc-ink);
}

body:not(.hc-mobile-mode) #hubHome .hub-home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 276px;
    gap: 22px 28px;
    align-items: start;
}

body:not(.hc-mobile-mode) #hubHome .hub-home-panel {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body:not(.hc-mobile-mode) #hubHome .hub-home-head.tools-only {
    position: relative;
    overflow: hidden;
    min-height: 305px;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    padding: clamp(34px, 4.4vw, 58px);
    border: 1px solid rgba(255,255,255,0.74);
    border-radius: 34px;
    background:
        linear-gradient(105deg, rgba(255,253,249,0.98) 0%, rgba(250,241,228,0.92) 43%, rgba(224,198,161,0.58) 100%);
    box-shadow: 0 20px 58px rgba(84,50,25,0.12);
    isolation: isolate;
}

body:not(.hc-mobile-mode) #hubHome .hub-home-head.tools-only::before {
    content: "";
    position: absolute;
    width: min(50vw, 660px);
    height: min(50vw, 660px);
    right: -90px;
    top: -235px;
    z-index: -1;
    border-radius: 999px;
    background:
        radial-gradient(circle at 46% 48%, rgba(255,255,255,0.76), transparent 0 3%),
        radial-gradient(circle at 50% 52%, rgba(174,124,65,0.55), rgba(174,124,65,0.26) 38%, rgba(242,226,202,0.28) 58%, transparent 70%);
    box-shadow: inset 0 0 74px rgba(255,250,241,0.82), 0 38px 100px rgba(174,124,65,0.20);
}

body:not(.hc-mobile-mode) #hubHome .hub-home-head.tools-only::after {
    content: "";
    position: absolute;
    right: 10%;
    top: 16%;
    width: 3px;
    height: 70%;
    border-radius: 999px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.92), transparent);
    box-shadow: 0 0 24px rgba(255,255,255,0.92), -60px 52px 120px rgba(174,124,65,0.22);
    transform: rotate(7deg);
}

body:not(.hc-mobile-mode) #hubHome .hub-home-head.tools-only > div:first-child {
    display: block;
    position: relative;
    z-index: 1;
    max-width: 660px;
}

body:not(.hc-mobile-mode) #hubHome .hub-home-head.tools-only .workspace-section-title {
    color: #17120F;
    font-size: clamp(34px, 4.2vw, 60px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

body:not(.hc-mobile-mode) #hubHome .hub-home-head.tools-only .workspace-section-note {
    max-width: 640px;
    margin-top: 18px;
    color: #5B4B3D;
    font-size: 14px;
    line-height: 1.7;
}

body:not(.hc-mobile-mode) #hubHome .workspace-chip-row {
    position: relative;
    z-index: 1;
}

body:not(.hc-mobile-mode) #hubHome .workspace-chip {
    background: rgba(255,255,255,0.78);
    border-color: rgba(174,124,65,0.22);
    color: #6D4D23;
}

body:not(.hc-mobile-mode) #hubHome .hub-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr)) !important;
    gap: 16px;
    margin: 22px 0 0;
}

body:not(.hc-mobile-mode) #hubHome .hub-card {
    min-height: 142px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 14px;
    border-radius: 22px;
    text-align: center;
    background: rgba(255,253,249,0.82);
    border: 1px solid rgba(255,255,255,0.74);
    box-shadow: 0 12px 34px rgba(84,50,25,0.08);
    backdrop-filter: blur(14px);
}

body:not(.hc-mobile-mode) #hubHome .hub-card::after,
body:not(.hc-mobile-mode) #hubHome .hub-arrow {
    display: none;
}

body:not(.hc-mobile-mode) #hubHome .hub-card:hover {
    transform: translateY(-5px);
    border-color: rgba(174,124,65,0.24);
    box-shadow: 0 24px 60px rgba(84,50,25,0.14);
}

body:not(.hc-mobile-mode) #hubHome .hub-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    color: var(--hc-bronze) !important;
    background: linear-gradient(145deg, rgba(174,124,65,0.13), rgba(214,184,146,0.22)), #FFF9F0 !important;
    box-shadow: 0 10px 24px rgba(174,124,65,0.12);
}

body:not(.hc-mobile-mode) #hubHome .hub-card-info h3 {
    margin: 0;
    color: var(--hc-ink);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.012em;
    white-space: nowrap;
}

body:not(.hc-mobile-mode) #hubHome .hub-card-info p {
    display: -webkit-box;
    min-height: 38px;
    margin-top: 6px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--hc-muted);
    font-size: 12px;
    line-height: 1.45;
}

.hc-concept-rail {
    position: sticky;
    top: 28px;
    align-self: start;
    min-height: calc(100vh - 84px);
    padding: 28px 20px;
    border-left: 1px solid rgba(126,92,54,0.10);
    background: rgba(255,253,249,0.42);
}

.hc-rail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    color: var(--hc-ink);
    font-weight: 900;
}

.hc-rail-head .material-icons {
    color: #8D8175;
    font-size: 19px;
}

.hc-rail-group,
.hc-rail-note {
    display: grid;
    gap: 12px;
    margin-bottom: 30px;
}

.hc-rail-group span,
.hc-rail-note span {
    color: #928579;
    font-size: 12px;
    font-weight: 900;
}

.hc-rail-group button {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #4C443D;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

.hc-rail-group button:hover {
    background: rgba(174,124,65,0.09);
}

.hc-rail-group .material-icons {
    color: #8A5A1F;
    font-size: 18px;
}

.hc-rail-note p {
    margin: 0;
    color: #786C61;
    font-size: 13px;
    line-height: 1.65;
}

body:not(.hc-mobile-mode) .workspace-main-card,
body:not(.hc-mobile-mode) .module-workspace-left,
body:not(.hc-mobile-mode) .module-workspace-right {
    border-radius: 24px;
    background: rgba(255,253,249,0.82);
    border-color: rgba(255,255,255,0.72);
    box-shadow: 0 12px 34px rgba(84,50,25,0.08);
}

@media (max-width: 1360px) {
    body:not(.hc-mobile-mode) #hubHome .hub-home-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .hc-concept-rail {
        position: static;
        min-height: auto;
        border-left: 0;
        border-top: 1px solid rgba(126,92,54,0.10);
        border-radius: 24px;
        background: rgba(255,253,249,0.68);
    }
}

@media (max-width: 1180px) {
    body:not(.hc-mobile-mode) #hubHome .hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    body:not(.hc-mobile-mode) .hc-shell,
    body:not(.hc-mobile-mode).hc-sidebar-collapsed .hc-shell {
        grid-template-columns: 1fr;
    }

    body:not(.hc-mobile-mode) .hc-page {
        padding: 18px 14px 30px;
    }

    body:not(.hc-mobile-mode) #hubHome .hub-grid {
        grid-template-columns: 1fr !important;
    }

    body:not(.hc-mobile-mode) #hubHome .hub-home-head.tools-only {
        min-height: 250px;
        border-radius: 28px;
    }

    body:not(.hc-mobile-mode) #hubHome .hub-home-head.tools-only .workspace-section-title,
    .hc-topbar-title h1 {
        font-size: 34px;
        line-height: 1.12;
    }
}

.embed-mode body {
    background: #fff;
    overflow: auto;
}

.embed-mode .hc-shell {
    display: block;
    min-height: 100vh;
    height: auto;
    overflow: visible;
}

.embed-mode .hc-sidebar,
.embed-mode .hc-main-topbar {
    display: none !important;
}

.embed-mode .hc-main {
    height: auto;
    overflow: visible;
}

.embed-mode .hc-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 14px !important;
    gap: 0;
}

.embed-mode #hubHome {
    display: none;
}
