/* HC Order Tracking admin console (tracking.hc.tools/admin). Staff-only, behind HC Hub login.
   One look for every admin page: dark sidebar, light content, compact tables. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');
:root { --bg:#f5f6f8; --panel:#fff; --ink:#0f172a; --text:#1e293b; --muted:#64748b; --line:#e2e8f0; --line2:#cbd5e1;
  --side:#0f172a; --side2:#1e293b; --brand:#2563eb; --brand-50:#eff6ff; --ok:#059669; --ok-50:#ecfdf5; --warn:#d97706; --warn-50:#fffbeb;
  --err:#dc2626; --err-50:#fef2f2; --vio:#7c3aed; --vio-50:#f5f3ff; --cyan:#0891b2; --cyan-50:#ecfeff; --r:10px;
  --mono:'JetBrains Mono', ui-monospace, Consolas, monospace; }
* { box-sizing: border-box; }
body.ad { margin: 0; background: var(--bg); color: var(--text); font: 400 14px/1.5 Inter, system-ui, "Segoe UI", sans-serif; }
.ad a { color: var(--brand); text-decoration: none; } .ad a:hover { text-decoration: underline; }
.ad h1 { font-size: 22px; font-weight: 700; margin: 0; color: var(--ink); } .ad h2 { font-size: 16px; font-weight: 600; margin: 0; color: var(--ink); }
.ad h3 { font-size: 14px; font-weight: 600; margin: 0; color: var(--ink); }
.mono { font-family: var(--mono); font-size: 12.5px; } .muted { color: var(--muted); } .small { font-size: 12.5px; } .nowrap { white-space: nowrap; }
.right { text-align: right; } .grow { flex: 1; } .row { display: flex; align-items: center; gap: 8px; } .wrap { flex-wrap: wrap; }
.stack { display: grid; gap: 16px; } .stack-sm { display: grid; gap: 8px; }

/* shell */
.ad-app { display: grid; grid-template-columns: 236px minmax(0,1fr); min-height: 100vh; }
.ad-side { background: var(--side); color: #cbd5e1; position: sticky; top: 0; height: 100vh; overflow: auto; display: flex; flex-direction: column; }
.ad-side__brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; color: #fff; font-weight: 700; }
.ad-side__brand i { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg,#2563eb,#7c3aed); display: grid; place-items: center; font-style: normal; }
.ad-side__brand small { display: block; font-weight: 400; color: #94a3b8; font-size: 11px; }
.ad-side__sec { padding: 14px 18px 6px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #64748b; font-weight: 700; }
.ad-side a { display: flex; align-items: center; gap: 10px; padding: 7px 18px; margin: 1px 8px; border-radius: 7px; color: #cbd5e1; text-decoration: none; }
.ad-side a:hover { background: var(--side2); color: #fff; text-decoration: none; }
.ad-side a.is-active { background: #2563eb; color: #fff; }
.ad-side a .cnt { margin-left: auto; background: #dc2626; color: #fff; border-radius: 999px; font-size: 11px; padding: 0 7px; font-weight: 600; }
.ad-side a .cnt--muted { background: #334155; }
.ad-side__foot { margin-top: auto; padding: 14px 18px; font-size: 12px; color: #64748b; border-top: 1px solid #1e293b; }
.ad-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--line); }
.ad-top__search { flex: 1; max-width: 460px; }
.ad-main { padding: 22px 24px 60px; max-width: 1440px; }
.ad-pagehead { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ad-pagehead__t { flex: 1; min-width: 260px; } .ad-pagehead__t p { margin: 4px 0 0; color: var(--muted); }
.ad-crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
@media (max-width: 900px) { .ad-app { grid-template-columns: 1fr; } .ad-side { display: none; } }

/* cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.card__h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.card__b { padding: 16px; } .card__f { padding: 12px 16px; border-top: 1px solid var(--line); background: #fafbfc; border-radius: 0 0 var(--r) var(--r); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.grid-main-side { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2,1fr); } .grid-3, .grid-main-side { grid-template-columns: 1fr; } }
.kpi { padding: 14px 16px; } .kpi__l { color: var(--muted); font-size: 12.5px; display: flex; gap: 6px; align-items: center; }
.kpi__v { font-size: 26px; font-weight: 700; color: var(--ink); margin-top: 2px; } .kpi__d { font-size: 12px; margin-top: 2px; }
.up { color: var(--ok); } .down { color: var(--err); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 8px; background: #fff; color: var(--text); font: 500 13.5px Inter, sans-serif; cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.btn:hover { background: #f8fafc; border-color: #94a3b8; }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; } .btn--primary:hover { background: #1d4ed8; }
.btn--danger { background: var(--err); border-color: var(--err); color: #fff; } .btn--danger:hover { background: #b91c1c; }
.ad a.btn--primary, .ad a.btn--danger { color: #fff; }
.btn--danger-ghost { color: var(--err); border-color: #fecaca; } .btn--ghost { border-color: transparent; background: transparent; }
.btn--sm { height: 28px; padding: 0 9px; font-size: 12.5px; } .btn--icon { width: 34px; padding: 0; justify-content: center; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; }
.btn.is-loading { pointer-events: none; opacity: .8; } .btn.is-loading::before { content: ""; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ad-spin .7s linear infinite; }
@keyframes ad-spin { to { transform: rotate(360deg); } }
.btn-group { display: inline-flex; } .btn-group .btn { border-radius: 0; margin-left: -1px; } .btn-group .btn:first-child { border-radius: 8px 0 0 8px; } .btn-group .btn:last-child { border-radius: 0 8px 8px 0; }
.btn-group .btn.is-active { background: var(--brand-50); border-color: var(--brand); color: var(--brand); z-index: 1; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #f1f5f9; color: #334155; white-space: nowrap; border: 1px solid transparent; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge--plain::before { display: none; }
.badge--ok { background: var(--ok-50); color: var(--ok); } .badge--warn { background: var(--warn-50); color: var(--warn); }
.badge--err { background: var(--err-50); color: var(--err); } .badge--info { background: var(--brand-50); color: var(--brand); }
.badge--vio { background: var(--vio-50); color: var(--vio); } .badge--cyan { background: var(--cyan-50); color: var(--cyan); }
.badge--dark { background: #1e293b; color: #fff; }
/* shipment status colours (same everywhere) */
.st-info_received { background:#f1f5f9; color:#475569; } .st-in_transit { background:var(--brand-50); color:var(--brand); }
.st-out_for_delivery { background:var(--cyan-50); color:var(--cyan); } .st-delivered { background:var(--ok-50); color:var(--ok); }
.st-stalled { background:var(--warn-50); color:var(--warn); } .st-exception, .st-failed_attempt { background:var(--err-50); color:var(--err); }
.st-returned { background:var(--vio-50); color:var(--vio); } .st-expired { background:#f1f5f9; color:#64748b; } .st-pickup { background:#fdf4ff; color:#a21caf; }
.st-not_registered { background:#fff; color:#64748b; border-color: var(--line2); }

/* banners */
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); border: 1px solid; margin-bottom: 16px; }
.banner__i { font-size: 16px; line-height: 1.3; } .banner b { color: var(--ink); }
.banner--info { background: var(--brand-50); border-color: #bfdbfe; } .banner--warn { background: var(--warn-50); border-color: #fde68a; }
.banner--err { background: var(--err-50); border-color: #fecaca; } .banner--ok { background: var(--ok-50); border-color: #a7f3d0; }
.banner--dry { background: repeating-linear-gradient(-45deg,#fffbeb,#fffbeb 12px,#fef3c7 12px,#fef3c7 24px); border-color: #fcd34d; }

/* tables */
.tbl-wrap { overflow: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); padding: 9px 12px; border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap; position: sticky; top: 0; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: #f8fafc; } .tbl tr.is-selected { background: var(--brand-50); }
.tbl tr.is-click { cursor: pointer; }
.tbl .chk { width: 34px; } input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--brand); }
.pager { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.bulkbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #1e293b; color: #fff; border-radius: 8px; margin-bottom: 10px; }

/* filters / inputs */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.inp, .sel { height: 34px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 8px; background: #fff; font: 13.5px Inter, sans-serif; color: var(--text); }
.inp:focus, .sel:focus, .ta:focus { outline: 2px solid #93c5fd; border-color: var(--brand); }
.inp.is-error { border-color: var(--err); background: var(--err-50); } .inp--search { padding-left: 30px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Ccircle cx='6' cy='6' r='5'/%3E%3Cpath d='M10 10l3 3'/%3E%3C/svg%3E") 10px center no-repeat; }
.ta { width: 100%; min-height: 90px; padding: 8px 10px; border: 1px solid var(--line2); border-radius: 8px; font: 13.5px/1.5 Inter, sans-serif; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px dashed var(--line2); border-radius: 999px; background: #fff; font-size: 12.5px; cursor: pointer; }
.chip.is-on { border-style: solid; border-color: var(--brand); background: var(--brand-50); color: var(--brand); font-weight: 600; }
.chip .x { opacity: .6; }
.form-row { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.form-row:last-child { border-bottom: 0; } .form-row__l b { display: block; color: var(--ink); font-weight: 600; } .form-row__l span { color: var(--muted); font-size: 12.5px; }
@media (max-width: 800px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 5px; } .field label { font-weight: 600; font-size: 13px; color: var(--ink); } .field .hint { font-size: 12px; color: var(--muted); } .field .err { font-size: 12px; color: var(--err); font-weight: 600; }
.secret { display: flex; gap: 6px; align-items: center; } .secret .inp { font-family: var(--mono); font-size: 12.5px; flex: 1; }
.switch { position: relative; display: inline-block; width: 38px; height: 22px; flex: none; } .switch input { display: none; }
.switch i { position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px; transition: .2s; cursor: pointer; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + i { background: var(--ok); } .switch input:checked + i::after { left: 19px; }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 9px; padding: 3px; background: #f8fafc; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 6px; font: 500 13px Inter, sans-serif; color: var(--muted); cursor: pointer; }
.seg button.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); font-weight: 600; }

/* tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs [data-tab] { border: 0; background: none; padding: 10px 14px; font: 500 13.5px Inter, sans-serif; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs [data-tab].is-active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.tabs [data-tab] .cnt { background: #f1f5f9; border-radius: 999px; padding: 0 6px; font-size: 11px; margin-left: 4px; }

/* key-value list, timeline, code */
.kv { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 7px 12px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; color: var(--ink); word-break: break-word; }
.tl { list-style: none; margin: 0; padding: 0; } .tl li { position: relative; padding: 0 0 16px 22px; border-left: 2px solid var(--line); margin-left: 5px; }
.tl li:last-child { border-left-color: transparent; padding-bottom: 0; }
.tl li::before { content: ""; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; border: 2px solid #fff; }
.tl li.is-ok::before { background: var(--ok); } .tl li.is-err::before { background: var(--err); } .tl li.is-warn::before { background: var(--warn); } .tl li.is-info::before { background: var(--brand); }
.tl b { color: var(--ink); font-weight: 600; } .tl .t { font-size: 12px; color: var(--muted); }
pre.code { margin: 0; background: #0f172a; color: #e2e8f0; border-radius: 8px; padding: 12px 14px; font: 12px/1.55 var(--mono); overflow: auto; max-height: 460px; }
pre.code .k { color: #93c5fd; } pre.code .s { color: #86efac; } pre.code .n { color: #fcd34d; } pre.code .c { color: #64748b; }
.diff-ok { color: var(--ok); font-weight: 600; } .diff-miss { color: var(--err); font-weight: 600; }

/* progress, meters, mini charts */
.meter { height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden; } .meter > i { display: block; height: 100%; background: var(--brand); }
.meter--warn > i { background: var(--warn); } .meter--err > i { background: var(--err); } .meter--ok > i { background: var(--ok); }
.stackbar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: #e2e8f0; } .stackbar > i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.chart { width: 100%; height: auto; display: block; }

/* empty, skeleton, avatar, dropdown */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); } .empty__i { font-size: 34px; } .empty h3 { margin: 8px 0 4px; }
.skel { background: linear-gradient(90deg,#eef2f6 25%,#f8fafc 37%,#eef2f6 63%); background-size: 400% 100%; animation: ad-sh 1.3s ease infinite; border-radius: 6px; height: 12px; }
@keyframes ad-sh { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #e0e7ff; color: #3730a3; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.menu { position: relative; display: inline-block; }
.menu__list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 60; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(15,23,42,.12); padding: 6px; display: none; }
.menu.is-open .menu__list { display: block; }
.menu__list button, .menu__list a { display: flex; width: 100%; gap: 8px; align-items: center; padding: 7px 10px; border: 0; background: none; border-radius: 6px; font: 13.5px Inter, sans-serif; color: var(--text); text-align: left; cursor: pointer; text-decoration: none !important; }
.menu__list button:hover, .menu__list a:hover { background: #f1f5f9; } .menu__list .danger { color: var(--err); } .menu__list hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; } .dot--ok { background: var(--ok); } .dot--err { background: var(--err); } .dot--warn { background: var(--warn); }
.steps { display: flex; gap: 0; margin-bottom: 20px; } .steps li { list-style: none; flex: 1; display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; }
.steps li::after { content: ""; flex: 1; height: 2px; background: var(--line); margin: 0 10px; } .steps li:last-child::after { display: none; }
.steps li i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line2); font-style: normal; font-size: 12px; font-weight: 700; background: #fff; }
.steps li.is-done i { background: var(--ok); border-color: var(--ok); color: #fff; } .steps li.is-cur { color: var(--ink); } .steps li.is-cur i { border-color: var(--brand); color: var(--brand); }

/* modal + drawer inner boxes */
.ad-modal { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 14px; box-shadow: 0 20px 60px rgba(15,23,42,.3); }
.ad-modal--wide { width: min(860px, 100%); }
.ad-modal__h { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.ad-modal__b { padding: 18px 20px; } .ad-modal__f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); background: #fafbfc; border-radius: 0 0 14px 14px; }
.ad-x { margin-left: auto; border: 0; background: none; font-size: 20px; color: var(--muted); cursor: pointer; }
.ad-drawer__h { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.ad-drawer__b { padding: 18px 20px; display: grid; gap: 16px; }

/* ===================== v2 polish (prototype) ===================== */
:root { --shadow-1: 0 1px 2px rgba(15,23,42,.05); --shadow-2: 0 4px 14px rgba(15,23,42,.08); --ring: 0 0 0 3px rgba(37,99,235,.22); --ease: cubic-bezier(.2,.8,.2,1); }
body.ad { -webkit-font-smoothing: antialiased; letter-spacing: -.003em; }
.ad ::selection { background: #bfdbfe; }
.ad :focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
.ad button, .ad a, .ad .card, .ad .chip, .ad .tbl tr { transition: background-color .12s, border-color .12s, color .12s, box-shadow .15s, transform .12s; }
.ad h1 { font-size: 24px; letter-spacing: -.02em; } .ad h2 { letter-spacing: -.01em; }
.card { box-shadow: var(--shadow-1); } .card.is-hover:hover, a.card:hover { box-shadow: var(--shadow-2); border-color: var(--line2); text-decoration: none; }
.card__h h2, .card__h h3 { font-size: 14.5px; }
.kpi { position: relative; } .kpi__v { letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .kpi a { color: inherit; }
.btn { box-shadow: var(--shadow-1); } .btn:active { transform: translateY(1px); }
.btn--primary { box-shadow: 0 1px 2px rgba(37,99,235,.35), inset 0 1px 0 rgba(255,255,255,.15); } .btn--ghost, .btn--ghost:hover { box-shadow: none; }
.btn--danger { box-shadow: 0 1px 2px rgba(220,38,38,.35); }
.btn[disabled], .btn.is-disabled { box-shadow: none; }
.inp, .sel, .ta { transition: border-color .12s, box-shadow .15s; } .inp:hover, .sel:hover { border-color: #94a3b8; }
.inp:focus, .sel:focus, .ta:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.inp.is-error, .sel.is-error, .ta.is-error { border-color: var(--err); background: var(--err-50); } .inp.is-error:focus { box-shadow: 0 0 0 3px rgba(220,38,38,.2); }
.badge { line-height: 1.55; }
/* tables: sticky header inside a scrolling wrapper, row hover, tabular numbers */
.tbl-wrap { overflow: auto; } .tbl-wrap--scroll { max-height: calc(100vh - 300px); }
.tbl th { top: 0; z-index: 2; box-shadow: inset 0 -1px 0 var(--line); border-bottom: 0; user-select: none; } .tbl th.is-sortable { cursor: pointer; } .tbl th.is-sortable:hover { color: var(--ink); }
.tbl td { font-variant-numeric: tabular-nums; } .tbl tbody tr.is-click:hover { background: #f1f5fb; }
.tbl .mono { color: #334155; } .tbl td .sub { display: block; font-size: 12px; color: var(--muted); }
.copy-btn { border: 0; background: none; color: #94a3b8; cursor: pointer; padding: 2px; border-radius: 5px; vertical-align: middle; } .copy-btn:hover, .is-copied { color: var(--brand); background: var(--brand-50); }
.empty__i { width: 56px; height: 56px; margin: 0 auto 4px; border-radius: 16px; display: grid; place-items: center; background: #f1f5f9; color: #94a3b8; font-size: 0; } .empty--err .empty__i { background: var(--err-50); color: var(--err); }
.empty p { margin: 0 auto; max-width: 420px; }
.banner { box-shadow: var(--shadow-1); } .banner__i { margin-top: 1px; display: flex; }
.tabs { gap: 4px; } .tabs [data-tab]:hover { color: var(--ink); }
.chip:hover { border-color: #94a3b8; }
.menu__list { box-shadow: 0 12px 36px rgba(15,23,42,.16); }
.ad-pagehead { align-items: center; } .ad-pagehead h1 { display: flex; align-items: center; gap: 10px; }
.meter > i { transition: width .5s var(--ease); }
.is-saving { opacity: .6; pointer-events: none; }
.sticky-save { position: sticky; bottom: 16px; z-index: 40; display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 14px; background: #0f172a; color: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(15,23,42,.3); }
.sticky-save .btn { border-color: transparent; }

/* shell */
.ad-side { background: linear-gradient(180deg, #0f172a, #111c33); z-index: 60; }
.ad-side nav { display: flex; flex-direction: column; padding-bottom: 8px; }
.ad-side a { font-weight: 500; font-size: 13.5px; } .ad-side a .hc-ico { opacity: .75; } .ad-side a:hover .hc-ico, .ad-side a.is-active .hc-ico { opacity: 1; }
.ad-side a.is-active { background: rgba(59,130,246,.95); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 4px 10px rgba(37,99,235,.35); }
.ad-side a .cnt { min-width: 20px; text-align: center; } .ad-side__foot a { display: inline; padding: 0; margin: 0; color: #94a3b8; text-decoration: underline; } .ad-side__foot a:hover { background: none; color: #fff; }
.ad-side__brand i { color: #fff; box-shadow: 0 4px 12px rgba(79,70,229,.5); }
.ad-top { gap: 10px; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(8px); }
.ad-burger { display: none; } .ad-storebtn b { font-weight: 600; color: var(--ink); } .ad-storebtn .hc-ico:last-child { color: #94a3b8; }
.ad-search { position: relative; flex: 1; max-width: 480px; } .ad-search__i { position: absolute; left: 11px; top: 9px; color: #94a3b8; pointer-events: none; display: flex; }
.ad-top__search { width: 100%; padding-left: 34px; padding-right: 34px; background-image: none; background-color: #f1f5f9; border-color: transparent; } .ad-top__search:focus { background: #fff; }
.ad-search__k { position: absolute; right: 8px; top: 7px; }
.ad-search__panel { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 70; max-height: 70vh; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 44px rgba(15,23,42,.18); padding: 6px; min-width: 420px; }
.ad-sr { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none !important; } .ad-sr:hover { background: #f1f5f9; } .ad-sr > div { flex: 1; min-width: 0; } .ad-sr b { display: block; font-weight: 600; color: var(--ink); font-size: 13.5px; } .ad-sr span { font-size: 12px; color: var(--muted); }
.ad-sr > .hc-ico { color: #94a3b8; } .ad-sr--all { border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 8px 8px; color: var(--brand); } .ad-sr__empty { padding: 14px 12px; color: var(--muted); font-size: 13px; }
.ad-modebadge { text-decoration: none !important; cursor: pointer; font-size: 11.5px; letter-spacing: .02em; }
.ad-user { padding: 0 6px; gap: 8px; } .ad-user__n { font-weight: 600; color: var(--ink); } .ad-user__r { font-size: 11px; padding: 0 6px; border-radius: 999px; background: #eef2ff; color: #4338ca; font-weight: 600; }
.ad-main { animation: ad-fade .25s var(--ease); } @keyframes ad-fade { from { opacity: 0; transform: translateY(4px); } }
@media (max-width: 900px) { .ad-burger { display: inline-flex; } .ad-side { display: flex; position: fixed; left: 0; top: 0; bottom: 0; width: 248px; transform: translateX(-100%); transition: transform .2s var(--ease); } .ad-side.is-open { transform: none; box-shadow: 8px 0 30px rgba(15,23,42,.35); } .ad-main { padding: 16px 14px 60px; } .ad-user__n, .ad-user__r { display: none; } .ad-search__panel { min-width: 0; } }
/* login */
.ad-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 10% -10%, #dbeafe, transparent), radial-gradient(900px 500px at 110% 110%, #ede9fe, transparent), var(--bg); }
.ad-login__card { width: min(420px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 60px rgba(15,23,42,.12); padding: 32px; }
.ad-side__foot { padding-bottom: 54px; line-height: 1.6; }

/* ---- HCP panels (admin-hcp-order-panel.js, admin-store-hcp-tab.js, list tag) ---- */
.hcpa-line { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); } .hcpa-line:first-child { border-top: 0; padding-top: 0; } .hcpa-line:last-child { padding-bottom: 0; }
.hcpa-thumb--none { display: flex; align-items: center; justify-content: center; color: #94a3b8; }
.hcpa-thumb { width: 72px; height: 84px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); flex: none; background: #f1f5f9; }
.hcpa-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; } .hcpa-kv { grid-template-columns: 150px 1fr; margin: 2px 0 4px; }
.hcp-tag { display: table; margin: 3px 0 0; padding: 0 6px; font-size: 10.5px; line-height: 16px; font-weight: 700; border-radius: 4px; background: #ede9fe; color: #6d28d9; vertical-align: 1px; }
.hcpt-list { margin: 0; padding-left: 18px; font-size: 13px; } .hcpt-list li { margin: 3px 0; }
.sl-sep { width: 1px; background: var(--line); margin: 2px 4px; align-self: stretch; }
