:root {
  --vp-navy: #16233f;
  --vp-navy-2: #22335a;
  --vp-gold: #b8935a;
  --vp-gold-soft: #f4ecdf;
  --vp-bg: #f5f6f8;
  --vp-line: #e3e6eb;
  --bs-body-font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-font-size: .925rem;
  --bs-primary: #22335a;
  --bs-primary-rgb: 34, 51, 90;
  --bs-link-color: #22335a;
  --bs-link-color-rgb: 34, 51, 90;
  --bs-link-hover-color: #b8935a;
}
body { background: var(--vp-bg); color: #1d2433; }
.btn-primary { --bs-btn-bg: var(--vp-navy-2); --bs-btn-border-color: var(--vp-navy-2); --bs-btn-hover-bg: var(--vp-navy); --bs-btn-hover-border-color: var(--vp-navy); --bs-btn-active-bg: var(--vp-navy); }
.btn-outline-primary { --bs-btn-color: var(--vp-navy-2); --bs-btn-border-color: var(--vp-navy-2); --bs-btn-hover-bg: var(--vp-navy-2); --bs-btn-hover-border-color: var(--vp-navy-2); --bs-btn-active-bg: var(--vp-navy); }
.btn-gold { background: var(--vp-gold); color: #fff; border-color: var(--vp-gold); }
.btn-gold:hover { background: #a07c47; color: #fff; }
.text-bg-primary { background-color: var(--vp-navy-2) !important; }

/* Bố cục */
.vp-sidebar {
  width: 248px; min-height: 100vh; background: var(--vp-navy); color: #c9d1e3;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 1030; display: flex; flex-direction: column;
}
.vp-brand { padding: 1.15rem 1.25rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.vp-brand .logo { width: 36px; height: 36px; border-radius: 8px; background: var(--vp-gold); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.vp-brand .ten { color: #fff; font-weight: 600; font-size: .95rem; line-height: 1.2; }
.vp-brand .phu { font-size: .72rem; color: #8f9bb8; letter-spacing: .04em; text-transform: uppercase; }
.vp-nav { padding: .75rem .6rem; flex: 1; overflow-y: auto; }
.vp-nav .nhom { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: #6f7c9c; padding: .9rem .75rem .35rem; }
.vp-nav a { display: flex; align-items: center; gap: .7rem; color: #c9d1e3; text-decoration: none;
  padding: .52rem .75rem; border-radius: 7px; margin-bottom: 2px; font-size: .9rem; }
.vp-nav a i { font-size: 1.05rem; width: 1.2rem; text-align: center; color: #8f9bb8; }
.vp-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.vp-nav a.active { background: var(--vp-navy-2); color: #fff; box-shadow: inset 3px 0 0 var(--vp-gold); }
.vp-nav a.active i { color: var(--vp-gold); }
.vp-user { border-top: 1px solid rgba(255,255,255,.08); padding: .85rem 1.1rem; font-size: .82rem; }
.vp-user a { color: #c9d1e3; text-decoration: none; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--vp-gold-soft); color: var(--vp-navy);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600; flex: none; }
.avatar-sm { width: 26px; height: 26px; font-size: .75rem; }

.vp-main { margin-left: 248px; min-height: 100vh; }
.vp-topbar { background: #fff; border-bottom: 1px solid var(--vp-line); padding: .7rem 1.5rem;
  position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: 1rem; }
.vp-topbar .tieu-de { font-weight: 600; font-size: 1.05rem; margin: 0; }
.vp-content { padding: 1.5rem; max-width: 1500px; }

@media (max-width: 991.98px) {
  .vp-sidebar { transform: translateX(-100%); transition: transform .2s; }
  .vp-sidebar.mo { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.35); }
  .vp-main { margin-left: 0; }
  .vp-content { padding: 1rem; }
}

/* Thẻ */
.card { border: 1px solid var(--vp-line); border-radius: 10px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.card-header { background: #fff; border-bottom: 1px solid var(--vp-line); font-weight: 600; padding: .8rem 1rem; }
.card-header .bi { color: var(--vp-gold); }
.kpi { padding: 1rem 1.1rem; display: flex; gap: .9rem; align-items: center; }
.kpi .icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex: none; }
.kpi .so { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.kpi .nhan { font-size: .8rem; color: #667085; margin-top: .25rem; }
a.kpi-link { text-decoration: none; color: inherit; }
a.kpi-link .card:hover { border-color: var(--vp-gold); }

.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .6rem .75rem; vertical-align: middle; }
.table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: #667085; font-weight: 600; background: #fafbfc; border-bottom-color: var(--vp-line); }
.table-hover tbody tr:hover { --bs-table-hover-bg: #f7f4ee; }
.ma { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .8rem; color: #667085; }
.muted { color: #667085; }
.small-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #8a93a6; margin-bottom: .15rem; }

.nav-tabs .nav-link { color: #667085; border: none; border-bottom: 2px solid transparent; padding: .6rem 1rem; }
.nav-tabs .nav-link.active { color: var(--vp-navy); border-bottom-color: var(--vp-gold); background: none; font-weight: 600; }
.nav-tabs { border-bottom: 1px solid var(--vp-line); }

.task-row { display: flex; gap: .75rem; align-items: flex-start; padding: .7rem 1rem; border-bottom: 1px solid var(--vp-line); }
.task-row:last-child { border-bottom: none; }
.task-row .loai { width: 32px; height: 32px; border-radius: 8px; background: var(--vp-gold-soft); color: #8a6a39;
  display: flex; align-items: center; justify-content: center; flex: none; }
.task-row.qh .loai { background: #fde8e8; color: #b42318; }
.task-row .td { font-weight: 500; }
.task-row .meta { font-size: .8rem; color: #667085; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 1rem 1.4rem; border-left: 2px solid var(--vp-line); margin-left: .4rem; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .3rem; width: 10px; height: 10px; border-radius: 50%; background: var(--vp-gold); }
.timeline li.he-thong::before { background: #c4cad6; }
.timeline li.he-thong .nd { color: #667085; font-style: italic; }

/* Lịch */
.lich-thang { table-layout: fixed; }
.lich-thang td { height: 112px; vertical-align: top; padding: .3rem !important; border: 1px solid var(--vp-line); background: #fff; }
.lich-thang td.ngoai { background: #fafbfc; color: #b0b6c3; }
.lich-thang td.nghi { background: #fbf8f3; }
.lich-thang td.hom-nay { box-shadow: inset 0 0 0 2px var(--vp-gold); }
.lich-thang .so-ngay { font-size: .8rem; font-weight: 600; }
.lich-thang .su-kien { display: block; font-size: .72rem; padding: 1px 5px; border-radius: 4px; margin-top: 2px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.sk-PHIEN_TOA { background: #22335a; color: #fff; }
.sk-LICH_HEN { background: #e3ecfb; color: #22335a; }
.sk-THOI_HAN { background: #fde8e8; color: #b42318; font-weight: 600; }
.sk-CONG_VIEC { background: #f1f2f4; color: #344054; }
.sk-xong { opacity: .5; text-decoration: line-through; }

.progress { height: 6px; }
.progress-bar { background: var(--vp-gold); }
.form-label { font-weight: 500; font-size: .85rem; margin-bottom: .3rem; }
.form-text { font-size: .75rem; }
.dang-nhap-nen { min-height: 100vh; background: linear-gradient(135deg, #16233f 0%, #22335a 60%, #2c416f 100%); }
.empty { text-align: center; padding: 2rem 1rem; color: #8a93a6; }
.empty .bi { font-size: 2rem; display: block; margin-bottom: .5rem; color: #c4cad6; }
.hl-xung-dot { background: #fff4e5; }
@media print { .vp-sidebar, .vp-topbar, .no-print { display: none !important; } .vp-main { margin: 0; } }
