    :root {
      --bg: #f0f9ff;
      --s: #ffffff;
      --b: #e2e8f0;
      --b2: #cbd5e1;
      --t: #1e293b;
      --t2: #475569;
      --t3: #94a3b8;
      
      /* T.P. Sunsolar Brand Colors (Sky Blue) */
      --green: #0284c7;
      --gbg: #e0f2fe;
      --gm: #0ea5e9;
      
      --blue: #2563eb;
      --bbg: #dbeafe;
      --red: #dc2626;
      --rbg: #fee2e2;
      --am: #d97706;
      --abg: #fef3c7;
      
      --r: 8px;
      --rl: 12px;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: 'Sarabun', -apple-system, sans-serif;
    }

    body {
      background: var(--bg);
      color: var(--t);
      font-size: 14px;
    }

    /* ── SOLAR LOGIN — Light & Airy ──────────────────────────────────── */
    @import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700&display=swap');

    .lux-login-wrap {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(254, 240, 138, 0.45) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 90% 10%, rgba(186, 230, 253, 0.6) 0%, transparent 55%),
        radial-gradient(ellipse 70% 80% at 50% 100%, rgba(186, 230, 253, 0.4) 0%, transparent 60%),
        linear-gradient(160deg, #e0f2fe 0%, #f0f9ff 40%, #fef9ee 70%, #fff7ed 100%);
      position: relative;
      overflow: hidden;
      font-family: 'Sarabun', sans-serif;
    }

    /* Solar Ray Burst behind card */
    .lux-login-wrap::before {
      content: '';
      position: absolute;
      top: -20%;
      right: -10%;
      width: 700px;
      height: 700px;
      background: conic-gradient(
        from 0deg,
        transparent 0deg, rgba(253, 224, 71, 0.12) 10deg,
        transparent 20deg, rgba(253, 224, 71, 0.1) 30deg,
        transparent 40deg, rgba(253, 224, 71, 0.12) 50deg,
        transparent 60deg, rgba(253, 224, 71, 0.08) 70deg,
        transparent 80deg, rgba(253, 224, 71, 0.12) 90deg,
        transparent 105deg, rgba(253, 224, 71, 0.1) 115deg,
        transparent 130deg, rgba(253, 224, 71, 0.08) 140deg,
        transparent 155deg, rgba(253, 224, 71, 0.1) 165deg,
        transparent 180deg
      );
      border-radius: 50%;
      animation: solarSpin 40s linear infinite;
      z-index: 0;
    }

    .lux-login-wrap::after {
      content: '';
      position: absolute;
      bottom: -15%;
      left: -10%;
      width: 500px;
      height: 500px;
      background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
      border-radius: 50%;
      animation: luxFloat 12s infinite alternate ease-in-out;
      z-index: 0;
    }

    @keyframes solarSpin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    /* Floating Orbs */
    .lux-orb {
      position: absolute;
      border-radius: 50%;
      z-index: 0;
      animation: luxFloat 10s infinite alternate ease-in-out;
    }
    .lux-orb-1 {
      width: 320px; height: 320px;
      background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, transparent 70%);
      filter: blur(40px);
      top: 5%; left: 5%;
    }
    .lux-orb-2 {
      width: 260px; height: 260px;
      background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, transparent 70%);
      filter: blur(50px);
      bottom: 10%; right: 8%;
      animation-delay: -4s;
    }
    .lux-orb-3 {
      width: 180px; height: 180px;
      background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
      filter: blur(35px);
      top: 55%; left: 65%;
      animation-delay: -7s;
    }

    @keyframes luxFloat {
      0% { transform: translate(0, 0) scale(1); }
      100% { transform: translate(20px, -20px) scale(1.05); }
    }

    /* Floating Particles */
    .lux-particle {
      position: absolute;
      border-radius: 50%;
      z-index: 0;
      animation: particleDrift linear infinite;
      pointer-events: none;
    }
    .lux-particle:nth-child(1)  { width:6px;  height:6px;  background:rgba(251,191,36,0.5);  left:12%;  top:80%; animation-duration:14s; animation-delay:0s; }
    .lux-particle:nth-child(2)  { width:4px;  height:4px;  background:rgba(56,189,248,0.5);  left:25%;  top:90%; animation-duration:18s; animation-delay:-3s; }
    .lux-particle:nth-child(3)  { width:8px;  height:8px;  background:rgba(251,191,36,0.35); left:70%;  top:85%; animation-duration:22s; animation-delay:-6s; }
    .lux-particle:nth-child(4)  { width:5px;  height:5px;  background:rgba(34,211,238,0.45); left:85%;  top:75%; animation-duration:16s; animation-delay:-9s; }
    .lux-particle:nth-child(5)  { width:3px;  height:3px;  background:rgba(251,191,36,0.6);  left:45%;  top:92%; animation-duration:20s; animation-delay:-2s; }
    .lux-particle:nth-child(6)  { width:7px;  height:7px;  background:rgba(56,189,248,0.3);  left:58%;  top:88%; animation-duration:25s; animation-delay:-11s; }

    @keyframes particleDrift {
      0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
      10%  { opacity: 1; }
      90%  { opacity: 0.6; }
      100% { transform: translateY(-100vh) translateX(30px) scale(0.5); opacity: 0; }
    }

    /* ── Card (Light Glass) ─────────────────────────── */
    .lux-login-box {
      position: relative;
      z-index: 1;
      background: rgba(255, 255, 255, 0.72);
      backdrop-filter: blur(32px) saturate(160%);
      -webkit-backdrop-filter: blur(32px) saturate(160%);
      border: 1px solid rgba(255, 255, 255, 0.9);
      border-radius: 28px;
      padding: 48px 44px;
      width: 420px;
      box-shadow:
        0 4px 6px -1px rgba(14, 165, 233, 0.06),
        0 20px 50px -10px rgba(14, 165, 233, 0.18),
        0 0 0 1px rgba(255,255,255,0.6) inset,
        0 2px 0 rgba(255,255,255,0.95) inset;
      color: #1e293b;
      /* Top shine strip */
    }
    .lux-login-box::before {
      content: '';
      position: absolute;
      top: 0; left: 5%; right: 5%;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9) 40%, rgba(255,255,255,0.9) 60%, transparent);
      border-radius: 1px;
    }

    .anim-fade-up {
      animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    @keyframes fadeUp {
      0%   { opacity: 0; transform: translateY(28px) scale(0.98); }
      100% { opacity: 1; transform: translateY(0)   scale(1);    }
    }

    /* ── Logo & Header ──────────────────────────────── */
    .lux-login-header {
      text-align: center;
      margin-bottom: 36px;
    }

    .lux-logo-img {
      width: 200px;
      height: auto;
      object-fit: contain;
      margin-bottom: 4px;
      display: block;
      margin-left: auto;
      margin-right: auto;
      mix-blend-mode: multiply;
      transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .lux-logo-img:hover {
      transform: scale(1.03);
      opacity: 0.92;
    }

    .lux-login-sub {
      font-size: 12.5px;
      color: #64748b;
      margin-top: 2px;
      letter-spacing: 0.3px;
      font-weight: 400;
    }

    /* ── Form ───────────────────────────────────────── */
    .lux-form {
      display: flex;
      flex-direction: column;
      gap: 18px;
    }
    .lux-fg label {
      display: block;
      font-size: 13px;
      color: #475569;
      margin-bottom: 7px;
      font-weight: 500;
    }
    .lux-input-wrap {
      position: relative;
    }
    .lux-input-icon {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      color: #94a3b8;
      font-size: 16px;
      pointer-events: none;
      transition: color 0.2s;
    }
    .lux-input-wrap:focus-within .lux-input-icon {
      color: #0ea5e9;
    }
    .lux-input-wrap input {
      width: 100%;
      background: rgba(255, 255, 255, 0.7);
      border: 1.5px solid #e2e8f0;
      color: #1e293b;
      padding: 13px 14px 13px 44px;
      border-radius: 14px;
      font-size: 15px;
      font-family: 'Sarabun', sans-serif;
      transition: all 0.25s ease;
      outline: none;
      box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 0 rgba(255,255,255,0.8) inset;
    }
    .lux-input-wrap input:focus {
      border-color: #38bdf8;
      background: rgba(255, 255, 255, 0.95);
      box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12), 0 1px 3px rgba(0,0,0,0.04);
    }
    .lux-input-wrap input::placeholder {
      color: #cbd5e1;
    }

    /* ── Login Button ───────────────────────────────── */
    .lux-btn-primary {
      margin-top: 6px;
      background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 60%, #0369a1 100%);
      color: #fff;
      border: none;
      padding: 15px;
      border-radius: 14px;
      font-size: 16px;
      font-weight: 600;
      font-family: 'Sarabun', sans-serif;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4), 0 1px 3px rgba(0,0,0,0.1);
      position: relative;
      overflow: hidden;
      letter-spacing: 0.3px;
    }
    .lux-btn-primary::before {
      content: '';
      position: absolute;
      top: 0; left: -100%;
      width: 100%; height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
      transition: left 0.5s ease;
    }
    .lux-btn-primary:hover::before {
      left: 100%;
    }
    .lux-btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(14, 165, 233, 0.5), 0 2px 6px rgba(0,0,0,0.1);
    }
    .lux-btn-primary:active {
      transform: translateY(0);
      box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
    }
    .lux-btn-icon {
      transition: transform 0.3s ease;
      font-style: normal;
    }
    .lux-btn-primary:hover .lux-btn-icon {
      transform: translateX(5px);
    }

    /* ── Hint Box ───────────────────────────────────── */
    .lux-hint-box {
      margin-top: 28px;
      padding: 16px 18px;
      background: rgba(241, 245, 249, 0.7);
      border: 1px solid rgba(226, 232, 240, 0.8);
      border-radius: 14px;
      font-size: 12px;
    }
    .lux-hint-title {
      color: #64748b;
      margin-bottom: 8px;
      font-weight: 600;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .lux-hint-row {
      color: #94a3b8;
      margin-bottom: 5px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .lux-hint-row:last-child { margin-bottom: 0; }
    .lux-hint-row span { color: #64748b; font-weight: 500; }
    .lux-hint-row code {
      background: rgba(14, 165, 233, 0.08);
      border: 1px solid rgba(14, 165, 233, 0.15);
      padding: 2px 8px;
      border-radius: 6px;
      color: #0284c7;
      font-weight: 600;
      font-family: monospace;
    }

    /* ── Error Alert ────────────────────────────────── */
    .lux-alert {
      background: rgba(254, 226, 226, 0.8);
      border: 1px solid rgba(252, 165, 165, 0.6);
      color: #dc2626;
      padding: 12px 16px;
      border-radius: 12px;
      font-size: 13px;
      margin-bottom: 18px;
      text-align: center;
      backdrop-filter: blur(8px);
    }

    /* App */
    .app {
      display: flex;
      height: 100vh;
      overflow: hidden;
    }

    .sidebar {
      width: 210px;
      background: #1e293b;
      border-right: none;
      display: flex;
      flex-direction: column;
      flex-shrink: 0;
    }

    .main {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .topbar {
      background: var(--s);
      border-bottom: 1px solid var(--b);
      padding: 0 20px;
      height: 52px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-shrink: 0;
    }

    /* ── Notification Bell & Popup ──────────────────────────────── */
    .notif-bell {
      position: relative;
      cursor: pointer;
      font-size: 20px;
      margin-right: 5px;
      line-height: 1;
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      transition: background 0.15s;
    }
    .notif-bell:hover {
      background: var(--bg);
    }
    .notif-badge {
      position: absolute;
      top: 0px;
      right: -2px;
      background: #ef4444;
      color: white;
      font-size: 10px;
      font-weight: bold;
      padding: 1px 5px;
      border-radius: 10px;
      line-height: 1.3;
      box-shadow: 0 0 0 2px var(--s);
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 18px;
      animation: notifPulse 2s infinite;
    }
    @keyframes notifPulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.1); }
    }

    .notif-popup {
      position: absolute;
      top: 48px;
      right: 60px;
      width: 380px;
      max-height: 460px;
      background: var(--s);
      border: 1px solid var(--b);
      border-radius: var(--rl);
      box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
      z-index: 999;
      overflow: hidden;
      animation: notifSlide 0.2s ease-out;
    }
    @keyframes notifSlide {
      from { opacity: 0; transform: translateY(-8px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .notif-popup-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 16px;
      border-bottom: 1px solid var(--b);
      font-weight: 600;
      font-size: 14px;
      color: var(--t);
      background: #f8fafc;
    }
    .notif-popup-count {
      font-size: 11px;
      font-weight: 500;
      color: var(--t3);
    }

    .notif-popup-body {
      max-height: 380px;
      overflow-y: auto;
    }

    .notif-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 16px;
      border-bottom: 1px solid var(--b);
      cursor: pointer;
      transition: background 0.12s;
      text-decoration: none;
      color: inherit;
    }
    .notif-item:hover {
      background: var(--bg);
    }
    .notif-item:last-child {
      border-bottom: none;
    }
    .notif-item-icon {
      font-size: 22px;
      width: 40px;
      height: 40px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .notif-item-pending .notif-item-icon {
      background: var(--abg);
    }
    .notif-item-approved .notif-item-icon {
      background: var(--gbg);
    }
    .notif-item-rejected .notif-item-icon {
      background: var(--rbg);
    }
    .notif-item-content {
      flex: 1;
      min-width: 0;
    }
    .notif-item-title {
      font-size: 13px;
      font-weight: 600;
      color: var(--t);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .notif-item-detail {
      font-size: 12px;
      color: var(--t2);
      margin-top: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .notif-item-time {
      font-size: 11px;
      color: var(--t3);
      margin-top: 2px;
    }
    .notif-item-arrow {
      font-size: 18px;
      color: var(--t3);
      flex-shrink: 0;
      transition: transform 0.15s;
    }
    .notif-item:hover .notif-item-arrow {
      transform: translateX(3px);
      color: var(--gm);
    }
    .notif-empty {
      padding: 32px 16px;
      text-align: center;
      color: var(--t3);
      font-size: 14px;
    }

    .content {
      flex: 1;
      overflow-y: auto;
      padding: 20px 24px;
    }

    .brand {
      padding: 16px 18px 12px;
      border-bottom: 1px solid #334155;
    }

    .brand-name {
      font-size: 15px;
      font-weight: 700;
      color: #f8fafc;
    }

    .brand-name span {
      color: var(--gm);
    }

    .brand-sub {
      font-size: 11px;
      color: #64748b;
      margin-top: 1px;
    }

    .nav-sec {
      padding: 10px 14px 4px;
      font-size: 10px;
      color: #64748b;
      font-weight: 600;
      letter-spacing: .6px;
      text-transform: uppercase;
    }

    .nav-item {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 8px 14px;
      margin: 1px 8px;
      border-radius: var(--r);
      font-size: 13px;
      color: #cbd5e1;
      cursor: pointer;
      transition: .12s;
    }

    .nav-item:hover {
      background: #334155;
      color: #f8fafc;
    }

    .nav-item.active {
      background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
      color: #ffffff;
      font-weight: 500;
      box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
    }

    .nav-item .ic {
      width: 16px;
      text-align: center;
      font-size: 14px;
    }

    .divider {
      height: 1px;
      background: var(--b);
      margin: 6px 16px;
    }

    /* Buttons */
    .btn {
      padding: 7px 14px;
      border-radius: var(--r);
      font-size: 13px;
      cursor: pointer;
      border: 1px solid var(--b2);
      background: var(--s);
      color: var(--t);
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: .12s;
    }

    .btn:hover {
      background: var(--bg);
    }

    .btn-primary {
      background: var(--gm);
      color: #fff;
      border-color: var(--gm);
    }

    .btn-primary:hover {
      background: var(--green);
    }

    .btn-sm {
      padding: 4px 10px;
      font-size: 12px;
    }

    .btn-approve {
      background: var(--gbg);
      color: var(--green);
      border-color: #9FE1CB;
    }

    .btn-reject {
      background: var(--rbg);
      color: var(--red);
      border-color: #F7C1C1;
    }

    .btn-ghost {
      border: none;
      background: none;
      color: var(--t2);
      padding: 5px 10px;
      cursor: pointer;
    }

    .btn-ghost:hover {
      color: var(--red);
    }

    /* Cards */
    .page-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 18px;
    }

    .page-title {
      font-size: 17px;
      font-weight: 600;
    }

    .page-sub {
      font-size: 12px;
      color: var(--t2);
      margin-top: 2px;
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
      gap: 10px;
      margin-bottom: 16px;
    }

    .sc {
      background: var(--s);
      border: 1px solid var(--b);
      border-radius: var(--rl);
      padding: 14px 16px;
    }

    .sc-label {
      font-size: 11px;
      color: var(--t2);
      margin-bottom: 5px;
    }

    .sc-val {
      font-size: 24px;
      font-weight: 700;
    }

    .sc-sub {
      font-size: 11px;
      color: var(--t3);
      margin-top: 2px;
    }

    .card {
      background: var(--s);
      border: 1px solid var(--b);
      border-radius: var(--rl);
      padding: 18px 20px;
      margin-bottom: 14px;
    }

    .card-title {
      font-size: 13px;
      font-weight: 600;
      margin-bottom: 12px;
    }

    /* Table */
    .tw {
      overflow-x: auto;
    }

    table {
      width: 100%;
      border-collapse: collapse;
    }

    th,
    td {
      padding: 12px 14px;
      text-align: left;
      border-bottom: 1px solid var(--b);
      font-size: 13px;
    }

    th {
      font-size: 12px;
      font-weight: 600;
      color: var(--t2);
      background: #f1f5f9;
      white-space: nowrap;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    tbody tr:nth-child(even) td {
      background: #f8fafc;
    }

    tr:last-child td {
      border-bottom: none;
    }
    
    tbody tr {
      transition: background 0.15s ease-in-out;
    }

    tbody tr:hover td {
      background: var(--gbg);
    }

    /* Resigned employee row — prominent red bar */
    tbody tr.row-resigned td {
      background: #fee2e2 !important;
      border-bottom-color: #fecaca;
    }
    tbody tr.row-resigned td:first-child {
      box-shadow: inset 4px 0 0 0 var(--red);
    }
    tbody tr.row-resigned:hover td {
      background: #fecaca !important;
    }

    /* Badges */
    .bdg {
      font-size: 11px;
      padding: 2px 8px;
      border-radius: 10px;
      font-weight: 500;
      display: inline-block;
      white-space: nowrap;
    }

    .bdg-work {
      background: var(--gbg);
      color: var(--green);
    }

    .bdg-leave {
      background: var(--abg);
      color: var(--am);
    }

    .bdg-off {
      background: var(--bg);
      color: var(--t3);
    }

    .bdg-absent {
      background: var(--rbg);
      color: var(--red);
    }

    .bdg-pending {
      background: var(--abg);
      color: var(--am);
    }

    .bdg-approved {
      background: var(--gbg);
      color: var(--green);
    }

    .bdg-rejected {
      background: var(--rbg);
      color: var(--red);
    }

    .rbadge {
      font-size: 11px;
      padding: 2px 10px;
      border-radius: 20px;
      font-weight: 600;
    }

    .rb-emp {
      background: var(--bbg);
      color: var(--blue);
    }

    .rb-admin {
      background: var(--gbg);
      color: var(--green);
    }

    .rb-hr {
      background: #FEF3C7;
      color: #92400E;
    }

    /* Leave bars */
    .lbar {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 9px 0;
      border-bottom: 1px solid var(--b);
    }

    .lbar:last-child {
      border-bottom: none;
    }

    .lbar-name {
      font-size: 13px;
      width: 88px;
      flex-shrink: 0;
    }

    .lbar-track {
      flex: 1;
      height: 5px;
      background: var(--bg);
      border-radius: 3px;
      overflow: hidden;
    }

    .lbar-fill {
      height: 100%;
      border-radius: 3px;
      transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .lb-sick {
      background: var(--gm);
    }

    .lb-personal {
      background: var(--blue);
    }

    .lb-vac {
      background: #7F77DD;
    }

    .lbar-num {
      font-size: 12px;
      color: var(--t2);
      width: 70px;
      text-align: right;
      flex-shrink: 0;
    }

    /* Calendar */
    .cal-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 3px;
    }

    .cal-hdr {
      font-size: 11px;
      text-align: center;
      color: var(--t3);
      padding: 4px 2px;
    }

    .cal-day {
      aspect-ratio: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      border-radius: 5px;
    }

    .cal-day.work {
      background: var(--gbg);
      color: var(--green);
      font-weight: 500;
    }

    .cal-day.leave {
      background: var(--abg);
      color: var(--am);
    }

    .cal-day.off {
      background: var(--bg);
      color: var(--t3);
    }

    .cal-day.absent {
      background: var(--rbg);
      color: var(--red);
    }

    .cal-day.today {
      outline: 2px solid var(--gm);
      outline-offset: -1px;
    }

    .cal-day.empty {
      background: none;
    }

    /* Slip */
    .slip-shdr {
      background: var(--bg);
      padding: 8px 14px;
      font-size: 11px;
      font-weight: 600;
      color: var(--t2);
      text-transform: uppercase;
      letter-spacing: .4px;
    }

    .slip-row {
      display: flex;
      justify-content: space-between;
      padding: 8px 14px;
      border-bottom: 1px solid var(--b);
      font-size: 13px;
    }

    .slip-row:last-child {
      border-bottom: none;
    }

    .slip-footer {
      background: var(--gbg);
      padding: 14px 16px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-top: 1px solid #9FE1CB;
    }

    /* Forms */
    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .fg {
      margin-bottom: 13px;
    }

    .fg label {
      display: block;
      font-size: 12px;
      color: var(--t2);
      margin-bottom: 5px;
      font-weight: 500;
    }

    input,
    select,
    textarea {
      width: 100%;
      padding: 7px 11px;
      border: 1px solid var(--b2);
      border-radius: var(--r);
      font-size: 13px;
      background: var(--s);
      color: var(--t);
      font-family: inherit;
      transition: .12s;
    }

    input:focus,
    select:focus,
    textarea:focus {
      outline: none;
      border-color: var(--gm);
    }

    textarea {
      resize: vertical;
      min-height: 72px;
    }

    /* Month nav */
    .mnav {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 14px;
    }

    .mnav-label {
      font-size: 14px;
      font-weight: 500;
      min-width: 130px;
    }

    /* Tabs */
    .tabs {
      display: flex;
      gap: 4px;
      margin-bottom: 16px;
    }

    .tab {
      padding: 6px 14px;
      border-radius: var(--r);
      font-size: 13px;
      cursor: pointer;
      color: var(--t2);
      border: 1px solid transparent;
    }

    .tab.active {
      background: var(--s);
      border-color: var(--b);
      color: var(--t);
      font-weight: 500;
    }

    .tab:hover:not(.active) {
      background: var(--bg);
    }

    /* Modal */
    .modal-bg {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, .45);
      z-index: 200;
      align-items: center;
      justify-content: center;
    }

    .modal-bg.open {
      display: flex;
    }

    .modal {
      background: var(--s);
      border-radius: var(--rl);
      padding: 22px 24px;
      width: 460px;
      max-width: 95vw;
      border: 1px solid var(--b);
    }

    .modal-title {
      font-size: 15px;
      font-weight: 600;
      margin-bottom: 16px;
    }

    .modal-foot {
      display: flex;
      gap: 8px;
      justify-content: flex-end;
      margin-top: 18px;
    }

    /* Utils */
    .tc {
      color: var(--green);
      font-weight: 500;
    }

    .tr {
      color: var(--red);
      font-weight: 500;
    }

    .hidden {
      display: none !important;
    }

    .section {
      display: none;
    }

    .section.active {
      display: block;
    }

    .empty {
      text-align: center;
      padding: 28px;
      color: var(--t3);
      font-size: 13px;
    }

    .alert {
      padding: 10px 14px;
      border-radius: var(--r);
      font-size: 13px;
      margin-bottom: 12px;
    }

    .alert-ok {
      background: var(--gbg);
      color: var(--green);
    }

    .alert-err {
      background: var(--rbg);
      color: var(--red);
    }
a.nav-item { text-decoration: none; }

/* HR Stats Cards */
.hr-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-bottom: 24px;
}

.hr-sc {
  background: var(--s);
  border-radius: var(--rl);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hr-sc:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.hr-sc-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.hr-sc-info {
  display: flex;
  flex-direction: column;
}

.hr-sc-label {
  font-size: 13px;
  color: var(--t2);
  margin-bottom: 4px;
  font-weight: 500;
}

.hr-sc-val {
  font-size: 24px;
  font-weight: 700;
  color: var(--t);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.hr-sc-unit {
  font-size: 12px;
  font-weight: 400;
  color: var(--t3);
}

/* Premium Colors & Gradients */
.hr-sc-blue { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border-color: #bfdbfe; }
.hr-sc-blue .hr-sc-icon { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); color: #fff; box-shadow: 0 4px 10px rgba(37,99,235,0.3); }

.hr-sc-green { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); border-color: #bbf7d0; }
.hr-sc-green .hr-sc-icon { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: #fff; box-shadow: 0 4px 10px rgba(16,185,129,0.3); }

.hr-sc-orange { background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%); border-color: #fed7aa; }
.hr-sc-orange .hr-sc-icon { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); color: #fff; box-shadow: 0 4px 10px rgba(234,88,12,0.3); }

.hr-sc-yellow { background: linear-gradient(135deg, #fefce8 0%, #fef08a 100%); border-color: #fde047; }
.hr-sc-yellow .hr-sc-icon { background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%); color: #fff; box-shadow: 0 4px 10px rgba(234,179,8,0.3); }

.hr-sc-purple { background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%); border-color: #e9d5ff; }
.hr-sc-purple .hr-sc-icon { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); color: #fff; box-shadow: 0 4px 10px rgba(139,92,246,0.3); }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.anim-fade {
  animation: fadeInUp 0.5s ease-out forwards;
  opacity: 0;
}
.d-1 { animation-delay: 0.1s; }
.d-2 { animation-delay: 0.2s; }
.d-3 { animation-delay: 0.3s; }
.d-4 { animation-delay: 0.4s; }
.d-5 { animation-delay: 0.5s; }

/* ── HR Dashboard Detail Cards ──────────────────────────────── */
.hr-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

@media (min-width: 1100px) {
  .hr-detail-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .hr-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hr-detail-card {
  background: var(--s);
  border: 1px solid var(--b);
  border-radius: var(--rl);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.03);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hr-detail-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,.07);
}

.hr-detail-hdr {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--b);
  background: linear-gradient(135deg, rgba(255,255,255,.8), rgba(244,244,242,.5));
}

.hr-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.hr-di-purple { background: #f3e8ff; }
.hr-di-orange { background: #ffedd5; }
.hr-di-green  { background: #dcfce7; }

.hr-detail-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--t);
}

.hr-detail-sub {
  font-size: 11px;
  color: var(--t3);
  margin-top: 1px;
}

.hr-detail-body {
  padding: 0;
}

.hr-detail-body table {
  margin: 0;
}

.hr-detail-body th {
  font-size: 10px;
  padding: 8px 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.hr-detail-body td {
  padding: 10px 10px;
  font-size: 12.5px;
  vertical-align: middle;
}

.hr-detail-body .hd-row {
  transition: background 0.15s;
}

.hr-detail-body .hd-row:hover td {
  background: rgba(29, 158, 117, .03);
}

.hd-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background: var(--bg);
  color: var(--t2);
}

.hd-rank-late {
  font-size: 15px;
  background: none;
}

.hd-rank-early {
  font-size: 15px;
  background: none;
}

.hd-name {
  font-weight: 500;
  color: var(--t);
  font-size: 13px;
  line-height: 1.3;
}

.hd-pos {
  font-size: 11px;
  color: var(--t3);
  margin-top: 1px;
}

.hd-pos-cell {
  color: var(--t2);
  font-size: 12px;
}

.hd-amount {
  font-weight: 600;
  color: var(--blue);
  font-size: 13px;
}

.hd-date {
  font-size: 11.5px;
  color: var(--t3);
  white-space: nowrap;
}

.hd-late-count {
  display: inline-block;
  background: var(--rbg);
  color: var(--red);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.hd-time {
  color: var(--red);
  font-weight: 500;
  font-size: 13px;
}

.hd-early-time {
  display: inline-block;
  background: var(--gbg);
  color: var(--green);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

/* ════════════════════════════════════════════════════════════════
   Request Form Pages (Leave + Advance)
   ════════════════════════════════════════════════════════════════ */

/* Layout */
.rq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 900px) {
  .rq-layout {
    grid-template-columns: 1fr 1fr;
  }
}

/* Form Card */
.rq-form-card {
  background: var(--s);
  border: 1px solid var(--b);
  border-radius: var(--rl);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.rq-form-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--b);
  background: linear-gradient(135deg, rgba(255,255,255,.9), var(--bg));
}

.rq-form-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.rq-fi-leave { background: #dbeafe; }
.rq-fi-adv   { background: #f3e8ff; }

.rq-form-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--t);
}

.rq-form-sub {
  font-size: 12px;
  color: var(--t3);
  margin-top: 2px;
}

.rq-form-body {
  padding: 20px 22px;
}

/* Form Fields */
.rq-fg {
  margin-bottom: 16px;
}

.rq-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--t2);
  margin-bottom: 6px;
}

.rq-label-icon {
  font-size: 14px;
}

.rq-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--b2);
  border-radius: var(--r);
  font-size: 14px;
  background: var(--s);
  color: var(--t);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rq-input:focus {
  outline: none;
  border-color: var(--gm);
  box-shadow: 0 0 0 3px rgba(29, 158, 117, .1);
}

.rq-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}

.rq-select-wrap {
  position: relative;
}

.rq-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Amount input */
.rq-amount-wrap {
  position: relative;
}

.rq-amount-input {
  padding-right: 50px;
  font-size: 18px;
  font-weight: 600;
}

.rq-amount-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--t3);
  font-weight: 500;
}

/* Days info */
.rq-days-info {
  margin-bottom: 16px;
  animation: rqFadeIn 0.3s ease;
}

.rq-days-badge {
  display: inline-block;
  background: var(--bbg);
  color: var(--blue);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* Submit button */
.rq-submit {
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: var(--r);
  background: linear-gradient(135deg, var(--gm), var(--green));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(15, 110, 86, .2);
}

.rq-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(15, 110, 86, .3);
}

.rq-submit:active {
  transform: translateY(0);
}

.rq-submit-adv {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  box-shadow: 0 2px 8px rgba(109, 40, 217, .2);
}

.rq-submit-adv:hover {
  box-shadow: 0 4px 16px rgba(109, 40, 217, .3);
}

/* Alert */
.rq-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--r);
  background: var(--gbg);
  border: 1px solid #9FE1CB;
  margin-bottom: 16px;
  animation: rqSlideDown 0.3s ease;
}

.rq-alert-show {
  animation: rqSlideDown 0.3s ease;
}

.rq-alert-icon {
  font-size: 20px;
}

.rq-alert-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
}

/* Side panel */
.rq-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rq-side-full {
  min-height: 400px;
}

/* Balance card */
.rq-balance-card {
  background: var(--s);
  border: 1px solid var(--b);
  border-radius: var(--rl);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.rq-balance-header {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--b);
  background: linear-gradient(135deg, rgba(255,255,255,.9), var(--bg));
}

.rq-balance-items {
  padding: 14px 18px;
}

.rq-bal-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--b);
}

.rq-bal-item:last-child {
  border-bottom: none;
}

.rq-bal-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.rq-bal-icon {
  font-size: 16px;
}

.rq-bal-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--t);
  flex: 1;
}

.rq-bal-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--t2);
}

.rq-bal-bar {
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
}

.rq-bal-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

.rq-bal-loading {
  text-align: center;
  padding: 20px;
  color: var(--t3);
  font-size: 13px;
}

/* History card */
.rq-history-card {
  background: var(--s);
  border: 1px solid var(--b);
  border-radius: var(--rl);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  flex: 1;
}

.rq-history-tall {
  min-height: 300px;
}

.rq-history-header {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--b);
  background: linear-gradient(135deg, rgba(255,255,255,.9), var(--bg));
}

.rq-history-body {
  padding: 6px 0;
  max-height: 450px;
  overflow-y: auto;
}

.rq-hist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--b);
  transition: background 0.15s;
}

.rq-hist-item:last-child {
  border-bottom: none;
}

.rq-hist-item:hover {
  background: rgba(0,0,0,.01);
}

.rq-hist-left {
  flex: 1;
}

.rq-hist-type {
  font-size: 13px;
  font-weight: 600;
  color: var(--t);
  margin-bottom: 2px;
}

.rq-hist-date {
  font-size: 11.5px;
  color: var(--t3);
}

.rq-hist-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

/* Advance specific */
.rq-adv-item {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.rq-adv-item .rq-hist-right {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: flex-start;
}

.rq-adv-amount {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
}

.rq-adv-reason {
  font-size: 12px;
  color: var(--t3);
  margin-top: 2px;
}

.rq-slip-btn {
  border: none;
  background: var(--bbg);
  color: var(--blue);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.rq-slip-btn:hover {
  background: #bfdbfe;
}

.rq-empty {
  text-align: center;
  padding: 28px;
  color: var(--t3);
  font-size: 13px;
}

/* ════════════════════════════════════════════════════════════════
   HR Approval Pages (Leave + Advance) - Tabs & Cards
   ════════════════════════════════════════════════════════════════ */

/* Tabs */
.rq-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.rq-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--b);
  background: var(--s);
  color: var(--t2);
  font-family: inherit;
  transition: all 0.2s;
}

.rq-tab:hover {
  background: var(--bg);
  border-color: var(--b2);
}

.rq-tab.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.rq-tab-icon {
  font-size: 13px;
}

.rq-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: rgba(255,255,255,.3);
  font-size: 11px;
  font-weight: 700;
}

.rq-tab:not(.active) .rq-tab-count {
  background: var(--rbg);
  color: var(--red);
}

/* Date Filter Bar */
.rq-date-filter {
  margin-bottom: 16px;
  animation: rqSlideDown 0.3s ease;
}

.rq-date-filter-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--s);
  border: 1px solid var(--b);
  border-radius: var(--rl);
  box-shadow: 0 1px 6px rgba(0,0,0,.03);
  flex-wrap: wrap;
}

.rq-date-filter-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.rq-date-filter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--t2);
  flex-shrink: 0;
}

.rq-date-filter-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.rq-date-input {
  padding: 7px 12px;
  border: 1px solid var(--b2);
  border-radius: var(--r);
  font-size: 13px;
  font-family: inherit;
  background: var(--bg);
  color: var(--t);
  transition: border-color 0.2s, box-shadow 0.2s;
  min-width: 140px;
}

.rq-date-input:focus {
  outline: none;
  border-color: var(--gm);
  box-shadow: 0 0 0 3px rgba(29, 158, 117, .1);
}

.rq-date-sep {
  font-size: 12px;
  color: var(--t3);
  font-weight: 500;
  flex-shrink: 0;
}

.rq-date-clear-btn {
  border: 1px solid var(--b2);
  background: var(--bg);
  color: var(--t3);
  padding: 7px 14px;
  border-radius: var(--r);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  flex-shrink: 0;
  white-space: nowrap;
}

.rq-date-clear-btn:hover {
  background: var(--rbg);
  color: var(--red);
  border-color: #F7C1C1;
}

@media (max-width: 600px) {
  .rq-date-filter-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .rq-date-filter-inputs {
    flex-direction: column;
    align-items: stretch;
  }
  .rq-date-input {
    min-width: unset;
    width: 100%;
  }
  .rq-date-sep {
    text-align: center;
  }
}

/* Request Cards */
.rq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rq-card {
  background: var(--s);
  border: 1px solid var(--b);
  border-radius: var(--rl);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 6px rgba(0,0,0,.03);
}

.rq-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.rq-card-pending {
  border-left: 3px solid #f59e0b;
}

.rq-card-main {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  gap: 20px;
  flex-wrap: wrap;
}

.rq-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 160px;
}

.rq-card-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.rq-card-info {
  display: flex;
  flex-direction: column;
}

.rq-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--t);
}

.rq-card-pos {
  font-size: 11.5px;
  color: var(--t3);
  margin-top: 1px;
}

.rq-card-center {
  flex: 1;
  min-width: 200px;
}

.rq-card-type {
  font-size: 13px;
  font-weight: 600;
  color: var(--t);
  margin-bottom: 3px;
}

.rq-card-dates {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}

.rq-card-date-range {
  color: var(--t2);
}

.rq-card-days {
  background: var(--bbg);
  color: var(--blue);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.rq-card-reason {
  font-size: 12px;
  color: var(--t3);
  margin-top: 4px;
  line-height: 1.4;
}

.rq-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 120px;
}

.rq-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.rq-btn-approve {
  border: none;
  background: var(--gbg);
  color: var(--green);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  border: 1px solid #9FE1CB;
}

.rq-btn-approve:hover {
  background: var(--green);
  color: #fff;
}

.rq-btn-reject {
  border: 1px solid #F7C1C1;
  background: var(--rbg);
  color: var(--red);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.rq-btn-reject:hover {
  background: var(--red);
  color: #fff;
}

.rq-btn-slip {
  border: 1px solid #c4b5fd;
  background: #f5f3ff;
  color: #7c3aed;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.rq-btn-slip:hover {
  background: #7c3aed;
  color: #fff;
}

.rq-btn-view {
  border: 1px solid var(--b2);
  background: var(--s);
  color: var(--t2);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.rq-btn-view:hover {
  background: var(--bg);
  color: var(--t);
}

.rq-approved-by {
  font-size: 11px;
  color: var(--t3);
  font-style: italic;
}

.rq-adv-amount-display {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 2px;
}

/* Empty state */
.rq-empty-state {
  text-align: center;
  padding: 48px 20px;
  background: var(--s);
  border: 1px solid var(--b);
  border-radius: var(--rl);
}

.rq-empty-icon {
  font-size: 42px;
  margin-bottom: 12px;
}

.rq-empty-text {
  font-size: 14px;
  color: var(--t3);
  font-weight: 500;
}

/* Animations */
@keyframes rqFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes rqSlideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════════════
   File Upload & Attachment
   ════════════════════════════════════════════════════════════════ */

.rq-optional {
  font-size: 11px;
  color: var(--t3);
  font-weight: 400;
}

.rq-file-zone {
  border: 2px dashed var(--b2);
  border-radius: var(--r);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: rgba(244,244,242,.3);
}

.rq-file-zone:hover {
  border-color: var(--gm);
  background: rgba(29, 158, 117, .03);
}

.rq-file-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--t3);
  font-size: 13px;
}

.rq-file-icon {
  font-size: 28px;
  margin-bottom: 4px;
}

.rq-file-hint {
  font-size: 11px;
  color: var(--t3);
  opacity: 0.7;
}

.rq-file-preview {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rq-preview-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--b);
}

.rq-preview-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.rq-preview-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--t);
  word-break: break-all;
}

.rq-preview-clear {
  border: none;
  background: var(--rbg);
  color: var(--red);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.rq-preview-clear:hover {
  background: #fecaca;
}

/* Attachment in cards */
.rq-card-attach {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rq-card-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--b);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.rq-card-thumb:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.rq-card-attach-label {
  font-size: 11px;
  color: var(--t3);
}

.rq-attach-btn {
  border: 1px solid var(--b2);
  background: var(--bbg);
  color: var(--blue);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rq-attach-btn:hover {
  background: #bfdbfe;
  color: #1e40af;
}

/* ════════════════════════════════════════════════════════════════
   Excel Upload and Preview Modal
   ════════════════════════════════════════════════════════════════ */

.upload-dropzone {
  border: 2px dashed var(--b2);
  border-radius: var(--r);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  background: rgba(244, 244, 242, 0.3);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: var(--gm);
  background: rgba(29, 158, 117, 0.04);
}

.upload-dropzone.dragover {
  transform: scale(1.01);
}

.upload-icon {
  transition: transform 0.2s ease;
}

.upload-dropzone:hover .upload-icon {
  transform: translateY(-4px);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  border-top-color: var(--gm);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#excel-preview-tbl select {
  font-family: inherit;
  transition: border-color 0.15s, background-color 0.15s;
}

#excel-preview-tbl select:focus {
  outline: none;
  border-color: var(--gm);
  box-shadow: 0 0 0 2px rgba(29, 158, 117, 0.15);
}

#excel-preview-tbl input[type="number"] {
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}

#excel-preview-tbl input[type="number"]:focus {
  border-color: var(--gm);
}

/* Hamburger button styling on desktop */
.hamburger-btn {
  display: none;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .app {
    flex-direction: column;
    height: 100vh;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -210px;
    height: 100vh;
    z-index: 999;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 12px rgba(0,0,0,0.15);
  }

  .sidebar.mobile-open {
    left: 0;
  }

  .main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: calc(100vh - 52px);
  }

  .topbar {
    position: relative;
    z-index: 100;
    padding: 0 15px;
  }

  .hamburger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    margin-right: 5px;
    color: var(--t);
  }

  .topbar-date {
    display: none !important;
  }

  .content {
    padding: 15px 16px;
  }

  .form-row {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .stats-grid, .hr-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .modal {
    width: 92% !important;
    max-height: 85vh !important;
    padding: 16px !important;
  }

  /* Table responsiveness */
  .tw {
    overflow-x: auto;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
