/* 在庫・発注管理の体験版。色は common/base.css のトークンだけを使う */
.inv { max-width: 1280px; margin: 0 auto; padding: 20px var(--gutter) 56px; }
.small { font-size: 13px; color: var(--ink-3); line-height: 1.7; }
.note { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }
.note.top { margin-top: 4px; }
.num { font-variant-numeric: tabular-nums; }
.r { text-align: right; }

/* 作業の流れ（1→2→3） */
.inv-steps { display: flex; align-items: center; gap: 10px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; margin: 0 auto 22px; box-shadow: var(--shadow-s); }
.inv-steps button { display: flex; align-items: center; gap: 8px; padding: 7px 16px 7px 8px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.inv-steps button:hover { background: var(--sunken); color: var(--ink); }
.inv-steps .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--sunken); font-size: 13px; flex: none; }
.inv-steps button[aria-current="step"] { background: var(--brand); color: #fff; }
.inv-steps button[aria-current="step"] .n { background: var(--accent); color: #fff; }
.inv-steps button.done .n { background: var(--ok-soft); color: var(--ok); }
.inv-steps-line { width: 22px; height: 2px; background: var(--line-2); flex: none; }

.scr-head { max-width: 760px; margin-bottom: 18px; }
.scr-head h2 { font-size: 24px; font-weight: 800; line-height: 1.4; }
.scr-lead { margin-top: 6px; color: var(--ink-2); line-height: 1.85; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px 18px; min-width: 0; box-shadow: var(--shadow-s); margin-bottom: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-head h3, .side-card h3, .ba h3, .mail-title h3, .recv h3 { font-size: 16px; font-weight: 800; }
.btn-big { min-height: 50px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.empty-msg { padding: 40px 20px; text-align: center; color: var(--ink-3); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-l); display: grid; gap: 14px; justify-items: center; }
.empty-inline { padding: 22px 12px; text-align: center; color: var(--ink-3); }

/* 種類の印（入庫・出庫・棚卸） */
.k { display: inline-flex; align-items: center; justify-content: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; flex: none; }
.k-入庫 { color: var(--brand-2); background: var(--brand-soft); }
.k-出庫 { color: var(--accent-deep); background: var(--accent-soft); }
.k-棚卸 { color: var(--c4); background: color-mix(in srgb, var(--c4) 13%, var(--surface)); }

/* ───── 1. スマホで記録 ───── */
.ph-grid { display: grid; grid-template-columns: 404px minmax(0, 1fr); grid-template-areas: "phone samples" "phone hist"; gap: 18px 24px; align-items: start; }
#samplesCard { grid-area: samples; }
.phone { grid-area: phone; }
#histCard { grid-area: hist; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px 18px; box-shadow: var(--shadow-s); min-width: 0; }
.samples { display: grid; gap: 8px; margin: 12px 0 8px; }
.sample { display: flex; align-items: flex-start; gap: 10px; text-align: left; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: var(--r-m); background: var(--surface); transition: border-color .15s, background .15s; }
.sample:hover { border-color: var(--brand-2); background: var(--brand-soft); }
.sample .k { margin-top: 1px; }
.sample .sm { display: grid; gap: 1px; min-width: 0; }
.sample .sm b { font-size: 14.5px; line-height: 1.5; }
.sample .sm span { font-size: 12.5px; color: var(--ink-3); line-height: 1.55; }

/* スマホの枠 */
.phone { display: flex; flex-direction: column; height: 720px; width: 100%; background: var(--paper); border: 10px solid var(--ink); border-radius: 40px; overflow: hidden; box-shadow: var(--shadow); }
.ph-head { background: var(--brand); color: #fff; padding: 14px 16px 10px; flex: none; }
.ph-row { display: flex; align-items: center; gap: 8px; }
.ph-title { font-size: 18px; font-weight: 700; }
.ph-need { margin-left: auto; background: var(--warn-soft); color: var(--warn); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.ph-shop { font-size: 12.5px; color: var(--on-brand-2); margin-top: 2px; }
.ph-body { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 12px 16px; overscroll-behavior: contain; }
.ph-foot { flex: none; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.ph-send { display: block; width: 100%; height: 54px; border-radius: 14px; font-size: 17px; font-weight: 700; color: #fff; background: var(--accent); }
.ph-send[data-k="入庫"] { background: var(--brand-2); }
.ph-send[data-k="棚卸"] { background: var(--c4); }
.ph-send:disabled { background: var(--line-2); color: var(--surface); cursor: default; }
.ph-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.ph-seg button { border: 2px solid var(--line); background: var(--surface); border-radius: 12px; height: 54px; font-size: 16.5px; font-weight: 700; color: var(--ink-3); line-height: 1.25; }
.ph-seg button small { display: block; font-size: 10.5px; font-weight: 500; }
.ph-seg button.on { color: #fff; }
.ph-seg button.on[data-k="入庫"] { border-color: var(--brand-2); background: var(--brand-2); }
.ph-seg button.on[data-k="出庫"] { border-color: var(--accent); background: var(--accent); }
.ph-seg button.on[data-k="棚卸"] { border-color: var(--c4); background: var(--c4); }
.ph-card { background: var(--surface); border-radius: 14px; padding: 12px; margin-bottom: 12px; box-shadow: var(--shadow-s); }
.ph-label { font-size: 13px; color: var(--ink-3); font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; }
.ph-label .r { margin-left: auto; font-weight: 500; }
.ph-card input[type=search], .ph-card input[type=text], .ph-card select { width: 100%; height: 44px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--surface); font-size: 16px; }
.ph-card .memo { margin-top: 10px; }
.ph-chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; }
.ph-chips button { flex: none; border: 1.5px solid var(--line); background: var(--surface); border-radius: 16px; padding: 4px 12px; font-size: 13.5px; color: var(--ink-3); }
.ph-chips button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.ph-list { margin-top: 8px; max-height: 250px; overflow-y: auto; border-top: 1px solid var(--line); }
.ph-list .item { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.ph-list .item:hover { background: var(--paper); }
.ph-list .item.none { cursor: default; color: var(--ink-3); font-size: 13px; }
.ph-list .nm { flex: 1; min-width: 0; }
.ph-list .nm b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-list .nm span { font-size: 12px; color: var(--ink-3); }
.ph-list .st { text-align: right; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.ph-list .st b { font-size: 17px; color: var(--ink); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--line-2); }
.dot.low { background: var(--accent); } .dot.out { background: var(--bad); } .dot.wait { background: var(--warn-line); } .dot.ok { background: var(--ok); }
.picked { display: flex; align-items: center; gap: 10px; }
.picked .nm { flex: 1; min-width: 0; }
.picked .nm b { font-size: 17px; display: block; }
.picked .nm span { font-size: 12.5px; color: var(--ink-3); }
.linkbtn { color: var(--brand-2); font-size: 14px; padding: 6px; font-weight: 600; }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.nums div { background: var(--paper); border-radius: 10px; padding: 7px 8px; text-align: center; font-size: 11.5px; color: var(--ink-3); }
.nums div b { display: block; font-size: 19px; color: var(--ink); }
.nums div.warn { background: var(--warn-soft); } .nums div.warn b { color: var(--warn); }
.nums div.bad { background: var(--bad-soft); } .nums div.bad b { color: var(--bad); }
.qty { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; gap: 8px; align-items: center; }
.qty button { height: 56px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-size: 26px; color: var(--ink); }
.qty button:active { background: var(--sunken); }
.qty input { height: 56px; text-align: center; font-size: 26px; font-weight: 700; border: 2px solid var(--line); border-radius: 12px; width: 100%; background: var(--surface); }
.qty input:focus { outline: none; border-color: var(--brand-2); }
.ph-hint { text-align: center; font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.ph-staff { display: flex; gap: 6px; flex-wrap: wrap; }
.ph-staff button { border: 1.5px solid var(--line); background: var(--surface); border-radius: 18px; padding: 7px 14px; font-size: 14.5px; color: var(--ink-3); }
.ph-staff button.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.ph-msg { border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; font-size: 14.5px; line-height: 1.65; white-space: pre-line; }
.ph-msg.ok { background: var(--ok-soft); color: var(--ok); border: 1.5px solid var(--ok); }
.ph-msg.err { background: var(--bad-soft); color: var(--bad); border: 1.5px solid var(--bad-line); }
.ph-msg .t { font-weight: 700; display: block; margin-bottom: 2px; font-size: 15.5px; }
.ph-msg .alert { margin-top: 8px; background: var(--warn-soft); color: var(--warn); border-radius: 8px; padding: 8px 10px; font-weight: 700; white-space: normal; }

/* 確認の下からのシート */
.sheet-back { position: fixed; inset: 0; background: color-mix(in srgb, var(--ink) 45%, transparent); z-index: 1200; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-radius: 18px 18px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); z-index: 1201; max-width: 560px; margin: 0 auto; box-shadow: var(--shadow-l); }
.sheet h2 { font-size: 18px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.sheet h2 i { font-style: normal; background: var(--warn-line); color: #fff; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.sheet .what { background: var(--paper); border-radius: 10px; padding: 10px 12px; font-size: 15px; margin-bottom: 10px; }
.sheet .what b { font-size: 20px; }
.sheet ul { margin: 0 0 14px; padding-left: 20px; font-size: 14.5px; line-height: 1.65; }
.sheet li { margin-bottom: 4px; }
.sheet .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet .btns button { height: 52px; border-radius: 12px; font-size: 16px; font-weight: 700; }
.sheet-back-btn { background: var(--surface); border: 1.5px solid var(--line-2); color: var(--ink); }
.sheet-go { background: var(--brand); color: #fff; }

/* 入出庫履歴 */
.hist-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.seg-s { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--sunken); }
.seg-s button { padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.seg-s button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-s); }
.hlist { margin-top: 8px; display: grid; }
.hrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.hrow:last-child { border-bottom: 0; }
.hrow .hmain { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.hrow .hmain b { font-size: 14.5px; min-width: 0; overflow-wrap: anywhere; }
.hrow .hq { font-weight: 700; }
.hrow time { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.hrow .hsub { grid-column: 2 / -1; font-size: 12.5px; color: var(--ink-3); line-height: 1.55; overflow-wrap: anywhere; }
.hrow.bad { background: var(--bad-soft); border-radius: var(--r-s); padding-left: 8px; padding-right: 8px; }
.hrow.bad .hsub { color: var(--bad); font-weight: 600; }
.hrow.mine { background: var(--accent-soft); border-radius: var(--r-s); padding-left: 8px; padding-right: 8px; }
.hrow.flash { animation: pop .9s ease-out; }
@keyframes pop { from { background: var(--warn-line); } }

/* これまでと、この仕組み */
.ba { margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px 18px 18px; box-shadow: var(--shadow-s); }
.ba-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 14px; margin-top: 12px; }
.ba-h { font-size: 12.5px; font-weight: 800; letter-spacing: .04em; padding: 0 2px; }
.ba-h.before { color: var(--ink-3); } .ba-h.after { color: var(--ok); }
.ba-c { padding: 10px 12px; border-radius: var(--r-m); font-size: 14px; line-height: 1.6; }
.ba-c.before { background: var(--sunken); color: var(--ink-2); }
.ba-c.after { background: var(--ok-soft); color: var(--ink); font-weight: 600; }

/* ───── 2. 在庫と発注候補 ───── */
.check-s { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.check-s input { width: 18px; height: 18px; accent-color: var(--brand-2); }
.table-wrap { margin-top: 10px; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.stock { border-collapse: collapse; width: 100%; font-size: 14px; }
.stock th { background: var(--brand); color: #fff; font-weight: 700; text-align: left; padding: 8px 10px; white-space: nowrap; font-size: 12.5px; }
.stock th.r { text-align: right; }
.stock td { padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.stock td.nm { white-space: normal; min-width: 170px; }
.stock td.nm b { display: block; font-size: 14.5px; }
.stock td.nm span { font-size: 12px; color: var(--ink-3); }
.stock tr.need td { background: color-mix(in srgb, var(--accent-soft) 60%, var(--surface)); }
.stock tr.out td { background: var(--bad-soft); }
.stock tr.flash td { animation: pop 1.4s ease-out; }
.stock .risk { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 700; color: var(--bad); white-space: normal; }
.stock .rec { color: var(--accent-deep); font-size: 15px; margin-right: 2px; }

.cand { display: grid; grid-template-columns: auto minmax(0, 1fr) 112px 150px 150px; gap: 4px 14px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--line); }
.cand:first-child { border-top: 0; }
.cand-check input { width: 22px; height: 22px; accent-color: var(--brand-2); }
.cand-main { display: grid; gap: 1px; min-width: 0; }
.cand-main b { font-size: 15px; }
.cand-main .sup { font-size: 12.5px; color: var(--ink-3); }
.cand-main .st { font-size: 12.5px; color: var(--ink-2); }
.cand-rec { font-weight: 800; color: var(--accent-deep); font-size: 14.5px; }
.cand-qty { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.cand-qty input { width: 76px; height: 40px; text-align: right; border: 1.5px solid var(--line-2); border-radius: var(--r-s); background: var(--warn-soft); font-size: 16px; font-weight: 700; padding: 0 8px; }
.cand-qty em { font-style: normal; }
.cand-amt { text-align: right; font-weight: 700; font-size: 14px; }
.cand-amt small { display: block; font-weight: 500; color: var(--ink-3); font-size: 11.5px; }
.cand-note { grid-column: 2 / -1; font-size: 12.5px; color: var(--ink-3); line-height: 1.65; }
.cand-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.cand-sum { display: grid; gap: 8px; flex: 1; min-width: 240px; }
.sum-block { font-size: 13.5px; line-height: 1.7; padding: 8px 12px; border-radius: var(--r-m); background: var(--paper); }
.sum-block ul { margin: 2px 0 0; padding-left: 18px; }
.sum-block.warn { background: var(--warn-soft); color: var(--warn); }
.sum-block.err { background: var(--bad-soft); color: var(--bad); }
.slack { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; background: var(--paper); border-radius: var(--r-m); border: 1px solid var(--line); }
.slack-av { width: 36px; height: 36px; border-radius: 8px; background: var(--c1); color: #fff; font-weight: 800; display: grid; place-items: center; flex: none; }
.slack b { font-size: 14.5px; }
.slack-time { font-size: 12px; color: var(--ink-3); }
.slack pre { margin: 4px 0 0; font-family: inherit; font-size: 13.5px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ───── 3. 発注書とメール ───── */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; max-width: 640px; }
.tile { padding: 12px 14px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.tile b { display: block; font-size: 26px; line-height: 1.2; font-weight: 800; }
.tile b small { font-size: 14px; margin-left: 2px; }
.tile span { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.doc-tabs { display: flex; gap: 8px; margin-bottom: 14px; overflow-x: auto; padding-bottom: 4px; }
.doc-tabs button { flex: none; display: grid; text-align: left; gap: 0; padding: 8px 14px; border-radius: var(--r-m); border: 1.5px solid var(--line-2); background: var(--surface); }
.doc-tabs .no { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.doc-tabs .nm { font-size: 14px; font-weight: 700; }
.doc-tabs button[aria-selected="true"] { border-color: var(--brand); background: var(--brand); }
.doc-tabs button[aria-selected="true"] .no { color: var(--on-brand-2); }
.doc-tabs button[aria-selected="true"] .nm { color: #fff; }
.doc-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 16px; align-items: start; }
.doc-grid .panel { margin-bottom: 16px; }
.paper-wrap { background: var(--sunken); border-radius: var(--r-m); padding: 12px; overflow-x: auto; }
.paper-size { position: relative; margin: 0 auto; }
.paper-size iframe { position: absolute; left: 0; top: 0; border: 0; background: #fff; transform-origin: 0 0; box-shadow: var(--shadow-s); display: block; max-width: none; }
.doc-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.mail-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mail-meta { margin: 12px 0 0; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.mail-meta > div { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 13.5px; }
.mail-meta > div:first-child { border-top: 0; }
.mail-meta dt { color: var(--ink-3); font-weight: 600; }
.mail-meta dd { margin: 0; overflow-wrap: anywhere; }
.mail-body { margin: 12px 0 0; padding: 12px 14px; background: var(--paper); border-radius: var(--r-m); font-family: inherit; font-size: 13.5px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.recv { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.recv > div { flex: 1; min-width: 240px; }

@media (max-width: 1100px) {
  .cand { grid-template-columns: auto minmax(0, 1fr) 150px 150px; }
  .cand-rec { grid-column: 2; grid-row: 2; }
  .cand-qty { grid-column: 3; grid-row: 1; }
  .cand-amt { grid-column: 4; grid-row: 1; }
  .cand-note { grid-row: 3; }
}
@media (max-width: 900px) {
  .ph-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "samples" "phone" "hist"; }
  .phone { max-width: 440px; margin: 0 auto; }
  .doc-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .inv { padding-top: 14px; }
  .inv-steps { width: 100%; gap: 4px; padding: 5px; }
  .inv-steps button { flex: none; padding: 5px; gap: 0; justify-content: center; font-size: 13px; }
  .inv-steps button .t { display: none; }
  .inv-steps button[aria-current="step"] { flex: 1; min-width: 0; padding: 5px 12px 5px 5px; gap: 7px; justify-content: flex-start; }
  .inv-steps button[aria-current="step"] .t { display: inline; overflow: hidden; text-overflow: ellipsis; }
  .inv-steps-line { width: 0; flex: 1; min-width: 6px; max-width: 28px; }
  .scr-head h2 { font-size: 20px; }
  .panel, .side-card, .ba { padding: 14px; }
  /* スマホの本物の画面のように、枠なしで幅いっぱいに。ページを下にスクロールして使う */
  .phone { height: auto; border: 0; border-radius: var(--r-l); overflow: visible; max-width: none; box-shadow: var(--shadow-s); }
  .ph-head { border-radius: var(--r-l) var(--r-l) 0 0; }
  .ph-body { overflow: visible; padding-bottom: 8px; }
  .ph-foot { position: sticky; bottom: 0; z-index: 6; border-radius: 0 0 var(--r-l) var(--r-l); box-shadow: 0 -4px 12px color-mix(in srgb, var(--ink) 8%, transparent); }
  .ba-grid { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ba-h { display: none; }
  .ba-c::before { content: attr(data-l); display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; margin-bottom: 1px; }
  .ba-c.before::before { color: var(--ink-3); } .ba-c.after::before { color: var(--ok); }
  .ba-c.after { margin-bottom: 8px; }
  .stock th, .stock td { padding: 7px 8px; }
  .stock td.nm { min-width: 0; width: 44%; }
  .stock .risk { display: none; }
  .stock .c-pace, .stock .c-days, .stock .c-onorder, .stock .c-point { display: none; }
  .cand { grid-template-columns: auto minmax(0, 1fr) auto; }
  .cand-check { grid-row: 1; }
  .cand-main { grid-column: 2 / -1; }
  .cand-rec { grid-column: 2; grid-row: 2; }
  .cand-qty { grid-column: 3; grid-row: 2; }
  .cand-amt { grid-column: 2 / -1; grid-row: 3; text-align: left; display: flex; align-items: baseline; gap: 8px; }
  .cand-amt small { display: inline; }
  .cand-note { grid-column: 1 / -1; grid-row: 4; }
  .cand-foot { flex-direction: column; align-items: stretch; }
  .cand-foot .btn { width: 100%; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .tile { padding: 10px; }
  .tile b { font-size: 20px; }
  .doc-actions .btn { width: 100%; white-space: normal; text-align: center; }
  .recv .btn { width: 100%; white-space: normal; }
  .mail-meta > div { grid-template-columns: 44px minmax(0, 1fr); }
}

.stock .none-row td { padding: 18px 14px; color: var(--ink-2); line-height: 1.7; text-align: left; }
.empty-inline b { color: var(--ink); }
