/* Khung chamcong2 (13/10/2026, v3): bố cục theo hệ thiết kế KiotViet, màu nhấn theo tài khoản (mặc định xanh lá), sáng / tối (đo trực tiếp salon.kiotviet.vn):
   màu nhấn --acc (KiotViet dùng #0070F4) · nền #F7F8F9 · chữ Inter 14px #15171A · chữ phụ 12px #677484 · thẻ trắng bo 12px không viền, không bóng ·
   nút cao 32px bo 10px (viền xanh / viền xám #D1D5DA) · đầu bảng nền #E6F1FE chữ 12px đậm · dòng kẻ #E8EAED · tab gạch chân xanh.
   Phủ lên app.css (nội dung trang của chamcong) và dùng chung cho erp-web. Tiền tố t2- / n2- không đụng app.css. */
/* Màu nhấn theo tài khoản (users.ui_accent → html[data-accent], trang /giao-dien) — mặc định xanh lá Home Mart; --acc-d = bản sáng hơn cho nền tối */
:root { --acc-l: #448127; --acc-d: #76b82a; }
html[data-accent="blue"] { --acc-l: #0070f4; --acc-d: #4c9bff; }
html[data-accent="teal"] { --acc-l: #0f766e; --acc-d: #2dd4bf; }
html[data-accent="purple"] { --acc-l: #6d28d9; --acc-d: #a78bfa; }
html[data-accent="pink"] { --acc-l: #be185d; --acc-d: #f472b6; }
html[data-accent="red"] { --acc-l: #b91c1c; --acc-d: #f87171; }
html[data-accent="orange"] { --acc-l: #c2410c; --acc-d: #fb923c; }
html[data-accent="amber"] { --acc-l: #92400e; --acc-d: #fbbf24; }
html[data-accent="slate"] { --acc-l: #334155; --acc-d: #94a3b8; }
body.skin2 {
  --acc: var(--acc-l); --acc-bar: var(--acc-l); --acc-on: #fff;
  --acc-2: color-mix(in srgb, var(--acc) 84%, #000); --acc-soft: color-mix(in srgb, var(--acc) 10%, #fff); --acc-line: color-mix(in srgb, var(--acc) 24%, #fff);
  --kv-bg: #f7f8f9; --kv-surface: #fff; --kv-surface-2: #f4f5f7; --kv-text: #15171a; --kv-muted: #677484; --kv-label: #3e464f; --kv-line: #e8eaed; --kv-line-2: #e1e3e6; --kv-input: #d1d5da; --kv-gray: #f0f1f3; --kv-red: #e5484d; --kv-shadow: 0 4px 12px rgba(0, 0, 0, .12);
  /* biến của app.css + erp.css → bảng màu khung mới (trạng thái chấm công giữ nguyên ý nghĩa màu) */
  --bg: var(--kv-bg); --surface: var(--kv-surface); --surface-2: var(--kv-surface-2); --text: var(--kv-text); --muted: var(--kv-muted); --border: var(--kv-line-2); --border-strong: var(--kv-input);
  --primary: var(--acc); --primary-2: var(--acc-2); --on-primary: var(--acc-on); --accent: var(--kv-red); --brand-bar: var(--acc-bar); --on-brand: #fff;
  --head-bg: var(--acc-soft); --on-head: var(--kv-text); --head-line: var(--acc-line);
  --card: var(--kv-surface); --line: var(--kv-line); --line-2: var(--kv-gray); --head: var(--acc-soft); --red: var(--kv-red);
  --brand: var(--acc); --brand-2: var(--acc-2); --brand-bright: var(--acc); --brand-soft: var(--acc-soft); --brand-line: var(--acc-line);
  --radius: 12px; --shadow: none;
  background: var(--kv-bg) !important; color: var(--kv-text); padding: 0 !important;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif; font-size: 14px; line-height: 20px;
}
/* Giao diện tối (nút Sáng / Tối trên thanh menu, cùng khoá hm-theme với bản cũ; chưa chọn = theo máy) */
html[data-theme="dark"] body.skin2 {
  --acc: var(--acc-d); --acc-bar: color-mix(in srgb, var(--acc-l) 72%, #0b0f14); --acc-on: #0b1220;
  --acc-2: color-mix(in srgb, var(--acc) 85%, #fff); --acc-soft: color-mix(in srgb, var(--acc) 16%, #181c21); --acc-line: color-mix(in srgb, var(--acc) 32%, #181c21);
  --kv-bg: #0f1216; --kv-surface: #181c21; --kv-surface-2: #1f242a; --kv-text: #e6e9ed; --kv-muted: #9aa4b1; --kv-label: #c7cfd8; --kv-line: #262c33; --kv-line-2: #2e353d; --kv-input: #3a434d; --kv-gray: #222830; --kv-red: #f2555a; --kv-shadow: 0 4px 12px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) body.skin2 {
  --acc: var(--acc-d); --acc-bar: color-mix(in srgb, var(--acc-l) 72%, #0b0f14); --acc-on: #0b1220;
  --acc-2: color-mix(in srgb, var(--acc) 85%, #fff); --acc-soft: color-mix(in srgb, var(--acc) 16%, #181c21); --acc-line: color-mix(in srgb, var(--acc) 32%, #181c21);
  --kv-bg: #0f1216; --kv-surface: #181c21; --kv-surface-2: #1f242a; --kv-text: #e6e9ed; --kv-muted: #9aa4b1; --kv-label: #c7cfd8; --kv-line: #262c33; --kv-line-2: #2e353d; --kv-input: #3a434d; --kv-gray: #222830; --kv-red: #f2555a; --kv-shadow: 0 4px 12px rgba(0, 0, 0, .45);
  color-scheme: dark;
} }
.skin2 .t2i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------------------------------------------------------------- thanh menu (bk-header) */
.t2-bar { position: sticky; top: 0; z-index: 60; padding: 8px 8px 0; background: var(--kv-bg); }
.t2-in { display: flex; align-items: center; height: 54px; border-radius: 12px; padding: 0 12px 0 16px; color: #fff; background: var(--acc-bar); box-shadow: var(--kv-shadow); }
.t2-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; flex: none; }
.t2-logo img { height: 24px; display: block; }
.t2-v { font-size: 10px; font-weight: 700; background: rgba(255, 255, 255, .22); border-radius: 6px; padding: 1px 6px; letter-spacing: .3px; }
.t2-nav { display: flex; align-items: stretch; height: 100%; margin: 0 0 0 16px; padding: 0; list-style: none; }
.t2-nav > li { position: relative; display: flex; }
.t2-nav > li > a { display: flex; align-items: center; gap: 4px; padding: 0 12px; color: #fff; text-decoration: none; font-weight: 500; font-size: 14px; white-space: nowrap; position: relative; }
.t2-nav > li > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px 2px 0 0; background: transparent; }
.t2-nav > li.on > a::after, .t2-nav > li:hover > a::after { background: var(--kv-surface); }
.t2-dd { position: absolute; top: 100%; left: 0; min-width: 216px; padding: 8px; background: var(--kv-surface); color: var(--kv-text); border-radius: 12px; box-shadow: 0 8px 24px rgba(16, 24, 40, .14); display: none; z-index: 70; text-align: left; }
.t2-nav > li:hover > .t2-dd, .t2-nav > li.open > .t2-dd { display: block; }
.t2-dd a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; color: var(--kv-text); text-decoration: none; white-space: nowrap; font-size: 14px; font-weight: 400; line-height: 20px; }
.t2-dd a:hover { background: var(--kv-gray); }
.t2-dd a.on { background: var(--acc-soft); color: var(--acc); font-weight: 500; }
.t2-gt { font-size: 12px; color: var(--kv-muted); padding: 10px 12px 4px; border-top: 1px solid var(--kv-line); margin-top: 6px; font-weight: 400; }
.t2-gt0 { font-size: 12px; color: var(--kv-muted); padding: 4px 12px 6px; font-weight: 400; }
.t2-dd.t2-mega { width: 600px; padding: 12px; }
.t2-nav > li:hover > .t2-mega, .t2-nav > li.open > .t2-mega { display: grid; grid-template-columns: 1.15fr 1fr; gap: 8px; }
.t2-col { border-left: 1px solid var(--kv-line); padding-left: 12px; }
.t2-g2 { display: grid; grid-template-columns: 1fr 1fr; }
.t2-trend { align-items: flex-start !important; white-space: normal !important; }
.t2-ti { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc); flex: none; }
.t2-trend b { display: block; font-size: 14px; font-weight: 600; }
.t2-trend small, .t2-notes small { display: block; font-size: 12px; line-height: 16px; color: var(--kv-muted); font-weight: 400; }
.t2-cnt { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--kv-red); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; line-height: 1; margin-left: auto; }
.t2-nav > li > a .t2-cnt { margin-left: 2px; }
.t2-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.t2-btn { height: 32px; border: 0; border-radius: 10px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; background: var(--acc-soft); color: var(--acc); font: 600 14px/20px inherit; cursor: pointer; text-decoration: none; white-space: nowrap; position: relative; }
.t2-btn:hover, .t2-btn.on { background: var(--kv-surface); }
.t2-btn.t2-ic { width: 32px; padding: 0; justify-content: center; }
.t2-btn .t2-cnt { position: absolute; top: -6px; right: -6px; border: 2px solid var(--acc-bar); margin: 0; }
.t2-av { border-radius: 50% !important; }
.t2-av span { font-size: 12px; font-weight: 700; }
.t2-light { background: var(--kv-gray); color: var(--kv-text); }
.t2-pop { position: relative; }
.t2-pop > .t2-dd { left: auto; right: 0; top: calc(100% + 10px); }
.t2-pop.open > .t2-dd { display: block; }
.t2-set { width: min(540px, calc(100vw - 20px)); padding: 12px; }
.t2-pop.open > .t2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.t2-set a .t2i { color: #5b6573; width: 18px; height: 18px; }
.t2-all { grid-column: 1 / -1; justify-content: center; background: var(--acc-soft); color: var(--acc) !important; font-weight: 600 !important; margin-top: 6px; }
.t2-ext { width: 13px !important; height: 13px !important; margin-left: auto; color: var(--kv-muted); }
.t2-notes { width: 340px; max-height: 70vh; overflow: auto; }
.t2-notes a { white-space: normal; align-items: flex-start; }
.t2-num { min-width: 26px; height: 22px; border-radius: 11px; background: var(--acc-soft); color: var(--acc); font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; }
.t2-empty { padding: 10px 12px; color: var(--kv-muted); font-size: 13px; }
.t2-user { min-width: 240px; }
.t2-uinfo { padding: 8px 12px 10px; border-bottom: 1px solid var(--kv-line); margin-bottom: 6px; }
.t2-uinfo b { display: block; font-weight: 600; }
.t2-uinfo small { color: var(--kv-muted); font-size: 12px; }
.t2-user a .t2i { color: #5b6573; }
.t2-burger { display: none; }

/* ---------------------------------------------------------------- dải tab trang con (kiểu tab KiotViet: gạch chân xanh) */
.t2-tabs { padding: 12px 8px 0; max-width: 1800px; margin: 0 auto; }
.t2-tabs-in { display: flex; gap: 24px; background: var(--kv-surface); border-radius: 12px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.t2-tabs-in::-webkit-scrollbar { display: none; }
.t2-tabs a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 14px 0 12px; color: var(--kv-text); font-weight: 500; font-size: 14px; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.t2-tabs a:hover { color: var(--acc); }
.t2-tabs a.on { color: var(--acc); border-bottom-color: var(--acc); }
.t2-tabs .t2-cnt { margin-left: 0; }

/* ---------------------------------------------------------------- trang Thiết lập (như Thiết lập KiotViet) */
.t2-setl { display: grid; grid-template-columns: 254px minmax(0, 1fr); gap: 16px 12px; align-items: start; max-width: 1800px; margin: 0 auto; padding: 12px 8px 0; }
.t2-seth { grid-column: 1 / -1; display: flex; align-items: center; gap: 0; }
.t2-seth h1 { font-size: 24px; line-height: 32px; font-weight: 700; margin: 0; width: 266px; flex: none; color: var(--kv-text); }
.t2-ssearch { display: flex; align-items: center; gap: 8px; height: 32px; width: 300px; max-width: 100%; border: 1px solid var(--kv-input); border-radius: 10px; padding: 0 12px; background: var(--kv-surface); color: var(--kv-muted); }
.t2-ssearch input { border: 0 !important; outline: 0 !important; box-shadow: none !important; padding: 0 !important; min-height: 0 !important; height: 20px; font: 400 14px/20px inherit; background: transparent; width: 100%; color: var(--kv-text); }
.t2-setl main.page.p2 { padding: 0 0 40px !important; margin: 0; min-width: 0; max-width: none; }
.t2-snav { background: var(--kv-surface); border-radius: 12px; padding: 16px; position: sticky; top: 74px; max-height: calc(100vh - 86px); overflow: auto; }
.t2-snav-g { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--kv-text); padding: 4px 0 8px; }
.t2-snav-g ~ .t2-snav-g { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--kv-line); }
.t2-snav a { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 11px; border-radius: 12px; color: var(--kv-text); text-decoration: none; font-size: 14px; line-height: 20px; border: 1px solid transparent; }
.t2-snav a .t2i { width: 20px; height: 20px; color: #3e464f; }
.t2-snav a:hover { background: var(--kv-gray); }
.t2-snav a.on { background: var(--acc-soft); color: var(--acc); font-weight: 600; }
.t2-snav a.on .t2i { color: var(--acc); }
.t2-snav a[hidden] { display: none; }

/* ---------------------------------------------------------------- nội dung trang chamcong (app.css) theo KiotViet */
.skin2 main.page.p2 { max-width: 1800px; margin: 0 auto; padding: 12px 8px 40px; }
.skin2 .p2-guest { padding-top: 0; }
.skin2 .form-bar { bottom: 12px !important; }
.skin2 .container { padding: 0; }
/* tiêu đề */
.skin2 .p2 .h1, .skin2 .p2 h1 { font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: 0; color: var(--kv-text); }
.skin2 .p2 h2 { font-size: 16px; line-height: 24px; font-weight: 600; }
.skin2 .p2 h3 { font-size: 15px; line-height: 22px; font-weight: 600; }
.skin2 .p2 .card-title { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--kv-text); margin-bottom: 12px; }
.skin2 .p2 .page-head { margin-bottom: 12px; align-items: center; }
.skin2 .p2 .muted, .skin2 .p2 .small.muted, .skin2 .p2 small.muted { color: var(--kv-muted); }
.skin2 .p2 .small { font-size: 12px; line-height: 16px; }
.skin2 .p2 label { font-size: 14px; font-weight: 500; color: var(--kv-text); }
/* thẻ */
.skin2 .card, .skin2 .set-card, .skin2 .summary-strip, .skin2 .stat-card, .skin2 .kpi-card { background: var(--kv-surface); border: 0; border-radius: 12px; box-shadow: none; }
.skin2 .card { padding: 16px; margin-bottom: 12px; }
/* nút: cao 32px, bo 10px, chữ 14px đậm */
.skin2 .btn { min-height: 32px; padding: 5px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; line-height: 20px; box-shadow: none; }
.skin2 .btn-primary { background: var(--acc); color: var(--acc-on); border-color: var(--acc); box-shadow: none; }
.skin2 .btn-primary:hover { background: var(--acc-2); }
.skin2 .btn-outline { background: var(--kv-surface); border: 1px solid var(--acc); color: var(--acc); }
.skin2 .btn-outline:hover { background: var(--acc-soft); }
.skin2 .btn-ghost { background: var(--kv-surface); border: 1px solid var(--kv-input); color: var(--kv-label); }
.skin2 .btn-ghost:hover { background: var(--kv-gray); }
.skin2 .btn-danger { background: var(--kv-surface); border: 1px solid #f5c2c4; color: #d1242f; }
.skin2 .btn-sm { min-height: 28px; padding: 3px 10px; font-size: 13px; }
.skin2 .btn-lg { min-height: 40px; padding: 9px 16px; }
/* ô nhập */
.skin2 input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]), .skin2 select, .skin2 textarea {
  border: 1px solid var(--kv-input); border-radius: 10px; padding: 6px 12px; font-size: 14px; line-height: 20px; color: var(--kv-text); background-color: var(--kv-surface); min-height: 34px; }
.skin2 .search input { padding-left: 36px !important; }
.skin2 input:focus, .skin2 select:focus, .skin2 textarea:focus { outline: none !important; border-color: var(--acc) !important; box-shadow: 0 0 0 3px rgba(0, 112, 244, .14); }
.skin2 input[type="checkbox"], .skin2 input[type="radio"] { accent-color: var(--acc); }
/* bảng: đầu bảng nền xanh nhạt chữ đậm 12px, dòng kẻ mảnh */
.skin2 .table { border-collapse: separate; border-spacing: 0; font-size: 14px; }
.skin2 .table thead th, .skin2 .table > tr:first-child > th { background: var(--acc-soft); color: var(--kv-text); font-size: 12px; line-height: 16px; font-weight: 600; text-transform: none; letter-spacing: 0; padding: 10px 12px; border-bottom: 0; }
.skin2 .table thead th:first-child { border-radius: 10px 0 0 10px; }
.skin2 .table thead th:last-child { border-radius: 0 10px 10px 0; }
.skin2 .table td { padding: 10px 12px; border-bottom: 1px solid var(--kv-line); }
.skin2 .table .total td { background: #fafbfc; }
.skin2 .table thead th a { color: inherit !important; }
.skin2 .matrix thead th, .skin2 .matrix thead .sticky, .skin2 .ws thead .ws-stt { background: var(--acc-soft); color: var(--kv-text); border-color: var(--acc-line); font-weight: 600; }
.skin2 .matrix thead th small { color: var(--kv-muted); }
.skin2 .matrix thead th.sun { color: #d1242f; }
:root body.skin2 .matrix th.today { background: var(--acc); color: var(--acc-on); box-shadow: none; }
:root body.skin2 .matrix th.today :is(small, b) { color: inherit; }
:root body.skin2 .matrix th.today small { opacity: .85; }
.skin2 .matrix-wrap { border-color: var(--kv-line-2); border-radius: 12px; }
/* huy hiệu: bo 6px, chữ đậm vừa */
.skin2 .badge { border-radius: 6px; font-weight: 600; padding: 2px 8px; font-size: 12px; line-height: 16px; }
/* thông báo */
.skin2 .alert { border-left: 0; border-radius: 10px; font-weight: 400; }
/* tab trong trang (subtabs) → gạch chân xanh như KiotViet */
.skin2 .subtabs { background: transparent; padding: 0; gap: 24px; border-radius: 0; border-bottom: 1px solid var(--kv-line); margin-bottom: 16px; }
.skin2 .subtabs a { padding: 10px 0; border-radius: 0; color: var(--kv-text); font-weight: 500; border-bottom: 2px solid transparent; }
.skin2 .subtabs a.active { background: transparent; color: var(--acc); box-shadow: none; border-bottom-color: var(--acc); }
/* số đếm đỏ */
.skin2 .nav-count { background: var(--kv-red); }
/* Trung tâm cài đặt: thẻ trắng, biểu tượng nền xanh nhạt */
.skin2 .set-card { padding: 16px; }
.skin2 .set-card:hover { box-shadow: 0 0 0 1px var(--acc-line); }
.skin2 .set-ico { background: var(--acc-soft); color: var(--acc); border-radius: 10px; }
.skin2 .set-gtitle h2 { font-size: 16px; font-weight: 600; }
.skin2 .stat-row { border-bottom-color: var(--kv-line); border-bottom-style: solid; }
html.embed .t2-bar, html.embed .t2-tabs, html.embed .t2-snav, html.embed .t2-seth, html.embed .t2-mnav { display: none !important; }
html.embed .t2-setl { display: block; padding: 0; }

/* Viết hoa chữ cái đầu mỗi từ: menu, tiêu đề, nút, cột bảng (câu ghi chú giữ nguyên) */
.skin2 .p2 :is(h1, h2, h3, h4, h5, h6, th, .btn, button, .card-title, .form-cap, .subtabs a, .tabs a, .seg a, legend, .page-head h1, .tab-bar a, [role="tab"]),
.skin2 dialog :is(h1, h2, h3, h4, .btn, button, th, .card-title),
.skin2 .t2-tabs a, .skin2 .t2-snav a { text-transform: capitalize; }
.skin2 .p2 :is(code, kbd, .no-cap, .badge) { text-transform: none; }

/* ---------------------------------------------------------------- ghi chú gập (đang tắt — skin2.js window.N2_ON) */
.n2 { display: inline-flex; align-items: flex-start; gap: 4px; position: relative; vertical-align: middle; max-width: 100%; }
.n2-wrap { display: block; margin: 2px 0 6px; }
.n2-b { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px 0 4px; border: 1px solid var(--kv-input); border-radius: 11px; background: var(--kv-surface); color: var(--kv-label); font: 600 12px/1 inherit !important; cursor: pointer; text-transform: none !important; white-space: nowrap; }
.n2-b i { width: 15px; height: 15px; border-radius: 50%; background: var(--acc); color: #fff; font: 800 10px/15px Georgia, serif; font-style: italic; text-align: center; }
.n2-box { display: none; }
.n2.pin > .n2-box { display: block; margin-top: 6px; padding: 8px 10px; background: var(--kv-surface); border: 1px solid var(--kv-line); border-radius: 8px; font-size: 13px; color: var(--kv-label); white-space: normal; }
.n2.pin { flex-direction: column; }
.n2-float { position: fixed; z-index: 120; max-width: min(380px, calc(100vw - 16px)); background: var(--kv-surface); color: var(--kv-text); border: 1px solid var(--kv-line-2); border-radius: 10px; box-shadow: 0 8px 24px rgba(16, 24, 40, .14); padding: 8px 12px; font-size: 13px; pointer-events: none; }

/* ---------------------------------------------------------------- điện thoại */
@media (max-width: 1180px) { .t2-nav > li > a { padding: 0 8px; font-size: 13.5px; } .t2-nav > li > a::after { left: 8px; right: 8px; } .t2-lbl { display: none; } }
@media (max-width: 960px) {
  .t2-nav { display: none; }
  .t2-burger { display: inline-flex; }
  .t2-in { padding-left: 8px; }
  .t2-logo { margin-left: 4px; }
  .t2-setl { grid-template-columns: minmax(0, 1fr); }
  .t2-seth { flex-wrap: wrap; gap: 8px; }
  .t2-seth h1 { width: auto; margin-right: 12px; }
  .t2-snav { position: static; max-height: none; display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 4px; padding: 6px; }
  .t2-snav-g { display: none; }
  .t2-snav a { white-space: nowrap; flex: none; }
}
@media (max-width: 640px) {
  .t2-bar { padding: 6px 6px 0; }
  .t2-right { gap: 6px; }
  .t2-hide-sm { display: none !important; }
  .skin2 main.page.p2 { padding: 8px 6px 30px; }
  .t2-tabs { padding: 8px 6px 0; }
  .t2-pop.open > .t2-set { grid-template-columns: 1fr; max-height: 75vh; overflow: auto; }
  .t2-pop > .t2-dd { position: fixed; top: 62px; left: 8px; right: 8px; width: auto; min-width: 0; }
}
.t2-mnav { position: fixed; inset: 0; z-index: 100; display: none; }
.t2-mnav.show { display: block; }
.t2-shade { position: absolute; inset: 0; background: rgba(15, 23, 42, .4); }
.t2-panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(330px, 88vw); background: var(--kv-surface); overflow: auto; padding: 12px 12px 30px; box-shadow: 4px 0 24px rgba(0, 0, 0, .18); }
.t2-mh { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px; border-bottom: 1px solid var(--kv-line); margin-bottom: 6px; }
.t2-mh img { height: 24px; }
.t2-panel details { border-bottom: 1px solid var(--kv-line); }
.t2-panel summary { list-style: none; padding: 12px 8px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 6px; cursor: pointer; color: var(--kv-text); }
.t2-panel summary::-webkit-details-marker { display: none; }
.t2-panel details a, .t2-m1 { display: flex; align-items: center; gap: 8px; padding: 9px 8px 9px 20px; color: var(--kv-text); text-decoration: none; border-radius: 8px; }
.t2-m1 { padding-left: 8px; font-weight: 600; border-bottom: 1px solid var(--kv-line); border-radius: 0; }
.t2-panel a.on { background: var(--acc-soft); color: var(--acc); }
.t2-mg { font-size: 12px; color: var(--kv-muted); padding: 8px 8px 2px 20px; }
@media print { .t2-bar, .t2-tabs, .t2-snav, .t2-seth { display: none !important; } .t2-setl { display: block; } }

/* nút Sáng / Tối + chọn màu nhanh trong menu tài khoản (13/10/2026) */
.skin2 .t2-sun { display: none !important; }
html[data-theme="dark"] .skin2 .t2-sun { display: revert !important; } html[data-theme="dark"] .skin2 .t2-moon { display: none !important; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .skin2 .t2-sun { display: revert !important; } html:not([data-theme="light"]) .skin2 .t2-moon { display: none !important; } }
.t2-accs { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 12px 10px; border-bottom: 1px solid var(--kv-line); margin-bottom: 6px; }
.t2-acc { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--kv-surface); box-shadow: 0 0 0 1px var(--kv-line-2); cursor: pointer; padding: 0; }
.t2-acc.on { box-shadow: 0 0 0 2px var(--acc); }
.t2-cap { font-size: 12px; color: var(--kv-muted); padding: 6px 12px 0; }
.t2-mh .lg-d { display: none; }
html[data-theme="dark"] .t2-mh .lg-l { display: none; } html[data-theme="dark"] .t2-mh .lg-d { display: block; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .t2-mh .lg-l { display: none; } html:not([data-theme="light"]) .t2-mh .lg-d { display: block; } }
/* nền tối: ô nhập, lịch, phần app.css còn ghi màu sáng cố định */
html[data-theme="dark"] body.skin2 .t2-dd, html[data-theme="dark"] body.skin2 .t2-panel { box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.t2-mnav .t2-accs { border-bottom: 0; padding: 4px 16px 10px; }
.t2-mnav .t2-acc { width: 28px; height: 28px; }
