/* ==========================================================
   Navigos Talent Suite — Design system
   Brand: Navy #283583 · Cyan #22B4E6 · Action blue #0A6CFF
   ========================================================== */
:root {
  --navy: #283583;
  --navy-700: #1d2766;
  --cyan: #22b4e6;
  --primary: #0a6cff;
  --primary-600: #0058d6;
  --primary-50: #eaf2ff;
  --primary-100: #d6e6ff;

  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e6eaf1;
  --border-strong: #d5dbe5;
  --text: #0f172a;
  --text-2: #475569;
  --muted: #8a94a6;

  --green: #12a150;   --green-50: #e7f8ee;
  --amber: #d97706;   --amber-50: #fff5e0;
  --red: #e5383b;     --red-50: #fdecec;
  --violet: #7c3aed;  --violet-50: #f1eaff;
  --sky: #0891b2;     --sky-50: #e2f6fb;
  --slate-50: #eef1f6;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 4px 18px rgba(15, 23, 42, .06);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .18);
  --sidebar-w: 248px;
  --topbar-h: 64px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 15px; height: 15px; }
svg.i.lg { width: 22px; height: 22px; }

/* ---------- Layout ---------- */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--border); padding: 18px 14px; z-index: 40;
}
.sidebar .brand { display: flex; align-items: center; justify-content: center; padding: 4px 8px 18px; }
.sidebar .brand img { height: 46px; }
.nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.nav-label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 14px 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: var(--text-2); font-weight: 500; text-decoration: none; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--primary-50); color: var(--primary); font-weight: 600; }
.nav a .count { margin-left: auto; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 7px; }
.sidebar-foot { border-top: 1px solid var(--border); padding-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.sidebar-foot a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text-2); font-weight: 500; }
.sidebar-foot a:hover { background: var(--surface-2); text-decoration: none; }
.sidebar-foot a.danger { color: var(--red); }

.scrim { display: none; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar-h); display: flex; align-items: center; gap: 14px;
  padding: 0 28px; background: rgba(255,255,255,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.topbar .search { flex: 1; max-width: 420px; position: relative; }
.topbar .search input { width: 100%; height: 40px; border: 1px solid transparent; background: var(--slate-50); border-radius: 10px; padding: 0 14px 0 38px; }
.topbar .search input:focus { outline: none; background: #fff; border-color: var(--primary); }
.topbar .search svg { position: absolute; left: 12px; top: 11px; color: var(--muted); }
.topbar .spacer { flex: 1; }
.icon-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; }
.icon-btn:hover { background: var(--slate-50); }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; background: var(--red); border-radius: 50%; border: 2px solid #fff; }
.menu-btn { display: none; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 14px; border-left: 1px solid var(--border); cursor: pointer; background: none; border-top: 0; border-right: 0; border-bottom: 0; }
.user-chip .meta { text-align: right; line-height: 1.2; }
.user-chip .meta b { display: block; font-size: 13px; }
.user-chip .meta span { font-size: 12px; color: var(--muted); }

.view { padding: 28px; flex: 1; width: 100%; max-width: 1480px; margin: 0 auto; }
.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 18px; border-top: 1px solid var(--border); background: var(--surface); }

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 26px; font-weight: 700; }
.page-head p { margin: 6px 0 0; color: var(--text-2); }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; margin-bottom: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--text-2); }
.crumbs b { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(10,108,255,.22); }
.btn.primary:hover { background: var(--primary-600); }
.btn.outline-primary { border-color: var(--primary); color: var(--primary); }
.btn.outline-primary:hover { background: var(--primary-50); }
.btn.success { background: var(--green); border-color: var(--green); color: #fff; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--slate-50); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.xs { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 7px; gap: 5px; }
.btn.block { width: 100%; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; flex-wrap: wrap; }
.card-head h3 { font-size: 16px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.card-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.card-body { padding: 16px 20px 20px; }
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-side { grid-template-columns: 340px minmax(0, 1fr); }
.mt { margin-top: 18px; } .mt-sm { margin-top: 10px; } .mb { margin-bottom: 18px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.muted { color: var(--muted); } .t2 { color: var(--text-2); } .small { font-size: 12px; } .strong { font-weight: 600; }
.nowrap { white-space: nowrap; }

/* KPI */
.kpi { padding: 18px 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.kpi .label { color: var(--text-2); font-size: 13px; font-weight: 500; }
.kpi .value { font-size: 28px; font-weight: 700; margin-top: 4px; letter-spacing: -.02em; }
.kpi .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.kpi.clickable { cursor: pointer; transition: box-shadow .15s, transform .15s; }
.kpi.clickable:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.hero-kpi {
  background: linear-gradient(135deg, var(--primary) 0%, #2f86ff 55%, var(--cyan) 140%);
  color: #fff; border: 0; position: relative; overflow: hidden; padding: 22px 24px;
}
.hero-kpi .label { color: rgba(255,255,255,.9); font-size: 15px; font-weight: 600; }
.hero-kpi .value { font-size: 48px; font-weight: 800; margin: 6px 0 10px; }
.hero-kpi .btn { background: rgba(255,255,255,.2); border-color: transparent; color: #fff; }
.hero-kpi::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 170px; height: 170px; border: 18px solid rgba(255,255,255,.12); border-radius: 36px; transform: rotate(12deg); }
.tone-blue { background: var(--primary-50); color: var(--primary); }
.tone-violet { background: var(--violet-50); color: var(--violet); }
.tone-amber { background: var(--amber-50); color: var(--amber); }
.tone-green { background: var(--green-50); color: var(--green); }
.tone-red { background: var(--red-50); color: var(--red); }
.tone-sky { background: var(--sky-50); color: var(--sky); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--slate-50); color: var(--text-2); border: 1px solid transparent; }
.badge.sm { height: 20px; padding: 0 8px; font-size: 11px; }
.badge.blue { background: var(--primary-50); color: var(--primary); }
.badge.green { background: var(--green-50); color: var(--green); }
.badge.amber { background: var(--amber-50); color: var(--amber); }
.badge.red { background: var(--red-50); color: var(--red); }
.badge.violet { background: var(--violet-50); color: var(--violet); }
.badge.sky { background: var(--sky-50); color: var(--sky); }
.badge.outline { background: transparent; border-color: var(--border-strong); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font-size: 12px; background: var(--slate-50); color: var(--text-2); margin: 2px 4px 2px 0; }
.chip-group { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--border-strong); background: #fff; font-size: 13px; font-weight: 500; cursor: pointer; }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .03em; }
.field label .req { color: var(--red); }
.input, .select, .textarea {
  width: 100%; height: 40px; border: 1px solid var(--border-strong); border-radius: 10px; padding: 0 12px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.input.invalid, .select.invalid, .textarea.invalid { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-50); }
.field .err { color: var(--red); font-size: 12px; margin-top: 4px; }
.field .hint { color: var(--muted); font-size: 12px; margin-top: 4px; }
.input-ico { position: relative; }
.input-ico svg { position: absolute; left: 12px; top: 11px; color: var(--muted); }
.input-ico .input { padding-left: 38px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.check input { width: 17px; height: 17px; accent-color: var(--primary); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px; }
.toolbar .grow { flex: 1; min-width: 200px; }
.filter-panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0 14px 14px; }
.filter-panel .field label { font-size: 11px; }
.range { display: flex; gap: 6px; align-items: center; }

/* ---------- Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--surface-2); padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fbfcfe; }
.table tr.clickable { cursor: pointer; }
.table .t-title { font-weight: 600; color: var(--primary); }
.table .t-sub { font-size: 12px; color: var(--muted); }
.table td.num, .table th.num { text-align: right; }
.code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; background: var(--slate-50); padding: 2px 8px; border-radius: 6px; color: var(--text-2); white-space: nowrap; }
.progress { height: 7px; background: var(--primary-100); border-radius: 99px; overflow: hidden; min-width: 90px; }
.progress > i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.progress.green > i { background: var(--green); }
.progress.amber > i { background: var(--amber); }
.progress.red > i { background: var(--red); }
.prog-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-2); margin-bottom: 4px; gap: 8px; }
.pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--border); gap: 10px; flex-wrap: wrap; }
.pager .pages { display: flex; gap: 6px; }
.pager .pages button { min-width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border-strong); background: #fff; cursor: pointer; font-weight: 600; }
.pager .pages button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.empty { text-align: center; padding: 38px 18px; color: var(--muted); }
.empty svg { width: 40px; height: 40px; color: var(--border-strong); margin-bottom: 6px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; flex: none; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person .nm { font-weight: 600; }
.person .sb { font-size: 12px; color: var(--muted); }

/* ---------- Kanban (Chi tiết dự án) ---------- */
.kanban { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; padding-bottom: 4px; }
.kcol { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; min-height: 260px; }
.kcol h4 { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin: 2px 4px 12px; }
.kcol h4 .n { background: #fff; border: 1px solid var(--border); border-radius: 99px; font-size: 12px; padding: 0 8px; }
.kcard { background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 10px; padding: 11px 12px; margin-bottom: 10px; cursor: pointer; box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .15s; }
.kcard:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.kcard .nm { font-weight: 600; }
.kcard .meta { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.kcard .badges { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.kcol.c-apply .kcard { border-left-color: var(--sky); }
.kcol.c-decu .kcard { border-left-color: var(--violet); }
.kcol.c-pv .kcard { border-left-color: var(--amber); }
.kcol.c-tv .kcard { border-left-color: var(--green); }
.reject-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.reject-strip .kcard { border-left-color: var(--red); opacity: .9; }

.info-list { display: flex; flex-direction: column; gap: 14px; }
.info-list .it label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.info-list .it .v { padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; display: flex; align-items: center; gap: 8px; min-height: 40px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }

/* Timeline (lịch sử trạng thái) */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding-bottom: 14px; }
.tl-item::before { content: ""; position: absolute; left: -20px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); }
.tl-item.red::before { border-color: var(--red); } .tl-item.green::before { border-color: var(--green); } .tl-item.amber::before { border-color: var(--amber); } .tl-item.violet::before { border-color: var(--violet); } .tl-item.sky::before { border-color: var(--sky); }
.tl-item .when { font-size: 12px; color: var(--muted); }
.tl-item .dur { font-size: 11px; color: var(--text-2); background: var(--slate-50); border-radius: 6px; padding: 1px 6px; margin-left: 6px; }
.tl-item .note { font-size: 13px; color: var(--text-2); margin-top: 2px; }

/* Interview list */
.iv { display: grid; grid-template-columns: 170px 1fr; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; border-left: 3px solid var(--primary); }
.iv .when { padding: 16px; background: var(--surface-2); border-right: 1px solid var(--border); display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.iv .when .t { color: var(--primary); font-weight: 700; font-size: 17px; display: flex; gap: 6px; align-items: center; }
.iv .body { padding: 14px 16px; }
.iv .foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px dashed var(--border); margin-top: 10px; padding-top: 10px; font-size: 13px; }
.iv .foot label { display: block; font-size: 11px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }
.iv.done { border-left-color: var(--green); } .iv.cancel { border-left-color: var(--muted); opacity: .75; }
.cal { padding: 0 14px 14px; }
.cal-head { background: var(--navy); color: #fff; border-radius: var(--radius) var(--radius) 0 0; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; }
.cal-head button { background: transparent; border: 0; color: #fff; cursor: pointer; padding: 4px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; gap: 4px; padding-top: 10px; }
.cal-grid .dow { font-size: 11px; color: var(--muted); font-weight: 600; padding: 4px 0; }
.cal-grid .d { height: 34px; display: grid; place-items: center; border-radius: 8px; font-size: 13px; cursor: pointer; position: relative; border: 0; background: none; }
.cal-grid .d:hover { background: var(--slate-50); }
.cal-grid .d.other { color: var(--border-strong); }
.cal-grid .d.today { background: var(--primary); color: #fff; font-weight: 700; }
.cal-grid .d.sel { outline: 2px solid var(--primary); }
.cal-grid .d.has::after { content: ""; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--primary); }
.cal-grid .d.today.has::after { background: #fff; }

/* Alerts list */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: #fff; }
.alert + .alert { margin-top: 8px; }
.alert .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.alert .tt { font-weight: 600; font-size: 13px; }
.alert .ds { font-size: 12px; color: var(--muted); }
.callout { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 13px; background: var(--primary-50); color: var(--navy); border: 1px solid var(--primary-100); }
.callout.amber { background: var(--amber-50); color: #7a4a04; border-color: #fde3b0; }
.callout.red { background: var(--red-50); color: #8f1d20; border-color: #f8c9ca; }
.callout.green { background: var(--green-50); color: #0b5e30; border-color: #bfe9d0; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 14px; font-weight: 600; color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.seg { display: inline-flex; background: var(--slate-50); padding: 3px; border-radius: 10px; gap: 2px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.seg button.active { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------- Charts ---------- */
.chart { width: 100%; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font-family: var(--font); font-size: 11px; fill: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; font-size: 12px; color: var(--text-2); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(70px, 38%) 1fr 34px; align-items: center; gap: 10px; font-size: 13px; }
.hbar .lb { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .tr { height: 12px; background: var(--slate-50); border-radius: 99px; overflow: hidden; }
.hbar .tr i { display: block; height: 100%; border-radius: 99px; }
.hbar b { text-align: right; font-size: 13px; }
.funnel-row { display: grid; grid-template-columns: 110px 1fr 70px; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.funnel-row .bar { height: 30px; border-radius: 8px; background: var(--primary); display: flex; align-items: center; padding: 0 10px; color: #fff; font-weight: 700; font-size: 12px; min-width: 34px; }
.funnel-row .rate { text-align: right; color: var(--text-2); font-size: 12px; }

/* ---------- Modal / Drawer / Toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); backdrop-filter: blur(2px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 18px; animation: fade .15s ease; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 620px; max-height: calc(100vh - 36px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: pop .18s ease; }
.modal.lg { max-width: 880px; } .modal.sm { max-width: 440px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); gap: 10px; }
.modal-head h3 { font-size: 17px; }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.drawer-ov { justify-content: flex-end; padding: 0; }
.drawer { background: #fff; width: 100%; max-width: 560px; height: 100%; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: slide .2s ease; }
.drawer .modal-body { flex: 1; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes slide { from { transform: translateX(40px); opacity: .4; } }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 36px); }
.toast { display: flex; gap: 10px; align-items: flex-start; background: #0f172a; color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 13px; max-width: 420px; animation: pop .2s ease; }
.toast.ok svg { color: #4ade80; } .toast.err svg { color: #f87171; } .toast.warn svg { color: #fbbf24; }
.dropdown { position: absolute; right: 18px; top: 58px; width: 380px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 60; max-height: 70vh; overflow-y: auto; }
.dropdown .dd-head { padding: 14px 16px; border-bottom: 1px solid var(--border); font-weight: 700; display: flex; justify-content: space-between; }
.dropdown .dd-item { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
.dropdown .dd-item:hover { background: var(--surface-2); }
.dropdown .menu-item { display: flex; gap: 10px; align-items: center; padding: 10px 16px; cursor: pointer; }
.dropdown .menu-item:hover { background: var(--surface-2); }

/* ---------- Login ---------- */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; }
.login-art { position: relative; overflow: hidden; background: radial-gradient(circle at 20% 15%, #2d4bd1 0%, var(--navy) 45%, #121a4d 100%); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.login-art::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(34,180,230,.45), transparent 65%); }
.login-art h2 { font-weight: 800; position: relative; }
.login-art p { color: rgba(255,255,255,.78); max-width: 480px; font-size: 15px; position: relative; }
.login-art .brand-logo { height: 46px; width: auto; align-self: flex-start; position: relative; }
.login-art .hero { position: relative; max-width: 520px; }
.login-art .eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7fd3f5; margin-bottom: 16px; }
.login-art .hero h2 { font-size: 44px; line-height: 1.12; letter-spacing: -.01em; margin: 0; }
.login-art .hero p { margin-top: 18px; font-size: 16px; line-height: 1.6; }
.login-art .steps { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 620px; }
.login-art .step { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(4px); }
.login-art .step .n { font-size: 13px; font-weight: 800; color: #7fd3f5; line-height: 20px; }
.login-art .step b { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.login-art .step span:not(.n) { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: rgba(255,255,255,.7); }
.login-box { display: flex; align-items: center; justify-content: center; padding: 32px 20px; background: var(--bg); }
.login-card { width: 100%; max-width: 420px; padding: 34px 32px; }
.login-card .logo { display: block; height: 58px; margin: 0 auto 12px; }
.login-card h1 { text-align: center; font-size: 24px; }
.login-card .lead { text-align: center; color: var(--text-2); margin: 6px 0 24px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; margin: 20px 0 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Selection bar */
.selbar { position: sticky; bottom: 14px; z-index: 20; margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--navy); color: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); flex-wrap: wrap; }
.fit { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; }
.fit .ring { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-side { grid-template-columns: 300px minmax(0, 1fr); }
}
@media (max-width: 1024px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w); transform: translateX(-102%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
  .app.nav-open .sidebar { transform: none; }
  .app.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.4); z-index: 35; }
  .menu-btn { display: grid; }
  .g-main, .g-side, .g-3 { grid-template-columns: minmax(0, 1fr); }
  .kanban { grid-template-columns: repeat(4, minmax(240px, 80%)); overflow-x: auto; scroll-snap-type: x mandatory; }
  .kcol { scroll-snap-align: start; }
  .login-page { grid-template-columns: 1fr; }
  .login-art { display: none; }
}
@media (max-width: 720px) {
  .view { padding: 18px 16px; }
  .topbar { padding: 0 12px; gap: 6px; }
  .topbar .search { display: none; }
  .user-chip .meta { display: none; }
  .user-chip { padding-left: 8px; }
  .page-head h1 { font-size: 22px; }
  .page-head .actions { width: 100%; }
  .page-head .actions .btn { flex: 1; }
  .g-2, .g-4 { grid-template-columns: minmax(0, 1fr); }
  .g-4.kpis, .g-5.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; } .kpi .value { font-size: 22px; } .kpi .ico { display: none; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .filter-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kv { grid-template-columns: 120px 1fr; }
  .iv { grid-template-columns: 1fr; }
  .iv .when { flex-direction: row; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--border); padding: 10px 14px; }
  .iv .foot { grid-template-columns: 1fr; }
  .modal { max-height: calc(100vh - 20px); border-radius: 16px; }
  .overlay { padding: 10px; align-items: flex-end; }
  .drawer-ov { padding: 0; }
  .hbars { display: flex; flex-direction: column; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(70px, 38%) 1fr 34px; align-items: center; gap: 10px; font-size: 13px; }
.hbar .lb { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .tr { height: 12px; background: var(--slate-50); border-radius: 99px; overflow: hidden; }
.hbar .tr i { display: block; height: 100%; border-radius: 99px; }
.hbar b { text-align: right; font-size: 13px; }
.funnel-row { grid-template-columns: 84px 1fr 54px; }
  /* tables -> cards */
  table.table.responsive thead { display: none; }
  table.table.responsive, table.table.responsive tbody, table.table.responsive tr, table.table.responsive td { display: block; width: 100%; }
  table.table.responsive tr { border-bottom: 1px solid var(--border); padding: 10px 14px; }
  table.table.responsive td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  table.table.responsive td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; flex: none; }
  table.table.responsive td.cell-main { display: block; text-align: left; padding-bottom: 6px; }
  table.table.responsive td.cell-main::before { display: none; }
  table.table.responsive td.num { text-align: right; }
  table.table.responsive td:empty, table.table.responsive td[data-label=""]::before { display: none; }
  .table-wrap { overflow: visible; }
}

/* ---------- Print (Xuất PDF) ---------- */
@media print {
  .sidebar, .topbar, .footer, .no-print, .toolbar .btn, .page-head .actions { display: none !important; }
  .app { display: block; }
  .view { padding: 0; max-width: none; }
  body { background: #fff; }
  .card { box-shadow: none; break-inside: avoid; }
  .print-only { display: block !important; }
}
.print-only { display: none; }

/* ==========================================================
   Fix Demo lần 1 — thanh menu xanh đậm, bỏ mô tả, STT, ô gợi ý
   ========================================================== */
.sidebar { background: linear-gradient(180deg, #13205a 0%, #172a6e 100%); border-right: 0; color: #c9d3f2; }
.sidebar .brand img { height: 44px; }
.nav-label { color: rgba(201, 211, 242, .55); }
.nav a { color: #c9d3f2; }
.nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav a.active { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 3px 0 0 #22b4e6; }
.nav a .count { background: #e5383b; }
.sidebar-foot { border-top-color: rgba(255, 255, 255, .12); }
.sidebar-foot a { color: #c9d3f2; }
.sidebar-foot a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sidebar-foot a.danger { color: #ff8b8d; }
.nav::-webkit-scrollbar { width: 6px; } .nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 6px; }
/* Bỏ dòng mô tả dưới tiêu đề ở tất cả các màn (giữ lại dòng thông tin có class "sub") */
.page-head > div > p:not(.sub) { display: none; }
/* Cột STT */
.table th.stt, .table td.stt { width: 52px; text-align: center; color: var(--text-2); font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { table.table.responsive td.stt { display: none; } }
/* Ô nhập có gợi ý (typeahead) */
.ta { position: relative; }
.ta-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 120; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); max-height: 260px; overflow-y: auto; }
.ta-item { padding: 9px 12px; cursor: pointer; border-bottom: 1px solid var(--border); }
.ta-item:last-child { border-bottom: 0; }
.ta-item:hover, .ta-item.on { background: var(--primary-50); }
.ta-item .t { font-weight: 600; font-size: 13px; } .ta-item .s { font-size: 12px; color: var(--muted); }
.ta-picked { margin-top: 8px; }
/* Báo cáo theo mẫu */
.rp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #c8d1e3; }
.rp-kpis > div { padding: 12px 14px; border-right: 1px solid #c8d1e3; } .rp-kpis > div:last-child { border-right: 0; }
.rp-kpis .l { font-size: 12px; color: var(--text-2); } .rp-kpis .v { font-size: 24px; font-weight: 800; margin-top: 6px; }
@media (max-width: 720px) { .rp-kpis { grid-template-columns: 1fr 1fr; } .rp-kpis > div:nth-child(2) { border-right: 0; } .rp-kpis > div:nth-child(-n+2) { border-bottom: 1px solid #c8d1e3; } }
.rp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rp-table th { background: #eef2fb; color: #1d2766; border: 1px solid #c8d1e3; padding: 9px 8px; font-weight: 700; text-align: center; }
.rp-table td { border: 1px solid #c8d1e3; padding: 8px; }
.rp-table td.c { text-align: center; } .rp-table tr.total td { background: #eef2fb; font-weight: 700; }
.rp-sec { font-size: 14px; font-weight: 800; color: #1d2766; text-transform: uppercase; margin: 18px 0 8px; }
/* Khung báo cáo chính thức (màn hình + in PDF) */
.rp-doc { padding: 34px 40px; max-width: 1040px; margin: 0 auto; color: #1f2a44; }
.rp-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding-bottom: 14px; border-bottom: 3px double #1d2766; }
.rp-brand { display: flex; gap: 12px; align-items: center; }
.rp-logo { height: 44px; width: auto; flex: none; }
.rp-co { font-weight: 800; color: #1d2766; font-size: 16px; }
.rp-code { text-align: right; font-size: 13px; color: var(--text-2); line-height: 1.7; } .rp-code b { color: #1f2a44; }
.rp-title { text-align: center; color: #1d2766; font-size: 22px; font-weight: 800; margin: 26px 0 6px; }
.rp-period { text-align: center; color: var(--text-2); margin-bottom: 20px; }
.rp-meta { display: grid; grid-template-columns: 120px 1fr 150px 1fr; gap: 8px 12px; margin: 0 0 6px; font-size: 14px; }
.rp-meta dt { color: var(--muted); } .rp-meta dd { margin: 0; font-weight: 600; }
.rp-table .t-sub { font-size: 11px; color: var(--muted); }
.rp-notes { margin-top: 16px; font-size: 13px; } .rp-notes ul { margin: 6px 0 0; padding-left: 20px; color: var(--text-2); }
.rp-date { text-align: right; font-style: italic; margin-top: 22px; }
.rp-sign { display: grid; grid-template-columns: 1fr 1fr; text-align: center; margin-top: 12px; min-height: 150px; }
.rp-sign b { display: block; } .rp-sign i { display: block; font-size: 12px; color: var(--muted); margin-bottom: 64px; } .rp-sign .nm { font-weight: 700; }
.rp-foot { border-top: 1px solid #c8d1e3; margin-top: 26px; padding-top: 8px; font-size: 12px; color: var(--muted); }
@media (max-width: 720px) { .rp-doc { padding: 20px 16px; } .rp-top { flex-direction: column; } .rp-code { text-align: left; } .rp-meta { grid-template-columns: 110px 1fr; } .rp-title { font-size: 18px; } }
/* Fix demo 3 — bản in báo cáo: trang A4 không lề (trình duyệt không in ngày giờ, tiêu đề, URL, số trang);
   lề trên/dưới lặp lại ở mọi trang nhờ thead/tfoot trống của khung bảng .rp-frame */
@page rp { size: A4; margin: 0; }
.rp-frame { width: 100%; border-collapse: collapse; page: rp; }
.rp-frame > thead > tr > td, .rp-frame > tfoot > tr > td, .rp-frame > tbody > tr > td { padding: 0; border: 0; }
.rp-gap { height: 12mm; }
.rp-end { break-inside: avoid; page-break-inside: avoid; }
.rp-table tr { break-inside: avoid; page-break-inside: avoid; }
@media print {
  .toasts, .toast, .dropdown, .overlay { display: none !important; }
  .rp-frame.print-only { display: table !important; }
  .rp-doc { border: 0; padding: 0 14mm; max-width: none; }
  .rp-table th, .rp-table tr.total td, .rp-kpis { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* Hộp thoại lịch phỏng vấn: thông tin vị trí / khách hàng dưới tiêu đề */
.modal-head h3 .dlg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: 12px; font-weight: 500; }
.chip-info { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 8px; background: var(--primary-50); border: 1px solid var(--primary-100); color: var(--primary); }
.chip-info label { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.chip-info b { font-weight: 700; color: var(--text); }
.chip-info svg { width: 13px; height: 13px; }
[hidden] { display: none !important; }

/* Báo cáo trên màn hình: dòng tổng cộng (Test demo lần 2) */
.table tr.total td { background: var(--primary-50); font-weight: 700; border-top: 1px solid var(--primary-100); }

/* ---------- Fix demo 3 (2) ---------- */
.input-ico .pw-eye { position: absolute; right: 6px; top: 5px; width: 32px; height: 30px; border: 0; background: transparent; border-radius: 8px; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.input-ico .pw-eye svg { position: static; }
.input-ico .pw-eye:hover { background: var(--slate-50); color: var(--text); }
.input-ico input[name=p] { padding-right: 44px; }
.icon-btn.xs { width: 22px; height: 22px; border-radius: 6px; display: inline-grid; vertical-align: middle; color: var(--primary); }
button.fit { border: 0; background: transparent; padding: 0; cursor: pointer; }
button.fit:hover .ring { box-shadow: 0 0 0 2px var(--primary-100); }
/* Báo cáo: cách tính kỳ báo cáo, dòng dự án mở rộng xem vị trí */
.rp-hint { display: flex; gap: 8px; align-items: flex-start; padding: 0 14px 12px; font-size: 12px; color: var(--text-2); }
.rp-hint svg { flex: none; margin-top: 1px; color: var(--primary); }
.rp-screen tr.grp { cursor: pointer; }
.rp-screen tr.grp:hover td { background: var(--slate-50); }
.rp-screen .chev { display: inline-flex; vertical-align: middle; margin-right: 2px; color: var(--muted); transition: transform .15s; }
.rp-screen tr.grp.open .chev { transform: rotate(90deg); color: var(--primary); }
.rp-screen tr.kid td { background: #f8faff; font-size: 12.5px; }
.rp-screen tr.kid td:nth-child(2) { padding-left: 22px; }
.rp-screen tr.kid-head td, .rp-table tr.kid-head td { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); padding-top: 6px; padding-bottom: 6px; }
.rp-table tr.grp td { font-weight: 600; background: #f6f8fc; }
.rp-table tr.kid td { font-size: 11px; } .rp-table tr.kid td:nth-child(2) { padding-left: 18px; }
.mini-prog { display: flex; align-items: center; gap: 8px; justify-content: flex-end; white-space: nowrap; }
.mini-prog span { width: 56px; height: 6px; border-radius: 4px; background: var(--slate-100, #eef1f6); overflow: hidden; display: block; }
.mini-prog i { display: block; height: 100%; background: var(--primary); border-radius: 4px; }
/* Gửi đề cử cho khách hàng */
.send-form { display: grid; gap: 10px; }
.send-co { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface-2, #f8fafc); }
.send-kv { display: grid; grid-template-columns: 96px 1fr 72px 1fr; gap: 4px 10px; margin: 8px 0 0; font-size: 12.5px; }
.send-kv dt { color: var(--muted); } .send-kv dd { margin: 0; font-weight: 600; }
.send-sec { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
.send-sec .muted { font-weight: 500; letter-spacing: 0; text-transform: none; }
.send-list { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.send-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.send-row:last-child { border-bottom: 0; } .send-row .person { flex: 1; min-width: 0; }
.file-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 7px; border: 1px solid; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.file-chip.pdf { color: #c2410c; border-color: #fed7aa; background: #fff7ed; }
.file-chip.xls { color: #15803d; border-color: #bbf7d0; background: #f0fdf4; }
.file-chip.sheet { color: #0f766e; border-color: #99f6e4; background: #f0fdfa; }
.file-chip.none { color: var(--muted); border-color: var(--border); background: transparent; font-weight: 500; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--primary); }
.att-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.att-opt.on { border-color: var(--primary); background: var(--primary-50); }
.att-opt input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--primary); margin-top: 1px; flex: none; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: transparent; font-size: 11.5px; font-weight: 600; padding: 3px 10px; cursor: pointer; color: var(--text-2); }
.seg button.on { background: var(--primary); color: #fff; }
.cv-sheet { border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; }
.cv-head { display: flex; gap: 14px; align-items: center; } .cv-head h2 { margin: 0; font-size: 20px; }
@media (max-width: 720px) { .send-kv { grid-template-columns: 90px 1fr; } .send-row { flex-wrap: wrap; } }
.rp-screen td:nth-child(2) { min-width: 210px; } .rp-screen td:nth-child(4) { min-width: 130px; }
.rp-screen td, .rp-screen th { padding-left: 10px; padding-right: 10px; }
/* Bảng báo cáo nhiều cột khi in (A4 dọc): chữ nhỏ, cột tên rộng hơn */
.rp-kpis.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rp-table.wide { font-size: 10.5px; } .rp-table.wide th { padding: 6px 4px; } .rp-table.wide td { padding: 5px 4px; }
.rp-table.wide td:nth-child(2) { min-width: 120px; } .rp-table.wide .t-sub { font-size: 9.5px; }
.rp-table.wide tr.kid td { font-size: 10px; }
/* Trang đăng nhập: quên mật khẩu, liên hệ Quản trị viên */
.login-help { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.login-help .sep { width: 1px; height: 16px; background: var(--border); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--primary); font: inherit; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.link-btn:hover { background: var(--primary-50); }
.seg.seg-lg { display: flex; } .seg.seg-lg button { flex: 1; padding: 8px 10px; font-size: 13px; }
.contact-card { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.contact-card a.btn { text-decoration: none; }
/* Nút thao tác dạng icon + tooltip (Fix demo 3 (4)) */
.act { width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--text-2); cursor: pointer; padding: 0; flex: none; transition: background .12s, border-color .12s, color .12s; vertical-align: middle; }
.act:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.act.primary { background: var(--primary); border-color: var(--primary); color: #fff; } .act.primary:hover { filter: brightness(1.08); color: #fff; }
.act.success { background: var(--green); border-color: var(--green); color: #fff; } .act.success:hover { filter: brightness(1.08); color: #fff; }
.act.danger { color: var(--red); border-color: #f5c2c7; } .act.danger:hover { background: #fdecee; border-color: var(--red); color: var(--red); }
.act:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.act + .act { margin-left: 4px; }
.tip { position: fixed; z-index: 3000; max-width: 260px; background: #111827; color: #fff; border-radius: 8px; padding: 7px 10px; font-size: 12px; line-height: 1.35; box-shadow: 0 8px 24px rgba(15, 23, 42, .25); pointer-events: none; }
.tip b { display: block; font-weight: 600; } .tip span { display: block; color: #cbd5e1; font-size: 11px; margin-top: 2px; }
/* Tiêu đề bảng không bôi chọn được; nhãn "Độ phù hợp" vẽ bằng CSS nên không bị đánh dấu khi tìm/chọn chữ */
.table th { user-select: none; -webkit-user-select: none; }
.th-fit::before { content: attr(data-label); }
