/* Julie POS — giao diện quầy (Windows/Chrome, chuột + bàn phím + máy quét) */
:root {
  --mau-chinh: #1f6feb;
  --mau-chinh-dam: #1858bd;
  --mau-nen: #f4f6f9;
  --mau-the: #ffffff;
  --mau-vien: #dfe4ea;
  --mau-chu: #16202c;
  --mau-chu-nhat: #6b7684;
  --mau-ok: #12805c;
  --mau-canh-bao: #b26a00;
  --mau-loi: #c62828;
  --bo-goc: 10px;
  --bong: 0 1px 3px rgba(16, 24, 40, .08);
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  color: var(--mau-chu);
  background: var(--mau-nen);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0 0 8px; font-weight: 700; }
h3 { font-size: 17px; }
b { font-weight: 650; }
.phu { color: var(--mau-chu-nhat); font-size: 13px; }
.nho { font-size: 12px; }
.giua { text-align: center; }
.phai { text-align: right; }
code { background: #eef1f5; padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }

/* ---------- Đăng nhập ---------- */
.man-dang-nhap { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(160deg, #f7f4f1, #eef1f6); }
.the-dang-nhap {
  width: 380px; background: #fff; padding: 28px; border-radius: 16px;
  box-shadow: 0 10px 40px rgba(16, 24, 40, .12); text-align: center;
}
.logo-dang-nhap { width: 92px; height: auto; margin-bottom: 6px; }
.the-dang-nhap h1 { font-size: 22px; letter-spacing: .3px; }
.the-dang-nhap .truong { text-align: left; margin-bottom: 12px; }
.loi-nho { color: var(--mau-loi); font-size: 13px; min-height: 18px; text-align: left; }

/* ---------- Khung ứng dụng ---------- */
.topbar {
  height: 58px; background: #fff; border-bottom: 1px solid var(--mau-vien);
  display: flex; align-items: center; gap: 18px; padding: 0 16px; position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.brand b { display: block; font-size: 15px; }
.brand .phu { display: block; font-size: 11px; letter-spacing: 1px; }
.logo-nho { width: 26px; height: auto; }

.thanh-tab { display: flex; gap: 2px; flex: 1; overflow-x: auto; }
.nav-item {
  padding: 8px 13px; border-radius: 8px; text-decoration: none; color: var(--mau-chu);
  font-weight: 550; white-space: nowrap; font-size: 14px;
}
.nav-item:hover { background: #eef2f8; }
.nav-item.dang-chon { background: var(--mau-chinh); color: #fff; }
.nav-item kbd { font-size: 10px; opacity: .75; margin-left: 4px; }

.nguoi-dung { display: flex; align-items: center; gap: 12px; }
.thong-tin-nv { text-align: right; line-height: 1.15; }
.thong-tin-nv b { font-size: 13.5px; }
.thong-tin-nv .phu { display: block; font-size: 11px; }
.dong-ho { font-size: 12.5px; color: var(--mau-chu-nhat); font-variant-numeric: tabular-nums; }
.danh-sach-canh-bao { display: grid; gap: 6px; margin-top: 6px; }
.canh-bao-dong { font-size: 13px; padding: 7px 10px; border-radius: 7px; background: #f4f6f9; }
.canh-bao-dong.cao { background: #fdecea; color: #8f1d15; font-weight: 600; }
.canh-bao-dong.tb { background: #fff6e5; color: #7a5200; }
.canh-bao-dong.ok { background: #e8f7ef; color: #0f6b48; }
.luoi-so { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 6px; }
.luoi-so b { display: block; font-size: 15px; }
.nhan-gia-lap { background: #fff1d6; color: #8a5a00; font-size: 11.5px; padding: 2px 7px; border-radius: 5px; font-weight: 600; }

.noi-dung { padding: 14px 16px 24px; }
.tab-pane { max-width: 1500px; margin: 0 auto; }

/* ---------- Nút & ô nhập ---------- */
.nut {
  font-family: inherit; font-size: 14px; font-weight: 600; padding: 9px 14px;
  border-radius: 8px; border: 1px solid transparent; cursor: pointer; background: #eef1f5; color: var(--mau-chu);
  transition: background .12s, box-shadow .12s;
}
.nut:hover { filter: brightness(.97); }
.nut:disabled { opacity: .5; cursor: not-allowed; }
.nut-chinh { background: var(--mau-chinh); color: #fff; }
.nut-chinh:hover { background: var(--mau-chinh-dam); }
.nut-xam { background: #eceff3; color: #333; }
.nut-vien { background: #fff; border-color: var(--mau-vien); }
.nut-do { background: var(--mau-loi); color: #fff; }
.nut-do-vien { background: #fff; border-color: #f0c2c2; color: var(--mau-loi); }
.nut-nho { padding: 5px 10px; font-size: 12.5px; }
.nut-lon { padding: 14px 18px; font-size: 16.5px; }
.nut-rong { width: 100%; }
.nut-chon { background: #fff; border-color: var(--mau-vien); color: var(--mau-chu); }
.nut-chon.dang-chon { background: var(--mau-chinh); color: #fff; border-color: var(--mau-chinh); }

.truong { display: block; margin-bottom: 8px; }
.truong > span { display: block; font-size: 12.5px; color: var(--mau-chu-nhat); margin-bottom: 3px; }
.truong-ngang { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.truong-ngang > span { margin: 0; white-space: nowrap; }
.thanh-loc select, .thanh-loc input[type="date"] { width: auto; min-width: 150px; }
.hang-nhap input[type="datetime-local"] { max-width: 240px; }
.truong-rong { grid-column: 1 / -1; }
input, select, textarea {
  font-family: inherit; font-size: 14.5px; padding: 8px 10px; border: 1px solid var(--mau-vien);
  border-radius: 8px; background: #fff; color: var(--mau-chu); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #bcd4ff; border-color: var(--mau-chinh); }
input[readonly] { background: #f6f7f9; color: var(--mau-chu-nhat); }
.o-nhap { width: 100%; }
.o-tim { max-width: 340px; }
.o-kiem { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin: 6px 0; }
.o-kiem input { width: auto; }

.hang-nhap { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.hang-nhap input { max-width: 260px; }
.hop-nut { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.hang-nut { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 10px; }
.day-phai { margin-left: auto; display: flex; gap: 8px; }

/* ---------- Bảng ---------- */
.bang { width: 100%; border-collapse: collapse; background: #fff; }
.bang th, .bang td { padding: 9px 10px; border-bottom: 1px solid #eef0f3; text-align: left; vertical-align: middle; }
.bang th { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--mau-chu-nhat); font-weight: 600; background: #fafbfc; position: sticky; top: 0; z-index: 1; }
.bang tbody tr:hover { background: #f8fafc; }
.bang-nho th, .bang-nho td { padding: 6px 8px; font-size: 13.5px; }
.dong-het td { background: #fff4f4; }
.dong-sap-het td { background: #fffdf3; }
.dong-huy td { color: #9aa3af; text-decoration: line-through; }
.it-hang { color: var(--mau-loi); font-weight: 700; }
.dam { font-weight: 700; }
.cuon { max-height: calc(100vh - 210px); overflow: auto; border: 1px solid var(--mau-vien); border-radius: var(--bo-goc); }
.trong { padding: 40px; text-align: center; color: var(--mau-chu-nhat); }

/* ---------- Thẻ / khối ---------- */
.the { background: var(--mau-the); border: 1px solid var(--mau-vien); border-radius: var(--bo-goc); padding: 12px 14px; margin-bottom: 12px; box-shadow: var(--bong); }
.the-dau { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: .3px; color: #46505d; margin-bottom: 10px; }
.the-dau .phu { text-transform: none; font-weight: 400; letter-spacing: 0; }
.the-dau .nut { margin-left: auto; text-transform: none; }
.the-rong { max-width: 720px; }
.luoi-truong { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.luoi-the { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 12px; }
.the-so { background: #fff; border: 1px solid var(--mau-vien); border-radius: var(--bo-goc); padding: 12px; }
.the-so span { display: block; font-size: 12px; color: var(--mau-chu-nhat); }
.the-so b { font-size: 19px; }
.luoi-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* ---------- Bán hàng ---------- */
.ban-hang { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 14px; align-items: start; }
.cot-phai { position: sticky; top: 70px; }
.bang-gio-wrap { max-height: calc(100vh - 190px); overflow: auto; }
.hop-quet input { font-size: 19px; padding: 14px 16px; border: 2px solid var(--mau-chinh); border-radius: 10px; }
.hop-quet { position: relative; }
.hop-quet .goi-y { position: absolute; right: 14px; top: 18px; color: #a5adba; font-size: 12.5px; pointer-events: none; }
.ket-qua-tim { display: grid; gap: 4px; margin-top: 6px; background: #fff; border: 1px solid var(--mau-vien); border-radius: 8px; padding: 6px; max-height: 300px; overflow: auto; }
.ket-qua { display: flex; justify-content: space-between; gap: 12px; text-align: left; padding: 9px 10px; border-radius: 6px; border: 0; background: transparent; cursor: pointer; font-family: inherit; font-size: 14px; }
.ket-qua:hover { background: #eef4ff; }

.bang-gio-wrap { margin-top: 10px; background: #fff; border: 1px solid var(--mau-vien); border-radius: var(--bo-goc); overflow: hidden; }
.bang-gio th { top: 0; }
.bang-gio td { padding: 10px; }
.ten-mon { font-weight: 650; font-size: 14.5px; }
.cot-hang .phu { font-size: 12px; }
.chinh-sl { display: inline-flex; align-items: center; gap: 4px; }
.nut-tron { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--mau-vien); background: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
.nut-tron:hover { background: #eef2f8; }
.o-sl { width: 56px; text-align: center; padding: 5px; }
.o-giam { width: 90px; text-align: right; padding: 5px; }
.nut-xoa { background: transparent; border: 0; color: #b0b7c1; font-size: 15px; cursor: pointer; }
.nut-xoa:hover { color: var(--mau-loi); }
.dong-vuot td { background: #fff6e6; }
.nhan-dot { background: #e8f1ff; color: #1f5fbf; border-radius: 4px; padding: 1px 5px; font-size: 11.5px; }
.gia-goc { text-decoration: line-through; color: #98a1ad; font-size: 12.5px; }
.gio-trong { padding: 60px 20px; text-align: center; color: #98a1ad; }
.gio-trong-icon { font-size: 34px; opacity: .5; margin-bottom: 8px; }

.the-tong .dong-tong { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px dashed #e7eaee; gap: 10px; }
.the-tong .dong-tong input { max-width: 130px; text-align: right; }
.tong-cuoi { border-bottom: 0 !important; padding-top: 12px !important; }
.tong-cuoi b { font-size: 24px; color: var(--mau-chinh-dam); }
.the-tong .nut { margin-top: 10px; }

/* ---------- In tem ---------- */
.in-tem { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 14px; align-items: start; }
.danh-sach-tem { background: #fff; border: 1px solid var(--mau-vien); border-radius: var(--bo-goc); padding: 10px; max-height: calc(100vh - 200px); overflow: auto; }
.dong-tem { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 7px 4px; border-bottom: 1px solid #eef0f3; font-size: 13.5px; }
.cum-sl { display: inline-flex; align-items: center; gap: 3px; }
.ds-chon-sku { margin-top: 10px; border-top: 1px solid var(--mau-vien); padding-top: 8px; max-height: 260px; overflow: auto; }
.dong-chon { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; padding: 7px 8px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; font-family: inherit; font-size: 13.5px; }
.dong-chon:hover { background: #eef4ff; }
.dong-chon:disabled { opacity: .45; cursor: not-allowed; }
.xem-truoc { background: #e9ecf1; border-radius: var(--bo-goc); padding: 16px; min-height: 300px; overflow: auto; }
.bang-tem { display: flex; flex-wrap: wrap; gap: 3mm; align-content: flex-start; }
.bang-tem .trong { width: 100%; text-align: center; color: #98a1ad; padding: 30px; }
.tem { background: #fff; border: 1px dashed #c9cfd8; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 1mm 1.2mm; overflow: hidden; }
.tem-shop { font-size: 5.5pt; letter-spacing: .6px; color: #555; }
.tem-ten { font-size: 6.8pt; font-weight: 700; text-align: center; line-height: 1.1; max-height: 2.4em; overflow: hidden; }
.tem-mavach { max-width: 100%; height: auto; }
.tem-chan { width: 100%; display: flex; justify-content: space-between; font-size: 6.5pt; font-weight: 700; }

/* ---------- Kho ---------- */
.phieu-kho { background: #fff; border: 1px solid var(--mau-vien); border-radius: var(--bo-goc); padding: 14px; }
.hop-quet-nhap { font-size: 17px; padding: 12px 14px; border: 2px solid var(--mau-chinh); margin-bottom: 10px; }
.nhom-nut { display: flex; gap: 6px; flex-wrap: wrap; }
.thanh-loc { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; background: #fff; border: 1px solid var(--mau-vien); border-radius: var(--bo-goc); padding: 10px 12px; }

.chip-size { display: inline-flex; align-items: baseline; gap: 4px; background: #eef2f8; border-radius: 6px; padding: 2px 7px; margin: 2px 3px 2px 0; font-size: 12.5px; }
.chip-size b { color: var(--mau-chinh-dam); }
.chip-size.het { background: #fdeaea; }
.chip-size.sap-het { background: #fff4d6; }
.nhan-phu { background: #efe9ff; color: #4f3aa6; font-size: 11px; padding: 1px 6px; border-radius: 5px; }
.nhan-canh-bao { background: #fff1d6; color: #8a5a00; font-size: 11.5px; padding: 1px 6px; border-radius: 5px; }
.nhan-dang-chay { background: #e2f7ec; color: #0f6b48; font-size: 11.5px; padding: 1px 6px; border-radius: 5px; margin-left: 4px; }
.canh-bao-do { color: var(--mau-loi); font-weight: 600; margin-top: 6px; }
.anh-nho { width: 44px; height: 56px; object-fit: cover; border-radius: 6px; background: #f0f2f5; }
.anh-nho.trong { background: #f0f2f5; }

/* ---------- Đổi trả ---------- */
.ds-dong-tra .dong-tra { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #eef0f3; }
.dong-tra.da-tra { opacity: .55; }
.nut-dong-tra { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.hang-thong-tin { display: grid; gap: 3px; }

/* ---------- Thanh toán / hộp thoại ---------- */
.hop-thoai-nen { position: fixed; inset: 0; background: rgba(16, 24, 40, .45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.hop-thoai { background: #fff; border-radius: 14px; padding: 18px; width: min(720px, 96vw); max-height: 92vh; overflow: auto; box-shadow: 0 20px 60px rgba(16,24,40,.3); }
.hop-nho { width: min(560px, 96vw); }
.hop-dau { display: flex; align-items: center; margin-bottom: 10px; }
.hop-dau h3 { margin: 0; }
.hop-dau .dong { margin-left: auto; background: transparent; border: 0; font-size: 18px; cursor: pointer; color: #98a1ad; }
.tt-tong { font-size: 15px; margin-bottom: 10px; }
.tt-tong b { font-size: 24px; color: var(--mau-chinh-dam); }
.luoi-tt { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.tt-con-lai { font-size: 15px; font-weight: 700; padding: 8px 0; }
.tt-con-lai.thieu { color: var(--mau-loi); }
.tt-con-lai.thua { color: var(--mau-canh-bao); }
.tt-con-lai.du { color: var(--mau-ok); }
.tt-thoi { align-self: end; padding-bottom: 8px; color: var(--mau-canh-bao); font-weight: 600; }
.qr-xem { text-align: center; margin-top: 6px; }
.anh-qr { width: 170px; height: 170px; margin: 0 auto; }
.anh-qr svg { width: 100%; height: 100%; }
.xong-dong { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed #e7eaee; }
.xong-dong b { font-size: 18px; }
#hopXong .hop-nho { text-align: center; }
#hopXong .xong-dong { text-align: left; }
#hopXong .hop-nut { justify-content: center; }
.hop-thoai-nho { background: #fff; border-radius: 12px; padding: 18px; width: min(460px, 94vw); }

/* ---------- Thông báo ---------- */
.khung-thong-bao { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 100; }
.thong-bao { background: #16202c; color: #fff; padding: 11px 16px; border-radius: 9px; font-size: 14px; box-shadow: 0 8px 24px rgba(16,24,40,.25); transition: opacity .3s; max-width: 380px; }
.thong-bao.ok { background: #10694b; }
.thong-bao.loi { background: #b3261e; }
.thong-bao.canh-bao { background: #8a5a00; }
.thong-bao.an { opacity: 0; }

/* ================= IN PHIẾU 80mm ================= */
#khung-in, #khung-tem { display: none; }

@page { size: 80mm auto; margin: 0; }
@page tem3522 { size: 72mm 22mm; margin: 0; }
@page tem4030 { size: 40mm 30mm; margin: 0; }

.phieu {
  width: 80mm; padding: 2mm 3mm 1mm; background: #fff; color: #000;
  font-family: Arial, Helvetica, sans-serif; font-size: 8pt; line-height: 1.28;
}
.phieu-logo { text-align: center; margin-bottom: 1mm; height: 26.5mm; }
.phieu-logo img { width: 19mm; height: 26mm; object-fit: contain; filter: grayscale(1) contrast(1.6); }
.phieu-ten { text-align: center; font-weight: 700; font-size: 10pt; letter-spacing: .2px; }
.phieu-dia-chi, .phieu-dien-thoai { text-align: center; font-size: 7pt; }
.phieu-tieu-de { text-align: center; font-weight: 700; font-size: 10.5pt; margin: 2.2mm 0 1mm; }
.phieu-dong { text-align: center; font-size: 7.5pt; }
.phieu-khach { margin: 2mm 0 1mm; font-size: 7.6pt; }
.phieu-khach div { line-height: 1.35; }
.phieu-bang { width: 100%; border-collapse: collapse; margin-top: 1mm; font-size: 8pt; }
.phieu-bang th { font-size: 7.6pt; text-align: left; border-top: .3mm solid #000; border-bottom: .3mm solid #000; padding: .6mm 0; }
.phieu-bang th.giua { text-align: center; }
.phieu-bang th.phai { text-align: right; }
.phieu-bang td { padding: .5mm 0; vertical-align: top; }
.phieu-bang .ten-hang td { font-weight: 700; font-size: 8.4pt; padding-top: 1.4mm; }
.phieu-bang .so-lieu td { border-bottom: .2mm dotted #000; padding-bottom: 1mm; }
.phieu-bang .so-lieu td.giua { text-align: center; }
.phieu-bang .so-lieu td.phai { text-align: right; }
.phieu-bang .gia-goc { text-decoration: line-through; font-size: 6.6pt; margin-left: 1mm; }
.dong-giam-o { font-size: 7pt; }
.phieu-tong { margin-top: 1.6mm; }
.phieu-tong .dong { display: flex; justify-content: space-between; gap: 2mm; padding: .3mm 0; font-size: 8pt; }
.phieu-tong .dong.dam { font-weight: 700; font-size: 8.6pt; }
.phieu-chu { font-style: italic; text-align: center; font-size: 7pt; margin-top: .6mm; }
.phieu-qr { width: 28mm; margin: 2.2mm auto 1mm; }
.phieu-qr svg { width: 100%; height: auto; }
.phieu-ngan-hang { text-align: center; font-weight: 700; font-size: 7.6pt; }
.phieu-ten-cty { text-align: center; font-weight: 700; font-size: 7.4pt; }
.phieu-loi-cuoi { text-align: center; font-style: italic; font-size: 6.7pt; margin-top: 2.4mm; }
.phieu-cam-on { text-align: center; font-style: italic; font-size: 7.2pt; margin-top: .8mm; }
.phieu-barcode { text-align: center; margin-top: 2mm; }
.phieu-barcode svg { max-width: 62mm; height: 9mm; }
.phieu-phap-ly { text-align: center; font-size: 6.4pt; margin-top: .8mm; letter-spacing: .2px; }
.in-lai { font-size: 6.6pt; font-weight: 400; }

/* ================= IN TEM ================= */
.khung-tem { background: #fff; }
.khung-tem.kho-35x22 { page: tem3522; width: 72mm; }
.khung-tem.kho-40x30 { page: tem4030; width: 40mm; }
.khung-tem.kho-35x22 .tem { float: left; margin: 0 2mm 0 0; break-inside: avoid; border: 0; }
.khung-tem.kho-35x22 .tem:nth-child(2n) { margin-right: 0; page-break-after: always; break-after: page; }
.khung-tem.kho-40x30 .tem { page-break-after: always; break-after: page; border: 0; }

@media print {
  html, body { background: #fff !important; }
  body > * { display: none !important; }
  #khung-in, #khung-tem { display: none !important; }
  body.dang-in-phieu #khung-in { display: block !important; }
  body.dang-in-tem #khung-tem { display: block !important; }
  .phieu, .khung-tem { margin: 0; }
}

/* Màn hẹp / iPad dọc */
@media (max-width: 1100px) {
  .ban-hang { grid-template-columns: 1fr; }
  .cot-phai { position: static; }
  .bang-gio-wrap { max-height: none; }
  .in-tem { grid-template-columns: 1fr; }
  .luoi-the { grid-template-columns: repeat(2, 1fr); }
  .luoi-3 { grid-template-columns: 1fr; }
  .thanh-tab { overflow-x: auto; }
}

/* chọn nhanh trong hộp thoại */
.danh-sach-chon { display: grid; gap: 8px; margin: 12px 0; }
.nut-chon-day { justify-content: flex-start; text-align: left; width: 100%; }
/* lưới thẻ tổng quan */
.luoi-the { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.luoi-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
@media (max-width: 1100px) { .luoi-the { grid-template-columns: repeat(2, 1fr); } .luoi-2 { grid-template-columns: 1fr; } }
.the-so .so-lon { font-size: 22px; font-weight: 700; margin: 4px 0 2px; }
.canh-bao-dong { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  padding: 8px 12px; border-radius: 8px; margin-bottom: 8px; }
.the-nho { background: #eef2ff; color: #3730a3; border-radius: 6px; padding: 1px 6px; font-size: 11px; }
.con-hang { color: #047857; }

/* ẩn cột theo lựa chọn */
#bangHang.an-anh .cot-anh, #bangHang.an-nhom .cot-nhom,
#bangHang.an-size .cot-size, #bangHang.an-gia .cot-gia,
#bangHang.an-ton .cot-ton { display: none; }

/* phiếu chờ gửi khi mất mạng */
.cho-gui { position: fixed; right: 16px; bottom: 16px; z-index: 60; cursor: pointer;
  background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; padding: 8px 14px;
  border-radius: 999px; font-size: 13px; box-shadow: 0 4px 14px rgba(0,0,0,.12); }

/* thanh menu nhiều mục: thu nhỏ để không tràn */
.thanh-tren .nav, .nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav-item { padding: 6px 9px !important; font-size: 13px; white-space: nowrap; }
