/* GB Cargo - giao dien. Navy cong nghe (dong bo landing), noi dung nen sang de doc bang bieu. Mobile-first. */
@font-face{font-family:Inter;font-style:normal;font-weight:400 700;font-display:swap;src:url(../fonts/inter-latin-sub.woff2) format("woff2");unicode-range:U+0020-007E,U+00A0-00FF,U+2013-2014,U+2018-201D,U+2022,U+2026,U+20AC,U+2190,U+2192,U+2212}
@font-face{font-family:Inter;font-style:normal;font-weight:400 700;font-display:swap;src:url(../fonts/inter-vietnamese-sub.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+1EA0-1EF9,U+20AB}
:root {
  --navy: #0a2440; --navy-2: #0d2a4a; --navy-3: #123a66; --blue: #1e88e5; --btn: #1565c0; --btn-h: #0f4f9c; --link: #0f5db3;
  --blue-soft: #e6f1fc; --ink: #14202e; --muted: #536375; --line: #d3deea; --bg: #f3f7fb; --card: #fff;
  --ok: #17703f; --warn: #8a4b00; --bad: #a8231b; --radius: 14px; --shadow: 0 1px 2px rgba(10,36,64,.06), 0 6px 18px rgba(10,36,64,.06);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--bg); line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
main { flex: 1 0 auto; width: 100%; }
a { color: var(--link); }
h1 { font-size: clamp(1.45rem, 4.5vw, 2rem); line-height: 1.2; letter-spacing: -.01em; margin: 1.2rem 0 .8rem; color: var(--navy); }
h2 { font-size: 1.15rem; margin: 0 0 .6rem; color: var(--navy); }
h3 { font-size: 1.02rem; margin: .8rem 0 .4rem; color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: .75rem; top: -4rem; background: #fff; color: var(--navy); padding: .6rem .9rem; border-radius: 8px; font-weight: 600; z-index: 200; }
.skip:focus { top: .6rem; }
.container { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 1rem 1.5rem; }
.container-wide { max-width: 1280px; }
.narrow { max-width: 460px; margin: 1.5rem auto 0; }
.muted { color: var(--muted); }
.text-bad { color: var(--bad); }
.pre { white-space: pre-wrap; word-break: break-word; }
.num { text-align: right; white-space: nowrap; }
.inline { display: inline; }
code, .code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; background: #e9eff6; padding: .05rem .3rem; border-radius: 5px; word-break: break-all; }
pre.code { padding: .8rem; overflow-x: auto; border-radius: 10px; }

/* ---- header ---- */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(100,181,246,.25); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .9rem; padding-top: .55rem; padding-bottom: .55rem; }
.brand { display: flex; align-items: center; gap: .55rem; color: #fff; font-weight: 700; font-size: 1.15rem; text-decoration: none; min-height: 44px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; background: rgba(255,255,255,.08); }
.brand span { color: #8cc7ff; }
.header-right { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.main-nav { display: flex; gap: .15rem; order: 3; flex: 1 1 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: .1rem; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { color: #d6e6f8; text-decoration: none; padding: .55rem .8rem; border-radius: 999px; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; font-weight: 500; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.main-nav a[aria-current="page"] { color: #fff; background: rgba(30,136,229,.35); }
.lang { display: inline-flex; border: 1px solid #5b86b3; border-radius: 999px; overflow: hidden; }
.lang a, .lang span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: .9rem; text-decoration: none; color: #d6e6f8; }
.lang span { background: #fff; color: var(--navy); }
.lang a:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---- footer ---- */
.site-footer { background: var(--navy); color: #b9cde3; font-size: .88rem; padding: 1.4rem 0 1.6rem; margin-top: 2.5rem; }
.site-footer p { margin: .3rem 0; }
.site-footer a { color: #cfe5ff; }
.site-footer .muted { color: #9fb7d2; }
.footer-links { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; margin-top: .6rem; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; }

/* ---- layout blocks ---- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1000px 400px at 85% -20%, rgba(30,136,229,.55), transparent 60%), linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; padding: 1.8rem 1.3rem; border-radius: var(--radius); margin: 1rem 0 1.2rem; box-shadow: var(--shadow); }
.hero h1 { color: #fff; margin-top: 0; max-width: 30ch; }
.hero p { color: #d6e6f8; max-width: 52ch; }
.hero .actions { margin-top: 1.1rem; }
.hero .btn:not(.btn-primary) { background: transparent; color: #fff; border-color: #7fa9d6; }
.hero .btn:not(.btn-primary):hover { background: rgba(255,255,255,.1); }
.grid, .cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; margin: 1rem 0; box-shadow: var(--shadow); }
.grid > .card, .cards > .card, .grid-2 > .card { margin: 0; }
.order-card { display: block; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.order-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.order-card-head { display: flex; justify-content: space-between; gap: .5rem; align-items: center; flex-wrap: wrap; }
.price { font-size: 1.9rem; font-weight: 700; color: var(--navy); margin: .2rem 0; letter-spacing: -.01em; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-sm { font-size: 1.2rem; font-weight: 700; color: var(--navy); }
.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; }
.page-head h1 { margin: .8rem 0; }
.page-head > h1 { margin-right: auto; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-weight: 600; padding: .6rem 1.1rem; border-radius: 10px; border: 1px solid #b4c5d8; background: #fff; color: var(--navy); cursor: pointer; text-decoration: none; min-height: 48px; transition: background .15s, border-color .15s; }
.btn:hover { border-color: var(--btn); background: var(--blue-soft); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--btn); border-color: var(--btn); color: #fff; }
.btn-primary:hover { background: var(--btn-h); border-color: var(--btn-h); }
.btn-danger { color: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: #fdecea; border-color: var(--bad); }
.btn-ghost { background: transparent; color: #fff; border-color: #5b86b3; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-sm { padding: .3rem .8rem; min-height: 44px; font-size: .92rem; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.actions form { display: contents; }

/* ---- forms ---- */
.form { display: block; }
.field { display: block; margin: .7rem 0; }
.field-label { display: block; font-weight: 600; margin-bottom: .25rem; font-size: .95rem; color: var(--navy); }
.hint { display: block; color: var(--muted); font-size: .86rem; margin-top: .2rem; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); padding: .6rem .7rem; border: 1px solid #98aec6; border-radius: 10px; background: #fff; min-height: 48px; }
input:hover, select:hover, textarea:hover { border-color: var(--btn); }
input[type="checkbox"] { width: 1.3rem; height: 1.3rem; min-height: 0; margin: 0 .55rem 0 0; flex: none; accent-color: var(--btn); }
input[type="file"] { padding: .55rem; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(30,136,229,.45); outline-offset: 0; border-color: var(--btn); }
input[aria-invalid="true"] { border-color: var(--bad); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: .9rem 0; padding: .7rem .9rem; min-width: 0; }
legend { font-weight: 700; color: var(--navy); padding: 0 .4rem; }
.check { display: flex; align-items: flex-start; margin: .5rem 0; min-height: 44px; padding: .4rem 0; cursor: pointer; }
.row-2, .row-3, .row-4 { display: grid; gap: 0 .8rem; grid-template-columns: 1fr; }
.row-4 { grid-template-columns: 1fr 1fr; }
.inline-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.inline-form .field { flex: 1 1 220px; }
.inline-form .btn { margin-bottom: .7rem; }
.scan input { font-size: 1.25rem; min-height: 56px; }
.scan .btn { min-height: 56px; }

/* tooltip (khong can JS) */
.tip { position: relative; display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--blue-soft); color: var(--link); font-size: .8rem; font-weight: 700; cursor: help; vertical-align: middle; margin-left: .25rem; border: 1px solid #b6d4f2; }
.tip .tip-text { display: none; position: absolute; z-index: 20; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: min(300px, 80vw); background: var(--navy); color: #fff; font-weight: 400; font-size: .85rem; line-height: 1.45; padding: .6rem .75rem; border-radius: 10px; text-align: left; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.tip:hover .tip-text, .tip:focus .tip-text, .tip:focus-within .tip-text { display: block; }
.note-box { background: var(--blue-soft); border: 1px solid #b6d4f2; border-radius: 10px; padding: .6rem .8rem; font-size: .92rem; color: #12365c; }

/* ---- parcels (the gap tren mobile) ---- */
.parcel-rows { display: grid; gap: .7rem; }
.parcel-row { border: 1px solid var(--line); border-radius: var(--radius); background: #fbfdff; margin: 0; padding: 0; }
.parcel-row > summary { list-style: none; display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; min-height: 52px; cursor: pointer; font-weight: 700; color: var(--navy); }
.parcel-row > summary::-webkit-details-marker { display: none; }
.parcel-row > summary::before { content: ""; width: .55rem; height: .55rem; border-right: 2px solid var(--btn); border-bottom: 2px solid var(--btn); transform: rotate(-45deg); transition: transform .15s; flex: none; }
.parcel-row[open] > summary::before { transform: rotate(45deg); }
.parcel-sum { font-weight: 500; color: var(--muted); font-size: .88rem; margin-left: auto; text-align: right; }
.parcel-body { padding: 0 .9rem .9rem; }
.parcel-tools { display: none; gap: .5rem; flex-wrap: wrap; margin-top: .4rem; }
.js .parcel-tools { display: flex; }
.parcel-tools .btn { flex: 1 1 140px; }
fieldset.parcel-row { padding: .7rem .9rem; }

/* ---- alerts, chips ---- */
.alert { padding: .8rem 1rem; border-radius: 10px; margin: 1rem 0; border: 1px solid; }
.alert-ok { background: #e6f5ec; border-color: #9fd3b4; color: #0f4d2b; }
.alert-err { background: #fdecea; border-color: #f0b3ae; color: #7d1a14; }
.alert-warn { background: #fff4e0; border-color: #f0cf8e; color: #5c3600; }
.chip { display: inline-block; padding: .12rem .65rem; border-radius: 999px; font-size: .82rem; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.chip-ok { background: #e6f5ec; color: var(--ok); border-color: #b6dcc5; }
.chip-bad { background: #fdecea; color: var(--bad); border-color: #f0b3ae; }
.chip-warn { background: #fff4e0; color: var(--warn); border-color: #f0cf8e; }
.chip-info { background: var(--blue-soft); color: #0e3f75; border-color: #b6d4f2; }
.chip-muted { background: #eceff3; color: var(--muted); border-color: #d6dde6; }
a.chip { text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; }
.filters { display: flex; gap: .45rem; margin: .8rem 0; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.filter { padding: .5rem .95rem; min-height: 44px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: #fff; color: var(--navy); white-space: nowrap; font-weight: 500; }
.filter:hover { border-color: var(--btn); }
.filter.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; max-width: 100%; }
.table { width: 100%; border-collapse: collapse; background: #fff; font-size: .95rem; }
.table th, .table td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: #eaf1f9; color: var(--navy); font-size: .85rem; text-transform: none; white-space: nowrap; }
.table tbody tr:hover { background: #f6faff; }
.table tfoot th { font-size: 1.05rem; background: #fff; border-bottom: 0; }
.table .num { text-align: right; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: .45rem 0; border-bottom: 1px dashed var(--line); }
ul.plain li:last-child { border-bottom: 0; }
.kv { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.kv dt { color: var(--muted); font-size: .86rem; margin-top: .7rem; }
.kv dd { margin: 0; font-weight: 600; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
details.card > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--navy); }
details.card[open] > summary { margin-bottom: .6rem; }
.subnav { display: flex; gap: .3rem; padding: .6rem 0; border-bottom: 1px solid var(--line); margin-bottom: .5rem; overflow-x: auto; scrollbar-width: thin; }
.subnav a { white-space: nowrap; padding: .5rem .85rem; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; text-decoration: none; color: var(--navy); font-weight: 500; }
.subnav a:hover { background: var(--blue-soft); }
.subnav a[aria-current="page"] { background: var(--navy); color: #fff; }

/* ---- wizard steps ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; list-style: none; padding: 0; margin: 0 0 1.1rem; }
.steps li { display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; font-size: .78rem; color: var(--muted); position: relative; line-height: 1.25; }
.steps li::before { content: ""; position: absolute; top: .9rem; left: -50%; width: 100%; height: 3px; background: #cfdbe8; z-index: 0; }
.steps li:first-child::before { display: none; }
.steps li.done::before, .steps li.current::before { background: var(--btn); }
.steps li span { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: #dbe5f0; color: var(--navy); font-weight: 700; font-size: .9rem; }
.steps li.current { color: var(--navy); font-weight: 700; } .steps li.current span { background: var(--btn); color: #fff; box-shadow: 0 0 0 4px var(--blue-soft); }
.steps li.done span { background: var(--ok); color: #fff; }

/* ---- timeline ---- */
.timeline { list-style: none; margin: 1rem 0; padding: 0 0 0 .6rem; }
.timeline li { position: relative; padding: 0 0 1.3rem 1.8rem; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: -.05rem; top: 1.1rem; bottom: -.1rem; width: 3px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li.done::before { background: var(--ok); }
.timeline .dot { position: absolute; left: -.5rem; top: .15rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: #fff; border: 3px solid #b4c3d3; z-index: 1; }
.timeline li.done { color: var(--ink); } .timeline li.done .dot { border-color: var(--ok); background: var(--ok); }
.timeline li.current { color: var(--navy); } .timeline li.current .dot { border-color: var(--btn); background: var(--btn); box-shadow: 0 0 0 5px var(--blue-soft); }
.timeline li.current strong { color: var(--btn); }

/* ---- payment ---- */
.pay-amount { background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; border-radius: var(--radius); padding: 1.2rem; text-align: center; margin: 1rem 0; }
.pay-amount .price { color: #fff; font-size: 2.4rem; margin: 0; }
.pay-amount p { margin: 0; color: #cfe2f7; }
.ref-box { background: var(--blue-soft); border: 2px dashed var(--btn); border-radius: 12px; padding: .8rem; }
.ref-box strong { font-size: 1.25rem; letter-spacing: .03em; }
.copy { font: inherit; font-size: .88rem; font-weight: 600; min-height: 44px; padding: .3rem .9rem; border-radius: 999px; border: 1px solid var(--btn); background: #fff; color: var(--btn); cursor: pointer; display: none; }
.js .copy { display: inline-flex; align-items: center; }
.copy:hover { background: var(--blue-soft); }
.copy.copied { background: var(--ok); border-color: var(--ok); color: #fff; }

.status-actions .form { border-top: 1px solid var(--line); padding-top: .4rem; }
.empty { text-align: center; padding: 2rem 1rem; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius); background: #fff; }
.legal h2 { margin-top: 1.6rem; }
.legal p, .legal li { max-width: 72ch; }
.legal ul { padding-left: 1.2rem; }
.draft-banner { background: #fff4e0; border: 1px solid #f0cf8e; color: #5c3600; padding: .8rem 1rem; border-radius: 10px; font-weight: 600; }

/* ---- responsive ---- */
@media (max-width: 719px) {
  .actions > .btn, .actions > form { flex: 1 1 100%; }
  .actions > form .btn { width: 100%; }
  .table { display: block; overflow-x: auto; max-width: 100%; }
  .table td { min-width: 6.5rem; }
  .site-footer .footer-links a { min-width: 44px; }
}
@media (min-width: 720px) {
  .container { padding: 0 1.5rem 2rem; }
  .header-inner { flex-wrap: nowrap; }
  .main-nav { order: 0; flex: 1 1 auto; overflow: visible; }
  .header-right { margin-left: 0; }
  .grid, .cards { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .row-2 { grid-template-columns: 1fr 1fr; } .row-3 { grid-template-columns: repeat(3, 1fr); } .row-4 { grid-template-columns: repeat(4, 1fr); }
  .kv { grid-template-columns: max-content 1fr; gap: .5rem 1.4rem; align-items: center; }
  .kv dt { margin-top: 0; font-size: .95rem; }
  .steps li { flex-direction: row; font-size: .9rem; justify-content: center; }
  .steps li::before { top: 50%; }
  .hero { padding: 2.6rem 2rem; }
}
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, 1fr); } .cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 380px) { .row-4 { grid-template-columns: 1fr 1fr; } .container { padding-left: .8rem; padding-right: .8rem; } .price { font-size: 1.6rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .subnav, .btn { display: none; } }

/* ---- bo sung ---- */
.section-title { margin: 1.8rem 0 .8rem; font-size: 1.3rem; }
.how { list-style: none; padding: 0; margin: 0; counter-reset: none; }
.how .card { position: relative; padding-top: 1.4rem; }
.how-n { position: absolute; top: -.8rem; left: 1rem; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: var(--btn); color: #fff; font-weight: 700; box-shadow: 0 0 0 4px var(--bg); }
.pay-steps { padding-left: 1.2rem; margin: 0 0 .6rem; }
.sr-copy { position: fixed; left: -9999px; top: 0; }
.auth-links { line-height: 2.4; }
.auth-links a { padding: .5rem .2rem; }
@media (max-width: 719px) { .btn-block-m { width: 100%; } .how { grid-template-columns: 1fr; } }

.table th, .table td { overflow-wrap: normal; word-break: normal; }
.table td:last-child form { margin: .15rem 0; }
.table select { width: auto; min-width: 8rem; }
