/* One stylesheet for every page. Stores set --brand to their own colour (phase 1.1). Mobile first. */

/* Kantumruy Pro (Khmer + Latin), served from our own server: /fonts -> @fontsource/kantumruy-pro */
@font-face {
  font-family: 'Kantumruy Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/kantumruy-pro-khmer-400-normal.woff2) format('woff2');
  unicode-range: U+1780-17FF, U+19E0-19FF, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Kantumruy Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/kantumruy-pro-khmer-700-normal.woff2) format('woff2');
  unicode-range: U+1780-17FF, U+19E0-19FF, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Kantumruy Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/kantumruy-pro-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Kantumruy Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/kantumruy-pro-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

:root {
  --brand: #1f6f5c;
  --text: #1d2321;
  --muted: #5f6b67;
  --bg: #f5f7f6;
  --card: #ffffff;
  --line: #dfe5e2;
  --radius: 12px;
  font-family: 'Kantumruy Pro', 'Noto Sans Khmer', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; padding-top: 16px; padding-bottom: 24px; }
h1, h2 { line-height: 1.35; margin: 0 0 8px; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }
p { margin: 0 0 12px; }
a { color: var(--brand); }

.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.muted { color: var(--muted); }

.site-header { background: var(--brand); color: #fff; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { color: #fff; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.lang-switch { display: flex; gap: 4px; }
.lang-switch a {
  color: #fff; text-decoration: none; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5); font-size: 0.9rem; min-height: 36px; display: inline-flex; align-items: center;
}
.lang-switch a[aria-current] { background: #fff; color: var(--brand); font-weight: 700; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.khmer-sample { font-size: 1.15rem; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; padding: 16px 0; }

@media (max-width: 420px) {
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 8px; }
}

/* ---------- Shared bits (phase 1.1) ---------- */
.wrap.wide { max-width: 960px; }
.hint { color: var(--muted); font-size: 0.85rem; margin: 2px 0 8px; }
.pre-line { white-space: pre-line; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.button-row form { margin: 0; }
button, .button {
  font: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--brand); color: #fff; border: 1px solid var(--brand); text-decoration: none;
  padding: 10px 18px; border-radius: 999px; font-weight: 700; min-height: 44px;
}
.button-outline, button.button-outline { background: transparent; color: var(--brand); }
.small, button.small { padding: 6px 14px; min-height: 36px; font-size: 0.9rem; }
.link-button { background: none; border: 0; color: inherit; padding: 0; min-height: 0; font-weight: 400; text-decoration: underline; }

/* Store pages */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #fff; }
.store-hero { display: flex; gap: 16px; align-items: center; }
.store-hero h1 { margin-bottom: 0; }
.store-logo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--line); }
.store-initial { display: flex; align-items: center; justify-content: center; background: var(--brand); color: #fff; font-size: 2rem; font-weight: 700; }
.tagline { color: var(--muted); margin: 4px 0 0; }

/* ---------- Admin ---------- */
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-bottom: 10px; }
.switcher { display: flex; align-items: center; gap: 8px; margin: 0; }
.switcher label { font-size: 0.9rem; opacity: 0.9; }
.switcher select { min-height: 36px; border-radius: 8px; border: 0; padding: 4px 8px; font: inherit; }
.admin-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.admin-nav a, .admin-nav button { white-space: nowrap; }
.admin-nav a, .admin-nav .link-button { color: #fff; }
.admin-nav form { margin: 0; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.page-head h1 { margin: 0; display: flex; align-items: center; gap: 8px; }
.narrow { max-width: 420px; margin-left: auto; margin-right: auto; }
.notice { background: #e6f4ea; border: 1px solid #b7dfc2; color: #1e5631; padding: 10px 14px; border-radius: 8px; }
.alert { background: #fdecea; border: 1px solid #f5c2bd; color: #8a1c13; padding: 10px 14px; border-radius: 8px; }
.field-error { color: #b42318; font-size: 0.9rem; margin: 2px 0 8px; }
.field-error:empty { display: none; }

.form fieldset { border: 0; border-top: 1px solid var(--line); padding: 12px 0 4px; margin: 0; }
.form fieldset:first-of-type { border-top: 0; padding-top: 0; }
.form legend { font-weight: 700; font-size: 1.05rem; padding: 0; margin-bottom: 4px; }
.form label { display: block; font-weight: 600; margin: 10px 0 4px; }
.form label.check, label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.form input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]), .form select, .form textarea,
.delivery-row input:not([type=checkbox]), .inline-form select {
  width: 100%; font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); min-height: 44px;
}
.form input[type=color] { width: 64px; height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: #fff; }
.form button[type=submit] { margin-top: 16px; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--brand); }
.preview { display: block; max-width: 96px; max-height: 96px; border-radius: 8px; border: 1px solid var(--line); margin-bottom: 6px; }

.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.inline-form label { font-weight: 600; }
.inline-form select { width: auto; flex: 1 1 160px; }

.swatch { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.15); flex: none; }
.badge { font-size: 0.8rem; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.badge-active { background: #e6f4ea; border-color: #b7dfc2; color: #1e5631; }
.badge-paused { background: #fff4e5; border-color: #f5d29c; color: #8a5300; }
.badge-archived { background: #eef0ef; color: var(--muted); }
.store-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.store-row { margin: 0; }
.store-row-head { display: flex; align-items: center; gap: 8px; }
.store-row-head h2 { margin: 0; flex: 1; font-size: 1.1rem; }
.store-row.status-archived { opacity: 0.65; }
.addresses { font-size: 0.9rem; word-break: break-all; }

.delivery-list { display: grid; gap: 8px; margin-bottom: 12px; }
.delivery-row { display: grid; grid-template-columns: 1fr 96px; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 8px; margin: 0; }
.delivery-row.inactive { opacity: 0.6; }
.delivery-row .check, .delivery-row button, .delivery-row .field-error { grid-column: span 2; }
@media (min-width: 720px) {
  .delivery-row { grid-template-columns: 1fr 96px auto auto auto; }
  .delivery-row .check, .delivery-row button { grid-column: auto; }
  .delivery-row .field-error { grid-column: 1 / -1; }
}

/* ---------- Products (phase 1.2) ---------- */
.store-tag { display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 1px 10px; border-radius: 999px; border: 2px solid var(--line); color: var(--text); background: #fff; }
.product-list { display: grid; gap: 8px; }
.product-row { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 12px; color: inherit; text-decoration: none; }
.product-row:hover { border-color: var(--brand); }
.product-row-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.product-row-body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-row.status-archived { opacity: 0.6; }
.thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: none; border: 1px solid var(--line); }
.thumb-empty { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.4rem; }

.photo-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; margin-bottom: 6px; }

.price-grid { display: grid; gap: 0 12px; grid-template-columns: repeat(3, 1fr); }

.variant-table { display: grid; gap: 8px; margin-bottom: 12px; }
.variant-row { display: grid; gap: 6px 8px; grid-template-columns: 1fr 1fr; padding: 10px; border: 1px solid var(--line); border-radius: 8px; align-items: center; }
.variant-row input:not([type=checkbox]) { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; min-height: 40px; background: #fff; }
.variant-row input[name^=label_] { grid-column: 1 / -1; }
.variant-row .field-error { grid-column: 1 / -1; margin: 0; }
.variant-row.inactive { opacity: 0.6; }
.variant-row .cell { display: flex; flex-direction: column; gap: 2px; font-size: 0.8rem; color: var(--muted); margin: 0; }
.variant-row .cell input { font-size: 1rem; color: var(--text); }
.variant-head { display: none; }
@media (min-width: 720px) {
  .variant-table { gap: 4px; }
  .variant-row { grid-template-columns: 2fr 1fr 1fr 1fr 64px 64px; padding: 4px 8px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .variant-row input[name^=label_] { grid-column: auto; }
  .variant-head { display: grid; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
  .only-mobile { display: none; }
}

/* ---------- Deals and public pages (phase 1.3) ---------- */
.section-title { font-size: 1.15rem; margin: 20px 0 10px; }
.progress { display: block; height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 15%, #fff); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand); border-radius: 999px; min-width: 4px; }
.progress.big { height: 14px; margin: 12px 0 6px; }
.small-progress { height: 6px; margin: 6px 0 2px; max-width: 240px; }
.progress-text { margin-bottom: 8px; }

.deal-list { display: grid; gap: 12px; }
.deal-card { display: grid; grid-template-columns: 96px 1fr; gap: 12px; margin: 0; padding: 12px; color: inherit; text-decoration: none; }
.deal-card:hover { border-color: var(--brand); }
.deal-cover { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; }
.deal-cover-empty { display: flex; align-items: center; justify-content: center; background: var(--brand); color: #fff; font-size: 2rem; font-weight: 700; }
.deal-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.deal-title { font-size: 1.05rem; line-height: 1.35; }
.price-line { font-size: 0.95rem; }
.deal-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 0.85rem; color: var(--muted); }
@media (min-width: 640px) {
  .deal-list { grid-template-columns: 1fr 1fr; }
  .deal-card { grid-template-columns: 1fr; }
  .deal-cover { width: 100%; height: auto; aspect-ratio: 4 / 3; }
}

.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px 16px; padding: 0 16px; }
.gallery img { flex: 0 0 85%; max-width: 420px; aspect-ratio: 1; object-fit: cover; border-radius: 12px; scroll-snap-align: center; border: 1px solid var(--line); }
.gallery img:only-child { flex-basis: 100%; }
.deal-head h1 { font-size: 1.4rem; }
.deal-head .facts { margin-top: 8px; }
.deal-description { margin-top: 12px; }
.countdown { font-variant-numeric: tabular-nums; color: var(--brand); }
.state { padding: 10px 14px; border-radius: 8px; background: #eef0ef; font-weight: 600; }
.state-cancelled { background: #fdecea; color: #8a1c13; }
.state-delivered { background: #e6f4ea; color: #1e5631; }

.product-card-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.product-card-head h3 { margin: 0; font-size: 1.05rem; }
.product-card-head .hint { margin: 2px 0 0; }
.variant-prices li { align-items: center; }
.variant-prices .price { text-align: right; white-space: nowrap; }
.variant-prices .price .muted { display: block; font-size: 0.8rem; }
.variant-prices .hint, .variant-prices .badge { margin-left: 6px; }
.variant-prices .sold-out { opacity: 0.55; }
details.more { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
details.more summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.order-soon { border-color: var(--brand); }

.cross-sell { margin-top: 24px; }
.cross-sell-list { display: grid; gap: 8px; }
.cross-sell-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; border: 2px solid var(--other); color: var(--text); text-decoration: none; }
.cross-sell-item img, .cross-sell-item .dot { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.cross-sell-item .dot { display: flex; align-items: center; justify-content: center; background: var(--other); color: #fff; font-weight: 700; }
.cross-sell-item .hint { display: block; margin: 0; }

.brand-list { display: grid; gap: 12px; }
.brand-card { display: flex; align-items: center; gap: 16px; margin: 0; color: var(--text); text-decoration: none; border-left: 6px solid var(--brand); }
.brand-card .brand-name { display: block; font-size: 1.2rem; color: var(--brand); }
.brand-card .tagline, .brand-card .hint { display: block; }

/* Admin deal pages */
.badge-deal-draft { background: #eef0ef; color: var(--muted); }
.badge-deal-open { background: #e6f4ea; border-color: #b7dfc2; color: #1e5631; }
.badge-deal-closed { background: #fff4e5; border-color: #f5d29c; color: #8a5300; }
.badge-deal-ordered { background: #e7f0fd; border-color: #b6cff5; color: #1d4e9e; }
.badge-deal-delivered { background: #e6f4ea; color: #1e5631; }
.badge-deal-cancelled { background: #fdecea; border-color: #f5c2bd; color: #8a1c13; }
.pick-list { display: grid; gap: 6px; }
.pick { padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.thumb.tiny { width: 36px; height: 36px; }
.item-name { grid-column: 1 / -1; display: flex; flex-direction: column; }
@media (min-width: 720px) {
  .deal-item-row { grid-template-columns: 2.4fr 1fr 1fr 64px 64px; }
  .item-name { grid-column: auto; }
}

/* ---------- Ordering (phase 1.4) ---------- */
.variant-prices li { flex-wrap: wrap; row-gap: 6px; }
.variant-prices .variant-name { flex: 1 1 140px; }
.variant-prices li.chosen { background: color-mix(in srgb, var(--brand) 8%, #fff); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 8px; }
.variant-prices .field-error { flex-basis: 100%; margin: 0; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.stepper .step { min-height: 40px; min-width: 40px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--brand); font-size: 1.3rem; }
.stepper input { width: 44px; min-height: 40px; border: 0; text-align: center; font: inherit; font-weight: 700; -moz-appearance: textfield; appearance: textfield; background: transparent; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.order-details { margin-top: 16px; }
.choice-list { border: 0; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.choice-list legend { font-weight: 700; margin-bottom: 6px; }
.choice { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 400; margin: 0; cursor: pointer; }
.form .choice { display: flex; margin: 0; font-weight: 400; }
.choice > span { flex: 1; display: flex; flex-direction: column; }
.choice .hint { margin: 0; }
.choice:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, #fff); }
.choice input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--brand); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.totals { margin-top: 16px; padding: 12px; border-radius: 10px; background: #f8faf9; border: 1px solid var(--line); }
.totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.totals .grand { font-size: 1.15rem; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }
.submit-order { width: 100%; font-size: 1.1rem; min-height: 52px; }
.submit-order:disabled { opacity: 0.6; }

.order-thanks { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, #fff); }
.order-code { font-size: 1.8rem; font-weight: 700; letter-spacing: 0.05em; margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.pay-box { border: 2px solid var(--brand); }
.pay-steps { padding-left: 20px; }
.khqr { display: block; width: 100%; max-width: 280px; margin: 8px auto 12px; border-radius: 12px; border: 1px solid var(--line); }
.bank { background: #f8faf9; border-radius: 8px; padding: 10px 12px; }
.wide-button { width: 100%; }
.order-lines .grand { font-size: 1.1rem; }
.badge-order-placed { background: #e7f0fd; border-color: #b6cff5; color: #1d4e9e; }
.badge-order-delivered { background: #e6f4ea; border-color: #b7dfc2; color: #1e5631; }
.badge-order-cancelled { background: #fdecea; border-color: #f5c2bd; color: #8a1c13; }
.badge-pay-unpaid { background: #fff4e5; border-color: #f5d29c; color: #8a5300; }
.badge-pay-paid { background: #e6f4ea; border-color: #b7dfc2; color: #1e5631; }
.badge-pay-refunded { background: #eef0ef; color: var(--muted); }
.site-footer a { color: inherit; }

/* ---------- Orders and customers in admin (phase 1.5) ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); text-decoration: none; font-size: 0.9rem; }
.chips a[aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.search input { width: auto; flex: 1 1 200px; font: inherit; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; min-height: 40px; }
.inline-form.search.card { margin-bottom: 12px; }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; position: sticky; top: 0; z-index: 2; }
.bulk-bar .hint { margin: 0; }
.order-list { display: grid; gap: 8px; }
.order-row { display: grid; grid-template-columns: 24px 1fr; gap: 8px 10px; margin: 0; padding: 12px; align-items: start; }
.order-row > input[type=checkbox] { margin-top: 4px; }
.order-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.order-main .hint { margin: 0; }
.order-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.order-code-link { font-weight: 700; font-variant-numeric: tabular-nums; }
.order-side { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.order-total { font-size: 1.1rem; }
.order-row.order-cancelled { opacity: 0.6; }
button.danger { color: #b42318; border-color: #f5c2bd; }
@media (min-width: 720px) {
  .order-row { grid-template-columns: 24px 1fr auto; }
  .order-side { grid-column: auto; flex-direction: column; align-items: flex-end; }
}
.chat-id { font-size: 1rem; font-weight: 700; user-select: all; }

/* ---------- Reports (phase 1.7) ---------- */
.report-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-bottom: 16px; }
.report-card { display: flex; flex-direction: column; gap: 4px; margin: 0; color: inherit; text-decoration: none; }
.report-card:hover { border-color: var(--brand); }
.report-scope { color: var(--muted); margin-top: -4px; }
.table-wrap { overflow-x: auto; }
.report-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.report-table th, .report-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.report-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.report-table tfoot th { border-top: 2px solid var(--text); border-bottom: 0; }
.packing-summary { font-size: 1.05rem; }
.packing-area h2 { margin: 20px 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--text); }
.packing-order { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; background: #fff; break-inside: avoid; }
.packing-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.packing-cash { margin-left: auto; font-weight: 700; }
.packing-items { margin: 6px 0 0; padding-left: 18px; }
.tick { width: 18px; height: 18px; border: 2px solid var(--text); border-radius: 4px; flex: none; }
.post textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #f8faf9; resize: vertical; margin-bottom: 8px; }

/* Printing (packing list on A4) */
@page { size: A4; margin: 12mm; }
@media print {
  .site-header, .no-print, .site-footer { display: none !important; }
  body, :root { background: #fff; }
  main.wrap { max-width: none; padding: 0; }
  .card, .packing-order { border-color: #999; box-shadow: none; }
  .packing-order { padding: 6px 8px; margin-bottom: 6px; }
  .store-tag { border-color: #000 !important; }
  a { color: inherit; text-decoration: none; }
  .report-table { font-size: 10pt; }
}
