:root {
  --blue: #0068FF; --blue-d: #0050C8; --blue-50: #EEF4FF; --blue-100: #D9E7FF;
  --navy: #0A1F44; --slate: #576C8A; --line: #E2E8F0; --bg: #F6F8FC; --card: #fff; --text: #1B2433;
  --green: #12A150; --green-50: #E8F7EE; --amber: #D98200; --amber-50: #FFF5E0; --red: #E5302A; --red-50: #FDECEC; --gray-50: #F1F4F8;
  --r: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 "Be Vietnam Pro", -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-text-size-adjust: 100%; }
a { color: var(--blue); text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }

/* header */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 700; white-space: nowrap; }
.brand img { height: 22px; }
.brand span { padding-left: 10px; border-left: 1px solid var(--line); font-size: 14px; }
#nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
#nav a { padding: 8px 12px; border-radius: 10px; color: var(--slate); font-weight: 600; font-size: 14px; white-space: nowrap; position: relative; }
#nav a.on { color: var(--blue); background: var(--blue-50); }
#nav a .dot { position: absolute; top: 2px; right: 2px; background: var(--red); color: #fff; font-size: 10px; border-radius: 9px; padding: 0 5px; line-height: 16px; }
.top select.lang { width: auto; margin: 0; padding: 5px 8px; font-size: 13px; border-radius: 8px; flex: none; }
#who { font-size: 13px; color: var(--slate); text-align: right; white-space: nowrap; }
#who b { color: var(--navy); display: block; }
@media (max-width: 760px) {
  .top-in { flex-wrap: wrap; height: auto; padding-top: 10px; gap: 6px 12px; }
  .brand span { font-size: 13px; }
  #who { margin-left: auto; }
  #nav { order: 3; flex-basis: 100%; padding-bottom: 8px; }
}

/* layout */
main { padding-top: 22px; padding-bottom: 60px; }
h1 { font-size: 24px; margin: 0 0 4px; color: var(--navy); letter-spacing: -.01em; }
h2 { font-size: 18px; margin: 0 0 12px; color: var(--navy); }
h3 { font-size: 15px; margin: 0 0 8px; color: var(--navy); }
.sub { color: var(--slate); margin: 0 0 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sp { flex: 1; }
.muted { color: var(--slate); }
.small { font-size: 13px; }

/* form */
label.f { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--navy); }
label.f > span.req::after { content: " *"; color: var(--red); }
input, select, textarea { width: 100%; font: inherit; color: var(--text); padding: 11px 12px; border: 1px solid #CBD5E1; border-radius: 10px; background: #fff; margin-top: 5px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue-100); border-color: var(--blue); }
textarea { resize: vertical; min-height: 70px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--blue); color: var(--blue); }
.btn.pri { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.pri:hover { background: var(--blue-d); color: #fff; }
.btn.red { color: var(--red); border-color: #F5C2C0; }
.btn.red:hover { background: var(--red-50); }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.btn.lg { padding: 14px 22px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 20px; cursor: pointer; font-size: 13px; font-weight: 500; background: #fff; user-select: none; }
.chip input { display: none; }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }

/* pills */
.pill { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.tt-giu_cho { background: var(--amber-50); color: var(--amber); }
.tt-bao_ve { background: var(--green-50); color: var(--green); }
.tt-da_ky { background: var(--blue-50); color: var(--blue); }
.tt-het_han { background: var(--gray-50); color: var(--slate); }
.tt-huy { background: var(--red-50); color: var(--red); }
.bg-nhap { background: var(--gray-50); color: var(--slate); } .bg-da_gui { background: var(--blue-50); color: var(--blue); } .bg-thang { background: var(--green-50); color: var(--green); } .bg-thua { background: var(--red-50); color: var(--red); }

/* hero tra cứu */
.hero { background: linear-gradient(135deg, #0068FF 0%, #0A3FA8 100%); color: #fff; border-radius: 20px; padding: 28px; margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: 26px; }
.hero p { color: #D6E4FF; margin: 0 0 18px; }
.mst-box { display: flex; gap: 10px; max-width: 620px; }
.mst-box input { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: .04em; padding: 14px 16px; border: 0; }
.mst-box .btn { background: var(--navy); border: 0; color: #fff; padding: 0 22px; font-size: 16px; }
@media (max-width: 560px) { .mst-box { flex-direction: column; } .mst-box .btn { padding: 14px; } .hero { padding: 20px; } .hero h1 { font-size: 22px; } }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.steps div { background: rgba(255,255,255,.1); border-radius: 12px; padding: 12px; font-size: 13px; color: #E6EEFF; }
.steps b { display: block; color: #fff; font-size: 14px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.kq { border-radius: var(--r); padding: 20px; margin-bottom: 16px; border: 2px solid; }
.kq.ok { background: var(--green-50); border-color: #9DDDB6; }
.kq.mine { background: var(--blue-50); border-color: var(--blue-100); }
.kq.trung { background: var(--red-50); border-color: var(--red); }
.kq.trung h2 { color: var(--red); font-size: 22px; }
.kq .big { font-size: 40px; line-height: 1; margin-bottom: 8px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.stat .n { font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1.2; }
.stat .l { font-size: 12px; color: var(--slate); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.stat.alert { border-color: var(--red); background: var(--red-50); } .stat.alert .n { color: var(--red); }

/* list / table */
.tblwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--slate); background: #FAFBFD; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; } tr.click:hover td { background: #FAFCFF; }
td.num, th.num { text-align: right; white-space: nowrap; }
.list { display: grid; gap: 10px; }
.item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; gap: 12px; align-items: center; cursor: pointer; }
.item:hover { border-color: var(--blue); }
.item .t { font-weight: 700; color: var(--navy); }
.item .m { font-size: 13px; color: var(--slate); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.filters input, .filters select { margin: 0; width: auto; min-width: 160px; padding: 9px 12px; }
.filters input[type=search] { flex: 1; min-width: 200px; }

/* progress */
.han { margin: 12px 0 4px; }
.han .bar { height: 8px; background: var(--gray-50); border-radius: 6px; overflow: hidden; }
.han .bar i { display: block; height: 100%; background: var(--green); border-radius: 6px; }
.han.warn .bar i { background: var(--amber); } .han.bad .bar i { background: var(--red); }
dl.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; margin: 0; font-size: 14px; }
dl.kv dt { color: var(--slate); } dl.kv dd { margin: 0; font-weight: 500; }
@media (max-width: 560px) { dl.kv { grid-template-columns: 110px 1fr; } }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; cursor: zoom-in; background: var(--gray-50); }
.demo-row { border-top: 1px solid var(--line); padding: 12px 0; }
.demo-row:first-child { border-top: 0; padding-top: 0; }
.log { font-size: 13px; color: var(--slate); }
.log div { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.warnbox { background: var(--amber-50); border: 1px solid #F3D28C; color: #7A4B00; border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 14px; }
.infobox { background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--navy); border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 14px; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(10, 31, 68, .55); z-index: 50; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 20px 12px; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 560px; padding: 20px; position: relative; }
.modal.lg { max-width: 820px; }
.modal .x { position: absolute; top: 12px; right: 12px; }
.cam { position: relative; background: #000; border-radius: 14px; overflow: hidden; aspect-ratio: 3/4; max-height: 60vh; margin: 0 auto; }
.cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam .ov { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(0,0,0,.5); color: #fff; font-size: 12px; border-radius: 10px; padding: 8px 10px; }
.shutter { width: 72px; height: 72px; border-radius: 50%; border: 5px solid var(--blue-100); background: var(--blue); cursor: pointer; display: block; margin: 14px auto 6px; }
.shutter:disabled { background: #9DB6E0; cursor: not-allowed; }
.st { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 8px 0; font-size: 13px; }
.st span { padding: 4px 10px; border-radius: 20px; background: var(--gray-50); color: var(--slate); font-weight: 600; }
.st span.ok { background: var(--green-50); color: var(--green); } .st span.bad { background: var(--red-50); color: var(--red); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.thumbs div { position: relative; } .thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; }
.thumbs button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--red); color: #fff; cursor: pointer; font-size: 12px; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 60; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox img { max-width: 96vw; max-height: 94vh; }

/* quote editor */
.qtbl input, .qtbl select { margin: 0; padding: 8px; font-size: 14px; }
.qtbl td { padding: 6px; vertical-align: middle; }
.tot { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; max-width: 360px; margin-left: auto; font-size: 15px; }
.tot b { text-align: right; } .tot .g { font-size: 18px; color: var(--blue); }
@media (max-width: 700px) {
  .qtbl thead { display: none; } .qtbl tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px; border-bottom: 1px solid var(--line); }
  .qtbl td { border: 0; padding: 0; } .qtbl td.full { grid-column: 1 / -1; } .qtbl td::before { content: attr(data-l); display: block; font-size: 11px; color: var(--slate); font-weight: 600; }
}

/* login */
.login { max-width: 420px; margin: 40px auto; }
.login .logo { text-align: center; margin-bottom: 18px; } .login .logo img { height: 34px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--gray-50); border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.tabs button { border: 0; background: none; padding: 9px; border-radius: 9px; font: inherit; font-weight: 600; color: var(--slate); cursor: pointer; }
.tabs button.on { background: #fff; color: var(--blue); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 99; display: grid; gap: 8px; width: min(92vw, 460px); }
#toast div { background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.2); }
#toast div.err { background: var(--red); } #toast div.ok { background: var(--green); }
.empty { text-align: center; color: var(--slate); padding: 30px; background: #fff; border: 1px dashed var(--line); border-radius: var(--r); }

/* ===== Trang chủ: 1 ô MST ===== */
.home { max-width: 560px; margin: 8vh auto 0; text-align: center; }
.home h1 { font-size: 26px; } .home p.sub { margin-bottom: 22px; }
.home form { display: flex; gap: 10px; }
.home input { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: .05em; text-align: center; padding: 16px; border: 2px solid var(--blue-100); border-radius: 14px; }
.home input:focus { border-color: var(--blue); }
.home .btn { padding: 0 24px; font-size: 16px; border-radius: 14px; }
@media (max-width: 560px) { .home { margin-top: 4vh; } .home form { flex-direction: column; } .home .btn { padding: 15px; } }
#kq { max-width: 640px; margin: 22px auto 0; text-align: left; scroll-margin-top: 110px; }
.cty { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 12px 0 16px; }
.cty .n { font-weight: 800; color: var(--navy); font-size: 16px; }
/* ===== Check-in 2 ảnh ===== */
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0 14px; }
.slot { border: 2px dashed #B9CBEA; border-radius: 14px; background: var(--blue-50); aspect-ratio: 3/4; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px; cursor: pointer; position: relative; overflow: hidden; color: var(--navy); }
.slot b { font-size: 14px; } .slot small { color: var(--slate); font-size: 12px; margin-top: 4px; } .slot .ic { font-size: 30px; margin-bottom: 6px; }
.slot.done { border-style: solid; border-color: var(--green); padding: 0; }
.slot.done img { width: 100%; height: 100%; object-fit: cover; }
.slot.done .lb { position: absolute; left: 6px; top: 6px; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.slot.done .re { position: absolute; right: 6px; bottom: 6px; background: rgba(10,31,68,.75); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 10px; }
.camwrap { margin-bottom: 8px; } .camhd { font-weight: 700; color: var(--navy); margin-bottom: 6px; text-align: center; }
.photos.two { grid-template-columns: repeat(2, minmax(0, 220px)); }
.photos figure { margin: 0; } .photos figcaption { font-size: 12px; color: var(--slate); margin-top: 3px; }
/* ===== Thông báo ===== */
.tb { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.tb:first-child { border-radius: var(--r) var(--r) 0 0; } .tb:last-child { border-bottom: 0; border-radius: 0 0 var(--r) var(--r); }
.tb.moi { background: #F7FAFF; } .tb .ic { font-size: 22px; line-height: 1; } .tb .t { font-weight: 700; color: var(--navy); } .tb .m { font-size: 14px; color: var(--text); } .tb .l { font-size: 12px; color: var(--slate); margin-top: 3px; }
.tb.do .t { color: var(--red); }
.tblist { border: 1px solid var(--line); border-radius: var(--r); }
/* ===== Thư viện ảnh demo (admin) ===== */
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gal .g { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; cursor: pointer; }
.gal .g .im { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--gray-50); }
.gal .g .im img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.gal .g .tx { padding: 10px 12px; font-size: 13px; } .gal .g .tx b { color: var(--navy); font-size: 14px; }
.vtoggle { display: inline-flex; background: var(--gray-50); border-radius: 10px; padding: 3px; }
.vtoggle button { border: 0; background: none; font: inherit; font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: 8px; color: var(--slate); cursor: pointer; }
.vtoggle button.on { background: #fff; color: var(--blue); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.redrow td { background: #FFF5F5; } .san { color: var(--red); font-weight: 700; }
.badge-san { display: inline-block; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 10px; }
/* ===== Form báo giá ===== */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 5px; }
.seg label { padding: 9px 14px; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--slate); border-right: 1px solid var(--line); } .seg label:last-child { border-right: 0; }
.seg input { display: none; } .seg label.on { background: var(--blue); color: #fff; }
.hang-ten { display: flex; gap: 10px; align-items: center; } .hang-ten img { width: 44px; height: 44px; object-fit: contain; background: var(--gray-50); border-radius: 8px; flex: none; }
.ban-list div { padding: 9px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 10px; align-items: center; font-size: 14px; }
/* ===== Thư báo giá (giống RBW ONE, màu PUDU) ===== */
.thu-wrap { background: #E9EDF4; margin: 0 -16px; padding: 18px 16px 40px; }
.thu { background: #fff; max-width: 860px; margin: 0 auto; padding: 34px 40px 28px; box-shadow: 0 4px 24px rgba(10,31,68,.08); font-size: 13.5px; line-height: 1.55; color: #1B2433; }
.thu .bar { height: 4px; background: linear-gradient(90deg, #0068FF, #0A3FA8); margin: -34px -40px 26px; }
.thu .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.thu .head img { height: 30px; } .thu .head .tag { font-size: 11px; color: var(--slate); margin-top: 6px; letter-spacing: .04em; text-transform: uppercase; }
.thu .head h1 { margin: 0; font-size: 26px; letter-spacing: .04em; color: var(--navy); text-align: right; } .thu .head .en { text-align: right; color: var(--blue); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.thu .meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.thu .meta div { background: #F6F8FC; border-radius: 10px; padding: 8px 12px; } .thu .meta small { display: block; color: var(--slate); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; } .thu .meta b { color: var(--navy); }
.thu .parties { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.thu .party { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; } .thu .party.to { border-color: var(--blue-100); background: #F7FAFF; }
.thu .party .k { font-size: 11px; color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; } .thu .party .n { font-weight: 800; color: var(--navy); font-size: 15px; margin: 2px 0 4px; } .thu .party p { margin: 0; font-size: 12.5px; color: #4A5568; }
.thu .letter p { margin: 0 0 8px; }
.thu .sec { margin: 22px 0 10px; display: flex; align-items: baseline; gap: 10px; border-bottom: 2px solid var(--blue); padding-bottom: 6px; }
.thu .sec small { color: var(--blue); font-weight: 700; font-size: 12px; } .thu .sec h2 { margin: 0; font-size: 16px; text-transform: uppercase; letter-spacing: .03em; }
.thu table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.thu table.tbl th { background: var(--navy); color: #fff; font-size: 11.5px; padding: 8px; text-align: left; } .thu table.tbl td { border-bottom: 1px solid var(--line); padding: 8px; vertical-align: middle; }
.thu .c { text-align: center; } .thu .r { text-align: right; white-space: nowrap; }
.thu .hang { display: flex; gap: 10px; align-items: center; } .thu .hang img { width: 62px; height: 62px; object-fit: contain; flex: none; } .thu .hang.pk img { width: 40px; height: 40px; }
.thu .hang .hq { font-weight: 700; color: var(--navy); } .thu .hang .mt { font-size: 12px; color: var(--slate); }
.thu .strike { text-decoration: line-through; color: #9AA5B5; display: block; font-size: 11.5px; }
.thu .grp { display: inline-block; background: var(--blue); color: #fff; font-weight: 700; font-size: 12px; border-radius: 8px; padding: 3px 10px; margin: 14px 0 6px; }
.thu .sum { display: flex; justify-content: flex-end; margin-top: 8px; } .thu .sum table { min-width: 320px; font-size: 13.5px; } .thu .sum td { padding: 4px 8px; } .thu .sum td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.thu .sum tr.tot td { border-top: 2px solid var(--navy); font-size: 16px; font-weight: 800; color: var(--blue); padding-top: 8px; } .thu .sum .red { color: var(--red); }
.thu .words { font-style: italic; text-align: right; margin-top: 4px; color: #4A5568; }
.thu .prod { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; display: grid; grid-template-columns: 200px 1fr; gap: 16px; break-inside: avoid; }
.thu .prod .stage { background: radial-gradient(circle at 50% 60%, #EEF4FF, #fff 70%); border-radius: 12px; display: flex; align-items: center; justify-content: center; position: relative; min-height: 200px; }
.thu .prod .stage img { max-width: 100%; max-height: 220px; object-fit: contain; } .thu .prod .no { position: absolute; top: 8px; left: 10px; font-weight: 800; color: var(--blue); }
.thu .prod h3 { margin: 0 0 4px; font-size: 16px; } .thu .prod .gt { color: var(--slate); font-size: 12.5px; margin-bottom: 8px; }
.thu dl.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 0; font-size: 12px; } .thu dl.specs div.full { grid-column: 1 / -1; } .thu dl.specs dt { color: var(--slate); font-size: 11px; } .thu dl.specs dd { margin: 0; font-weight: 600; color: var(--navy); }
.thu .vlink { display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; font-weight: 600; font-size: 12.5px; color: var(--blue); }
.thu ol.terms { margin: 0; padding-left: 20px; } .thu ol.terms li { margin-bottom: 5px; }
.thu .sign { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: center; margin-top: 26px; }
.thu .sign .k { font-weight: 800; color: var(--navy); } .thu .sign .r2 { font-size: 12px; color: var(--slate); } .thu .sign .cv { font-weight: 700; margin-top: 4px; min-height: 18px; } .thu .sign .box { height: 90px; } .thu .sign .nm { font-weight: 700; }
.thu .foot { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); margin-top: 22px; padding-top: 10px; font-size: 11.5px; color: var(--slate); }
@media (max-width: 700px) {
  .thu { padding: 22px 16px; } .thu .bar { margin: -22px -16px 18px; } .thu .head h1 { font-size: 20px; }
  .thu .meta { grid-template-columns: 1fr 1fr; } .thu .parties { grid-template-columns: 1fr; } .thu .prod { grid-template-columns: 1fr; } .thu .hide-m { display: none; }
  .thu .sum table { min-width: 0; width: 100%; } .thu table.tbl { font-size: 12px; } .thu .hang img { width: 44px; height: 44px; }
}
.noprint { margin-bottom: 14px; }
@media print {
  @page { size: A4; margin: 10mm; }
  html { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff; } .top, .noprint, #toast, .xem-bar { display: none !important; } main { padding: 0 !important; } .wrap { max-width: none; padding: 0; }
  .thu-wrap { background: #fff; margin: 0; padding: 0; } .thu { box-shadow: none; padding: 0; max-width: none; } .thu .bar { margin: 0 0 18px; } .thu .prod, .thu .sign { break-inside: avoid; }
}
