/* Business surfaces. Loaded after the shared Apple workspace theme. */
.flow-order-card, .demand-index-card, .reprint-bundle-card, .reprint-tracking-bundle,
.production-index-card, .shipment-index-card, .stock-color-group, .stock-movement-row,
.stock-tool-group, .stock-target-demand-panel {
  border-color: var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-soft);
}
.flow-order-card.expanded, .demand-index-card.expanded, .reprint-bundle-card.expanded {
  border-color: #bbd7f4; box-shadow: var(--shadow-soft);
}
.flow-order-card.rush, .demand-index-card.rush, .production-index-card.rush { border-left-color: #cf3b32; }
.reprint-bundle-card, .reprint-tracking-bundle { border-left-color: #c38a28; }
.flow-order-toggle, .demand-index-toggle, .reprint-bundle-toggle,
.production-index-card > summary, .shipment-index-card > summary {
  grid-template-columns: minmax(0,1.4fr) minmax(0,.65fr) auto 20px;
  min-height: 88px; gap: 16px; padding: 17px 20px;
}
.flow-order-code, .demand-index-code, .production-index-code { color: #74747d; font-size: 11px; font-weight: 500; letter-spacing: .02em; }
.flow-order-identity > strong, .demand-index-identity > strong { font-size: 15px; font-weight: 600; line-height: 1.5; }
.flow-order-identity > small, .demand-index-identity > small,
.flow-order-compact-meta small, .demand-index-compact small, .reprint-bundle-compact-meta small { color: #76767d; font-size: 11px; line-height: 1.5; }
.flow-order-compact-meta strong, .demand-index-compact span, .reprint-bundle-compact-meta strong { font-size: 12px; font-weight: 600; }
.production-index-card > summary > div:first-child > span, .shipment-index-card > summary > div:first-child > span { font-size: 11px; font-weight: 500; color: #74747d; letter-spacing: .02em; }
.production-index-card > summary > div:first-child > small, .shipment-index-card > summary > div:first-child > small,
.production-index-meta small { font-size: 11px; color: #76767d; line-height: 1.5; }
.production-index-card > summary > div:first-child > strong, .shipment-index-card > summary > div:first-child > strong { font-weight: 600; line-height: 1.5; }
.flow-order-detail, .demand-index-detail, .production-index-detail, .shipment-index-detail { background: #fafafc; }
.flow-detail-heading { padding: 23px 24px 20px; }
.flow-detail-heading h4, .demand-detail-head h4 { font-size: 23px; font-weight: 600; letter-spacing: -.025em; }
.flow-detail-heading p:last-child, .demand-detail-head p:last-child { font-size: 12px; line-height: 1.6; }
.flow-detail-table-head, .flow-detail-row { grid-template-columns: minmax(200px,1.4fr) 54px minmax(100px,.65fr) minmax(170px,1fr); padding-left: 24px; padding-right: 24px; }
.flow-detail-table-head { background: #f0f0f3; color: #77777e; font-size: 11px; font-weight: 500; padding-top: 12px; padding-bottom: 12px; }
.flow-detail-row { min-height: 114px; padding-top: 18px; padding-bottom: 18px; background: #fff; }
.flow-detail-copy { gap: 5px; }
.flow-detail-copy b, .flow-detail-copy strong { font-size: 12px; line-height: 1.5; font-weight: 600; }
.flow-detail-copy small, .flow-detail-row > span > small { font-size: 11px; line-height: 1.6; color: #76767d; }
.flow-detail-copy b, .flow-detail-copy strong, .flow-detail-row > span > b { white-space: normal; overflow-wrap: anywhere; }
.flow-detail-product img { width: 64px; height: 60px; border: 1px solid var(--line); background: #f5f5f7; border-radius: 13px; }
.flow-detail-resin { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.flow-detail-resin b, .flow-detail-resin i, .flow-detail-resin em { font-size: 11px; }
.flow-detail-resin input { width: 72px; min-height: 36px; font-size: 13px; padding: 7px; border-radius: 9px; }
.flow-detail-resin .button { min-height: 36px; padding: 8px 10px; font-size: 11px; border-radius: 9px; }
.flow-inline-actions, .flow-inline-state { border: 1px solid var(--line); border-radius: 13px; padding: 10px; background: #f7f7f9; gap: 8px; }
.flow-inline-actions > small, .flow-inline-state > small { font-size: 11px; line-height: 1.5; }
.flow-inline-state > b { font-size: 12px; font-weight: 600; }
.flow-inline-actions .button { min-height: 40px; padding: 9px 8px; font-size: 12px; border-radius: 10px; }
.flow-inline-receive { grid-template-columns: minmax(0,1fr); padding: 12px; gap: 10px !important; background: #fff8eb; }
.flow-inline-receive > small { font-size: 11px !important; }
.flow-inline-receive label { font-size: 12px; }
.flow-inline-receive input { height: 44px; font-size: 14px; }
.flow-stat-strip { padding: 20px 24px 12px; gap: 10px; }
.flow-stat-strip span { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 14px; }
.flow-stat-strip small, .flow-stat-strip em, .flow-stat-strip strong i { font-size: 11px; line-height: 1.5; }
.flow-stat-strip strong { font-weight: 600; font-size: 23px; font-variant-numeric: tabular-nums; }
.flow-stage-block { border-color: #dee7f2; background: #f2f6fb; border-radius: 16px; margin: 8px 24px 20px; }
.flow-stage-title h5 { font-size: 16px; font-weight: 600; }
.flow-stage-progress span { font-size: 11px; }
.flow-stage-progress .active { font-weight: 600; }
.flow-current-work { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); background: #fff; padding: 20px 24px; }
.flow-current-work h5 { font-size: 17px; font-weight: 600; }
.flow-current-work p:last-child, .flow-action-hint { color: #74747b; font-size: 12px; line-height: 1.65; }
.whole-order-complete { min-width: 0; }
.whole-order-complete strong { font-size: 13px; }
.whole-order-complete span { font-size: 11px; line-height: 1.5; }
.completed-record-archive, .terminated-record-archive { border-radius: 18px; }
.completed-record-archive > summary, .terminated-record-archive > summary { min-height: 60px; }
.lifecycle-progress, .order-product-row > .production-progress { background: #f5f7fa; border-color: #e5e9ef; }
.production-progress-track i { background: #0071e3; box-shadow: none; }
.card-meta, .card-meta span { line-height: 1.7; }
.order-product-row, .line-item, .card-main, .task-main, .flow-detail-control { min-width: 0; }
.order-product-row > span, .line-item > span { overflow-wrap: anywhere; }
.order-termination-action small, .termination-record small { font-size: 11px; }

/* Quiet, segmented stock tools; stock categories and units stay distinct. */
.inventory-warehouse-tab { min-height: 146px; padding: 18px; border-radius: 18px; box-shadow: var(--shadow-soft); }
.inventory-warehouse-tab > span { font-size: 13px; font-weight: 600; }
.inventory-warehouse-tab > strong { font-size: 32px; font-weight: 600; }
.inventory-warehouse-tab > strong small { font-size: 11px; }
.inventory-warehouse-tab > small { font-size: 11px; line-height: 1.5; white-space: normal; }
.inventory-warehouse-tab > em { font-size: 10px; line-height: 1.5; white-space: normal; }
.inventory-warehouse-heading > small { font-size: 11px; }
.stock-workspace-nav { padding: 5px; margin-bottom: 24px; gap: 4px; border: 1px solid #e0e0e5; border-radius: 15px; background: #eaeaec; }
.stock-workspace-nav button { min-height: 42px; color: #707078; font-size: 12px; font-weight: 500; border-radius: 10px; }
.stock-workspace-nav button[aria-current=page] { color: #1d1d1f; box-shadow: 0 2px 5px #0000000a; }
.stock-query-panel, .stock-history-filter, .stock-entry-layout > .panel { padding: 24px; }
.stock-query-fields, .stock-history-fields { gap: 16px; }
.stock-query-fields label, .stock-history-fields label { color: #686870; font-size: 12px; }
.stock-panel-heading h3 { font-size: 20px; font-weight: 600; letter-spacing: -.025em; }
.stock-panel-heading p, .stock-entry-rule { color: #77777e; font-size: 12px; line-height: 1.7; }
.stock-color-group > summary, .stock-movement-row > summary, .stock-tool-group > summary { min-height: 80px; padding: 18px 20px; }
.stock-color-group[open] > summary, .stock-movement-row[open] > summary { background: #fafafc; border-color: var(--line); }
.stock-color-group summary strong, .stock-movement-item strong { font-size: 14px; font-weight: 600; }
.stock-color-group summary small, .stock-movement-item small { color: #77777e; font-size: 11px; }
.stock-color-group > summary > img, .stock-image-empty { background: #f5f5f7; border-color: var(--line); border-radius: 12px; }
.stock-size-grid { padding: 16px; gap: 12px; }
.stock-size-card { border-color: var(--line); border-radius: 14px; background: #fff; }
.stock-size-card > summary { min-height: 96px; padding: 16px; }
.stock-size-card > summary > b, .stock-size-card > summary > strong { font-size: 22px; font-weight: 600; }
.stock-size-card summary small, .stock-size-card summary span { color: #77777e; font-size: 11px; }
.stock-batch-list { line-height: 1.7; }
.stock-sku-picker { padding: 18px; border-radius: 17px; background: #f7f7f9; }
.stock-color-choice, .stock-entry-layout .stock-color-choice, .outbound-picker .stock-color-choice { border-color: #dfdfe5; border-radius: 12px; font-size: 12px; font-weight: 500; line-height: 1.5; }
.stock-color-choice img { object-fit: contain; background: #f5f5f7; }
.stock-color-choice.selected, .stock-choice.selected, .stock-record-option.selected { background: #edf5ff; border-color: #0071e3; box-shadow: inset 0 0 0 1px #0071e3; }
.stock-choice { min-height: 44px; font-size: 13px; font-weight: 500; line-height: 1.3; }
.stock-record-option { min-height: 68px; border-color: var(--line); padding: 13px 15px; border-radius: 13px; }
.stock-record-option strong { font-weight: 600; }
.stock-record-option small { font-size: 11px; }
.stock-warehouse-picker label > span { background: #fff; border-radius: 14px; }
.stock-warehouse-picker small { font-size: 11px; line-height: 1.5; }
.stock-warehouse-picker input:checked + span { box-shadow: none; }
.stock-sku-summary, .stock-submit-total, .outbound-summary { background: #edf4fc; border-radius: 14px; }
.stock-form-rule, .stock-entry-rule, .stock-optional > summary small { font-size: 12px; line-height: 1.65; }
.stock-step-title, .stock-step-title strong { font-size: 12px; font-weight: 600; }
.stock-history-totals > div { border-color: var(--line); border-radius: 17px; box-shadow: var(--shadow-soft); }
.stock-history-totals strong { color: #1d1d1f; font-weight: 600; font-variant-numeric: tabular-nums; }
.stock-history-totals span, .stock-movement-detail dt { color: #77777e; }
.stock-direction { border-radius: 8px; padding: 6px 9px; }
.stock-movement-detail { gap: 20px; background: #fafafc; }
.stock-draft-row { padding: 15px 0; grid-template-columns: 42px minmax(0,1fr) 70px 44px; }
.stock-remove { min-width: 44px; border-radius: 10px; }
.stock-remove:hover { background: #f5f5f7; color: #cf3b32; }
.stock-success-receipt { border-color: #d0e6d9; background: #f3faf6; box-shadow: none; }
.stock-tool-group > summary > span { min-width: 0; }
.stock-tool-group > summary small { font-size: 12px; }
.stock-target-demand-panel h3 { font-size: 23px; font-weight: 600; }
.stock-target-demand-panel p, .stock-target-rule, .stock-target-preview small { font-size: 12px; line-height: 1.6; }

/* Native business inputs: radios keep their own size inside a large label. */
.view-root input[type="checkbox"], .view-root input[type="radio"],
.check-line input[type="checkbox"], .damage-unit input[type="radio"] {
  width: 18px; height: 18px; min-height: 18px; min-width: 18px; padding: 0;
  flex: 0 0 18px; accent-color: #0071e3; box-shadow: none;
}
.view-root .urgency-choice input, .view-root .stock-warehouse-picker input { width: 1px; height: 1px; min-height: 1px; min-width: 1px; }
.check-line, .stock-checkbox, .damage-unit label { min-height: 44px; }
.urgency-choice input:focus-visible + span, .stock-warehouse-picker input:focus-visible + span { outline: 3px solid #0071e388; outline-offset: 3px; }
.production-order-form, .manager-demand-form { border-radius: 20px; }
.production-order-form .item-builder, .manager-demand-form .item-builder { border: 1px solid var(--line); border-radius: 17px; background: #f7f7f9; padding: 22px; }
.production-order-form .color-picker { gap: 10px; }
.production-order-form .color-choice { min-height: 106px; grid-template-rows: 72px auto; padding: 7px; border-radius: 13px; border-color: #e0e0e5; background: #fff; }
.production-order-form .color-choice .product-photo { height: 72px; background: #f5f5f7; border-radius: 9px; }
.production-order-form .color-choice strong { padding: 5px 2px; font-size: 12px; font-weight: 500; line-height: 1.5; }
.production-order-form .color-choice:has(input:checked) { border-color: #0071e3; box-shadow: inset 0 0 0 1px #0071e3; background: #edf5ff; }
.production-order-form .color-choice input { top: 10px; left: 10px; width: 16px; height: 16px; min-width: 16px; min-height: 16px; }
.production-kind-tabs { background: #eaeaec; border-color: #e0e0e5; border-radius: 15px; }
.production-kind-tabs button { min-height: 52px; border-radius: 10px; }
.production-kind-tabs button.selected { color: #1d1d1f; border-color: #fff; box-shadow: 0 2px 5px #0000000a; }
.production-kind-tabs span { font-size: 13px; font-weight: 600; }
.production-kind-tabs small { color: #77777e; font-size: 11px; }
.add-detail-bar { border-color: #dce7f3; background: #edf4fc; border-radius: 14px; }
.add-detail-bar strong, .production-order-form .add-detail-bar strong { font-size: 13px; font-weight: 600; line-height: 1.5; }
.add-detail-bar small { font-size: 11px; }
.flexible-item-builder { border-color: #dce7f3; background: #f5f8fc; box-shadow: none; }
.catalog-grid { gap: 20px; }
.product-card { padding: 24px; }
.product-card h3 { font-size: 24px; font-weight: 600; letter-spacing: -.025em; }
.product-code { color: #e7e7ec; font-size: 42px; font-weight: 500; }
.product-color-grid { gap: 10px; }
.product-color-grid figure { border-color: var(--line); border-radius: 14px; overflow: hidden; background: #f7f7f9; }
.product-color-grid img { height: 128px; object-fit: contain; mix-blend-mode: normal; }
.product-color-grid figcaption { padding: 12px; background: #fff; font-size: 12px; }
.product-color-grid figcaption small { font-size: 11px; color: #77777e; }
.chip { border-radius: 8px; font-size: 11px; }
.preview-scroll { max-width: 100%; min-width: 0; overflow-x: auto; border-radius: 16px; overscroll-behavior-x: contain; }
.data-table { max-width: 100%; overflow-x: auto; border-color: var(--line); border-radius: 16px; }
.data-table th { background: #eeeef1; color: #707078; font-size: 11px; font-weight: 600; letter-spacing: 0; line-height: 1.5; }
.data-table td, .data-table th { padding: 15px 16px; border-color: var(--line); }
.data-table td { color: #47474f; font-size: 12px; line-height: 1.65; }
.data-table tbody tr:hover { background: #f8faff; }
.work-report-hero { grid-template-columns: minmax(0,1fr) minmax(0,1fr); background: #f0f4fa; border-color: #dfe5ee; color: #1d1d1f; box-shadow: none; }
.work-report-hero::after { display: none; }
.work-report-hero .eyebrow, .work-report-hero p { color: #767d89; }
.work-report-hero h3 { font-size: 28px; font-weight: 600; }
.work-report-filter { border-color: #e0e4eb; background: #ffffffb3; }
.work-report-filter label { color: #6e6e73; font-size: 11px; }
.work-report-filter input, .work-report-filter select, .work-report-filter .button { min-height: 44px; }
.work-report-filter .button-ghost { color: #51515a; background: #fff; border-color: #d2d2d7; }
.work-report-metrics article { border-color: var(--line); box-shadow: var(--shadow-soft); }
.work-report-metrics article::after { display: none; }
.work-report-metrics strong { font-weight: 600; }
.work-report-metrics small, .work-report-period small, .department-work-panel p { font-size: 12px; }
.department-work-panel { grid-template-columns: minmax(0,.6fr) minmax(0,1.4fr); border-color: var(--line); background: #fff; }

@media (max-width: 1180px) {
  .manager-demand-form .builder-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stock-target-builder { grid-template-columns: 1fr; }
  .reprint-tracking-bundle > summary { grid-template-columns: minmax(0,1fr) auto 20px; gap: 12px; }
  .reprint-tracking-bundle > summary .reprint-bundle-stats { grid-column: 1 / -1; grid-row: 2; }
  .reprint-tracking-bundle > summary > .status-pill { grid-column: 2; grid-row: 1; }
  .reprint-tracking-bundle > summary > .reprint-bundle-icon { grid-column: 3; grid-row: 1; }
  .flow-detail-table-head { display: none; }
  .flow-detail-row { grid-template-columns: minmax(0,1fr) minmax(160px,.7fr); gap: 14px; }
  .flow-detail-product { grid-column: 1; grid-row: 1; }
  .flow-detail-quantity, .flow-detail-loss { display: none !important; }
  .flow-mobile-meta { display: block; }
  .flow-detail-control { grid-column: 2; grid-row: 1; }
  .flow-detail-product { grid-template-columns: 54px minmax(0,1fr) !important; }
  .flow-detail-product img { width: 52px; height: 52px; }
  .flow-current-work { grid-template-columns: 1fr; gap: 16px; }
  .flow-current-actions { justify-items: stretch; }
  .flow-current-actions > .button { width: 100%; }
  .flow-order-toggle, .demand-index-toggle, .reprint-bundle-toggle,
  .production-index-card > summary, .shipment-index-card > summary { gap: 10px; grid-template-columns: minmax(0,1fr) auto 20px; }
  .flow-order-compact-meta, .demand-index-compact, .reprint-bundle-compact-meta, .production-index-meta { grid-column: 1; grid-row: 2; }
  .flow-order-toggle > .status-pill, .demand-index-toggle > .status-pill, .reprint-bundle-toggle > .status-pill,
  .production-index-card > summary > .status-pill, .shipment-index-card > summary > .status-pill { grid-column: 2; grid-row: 1 / 3; }
  .flow-toggle-icon, .demand-toggle-icon, .reprint-bundle-icon,
  .production-index-card > summary > i, .shipment-index-card > summary > i { grid-column: 3; grid-row: 1 / 3; }
  .work-report-hero, .department-work-panel { grid-template-columns: 1fr; }
  .work-report-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .flow-order-card, .demand-index-card, .production-index-card, .shipment-index-card,
  .stock-color-group, .stock-tool-group, .stock-movement-row { border-radius: 17px; }
  .flow-order-toggle, .demand-index-toggle, .reprint-bundle-toggle,
  .production-index-card > summary, .shipment-index-card > summary { min-height: 90px; padding: 16px; gap: 8px; }
  .flow-order-identity > strong, .demand-index-identity > strong { font-size: 14px; white-space: normal; }
  .flow-order-compact-meta, .demand-index-compact, .reprint-bundle-compact-meta { display: grid; gap: 3px; }
  .flow-order-compact-meta strong, .demand-index-compact span { font-size: 12px; }
  .flow-order-identity > small, .demand-index-identity > small { font-size: 11px; }
  .flow-detail-heading { padding: 18px 16px; gap: 12px; }
  .flow-detail-heading h4, .demand-detail-head h4 { font-size: 20px; }
  .flow-detail-row, .flow-detail-row:has(.flow-inline-receive) { grid-template-columns: minmax(0,1fr); padding: 18px 16px; gap: 14px; }
  .flow-detail-product { grid-column: 1; grid-row: 1; grid-template-columns: 58px minmax(0,1fr) !important; align-items: start; }
  .flow-detail-product img { width: 56px; height: 56px; }
  .flow-detail-copy { gap: 5px; }
  .flow-detail-copy b, .flow-detail-copy strong { font-size: 13px; }
  .flow-detail-copy > small, .flow-detail-copy .material-text { display: block; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
  .flow-detail-resin { display: flex; flex-wrap: wrap; gap: 6px; }
  .flow-detail-resin input { width: 70px; min-height: 44px; font-size: 16px; }
  .flow-detail-resin .button { min-height: 44px; min-width: 52px; font-size: 12px; }
  .flow-detail-resin em { display: block; font-size: 11px; }
  .flow-detail-control { grid-column: 1; grid-row: 2; }
  .flow-inline-actions, .flow-inline-state { height: auto; padding: 12px; }
  .flow-inline-actions .button { min-height: 44px; font-size: 13px; padding: 10px; }
  .flow-inline-state b, .flow-inline-state small { max-width: none; }
  .flow-inline-receive { grid-template-columns: minmax(0,1fr); }
  .flow-inline-receive input { min-height: 44px; font-size: 16px; }
  .flow-stat-strip { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 16px 16px 10px; gap: 8px; }
  .flow-stat-strip span { padding: 12px; }
  .flow-stat-strip strong { font-size: 23px; }
  .flow-stage-block { margin: 6px 16px 16px; padding: 16px 12px; }
  .flow-stage-progress span { font-size: 10px; line-height: 1.5; text-align: center; }
  .flow-stage-progress i { width: 26px; height: 26px; }
  .flow-stage-progress span::before { top: 12px; }
  .flow-stage-title { gap: 8px; }
  .flow-stage-title > strong { font-size: 11px; }
  .flow-current-work { padding: 18px 16px; }
  .flow-current-actions .button, .flow-row-actions .button, .resin-usage-inline .button { min-height: 44px; }
  .resin-usage-inline input { min-height: 44px; font-size: 16px; }
  .flow-current-work p:last-child { font-size: 12px; }
  .whole-order-complete { width: 100%; }
  .demand-index-detail { padding: 16px; }
  .card-actions { gap: 8px; }
  .card-actions .button { min-height: 44px; }
  .data-table { display: block; width: 100%; overflow-x: auto; white-space: nowrap; }
  .data-table th, .data-table td { padding: 13px; }
  .stock-workspace-nav { padding: 4px; margin-bottom: 18px; }
  .stock-workspace-nav button { flex: 1 1 28%; min-width: 0; min-height: 44px; font-size: 12px; padding: 8px 5px; }
  .stock-query-panel, .stock-history-filter, .stock-entry-layout > .panel { padding: 18px 16px; }
  .stock-query-fields, .stock-history-fields { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 10px; }
  .stock-query-fields > label:has(#stock-model-search), .stock-query-fields > label:has(#stock-model) { grid-column: 1 / -1; }
  .inventory-warehouse-heading { display: grid; gap: 6px; margin-top: 22px; }
  .inventory-warehouse-heading .eyebrow { display: none; }
  .inventory-warehouse-heading > small { max-width: none; text-align: left; font-size: 11px; }
  .inventory-warehouse-tab { min-height: 132px; padding: 14px; }
  .inventory-warehouse-tab > strong { font-size: 28px; }
  .stock-panel-heading h3 { font-size: 19px; }
  .stock-panel-heading > span { white-space: normal; }
  .stock-color-group > summary, .stock-movement-row > summary, .stock-tool-group > summary { min-height: 76px; padding: 15px 14px; gap: 10px; }
  .stock-color-group summary strong { font-size: 13px; }
  .stock-color-group summary small { font-size: 11px; }
  .stock-size-grid { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 12px; gap: 9px; }
  .stock-size-card > summary { min-height: 90px; padding: 13px; }
  .stock-size-card > summary > b, .stock-size-card > summary > strong { font-size: 20px; }
  .stock-sku-picker { padding: 13px; }
  .stock-color-options, .stock-entry-layout .stock-color-options, .outbound-picker .stock-color-options { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .stock-color-choice, .stock-entry-layout .stock-color-choice, .outbound-picker .stock-color-choice { min-height: 92px; padding: 8px 4px; display: flex; flex-direction: column; justify-content: center; gap: 6px; font-size: 12px; text-align: center; }
  .stock-color-choice img, .stock-entry-layout .stock-color-choice img { width: 48px; height: 44px; }
  .stock-choice { min-height: 44px; min-width: 60px; font-size: 13px; }
  .stock-draft-row { grid-template-columns: 34px minmax(0,1fr) 62px 44px; gap: 8px; }
  .stock-draft-row strong { font-size: 12px; overflow-wrap: anywhere; }
  .stock-draft-row small { font-size: 11px; }
  .stock-draft-row > img { width: 34px; height: 38px; }
  .stock-remove { min-height: 44px; }
  .stock-receipt-actions .button, .stock-pagination .button, .stock-filter-buttons .button { min-height: 44px; }
  .stock-quantity-shortcuts { flex-wrap: wrap; }
  .stock-history-controls > summary { flex-wrap: wrap; }
  .stock-movement-detail { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; padding: 16px; }
  .stock-movement-row summary > b { font-size: 14px; }
  .stock-direction { padding: 6px; font-size: 10px; }
  .stock-history-totals { grid-template-columns: 1fr 1fr; }
  .stock-history-totals > div:first-child { grid-column: 1 / -1; }
  .stock-history-totals strong { font-size: 18px; }
  .stock-target-preview { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
  .outbound-footer { flex-wrap: wrap; }
  .outbound-footer .button { flex: 1 1 100%; min-height: 48px; }
  .production-order-form .item-builder, .manager-demand-form .item-builder { padding: 14px; }
  .production-order-form .production-head-fields { grid-template-columns: minmax(0,1fr); }
  .production-order-form .production-note-control .button { white-space: nowrap; flex-shrink: 0; }
  .production-order-form .builder-grid > label:has(#pick-product) { grid-column: 1 / -1; }
  .manager-demand-form .builder-grid { grid-template-columns: 1fr; }
  .production-order-form .production-note-control .button { min-height: 44px; }
  .production-order-form .color-picker { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .production-order-form .color-choice { min-height: 104px; grid-template-rows: 66px auto; padding: 6px; }
  .production-order-form .color-choice .product-photo { height: 66px; }
  .production-order-form .color-choice strong { font-size: 12px; }
  .production-order-form .color-choice input { top: 9px; left: 9px; }
  .production-order-form .add-detail-bar { align-items: stretch; flex-direction: column; padding: 14px; gap: 10px; }
  .production-order-form .add-detail-bar .button { min-height: 44px; width: 100%; }
  .production-order-form .add-detail-bar small { display: block; font-size: 11px; }
  .production-kind-tabs { position: static; box-shadow: none; }
  .production-kind-tabs button { min-height: 48px; }
  .catalog-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-card { padding: 20px 18px; }
  .product-color-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .product-color-grid img { height: 120px; }
  .product-color-grid figcaption { padding: 12px; }
  .work-report-hero { padding: 22px 18px; gap: 20px; }
  .work-report-hero h3 { font-size: 24px; }
  .work-report-filter { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 12px; }
  .work-report-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .work-report-metrics article { padding: 16px; }
  .work-report-period { flex-wrap: wrap; gap: 8px; }
  .department-work-panel { padding: 20px 18px; }
}

@media (max-width: 360px) {
  .flow-detail-product { grid-template-columns: 46px minmax(0,1fr) !important; gap: 8px !important; }
  .flow-detail-product img { width: 44px; height: 48px; }
  .flow-order-toggle, .demand-index-toggle { padding: 14px 12px; }
  .stock-color-options, .stock-entry-layout .stock-color-options, .outbound-picker .stock-color-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stock-draft-row { grid-template-columns: minmax(0,1fr) 60px 44px; }
  .stock-draft-row > img, .stock-draft-row > .stock-image-empty { grid-column: 1; grid-row: 1; }
  .stock-draft-row > div { grid-column: 1; grid-row: 2; }
  .stock-draft-quantity { grid-column: 2; grid-row: 1 / 3; }
  .stock-remove { grid-column: 3; grid-row: 1 / 3; }
}
