/* Smartphone 4 reuses the existing workflow; inventory styles stay in this mode. */
.mode-switch { grid-template-columns:repeat(3,minmax(0,1fr)); }
.mode-switch button { padding-inline:7px; }
body.smartphone4-mode { min-width:0; }
body.smartphone4-mode .w-work-date { flex-wrap:wrap; gap:6px; }
body.smartphone4-mode .w-work-date>label { margin:0; font-size:13px; }
body.smartphone4-mode .s4-date-navigation { display:flex; flex:1; max-width:260px; min-width:0; gap:4px; align-items:center; margin-left:auto; }
body.smartphone4-mode #smartphone2-root .s4-date-navigation input { flex:1; width:0; min-width:0; min-height:44px; padding:6px; font-size:14px; }
body.smartphone4-mode #smartphone2-root .s4-date-navigation button { flex:0 0 44px; min-width:44px; min-height:44px; margin:0; padding:0; font-size:26px; line-height:1; }
body.smartphone4-mode .w-work-date>[data-w-today] { margin:0 0 0 auto; min-height:36px; padding:4px 10px; font-size:12px; }
body.smartphone4-mode #smartphone2-estimate { padding:10px 12px; margin:10px 0; }
body.smartphone4-mode #smartphone2-estimate>h2 { display:none; }
body.smartphone4-mode .s4-stock-heading { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:0 0 4px; }
body.smartphone4-mode .s4-stock-heading h2 { margin:0; font-size:19px; line-height:1.3; }
body.smartphone4-mode .s4-stock-info { display:grid; place-items:center; padding:0; min-width:44px; min-height:44px; border:0; background:transparent; color:var(--green); font-size:23px; border-radius:8px; }
body.smartphone4-mode .s4-stock-info[aria-expanded=true] { background:#e6f4ec; }
body.smartphone4-mode .s4-stock-date { margin-left:auto; max-width:100%; font-size:12px; overflow-wrap:anywhere; color:var(--muted); }
body.smartphone4-mode .stock-observation { margin:2px 0 4px; font-size:11px; color:var(--green); }
body.smartphone4-mode .stock-previous-issues { margin:4px 0; padding:5px 8px; border-radius:6px; background:#fff8e8; font-size:11px; overflow-wrap:anywhere; }
body.smartphone4-mode .stock-previous-issues summary { cursor:pointer; }
body.smartphone4-mode .stock-previous-issues p { margin:5px 0; }
body.smartphone4-mode .s4-stock-information { font-size:12px; line-height:1.6; background:#f2f6f5; padding:8px 10px; margin:0 0 8px; border-radius:8px; overflow-wrap:anywhere; }
body.smartphone4-mode .s4-stock-information p { margin:4px 0; }
body.smartphone4-mode .s4-stock-information section { border-top:1px solid var(--line); margin-top:8px; padding-top:6px; }
body.smartphone4-mode .s4-stock-columns,
body.smartphone4-mode .s4-stock-line { display:grid; grid-template-columns:minmax(42px,1fr) minmax(62px,.9fr) minmax(88px,1.25fr); gap:6px; align-items:center; line-height:1.35; font-size:13px; }
body.smartphone4-mode .s4-stock-columns { padding:2px 0; font-size:11px; color:var(--muted); }
body.smartphone4-mode .s4-stock-columns>:not(:first-child),
body.smartphone4-mode .s4-stock-line>:not(:first-child) { text-align:right; }
body.smartphone4-mode .s4-stock-line { min-height:28px; padding:4px 0; border-bottom:1px solid #edf1f3; }
body.smartphone4-mode .s4-stock-line>* { white-space:nowrap; }
body.smartphone4-mode .s4-stock-line strong { font-size:14px; }
body.smartphone4-mode .s4-stock-line small { display:inline; font-size:10px; color:var(--muted); }
body.smartphone4-mode .s4-stock-product { padding:5px 0 0; }
body.smartphone4-mode .s4-stock-product-heading { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 8px; margin:0; font-size:14px; line-height:1.5; }
body.smartphone4-mode .s4-stock-product-heading>small { font-size:10px; color:var(--muted); }
body.smartphone4-mode .s4-stock-range-note { margin:2px 0!important; font-size:10px!important; color:var(--muted); }
body.smartphone4-mode .s4-stock-status,
body.smartphone4-mode .s4-stock-empty { margin:5px 0; font-size:13px; }
body.smartphone4-mode .s4-stock-status[role=alert] { color:#b42318; }
body.smartphone4-mode .s4-stock-refresh { width:100%; min-height:44px; padding:6px 10px; margin:8px 0 0; font-size:13px; border:1px solid var(--line); border-radius:8px; background:#f3f6f7; color:var(--navy); }
body.smartphone4-mode #smartphone2-estimate-host [hidden] { display:none!important; }

body.smartphone4-mode .s4-section-heading { display:flex; align-items:center; gap:6px; margin:0 0 8px; }
body.smartphone4-mode .s4-section-heading h2 { margin:0; }
body.smartphone4-mode .s4-today-information,
body.smartphone4-mode .s4-sale-information { margin:0 0 10px; }
body.smartphone4-mode .s4-today-information[hidden],
body.smartphone4-mode .s4-sale-information[hidden] { display:none!important; }

body.smartphone4-mode .s3-shipment-row { margin:0; padding:6px 0; }
body.smartphone4-mode .s3-shipment-row .s3-product-heading { gap:8px; line-height:1.4; }
body.smartphone4-mode .s3-shipment-row h3 { margin:0; overflow-wrap:anywhere; }
body.smartphone4-mode .s3-shipment-row .s2-note { margin:2px 0 0; font-size:12px; line-height:1.4; }
body.smartphone4-mode .s4-sale-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(28px,.35fr) minmax(132px,1.6fr); align-items:start; gap:6px; margin:6px 0; padding:8px 0; }
body.smartphone4-mode .s4-sale-row .s4-sale-product { margin:0; padding-top:24px; font-size:14px; line-height:1.4; overflow-wrap:anywhere; }
body.smartphone4-mode .s4-sale-product span { white-space:nowrap; }
body.smartphone4-mode .s4-sale-code { display:grid; gap:7px; min-width:0; font-size:14px; line-height:1.4; overflow-wrap:anywhere; }
body.smartphone4-mode .s4-sale-code small { font-size:11px; color:var(--muted); white-space:nowrap; }
body.smartphone4-mode #smartphone2-root .s4-sale-tiers { margin:0; min-width:0; }
body.smartphone4-mode #smartphone2-root .s4-sale-tiers .w-tier { margin:0 0 6px; padding:0; gap:6px; }
body.smartphone4-mode #smartphone2-root .s4-sale-tiers label { min-width:0; margin:0; font-size:11px; line-height:1.4; white-space:nowrap; }
body.smartphone4-mode #smartphone2-root .s4-sale-tiers input { width:100%; min-width:0; min-height:44px; padding:6px; font-size:16px; }
body.smartphone4-mode #smartphone2-root .s4-sale-tiers button { min-height:44px; padding:5px; margin:0; font-size:11px; line-height:1.35; }
body.smartphone4-mode #smartphone2-root .s4-single-tier { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
body.smartphone4-mode #smartphone2-root .s4-single-tier .w-tier { display:contents; }
body.smartphone4-mode #smartphone2-root .s4-single-tier label { grid-row:1; }
body.smartphone4-mode #smartphone2-root .s4-single-tier [data-w-remove] { grid-column:2; grid-row:2; }
body.smartphone4-mode #smartphone2-root .s4-single-tier [data-w-add] { grid-column:1; grid-row:2; }
body.smartphone4-mode .s4-sale-row>.s2-note { grid-column:1/-1; margin:0; }
