
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --teal:       #2a8575;
      --teal-dark:  #216e60;
      --teal-lt:    #e6f3f1;
      --navy:       #0b2545;
      --navy2:      #122d56;
      --bg:         #eef6f4;
      --surface:    #FFFFFF;
      --border:     #E8EAED;
      --border-lt:  #F1F3F5;
      --text-1:     #111827;
      --text-2:     #6B7280;
      --text-3:     #9CA3AF;
      --green:      #10B981;
      --green-lt:   #D1FAE5;
      --red:        #EF4444;
      --red-lt:     #FEE2E2;
      --gold:       #F59E0B;
      --gold-lt:    #FEF3C7;
      --blue:       #3B82F6;
      --blue-lt:    #DBEAFE;
      --sb-width:   240px;
      --radius:     12px;
      --radius-sm:  8px;
      --radius-xs:  6px;
      --shadow:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
      --shadow-md:  0 4px 12px rgba(0,0,0,.08);
      --font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    }

    html, body { height: 100%; font-family: var(--font); background: var(--bg); color: var(--text-1); font-size: 14px; line-height: 1.5; }

    /* ─── UTILS ─── */
    .hidden { display: none !important; }
    .flex { display: flex; }
    .items-center { align-items: center; }
    .gap-2 { gap: 8px; }
    .gap-3 { gap: 12px; }
    .text-sm { font-size: 13px; }
    .text-xs { font-size: 11px; }
    .text-muted { color: var(--text-2); }
    .font-medium { font-weight: 500; }
    .font-semibold { font-weight: 600; }
    .text-center { text-align: center; }
    .w-full { width: 100%; }

    /* ─── LOADER ─── */
    #loading {
      position: fixed; inset: 0; background: var(--navy);
      display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 999;
    }
    #loading img { display: none; }
    #loading .logo-text { font-size: 32px; font-weight: 800; color: #fff; letter-spacing: 2px; }
    #loading .logo-sub { color: rgba(255,255,255,.5); font-size: 13px; margin-top: 10px; letter-spacing: .05em; }
    #loading .spinner { width: 28px; height: 28px; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; margin-top: 28px; }
    @keyframes spin { to { transform: rotate(360deg); } }
    @keyframes mapPulse{0%{transform:translate(-50%,-50%) scale(0.6);opacity:.7}80%{transform:translate(-50%,-50%) scale(2.8);opacity:0}100%{transform:translate(-50%,-50%) scale(2.8);opacity:0}}
    @keyframes mapPulse2{0%{transform:translate(-50%,-50%) scale(0.6);opacity:.5}80%{transform:translate(-50%,-50%) scale(3.6);opacity:0}100%{transform:translate(-50%,-50%) scale(3.6);opacity:0}}
    @keyframes mapPinDrop{0%{transform:translateY(-50px);opacity:0}60%{transform:translateY(8px);opacity:1}100%{transform:translateY(0);opacity:1}}
    @keyframes mapLineDraw{from{stroke-dashoffset:500}to{stroke-dashoffset:0}}
    @keyframes mapCardFade{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
    @keyframes mapTitleFade{from{opacity:0;transform:translateY(-12px)}to{opacity:1;transform:translateY(0)}}
    @keyframes mapFloatY{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}

    /* ─── AUTH ─── */
    #auth-view {
      min-height: 100vh; display: flex; align-items: center; justify-content: center;
      background: linear-gradient(135deg, var(--navy) 0%, #1a3a6b 100%);
    }
    .auth-card {
      background: var(--surface); border-radius: 16px; padding: 40px;
      width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,.25);
    }
    .auth-logo { text-align: center; margin-bottom: 28px; }
    .auth-logo img { height: 50px; object-fit: contain; }
    .auth-logo-sub { font-size: 12px; color: var(--text-3); margin-top: 6px; letter-spacing: .06em; text-transform: uppercase; }
    .auth-title { font-size: 22px; font-weight: 700; color: var(--text-1); margin-bottom: 4px; }
    .auth-sub { font-size: 13px; color: var(--text-2); margin-bottom: 24px; }
    .auth-divider { height: 1px; background: var(--border); margin: 20px 0; }
    .auth-switch { font-size: 13px; color: var(--text-2); text-align: center; margin-top: 16px; }
    .auth-switch a { color: var(--teal); cursor: pointer; font-weight: 500; text-decoration: none; }

    /* ─── APP SHELL ─── */
    .app-shell { display: flex; height: 100vh; overflow: hidden; }

    /* ─── SIDEBAR ─── */
    .sidebar {
      width: var(--sb-width); min-width: var(--sb-width);
      background: #ffffff; border-right: 1px solid var(--border);
      display: flex; flex-direction: column;
      height: 100vh; position: fixed; left: 0; top: 0; z-index: 100;
    }
    .sb-brand {
      padding: 20px 16px 16px; border-bottom: 1px solid var(--border);
      text-align: center;
    }
    .sb-brand-logo-wrap {
      display: flex; align-items: center; justify-content: center;
      margin: 0 auto 6px; width: fit-content;
    }
    .sb-brand img { height: 48px; object-fit: contain; display: block; }
    .sb-brand-sub { font-size: 10px; color: var(--text-3); letter-spacing: .1em; text-transform: uppercase; }

    .sb-nav { flex: 1; padding: 12px 10px; overflow-y: auto; }
    .sb-section { font-size: 10px; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; padding: 12px 10px 6px; font-weight: 600; }

    /* Tab buttons styled as sidebar items */
    .tab-btn {
      display: flex; align-items: center; gap: 10px;
      width: 100%; padding: 9px 12px; border-radius: var(--radius-xs);
      border: none; background: none; cursor: pointer;
      font-size: 13.5px; font-weight: 500; color: var(--text-2);
      font-family: var(--font); text-align: left;
      transition: background .15s, color .15s;
      margin-bottom: 2px;
    }
    .tab-btn:hover { background: var(--teal-lt); color: var(--teal); }
    .tab-btn.active { background: var(--teal-lt); color: var(--teal); font-weight: 600; }
    .tab-btn.active .sb-icon { color: var(--teal); }
    .sb-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }

    .sb-footer {
      padding: 14px; border-top: 1px solid var(--border);
    }
    .sb-user { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
    .sb-avatar {
      width: 34px; height: 34px; border-radius: 50%; background: var(--teal);
      display: flex; align-items: center; justify-content: center;
      font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0;
    }
    .sb-user-info { flex: 1; min-width: 0; }
    .sb-user-name { font-size: 13px; font-weight: 600; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .sb-user-role { font-size: 11px; color: var(--text-2); }
    .btn-logout {
      width: 100%; padding: 8px; border-radius: var(--radius-xs); border: 1px solid var(--border);
      background: none; color: var(--text-2); font-size: 12.5px; cursor: pointer;
      font-family: var(--font); transition: all .15s;
    }
    .btn-logout:hover { background: var(--teal-lt); color: var(--teal); border-color: var(--teal-lt); }

    /* ─── MAIN AREA ─── */
    .app-body {
      margin-left: var(--sb-width); flex: 1; display: flex; flex-direction: column;
      height: 100vh; overflow: hidden;
    }
    .page-topbar {
      background: var(--surface); border-bottom: 1px solid var(--border);
      padding: 0 28px; height: 56px; display: flex; align-items: center;
      justify-content: space-between; flex-shrink: 0;
    }
    .page-topbar-title { font-size: 15px; font-weight: 600; color: var(--text-1); }
    .page-topbar-right { display: flex; align-items: center; gap: 12px; }
    .topbar-tag {
      font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
      background: var(--teal-lt); color: var(--teal); padding: 3px 10px; border-radius: 20px;
    }
    .admin-badge {
      font-size: 10px; font-weight: 700; letter-spacing: .06em;
      background: var(--gold-lt); color: var(--gold); padding: 2px 8px; border-radius: 20px;
    }

    .page-scroll { flex: 1; overflow-y: auto; padding: 28px; }

    /* ─── CARDS ─── */
    .card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 24px;
    }
    .card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
    .card-title { font-size: 14px; font-weight: 600; color: var(--text-1); }
    .card-sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }

    /* ─── STAT CARDS ─── */
    .stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
    .stat-card {
      background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
      padding: 20px 24px;
    }
    .stat-label { font-size: 12px; color: var(--text-2); font-weight: 500; margin-bottom: 8px; }
    .stat-val { font-size: 28px; font-weight: 700; color: var(--text-1); line-height: 1; }
    .stat-meta { font-size: 11px; color: var(--text-3); margin-top: 4px; }
    .stat-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; margin-bottom: 12px; }
    .stat-icon.teal { background: var(--teal-lt); }
    .stat-icon.green { background: var(--green-lt); }
    .stat-icon.gold { background: var(--gold-lt); }
    .stat-icon.blue { background: var(--blue-lt); }

    /* ─── GRID LAYOUTS ─── */
    .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
    .mb-6 { margin-bottom: 24px; }

    /* ─── TABLES ─── */
    .table-wrap { overflow-x: auto; }
    table { width: 100%; border-collapse: collapse; }
    thead th {
      font-size: 11px; font-weight: 600; color: var(--text-2); text-transform: uppercase;
      letter-spacing: .05em; padding: 10px 16px; border-bottom: 1px solid var(--border);
      white-space: nowrap; text-align: left; background: var(--bg);
    }
    tbody td { padding: 13px 16px; border-bottom: 1px solid var(--border-lt); font-size: 13.5px; vertical-align: middle; }
    tbody tr:last-child td { border-bottom: none; }
    tbody tr:hover td { background: #FAFBFC; }

    /* ─── BADGES ─── */
    .badge {
      display: inline-flex; align-items: center; font-size: 11px; font-weight: 600;
      padding: 3px 9px; border-radius: 20px; white-space: nowrap;
    }
    .badge-green  { background: var(--green-lt);  color: #065F46; }
    .badge-red    { background: var(--red-lt);    color: #991B1B; }
    .badge-gold   { background: var(--gold-lt);   color: #92400E; }
    .badge-blue   { background: var(--blue-lt);   color: #1E40AF; }
    .badge-gray   { background: #F3F4F6;          color: #374151; }
    .badge-teal   { background: var(--teal-lt);   color: var(--teal-dark); }

    /* ─── BUTTONS ─── */
    .btn {
      display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px;
      border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 500;
      cursor: pointer; border: none; font-family: var(--font); transition: all .15s;
      text-decoration: none;
    }
    .btn-primary   { background: var(--teal); color: #fff; }
    .btn-primary:hover { background: var(--teal-dark); }
    .btn-secondary { background: var(--bg); color: var(--text-1); border: 1px solid var(--border); }
    .btn-secondary:hover { background: #ECEEF1; }
    .btn-outline   { background: none; color: var(--text-1); border: 1px solid var(--border); }
    .btn-outline:hover { background: var(--bg); }
    .btn-danger    { background: var(--red); color: #fff; }
    .btn-danger:hover { background: #DC2626; }
    .btn-gold      { background: var(--gold); color: #fff; }
    .btn-gold:hover { background: #D97706; }
    .btn-sm { padding: 6px 14px; font-size: 12.5px; }
    .btn-xs { padding: 4px 10px; font-size: 12px; }

    /* ─── FORMS ─── */
    .form-group { margin-bottom: 16px; }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .form-label { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-1); margin-bottom: 6px; }
    .form-input {
      width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
      font-size: 13.5px; font-family: var(--font); color: var(--text-1); background: var(--surface);
      transition: border-color .15s, box-shadow .15s; outline: none;
    }
    .form-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(42,133,117,.1); }
    .form-input::placeholder { color: var(--text-3); }

    /* ─── MESSAGES ─── */
    .msg { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 12px; }
    .msg-info    { background: var(--blue-lt);  color: #1E40AF; }
    .msg-success { background: var(--green-lt); color: #065F46; }
    .msg-error   { background: var(--red-lt);   color: #991B1B; }

    /* ─── SEARCH BAR ─── */
    .search-wrap { position: relative; }
    .search-wrap input { padding-left: 34px; }
    .search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 14px; }

    /* ─── TAB PANELS ─── */
    .tab-panel { display: none; }
    .tab-panel.active { display: block; }

    /* ─── EMPLOYEE PROFILE PANEL ─── */
    .profile-hero {
      background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
      border-radius: var(--radius) var(--radius) 0 0;
      padding: 28px 28px 0;
      position: relative;
    }
    .profile-hero-inner { display: flex; align-items: flex-end; gap: 20px; }
    .profile-avatar-wrap {
      width: 110px; height: 140px; border-radius: 10px;
      border: 3px solid rgba(255,255,255,.5);
      overflow: hidden; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      font-size: 42px; font-weight: 700; color: #fff;
      position: relative;
      margin-bottom: -30px;
      box-shadow: 0 4px 16px rgba(0,0,0,.22);
    }
    .profile-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
    .profile-hero-info { padding-bottom: 24px; }
    .profile-hero-name { font-size: 20px; font-weight: 700; color: #fff; }
    .profile-hero-pos { font-size: 13px; color: rgba(255,255,255,.65); margin-top: 2px; }
    .profile-hero-badges { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
    .profile-hero-actions { margin-left: auto; padding-bottom: 24px; }
    .profile-body {
      background: var(--surface); border: 1px solid var(--border);
      border-top: none; border-radius: 0 0 var(--radius) var(--radius);
      padding: 32px 28px;
    }
    .profile-section { margin-bottom: 28px; }
    .profile-section:last-child { margin-bottom: 0; }
    .profile-section-title {
      font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
      color: var(--text-3); margin-bottom: 14px; padding-bottom: 10px;
      border-bottom: 1px solid var(--border-lt);
    }
    .profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .profile-item label { font-size: 11px; color: var(--text-3); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; display: block; margin-bottom: 3px; }
    .profile-item span { font-size: 14px; color: var(--text-1); font-weight: 500; }
    .profile-item a { color: var(--teal); text-decoration: none; }

    /* ─── DOCUMENTS TABLE ─── */
    .doc-table { width: 100%; border-collapse: collapse; }
    .doc-table td { padding: 12px 0; border-bottom: 1px solid var(--border-lt); vertical-align: middle; }
    .doc-table tr:last-child td { border-bottom: none; }
    .doc-file-icon { font-size: 20px; width: 32px; }
    .doc-file-name { font-size: 14px; font-weight: 500; color: var(--text-1); }
    .doc-file-type { font-size: 12px; color: var(--text-3); }
    .doc-view-btn {
      display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px;
      font-weight: 500; color: var(--teal); text-decoration: none; padding: 5px 12px;
      border: 1px solid var(--teal-lt); border-radius: 6px; background: var(--teal-lt);
      transition: all .15s;
    }
    .doc-view-btn:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
    .doc-missing { font-size: 12.5px; color: var(--text-3); }

    /* ─── SKELETON ─── */
    @keyframes shimmer { 0%{background-position:-400px 0} 100%{background-position:400px 0} }
    .skeleton-row { height: 48px; border-radius: 8px; margin-bottom: 8px; background: linear-gradient(90deg,#f0f2f5 25%,#e8eaed 50%,#f0f2f5 75%); background-size: 400px 100%; animation: shimmer 1.4s infinite; }
    .dash-doc-tile.skeleton {
      cursor: default; pointer-events: none;
      background: linear-gradient(90deg,#f0f2f5 25%,#e8eaed 50%,#f0f2f5 75%);
      background-size: 400px 100%; animation: shimmer 1.4s infinite;
    }
    .dash-doc-tile.skeleton .dash-doc-icon,
    .dash-doc-tile.skeleton .dash-doc-label,
    .dash-doc-tile.skeleton .dash-doc-sub { opacity: 0; }

    /* ─── PAYROLL TABLE ─── */
    .payroll-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
    .payroll-table thead tr {
      background: #F0F4F8; border-bottom: 2px solid #d1d9e0;
    }
    .payroll-table thead th {
      padding: 11px 14px; text-align: left; font-size: 11px; font-weight: 700;
      color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
    }
    .payroll-table thead th:last-child { text-align: center; }
    .payroll-table tbody tr { border-bottom: 1px solid var(--border); transition: background .1s; }
    .payroll-table tbody tr:last-child { border-bottom: none; }
    .payroll-table tbody tr:hover { background: #F7FAFB; }
    .payroll-table tbody tr.payroll-zero { opacity: .55; }
    .payroll-table td { padding: 13px 14px; vertical-align: middle; color: var(--text-1); }
    .payroll-table td.td-num { font-variant-numeric: tabular-nums; }
    .payroll-table td.td-center { text-align: center; }
    .exp-detail { font-size: 11px; color: var(--text-2); margin-top: 3px; line-height: 1.6; }
    .net-pay { font-weight: 700; color: var(--navy); font-size: 14px; }
    /* (legacy selectors kept for compat) */
    .payroll-header {
      display: none;
    }
    .payroll-row { display: none; }
    .payroll-header-UNUSED {
      background: var(--bg); border-radius: var(--radius-sm) var(--radius-sm) 0 0;
      border: 1px solid var(--border); border-bottom: none;
      padding: 10px 16px;
      font-size: 11px; font-weight: 600; color: var(--text-2);
      text-transform: uppercase; letter-spacing: .05em;
    }
    .payroll-data-row {
      background: var(--surface); border: 1px solid var(--border); border-top: none;
      padding: 12px 16px; font-size: 13.5px; transition: background .1s;
    }
    .payroll-data-row:hover { background: #FAFBFC; }
    .payroll-data-row > div { display: flex; align-items: center; padding: 2px 0; }

    /* ─── SECTION HEADER ─── */
    .section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
    .section-title { font-size: 16px; font-weight: 600; color: var(--text-1); }
    .section-sub { font-size: 13px; color: var(--text-2); margin-top: 3px; }

    /* ─── AVATAR CELL ─── */
    .cell-avatar {
      width: 32px; height: 32px; border-radius: 50%;
      display: inline-flex; align-items: center; justify-content: center;
      font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
    }
    .cell-name { font-weight: 500; color: var(--text-1); }
    .cell-email { font-size: 12px; color: var(--text-2); }

    /* ─── EMPTY STATE ─── */
    .empty-state { text-align: center; padding: 48px 24px; color: var(--text-3); }
    .empty-icon { font-size: 32px; margin-bottom: 12px; }
    .empty-title { font-size: 15px; font-weight: 600; color: var(--text-2); margin-bottom: 4px; }
    .empty-sub { font-size: 13px; }

    /* ─── SLIPS LIST (employee view) ─── */
    .slip-item {
      display: flex; align-items: center; justify-content: space-between;
      padding: 14px 0; border-bottom: 1px solid var(--border-lt);
    }
    .slip-item:last-child { border-bottom: none; }
    .slip-month { font-size: 14px; font-weight: 500; color: var(--text-1); }
    .slip-gross { font-size: 13px; color: var(--text-2); }

    /* ─── MODAL ─── */
    .modal-overlay {
      position: fixed; inset: 0; background: rgba(0,0,0,.45);
      display: flex; align-items: center; justify-content: center; z-index: 500; padding: 20px;
    }
    .modal {
      background: var(--surface); border-radius: var(--radius); width: 100%; max-width: 600px;
      max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-md);
    }
    .modal-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 20px 24px; border-bottom: 1px solid var(--border);
    }
    .modal-title { font-size: 16px; font-weight: 600; }
    .modal-close { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--text-3); padding: 4px 8px; border-radius: 4px; }
    .modal-close:hover { background: var(--bg); color: var(--text-1); }
    .modal-body { padding: 24px; }
    .modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--border); }

    /* ─── MODAL BOX (solid white card) ─── */
    .modal-box {
      background: var(--surface); border-radius: var(--radius); width: 100%;
      max-height: 90vh; overflow-y: auto; box-shadow: 0 8px 40px rgba(0,0,0,.22);
      border: 1px solid var(--border); padding: 28px 28px 20px;
    }
    .modal-box .modal-title { font-size:17px;font-weight:700;color:var(--navy);margin-bottom:20px;padding-bottom:14px;border-bottom:1px solid var(--border); }
    .modal-box .modal-actions { display:flex;justify-content:flex-end;gap:10px;margin-top:20px;padding-top:16px;border-top:1px solid var(--border); }

    /* ─── ANNOUNCEMENTS ─── */
    .ann-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:20px 24px; margin-bottom:14px; }
    .ann-card-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:10px; }
    .ann-category-badge { font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:3px 9px;border-radius:4px;background:#e6f3f1;color:#0f6e56; }
    .ann-category-badge.hr { background:#fef3c7;color:#92400e; }
    .ann-category-badge.finance { background:#ede9fe;color:#4c1d95; }
    .ann-category-badge.operations { background:#dbeafe;color:#1e3a8a; }
    .ann-category-badge.newsletter { background:#fce7f3;color:#9d174d; }
    .ann-title { font-size:16px;font-weight:600;color:var(--navy);margin:6px 0 4px; }
    .ann-meta { font-size:12px;color:var(--text-muted); }
    .ann-body-preview { font-size:14px;color:var(--text-1);line-height:1.75;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical; }
    .ann-body-full { font-size:14px;color:var(--text-1);line-height:1.75;white-space:pre-wrap; }
    .ann-read-more { font-size:13px;color:var(--teal);background:none;border:none;cursor:pointer;padding:4px 0;margin-top:4px;font-weight:500; }
    .ann-read-more:hover { text-decoration:underline; }
    .ann-file-zone { border:2px dashed var(--border);border-radius:8px;padding:18px;text-align:center;cursor:pointer;transition:border-color .2s,background .2s; }
    .ann-file-zone:hover { border-color:var(--teal);background:rgba(42,133,117,.04); }
    .ann-file-selected { background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:10px 14px;display:flex;align-items:center;gap:10px;font-size:13px; }
    .ann-embed-img { max-width:100%;border-radius:8px;margin-top:12px;display:block; }
    .ann-embed-pdf { width:100%;height:420px;border:1px solid var(--border);border-radius:8px;margin-top:12px; }
    .ann-badge { background:#e07060;color:#fff;font-size:10px;font-weight:700;padding:1px 5px;border-radius:8px;margin-left:auto;line-height:1.5; }

    /* ─── CERTIFICATE TYPE BUTTONS ─── */
    .cert-type-btn {
      background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius);
      padding: 20px 12px; text-align: center; cursor: pointer; transition: border-color .2s, box-shadow .2s;
      width: 100%;
    }
    .cert-type-btn:hover { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(42,133,117,.12); }

    /* ─── EMPLOYEE PROFILE PHOTO ─── */
    #emp-photo-section { flex-shrink: 0; }
    #emp-avatar-wrap {
      width: 160px; height: 160px; border-radius: 12px; overflow: hidden;
      background: var(--teal); display: flex; align-items: center;
      justify-content: center; position: relative;
      border: 3px solid var(--border); box-shadow: 0 4px 16px rgba(0,0,0,.12);
      cursor: pointer;
    }
    #emp-avatar-wrap:hover #emp-avatar-overlay { opacity: 1; }
    #emp-avatar-initials { font-size: 52px; font-weight: 700; color: #fff; line-height: 1; }
    #emp-avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; display: none; }
    #emp-avatar-overlay {
      position: absolute; inset: 0; background: rgba(0,0,0,.52);
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      color: #fff; opacity: 0; transition: opacity .2s; gap: 6px;
    }
    #emp-avatar-overlay span:first-child { font-size: 22px; }
    #emp-avatar-overlay span:last-child  { font-size: 12px; font-weight: 600; letter-spacing: .03em; }
    #emp-photo-msg { font-size: 12px; margin-top: 8px; min-height: 18px; text-align: center; }

    /* ─── PROFILE / COMP INFO ROWS (employee view) ─── */
    .info-row {
      display: flex; align-items: center; justify-content: space-between;
      padding: 10px 0; border-bottom: 1px solid var(--border);
    }
    .info-row:last-child { border-bottom: none; }
    .info-label {
      font-size: 12px; font-weight: 600; color: var(--text-muted);
      text-transform: uppercase; letter-spacing: .4px; flex-shrink: 0; margin-right: 12px;
    }
    .info-val {
      font-size: 14px; font-weight: 500; color: var(--text-1); text-align: right;
    }
    .comp-highlight {
      background: var(--teal-lt); border-radius: var(--radius);
      padding: 16px 20px; margin-bottom: 16px; text-align: center;
    }
    .comp-label  { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--teal); font-weight: 600; margin-bottom: 4px; }
    .comp-amount { font-size: 28px; font-weight: 700; color: var(--navy); }
    .comp-period { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

    /* ─── WELCOME BANNER (employee view) ─── */
    .welcome-banner {
      background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
      border-radius: var(--radius); padding: 24px 28px; margin-bottom: 24px; color: #fff;
    }
    .welcome-greeting { font-size: 22px; font-weight: 700; }
    .welcome-sub { font-size: 13px; color: rgba(255,255,255,.65); margin-top: 4px; }
    .welcome-role { display: inline-block; margin-top: 12px; background: rgba(255,255,255,.15); font-size: 12px; padding: 4px 12px; border-radius: 20px; }

    /* ─── CHARTS ─── */
    .chart-section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin-bottom: 16px; }

    /* ─── DIRECTORY (employees tab) ─── */
    .dir-layout { display: grid; grid-template-columns: 300px 1fr; gap: 20px; }
    .dir-list { display: flex; flex-direction: column; gap: 4px; max-height: 560px; overflow-y: auto; }
    .dir-card {
      display: flex; align-items: center; gap: 12px; padding: 10px 12px;
      border-radius: var(--radius-sm); cursor: pointer; transition: background .12s;
      border: 1px solid transparent;
    }
    .dir-card:hover { background: var(--bg); }
    .dir-card.active { background: var(--teal-lt); border-color: rgba(42,133,117,.2); }
    .dir-avatar {
      width: 36px; height: 36px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0; overflow: hidden;
    }
    .dir-avatar img { width: 100%; height: 100%; object-fit: cover; }
    .dir-card-name { font-size: 13.5px; font-weight: 500; color: var(--text-1); }
    .dir-card-pos  { font-size: 12px; color: var(--text-2); margin-top: 1px; }
    .dir-detail { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
    .dir-detail-empty { text-align: center; padding: 40px; color: var(--text-3); }
    .dir-detail-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border-lt); }
    .dir-detail-avatar {
      width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      font-size: 20px; font-weight: 700; color: #fff; overflow: hidden; position: relative;
    }
    .dir-detail-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
    .dir-detail-name { font-size: 17px; font-weight: 700; color: var(--text-1); }
    .dir-detail-pos  { font-size: 13px; color: var(--text-2); margin-top: 2px; }
    .dir-detail-badges { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
    .dir-section { margin-bottom: 20px; }
    .dir-section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 12px; }
    .dir-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .dir-info-item label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; display: block; margin-bottom: 2px; }
    .dir-info-item span  { font-size: 13.5px; color: var(--text-1); font-weight: 500; }
    .dir-docs { display: flex; flex-direction: column; gap: 2px; }
    .dir-doc-link {
      display: flex; align-items: center; gap: 10px; padding: 9px 12px;
      border-radius: var(--radius-sm); text-decoration: none; color: var(--text-1);
      transition: background .12s; border: 1px solid transparent;
    }
    .dir-doc-link:hover { background: var(--bg); border-color: var(--border); }
    .dir-doc-missing { color: var(--text-3); cursor: default; }
    .dir-doc-missing:hover { background: none; border-color: transparent; }
    .doc-icon { font-size: 16px; width: 24px; flex-shrink: 0; }
    .doc-name { flex: 1; font-size: 13.5px; font-weight: 500; }
    .doc-arrow { font-size: 12px; color: var(--teal); font-weight: 500; }
    .dir-upload-btn {
      position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
      background: rgba(0,0,0,.45); color: #fff; font-size: 20px; opacity: 0;
      transition: opacity .15s; border-radius: 50%; cursor: pointer;
    }
    .dir-detail-avatar:hover .dir-upload-btn { opacity: 1; }
    .dir-actions { display: flex; gap: 10px; padding-top: 16px; border-top: 1px solid var(--border-lt); }

    /* ─── TYPE BARS ─── */
    .type-bars { display: flex; flex-direction: column; gap: 10px; }
    .type-bar-row { display: flex; align-items: center; gap: 10px; }
    .type-bar-label { font-size: 12.5px; color: var(--text-1); width: 110px; flex-shrink: 0; font-weight: 500; }
    .type-bar-track { flex: 1; height: 6px; background: var(--border-lt); border-radius: 3px; overflow: hidden; }
    .type-bar-fill  { height: 100%; border-radius: 3px; transition: width .5s; }
    .type-bar-count { font-size: 12px; color: var(--text-2); width: 20px; text-align: right; }

    /* ─── SECTION DIVIDER ─── */
    .section-divider { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--teal); border-bottom: 1px solid var(--border-lt); padding-bottom: 8px; margin: 20px 0 14px; }

    /* photo loading overlay */
    .dash-photo-loading-overlay {
      position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
      background: rgba(255,255,255,.55); font-size: 11px; color: var(--text-3); pointer-events: none;
    }

    /* profile info items for admin profile tab */
    .dash-info-item { display: flex; flex-direction: column; gap: 3px; }
    .dash-info-item label { font-size: 11px; color: var(--text-3); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
    .dash-info-item span { font-size: 14px; color: var(--text-1); font-weight: 500; }

    /* doc tiles for admin profile tab (repurposed as rows) */
    .dash-doc-tile {
      display: flex; align-items: center; gap: 12px; padding: 11px 14px;
      border: 1px solid var(--border); border-radius: var(--radius-sm);
      text-decoration: none; color: var(--text-1); background: var(--surface);
      transition: all .15s;
    }
    .dash-doc-tile:not(.missing):hover { border-color: var(--teal); background: var(--teal-lt); }
    .dash-doc-tile.missing { background: var(--bg); opacity: .7; cursor: default; }
    .dash-doc-icon { font-size: 18px; flex-shrink: 0; }
    .dash-doc-label { flex: 1; font-size: 13.5px; font-weight: 500; }
    .dash-doc-sub { font-size: 12px; color: var(--teal); font-weight: 500; }
    .dash-doc-tile.missing .dash-doc-sub { color: var(--text-3); }

    /* photo wrap for admin profile tab */
    #dash-photo-wrap {
      width: 110px; height: 140px; border-radius: 10px; overflow: hidden;
      display: flex; align-items: center; justify-content: center; position: relative;
      border: 3px solid rgba(255,255,255,.5); box-shadow: 0 4px 16px rgba(0,0,0,.22);
      flex-shrink: 0; margin-bottom: -30px;
    }
    #dash-photo-initials { font-size: 42px; font-weight: 700; color: #fff; }
    #dash-photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }

    /* ─── INPUT FILE HIDDEN ─── */
    input[type=file] { display: none; }

    /* ─── SCROLLBAR ─── */
    ::-webkit-scrollbar { width: 6px; height: 6px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
    ::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

    /* ─── RESPONSIVE ─── */
    @media (max-width: 900px) {
      .stats-grid { grid-template-columns: 1fr 1fr; }
      .profile-grid { grid-template-columns: 1fr 1fr; }
      .dir-layout { grid-template-columns: 1fr; }
    }
  