/* =====================================================================
   Giao dien sang / toi + o nhap de nhin + man hinh dang nhap, tai khoan
   (class "dark" tren <html> do app bat/tat; mac dinh theo may)
   ===================================================================== */
[hidden] { display: none !important; }

:root {
  --k-bg: #eef2f6;
  --k-surface: #ffffff;
  --k-surface2: #f6f8fb;
  --k-fg: #0f172a;
  --k-muted: #475569;
  --k-line: #cdd6e1;
  --k-inp-bg: #ffffff;
  --k-inp-fg: #0b1220;
  --k-inp-line: #8a9bb3;
  --k-accent: #f59e0b;
  --k-accent-ink: #1c1306;
  --k-focus: #f59e0b;
  --k-danger: #dc2626;
  --k-danger-bg: #fef2f2;
  --k-ok: #047857;
  --k-ok-bg: #ecfdf5;
  --k-chip: #e2e8f0;
}
html.dark {
  --k-bg: #0a1120;
  --k-surface: #111b2e;
  --k-surface2: #15223a;
  --k-fg: #e8eef8;
  --k-muted: #a3b3ca;
  --k-line: #2a3a55;
  --k-inp-bg: #0c1628;
  --k-inp-fg: #f4f7fc;
  --k-inp-line: #50648a;
  --k-accent: #fbbf24;
  --k-accent-ink: #1c1306;
  --k-focus: #fbbf24;
  --k-danger: #f87171;
  --k-danger-bg: #2a1215;
  --k-ok: #34d399;
  --k-ok-bg: #0e2a22;
  --k-chip: #1f2d47;
  color-scheme: dark;
}

/* ---------- O nhap: chu 16px, cao de bam, vien ro ---------- */
@media screen {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select, textarea {
    font-size: 16px !important;
    min-height: 44px;
    border-width: 1.5px !important;
    border-color: var(--k-inp-line) !important;
    background-color: var(--k-inp-bg);
    color: var(--k-inp-fg) !important;
    border-radius: 10px !important;
  }
  input:focus, select:focus, textarea:focus {
    outline: none !important;
    border-color: var(--k-focus) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--k-focus) 35%, transparent) !important;
  }
  /* o do thuc te (nhiet do den, thuoc T) noi bat */
  input.border-amber-400 { border-color: #d97706 !important; border-width: 2px !important; }
  input::placeholder { color: var(--k-muted); opacity: .8; }
  label { font-size: 13.5px !important; }
  table input, table select { min-height: 42px; }
  td input.w-20 { width: 6.5rem !important; }
  td input.w-24 { width: 7.5rem !important; }
  td input.w-14 { width: 4.5rem !important; }
}

/* ---------- Che do toi cho cac lop Tailwind dang dung ---------- */
@media screen {
  html.dark body { background-color: var(--k-bg) !important; color: var(--k-fg) !important; }
  html.dark .bg-white, html.dark .bg-white\/90 { background-color: var(--k-surface) !important; }
  html.dark .bg-slate-50, html.dark .bg-slate-50\/70, html.dark .bg-slate-50\/50,
  html.dark .bg-slate-100, html.dark .bg-slate-200\/70 { background-color: var(--k-surface2) !important; }
  html.dark .hover\:bg-slate-50:hover { background-color: var(--k-surface2) !important; }
  html.dark .text-slate-900, html.dark .text-slate-800 { color: var(--k-fg) !important; }
  html.dark .text-slate-700 { color: #d3ddeb !important; }
  html.dark .text-slate-600, html.dark .text-slate-500 { color: var(--k-muted) !important; }
  html.dark .border-slate-200, html.dark .border-slate-200\/80, html.dark .border-slate-300,
  html.dark .border-slate-400 { border-color: var(--k-line) !important; }
  html.dark .divide-slate-200 > * + * { border-color: var(--k-line) !important; }
  html.dark .bg-emerald-50, html.dark .bg-emerald-50\/60 { background-color: #0d2a22 !important; }
  html.dark .bg-rose-50 { background-color: #2c1216 !important; }
  html.dark .bg-blue-50 { background-color: #0f203d !important; }
  html.dark .bg-amber-50\/40, html.dark .bg-amber-50\/50, html.dark .bg-amber-50\/60,
  html.dark .bg-amber-50\/80 { background-color: #2a1f08 !important; }
  html.dark .bg-emerald-100 { background-color: #064e3b !important; }
  html.dark .bg-rose-100 { background-color: #5b1a22 !important; }
  html.dark .bg-blue-100 { background-color: #1e3a6b !important; }
  html.dark .bg-amber-100 { background-color: #5a3d06 !important; }
  html.dark .text-emerald-900, html.dark .text-emerald-800 { color: #6ee7b7 !important; }
  html.dark .text-emerald-700 { color: #34d399 !important; }
  html.dark .text-rose-900, html.dark .text-rose-800, html.dark .text-rose-700 { color: #fda4af !important; }
  html.dark .text-rose-600 { color: #fb7185 !important; }
  html.dark .text-blue-900, html.dark .text-blue-800, html.dark .text-blue-700 { color: #93c5fd !important; }
  html.dark .text-amber-800 { color: #fcd34d !important; }
  html.dark .border-emerald-300 { border-color: #047857 !important; }
  html.dark .border-rose-300 { border-color: #9f1239 !important; }
  html.dark .border-blue-300, html.dark .border-blue-200 { border-color: #1d4ed8 !important; }
  html.dark .border-amber-300 { border-color: #b45309 !important; }
  html.dark code { color: var(--k-fg) !important; }
  html.dark .shadow-sm { box-shadow: none !important; }
}

/* ---------- Thanh nguoi dung tren header ---------- */
.k-userbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.k-store-sel { min-height: 38px !important; font-size: 14px !important; padding: 4px 10px; max-width: 46vw;
  background: #1e293b !important; color: #f8fafc !important; border-color: #475569 !important; }
.k-store-name { font-size: 13px; color: #fcd34d; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: #1e293b; }
.k-icon-btn { width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center;
  background: #1e293b; color: #f8fafc; border: 1px solid #475569; cursor: pointer; }
.k-icon-btn:hover { background: #334155; }
.k-icon-btn:focus-visible, .k-btn:focus-visible { outline: 3px solid var(--k-focus); outline-offset: 2px; }
.k-pending { font-size: 12px; font-weight: 700; color: #1c1306; background: #fbbf24; border-radius: 999px; padding: 4px 10px; }
.k-banner { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: #fef3c7; color: #78350f; border: 1px solid #fcd34d; border-radius: 14px; padding: 10px 14px; font-size: 14px; font-weight: 600; }
html.dark .k-banner { background: #3a2a06; color: #fde68a; border-color: #92400e; }

@media (max-width: 640px) {
  header h1 + p { display: none; }
  .k-head-actions { width: 100%; justify-content: space-between; flex-wrap: nowrap !important; }
  .k-head-actions .k-store-sel { max-width: 40vw; }
  .k-head-actions .k-userbar { flex-wrap: nowrap; min-width: 0; gap: 6px; }
  .k-store-name { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .k-pending { padding: 4px 8px; white-space: nowrap; }
  .k-head-actions #btnSaveHistoryTop { white-space: nowrap; }
}

/* ---------- Nut, the, danh sach ---------- */
.k-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px;
  border-radius: 10px; font-weight: 700; font-size: 15px; border: 1.5px solid var(--k-line); background: var(--k-surface);
  color: var(--k-fg); cursor: pointer; }
.k-btn:hover { background: var(--k-surface2); }
.k-btn.primary { background: var(--k-accent); border-color: var(--k-accent); color: var(--k-accent-ink); }
.k-btn.primary:hover { filter: brightness(1.05); }
.k-btn.danger { background: var(--k-danger-bg); border-color: var(--k-danger); color: var(--k-danger); }
.k-btn.small { min-height: 38px; padding: 0 12px; font-size: 14px; }
.k-btn[disabled] { opacity: .55; cursor: not-allowed; }
.k-stack { display: grid; gap: 16px; }
.k-grid2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .k-grid2 { grid-template-columns: 1fr 1fr; align-items: start; } }
.k-card { background: var(--k-surface); color: var(--k-fg); border: 1px solid var(--k-line); border-radius: 16px; padding: 18px; display: grid; gap: 14px; }
.k-card h3 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.k-card h3::before { content: ""; width: 8px; height: 16px; border-radius: 3px; background: var(--k-accent); }
.k-card.danger-zone h3::before { background: var(--k-danger); }
.k-note { font-size: 14px; color: var(--k-muted); margin: 0; line-height: 1.5; }
.k-field { display: grid; gap: 6px; }
.k-field > span { font-size: 13.5px; font-weight: 700; color: var(--k-muted); }
.k-form { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .k-form.cols2 { grid-template-columns: 1fr 1fr; } }
.k-form .k-full { grid-column: 1 / -1; }
.k-inp { width: 100%; padding: 0 12px; }
.k-list { display: grid; gap: 8px; }
.k-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 12px; border: 1px solid var(--k-line); border-radius: 12px; background: var(--k-surface2); }
.k-row .k-main { min-width: 0; display: grid; gap: 2px; }
.k-row .k-title { font-weight: 800; font-size: 15px; overflow-wrap: anywhere; }
.k-row .k-sub { font-size: 13px; color: var(--k-muted); overflow-wrap: anywhere; }
.k-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.k-chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--k-chip); color: var(--k-fg); }
.k-chip.owner { background: #fde68a; color: #713f12; }
.k-group-title { font-size: 13px; font-weight: 800; color: var(--k-muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.k-seg { justify-self: start; display: inline-flex; border: 1.5px solid var(--k-line); border-radius: 12px; overflow: hidden; }
.k-seg button { min-height: 42px; padding: 0 14px; font-weight: 700; font-size: 14px; background: var(--k-surface); color: var(--k-fg); border: 0; cursor: pointer; }
.k-seg button + button { border-left: 1.5px solid var(--k-line); }
.k-seg button[aria-pressed="true"] { background: var(--k-accent); color: var(--k-accent-ink); }
.k-err { color: var(--k-danger); font-size: 14px; font-weight: 600; min-height: 1em; margin: 0; }

/* ---------- Man hinh dang nhap ---------- */
.k-login { position: fixed; inset: 0; z-index: 200; overflow-y: auto; background: var(--k-bg);
  display: grid; place-items: center; padding: max(24px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); }
.k-login-box { width: 100%; max-width: 400px; background: var(--k-surface); color: var(--k-fg); border: 1px solid var(--k-line); border-radius: 20px; padding: 24px; display: grid; gap: 16px; }
.k-login-head { display: flex; align-items: center; gap: 12px; }
.k-logo { width: 48px; height: 48px; border-radius: 14px; background: #f59e0b; color: #0f172a; display: grid; place-items: center; flex-shrink: 0; }
.k-login-head h1 { font-size: 19px; font-weight: 800; margin: 0; line-height: 1.25; }
.k-login-head p { font-size: 13px; color: var(--k-muted); margin: 2px 0 0; }
.k-pass-wrap { position: relative; }
.k-pass-wrap input { padding-right: 64px; }
.k-pass-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 34px; padding: 0 10px; border-radius: 8px;
  border: 0; background: var(--k-chip); color: var(--k-fg); font-weight: 700; font-size: 13px; cursor: pointer; }
.k-help { font-size: 13.5px; color: var(--k-muted); line-height: 1.55; background: var(--k-surface2); border-radius: 12px; padding: 12px; margin: 0; }

/* ---------- Hop xac nhan ---------- */
.k-modal { position: fixed; inset: 0; z-index: 300; background: rgba(2, 6, 23, .6); display: grid; place-items: center;
  padding: 16px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
.k-modal-box { width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto; background: var(--k-surface); color: var(--k-fg);
  border: 1px solid var(--k-line); border-radius: 18px; padding: 20px; display: grid; gap: 14px; }
.k-modal-box h4 { margin: 0; font-size: 18px; font-weight: 800; }
.k-modal-box .k-body { font-size: 15px; line-height: 1.55; display: grid; gap: 12px; }
.k-modal-foot { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@media (prefers-reduced-motion: no-preference) {
  .k-modal-box, .k-login-box { animation: k-pop .16s ease-out; }
  @keyframes k-pop { from { transform: translateY(6px); opacity: .6; } to { transform: none; opacity: 1; } }
}
@media print { .k-login, .k-modal, .k-banner { display: none !important; } }

/* =====================================================================
   TAI KHOAN - thiet ke theo mau "Xang dau Khanh Hiep"
   (the trang bo goc 14px, o thong tin nen xam, nhan Chu / Quan ly / Nhan vien,
    nut cam dam, o dat lai mat khau nen vang nhat, nut xoa vien do,
    nut tron sang/toi + nut tron chu viet tat mo menu tai khoan)
   ===================================================================== */
:root {
  --r-bg: #f2f4f8; --r-c: #ffffff; --r-soft: #f6f8fb; --r-g: #eceff4;
  --r-t: #0f1b2d; --r-m: #586a80; --r-b: #e0e5ed; --r-b2: #c9d2de;
  --r-h: #173f6e; --r-hi: #173f6e; --r-hl: #e7effa; --r-p: #c2410c; --r-ph: #a8370a;
  --r-er: #b91c1c; --r-bad: #fdeded;
  --r-okbg: #dcfce7; --r-okt: #166534; --r-ambg: #fef3c7; --r-amt: #92400e;
  --r-y: #fffbe9; --r-yb: #e6d88f; --r-yf: #ffffff; --r-ring: rgba(23, 63, 110, .18);
  --r-sh: 0 1px 2px rgba(15, 27, 45, .05), 0 6px 18px rgba(15, 27, 45, .05);
  --r-shm: 0 14px 40px rgba(15, 27, 45, .22);
}
html.dark {
  --r-bg: #0d1219; --r-c: #151b25; --r-soft: #1a2230; --r-g: #202a3a;
  --r-t: #e8edf5; --r-m: #98a6ba; --r-b: #252f40; --r-b2: #36435a;
  --r-h: #2f6db5; --r-hi: #8fbcf5; --r-hl: #1c2d47; --r-p: #dc5a1f; --r-ph: #f0692c;
  --r-er: #f87171; --r-bad: #341a1d;
  --r-okbg: #14532d; --r-okt: #bbf7d0; --r-ambg: #5b4410; --r-amt: #fde68a;
  --r-y: #2a2814; --r-yb: #6a5c22; --r-yf: #1c2433; --r-ring: rgba(143, 188, 245, .28);
  --r-sh: 0 1px 2px rgba(0, 0, 0, .4); --r-shm: 0 14px 40px rgba(0, 0, 0, .55);
}

#accountPanel { color: var(--r-t); font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; }
#accountPanel h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; letter-spacing: -.005em; color: var(--r-t); }
#accountPanel h4 { margin: 12px 0 6px; font-size: 13px; font-weight: 650; color: var(--r-m); }
#accountPanel p { margin: 0 0 8px; }
.r-k { font-size: 12.5px; color: var(--r-m); font-weight: 400; }
.r-card { background: var(--r-c); border: 1px solid var(--r-b); border-radius: 14px; padding: 16px; margin-bottom: 12px; box-shadow: var(--r-sh); }
.r-card.narrow { max-width: 460px; }
.r-card.mid { max-width: 640px; }
.r-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 12px; align-items: start; margin: 12px 0; }
.r-tile { background: var(--r-c); border: 1px solid var(--r-b); border-radius: 14px; box-shadow: var(--r-sh); padding: 12px 14px; min-width: 0; }
.r-tile h4 { margin: 0 0 10px !important; font-size: 15px !important; color: var(--r-t) !important; font-weight: 750 !important; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.r-kvg { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.r-kv { background: var(--r-g); border-radius: 11px; padding: 8px 12px; min-width: 0; }
.r-kv span { display: block; font-size: 11.5px; color: var(--r-m); line-height: 1.25; font-weight: 550; }
.r-kv b { display: block; font-size: 15px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-pill { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; background: var(--r-g); color: var(--r-t); }
.r-pill.amb { background: var(--r-ambg); color: var(--r-amt); }
.r-pill.pos { background: var(--r-okbg); color: var(--r-okt); }
.r-sec { margin: 20px 2px 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; color: var(--r-m); text-transform: uppercase; }

/* bieu mau */
.r-f label.r-fl, .r-fl { display: block; font-size: 12.5px !important; font-weight: 650; color: var(--r-m); margin: 12px 0 5px; }
.r-f input, .r-f select {
  width: 100%; border: 1.5px solid var(--r-b2) !important; border-radius: 10px !important; padding: 10px 12px; min-height: 46px;
  font-size: 16px !important; background: var(--r-c) !important; color: var(--r-t) !important; box-shadow: none;
}
.r-f input:focus, .r-f select:focus { outline: 0; border-color: var(--r-hi) !important; box-shadow: 0 0 0 4px var(--r-ring) !important; }
.r-f input.r-y, .r-f select.r-y { background: var(--r-y) !important; border-color: var(--r-yb) !important; font-weight: 550; }
.r-f input.r-y:focus, .r-f select.r-y:focus { background: var(--r-yf) !important; border-color: var(--r-hi) !important; }
.r-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 0 12px; align-items: end; }

/* nut */
.r-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--r-p); color: #fff; border: 1px solid transparent;
  border-radius: 10px; padding: 9px 16px; font: inherit; font-weight: 650; font-size: 14.5px; min-height: 42px; cursor: pointer; margin-top: 12px; transition: background .15s, transform .06s; }
.r-btn:hover { background: var(--r-ph); }
.r-btn:active { transform: translateY(1px); }
.r-btn.s { background: var(--r-c); color: var(--r-t); border-color: var(--r-b2); }
.r-btn.s:hover { background: var(--r-soft); }
.r-btn[disabled] { opacity: .55; cursor: not-allowed; }
.r-x { font: inherit; font-size: 13.5px; border: 1px solid var(--r-er); border-radius: 10px; padding: 8px 14px; color: var(--r-er); background: var(--r-c); font-weight: 650; cursor: pointer; min-height: 42px; }
.r-x:hover { background: var(--r-bad); }
.r-ft { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.r-ft .r-btn { margin-top: 0; }
.r-btn:focus-visible, .r-x:focus-visible, .r-thb:focus-visible, .r-avb:focus-visible, .r-mi:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--r-ring); }
.r-card.danger { border-color: color-mix(in srgb, var(--r-er) 40%, var(--r-b)); }

/* nut tron tren dau trang + menu tai khoan */
.r-head { display: flex; align-items: center; gap: 8px; position: relative; }
.r-stsel { appearance: none; -webkit-appearance: none; border: 1px solid #475569 !important; background: #1e293b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center !important;
  color: #f8fafc !important; border-radius: 999px !important; padding: 6px 30px 6px 14px; font-size: 14px !important; font-weight: 650; min-height: 38px !important; max-width: 170px; text-overflow: ellipsis; cursor: pointer; }
.r-stname { font-size: 13.5px; font-weight: 650; color: #f8fafc; padding: 8px 14px; border-radius: 999px; border: 1px solid #475569; background: #1e293b; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-thb { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #475569; background: #1e293b; color: #f8fafc; cursor: pointer; flex: none; display: grid; place-items: center; padding: 0; }
.r-thb:hover { background: #334155; }
.r-avb { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #2f6db5; color: #fff; font-weight: 750; font-size: 13px; cursor: pointer; flex: none; display: grid; place-items: center; letter-spacing: .02em; }
.r-avb:hover { filter: brightness(1.1); }
.r-menu { position: absolute; right: 0; top: calc(100% + 8px); width: min(300px, calc(100vw - 24px)); background: var(--r-c); color: var(--r-t); border: 1px solid var(--r-b);
  border-radius: 16px; box-shadow: var(--r-shm); padding: 6px; z-index: 60; text-align: left; }
.r-menu .r-mh { padding: 10px 12px; border-bottom: 1px solid var(--r-b); margin-bottom: 6px; }
.r-menu .r-mh b { display: block; font-size: 15px; }
.r-menu .r-mh .r-k { display: block; margin-top: 1px; }
.r-mi { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; background: none; border-radius: 10px; text-align: left; font-size: 14.5px; font-weight: 550; color: var(--r-t); cursor: pointer; }
.r-mi:hover { background: var(--r-soft); }
.r-mi svg { color: var(--r-m); width: 19px; height: 19px; flex: none; }
.r-mi.out, .r-mi.out svg { color: var(--r-er); }
.r-menu hr { border: 0; border-top: 1px solid var(--r-b); margin: 6px 0; }
@media (max-width: 640px) {
  .r-stsel, .r-stname { max-width: 36vw; }
}

/* man hinh dang nhap theo cung mau */
.k-login { background: var(--r-bg); }
.k-login-box { background: var(--r-c); border-color: var(--r-b); border-radius: 14px; box-shadow: var(--r-sh); color: var(--r-t); padding: 22px 20px; gap: 12px; }
.k-login-head { padding-bottom: 14px; border-bottom: 1px solid var(--r-b); }
.k-login-head h1 { font-size: 19px; letter-spacing: -.01em; }
.k-login-head p { color: var(--r-m); font-size: 12.5px; }
.k-logo { width: 42px; height: 42px; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #2a6bb5, #0f2f55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.k-login .k-field > span { font-size: 12.5px; color: var(--r-m); }
.k-login input { border-color: var(--r-b2) !important; background: var(--r-c) !important; color: var(--r-t) !important; }
.k-login input:focus { border-color: var(--r-hi) !important; box-shadow: 0 0 0 4px var(--r-ring) !important; }
.k-login .k-btn.primary { background: var(--r-p); border-color: var(--r-p); color: #fff; }
.k-login .k-help { background: var(--r-soft); color: var(--r-m); font-size: 12.5px; }
.k-modal-box .k-btn.primary { background: var(--r-p); border-color: var(--r-p); color: #fff; }
.k-modal-box .k-btn.danger { background: var(--r-c); border-color: var(--r-er); color: var(--r-er); }
.r-f .k-err:empty { display: none; }
.r-kv b { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.r-menu { position: fixed; right: 12px; top: 64px; }
@media (max-width: 640px) {
  .r-stsel, .r-stname { max-width: 32vw; }
  .k-head-actions { gap: 6px !important; }
  .k-head-actions #btnSaveHistoryTop { padding: 8px 11px; }
  .k-head-actions #btnSaveHistoryTop svg { display: none; }
}
/* uu tien hon quy tac o nhap chung o tren */
#accountPanel .r-f input, #accountPanel .r-f select { border-color: var(--r-b2) !important; background-color: var(--r-c) !important; color: var(--r-t) !important; }
#accountPanel .r-f input.r-y, #accountPanel .r-f select.r-y { background-color: var(--r-y) !important; border-color: var(--r-yb) !important; }
#accountPanel .r-f input:focus, #accountPanel .r-f select:focus { border-color: var(--r-hi) !important; box-shadow: 0 0 0 4px var(--r-ring) !important; }
#accountPanel .r-f input.r-y:focus, #accountPanel .r-f select.r-y:focus { background-color: var(--r-yf) !important; }
