:root {
  color-scheme: light;
  --bg: #f3f5f7;
  --panel: #ffffff;
  --text: #18202a;
  --muted: #667085;
  --line: #d9dee7;
  --brand: #0f766e;
  --brand-strong: #115e59;
  --ink: #101828;
  --soft: #f8fafc;
  --danger: #b42318;
  --warning: #b54708;
  --ok: #027a48;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; }
button { border: 0; border-radius: 6px; padding: 9px 13px; background: var(--brand); color: white; cursor: pointer; font-weight: 700; box-shadow: 0 1px 1px rgba(16,24,40,.08); }
button:hover { background: var(--brand-strong); }
button.secondary { background: #eef2f6; color: var(--text); box-shadow: none; }
button.secondary:hover { background: #e3e8ef; }
button.compact { padding: 6px 9px; min-height: 30px; font-size: 12px; }
button.danger { background: var(--danger); }
button:disabled { opacity: .55; cursor: not-allowed; }
.icon { width: 18px; height: 18px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
input, select, textarea { width: 100%; min-width: 0; max-width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 9px 10px; background: #fff; color: var(--text); transition: border-color .12s, box-shadow .12s; }
input[type="date"] { min-width: 0; max-width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #5bb8ac; box-shadow: 0 0 0 3px rgba(15,118,110,.14); }
textarea { min-height: 84px; resize: vertical; }
label { display: grid; gap: 5px; color: #344054; font-size: 13px; font-weight: 600; }
.file-upload-button { display: inline-flex; align-items: center; justify-content: center; width: auto; border-radius: 6px; padding: 9px 13px; background: #eef2f6; color: var(--text); cursor: pointer; box-shadow: none; font-weight: 800; }
.file-upload-button input { display: none; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 13px; }
th { color: #475467; font-weight: 800; background: #f8fafc; text-transform: uppercase; letter-spacing: .02em; font-size: 11px; }
tbody tr:hover { background: #fbfcfe; }
.mobile-card-list { display: none; }
.mobile-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 12px; box-shadow: 0 1px 2px rgba(16,24,40,.04); display: grid; gap: 10px; }
.mobile-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mobile-card-title { min-width: 0; display: grid; gap: 2px; }
.mobile-card-title strong { overflow-wrap: anywhere; }
.mobile-card-title small { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.mobile-card-fields { display: grid; gap: 7px; }
.mobile-card-field { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding-top: 7px; border-top: 1px solid #edf1f6; }
.mobile-card-field span:first-child { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; flex: 0 0 42%; }
.mobile-card-field strong { color: #344054; font-size: 13px; font-weight: 700; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.mobile-card-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid #edf1f6; }
.mobile-empty { border: 1px dashed var(--line); border-radius: 8px; padding: 14px; color: var(--muted); text-align: center; background: #fbfcfe; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 252px 1fr; transition: grid-template-columns .16s ease; }
.shell.sidebar-collapsed { grid-template-columns: 76px 1fr; }
.sidebar { background: #101828; color: #e5e7eb; padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; min-width: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar-top { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand { padding: 0 0 0 8px; min-width: 0; }
.brand h1 { margin: 0; font-size: 20px; line-height: 1.2; }
.brand p { margin: 6px 0 0; color: #9ca3af; font-size: 12px; }
.sidebar-toggle { width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.1); color: #e5e7eb; box-shadow: none; }
.sidebar-toggle:hover { background: rgba(255,255,255,.18); }
.nav { display: grid; gap: 4px; }
.nav button { text-align: left; background: transparent; color: #d1d5db; padding: 10px 12px; box-shadow: none; font-weight: 700; display: flex; align-items: center; gap: 10px; min-width: 0; }
.nav button.active, .nav button:hover { background: rgba(255,255,255,.11); color: white; }
.nav-icon { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 6px; background: rgba(255,255,255,.08); flex: 0 0 auto; }
.nav-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shell.sidebar-collapsed .sidebar { padding-inline: 10px; }
.shell.sidebar-collapsed .sidebar-top { grid-template-columns: 1fr; justify-items: center; }
.shell.sidebar-collapsed .brand { display: none; }
.shell.sidebar-collapsed .sidebar-toggle { transform: none; }
.shell.sidebar-collapsed .nav button { justify-content: center; padding: 9px; }
.shell.sidebar-collapsed .nav-label { display: none; }
.main { min-width: 0; }
.mobile-menu-button, .mobile-drawer, .mobile-drawer-backdrop { display: none; }
.topbar { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; }
.topbar strong { display: block; font-size: 16px; }
.top-subtitle { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.user-chip { display: grid; gap: 1px; align-items: center; min-height: 38px; padding: 4px 12px; border-radius: 999px; background: #f2f4f7; color: #344054; line-height: 1.15; }
.user-chip strong { font-size: 13px; font-weight: 800; }
.user-chip small { font-size: 11px; color: var(--muted); font-weight: 700; }
.content { padding: 22px 24px 36px; display: grid; gap: 18px; }
.page-intro { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.page-intro h1 { margin: 0; font-size: 24px; letter-spacing: 0; }
.page-intro p { margin: 5px 0 0; color: var(--muted); max-width: 760px; }
.section { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.section-head { padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); background: #fff; }
.section-head h2 { margin: 0; font-size: 18px; }
.section-body { padding: 18px; }
.filter-bar { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(150px, 1fr)); gap: 12px; align-items: end; margin-bottom: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; }
.payment-filter-bar { grid-template-columns: minmax(220px, 1.4fr) repeat(6, minmax(140px, 1fr)); }
.supplier-filter-bar { grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, 1fr)); }
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.full-span { grid-column: 1 / -1; }
.permission-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; }
.credential-grid { display: grid; gap: 10px; }
.credential-row { display: grid; grid-template-columns: minmax(160px, .8fr) repeat(2, minmax(180px, 1fr)); gap: 12px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; }
.credential-row strong { display: block; color: var(--ink); }
.credential-row .muted { display: block; margin-top: 3px; font-size: 12px; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pagination-row { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 14px; }
.metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.metric { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 16px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.metric span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.metric strong { display: block; font-size: 25px; margin-top: 7px; color: var(--ink); }
.metric small { display: block; margin-top: 5px; color: var(--muted); }
.metric .pending-text { color: var(--warning); font-weight: 800; }
.muted { color: var(--muted); }
.pill { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: 999px; background: #eef2f6; color: #344054; font-size: 12px; font-weight: 700; }
.pill.ok { background: #ecfdf3; color: var(--ok); }
.pill.warn { background: #fffaeb; color: var(--warning); }
.pill.danger { background: #fef3f2; color: var(--danger); }
.bool-mark { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 999px; font-size: 16px; font-weight: 900; line-height: 1; }
.bool-mark.ok { background: #ecfdf3; color: var(--ok); }
.bool-mark.danger { background: #fef3f2; color: var(--danger); }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.login-panel { width: min(920px, 100%); background: white; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: grid; grid-template-columns: 1fr 1.4fr; }
.login-copy { background: #101828; color: white; padding: 32px; }
.login-copy p { color: #cbd5e1; line-height: 1.5; }
.login-form { padding: 28px; display: grid; gap: 14px; }
.error { background: #fef3f2; border: 1px solid #fecdca; color: var(--danger); padding: 10px 12px; border-radius: 6px; }
.success { background: #ecfdf3; border: 1px solid #abefc6; color: var(--ok); padding: 10px 12px; border-radius: 6px; }
.line-editor { border: 1px solid var(--line); border-radius: 8px; padding: 0; display: grid; background: #fbfcfe; margin-top: 10px; overflow: hidden; }
.line-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; cursor: pointer; background: #fff; }
.line-head:hover { background: #f8fafc; }
.line-body { display: grid; gap: 12px; padding: 14px; border-top: 1px solid var(--line); }
.line-editor.collapsed .line-body { display: none; }
.line-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 6px; color: var(--muted); font-size: 12px; }
.line-summary strong { color: #344054; }
.line-list-actions { justify-content: flex-end; padding-top: 12px; border-top: 1px solid var(--line); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: #98a2b3; box-shadow: 0 0 0 3px #eef2f6; flex: 0 0 auto; }
.status-dot.ok { background: var(--ok); box-shadow: 0 0 0 3px #dcfae6; }
.status-dot.warn { background: var(--warning); box-shadow: 0 0 0 3px #fef0c7; }
.status-dot.danger { background: var(--danger); box-shadow: 0 0 0 3px #fee4e2; }
.check-row { display: flex; align-items: center; gap: 8px; min-height: 42px; font-weight: 700; }
.check-row input { width: auto; }
.size-row { display: grid; grid-template-columns: 1fr 120px auto; gap: 8px; align-items: end; }
.hidden { display: none !important; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .48); display: grid; place-items: center; padding: 20px; z-index: 20; }
.modal { width: min(1120px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: white; border-radius: 8px; box-shadow: 0 24px 80px rgba(15,23,42,.22); }
.wide-modal { width: min(1240px, 100%); }
.modal .section-head { position: sticky; top: 0; background: white; z-index: 2; }
.form-band { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 14px; display: grid; gap: 12px; }
.form-band h3 { margin: 0; font-size: 14px; color: #344054; }
.band-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.order-form { background: #f8fafc; padding: 2px; }
.auto-result { margin-top: 16px; }
.preview-panel { display: grid; gap: 14px; margin-top: 16px; }
.preview-panel h3 { margin: 0; font-size: 16px; }
.preview-supplier { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: white; }
.preview-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.preview-title span { color: var(--muted); font-size: 12px; font-weight: 700; }
.bot-status { display: grid; gap: 14px; margin-top: 16px; }
.bot-summary, .batch-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bot-summary { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #f8fafc; }
.bot-summary h3, .batch-head p { margin: 0; }
.bot-summary p, .batch-head p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.batch-card { border: 1px solid var(--line); border-radius: 8px; background: white; padding: 14px; display: grid; gap: 12px; }
.po-input { max-width: 260px; }
.log-panel { border: 1px solid var(--line); border-radius: 8px; background: #fbfcfe; padding: 10px 12px; }
.log-panel summary { cursor: pointer; font-weight: 800; color: #344054; }
.log-panel ol { margin: 10px 0 0; padding-left: 22px; color: #475467; display: grid; gap: 6px; }
pre { white-space: pre-wrap; background: #101828; color: #e5e7eb; padding: 14px; border-radius: 8px; overflow: auto; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { background: #eef2f6; color: var(--text); }
.tabs button.active { background: var(--brand); color: white; }
.payment-tabs { border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: #f8fafc; width: fit-content; }
.payment-panel { display: none; }
.payment-panel.active { display: grid; }
.settings-tabs { border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: #fff; width: fit-content; }
.settings-tab-panel { display: none; gap: 14px; }
.settings-tab-panel.active { display: grid; }
.favicon-field { display: grid; gap: 7px; color: #344054; font-size: 13px; font-weight: 600; }
.favicon-upload-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.favicon-preview { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line); object-fit: contain; background: #fff; padding: 4px; }
.danger-zone { border-color: #fecdca; }
.danger-zone .section-head { background: #fff5f5; }
.danger-zone h3 { margin: 0 0 6px; color: var(--danger); }
.order-tabs { position: sticky; top: 58px; z-index: 3; padding: 10px; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.order-tab-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.order-stage-chip { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.order-stage-chip > span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.order-tab-panel { display: none; }
.order-tab-panel.active { display: block; }
.order-modal-actions { position: sticky; bottom: 0; justify-content: flex-end; padding: 12px; background: rgba(248,250,252,.96); border: 1px solid var(--line); border-radius: 8px; }
.size-matrix { border: 1px solid var(--line); border-radius: 8px; background: white; padding: 10px; }
.size-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(82px, 1fr)); gap: 8px; }
.size-cell { display: grid; gap: 6px; padding: 8px; border: 1px solid #edf1f6; border-radius: 8px; background: #f8fafc; text-align: center; }
.size-cell span { color: #475467; font-size: 12px; font-weight: 900; }
.size-matrix input { min-width: 0; text-align: center; padding: 7px 6px; }
.free-size-row { max-width: 220px; }
.fulfillment-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fulfillment-summary > div { border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; padding: 12px; }
.fulfillment-summary span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.fulfillment-summary strong { display: block; margin-top: 6px; font-size: 15px; color: var(--ink); }
.production-print-summary { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 12px; display: grid; gap: 10px; }
.production-print-summary h3 { margin: 0; }
.production-table { table-layout: fixed; }
.production-table th, .production-table td { overflow-wrap: anywhere; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; padding: 12px; }
.toggle-row label { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.toggle-row input[type="checkbox"] { width: 18px; height: 18px; }
.stage-board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.stage-box { min-height: 260px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; display: flex; flex-direction: column; cursor: pointer; }
.stage-box:hover { border-color: #a7d8d2; }
.stage-box-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; border-bottom: 1px solid var(--line); background: white; }
.stage-box-head strong { font-size: 13px; }
.stage-box-head span { display: inline-flex; min-width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 999px; background: #eef2f6; font-size: 12px; font-weight: 800; color: #344054; }
.stage-orders { padding: 10px; display: grid; gap: 8px; align-content: start; }
.order-card { display: grid; gap: 4px; width: 100%; text-align: left; background: white; color: var(--text); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.order-card:hover { background: #f9fbfb; border-color: #a7d8d2; color: var(--text); }
.order-card span, .order-card small { color: var(--muted); }
.order-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.due-chip { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 7px; border-radius: 999px; font-size: 11px; font-weight: 900; white-space: nowrap; }
.due-chip.ok { background: #ecfdf3; color: var(--ok); }
.due-chip.warn { background: #fffaeb; color: var(--warning); border: 1px solid #fedf89; }
.due-chip.danger { background: #fef3f2; color: var(--danger); border: 1px solid #fecdca; }
.stage-more { width: 100%; background: transparent; border: 1px dashed var(--line); color: #344054; font-weight: 800; }
.stage-more:hover { background: #fff; border-color: #a7d8d2; color: #0f766e; }
.empty-stage { border: 1px dashed var(--line); border-radius: 8px; padding: 14px; color: var(--muted); text-align: center; background: rgba(255,255,255,.55); }
@media (max-width: 980px) {
  .shell, .shell.sidebar-collapsed { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { min-height: 58px; padding: 0 12px; top: 0; }
  .topbar .actions { gap: 6px; }
  .topbar .secondary { padding: 8px 10px; }
  .user-chip { padding: 4px 9px; max-width: 160px; }
  .user-chip strong, .user-chip small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .content { padding: 14px 12px 88px; gap: 14px; }
  .page-intro { padding: 14px; align-items: stretch; flex-direction: column; }
  .page-intro h1 { font-size: 21px; }
  .section-head { padding: 13px 14px; align-items: flex-start; flex-direction: column; }
  .section-body { padding: 14px; overflow-x: visible; }
  .mobile-menu-button { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 18; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 132px; min-height: 48px; border-radius: 999px; box-shadow: 0 12px 28px rgba(16,24,40,.24); }
  .mobile-drawer-backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(15,23,42,.45); }
  .mobile-drawer-backdrop.open { display: block; }
  .mobile-drawer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; display: grid; gap: 12px; max-height: min(78vh, 620px); padding: 14px; border-radius: 18px 18px 0 0; background: #101828; color: #e5e7eb; box-shadow: 0 -18px 50px rgba(15,23,42,.28); transform: translateY(110%); transition: transform .18s ease; }
  .mobile-drawer.open { transform: translateY(0); }
  .mobile-drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 2px 10px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .mobile-drawer-head strong, .mobile-drawer-head span { display: block; }
  .mobile-drawer-head span { margin-top: 2px; color: #9ca3af; font-size: 12px; }
  .mobile-nav { max-height: calc(78vh - 90px); overflow-y: auto; padding-bottom: 6px; }
  .mobile-nav button { color: #d1d5db; }
  .mobile-nav button.active, .mobile-nav button:hover { color: white; }
  .topbar .account-actions { display: none; }
  .mobile-account-panel { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
  .mobile-account-panel .secondary { display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; background: rgba(255,255,255,.1); color: #e5e7eb; box-shadow: none; }
  .mobile-account-panel .secondary:hover { background: rgba(255,255,255,.18); }
  .mobile-user-chip { border-radius: 8px; background: rgba(255,255,255,.08); color: #fff; }
  .mobile-user-chip small { color: #cbd5e1; }
  .metrics { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .metric { min-width: min(76vw, 260px); scroll-snap-align: start; }
  .filter-bar, .permission-grid, .credential-row, .grid.two, .grid.three, .login-panel, .fulfillment-summary { grid-template-columns: 1fr; }
  .stage-board { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .stage-box { min-width: min(84vw, 340px); min-height: 238px; scroll-snap-align: start; }
  .stage-orders { max-height: 250px; overflow-y: auto; }
  .actions { align-items: stretch; }
  .actions > button { width: auto; }
  .desktop-table { display: none; }
  .mobile-card-list { display: grid; gap: 10px; }
  .mobile-card-actions > button { flex: 1 1 auto; }
  table:not(.desktop-table) { min-width: 0; }
  .production-table { border-collapse: separate; border-spacing: 0 10px; table-layout: auto; }
  .production-table thead { display: none; }
  .production-table tr { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 10px; }
  .production-table td { display: grid; grid-template-columns: minmax(86px, .42fr) minmax(0, 1fr); align-items: center; gap: 10px; padding: 0; border-bottom: 0; min-width: 0; }
  .production-table td::before { content: attr(data-label); color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; }
  .production-table input[type="date"], .production-table select { width: 100%; min-width: 0; }
  .size-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .free-size-row { max-width: none; }
  .modal-backdrop { padding: 0; align-items: stretch; }
  .modal { width: 100%; max-height: 100vh; border-radius: 0; }
  .order-tabs { top: 58px; align-items: stretch; flex-direction: column; }
  .order-stage-chip { justify-content: space-between; }
}
