/* Axtion design system — light, blue/white, mobile-first. Single theme by design (used in daylight on phones). */
:root {
  --bg: #f5f8fe;
  --surface: #ffffff;
  --soft: #f3f7fc;
  --tint: #eaf2ff;
  --line: #e3eaf3;
  --line-strong: #cdd8e6;
  --ink: #17304e;
  --muted: #5c6c82;
  --brand: #2563eb;
  --brand-deep: #1d4ed8;
  --brand-ink: #173f9e;
  --ok: #1f7a4d;
  --ok-soft: #e6f5ec;
  --warn: #81520f;
  --warn-soft: #fdf3e1;
  --err: #b42318;
  --err-soft: #fde8e6;
  --shadow: 0 1px 2px rgba(23, 48, 78, 0.06), 0 8px 24px -16px rgba(23, 48, 78, 0.25);
  --radius: 14px;
  --radius-sm: 10px;
  --font-body: "Sarabun", "Noto Sans Thai", "Leelawadee UI", system-ui, sans-serif;
  --font-head: "Prompt", "Noto Sans Thai", "Leelawadee UI", system-ui, sans-serif;
  --sidebar: 248px;
  --tabbar: 64px;
  --topbar: 56px;
}
* { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.25; margin: 0; text-wrap: balance; }
p { margin: 0 0 10px; }
a { color: var(--brand-ink); }
button, input, select { font: inherit; color: inherit; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 50; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* brand */
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(145deg, var(--brand), var(--brand-deep)); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 22px; display: grid; place-items: center; line-height: 1; box-shadow: 0 6px 14px -8px var(--brand-deep); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-head); font-weight: 600; font-size: 18px; letter-spacing: 0.01em; }
.brand__sub { font-size: 12px; color: var(--muted); }
.brand--compact .brand__mark { width: 30px; height: 30px; font-size: 18px; border-radius: 8px; }
.brand--compact .brand__name { font-size: 16px; }

/* pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; line-height: 1.6; white-space: nowrap; border: 1px solid transparent; }
.pill--ok { background: var(--ok-soft); color: var(--ok); border-color: #b9e2c8; }
.pill--warn { background: var(--warn-soft); color: var(--warn); border-color: #f1d9a3; }
.pill--err { background: var(--err-soft); color: var(--err); border-color: #f5b8b2; }
.pill--muted { background: var(--soft); color: var(--muted); border-color: var(--line); }
.pill--brand { background: var(--tint); color: var(--brand-ink); border-color: #c7d8fb; }

/* app shell */
.app { display: grid; grid-template-columns: 1fr; min-height: 100dvh; }
.topbar { position: sticky; top: 0; z-index: 20; height: var(--topbar); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.topbar__user { font-size: 13px; color: var(--muted); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.sidebar { display: none; }
.content { padding: 18px 14px calc(var(--tabbar) + 24px); max-width: 1040px; width: 100%; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: var(--tabbar); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar__item { display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; list-style: none; cursor: pointer; border-top: 3px solid transparent; }
.tabbar__item.is-active { color: var(--brand-ink); border-top-color: var(--brand); background: var(--tint); }
.tabbar__more { position: relative; }
.tabbar__more summary::-webkit-details-marker { display: none; }
.tabbar__more summary { height: 100%; }
.tabbar__sheet { position: absolute; right: 8px; bottom: calc(100% + 8px); width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; display: grid; }
.sheet__item { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); background: none; border: 0; cursor: pointer; }
.sheet__item:hover, .sheet__item.is-active { background: var(--tint); color: var(--brand-ink); }
.sheet__item--btn { color: var(--err); }
@media (min-width: 900px) {
  .app { grid-template-columns: var(--sidebar) 1fr; }
  .tabbar { display: none; }
  .app { grid-template-rows: var(--topbar) 1fr; }
  .sidebar { grid-column: 1; grid-row: 1 / span 2; }
  .topbar { padding: 0 36px; }
  .topbar .brand { display: none; }
  .topbar__name { display: block; }
  .sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100dvh; padding: 22px 16px; background: var(--surface); border-right: 1px solid var(--line); }
  .content { padding: 32px 36px 48px; max-width: 1240px; }
}
.sidenav { display: grid; gap: 2px; }
.sidenav__item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 500; font-size: 15px; }
.sidenav__item:hover { background: var(--soft); }
.sidenav__item.is-active { background: var(--tint); color: var(--brand-ink); }
.sidenav__soon { font-family: var(--font-body); font-size: 11.5px; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; }
.sidebar__foot { margin-top: auto; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.sidebar__me { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.sidebar__me small { display: block; color: var(--muted); font-size: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--tint); color: var(--brand-ink); display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; }

/* page header */
.pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; }
.pagehead__title { font-size: 26px; }
.pagehead__lead { color: var(--muted); margin: 6px 0 0; max-width: 60ch; }
.eyebrow { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.pagehead__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card__title { font-size: 17px; }
.card__body { padding: 16px 18px; }
.card--flush .card__body { padding: 0; }
.grid { display: grid; gap: 14px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* stats */
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; display: grid; gap: 2px; }
.stat__value { font-family: var(--font-head); font-weight: 600; font-size: 24px; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.stat__label { font-size: 13.5px; color: var(--muted); }
.stat__sub { font-size: 12.5px; color: var(--muted); }
.stat--ok .stat__value { color: var(--ok); }
.stat--warn .stat__value { color: var(--warn); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; background: var(--brand); color: #fff; font-family: var(--font-head); font-weight: 500; font-size: 15px; cursor: pointer; text-decoration: none; transition: background 0.15s, transform 0.05s; }
.btn:hover { background: var(--brand-deep); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--soft); }
.btn--danger { background: var(--surface); color: var(--err); border-color: #f5b8b2; }
.btn--danger:hover { background: var(--err-soft); }
.btn--sm { min-height: 34px; padding: 0 12px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* forms */
.form { display: grid; gap: 14px; }
.form--inline { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: end; }
.field { display: grid; gap: 6px; align-content: start; }
.field__label { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.field__input { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); font-size: 16px; }
.field__input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--tint); outline: none; }
.field__hint { font-size: 12.5px; color: var(--muted); }
.pin { letter-spacing: 0.4em; font-family: var(--font-head); font-size: 22px; text-align: center; }
.pin::placeholder { letter-spacing: normal; font-family: var(--font-body); font-size: 14px; color: var(--muted); }
.toast { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-weight: 500; border: 1px solid transparent; }
.toast--ok { background: var(--ok-soft); color: var(--ok); border-color: #b9e2c8; }
.toast--err { background: var(--err-soft); color: var(--err); border-color: #f5b8b2; }
.help { font-size: 13.5px; color: var(--muted); }
.errors { margin: 8px 0 0; padding-left: 18px; color: var(--err); font-size: 14px; }

/* tables (rows collapse to cards on narrow screens) */
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { font-family: var(--font-head); font-weight: 500; font-size: 13px; color: var(--muted); background: var(--soft); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .actions { text-align: right; white-space: nowrap; }
.tbl-wrap { overflow-x: auto; }
.tbl--products { min-width: 860px; }
.cell-main { font-weight: 500; }
.cell-sub { color: var(--muted); font-size: 13.5px; }
.field__input--num { width: 110px; min-height: 38px; padding: 4px 10px; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .tbl--cards { min-width: 0; }
  .tbl--cards thead { display: none; }
  .tbl--cards tr { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .tbl--cards td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; }
  .tbl--cards td::before { content: attr(data-label); color: var(--muted); font-size: 13px; }
  .tbl--cards td.title { display: block; font-size: 16px; padding-bottom: 6px; }
  .tbl--cards td.title::before { content: none; }
  .tbl--cards td.actions { justify-content: flex-start; padding-top: 8px; }
  .tbl--cards td.actions::before { content: none; }
  .tbl--cards td.num { text-align: left; }
  .tbl--cards td.num .field__input--num { width: 140px; }
}
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs__item { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-family: var(--font-head); font-size: 14px; font-weight: 500; }
.tabs__item.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }
.inline-form .field__input { min-height: 36px; padding: 4px 8px; font-size: 14px; width: 110px; }

/* empty states */
.empty { text-align: center; padding: 40px 20px; display: grid; justify-items: center; gap: 10px; }
.empty__mark { color: var(--brand); background: var(--tint); width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; }
.empty__title { font-size: 20px; }
.empty__text { color: var(--muted); max-width: 46ch; margin: 0; }

/* job cards on home */
.job { display: grid; gap: 6px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.job:hover { border-color: #c7d8fb; }
.job__title { font-family: var(--font-head); font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.job__text { color: var(--muted); font-size: 14px; }
.job--ready { border-color: #b9e2c8; }

/* auth */
.auth { min-height: 100dvh; display: grid; place-items: center; background: radial-gradient(1200px 600px at 50% -10%, #dbe7ff 0%, var(--bg) 60%); padding: 24px 16px; }
.auth__main { width: 100%; max-width: 420px; display: grid; gap: 14px; justify-items: center; }
.auth__card { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px 24px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.auth__title { font-size: 22px; margin-top: 4px; }
.auth__foot { color: var(--muted); font-size: 13px; }

/* ---- pack queue (phase 2a) ---- */
.small { font-size: 12.5px; }
.issues { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--warn); font-size: 13.5px; }
.issues li::marker { color: var(--warn); }
.tbl td.nowrap { white-space: nowrap; }
.tbl td.issues-cell { min-width: 220px; }
@media (max-width: 899px) { .tbl--cards td.issues-cell { min-width: 0; } }

/* ---- pack queue (phase 2b) ---- */
.qty-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 14px; margin: 6px 0 14px; }
.sub { font-size: 15px; margin: 14px 0 4px; font-family: var(--font-head); font-weight: 500; }
.chk { display: flex; align-items: flex-start; gap: 8px; padding: 8px 0; font-size: 14.5px; line-height: 1.5; cursor: pointer; }
.chk input { margin-top: 4px; }
.msg { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; background: var(--soft); }
.msg__title { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.msg__text { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--font-body); font-size: 14px; line-height: 1.55; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.kv:last-child { border-bottom: 0; }
.kv__k { color: var(--muted); }
.tbl td.nowrap input[type=checkbox] { width: 20px; height: 20px; }
@media (max-width: 899px) { .kv { grid-template-columns: 1fr; gap: 2px; } }

/* pack item form: product lines (dropdown + boxes) and collapsible extras */
.lines { display: grid; gap: 8px; margin: 4px 0 10px; }
.line { display: flex; align-items: center; gap: 8px; }
.line .field__input { min-height: 40px; }
.line__sel { flex: 1 1 auto; min-width: 0; }
.line__qty { width: 74px; flex: 0 0 auto; text-align: center; font-variant-numeric: tabular-nums; }
.line__x, .line__unit { color: var(--muted); font-size: 14px; flex: 0 0 auto; }
.line__del { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; }
.line__del:hover { color: var(--err); border-color: #f5b8b2; background: var(--err-soft); }
.lines__empty { color: var(--muted); font-size: 14px; padding: 4px 0; }
.lines__add { justify-self: start; }
.sub--tight { margin-top: 18px; }
.sub__hint { font-family: var(--font-body); font-weight: 400; font-size: 13px; color: var(--muted); margin-left: 8px; }
.grid--addr { grid-template-columns: minmax(0, 2fr) minmax(150px, 1fr); }
@media (max-width: 560px) { .grid--addr { grid-template-columns: 1fr; } }
.more { border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 0 14px; margin: 16px 0; }
.more > summary { cursor: pointer; padding: 10px 0; font-weight: 500; color: var(--brand-ink); list-style: none; display: flex; align-items: center; gap: 8px; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: '▸'; font-size: 13px; transition: transform 0.15s; }
.more[open] > summary::before { transform: rotate(90deg); }
.more__body { padding: 4px 0 14px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.lines__list:not(:empty) + .lines__empty { display: none; }
@media (max-width: 560px) { .line__x, .line__unit { display: none; } .line__qty { width: 66px; } }

/* ---- shell v2: topbar search, nav icons, tabbar icons ---- */
.topbar { gap: 10px; }
.topbar__search { flex: 1 1 auto; display: flex; align-items: center; position: relative; max-width: 560px; margin: 0 auto; }
.topbar__searchicon { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.topbar__input { width: 100%; min-height: 38px; padding: 6px 12px 6px 38px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); font-size: 14px; }
.topbar__input:focus { outline: none; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 3px var(--tint); }
.topbar__user { display: flex; align-items: center; gap: 8px; max-width: none; overflow: visible; font-size: 13.5px; color: var(--ink); }
.topbar__name { display: none; line-height: 1.15; }
.topbar__name small { display: block; color: var(--muted); font-size: 11.5px; }
.avatar--sm { width: 30px; height: 30px; font-size: 14px; }
.sidenav__item { justify-content: flex-start; }
.sidenav__icon { color: var(--muted); flex: 0 0 auto; }
.sidenav__item.is-active .sidenav__icon { color: var(--brand); }
.sidenav__label { flex: 1 1 auto; }
.sidebar__foot .btn { justify-content: flex-start; }
.tabbar__item { flex-direction: column; gap: 2px; font-size: 11.5px; }
.tabbar__item .ic { width: 20px; height: 20px; }
.ic { display: inline-block; vertical-align: middle; flex: 0 0 auto; }

/* fields with icons / required marks */
.field__wrap { position: relative; display: block; }
.field__icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; display: inline-flex; }
.field__prefix { font-weight: 600; font-size: 15px; }
.field__wrap.has-icon .field__input { padding-left: 40px; }
.req { color: var(--err); margin-left: 3px; font-weight: 600; }

/* cards with an icon badge and a tone */
.card__head { align-items: center; }
.card__titlewrap { display: flex; align-items: center; gap: 10px; }
.card__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--brand); flex: 0 0 auto; }
.card--warn { background: #fffaf0; border-color: #f1d9a3; }
.card--warn .card__head { border-color: #f5e6c4; }
.card--warn .card__icon { background: #fdebc8; color: var(--warn); }
.card--err .card__icon { background: var(--err-soft); color: var(--err); }
.card--ok .card__icon { background: var(--ok-soft); color: var(--ok); }

/* breadcrumb, item head, pager, meta line */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-ink); text-decoration: underline; }
.crumbs__sep { color: var(--line-strong); }
.itemhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 6px; }
.itemhead__title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.itemhead__title h1 { font-size: 26px; }
.pager { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.pager__btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); display: inline-grid; place-items: center; color: var(--ink); text-decoration: none; }
.pager__btn[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.meta__item { display: inline-flex; align-items: center; gap: 6px; }
.meta__sep { color: var(--line-strong); }

/* issue chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid #f1d9a3; color: var(--warn); font-size: 13.5px; line-height: 1.4; }
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: #e08a1e; flex: 0 0 auto; }

/* source message + empty state */
.msg--src { background: #f3f7fd; border-color: #dbe6f6; }
.empty-mini { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 26px 12px; color: var(--muted); }
.empty-mini__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; color: var(--muted); margin-bottom: 4px; }
.empty-mini__title { font-family: var(--font-head); font-weight: 500; color: var(--ink); }

/* in-form sections */
.sect { display: flex; align-items: center; gap: 10px; margin: 18px 0 8px; }
.sect__icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--tint); color: var(--brand); flex: 0 0 auto; }
.sect__icon--ok { background: var(--ok-soft); color: var(--ok); }
.sect__title { font-family: var(--font-head); font-weight: 500; font-size: 15.5px; }
.sect__hint { color: var(--muted); font-size: 13px; margin-left: 6px; font-weight: 400; font-family: var(--font-body); }
.block { border-radius: 12px; padding: 4px 14px 14px; margin-top: 14px; border: 1px solid transparent; }
.block--money { background: #f2faf5; border-color: #d6eddf; }
.block--money .sect { margin-top: 10px; }
.block--money .field__input { background: var(--surface); }

/* steppers inside product lines */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--surface); flex: 0 0 auto; }
.stepper__btn { width: 34px; height: 38px; border: 0; background: var(--soft); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.stepper__btn:hover { background: var(--tint); color: var(--brand-ink); }
.stepper .line__qty { width: 52px; min-height: 38px; border: 0; border-radius: 0; padding: 4px; }
.stepper .line__qty:focus { box-shadow: none; }
.line__del { display: grid; place-items: center; }
.lines__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* extras details with an icon and a chevron */
.more--fb > summary { justify-content: space-between; }
.more--fb > summary::before { content: none; }
.more__lead { display: inline-flex; align-items: center; gap: 10px; }
.more__chev { color: var(--muted); transition: transform 0.15s; }
.more[open] .more__chev { transform: rotate(180deg); }

/* hold / dismiss row */
.holdrow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inline-field { display: flex; gap: 8px; align-items: flex-end; }
.inline-field .field { flex: 1 1 auto; }
@media (max-width: 640px) { .holdrow { grid-template-columns: 1fr; } }

/* sticky action bar */
.actionbar { position: sticky; bottom: var(--tabbar); z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; margin-top: 8px; background: rgba(245, 248, 254, 0.94); backdrop-filter: saturate(140%) blur(8px); border-top: 1px solid var(--line); }
.actionbar__right { display: flex; gap: 10px; align-items: center; }
@media (min-width: 900px) { .actionbar { bottom: 0; } }
.btn--link { background: none; border: 0; color: var(--brand-ink); padding: 0 6px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 500; min-height: 42px; }
.btn--link:hover { background: none; text-decoration: underline; }

/* search results */
.result__type { font-size: 12.5px; }
@media (max-width: 640px) { .actionbar__hint { display: none; } }
.inline-field .btn { flex: 0 0 auto; }
@media (max-width: 480px) { .topbar .brand__name, .topbar .brand__sub { display: none; } .topbar .brand--compact { gap: 6px; } }
@media (max-width: 640px) { .card__aside { display: none; } }
@media (max-width: 560px) { .line { flex-wrap: wrap; } .line__sel { flex: 1 1 100%; } .line .stepper { margin-left: auto; } }

/* documents of a round */
.docs { display: grid; gap: 10px; }
.doc { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--surface); }
.doc:hover { background: var(--soft); }
.doc__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--brand); flex: 0 0 auto; }
.doc__icon--ok { background: var(--ok-soft); color: var(--ok); }
.doc__text { flex: 1 1 auto; display: grid; gap: 2px; }
.doc__text b { font-family: var(--font-head); font-weight: 500; font-size: 16px; }
.doc__text small { color: var(--muted); font-size: 13px; }
.doc__chev { color: var(--muted); }

/* printable packing sheet */
.sheet__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.sheet__title h1 { font-size: 24px; }
.sheet__meta { color: var(--muted); font-size: 13.5px; margin: 4px 0 16px; }
.sheet h2 { font-size: 16px; margin: 16px 0 8px; }
.sheet__tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.sheet__tbl th, .sheet__tbl td { border: 1px solid #b9c4d3; padding: 8px 10px; vertical-align: top; text-align: left; }
.sheet__tbl th { background: var(--soft); font-family: var(--font-head); font-weight: 500; }
.sheet__tbl th.num, .sheet__tbl td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sheet__tbl th.box, .sheet__tbl td.box { text-align: center; width: 84px; }
.sheet__tbl--totals { max-width: 520px; }
.tick { display: inline-block; width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: 5px; }
.sheet__cancel td { color: var(--muted); text-decoration: line-through; }
.sheet__foot { margin-top: 14px; color: var(--muted); }
@media print {
  body { background: #fff; color: #000; }
  .sidebar, .topbar, .tabbar, .toast, .no-print, .actionbar { display: none !important; }
  .app { display: block; }
  .content { padding: 0; max-width: none; }
  .sheet { border: 0; border-radius: 0; padding: 0; }
  .sheet__tbl th { background: #eee; }
  .tick { border-color: #000; }
  a { color: inherit; text-decoration: none; }
}
.sheet__pick { font-size: 15px; margin: 0 0 14px; }
@media screen and (max-width: 640px) { .sheet__tbl { min-width: 640px; } .sheet { padding: 16px 14px; } }
