/* =============================================================================
   LOCAL BOSSMAN — Shop dashboard styles
   =============================================================================
   Same brand tokens as customer app. Dashboard-focused layout: cards,
   sticky tabs, prominent action buttons.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Tokens (must match customer app)
   ----------------------------------------------------------------------------- */
:root {
  --black: #0E0E0E;
  --yellow: #FFC93C;
  --yellow-soft: #FFF6DC;

  --grey-900: #1a1a1a;
  --grey-700: #4a4a4a;
  --grey-500: #8a8a8a;
  --grey-300: #d4d4d4;
  --grey-100: #f4f4f4;
  --grey-50:  #fafafa;
  --white:    #ffffff;

  --success: #1f9d55;
  --danger:  #d33c3c;
  --warning: #e8a73c;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --shadow-card: 0 1px 2px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-pop:  0 8px 32px rgba(0,0,0,0.12);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--grey-50);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { display: flex; justify-content: center; align-items: stretch; }

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: 30px; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }
h4 { font-size: 16px; }
p  { margin: 0; }

a { color: inherit; text-decoration: none; }

/* -----------------------------------------------------------------------------
   App container
   ----------------------------------------------------------------------------- */
#app {
  width: 100%;
  max-width: 720px;
  min-height: 100dvh;
  background: var(--grey-50);
  position: relative;
  padding-bottom: 88px;
}

/* -----------------------------------------------------------------------------
   Splash
   ----------------------------------------------------------------------------- */
#splash {
  position: fixed; inset: 0;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
#splash[hidden] { display: none; }
.splash-logo {
  background: var(--yellow);
  width: 88px; height: 88px;
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
}
.splash-lb {
  font-weight: 800; font-size: 38px; color: var(--black); letter-spacing: -0.04em;
}

/* -----------------------------------------------------------------------------
   Screen + headers
   ----------------------------------------------------------------------------- */
.screen { padding: 16px 16px 24px; }

.app-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0 16px;
  gap: 12px;
}
.app-header h1 { font-size: 24px; }
.app-header .subtitle {
  font-size: 13px; color: var(--grey-500); margin-top: 2px;
  font-weight: 500;
}

.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 18px;
}
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--yellow); color: var(--black);
  width: 36px; height: 36px; border-radius: 10px;
  font-weight: 800; letter-spacing: -0.04em;
}

/* -----------------------------------------------------------------------------
   Buttons
   ----------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 20px;
  border: 0; border-radius: 999px;
  font-size: 15px; font-weight: 700;
  cursor: pointer; transition: transform 80ms ease, opacity 120ms ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary    { background: var(--black); color: var(--white); }
.btn-primary:hover:not(:disabled) { background: var(--grey-900); }

.btn-yellow     { background: var(--yellow); color: var(--black); }
.btn-secondary  { background: var(--grey-100); color: var(--black); }
.btn-secondary:hover:not(:disabled) { background: var(--grey-300); }
.btn-danger     { background: var(--danger); color: var(--white); }
.btn-success    { background: var(--success); color: var(--white); }

.btn-block { width: 100%; }
.btn-sm    { padding: 8px 14px; font-size: 13px; }

.btn-link {
  background: none; border: 0; padding: 4px 8px;
  color: var(--black); font-weight: 600; font-size: 14px;
  text-decoration: underline; cursor: pointer;
}

/* -----------------------------------------------------------------------------
   Inputs
   ----------------------------------------------------------------------------- */
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-label { font-size: 13px; font-weight: 600; color: var(--grey-700); }

.input, textarea.input, select.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 16px;
  color: var(--black);
  outline: none;
  transition: border-color 120ms ease;
}
.input:focus { border-color: var(--black); }

textarea.input { resize: vertical; min-height: 80px; }

.stack { display: flex; flex-direction: column; gap: 14px; }

/* -----------------------------------------------------------------------------
   Toast
   ----------------------------------------------------------------------------- */
#toast {
  position: fixed; left: 50%; bottom: 100px;
  transform: translateX(-50%);
  background: var(--black); color: var(--white);
  padding: 12px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-pop);
  z-index: 1000; max-width: 90%;
}
#toast.toast-error   { background: var(--danger); }
#toast.toast-success { background: var(--success); }

/* -----------------------------------------------------------------------------
   Bottom nav
   ----------------------------------------------------------------------------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 720px;
  background: var(--white);
  border-top: 1px solid var(--grey-100);
  display: flex;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bn-tab {
  flex: 1;
  background: none; border: 0;
  padding: 10px 4px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--grey-500);
  font-size: 11px; font-weight: 600;
}
.bn-tab svg { width: 22px; height: 22px; }
.bn-tab.active { color: var(--black); }

/* -----------------------------------------------------------------------------
   Cards
   ----------------------------------------------------------------------------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
}

.section-title {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  color: var(--grey-500); letter-spacing: 0.06em;
  margin: 20px 0 8px;
  padding: 0 4px;
}

/* -----------------------------------------------------------------------------
   Tabs (sub-nav, e.g. Today's order groups)
   ----------------------------------------------------------------------------- */
.sub-tabs {
  display: flex; gap: 6px;
  background: var(--grey-100);
  padding: 4px;
  border-radius: 999px;
  margin: 0 0 16px;
}
.sub-tab {
  flex: 1;
  background: none; border: 0;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--grey-700);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.sub-tab.active {
  background: var(--white); color: var(--black);
  box-shadow: var(--shadow-card);
}
.sub-tab .count-badge {
  background: var(--yellow); color: var(--black);
  border-radius: 999px;
  min-width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; padding: 0 6px;
}
.sub-tab.active .count-badge {
  background: var(--black); color: var(--yellow);
}

/* -----------------------------------------------------------------------------
   Order card
   ----------------------------------------------------------------------------- */
.order-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
  margin-bottom: 10px;
  cursor: pointer;
  transition: transform 80ms ease;
}
.order-card:active { transform: scale(0.99); }

.order-card .top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.order-card .order-number {
  font-weight: 800; font-size: 16px;
}
.order-card .order-meta {
  font-size: 13px; color: var(--grey-500); margin-top: 2px;
}
.order-card .order-bottom {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; gap: 8px;
}
.order-card .total {
  font-weight: 800; font-size: 16px;
}

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: var(--grey-100); color: var(--grey-700);
}
.chip-yellow  { background: var(--yellow-soft); color: var(--grey-900); }
.chip-success { background: rgba(31,157,85,0.12); color: var(--success); }
.chip-danger  { background: rgba(211,60,60,0.10); color: var(--danger); }
.chip-warning { background: rgba(232,167,60,0.16); color: #8a5c00; }
.chip-age     { background: var(--black); color: var(--yellow); }

/* -----------------------------------------------------------------------------
   Empty state
   ----------------------------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 40px 24px;
  color: var(--grey-500);
}
.empty-state h3 { color: var(--grey-700); margin-bottom: 6px; font-size: 18px; }
.empty-state p { font-size: 14px; }

.text-muted   { color: var(--grey-500); }
.text-small   { font-size: 13px; }
.text-center  { text-align: center; }
.row          { display: flex; align-items: center; gap: 8px; }
.row.between  { justify-content: space-between; }
.spacer       { flex: 1; }

/* -----------------------------------------------------------------------------
   Order detail — picking checklist
   ----------------------------------------------------------------------------- */
.pick-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: background 120ms ease;
}
.pick-item.picked {
  background: var(--grey-50);
}
.pick-item .check {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border: 2px solid var(--grey-300);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.pick-item.picked .check {
  background: var(--success);
  border-color: var(--success);
  color: white;
}
.pick-item.picked .name { text-decoration: line-through; color: var(--grey-500); }
.pick-item .name { font-weight: 600; flex: 1; }
.pick-item.picked .name { font-weight: 500; }
.pick-item .qty {
  font-weight: 800; font-size: 15px;
  background: var(--grey-100);
  padding: 4px 10px; border-radius: 8px;
  min-width: 36px; text-align: center;
}
.pick-item.picked .qty { background: transparent; color: var(--grey-500); }

.pick-item .age-flag {
  display: inline-flex; align-items: center;
  background: var(--black); color: var(--yellow);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.04em;
  margin-left: 6px;
}

/* -----------------------------------------------------------------------------
   Sticky action bar at bottom of order detail
   ----------------------------------------------------------------------------- */
.sticky-actions {
  position: fixed;
  bottom: 64px; /* sit above the 64px-tall bottom nav */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 720px;
  background: var(--white);
  border-top: 1px solid var(--grey-100);
  padding: 12px 16px env(safe-area-inset-bottom, 12px);
  display: flex;
  gap: 8px;
  z-index: 110;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.04);
}
.sticky-actions .btn { flex: 1; }

/* When a screen has the sticky-actions bar, give the screen more bottom
   padding so the receipt + items list aren't hidden behind it. */
.has-sticky-actions { padding-bottom: 160px; }

/* -----------------------------------------------------------------------------
   Products screen
   ----------------------------------------------------------------------------- */
.product-row {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-card);
}
.product-row .thumb {
  width: 56px; height: 56px;
  border-radius: 10px;
  background: var(--grey-100);
  flex-shrink: 0;
  background-size: cover; background-position: center;
}
.product-row .info { flex: 1; min-width: 0; }
.product-row .name {
  font-weight: 600; font-size: 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.product-row .brand {
  font-size: 12px; color: var(--grey-500);
}
.product-row .price-input {
  width: 80px;
  padding: 8px;
  text-align: right;
  font-weight: 700;
}

/* Toggle switch */
.toggle {
  position: relative;
  width: 46px; height: 26px;
  background: var(--grey-300);
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: background 120ms ease;
  flex-shrink: 0;
}
.toggle::after {
  content: '';
  position: absolute; top: 2px; left: 2px;
  width: 22px; height: 22px;
  background: var(--white);
  border-radius: 50%;
  transition: left 120ms ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle.on { background: var(--success); }
.toggle.on::after { left: 22px; }

/* Search bar */
.search-bar {
  position: relative;
  margin-bottom: 12px;
}
.search-bar input {
  padding-left: 38px;
  background: var(--white);
}
.search-bar svg {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--grey-500);
}

/* Filter pills */
.filter-pills {
  display: flex; gap: 6px;
  overflow-x: auto;
  margin-bottom: 12px;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.filter-pills::-webkit-scrollbar { display: none; }
.filter-pill {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--grey-100);
  color: var(--grey-700);
  border: 0;
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
}
.filter-pill.active { background: var(--black); color: var(--white); }

/* -----------------------------------------------------------------------------
   Modal
   ----------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  z-index: 9999;
}
.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  max-width: 360px; width: 100%;
}
.modal-title { font-size: 18px; margin-bottom: 6px; }
.modal-message {
  color: var(--grey-700);
  font-size: 14px;
  margin-bottom: 4px;
}
.modal-actions {
  display: flex; gap: 8px; margin-top: 16px;
}
.modal-actions .btn { flex: 1; }

/* -----------------------------------------------------------------------------
   Settings
   ----------------------------------------------------------------------------- */
.settings-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
}
.settings-section h3 {
  font-size: 16px; margin-bottom: 12px;
}
.settings-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--grey-100);
}
.settings-row:last-child { border-bottom: 0; }
.settings-row .label { font-weight: 600; font-size: 14px; }
.settings-row .value { color: var(--grey-700); font-size: 14px; }

/* -----------------------------------------------------------------------------
   Login screen
   ----------------------------------------------------------------------------- */
.login-screen {
  min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 24px;
  background: var(--white);
}
.login-screen .logo-block {
  text-align: center; margin-bottom: 32px;
}
.login-screen .logo-block .logo-mark {
  width: 64px; height: 64px;
  border-radius: 18px;
  font-size: 26px;
  margin: 0 auto 12px;
}
.login-screen h1 { font-size: 28px; text-align: center; margin-bottom: 6px; }
.login-screen .tagline {
  text-align: center; color: var(--grey-500); font-size: 14px;
  margin-bottom: 32px;
}

/* Tiny "shop owner" badge above login title */
.shop-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--black); color: var(--yellow);
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* =============================================================================
   Dashboard additions (Migration 16 era)
   ============================================================================= */

/* Refresh button (icon-only header button) */
.icon-btn {
  background: var(--grey-100);
  border: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--grey-700);
}
.icon-btn:active { transform: scale(0.95); }
.icon-btn:disabled { opacity: 0.5; }

/* KPI strip */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.kpi-tile {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 14px 12px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.kpi-value {
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.kpi-label {
  font-size: 11px; color: var(--grey-500);
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* Status grid (5 tiles) */
.status-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}
.status-tile {
  background: var(--white);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 10px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 80ms ease, border-color 120ms ease;
}
.status-tile:active { transform: scale(0.97); }
.status-tile.active { border-color: var(--black); }

.status-tile .st-count {
  font-size: 22px; font-weight: 800;
  line-height: 1;
}
.status-tile .st-label {
  font-size: 11px; color: var(--grey-500);
  font-weight: 600;
}

.status-tile-yellow  .st-count { color: #b8860b; }
.status-tile-warning .st-count { color: #c97400; }
.status-tile-success .st-count { color: var(--success); }
.status-tile-muted   .st-count { color: var(--grey-700); }
.status-tile-danger  .st-count { color: var(--danger); }

/* Alert banners */
.alert-banner {
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 12px;
}
.alert-warning {
  background: rgba(232,167,60,0.16);
  border: 1px solid rgba(232,167,60,0.3);
  color: #6b4500;
}
.alert-warning strong, .alert-warning .text-small { color: #6b4500; }

.alert-danger {
  background: rgba(211,60,60,0.08);
  border: 1px solid rgba(211,60,60,0.25);
  color: var(--danger);
}
.alert-danger strong { color: var(--danger); }
.alert-danger .text-small { color: var(--grey-700); }

.alert-age {
  background: var(--black);
  color: var(--yellow);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}
.alert-age strong { color: var(--yellow); font-size: 15px; }
.alert-age .text-small { color: rgba(255,201,60,0.85); margin-top: 4px; }

/* Mini empty state inside dashboard */
.empty-state-mini {
  text-align: center;
  padding: 24px 12px;
  color: var(--grey-500);
  font-size: 14px;
}

/* =============================================================================
   Order detail additions
   ============================================================================= */

/* Handover panel — big collection code when status=ready */
.handover-panel {
  background: var(--yellow);
  color: var(--black);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  text-align: center;
  margin-bottom: 12px;
}
.handover-label {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.handover-code {
  font-size: 56px; font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  margin: 8px 0 6px;
  font-variant-numeric: tabular-nums;
}
.handover-hint {
  font-size: 12px;
  opacity: 0.7;
}

/* Customer block: tap-to-call link */
.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--black);
  font-weight: 600; font-size: 14px;
  text-decoration: underline;
}

/* Timeline */
.timeline-card { padding: 14px 16px; }
.timeline { position: relative; }
.tl-row {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 0;
}
.tl-dot {
  flex-shrink: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--grey-300);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--grey-300);
}
.tl-row.tl-done .tl-dot {
  background: var(--success);
  box-shadow: 0 0 0 1px var(--success);
}
.tl-row.tl-danger .tl-dot {
  background: var(--danger);
  box-shadow: 0 0 0 1px var(--danger);
}
.tl-text { display: flex; gap: 8px; align-items: baseline; }
.tl-label { font-size: 14px; font-weight: 600; }
.tl-row:not(.tl-done) .tl-label { color: var(--grey-500); font-weight: 500; }
.tl-time { font-size: 12px; color: var(--grey-500); }
.tl-spine {
  margin-left: 5px;
  height: 8px;
  width: 2px;
  background: var(--grey-300);
}

/* =============================================================================
   Settings additions
   ============================================================================= */

/* Accepting orders section — bigger / more prominent */
.accepting-section.is-accepting {
  background: rgba(31,157,85,0.06);
  border: 1px solid rgba(31,157,85,0.2);
}
.accepting-section.is-paused {
  background: rgba(211,60,60,0.06);
  border: 1px solid rgba(211,60,60,0.2);
}

.chev { color: var(--grey-500); margin-left: 4px; }

/* Opening hours editor */
.hours-row {
  display: grid;
  grid-template-columns: 80px auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--grey-100);
}
.hours-row:last-child { border-bottom: 0; }
.hours-day {
  font-size: 13px; font-weight: 600;
  color: var(--grey-700);
}
.closed-toggle {
  background: var(--grey-100);
  border: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--success);
  cursor: pointer;
}
.closed-toggle.is-closed {
  background: rgba(211,60,60,0.12);
  color: var(--danger);
}
.hours-input {
  padding: 6px 8px;
  font-size: 13px;
  width: 100%;
  text-align: center;
}
.hours-input:disabled {
  background: var(--grey-50);
  color: var(--grey-500);
}

/* Payments card */
.payments-card {
  background: var(--grey-50);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

/* =============================================================================
   Rejection-reason modal additions
   ============================================================================= */
.modal-card-tall { max-width: 420px; }

.reason-list {
  display: flex; flex-direction: column;
  gap: 4px;
  margin: 12px 0;
  max-height: 240px;
  overflow-y: auto;
}
.reason-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  transition: border-color 100ms ease, background 100ms ease;
}
.reason-row:hover { background: var(--grey-50); }
.reason-row input[type="radio"] {
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--black);
  width: 16px; height: 16px;
}
.reason-row:has(input:checked) {
  border-color: var(--black);
  background: var(--grey-50);
}
.notes-input {
  margin-top: 8px;
  font-size: 14px;
  resize: vertical;
}

/* =============================================================================
   Pick state action sheet (full / partial / unavailable)
   ============================================================================= */
.pick-options {
  display: flex; flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.pick-option {
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 2px;
  font-size: 14px;
  transition: border-color 100ms ease, background 100ms ease;
}
.pick-option:hover { background: var(--grey-50); }
.pick-option.is-active {
  border-color: var(--black);
  background: var(--grey-50);
}
.pick-option-danger {
  border-color: rgba(211,60,60,0.3);
  color: var(--danger);
}
.pick-option-danger strong { color: var(--danger); }
.pick-option-danger.is-active {
  border-color: var(--danger);
  background: rgba(211,60,60,0.05);
}

/* Quantity stepper inside modal */
.qty-stepper {
  display: flex; align-items: center; justify-content: center;
  gap: 16px;
  padding: 24px 12px;
  margin: 12px 0;
  background: var(--grey-50);
  border-radius: var(--radius-md);
}
.qty-btn {
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 22px; font-weight: 800;
  cursor: pointer;
}
.qty-btn:disabled {
  background: var(--grey-300);
  cursor: not-allowed;
}
.qty-display {
  font-size: 28px; font-weight: 800;
  letter-spacing: -0.02em;
  min-width: 100px; text-align: center;
}

/* =============================================================================
   Pick item row — shows pick state visually
   ============================================================================= */
.pick-item.state-picked_full {
  background: rgba(31,157,85,0.06);
}
.pick-item.state-picked_full .check {
  background: var(--success);
  border-color: var(--success);
  color: var(--white);
}
.pick-item.state-picked_partial {
  background: rgba(232,167,60,0.08);
}
.pick-item.state-picked_partial .check {
  background: var(--warning);
  border-color: var(--warning);
  color: var(--black);
  font-weight: 800;
  font-size: 11px;
}
.pick-item.state-unavailable {
  background: rgba(211,60,60,0.06);
}
.pick-item.state-unavailable .check {
  background: var(--danger);
  border-color: var(--danger);
  color: var(--white);
}
.pick-item.state-unavailable .name,
.pick-item.state-unavailable .qty {
  text-decoration: line-through;
  color: var(--grey-500);
}
.pick-state-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 2px;
  letter-spacing: 0.04em;
}
.pick-state-tag.state-picked_partial {
  background: rgba(232,167,60,0.18);
  color: #8a5c00;
}
.pick-state-tag.state-unavailable {
  background: rgba(211,60,60,0.12);
  color: var(--danger);
}
