/* ============================================ */
/* NOHU OA — Aurora Modern Theme (v2)           */
/* ============================================ */
:root {
  --bg: #070a12; --sf: #0c1019; --card: #11151f; --card2: #171c2a;
  --bdr: #1c2334; --bdr2: #2a3450;
  --tx: #eef1f8; --tx2: #c2c8da; --mu: #707996;
  --ac: #6366f1; --acL: #8b94ff; --acG: linear-gradient(135deg, #6366f1, #8b5cf6 70%, #a855f7);
  --ok: #10b981; --okG: linear-gradient(135deg, #059669, #34d399);
  --no: #ef4444; --noG: linear-gradient(135deg, #dc2626, #f87171);
  --wr: #f59e0b; --wrG: linear-gradient(135deg, #d97706, #fbbf24);
  --cyan: #06b6d4; --pink: #ec4899; --purple: #8b5cf6;
  --fo: 'DM Sans', system-ui, sans-serif;
  --fd: 'Sora', 'DM Sans', sans-serif;
  --fm: 'JetBrains Mono', monospace;
  --glass: rgba(255,255,255,0.035);
  --glow: 0 0 0 1px rgba(99,102,241,0.12), 0 12px 40px -12px rgba(99,102,241,0.35);
  --shadow: 0 10px 40px -12px rgba(0,0,0,0.6);
  --shadow-sm: 0 4px 16px -6px rgba(0,0,0,0.4);
  --radius: 16px;
  --t: cubic-bezier(.4,0,.2,1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg); color: var(--tx); font-family: var(--fo); font-size: 14px; overflow: hidden;
  -webkit-font-smoothing: antialiased; letter-spacing: -0.01em;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 15% -5%, rgba(99,102,241,0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 5%, rgba(139,92,246,0.08), transparent 55%),
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(6,182,212,0.05), transparent 60%);
}
a { color: var(--acL); text-decoration: none; transition: color .2s var(--t); }
a:hover { color: #aab2ff; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bdr2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--mu); }

.app-layout { display: flex; height: 100vh; position: relative; z-index: 1; }
.sidebar {
  width: 232px; background: linear-gradient(185deg, rgba(15,19,28,0.95) 0%, rgba(8,11,18,0.98) 100%);
  border-right: 1px solid var(--bdr); display: flex; flex-direction: column; flex-shrink: 0;
  position: relative; backdrop-filter: blur(12px);
}
.sidebar::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, rgba(99,102,241,0.25), transparent); }
.main-content { flex: 1; overflow: auto; display: flex; flex-direction: column; background: transparent; }

.sidebar-brand { padding: 20px 18px; border-bottom: 1px solid var(--bdr); display: flex; align-items: center; gap: 11px; }
.brand-icon { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, #f59e0b, #ef4444 55%, #ec4899); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 900; color: #fff; font-family: var(--fm); flex-shrink: 0; box-shadow: 0 6px 18px -4px rgba(245,158,11,0.5); }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: -0.5px; font-family: var(--fd); }
.brand-sub { font-size: 9.5px; color: var(--mu); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.brand-text { line-height: 1.25; }
.sidebar-nav { padding: 12px 10px; flex: 1; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 12px; margin-bottom: 3px;
  font-size: 13.5px; font-weight: 500; color: var(--mu); transition: all .25s var(--t); position: relative;
  border: 1px solid transparent;
}
.nav-item:hover { background: var(--glass); color: var(--tx2); transform: translateX(2px); }
.nav-item.active {
  background: linear-gradient(135deg, rgba(99,102,241,0.16), rgba(139,92,246,0.06));
  color: #fff; font-weight: 600; border-color: rgba(99,102,241,0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 4px 16px -8px rgba(99,102,241,0.5);
}
.nav-item.active::before { content: ''; position: absolute; left: -1px; top: 22%; height: 56%; width: 3px; background: var(--acG); border-radius: 0 4px 4px 0; box-shadow: 0 0 12px var(--ac); }
.nav-icon { font-size: 17px; filter: saturate(1.1); }
.sidebar-user { padding: 14px; border-top: 1px solid var(--bdr); display: flex; align-items: center; gap: 9px; transition: background .2s var(--t); border-radius: 12px; margin: 6px; }
.sidebar-user:hover { background: var(--glass); }
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-changepw, .btn-logout { display: block; margin: 0 12px 6px; padding: 9px; border-radius: 10px; border: 1px solid var(--bdr); text-align: center; font-size: 12px; font-weight: 600; transition: all .25s var(--t); background: transparent; }
.btn-changepw { color: var(--acL); }
.btn-changepw:hover { background: rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.3); transform: translateY(-1px); }
.btn-logout { color: var(--no); margin-bottom: 12px; }
.btn-logout:hover { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); transform: translateY(-1px); }

.topbar { padding: 13px 26px; border-bottom: 1px solid var(--bdr); display: flex; justify-content: space-between; align-items: center; background: linear-gradient(90deg, rgba(12,16,25,0.7), transparent); flex-shrink: 0; backdrop-filter: blur(12px); position: relative; z-index: 100; }
.breadcrumb { font-size: 12px; color: var(--mu); font-weight: 500; }
.breadcrumb b { color: var(--tx); font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-date { font-size: 12px; color: var(--mu); font-family: var(--fm); }

.lang-switch, .login-lang { display: flex; gap: 2px; background: var(--card); border-radius: 11px; padding: 3px; border: 1px solid var(--bdr); }
.lang-btn { padding: 5px 11px; border-radius: 8px; border: none; background: transparent; color: var(--mu); font-size: 13px; cursor: pointer; font-weight: 700; transition: all .25s var(--t); }
.lang-btn.active { background: var(--acG); color: #fff; box-shadow: 0 3px 12px -2px rgba(99,102,241,0.5); }
.login-lang { position: absolute; top: 16px; right: 16px; }

.page-content { padding: 26px; flex: 1; overflow: auto; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.page-header h2 { font-size: 23px; font-weight: 800; margin: 0; letter-spacing: -0.6px; font-family: var(--fd); }
.page-header p { font-size: 12.5px; }

.card {
  background: linear-gradient(160deg, var(--card), rgba(17,21,31,0.6));
  border-radius: var(--radius); padding: 20px; border: 1px solid var(--bdr);
  transition: all .3s var(--t); box-shadow: var(--shadow-sm); position: relative;
}
.card:hover { border-color: var(--bdr2); }
.card h4 { margin: 0 0 12px; font-size: 14px; font-weight: 700; font-family: var(--fd); }

.stats-grid { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.stat-card {
  background: linear-gradient(160deg, var(--card), rgba(17,21,31,0.5));
  border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--bdr);
  flex: 1 1 140px; min-width: 130px; display: flex; justify-content: space-between; align-items: flex-start;
  transition: all .35s var(--t); box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.stat-card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 100% 0%, rgba(99,102,241,0.06), transparent 60%); opacity: 0; transition: opacity .35s var(--t); }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: var(--bdr2); }
.stat-card:hover::after { opacity: 1; }
.stat-label { font-size: 12px; color: var(--mu); margin-bottom: 7px; font-weight: 600; }
.stat-value { font-size: 27px; font-weight: 800; font-family: var(--fm); letter-spacing: -1.2px; }
.stat-sub { font-size: 11px; color: var(--mu); margin-top: 4px; }
.stat-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 19px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04); }
.stats-grid-sm { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 9px; }
.mini-stat { padding: 11px 13px; border-radius: 12px; background: var(--sf); border: 1px solid var(--bdr); transition: all .25s var(--t); }
.mini-stat:hover { border-color: var(--bdr2); transform: translateY(-2px); }
.mini-stat-name { font-size: 13px; font-weight: 700; color: var(--cyan); }
.mini-stat-val { font-size: 11px; color: var(--mu); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.avatar-sm, .user-avatar { width: 30px; height: 30px; border-radius: 50%; border: 2px solid; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; font-family: var(--fm); flex-shrink: 0; box-shadow: 0 2px 8px -2px rgba(0,0,0,0.4); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 20px; font-size: 11px; font-weight: 700; border: 1px solid; letter-spacing: 0.2px; }
.badge-sm { font-size: 10px; padding: 2px 7px; }
.badge-dai { background: rgba(6,182,212,0.1); color: var(--cyan); border-color: rgba(6,182,212,0.25); }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; box-shadow: 0 0 8px currentColor; }

.list-item { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 12px; background: var(--sf); margin-bottom: 5px; border: 1px solid var(--bdr); transition: all .25s var(--t); }
.list-item:hover { border-color: var(--bdr2); background: var(--card2); transform: translateX(2px); }
.list-item-info { flex: 1; }
.list-item-name { font-size: 12px; font-weight: 600; }

.chip-group { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { padding: 5px 9px; border-radius: 9px; background: var(--sf); border: 1px solid var(--bdr); font-size: 11px; transition: all .25s var(--t); }
.chip:hover { border-color: var(--bdr2); background: var(--card2); }

.data-table { width: 100%; border-collapse: collapse; font-family: var(--fo); }
.data-table th { padding: 11px 9px; text-align: left; font-size: 10px; font-weight: 700; color: var(--mu); text-transform: uppercase; white-space: nowrap; border-bottom: 1px solid var(--bdr); letter-spacing: 0.6px; }
.data-table td { padding: 9px; border-bottom: 1px solid rgba(28,35,52,0.5); font-size: 12px; }
.data-table tbody tr { transition: background .18s var(--t); }
.data-table tbody tr:hover { background: rgba(99,102,241,0.05); }
.data-table .total-row { border-top: 2px solid var(--bdr2); background: rgba(99,102,241,0.04); }
.data-table .total-row td { padding: 13px 9px; }
.salary-table { width: 100%; }
.salary-table th { text-align: right; padding: 11px 9px !important; }
.salary-table td { text-align: right; padding: 9px !important; white-space: nowrap; font-family: var(--fm); font-size: 12px; }
.salary-table th:first-child, .salary-table td:first-child { text-align: left; min-width: 90px; white-space: normal; font-family: var(--fo); }
.salary-table th:nth-child(2), .salary-table td:nth-child(2) { text-align: center; font-family: var(--fo); }
.actions { white-space: nowrap; }
.text-right { text-align: right; }
.text-center { text-align: center; }

.btn { padding: 9px 19px; border-radius: 11px; border: none; font-size: 13px; font-weight: 700; font-family: var(--fo); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all .25s var(--t); position: relative; overflow: hidden; letter-spacing: -0.01em; }
.btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.14), transparent 60%); opacity: 0; transition: opacity .25s var(--t); }
.btn:hover { transform: translateY(-2px); }
.btn:hover::before { opacity: 1; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--acG); color: #fff; box-shadow: 0 4px 14px -4px rgba(99,102,241,0.5); }
.btn-primary:hover { box-shadow: 0 8px 22px -6px rgba(99,102,241,0.6); }
.btn-success { background: var(--okG); color: #fff; box-shadow: 0 4px 14px -4px rgba(16,185,129,0.5); }
.btn-success:hover { box-shadow: 0 8px 22px -6px rgba(16,185,129,0.6); }
.btn-danger { background: var(--noG); color: #fff; box-shadow: 0 4px 14px -4px rgba(239,68,68,0.5); }
.btn-danger:hover { box-shadow: 0 8px 22px -6px rgba(239,68,68,0.6); }
.btn-warn { background: var(--wrG); color: #fff; box-shadow: 0 4px 14px -4px rgba(245,158,11,0.5); }
.btn-warn:hover { box-shadow: 0 8px 22px -6px rgba(245,158,11,0.6); }
.btn-ghost { background: var(--glass); color: var(--tx2); border: 1px solid var(--bdr); }
.btn-ghost:hover { border-color: var(--bdr2); color: var(--tx); background: var(--card2); }
.btn-sm { padding: 6px 13px; font-size: 11px; border-radius: 9px; }
.btn-full { width: 100%; justify-content: center; }
.btn-icon { background: var(--glass); border: 1px solid var(--bdr); border-radius: 9px; padding: 5px 9px; cursor: pointer; font-size: 12px; color: var(--mu); transition: all .25s var(--t); }
.btn-icon:hover { background: var(--card2); border-color: var(--bdr2); color: var(--tx); transform: translateY(-1px); }

.form-group { margin-bottom: 13px; }
.form-group label { display: block; font-size: 11px; color: var(--mu); margin-bottom: 5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.form-group input, .form-group select, .form-group textarea, .filter-input, .filter-select, .form-control {
  width: 100%; padding: 11px 14px; border-radius: 11px; border: 1px solid var(--bdr);
  background: var(--bg); color: var(--tx); font-size: 13px; font-family: var(--fo); outline: none; transition: all .25s var(--t);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus, .form-control:focus, .filter-input:focus, .filter-select:focus {
  border-color: var(--ac); box-shadow: 0 0 0 3px rgba(99,102,241,0.14); background: var(--sf);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.input-sm { padding: 6px 11px !important; border-radius: 9px !important; font-size: 12px !important; }

.filter-bar { display: flex; gap: 9px; margin-bottom: 16px; flex-wrap: wrap; padding: 13px 15px; border-radius: 14px; background: linear-gradient(160deg, var(--card), rgba(17,21,31,0.5)); border: 1px solid var(--bdr); box-shadow: var(--shadow-sm); }
.filter-input { flex: 1 1 140px; }
.filter-select { width: auto; cursor: pointer; }

.modal-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.7); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadeIn .25s var(--t); }
.modal-box { background: linear-gradient(165deg, var(--sf), var(--card)); border-radius: 20px; width: 520px; max-width: 96vw; max-height: 88vh; border: 1px solid var(--bdr2); box-shadow: 0 32px 90px -20px rgba(0,0,0,.8), 0 0 60px -20px rgba(99,102,241,0.2); overflow: auto; animation: modalIn .3s var(--t); }
.modal-header { padding: 18px 24px; border-bottom: 1px solid var(--bdr); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--sf); z-index: 1; }
.modal-header h3 { margin: 0; font-size: 17px; font-weight: 700; font-family: var(--fd); }
.modal-close { background: var(--glass); border: 1px solid var(--bdr); color: var(--mu); font-size: 16px; cursor: pointer; padding: 5px 10px; border-radius: 8px; transition: all .25s var(--t); }
.modal-close:hover { background: var(--card2); color: var(--tx); }
.modal-body { padding: 24px; }
.modal-actions { display: flex; gap: 9px; justify-content: flex-end; margin-top: 18px; }

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-header { font-size: 10px; color: var(--mu); font-weight: 700; padding: 3px; text-transform: uppercase; }
.cal-day { padding: 6px 2px; border-radius: 10px; min-height: 34px; cursor: default; border: 1px solid transparent; transition: all .25s var(--t); }
.cal-day.today { background: rgba(99,102,241,0.14); border-color: rgba(99,102,241,0.3); }
.cal-day.has-leave { background: rgba(239,68,68,0.09); border-color: rgba(239,68,68,0.18); cursor: pointer; }
.cal-day.has-leave:hover { background: rgba(239,68,68,0.18); border-color: rgba(239,68,68,0.35); transform: scale(1.05); }
.cal-num { font-size: 12px; font-weight: 500; }
.cal-day.today .cal-num { font-weight: 800; color: var(--acL); }
.cal-count { font-size: 9px; color: var(--no); font-weight: 700; display: block; }

.month-nav { display: flex; align-items: center; border-radius: 12px; border: 1px solid var(--bdr); background: var(--card); overflow: hidden; box-shadow: var(--shadow-sm); }
.month-btn { padding: 9px 13px; background: transparent; border: none; color: var(--mu); font-size: 14px; font-weight: 700; text-decoration: none; transition: all .25s var(--t); }
.month-btn:hover { background: var(--card2); color: var(--tx); }
.month-label { padding: 9px 18px; font-size: 13px; font-weight: 700; min-width: 130px; text-align: center; font-family: var(--fd); }

.alert, .alert-error, .alert-warn, .alert-info { padding: 11px 15px; border-radius: 12px; margin-bottom: 12px; font-size: 12px; font-weight: 600; border: 1px solid; }
.alert-error { background: rgba(239,68,68,0.09); color: var(--no); border-color: rgba(239,68,68,0.2); }
.alert-warn { background: rgba(245,158,11,0.09); color: var(--wr); border-color: rgba(245,158,11,0.2); }
.alert-info { background: rgba(99,102,241,0.07); color: var(--mu); border-color: rgba(99,102,241,0.15); font-weight: 500; }
.empty-state { padding: 28px; text-align: center; color: var(--mu); font-size: 12px; }

.login-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 25% 15%, rgba(99,102,241,0.12), transparent 55%), radial-gradient(ellipse at 75% 85%, rgba(139,92,246,0.10), transparent 50%), radial-gradient(ellipse at 50% 50%, rgba(6,182,212,0.04), transparent 70%), var(--bg); overflow: auto; padding: 20px; }
.login-card { width: 420px; max-width: 95vw; background: linear-gradient(165deg, var(--sf), var(--card)); border-radius: 24px; padding: 38px 32px; border: 1px solid var(--bdr2); box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), 0 0 60px -20px rgba(99,102,241,0.15); animation: modalIn .4s var(--t); }
.login-logo { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 16px; background: linear-gradient(135deg, #f59e0b, #ef4444 55%, #ec4899); display: flex; align-items: center; justify-content: center; font-size: 27px; font-weight: 900; color: #fff; font-family: var(--fm); box-shadow: 0 12px 32px -8px rgba(245,158,11,0.5); }
.login-title { text-align: center; font-size: 23px; font-weight: 800; margin: 0; letter-spacing: -0.6px; font-family: var(--fd); }
.login-sub { text-align: center; color: var(--mu); font-size: 12px; margin: 7px 0 26px; letter-spacing: 1px; text-transform: uppercase; }

.text-muted { color: var(--mu); } .text-xs { font-size: 11px; } .text-sm { font-size: 12px; }
.text-success, .text-ok { color: var(--ok); } .text-danger { color: var(--no); }
.text-accent { color: var(--acL); }
.mono { font-family: var(--fm); } .fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; } .fw-800 { font-weight: 800; }
.flex-center { display: flex; align-items: center; } .flex-gap { display: flex; gap: 8px; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-wrap { flex-wrap: wrap; } .gap-6 { gap: 6px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modalIn { from { opacity: 0; transform: scale(.96) translateY(12px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.page-content { animation: fadeIn .4s var(--t); }

@media (max-width: 768px) {
  .sidebar { width: 60px; } .brand-text, .nav-item span:not(.nav-icon) { display: none; }
  .sidebar-user .user-info { display: none; } .grid-2 { grid-template-columns: 1fr; }
  .page-content { padding: 14px; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); position: fixed; z-index: 100; transition: .3s var(--t); width: 232px; }
  .sidebar.open { transform: translateX(0); }
  .sidebar.open .brand-text, .sidebar.open .nav-item span, .sidebar.open .user-info { display: block; }
  .main-content { margin-left: 0 !important; }
  .topbar { padding: 8px 12px; }
  .page-header { flex-direction: column; gap: 8px; align-items: flex-start; }
  .page-header h2 { font-size: 19px; }
  .stats-grid { gap: 8px; }
  .stat-card { flex: 1 1 calc(50% - 4px); min-width: 0; padding: 13px; }
  .grid-2 { grid-template-columns: 1fr !important; }
  .filter-bar { flex-direction: column; gap: 6px; }
  .filter-bar .filter-input, .filter-bar .filter-select { width: 100% !important; }
  .data-table { font-size: 11px; }
  .data-table th, .data-table td { padding: 6px 4px; white-space: nowrap; }
  .stat-value { font-size: 24px; }
  .topbar-date { display: none; }
  .lang-btn { padding: 3px 7px; font-size: 12px; }
  .btn { padding: 7px 13px; font-size: 12px; }
  .card { padding: 14px; }
  #notifPanel { right: 10px !important; width: calc(100vw - 24px) !important; max-width: 360px; }
}

.mobile-menu-btn { display: none; background: var(--glass); border: 1px solid var(--bdr); color: var(--tx); font-size: 18px; cursor: pointer; padding: 5px 10px; border-radius: 9px; }
@media (max-width: 768px) { .mobile-menu-btn { display: block; } }

.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); z-index: 99; }
.sidebar-overlay.show { display: block; }

/* === SALARY CONFIG — bigger font === */
.sal-cfg { gap: 8px; }
.sal-cfg > div > div { gap: 8px; }
.sal-cfg span { font-size: 11px !important; font-weight: 600; }
.sal-cfg input[type="text"] { font-size: 14px !important; padding: 5px 6px !important; min-width: 50px; }
.sal-cfg input[style*="width:85px"] { width: 100px !important; }
.sal-cfg input[style*="width:65px"] { width: 80px !important; }
.sal-cfg input[style*="width:55px"] { width: 68px !important; }
.sal-cfg input[style*="width:50px"] { width: 62px !important; }
.sal-cfg input[style*="width:45px"] { width: 58px !important; }
.sal-cfg input[style*="width:35px"] { width: 48px !important; }
.sal-cfg input[style*="width:30px"] { width: 42px !important; }
.sal-cfg .cfg-detail span { font-size: 11px !important; }
.sal-cfg .cfg-detail input[type="text"] { font-size: 14px !important; }
.sal-cfg .cfg-detail .btn { font-size: 12px !important; padding: 4px 10px !important; }
.sal-cfg .fw-700 { font-size: 14px !important; }
.sal-cfg .btn-success { font-size: 13px !important; padding: 5px 14px !important; }

/* ============================================ */
/* LIGHT MODE                                   */
/* ============================================ */
body.light {
  --bg: #f4f6fb; --sf: #ffffff; --card: #ffffff; --card2: #eef1f8;
  --bdr: #e3e7f0; --bdr2: #cdd4e3;
  --tx: #161b29; --tx2: #3a4258; --mu: #707996;
  --glass: rgba(99,102,241,0.04);
  --glow: 0 0 0 1px rgba(99,102,241,0.15), 0 12px 40px -12px rgba(99,102,241,0.25);
  --shadow: 0 10px 40px -16px rgba(60,70,120,0.25);
  --shadow-sm: 0 4px 16px -8px rgba(60,70,120,0.18);
}
body.light::before {
  background:
    radial-gradient(ellipse 70% 50% at 15% -5%, rgba(99,102,241,0.07), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 5%, rgba(139,92,246,0.05), transparent 55%),
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(6,182,212,0.04), transparent 60%);
}
body.light .sidebar { background: linear-gradient(185deg, #1e2733 0%, #161e28 100%); border-right: 1px solid #2a3544; box-shadow: 2px 0 20px -10px rgba(0,0,0,0.3); }
body.light .topbar { background: linear-gradient(90deg, rgba(255,255,255,0.8), transparent); }
body.light .nav-item:hover { background: rgba(255,255,255,0.06); }
body.light .card, body.light .stat-card, body.light .filter-bar { background: #ffffff; }
body.light .data-table tbody tr:hover { background: rgba(99,102,241,0.04); }
body.light .form-group input, body.light .form-group select, body.light .form-group textarea,
body.light .filter-input, body.light .filter-select, body.light .form-control { background: #f7f9fd; }
body.light .form-group input:focus, body.light .form-control:focus { background: #ffffff; }
body.light .lang-switch, body.light .login-lang { background: #f0f2f7; }
body.light .modal-box { background: #ffffff; }
body.light .login-card { background: #ffffff; }
body.light .chip, body.light .list-item, body.light .mini-stat { background: #f7f9fd; }
body.light ::-webkit-scrollbar-thumb { background: #cdd4e3; }

/* Theme toggle button */
.theme-toggle { background: var(--glass); border: 1px solid var(--bdr); border-radius: 10px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; transition: all .25s var(--t); }
.theme-toggle:hover { background: var(--card2); border-color: var(--bdr2); transform: translateY(-1px); }

/* ===== LIGHT MODE — refinements ===== */
/* Sidebar tối (navy) để logo nổi rõ + chữ sáng */
body.light .sidebar-brand { border-bottom-color: #2a3544; }
body.light .sidebar-brand .brand-sub { opacity: 1; color: #8a93a8; font-weight: 800; }
body.light .sidebar-brand img { filter: drop-shadow(0 2px 8px rgba(245,158,11,0.3)); }
body.light .sidebar::after { background: linear-gradient(180deg, transparent, rgba(99,102,241,0.3), transparent); }
body.light .nav-item { color: #9aa3b5; }
body.light .nav-item:hover { color: #ffffff; }
body.light .nav-item.active { background: linear-gradient(135deg, rgba(99,102,241,0.22), rgba(139,92,246,0.1)); color: #ffffff; border-color: rgba(99,102,241,0.35); }
body.light .topbar { border-bottom: 1px solid #e3e7f0; }
body.light .breadcrumb { color: #707996; }
body.light .breadcrumb b { color: #161b29; }
body.light .topbar-date { color: #707996; }
body.light .card, body.light .stat-card { box-shadow: 0 2px 12px -4px rgba(60,70,120,0.1); border-color: #e8ebf3; }
body.light .card:hover, body.light .stat-card:hover { border-color: #cdd4e3; }
body.light .stat-value { color: #161b29; }
body.light .data-table th { color: #8a92a8; border-bottom-color: #e3e7f0; }
body.light .data-table td { border-bottom-color: #eef1f7; }
body.light .month-nav, body.light .month-btn:hover { background: #f7f9fd; }
body.light .month-label { color: #161b29; }
body.light .btn-ghost { background: #f0f2f7; color: #3a4258; border-color: #e3e7f0; }
body.light .btn-ghost:hover { background: #e8ebf3; color: #161b29; }
body.light .btn-icon { background: #f0f2f7; color: #707996; }
body.light .btn-icon:hover { background: #e8ebf3; color: #161b29; }
body.light .badge-dai { background: rgba(6,182,212,0.1); color: #0891b2; }
/* Sidebar user + nút (trên nền tối) */
body.light .sidebar-user { border-top-color: #2a3544; }
body.light .sidebar-user:hover { background: rgba(255,255,255,0.05); }
body.light .user-name { color: #ffffff; }
body.light .btn-changepw { border-color: #2a3544; color: #8b94ff; }
body.light .btn-changepw:hover { background: rgba(99,102,241,0.15); border-color: rgba(99,102,241,0.4); }
body.light .btn-logout { border-color: #2a3544; }
body.light .btn-logout:hover { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.4); }
body.light .theme-toggle { background: #f0f2f7; border-color: #e3e7f0; }
body.light .theme-toggle:hover { background: #e8ebf3; }
body.light #notifPanel { box-shadow: 0 8px 30px -8px rgba(60,70,120,0.25); }
body.light .lang-btn { color: #707996; }
body.light .empty-state { color: #8a92a8; }
body.light .chip:hover, body.light .list-item:hover, body.light .mini-stat:hover { background: #eef1f8; }

/* ===== Block tabs (Khối nhân viên) ===== */
.block-tab { display:flex; align-items:center; gap:8px; padding:10px 18px; border-radius:10px; background:var(--card); border:1px solid var(--bdr); color:var(--mu); font-weight:700; font-size:13px; cursor:pointer; transition:all .2s var(--t); text-decoration:none; }
.block-tab:hover { border-color:var(--bdr2); color:var(--tx); }
.block-tab.active { background:linear-gradient(135deg, rgba(99,102,241,0.18), rgba(139,92,246,0.08)); border-color:rgba(99,102,241,0.4); color:var(--tx); }
.block-tab .block-count { background:var(--bg); border-radius:20px; padding:1px 9px; font-size:11px; font-weight:800; color:var(--acL); }
.block-tab.active .block-count { background:rgba(99,102,241,0.25); color:#fff; }
body.light .block-tab { background:#fff; border-color:#e8ebf3; }
body.light .block-tab.active { background:linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.04)); border-color:rgba(99,102,241,0.3); color:#161b29; }
body.light .block-tab .block-count { background:#f0f2f7; }