/* Phần CSS không diễn đạt được bằng lớp tiện ích: thanh cuộn, vòng tiến độ,
   trạng thái modal và quy tắc in. Giao diện theo WCM/DESIGN_SYSTEM.md (khối cuối file). */

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.progress-ring-circle {
  transition: stroke-dashoffset 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modal mở bằng cách gỡ hai lớp này, nên trạng thái đóng phải chặn hẳn tương tác. */
.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.modal.is-open .modal-card {
  transform: scale(1);
}

/* Bảng dài: giữ tiêu đề cột khi cuộn dọc trong khối. */
.sticky-head thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

@media print {
  .no-print {
    display: none !important;
  }
  body {
    background: #fff !important;
  }
  .tab-pane {
    display: block !important;
    page-break-inside: avoid;
  }
}

/* =============================================================================
   Khuôn giao diện chung WCM (DESIGN_SYSTEM.md bản 2) — 2026-09-23
   App gốc: WCM-Store-Management-Analytics. Mọi giá trị dưới đây lấy từ đó.
   Tailwind v3 của app này dựng lúc deploy và nằm TRƯỚC file này, nên quy tắc
   ở đây thắng khi cùng độ đặc hiệu; phần trung hoà nội dung gắn #screen-app.
   ========================================================================== */
:root {
  --paper: #F2F6FC; --surface: #FFFFFF; --surface-2: #F6F8FC; --tile: #F1F5FA;
  --line: #E7EDF6; --line-strong: #D3DEEC;
  --ink: #26364A; --ink-2: #5D6B7E; --faint: #8593A5;
  --win: #E81C24; --win-deep: #C4161D; --win-soft: #FDECEC;
  --sky: #4A84F4; --sky-ink: #2D5FC4; --sky-wash: #EAF1FE;
  --mint: #16B884; --rose: #F24B64; --rose-ink: #C42A3E; --rose-wash: #FDE8EC;
  --mint-ink: #0B7A57; --mint-wash: #E3F6EE; --amber: #F6AA2A; --amber-ink: #95600A; --amber-wash: #FEF2DC;
  --rail: 276px; --rail-mini: 80px; --ease: cubic-bezier(.32, .08, .24, 1);
}

.ops-body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font-family: 'Hanken Grotesk', system-ui, sans-serif; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- Màn đăng nhập (§4.9) ---- */
/* JS ẩn/hiện màn này bằng lớp .hidden — không để display của khuôn đè lên nó. */
.ops-login.hidden { display: none; }
.ops-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--paper); }
.ops-login__card { width: min(430px, 100%); padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px -32px rgba(38, 54, 74, .35); }
.ops-login__logo { display: block; height: 40px; width: auto; margin: 0 0 18px -6px; }
.ops-login__title { margin: 0; font-size: 20px; font-weight: 600; color: var(--ink); }
.ops-login__desc { margin: 6px 0 20px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.ops-login__label { display: block; margin: 0 0 7px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.ops-login__field { display: flex; align-items: center; gap: 8px; padding: 0 11px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; }
.ops-login__field:focus-within { border-color: var(--win); box-shadow: 0 0 0 3px rgba(232, 28, 36, .12); }
.ops-login__icon { width: 16px; height: 16px; flex: none; color: var(--faint); }
.ops-login__input { flex: 1; min-width: 0; padding: 12px 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink); }
.ops-login__error { margin: 9px 0 0; padding: 8px 10px; border-radius: 9px; background: var(--rose-wash); color: var(--rose-ink); font-size: 12.5px; font-weight: 500; }
.ops-login__card .ops-login__submit { box-sizing: border-box; width: 100%; height: 44px; margin-top: 14px; padding: 0 14px; border-radius: 10px; font-size: 14px; }
/* Cao đúng 44px như ô nhập/nút của app kho (DESIGN_SYSTEM.md §4.9). */
.ops-login__field { box-sizing: border-box; height: 44px; }
.ops-login__input { height: 100%; padding: 0 !important; }
/* Nút hiện/ẩn mật khẩu — cùng thông số .wcm-auth-toggle của app kho/khảo sát/hiệu suất. */
.ops-login__toggle { flex: none; width: 32px; height: 32px; margin-right: -5px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #8593A5; cursor: pointer; }
.ops-login__toggle:hover { background: #F1F5FA; color: #26364A; }
.ops-login__toggle svg { width: 16px; height: 16px; }
.ops-login__toggle[aria-pressed="true"] .pw-eye, .ops-login__toggle:not([aria-pressed="true"]) .pw-eye-off { display: none; }

/* ---- Nút (§4.3) ---- */
.ops-btn-primary { border: 0; background: var(--win); color: #fff; font-weight: 600; cursor: pointer; transition: background-color .15s var(--ease); }
.ops-btn-primary:hover { background: var(--win-deep); }
.ops-btn-secondary { height: 34px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--ink-2); font-size: 12.5px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.ops-btn-secondary:hover { background: var(--tile); color: var(--ink); }
.ops-iconbtn { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--ink-2); cursor: pointer; }

/* ---- Thanh bên (§3) ---- */
.ops-rail { position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; flex-direction: column; width: var(--rail); background: var(--surface); border-right: 1px solid var(--line); overflow-x: hidden; transition: width .3s var(--ease), transform .3s var(--ease); }
.ops-shell { margin-left: var(--rail); min-height: 100vh; transition: margin-left .3s var(--ease); }
.ops-rail__head { display: flex; align-items: center; gap: 8px; height: 64px; flex: none; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); transition: padding .3s var(--ease); }
.ops-rail__logo { display: block; height: 34px; width: auto; max-width: none; margin-left: -6px; }
.ops-rail__toggle { display: grid; place-items: center; width: 30px; height: 30px; flex: none; margin-left: auto; border: 0; border-radius: 8px; background: transparent; color: var(--faint); cursor: pointer; }
.ops-rail__toggle:hover { background: var(--tile); color: var(--ink); }
.ops-rail__toggleicon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.ops-rail__nav { flex: 1; overflow-y: auto; padding: 12px 8px; }
.ops-rail__group { margin: 16px 0 4px; padding: 0 12px; font-size: 12px; font-weight: 500; color: var(--faint); white-space: nowrap; }
.ops-rail__group:first-child { margin-top: 0; }
.ops-nav { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 12px; margin-bottom: 2px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font-size: 13.5px; font-weight: 500; text-align: left; white-space: nowrap; cursor: pointer; transition: background-color .15s var(--ease), color .15s var(--ease); }
.ops-nav:hover { background: var(--tile); color: var(--ink); }
.ops-nav__icon { width: 16px; height: 16px; flex: none; color: var(--faint); }
.ops-nav__label { overflow: hidden; text-overflow: ellipsis; }
.ops-nav.is-active { background: var(--sky-wash); color: var(--sky-ink); font-weight: 600; }
.ops-nav.is-active .ops-nav__icon { color: var(--sky-ink); }
/* Thu gọn: dải icon 80px; nhãn nhóm giữ chiều cao (vạch mảnh) để mục menu không nhảy. */
.ops-rail.is-collapsed { width: var(--rail-mini); }
.ops-shell.is-railed { margin-left: var(--rail-mini); }
.ops-rail.is-collapsed .ops-rail__head { padding: 0 25px; }
.ops-rail.is-collapsed .ops-rail__logo, .ops-rail.is-collapsed .ops-nav__label { display: none; }
.ops-rail.is-collapsed .ops-rail__toggleicon { transform: scaleX(-1); }
.ops-rail.is-collapsed .ops-rail__group { position: relative; color: transparent; overflow: hidden; }
.ops-rail.is-collapsed .ops-rail__group::after { content: ''; position: absolute; left: 12px; right: 12px; top: 50%; border-top: 1px solid var(--line); }
.ops-rail-backdrop { position: fixed; inset: 0; z-index: 35; background: rgba(38, 54, 74, .32); }
.ops-only-mobile { display: none; }

/* ---- Topbar (§3) ---- */
.ops-topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 18px; background: var(--surface); border-bottom: 1px solid var(--line); }
.ops-topbar__title { margin: 0; min-width: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ops-topbar__right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.ops-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.ops-pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.ops-role { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--tile); color: var(--ink-2); }
.ops-role[data-role="admin"] { background: var(--win-soft); color: var(--win); }
.ops-role:empty { display: none; }

/* ---- Vùng nội dung ---- */
.ops-main { padding: 24px; }
.ops-main > * + * { margin-top: 16px; }

/* ---- Đầu trang, bộ lọc, menu (§4.1–4.4) ---- */
.ops-pagehead { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.ops-pagehead__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ops-pagehead__title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ops-chip { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 3px 9px; border-radius: 999px; background: var(--tile); color: var(--ink-2); font-size: 12px; font-weight: 500; }
.ops-pagehead__h { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.ops-pagehead__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ops-pagehead__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.ops-pagehead__filters.is-collapsed { display: none; }
.ops-filtertoggle, .ops-actionsbtn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.ops-actionsbtn { padding: 0 12px; }
.ops-filtertoggle:hover, .ops-actionsbtn:hover { background: var(--tile); color: var(--ink); }
.ops-filtertoggle__chev { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.ops-filtertoggle[aria-expanded="false"] .ops-filtertoggle__chev { transform: rotate(-90deg); }
.ops-filtertoggle__count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--sky); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
.ops-field { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; }
.ops-field:focus-within { border-color: var(--sky); box-shadow: 0 0 0 3px var(--sky-wash); }
.ops-field__icon { width: 14px; height: 14px; flex: none; color: var(--faint); }
.ops-select { min-width: 150px; height: 32px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer; }
.ops-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 264px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 40px -16px rgba(38, 54, 74, .28), 0 2px 6px rgba(38, 54, 74, .06); }
.ops-menu__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); font-size: 13px; font-weight: 500; text-align: left; white-space: nowrap; cursor: pointer; }
.ops-menu__item:hover, .ops-menu__item:focus-visible { background: var(--tile); outline: none; }
.ops-menu__item.hidden { display: none; }
.ops-menu__icon { width: 16px; height: 16px; flex: none; color: var(--faint); }
.ops-menu__item--danger, .ops-menu__item--danger .ops-menu__icon { color: var(--rose-ink); }
.ops-menu__item--danger:hover { background: var(--rose-wash); }
.ops-menu__sep { height: 1px; margin: 4px 6px; background: var(--line); }
.ops-menu__sep.hidden { display: none; }

/* ---- Thẻ & hộp (§4.5–4.6) ---- */
.ops-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: none; }
.ops-inset { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.ops-callout { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; color: var(--ink-2); }
.ops-note { background: var(--surface); border: 1px solid var(--line); }
.ops-chip, .narrative-edited-badge.ops-chip { font-size: 11px; }
.ops-mini-btn { padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--ink-2); font-size: 12px; font-weight: 500; cursor: pointer; }
.ops-mini-btn:hover { background: var(--tile); color: var(--ink); }
.ops-total-row { background: var(--surface-2); font-weight: 600; }

/* ---- Trung hoà nội dung báo cáo (§1 quy tắc 1–2) ----
   Markup cũ dùng rất nhiều utility tô màu / in hoa / đậm 900. Ở đây đưa về: chữ viết
   thường, đậm tối đa 700. Màu của markup gốc KHÔNG bị xoá nữa mà quy về bảng màu chung
   (khối "Màu theo báo cáo" ngay dưới) — 2026-10-01, người dùng chê bản xám "mất hết sự
   khác biệt về màu giữa các báo cáo của bản gốc". */
#screen-app .uppercase { text-transform: none; }
#screen-app :is(.tracking-wider, .tracking-widest, .tracking-tight) { letter-spacing: 0; }
#screen-app .font-black { font-weight: 700; }
#screen-app .font-extrabold { font-weight: 600; }
#screen-app :is([class*="shadow-"]) { box-shadow: none; }
#report-root .text-3xl { font-size: 24px; line-height: 1.2; }
#report-root .text-4xl { font-size: 28px; line-height: 1.2; }
#screen-app h3.font-playfair { font-size: 15px; font-weight: 700; color: var(--ink); }
#screen-app h2.font-playfair { font-size: 20px; font-weight: 600; color: var(--ink); }
#screen-app h4.font-playfair { font-size: 15px; font-weight: 600; }
#report-root :is(.text-slate-400) { color: var(--faint); }
/* Hộp ghi chú/cảnh báo: chữ trung tính, phần nhấn mạnh màu mực (§4.6). */
#report-root .ops-callout, #report-root .ops-callout * { color: var(--ink-2); }
#report-root .ops-callout :is(strong, b, .font-bold) { color: var(--ink); }
#report-root :is(.text-slate-500, .text-indigo-200, .text-slate-300) { color: var(--ink-2); }
#report-root .ops-card--banner .text-white, #report-root .ops-inset--strong .text-white, #report-root .ops-inset--strong { color: var(--ink); }
#report-root :is(span, div)[class*="rounded-"]:is([class*="bg-slate-100"]):not(.ops-status) { background: var(--tile); border-color: transparent; color: var(--ink-2); font-weight: 500; }

/* =============================================================================
   Màu theo báo cáo — 2026-10-01
   Mỗi báo cáo giữ một màu nhận diện, dùng cùng một bộ màu với biểu đồ:
     Bảo trì bảo dưỡng (BTBD) = xanh lá   Sự cố kỹ thuật (SCKT) = cam
     Toàn hệ thống / hai miền = xanh dương Miền Bắc = hồng đỏ, Miền Nam = xanh dương
   Trạng thái giữ nghĩa: còn lại / tồn đọng / yếu = hồng đỏ, đạt = xanh lá.
   ========================================================================== */
.ops-tone--btbd, .ops-tone--good { --tone: var(--mint); --tone-ink: var(--mint-ink); --tone-wash: var(--mint-wash); }
.ops-tone--sckt { --tone: var(--amber); --tone-ink: var(--amber-ink); --tone-wash: var(--amber-wash); }
.ops-tone--total, .ops-tone--region, .ops-tone--south, .ops-tone--info { --tone: var(--sky); --tone-ink: var(--sky-ink); --tone-wash: var(--sky-wash); }
.ops-tone--north, .ops-tone--critical { --tone: var(--rose); --tone-ink: var(--rose-ink); --tone-wash: var(--rose-wash); }
.ops-tone--warning { --tone: var(--amber); --tone-ink: var(--amber-ink); --tone-wash: var(--amber-wash); }

/* Markup gốc tô chữ theo họ màu — giữ ý đó, chỉ đổi sang mã màu chung. Tiêu đề cột bảng giữ xám. */
#report-root :is(.text-winred, .text-winred-hover, .text-red-600, .text-red-800, .text-red-900):not(.ops-status):not(th) { color: var(--rose-ink); }
#report-root :is(.text-emerald-400, .text-emerald-600, .text-emerald-700, .text-emerald-900, .text-wingreen):not(.ops-status):not(th) { color: var(--mint-ink); }
#report-root :is(.text-amber-500, .text-amber-600, .text-amber-700, .text-amber-900, .text-winamber, .text-winamber-dark):not(.ops-status):not(th) { color: var(--amber-ink); }
#report-root :is(.text-blue-600, .text-indigo-700, .text-indigo-900, .text-sky-900):not(.ops-status):not(th) { color: var(--sky-ink); }
#report-root th:is(.text-winred) { color: var(--ink-2); }
/* Chip nhãn của markup gốc: nền nhạt + chữ đậm cùng họ màu, không viền. */
#report-root :is(span, div)[class*="rounded-"]:is([class*="bg-winred-light"], [class*="bg-red-50"]):not(.ops-status) { background: var(--rose-wash); border-color: transparent; color: var(--rose-ink); font-weight: 600; }
#report-root :is(span, div)[class*="rounded-"]:is([class*="bg-emerald-50"], [class*="bg-wingreen-light"]):not(.ops-status) { background: var(--mint-wash); border-color: transparent; color: var(--mint-ink); font-weight: 600; }
#report-root :is(span, div)[class*="rounded-"]:is([class*="bg-amber-50"], [class*="bg-winamber-light"]):not(.ops-status) { background: var(--amber-wash); border-color: transparent; color: var(--amber-ink); font-weight: 600; }
#report-root :is(span, div)[class*="rounded-"]:is([class*="bg-blue-50"], [class*="bg-indigo-50"]):not(.ops-status) { background: var(--sky-wash); border-color: transparent; color: var(--sky-ink); font-weight: 600; }

/* Chip nhận diện báo cáo. */
.ops-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--tone-wash, var(--tile)); color: var(--tone-ink, var(--ink-2)); font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.ops-tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--tone, var(--faint)); }

/* Thẻ số có vòng tiến độ: vạch màu trên đầu, vòng và % theo màu báo cáo, số chính lớn hơn. */
.ops-kpi { position: relative; overflow: hidden; }
.ops-kpi::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--tone); }
.ops-kpi .progress-ring-circle { stroke: var(--tone); }
.ops-kpi svg circle:first-child { stroke: var(--tone-wash); }
#report-root .ops-kpi .ops-kpi__pct { color: var(--tone-ink); font-weight: 700; }
#report-root .ops-kpi .ops-kpi__big { font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }

/* Khối nhận định (tóm tắt, lũy kế, hạng mục lỗi, SWOT): nền nhạt theo màu báo cáo. */
#report-root .ops-note[class*="ops-tone--"] { background: linear-gradient(180deg, var(--tone-wash) 0, var(--surface) 78%); border-color: color-mix(in srgb, var(--tone) 26%, var(--line)); }
.ops-note__lead { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin: 2px 0 10px; }
#report-root .ops-note__value { font-size: 26px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; color: var(--tone-ink, var(--ink)); }
.ops-note__caption { font-size: 12px; color: var(--ink-2); }
.ops-note__split { display: flex; gap: 18px; }
.ops-note__split > div { display: flex; flex-direction: column; gap: 2px; }
.ops-delta { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ops-delta--up { background: var(--mint-wash); color: var(--mint-ink); }
.ops-delta--down { background: var(--rose-wash); color: var(--rose-ink); }
.ops-delta--flat { background: var(--tile); color: var(--ink-2); }
.ops-note .narrative-body { padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--tone, var(--line-strong)) 22%, var(--line)); }

/* Tên miền trong bảng: chấm màu như chú giải biểu đồ. */
.ops-region { display: inline-flex; align-items: center; gap: 7px; }
.ops-region::before { content: ''; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--tone); }

/* Hộp hành động ưu tiên & cảnh báo đội trưởng: vạch hồng đỏ bên trái, chữ trung tính. */
#report-root .ops-alert { background: linear-gradient(180deg, var(--rose-wash) 0, var(--surface) 85%); border: 1px solid color-mix(in srgb, var(--rose) 24%, var(--line)); border-radius: 12px; }
#report-root .ops-alert :is(h4, h4 *) { color: var(--rose-ink); }
#report-root .ops-alert :is(p, li, ul, span:not(.font-black)) { color: var(--ink); }
#report-root thead tr, #report-root thead th { background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 600; }
#report-root tbody td { border-color: var(--line); }
#report-root .border-slate-200, #report-root .border-slate-100 { border-color: var(--line); }
#report-root ol.marker\:text-winred li::marker { color: var(--faint); }

/* Thông báo góc màn hình: trắng, vạch trái theo loại, không emoji (§4.10). */
#toast { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-left: 4px solid var(--sky); box-shadow: 0 14px 36px -12px rgba(38, 54, 74, .3); font-size: 13px; font-weight: 500; }
#toast[data-kind="success"] { border-left-color: var(--mint); }
#toast[data-kind="error"] { border-left-color: var(--rose); }
#toast-icon { display: none; }

/* Hộp thoại: nút chính đỏ chữ "Win", tiêu đề bớt đậm */
#screen-app .modal-card { border-radius: 16px; border: 1px solid var(--line); }
#screen-app .modal-card :is(h2, h3) { font-weight: 600; }

@media (max-width: 1023px) {
  .ops-rail { transform: translateX(-105%); width: var(--rail); }
  .ops-rail.is-open { transform: translateX(0); }
  .ops-rail.is-collapsed { width: var(--rail); }
  .ops-shell, .ops-shell.is-railed { margin-left: 0; }
  .ops-only-mobile { display: grid; }
}
@media (max-width: 767px) {
  .ops-main { padding: 16px; }
  .ops-hide-sm { display: none; }
  .ops-topbar { padding: 0 12px; }
  .ops-pagehead__title { flex-wrap: wrap; }
}
@media print {
  .ops-rail, .ops-topbar, .ops-pagehead { display: none !important; }
  .ops-shell { margin-left: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .ops-rail, .ops-shell, .ops-rail__toggleicon, .ops-filtertoggle__chev { transition: none; }
}

/* Lớp "Đang cập nhật số liệu…" (DESIGN_SYSTEM.md §4.10) — cùng thông số app bảo trì:
   nền trang mờ nhẹ phía sau, thẻ trắng nhỏ ở giữa, vòng quay xanh 18px. */
.wcm-loading { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(244, 247, 251, .7); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.wcm-loading.hidden { display: none !important; }
.wcm-loading__card { display: flex; align-items: center; gap: 12px; padding: 15px 20px; background: #FFFFFF; border-radius: 14px; font-size: 13px; font-weight: 600; color: #26364A; }
.wcm-loading__spinner { flex: none; width: 18px; height: 18px; border: 2.5px solid #E7EDF6; border-top-color: #4A84F4; border-radius: 50%; animation: wcm-loading-spin .7s linear infinite; }
@keyframes wcm-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wcm-loading__spinner { animation-duration: 2s; } }
@media print { .wcm-loading { display: none !important; } }
