:root {
  --brand: #0E9F7E; --brand-d: #0B7F65; --brand-l: #E6F6F2;
  --side: #0F1E2E; --side-2: #172B40; --side-t: #C9D4E0;
  --bg: #F3F5F8; --card: #fff; --line: #E3E8EF; --text: #1B2533; --muted: #6B7787;
  --red: #D93D3D; --red-l: #FDECEC; --amber: #C98309; --amber-l: #FFF5E0; --blue: #2F6FDB; --blue-l: #E8F0FD;
  --r: 10px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text); background: var(--bg); }
a { color: var(--brand-d); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 20px; margin: 0; }
h2 { font-size: 16px; margin: 0 0 12px; }
h3 { font-size: 14px; margin: 0 0 8px; }
.boot { padding: 40px; text-align: center; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.red { color: var(--red); } .green { color: var(--brand-d); }
.nowrap { white-space: nowrap; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.right { margin-left: auto; }
.hide { display: none !important; }

/* khung chính */
.shell { display: flex; min-height: 100vh; }
.side { width: 232px; background: var(--side); color: var(--side-t); flex-shrink: 0; position: sticky; top: 0; height: 100vh;
  overflow-y: auto; display: flex; flex-direction: column; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 16px 18px; color: #fff; font-weight: 700; font-size: 17px; }
.side .brand img { width: 34px; height: 34px; }
.side .brand small { display: block; font-weight: 400; font-size: 11px; color: var(--side-t); opacity: .8; }
.side .pos-btn { margin: 4px 14px 12px; background: var(--brand); color: #fff; border-radius: 8px; padding: 10px 12px; font-weight: 600;
  display: flex; align-items: center; gap: 8px; }
.side .pos-btn:hover { background: var(--brand-d); text-decoration: none; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 8px 18px; color: var(--side-t); font-size: 14px; }
.side nav a:hover { background: var(--side-2); text-decoration: none; color: #fff; }
.side nav a.on { background: var(--side-2); color: #fff; font-weight: 600; box-shadow: inset 4px 0 0 var(--brand); }
.side nav a.open { color: #fff; font-weight: 600; background: var(--side-2); }
.side nav .sub { background: rgba(0,0,0,.18); padding: 4px 0; }
.side nav .sub a { padding-left: 46px; font-size: 13px; position: relative; }
.side nav .sub a::before { content: ""; position: absolute; left: 28px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: currentColor; opacity: .35; }
.side nav .sub a.on { background: rgba(14,159,126,.22); color: #fff; box-shadow: inset 4px 0 0 var(--brand); }
.side nav .sub a.on::before { background: var(--brand); opacity: 1; }
.side nav .grp { padding: 14px 18px 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .55; }
.side .ico { width: 18px; text-align: center; opacity: .9; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { height: 56px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 20px;
  position: sticky; top: 0; z-index: 20; }
.top .menu-btn { display: none; }
.top .store { font-weight: 600; }
.top .user { margin-left: auto; position: relative; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-l); color: var(--brand-d); display: inline-flex;
  align-items: center; justify-content: center; font-weight: 700; }
.content { padding: 20px; max-width: 1400px; width: 100%; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head .back { color: var(--muted); font-size: 13px; }
.back-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 10px; border: 1px solid #CBD3DD; border-radius: 8px;
  background: #fff; color: var(--text); font-weight: 500; font-size: 14px; white-space: nowrap; }
.back-btn .arr { font-size: 16px; line-height: 1; color: var(--brand-d); }
.back-btn:hover { background: var(--brand-l); border-color: var(--brand); color: var(--brand-d); text-decoration: none; }

/* thẻ, bảng */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.card .card-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.card .card-h h2 { margin: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.kpi { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px; }
.kpi .l { color: var(--muted); font-size: 13px; }
.kpi .v { font-size: 22px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em;
  padding: 10px 12px; border-bottom: 1px solid var(--line); background: #FAFBFC; white-space: nowrap; }
.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr.click { cursor: pointer; }
.t tr.click:hover td { background: #F7FAFC; }
.t tfoot td { font-weight: 700; background: #FAFBFC; }
.t .num, .t th.num { text-align: right; }
.t input { width: 100%; }
.t-wrap { overflow-x: auto; }
.empty { padding: 32px; text-align: center; color: var(--muted); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.b-green { background: var(--brand-l); color: var(--brand-d); }
.b-amber { background: var(--amber-l); color: var(--amber); }
.b-red { background: var(--red-l); color: var(--red); }
.b-blue { background: var(--blue-l); color: var(--blue); }
.b-gray { background: #EEF1F5; color: var(--muted); }
.pager { display: flex; align-items: center; gap: 8px; padding: 10px 16px; color: var(--muted); font-size: 13px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--brand-d); border-color: var(--brand); font-weight: 600; }
.tabs a:hover { text-decoration: none; color: var(--text); }
dl.info { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; margin: 0; }
dl.info dt { color: var(--muted); }
dl.info dd { margin: 0; }
.sumbox { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; }
.sumbox .big { font-size: 18px; font-weight: 700; }

/* form */
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea { border: 1px solid #CBD3DD; border-radius: 8px; padding: 8px 10px; background: #fff; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(14,159,126,.25); border-color: var(--brand); }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--brand); vertical-align: middle; }
textarea { width: 100%; min-height: 70px; resize: vertical; }
.f { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.f > span { font-size: 13px; color: var(--muted); font-weight: 500; }
.f input, .f select { width: 100%; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #CBD3DD; background: #fff; border-radius: 8px;
  padding: 8px 14px; cursor: pointer; font-weight: 500; white-space: nowrap; }
.btn:hover { background: #F5F7FA; text-decoration: none; }
.btn.pri { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.pri:hover { background: var(--brand-d); }
.btn.danger { color: var(--red); border-color: #F2B8B8; }
.btn.sm { padding: 4px 10px; font-size: 13px; }
.btn.lg { padding: 12px 18px; font-size: 16px; font-weight: 700; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; color: var(--brand-d); cursor: pointer; padding: 0; }
.x-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; padding: 2px 6px; }
.x-btn:hover { color: var(--red); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.filters input[type=search] { flex: 1; min-width: 200px; }

/* gợi ý tìm kiếm */
.ac { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16,24,40,.14); max-height: 360px; overflow-y: auto; z-index: 50; }
.ac-item { padding: 8px 12px; cursor: pointer; display: flex; gap: 10px; align-items: center; border-bottom: 1px solid #F1F3F6; }
.ac-item:hover, .ac-item.on { background: var(--brand-l); }
.ac-item .grow { min-width: 0; }
.ac-item .n { font-weight: 500; }

/* hộp thoại */
.modal-bg { position: fixed; inset: 0; background: rgba(15,30,46,.45); display: flex; align-items: flex-start; justify-content: center;
  padding: 6vh 16px; z-index: 100; overflow-y: auto; }
.modal { background: #fff; border-radius: 12px; width: 100%; max-width: 560px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.modal.wide { max-width: 860px; }
.modal-h { display: flex; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-h h2 { margin: 0; }
.modal-b { padding: 18px; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #1B2533; color: #fff; padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); max-width: 380px; }
.toast.err { background: var(--red); }
.toast.ok { background: var(--brand-d); }

/* đăng nhập */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: linear-gradient(135deg, #0F1E2E 0%, #13405A 55%, #0E9F7E 100%); }
.auth .box { background: #fff; border-radius: 14px; padding: 28px; width: 100%; max-width: 400px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.auth .logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.auth .logo img { width: 48px; }
.auth .logo b { font-size: 22px; }
.auth .btn { width: 100%; }

/* biểu đồ */
.chart { width: 100%; height: 240px; }
.chart .bar { fill: var(--brand); }
.chart .bar:hover { fill: var(--brand-d); }
.chart text { font-size: 11px; fill: var(--muted); }
.chart line { stroke: var(--line); }

/* POS */
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 380px; height: 100vh; background: var(--bg); }
.pos-left { display: flex; flex-direction: column; min-width: 0; }
.pos-bar { background: var(--side); color: #fff; display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.pos-bar img { width: 30px; }
.pos-bar .ac { flex: 1; max-width: 640px; }
.pos-bar input { width: 100%; padding: 10px 12px; border: 0; }
.pos-bar a, .pos-bar select { color: #fff; }
.pos-bar select { background: var(--side-2); border-color: var(--side-2); }
.pos-cart { flex: 1; overflow-y: auto; padding: 12px; }
.pos-cart .t td { background: #fff; }
.pos-cart .qty { display: inline-flex; align-items: center; border: 1px solid #CBD3DD; border-radius: 8px; overflow: hidden; }
.pos-cart .qty button { border: 0; background: #F5F7FA; width: 28px; height: 32px; cursor: pointer; }
.pos-cart .qty input { border: 0; width: 64px; text-align: center; border-radius: 0; padding: 6px 2px; }
.pos-cart input.price { width: 135px; text-align: right; }
.pos-right { background: #fff; border-left: 1px solid var(--line); display: flex; flex-direction: column; overflow-y: auto; }
.pos-right .sec { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pos-right .tot { display: flex; justify-content: space-between; padding: 4px 0; align-items: center; }
.pos-right .tot input { width: 130px; text-align: right; }
.pos-right .grand { font-size: 22px; font-weight: 800; color: var(--brand-d); }
.pos-right .pay { margin-top: auto; padding: 14px 16px; display: grid; gap: 8px; }
.cust-card { background: var(--brand-l); border-radius: 8px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; }
.seg { display: inline-flex; border: 1px solid #CBD3DD; border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 6px 12px; cursor: pointer; }
.seg button.on { background: var(--brand); color: #fff; }

/* in hoá đơn */
@media print {
  body * { visibility: hidden; }
  #print, #print * { visibility: visible; }
  #print { position: absolute; left: 0; top: 0; width: 100%; }
}
#print { display: none; }
@media print { #print { display: block; } }
.receipt { width: 76mm; margin: 0 auto; font: 12px/1.4 Arial, sans-serif; color: #000; }
.receipt h3 { text-align: center; margin: 0 0 2px; font-size: 15px; }
.receipt .c { text-align: center; }
.receipt table { width: 100%; border-collapse: collapse; margin: 6px 0; }
.receipt td, .receipt th { padding: 3px 0; border-bottom: 1px dashed #999; font-size: 12px; text-align: left; }
.receipt .r { text-align: right; }

/* điện thoại */
@media (max-width: 900px) {
  .side { position: fixed; left: -240px; z-index: 60; transition: left .2s; }
  .shell.open .side { left: 0; }
  .top .menu-btn { display: inline-flex; }
  .g2, .g3, .g-main { grid-template-columns: minmax(0, 1fr); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content { padding: 12px; }
  .pos { grid-template-columns: minmax(0, 1fr); height: auto; }
  .pos-cart { min-height: 40vh; }
  dl.info { grid-template-columns: 110px 1fr; }
}
.t.tight th, .t.tight td { padding: 8px 6px; }
/* phân quyền nhân viên */
.check input[type=checkbox], .perm input[type=checkbox] { width: 16px; flex: none; }
.perm-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.perm-g { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.perm-h { display: flex; align-items: center; justify-content: space-between; padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.perm { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; cursor: pointer; }
.perm input { margin-top: 2px; }
.perm-t { display: block; font-weight: 500; }
.perm-d { display: block; font-size: 12px; color: var(--muted); }
@media (max-width: 700px) { .perm-groups { grid-template-columns: minmax(0, 1fr); } }
/* nhật ký hoạt động */
.tl { position: relative; }
.tl-i { position: relative; padding: 0 0 14px 22px; }
.tl-i::before { content: ""; position: absolute; left: 4px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.tl-i::after { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.tl-i:last-child { padding-bottom: 0; }
.tl-i:last-child::after { display: none; }
.tl-t { line-height: 1.4; }
/* ô chọn có mũi tên */
input.combo { padding-right: 32px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%236B7787' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center; }
input.combo:focus { cursor: text; }
/* IMEI */
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--blue-l); color: var(--blue); border-radius: 6px; padding: 1px 6px;
  font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.chip .x-btn { font-size: 14px; padding: 0 2px; color: var(--blue); }
label.chip { cursor: pointer; }
.ser-list { max-height: 50vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.ser-i { padding: 8px 12px; border-bottom: 1px solid var(--line); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.ser-i:hover { background: var(--brand-l); }
/* danh sách IMEI trong phiếu */
.ser-rows { margin-top: 6px; border: 1px solid var(--line); border-radius: 8px; max-width: 420px; overflow: hidden; }
.ser-row { display: flex; align-items: center; gap: 8px; padding: 4px 10px; border-bottom: 1px solid var(--line);
  font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.ser-row .muted { min-width: 22px; text-align: right; font-size: 12px; }
.ser-row.ser-new { border-bottom: 0; background: #FAFBFC; }
.ser-row.ser-new input { border: 0; background: transparent; padding: 4px 0; flex: 1; font: inherit; outline: none; }
/* phiếu nhập đã trả NCC */
.t tr.row-returned td { background: #FDF1F1; }
.t tr.row-returned td:first-child { box-shadow: inset 4px 0 0 var(--red); }
.t tr.row-returned.click:hover td { background: #FBE6E6; }
.t tr.row-part-returned td:first-child { box-shadow: inset 4px 0 0 var(--amber); }
.strike { text-decoration: line-through; }
/* cảnh báo trùng tên */
.name-warn { margin: -6px 0 12px; padding: 8px 12px; border-radius: 8px; background: var(--red-l); color: var(--red); font-size: 13px; }
.name-warn a { color: var(--red); text-decoration: underline; }
input.invalid { border-color: var(--red); outline-color: rgba(217,61,61,.25); }
/* hộp tạo phiên bản theo thuộc tính */
.attr-head, .attr-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 10px; }
.attr-head { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; padding-left: 30px; }
.attr-row { margin-bottom: 10px; align-items: center; }
.attr-row > div { display: flex; align-items: center; gap: 8px; }
.attr-row > div input { flex: 1; width: 100%; font-weight: 600; }
.attr-row > input { width: 100%; }
.attr-no { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-l); color: var(--brand-d); font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.opt-names { font-weight: 500; text-transform: none; color: var(--brand-d); letter-spacing: 0; }
/* ô thẻ giá trị */
.tagbox { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 40px; padding: 5px 8px; border: 1px solid #CBD3DD;
  border-radius: 8px; background: #fff; cursor: text; }
.tagbox:focus-within { outline: 2px solid rgba(14,159,126,.25); border-color: var(--brand); }
.tagbox input { border: 0; outline: 0; padding: 4px 2px; flex: 1; min-width: 140px; background: transparent; }
.tag { display: inline-flex; align-items: center; gap: 4px; background: var(--brand-l); color: var(--brand-d); border-radius: 6px;
  padding: 2px 4px 2px 10px; font-weight: 500; font-size: 13px; }
.tag-x { border: 0; background: none; color: var(--brand-d); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 4px; border-radius: 4px; }
.tag-x:hover { background: rgba(14,159,126,.18); color: var(--red); }
.attr-row { align-items: start; }
.attr-row > div:first-child { padding-top: 2px; }
.attr-row .tagbox input { width: auto; font-weight: 400; flex: 1; }
/* khung có ô tìm kiếm gợi ý: khi danh sách gợi ý đang mở thì không cắt phần tràn ra ngoài */
.card:has(.ac-list), .card.flush:has(.ac-list) { overflow: visible; position: relative; z-index: 30; }
.ac-list { max-height: min(420px, 60vh); }
/* IMEI lỗi: bôi đỏ */
.ser-row.bad { background: var(--red-l); color: var(--red); }
.ser-row.bad .muted { color: var(--red); }
.ser-why { display: block; font: 600 11px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.ser-warn { margin: 12px 16px 0; padding: 10px 14px; border-radius: 8px; background: var(--red-l); color: var(--red); border: 1px solid #F2B8B8; }
/* thanh bước (phiếu nhập 2 bước) */
.steps { display: flex; align-items: center; gap: 12px; margin: -4px 0 16px; }
.step { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.step b { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #E3E8EF; color: var(--muted); font-size: 13px; }
.step.on { color: var(--text); font-weight: 700; }
.step.on b { background: var(--brand); color: #fff; }
.step.done b { background: var(--brand-l); color: var(--brand-d); }
.step-line { flex: 0 1 80px; height: 2px; background: var(--line); }
.pay-seg { display: flex; width: 100%; }
.pay-seg button { flex: 1; padding: 8px 6px; }
/* chi phí nhập hàng */
.cost-head, .cost-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr) minmax(0, 2fr) minmax(0, 1.3fr) 28px; gap: 8px; align-items: center; }
.cost-head { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.cost-row { margin-bottom: 8px; }
.cost-row input, .cost-row select { width: 100%; }
@media (max-width: 900px) { .cost-head { display: none; } .cost-row { grid-template-columns: 1fr 1fr; } }
/* phiếu nháp */
.draft-box { border: 1px solid #F3D58A; }
.draft-box .card-h { background: var(--amber-l); }
.t tr.row-draft td:first-child { box-shadow: inset 4px 0 0 var(--amber); }
.draft-banner { background: var(--amber-l); border: 1px solid #F3D58A; }
.draft-stat { margin-left: auto; font-size: 12px; color: var(--muted); }
/* cảnh báo không xoá được */
.del-warn { padding: 12px 14px; border-radius: 8px; background: var(--red-l); color: var(--red); border: 1px solid #F2B8B8; }
/* danh sách gợi ý luôn chữ tối, kể cả khi nằm trong thanh tối của màn bán hàng */
.ac-list { color: var(--text); }
.ac-list .muted { color: var(--muted); }
.ac-list .red { color: var(--red); }
.ac-item.on, .ac-item:hover { color: var(--text); }
.pos-bar input { color: var(--text); background: #fff; }
.ac-list { min-width: 260px; }
.pos-right .ac-list { left: auto; right: 0; min-width: 330px; }
.ac-item.ac-empty { display: block; color: var(--muted); cursor: default; line-height: 1.5; } .ac-item.ac-empty:hover { background: transparent; } .ac-item.ac-empty b { color: var(--text); }
.pos-right .ac-list { left: 0; right: 0; min-width: 0; }
.gender-seg { display: flex; width: 100%; } .gender-seg button { flex: 1; padding: 8px 6px; }
/* trả góp */
.inst-box { background: var(--blue-l); border-radius: 8px; padding: 10px 12px; margin: 6px 0 8px; }
.inst-box .f { margin-bottom: 8px; }
.inst-box .f input, .inst-box .f select { width: 100%; }
.inst-amt { color: var(--blue); font-size: 16px; }
.inst-card { border-left: 4px solid var(--blue); }

/* chuyển hàng 3 bước */
.step > div { line-height: 1.25; }
.ok-banner { background: var(--brand-l); color: var(--brand-d); border-color: transparent; margin-bottom: 14px; }
.ok-banner a { font-weight: 600; margin-left: 6px; }
.dd { position: relative; display: inline-block; }
.dd-menu { position: absolute; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 30; min-width: 230px; padding: 4px; }
.dd-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 6px; cursor: pointer; font: inherit; color: var(--text); }
.dd-menu button:hover { background: #F2F5F9; }
.chk-list { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; }
.chk-list label { display: inline-flex; gap: 4px; align-items: center; }
.receipt.a4 { width: 190mm; font-size: 13px; }
.receipt.a4 td, .receipt.a4 th { padding: 5px 4px; font-size: 13px; }
.receipt .r { text-align: right; }
.receipt .sign { display: flex; justify-content: space-around; text-align: center; margin-top: 24px; min-height: 90px; font-weight: 600; }
.inv-incoming { color: var(--blue); font-weight: 600; }
.warn-box { background: var(--amber-l); color: #7A4B00; border: 1px solid #F3D28A; border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; line-height: 1.45; }

.perm.perm-sub { margin-left: 30px; padding-top: 6px; padding-bottom: 6px; }
.perm.perm-sub .perm-t { font-size: 13.5px; font-weight: 500; }
.perm.perm-sub:has(input:disabled:not(:checked)) { opacity: .45; }

.loc-box { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.loc-list { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-left: 4px; }
.loc-list label:has(input:disabled) { opacity: .6; }

.vat-sel { width: 104px; padding: 6px 8px; }


/* ───── giao diện tinh gọn: font Inter, cỡ chữ & khoảng cách nhẹ hơn ───── */
:root { --text: #1A2230; --muted: #687385; --line: #E6EAF0; --field: #D6DCE4; }
body { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13.5px; line-height: 1.5; font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; letter-spacing: -.003em; }
h1 { font-size: 19px; font-weight: 650; letter-spacing: -.015em; }
h2 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.num, .kpi .v, .sumbox { font-variant-numeric: tabular-nums; }
input, select, textarea { border-color: var(--field); border-radius: 7px; padding: 7px 10px; }
input::placeholder, textarea::placeholder { color: #9AA4B2; }
.btn { border-color: var(--field); border-radius: 7px; padding: 7px 14px; font-weight: 550; }
.back-btn { border-color: var(--field); border-radius: 7px; padding: 6px 12px 6px 9px; font-size: 13.5px; }
.card { border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.f > span { font-size: 12.5px; }
.t th { font-size: 11px; font-weight: 600; letter-spacing: .05em; padding: 9px 12px; color: #7A8596; }
.t td { padding: 9px 12px; }
.badge { font-size: 11px; padding: 1px 7px; font-weight: 600; }
.steps { margin: -6px 0 14px; font-size: 13px; }
.step b { width: 22px; height: 22px; font-size: 12px; }
.draft-banner { padding: 9px 14px; font-size: 12.5px; }

/* bảng sản phẩm trong phiếu nhập / chuyển / kiểm: cột tên rộng, cột số gọn */
.t.le th:not(:first-child), .t.le td:not(:first-child) { width: 1%; white-space: nowrap; }
.t.le td:first-child { min-width: 260px; }
.t.le td { vertical-align: top; padding-top: 12px; padding-bottom: 12px; }
.t.le td:not(:first-child) { padding-top: 10px; }
.t.le input[data-k="qty"], .t.le input[data-k="actual"] { width: 76px !important; text-align: right; }
.t.le input[data-k="price"] { width: 128px !important; }
.t.le .vat-sel { width: 104px; padding: 6px 8px; }
.t.le [data-qty] { display: inline-block; padding-top: 7px; }
.t.le [data-t] { padding-top: 17px !important; font-weight: 600; }
.t.le .x-btn { margin-top: 6px; }
.le-name { font-weight: 550; }
/* IMEI: chữ số đều, nhẹ nhàng, không dùng font máy chữ */
.ser-rows { max-width: 360px; border-radius: 7px; margin-top: 8px; }
.ser-row { font: 500 12.5px/1.5 "Inter", sans-serif; font-variant-numeric: tabular-nums; letter-spacing: .02em; padding: 3px 10px; }
.ser-row.ser-new input { font-weight: 400; letter-spacing: 0; }
.ser-row .muted { font-size: 11px; min-width: 18px; }
.ser-i, .chip { font-family: "Inter", sans-serif; font-variant-numeric: tabular-nums; }
/* khung tổng tiền bên phải */
.sumbox { gap: 7px 20px; font-size: 13.5px; }
.sumbox > span:nth-child(odd) { color: var(--muted); }
.sumbox .big { font-size: 19px; letter-spacing: -.01em; color: var(--text); }

.vat-note { background: var(--blue-l); border-color: #CFE0FB; color: #24406E; padding: 10px 14px; }

.vat-chk { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.vat-chk input { width: 17px; height: 17px; }
.tot .vat-chk input[type=checkbox] { width: 17px !important; height: 17px; flex: none; padding: 0; margin: 0; }

/* nút bật/tắt VAT từng dòng ở màn bán hàng */
.vat-sw { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--field); background: #fff; border-radius: 99px;
  padding: 3px 9px 3px 4px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.vat-sw i { width: 26px; height: 15px; border-radius: 99px; background: #CDD4DD; position: relative; transition: background .15s; }
.vat-sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: left .15s; }
.vat-sw.on { border-color: #9ED9C8; background: var(--brand-l); color: var(--brand-d); }
.vat-sw.on i { background: var(--brand); }
.vat-sw.on i::after { left: 13px; }

.amber { color: var(--amber); }

.receipt.vat-print { width: 100%; max-width: 277mm; }
.receipt.vat-print td, .receipt.vat-print th { border-bottom: 1px solid #ccc; padding: 4px 5px; vertical-align: top; }
.receipt.vat-print th { background: #f2f2f2; }
.receipt.vat-print .tot-row td { border-top: 2px solid #000; }

/* ô mật khẩu có nút mắt */
.pw-wrap { position: relative; display: block; width: 100%; }
.pw-wrap input { width: 100%; padding-right: 40px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 32px; height: 30px; border: 0; background: none;
  color: #8592A3; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; padding: 0; }
.pw-eye:hover { color: var(--brand-d); background: var(--brand-l); }

.tag.tag-locked { background: var(--red-l); color: var(--red); animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

/* số tồn từng phiên bản trong form sản phẩm */
.stock-pill { display: inline-block; min-width: 38px; padding: 3px 10px; border-radius: 99px; background: #EEF1F5; color: var(--muted); font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.stock-pill.in { background: var(--brand-l); color: var(--brand-d); }
.stock-pill.neg { background: var(--red-l); color: var(--red); }
.stock-pill:hover { text-decoration: none; box-shadow: 0 0 0 2px rgba(14,159,126,.25); }

/* ô % lãi trong bảng phiên bản */
.pct-in { position: relative; display: inline-block; }
.pct-in input { width: 82px; padding-right: 24px; text-align: right; }
.pct-in i { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-size: 12.5px; pointer-events: none; }
.pct-all { display: inline-flex; align-items: center; gap: 6px; padding-right: 10px; margin-right: 4px; border-right: 1px solid var(--line); }
.pct-all .pct-in input { width: 76px; padding-top: 4px; padding-bottom: 4px; }
.split-btn { margin-top: 6px; font-size: 12px; color: var(--muted); }
.split-btn:hover { color: var(--brand-d); }
.btn.pri:disabled, .btn.pri:disabled:hover { background: #C5CED8; border-color: #C5CED8; color: #fff; opacity: 1; }
.perm-del .perm-t { color: var(--red); }
.del-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; background: var(--red-l); color: var(--red); font-size: 10.5px; font-weight: 600; vertical-align: 1px; }

/* nút xác nhận nguy hiểm (huỷ, xoá): nền đỏ chữ trắng */
.btn.pri.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.pri.danger:hover { background: #B92F2F; border-color: #B92F2F; }
.cancel-list { margin: 0 0 12px; padding-left: 18px; line-height: 1.6; }
.cancel-list li { margin-bottom: 4px; }

/* số bước luồng hàng trên menu */
.side nav a, .side .pos-btn { position: relative; }
.flow-no { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.12); color: #DDE6EF; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.side nav a.on .flow-no, .side nav a.open .flow-no, .side nav .sub a.on .flow-no { background: var(--brand); color: #fff; }
.side .pos-btn .flow-no { background: rgba(255,255,255,.25); color: #fff; }
.side nav .sub a { display: flex; align-items: center; }
.kpi .v.blue, .blue { color: var(--blue); }
.cash-in .kpi .l { font-weight: 500; }

/* tiền thu theo hình thức trên Tổng quan */
.cash-in-card { padding: 14px 16px 4px; }
.cash-in-h { font-weight: 600; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 2px 0 8px; }
.cash-in { margin-bottom: 12px; }
.cash-in .kpi { background: #F8FAFC; box-shadow: none; border: 1px solid var(--line); }
.cash-in .kpi .v { font-size: 20px; }
.kpi .v.purple { color: #7C3AED; }
.kpi .v.amber { color: var(--amber); }

/* két tiền mặt */
.drawer-card { cursor: pointer; border: 2px solid transparent; transition: border-color .15s; }
.drawer-card.on { border-color: var(--brand); }
.drawer-card .v { font-size: 26px; }
.drawer-today { margin-top: 6px; }

.inv-items textarea { width: 100%; min-width: 240px; min-height: 38px; resize: vertical; }
.inv-items td { vertical-align: top; }
.t tr.row-cancelled td { color: var(--muted); text-decoration: line-through; }
.inv-items textarea { min-width: 170px; }
.inv-items th, .inv-items td { padding-left: 8px; padding-right: 8px; }
.inv-items .money { width: 115px !important; }

/* thanh toán nhiều hình thức ở quầy */
.split-link { margin: 2px 0 6px; }
.split-box { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 4px 0 8px; background: #FAFBFC; }
.split-h { display: flex; align-items: center; margin-bottom: 8px; }
.split-row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.split-row select { flex: 1; }
.split-row input { width: 140px; text-align: right; }
.split-foot { display: flex; align-items: center; margin-top: 4px; font-size: 13px; }
.split-row.split-inst select, .split-row.split-inst input { border-color: #F3D28A; background: var(--amber-l); }

.pm-sub { font-size: 12.5px; color: var(--muted); padding-left: 14px; }
.pm-list { margin-top: 4px; white-space: nowrap; }

/* ảnh sản phẩm */
.img-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.img-tile { position: relative; width: 110px; height: 110px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #F8FAFC; display: flex; align-items: center; justify-content: center; }
.img-tile img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.img-tile.is-main { border: 2px solid var(--brand); }
.img-main { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(14,159,126,.9); color: #fff; font-size: 11px; text-align: center; padding: 2px 0; }
.img-x { position: absolute; top: 4px; right: 4px; background: rgba(255,255,255,.95); border-radius: 50%; width: 22px; height: 22px; }
.img-first { position: absolute; top: 4px; left: 4px; border: 0; background: rgba(255,255,255,.95); border-radius: 50%; width: 22px; height: 22px; cursor: pointer; color: var(--amber); font-size: 12px; }
.img-add { width: 110px; height: 110px; border: 2px dashed var(--field); border-radius: 10px; background: #fff; color: var(--muted); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: inherit; }
.img-add span { font-size: 26px; line-height: 1; }
.img-add:hover { border-color: var(--brand); color: var(--brand-d); }
.img-grid.pick .img-tile { cursor: pointer; }
.img-grid.pick .img-tile input { position: absolute; opacity: 0; }
.img-grid.pick .img-tile.sel { border: 3px solid var(--brand); }
.img-grid.pick .img-tile img { cursor: pointer; }
.img-grid.pick .img-tile.none span { font-size: 12px; color: var(--muted); text-align: center; padding: 6px; }
.v-thumb { width: 44px; height: 44px; border: 1px dashed var(--field); border-radius: 8px; background: #fff; padding: 0; overflow: hidden; cursor: pointer; color: var(--muted); font-size: 18px; }
.v-thumb img { width: 100%; height: 100%; object-fit: cover; }
.v-thumb img.dim { opacity: .35; }
.v-thumb:not(.empty) { border-style: solid; border-color: var(--brand); }
.img-zoom { text-align: center; }
.img-zoom img { max-width: 100%; max-height: 72vh; border-radius: 8px; }
.cart-prod { display: flex; gap: 10px; align-items: flex-start; }
.cart-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; flex-shrink: 0; }
.ac-thumb { width: 46px; height: 46px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); flex-shrink: 0; margin-right: 8px; }
.ac-thumb.none { display: inline-block; background: #F1F4F8; }
.list-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; background: #F8FAFC; font-size: 18px; }
.f label.scope-opt { display: flex; align-items: center; gap: 8px; width: auto; margin: 6px 0 0; font-weight: 400; cursor: pointer; }
.f label.scope-opt input { width: auto; margin: 0; flex: none; }
/* ảnh hiện trọn (không cắt) trên nền trắng — điện thoại, cửa… thường là ảnh dọc */
.img-tile, .img-tile.is-main { flex: none; width: 120px; height: 120px; background: #fff; }
.img-tile img, .v-thumb img, .cart-thumb, .ac-thumb, .list-thumb { object-fit: contain; background: #fff; }
.img-tile img { padding: 4px; box-sizing: border-box; }
.img-tile.is-main img { padding-bottom: 20px; }
.img-add { flex: none; width: 120px; height: 120px; }
/* vị trí lưu kho */
.bin-tag { display: inline-flex; align-items: center; gap: 3px; margin-top: 3px; padding: 1px 7px; border-radius: 6px; background: #FFF4DB; color: #8A5A00; border: 1px solid #F3D28A; font-size: 12px; font-weight: 600; letter-spacing: .2px; white-space: nowrap; }
.bin-tag[role=button] { cursor: pointer; }
.bin-tag[role=button]:hover { border-color: #D9A62E; }
.bin-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.bin-map { margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.bin-map-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bin-lv { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.bin-lv i, .bin-no { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; }
.bin-stats { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; }
.bin-cfg td { vertical-align: middle; }
.bin-cfg input { width: 100%; }
.bin-vals { gap: 6px; align-items: center; }
.bin-vals .chip { font-weight: 600; }
.bin-cfg input[data-lc] { width: 110px; margin-right: 6px; }
input.need { border-color: var(--red, #D92D20) !important; box-shadow: 0 0 0 3px rgba(217,45,32,.15); }
.neg-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.bin-none { color: #B54708 !important; margin-top: 3px; }
/* SP cơ khí: ô số kg dưới số cây */
.kg-in { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 6px; }
.kg-in input { width: 90px !important; text-align: right; border-color: #F3D28A; background: #FFFBEB; font-weight: 600; }
.kg-in i { font-style: normal; font-size: 12px; color: var(--muted); }
.kg-stock { font-size: 12px; color: #8A5A00; font-weight: 600; white-space: nowrap; }
.pos-edit { margin: 0 0 10px; padding: 10px 14px; border-radius: 10px; background: #FFF4DB; border: 1px solid #F3D28A; color: #7A4F00; font-size: 14px; }
/* xoá dữ liệu */
.reset-card { border: 1px solid #F5C2C0; }
.reset-card h2 { color: #B42318; }
.reset-groups { display: grid; gap: 8px; margin-top: 10px; }
.reset-g { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.reset-g input { margin-top: 3px; width: auto; flex: none; }
.reset-g > span { display: flex; flex-direction: column; gap: 2px; }
.reset-g:has(input:checked) { border-color: #F04438; background: #FEF3F2; }
.reset-card [data-reset]:disabled { opacity: .45; cursor: not-allowed; }
/* bảo hành */
.w-in { display: flex; gap: 8px; }
.w-in input { width: 90px; }
.w-in select { flex: 1; }
.w-tag { display: inline-block; margin-top: 3px; padding: 1px 8px; border-radius: 6px; background: #ECFDF3; color: #067647; font-size: 12px; font-weight: 600; }
.w-tag.off { background: #F2F4F7; color: #667085; }

/* ───── chữ sắc nét hơn: nội dung đã điền đậm, rõ; chữ gợi ý (placeholder) nhạt ───── */
:root { --text: #0F1722; --muted: #5A6577; }
body { font-size: 14px; -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; text-rendering: optimizeLegibility; }
input, select, textarea { color: #0B1220; font-weight: 500; }
input::placeholder, textarea::placeholder { color: #B3BBC7; font-weight: 400; opacity: 1; }
select:invalid, select option[value=""] { color: #8C96A5; }
input:disabled, select:disabled, textarea:disabled { color: #4B5565; }
.f > span { color: #3F4A5A; font-weight: 600; }
.f > span .small, .f > span.small { font-weight: 400; }
td { color: var(--text); }
.small.muted, .muted { color: var(--muted); }
/* khối tồn kho theo chi nhánh (cột phải trang sản phẩm): gọn, không tràn */
.stock-card { min-width: 0; overflow: hidden; }
.stock-card .t-wrap { margin: 0 -16px; padding: 0 16px; }
.stock-card .t th, .stock-card .t td { padding: 8px 6px; }
.stock-card .t th:first-child, .stock-card .t td:first-child { padding-left: 0; }
.stock-card .t th:last-child, .stock-card .t td:last-child { padding-right: 0; }
.stock-card .t th { white-space: normal; line-height: 1.25; }
.sb-list { display: flex; flex-direction: column; gap: 10px; }
.sb-v { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.sb-vh { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.sb-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px dashed var(--line); }
.sb-row:first-of-type { border-top: 0; }
.sb-loc { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #3F4A5A; }
.sb-bin .bin-tag { margin-top: 0; }
.sb-q { text-align: right; min-width: 44px; font-variant-numeric: tabular-nums; }
.sb-q .kg-stock { font-weight: 500; }
/* hạn dùng phần mềm (cửa hàng) */
.sub-bar { padding: 9px 20px; font-size: 14px; border-bottom: 1px solid var(--line); }
.sub-bar.warn { background: #FFF4DB; color: #7A4F00; }
.sub-bar.off { background: #FDECEC; color: #9B1C1C; }
.sub-bar.info { background: #EAF2FF; color: #1D4E9E; }
/* trang quản trị CNS */
.adm-shell { min-height: 100vh; background: var(--bg); }
.adm-top { display: flex; align-items: center; gap: 18px; padding: 0 20px; height: 58px; background: #0F1722; color: #fff; position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
.adm-top .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.adm-top .brand img { width: 30px; height: 30px; }
.adm-top .brand small { display: block; font-weight: 400; font-size: 11px; opacity: .7; }
.adm-top nav { display: flex; gap: 2px; overflow-x: auto; }
.adm-top nav a { color: #C9D2DE; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.adm-top nav a.on, .adm-top nav a:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.adm-top .right { margin-left: auto; }
.adm-top .muted { color: #C9D2DE; }
.adm-main { padding: 20px; max-width: 1400px; margin: 0 auto; }
.adm-alert { padding: 10px 14px; border-radius: 10px; background: #F2F4F7; border: 1px solid #D0D5DD; margin-bottom: 16px; }
.adm-log { padding: 6px 0; border-bottom: 1px solid var(--line); }
.adm-log:last-child { border-bottom: 0; }
.pw-show { font-family: ui-monospace, Menlo, monospace; font-size: 18px; letter-spacing: .05em; margin-right: 8px; }
.amber, .kpi .v.amber { color: var(--amber); }
@media (max-width: 760px) { .adm-top { height: auto; padding: 10px 16px; } .adm-main { padding: 16px; } }
.adm-top .btn { color: var(--text); }
