/* PlatFormQLDA — giao diện vận hành phòng QLDA.
   Bảng màu: mực slate cho khung, giấy xám lạnh cho nền, cobalt cho hành động,
   Xanh/Vàng/Đỏ dành riêng cho trạng thái sức khỏe và tải nguồn lực. */
:root {
  --ink: #1b2433;
  --ink-2: #2a3547;
  --ink-3: #3a465b;
  --paper: #f3f5f8;
  --surface: #ffffff;
  --line: #dde2ea;
  --line-2: #eaedf2;
  --text: #1b2433;
  --muted: #5d6779;
  --faint: #8b93a3;
  --cobalt: #2647c4;
  --cobalt-2: #1d389f;
  --cobalt-tint: #e8edfb;
  --g: #1e8a57; --g-tint: #e3f3ea;
  --a: #b87d06; --a-tint: #fbf1d9;
  --r: #c23a2e; --r-tint: #fbe5e2;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(27, 36, 51, .06);
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --side: 248px;
}
* { box-sizing: border-box; }
html { font-size: 14px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--paper); line-height: 1.5;
  -webkit-font-smoothing: antialiased; }
a { color: var(--cobalt); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 600; }
h1 { font-size: 1.6rem; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .86rem; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.hidden { display: none !important; }

/* ---------------------------------------------------------------- khung */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #c9d0dc; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; }
.brand { display: flex; gap: .7rem; align-items: center; padding: 1.15rem 1.2rem 1rem; color: #fff; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--cobalt); display: grid;
  place-items: center; font-weight: 700; font-size: .95rem; letter-spacing: -.02em; }
.brand b { display: block; font-size: 1rem; font-weight: 600; }
.brand span { font-size: .78rem; color: #8f9aae; }
.nav { padding: .4rem .6rem 1rem; flex: 1; }
.nav-group { margin-top: 1rem; padding: 0 .65rem .35rem; font-size: .76rem; color: #7d889c; font-weight: 500; }
.nav a { display: flex; align-items: center; gap: .65rem; padding: .48rem .65rem; border-radius: 6px; color: #c9d0dc;
  font-size: .93rem; }
.nav a:hover { background: var(--ink-2); color: #fff; text-decoration: none; }
.nav a.active { background: var(--ink-3); color: #fff; box-shadow: inset 3px 0 0 var(--cobalt); }
.nav svg { width: 17px; height: 17px; flex: none; opacity: .85; }
.nav .count { margin-left: auto; background: var(--r); color: #fff; border-radius: 9px; font-size: .72rem;
  padding: 0 .45rem; font-weight: 600; }
.side-foot { padding: .9rem 1.2rem; border-top: 1px solid var(--ink-2); font-size: .82rem; }
.side-foot b { color: #fff; font-weight: 500; display: block; }
.side-foot a { color: #9fb1ff; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 1rem; padding: .7rem 2rem; background: var(--surface);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.crumbs { color: var(--muted); font-size: .88rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.crumbs a { color: var(--muted); }
.crumbs span + span::before { content: "/"; margin: 0 .45rem; color: var(--faint); }
.topbar .search input { width: 260px; }
.menu-btn { display: none; }
.content { padding: 1.6rem 2rem 3rem; max-width: 1480px; width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.page-head .grow { flex: 1; min-width: 240px; }
.page-head .sub { color: var(--muted); margin-top: .25rem; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* ---------------------------------------------------------------- khối */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  margin-bottom: 1.25rem; }
.panel-head { display: flex; align-items: center; gap: .75rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line-2); }
.panel-head h2, .panel-head h3 { flex: 1; }
.panel-body { padding: 1rem 1.1rem; }
.panel-body.flush { padding: 0; }
.grid { display: grid; gap: 1.25rem; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-side { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }

/* chỉ số tóm tắt: một dải, không chia thẻ */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1.25rem; box-shadow: var(--shadow); }
.metric { padding: .9rem 1.1rem; border-right: 1px solid var(--line-2); }
.metric:last-child { border-right: 0; }
.metric .v { font-size: 1.45rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.metric .l { color: var(--muted); font-size: .86rem; }
.metric .v.r { color: var(--r); } .metric .v.a { color: var(--a); } .metric .v.g { color: var(--g); }

/* ---------------------------------------------------------------- bảng */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: .92rem; }
.t th { text-align: left; font-weight: 500; color: var(--muted); font-size: .84rem; padding: .55rem .75rem;
  border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap; position: sticky; top: 0; }
.t td { padding: .55rem .75rem; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.t tbody tr:hover td { background: #f8f9fc; }
.t tfoot td { font-weight: 600; background: #fafbfc; border-top: 1px solid var(--line); }
.t td.code { white-space: nowrap; font-weight: 500; }
.t .sub { display: block; color: var(--muted); font-size: .82rem; }
.t tr.warn td { background: var(--a-tint); }
.t tr.bad td { background: var(--r-tint); }
.empty { padding: 2rem 1rem; text-align: center; color: var(--muted); }

/* ---------------------------------------------------------------- trạng thái */
.tag { display: inline-flex; align-items: center; gap: .3rem; padding: .08rem .5rem; border-radius: 4px; font-size: .8rem;
  font-weight: 500; background: var(--line-2); color: var(--ink-3); white-space: nowrap; }
.tag.cobalt { background: var(--cobalt-tint); color: var(--cobalt-2); }
.tag.g { background: var(--g-tint); color: var(--g); }
.tag.a { background: var(--a-tint); color: #8a5c00; }
.tag.r { background: var(--r-tint); color: var(--r); }
.st-tien_du_an { background: #eef0f4; color: #4b5568; }
.st-review_hd { background: #efe9fb; color: #5b3aa8; }
.st-khoi_dong { background: var(--cobalt-tint); color: var(--cobalt-2); }
.st-trien_khai { background: #e2f1f5; color: #0d6378; }
.st-nghiem_thu { background: var(--a-tint); color: #8a5c00; }
.st-dong { background: #e9ebee; color: #6b7280; }

/* Đèn sức khỏe Xanh/Vàng/Đỏ */
.rag { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; background: var(--line); vertical-align: -1px; }
.rag.G { background: var(--g); } .rag.A { background: #e0a51b; } .rag.R { background: var(--r); }
.rag-row { display: inline-flex; gap: .25rem; }
.rag-pick { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.rag-pick label { padding: .3rem .6rem; cursor: pointer; display: flex; align-items: center; gap: .3rem; font-size: .85rem; }
.rag-pick input { display: none; }
.rag-pick label:has(input:checked) { background: var(--line-2); font-weight: 600; }

/* ---------------------------------------------------------------- bản đồ nhiệt workload: điểm nhấn của sản phẩm */
.heat { border-collapse: separate; border-spacing: 3px; font-size: .85rem; }
.heat th { font-weight: 500; color: var(--muted); padding: .2rem .4rem; text-align: center; white-space: nowrap; }
.heat th.rowh { text-align: left; color: var(--text); }
.heat th.team { text-align: left; color: var(--text); font-weight: 600; padding-top: .9rem; }
.heat td { width: 92px; height: 54px; border-radius: 5px; text-align: center; vertical-align: middle; position: relative;
  font-variant-numeric: tabular-nums; background: #f1f3f6; color: var(--muted); }
.heat td b { display: block; font-size: 1.02rem; font-weight: 600; }
.heat td small { display: block; font-size: .72rem; opacity: .85; }
.heat td.past { outline: 1px dashed transparent; }
.heat td.now { box-shadow: inset 0 0 0 2px var(--ink); }
.heat .h0 { background: #f1f3f6; color: var(--faint); }
.heat .h1 { background: #dfeee6; color: #23533a; }
.heat .h2 { background: #9fd3b6; color: #123d27; }
.heat .h3 { background: #f3d58a; color: #5a3d00; }
.heat .h4 { background: #ee9b8f; color: #5e130b; }
.heat .h5 { background: var(--r); color: #fff; }
.legend { display: flex; gap: .9rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); align-items: center; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: .3rem; }

/* thanh tiến độ */
.bar { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; min-width: 70px; }
.bar > span { display: block; height: 100%; background: var(--cobalt); }
.bar.over > span { background: var(--r); }

/* ---------------------------------------------------------------- biểu mẫu */
label.f { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .25rem; font-weight: 500; }
input[type=text], input[type=number], input[type=date], input[type=month], input[type=email], input[type=search],
input[type=password], input[type=time], input:not([type]), select, textarea {
  width: 100%; font: inherit; font-size: .93rem; color: var(--text); background: #fff; border: 1px solid #cfd5df;
  border-radius: 5px; padding: .42rem .6rem; min-height: 34px; }
textarea { min-height: 76px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-tint); }
input[readonly] { background: var(--paper); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .9rem 1rem; }
.form-grid .wide { grid-column: 1 / -1; }
.field { min-width: 0; }
.hint { font-size: .8rem; color: var(--faint); margin-top: .2rem; }
.check { display: inline-flex; gap: .45rem; align-items: center; font-size: .92rem; cursor: pointer; }
.inline-form { display: flex; gap: .5rem; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { min-width: 120px; }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; padding: .8rem 1.1rem;
  border-bottom: 1px solid var(--line-2); background: #fafbfc; }
.filters .field { width: 170px; }
.filters .field.wide { width: 240px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-size: .9rem;
  font-weight: 500; padding: .42rem .9rem; border-radius: 5px; border: 1px solid #cfd5df; background: #fff;
  color: var(--text); cursor: pointer; min-height: 34px; white-space: nowrap; }
.btn:hover { background: var(--paper); text-decoration: none; }
.btn.primary { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.btn.primary:hover { background: var(--cobalt-2); }
.btn.danger { color: var(--r); border-color: #e6b7b2; }
.btn.danger:hover { background: var(--r-tint); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--cobalt); padding: .3rem .5rem; }
.btn.ghost:hover { background: var(--cobalt-tint); }
.btn.sm { font-size: .82rem; padding: .2rem .55rem; min-height: 28px; }
.btn svg { width: 15px; height: 15px; }
button.link { background: none; border: 0; color: var(--cobalt); font: inherit; cursor: pointer; padding: 0; }
button.link.danger { color: var(--r); }

/* ---------------------------------------------------------------- tab dự án */
.tabs { display: flex; gap: .2rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; }
.tabs a { padding: .6rem .85rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
  white-space: nowrap; font-weight: 500; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--text); border-bottom-color: var(--cobalt); }
.tabs .n { font-size: .74rem; background: var(--line-2); border-radius: 8px; padding: 0 .4rem; margin-left: .25rem; }

/* vòng đời dự án */
.lifecycle { display: flex; margin: .2rem 0 1.25rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; }
.lifecycle div { flex: 1; padding: .55rem .8rem; font-size: .84rem; color: var(--faint); border-right: 1px solid var(--line-2);
  position: relative; }
.lifecycle div:last-child { border-right: 0; }
.lifecycle div.done { color: var(--muted); }
.lifecycle div.done::before { content: "✓ "; color: var(--g); }
.lifecycle div.cur { color: var(--text); font-weight: 600; background: var(--cobalt-tint); box-shadow: inset 0 -3px 0 var(--cobalt); }

dl.kv { display: grid; grid-template-columns: 150px 1fr; gap: .45rem 1rem; margin: 0; font-size: .92rem; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; min-width: 0; }

/* ---------------------------------------------------------------- thông báo */
.flash { padding: .7rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; border: 1px solid; font-size: .92rem; }
.flash.ok { background: var(--g-tint); border-color: #b8dcc8; color: #14583a; }
.flash.err { background: var(--r-tint); border-color: #ecbab4; color: #8c2219; }
.flash.warn { background: var(--a-tint); border-color: #ecd49a; color: #6b4800; }
.flash.info { background: var(--cobalt-tint); border-color: #c5d0f3; color: var(--cobalt-2); }
.alerts li { margin-bottom: .35rem; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: .55rem 0; border-bottom: 1px solid var(--line-2); }
ul.plain li:last-child { border-bottom: 0; }

details.add { border-top: 1px solid var(--line-2); }
details.add summary { cursor: pointer; padding: .7rem 1.1rem; color: var(--cobalt); font-weight: 500; list-style: none; }
details.add summary::-webkit-details-marker { display: none; }
details.add summary::before { content: "+ "; }
details.add[open] summary::before { content: "− "; }
details.add > div { padding: 0 1.1rem 1rem; }

/* đăng nhập */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 440px) 1fr; }
.login-side { background: var(--ink); color: #c9d0dc; padding: 3rem 2.5rem; display: flex; flex-direction: column; }
.login-side h1 { color: #fff; font-size: 1.7rem; margin: 2rem 0 .75rem; }
.login-side p { color: #9aa5b8; max-width: 34ch; }
.login-flow { margin-top: auto; font-size: .85rem; color: #8f9aae; line-height: 2; }
.login-flow b { color: #fff; font-weight: 500; }
.login-main { padding: 3rem; display: flex; align-items: center; justify-content: center; }
.login-card { width: 100%; max-width: 640px; }
.user-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; margin-top: 1rem; }
.user-pick button { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: .7rem .8rem;
  cursor: pointer; font: inherit; }
.user-pick button:hover { border-color: var(--cobalt); background: var(--cobalt-tint); }
.user-pick b { display: block; font-weight: 600; }
.user-pick span { color: var(--muted); font-size: .84rem; }
.role-h { margin-top: 1.3rem; font-size: .9rem; font-weight: 600; }

@media print {
  .side, .topbar, .actions, .no-print { display: none !important; }
  .shell { display: block; }
  .content { padding: 0; }
  .panel { box-shadow: none; }
}
@media (max-width: 1100px) {
  .g-side, .g2, .g3 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 30; width: var(--side); transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .side { transform: none; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: .6rem 1rem; }
  .topbar .search { display: none; }
  .content { padding: 1rem; }
  .login { grid-template-columns: 1fr; }
  .login-side { padding: 2rem 1.25rem; }
  .login-main { padding: 1.5rem 1rem; }
  dl.kv { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line-2); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* cột tên dự án trong bảng không bị ép hẹp */
.t td:has(> a[href*="/du-an/"]) { min-width: 220px; }
@media (max-width: 860px) { .t td:has(> a[href*="/du-an/"]) { min-width: 160px; } }

/* cột mốc & công việc */
.ms-table tr.ms-row td { background: #f7f8fb; border-top: 1px solid var(--line); }
.ms-table tr.ms-row.bad td { background: var(--r-tint); }
.ms-table tr.task-row td { font-size: .9rem; }
.task-title { padding-left: 1.6rem !important; position: relative; }
.task-dot { position: absolute; left: .7rem; top: .95rem; width: 8px; height: 8px; border-radius: 50%;
  border: 2px solid var(--faint); }
.task-dot.done { background: var(--g); border-color: var(--g); }
/* lịch cột mốc */
.tl { border-collapse: separate; border-spacing: 0; font-size: .82rem; width: 100%; }
.tl th { font-weight: 500; color: var(--muted); padding: .35rem .2rem; text-align: center; border-bottom: 1px solid var(--line);
  white-space: nowrap; }
.tl th.proj, .tl td.proj { text-align: left; padding: .45rem .6rem; min-width: 230px; position: sticky; left: 0; background: var(--surface); }
.tl td { border-bottom: 1px solid var(--line-2); height: 34px; position: relative; text-align: center; min-width: 30px; }
.tl td.wk-now { background: var(--cobalt-tint); }
.tl .span { position: absolute; top: 15px; height: 4px; background: #cdd5e3; left: 0; right: 0; }
.tl .dia { display: inline-block; width: 11px; height: 11px; transform: rotate(45deg); background: var(--ink-3); position: relative; z-index: 1; }
.tl .dia.acc { background: var(--cobalt); }
.tl .dia.done { background: var(--g); }
.tl .dia.late { background: var(--r); }

/* Tạm ứng & quyết toán */
table.t tr.total td { background: var(--paper); border-top: 1px solid var(--line); }
table.t td.neg, .neg { color: var(--r); }
.panel-head .actions form { display: inline; }

/* Phạm vi dự án */
.pre { white-space: pre-line; }
.steps { display: flex; gap: 2px; margin-bottom: .3rem; }
.steps span { font-size: .68rem; padding: .05rem .35rem; background: var(--line-2); color: var(--faint); border-radius: 3px; }
.steps span.on { background: var(--g-tint); color: var(--g); font-weight: 600; }
.scope-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.actions .grow { flex: 1; }

/* Vận hành */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 0 1.25rem; }
.prof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 1.5rem; }
.prof-grid h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 .6rem; }
select.sel-g { color: var(--g); border-color: #b8dcc8; }
select.sel-r { color: var(--r); border-color: #ecbab4; }
select.sel-a { color: var(--a); border-color: #ecd49a; }
@media (max-width: 700px) { .grid-2, .prof-grid { grid-template-columns: 1fr; } }

/* SKU / cơ hội / dashboard */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { font-size: .82rem; padding: .25rem .6rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
tr.new-row td { background: var(--paper); }
td.center, th.center { text-align: center; }
table.res td.rc { min-width: 150px; vertical-align: middle; }
table.res td.rc.hi { background: var(--a-tint); }
table.res td.rc.over { background: var(--r-tint); }
.rbar { position: relative; height: 10px; background: var(--line-2); border-radius: 3px; overflow: hidden; display: flex; }
.rbar .bl { background: var(--cobalt); height: 100%; }
.rbar .fc { background: repeating-linear-gradient(45deg, #8ea2e6, #8ea2e6 3px, #c5d0f3 3px, #c5d0f3 6px); height: 100%; }
.rbar i { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--ink); }
.rnum { display: flex; gap: .5rem; align-items: baseline; font-size: .78rem; margin-top: .3rem; font-variant-numeric: tabular-nums; }
.rnum b { font-size: .95rem; }
.lg { display: inline-block; width: 12px; height: 8px; border-radius: 2px; margin: 0 .2rem 0 .6rem; vertical-align: middle; }
.lg.bl { background: var(--cobalt); } .lg.fc { background: #8ea2e6; }
.kp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 1rem; align-items: start; }
.kp-grid .panel { margin-bottom: 0; }
.kp { border-top: 4px solid var(--g); }
.kp.kp-A { border-top-color: var(--a); } .kp.kp-R { border-top-color: var(--r); }
.kp h2 { font-size: 1rem; }
.kp-dot { font-size: .75rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; background: var(--g-tint); color: var(--g); }
.kp-A .kp-dot { background: var(--a-tint); color: var(--a); } .kp-R .kp-dot { background: var(--r-tint); color: var(--r); }
.kp-prog { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-bottom: .7rem; }
.kp-prog > div { display: flex; flex-direction: column; gap: .2rem; }
.kp-kv { grid-template-columns: 90px 1fr; font-size: .86rem; }
.kp-issue { font-size: .86rem; padding: .25rem 0; border-bottom: 1px solid var(--line-2); }
.kp-reasons { margin-top: .6rem; padding: .45rem .6rem; background: var(--paper); border-radius: var(--radius); }
@media (max-width: 700px) { .kp-grid { grid-template-columns: 1fr; } }
.kp .sub, .kp-issue .sub { display: block; font-size: .78rem; color: var(--muted); }
.t a svg, .kp a svg, .sub a svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
/* Danh mục SKU */
table.t tr.grp-row td { background: var(--ink); color: #fff; font-weight: 600; font-size: .8rem; letter-spacing: .03em; padding: .4rem .75rem; }
.sku-docs div { margin-bottom: .2rem; word-break: break-word; }
a.chip { text-decoration: none; color: inherit; } a.chip.on { background: var(--cobalt-tint); border-color: #c5d0f3; }
/* Đăng nhập */
.login-form { display: flex; flex-direction: column; gap: .35rem; }
.login-form input, .login-form select { width: 100%; padding: .6rem .7rem; font-size: .95rem; }
.login-form .f { margin-top: .5rem; }
.login-card { width: 100%; max-width: 420px; }
