:root { --navy:#142433; --navy-2:#1b2d3a; --ink:#182832; --muted:#71808a; --bg:#f4f6f7; --panel:#ffffff; --line:#dce3e6; --gold:#c99a3d; --gold-soft:#fbf4e4; --blue:#426e98; --blue-soft:#e9f0f7; --green:#3d8068; --green-soft:#e8f3ee; --red:#ba5f57; --red-soft:#faecea; --shadow:0 8px 24px rgba(25,42,55,.08); }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; background:var(--bg); color:var(--ink); font:14px/1.45 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; }
button,input,select,textarea { font:inherit; } button { cursor:pointer; } button:disabled { cursor:not-allowed; opacity:.5; }
.supply-shell { max-width:1120px; margin:0 auto; padding:18px 18px calc(34px + env(safe-area-inset-bottom)); }
.page-header { display:grid; grid-template-columns:42px minmax(0,1fr) auto; align-items:center; gap:12px; min-height:86px; margin-bottom:15px; padding:16px; border:1px solid #213c4f; border-radius:16px; background:linear-gradient(125deg,var(--navy),var(--navy-2)); color:#fff; box-shadow:var(--shadow); }
.page-header p,.sheet-head p,.section-head p { margin:0 0 3px; color:var(--gold); font-size:10px; font-weight:800; letter-spacing:1.25px; }.page-header h1,.sheet-head h2,.section-head h2 { margin:0; font-size:21px; line-height:1.2; letter-spacing:0; }.page-header #currentUser { align-self:start; color:#d5e0e5; font-size:12px; white-space:nowrap; }
.icon-button { display:grid; width:38px; height:38px; place-items:center; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--navy); font-size:22px; line-height:1; }.page-header .icon-button { border-color:rgba(255,255,255,.25); background:rgba(255,255,255,.11); color:#fff; }.access-panel { display:grid; gap:10px; padding:22px; border:1px solid #efd1ce; border-radius:14px; background:#fff; color:var(--red); }.access-panel a { color:var(--blue); }
.notice { position:fixed; z-index:40; left:50%; bottom:calc(18px + env(safe-area-inset-bottom)); transform:translateX(-50%); max-width:calc(100vw - 32px); padding:10px 14px; border-radius:10px; background:var(--navy); color:#fff; box-shadow:0 12px 30px rgba(20,36,51,.25); }.notice.error { background:#a84c46; }.notice.warning { background:#986f22; }
.summary-strip { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; margin-bottom:12px; }.summary-strip button { min-height:80px; padding:11px; border:1px solid var(--line); border-top:3px solid #95a5b0; border-radius:12px; background:var(--panel); color:var(--ink); text-align:left; box-shadow:0 2px 8px rgba(20,36,51,.03); }.summary-strip button:nth-child(2) { border-top-color:var(--blue); }.summary-strip button:nth-child(3) { border-top-color:var(--gold); }.summary-strip button:nth-child(4) { border-top-color:var(--green); }.summary-strip button:nth-child(5) { border-top-color:var(--navy); }.summary-strip span { display:block; color:var(--muted); font-size:12px; }.summary-strip strong { display:block; margin-top:6px; color:var(--navy); font-size:25px; line-height:1; font-variant-numeric:tabular-nums; }
.primary-nav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-bottom:14px; }.nav-card { min-height:114px; padding:14px; border:1px solid #d5dfe4; border-radius:13px; background:var(--panel); color:var(--ink); text-align:left; box-shadow:0 3px 11px rgba(20,36,51,.04); }.nav-card:hover { border-color:#a8b8c1; }.nav-icon { display:grid; width:32px; height:32px; place-items:center; margin-bottom:10px; border-radius:9px; background:var(--navy); color:#fff; font-size:19px; font-weight:750; }.compare-icon { background:var(--blue); }.supplier-icon { background:var(--gold); }.nav-card strong,.nav-card small { display:block; }.nav-card strong { font-size:16px; }.nav-card small { margin-top:4px; color:var(--muted); font-size:12px; line-height:1.35; }
.toolbar { display:flex; align-items:center; gap:10px; margin:0 0 14px; }.search-field { display:flex; flex:1; align-items:center; gap:8px; min-width:0; min-height:44px; padding:0 12px; border:1px solid var(--line); border-radius:11px; background:#fff; color:var(--muted); }.search-field input { width:100%; min-width:0; border:0; outline:0; background:transparent; color:var(--ink); }.primary-button,.secondary-button,.text-button { border:0; border-radius:9px; font-weight:750; }.primary-button { min-height:42px; padding:0 15px; background:var(--navy); color:#fff; white-space:nowrap; }.secondary-button { min-height:37px; padding:0 12px; border:1px solid #bdcbd2; background:#fff; color:var(--navy); }.text-button { min-height:32px; padding:4px 0; background:transparent; color:var(--blue); white-space:nowrap; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:12px; margin:18px 1px 10px; }.section-head p { color:var(--blue); }.section-head h2 { font-size:18px; }.request-list,.supplier-list,.history-list { display:grid; gap:9px; }.request-card,.supplier-card,.history-card { width:100%; padding:13px; border:1px solid var(--line); border-radius:13px; background:#fff; color:var(--ink); text-align:left; box-shadow:0 2px 8px rgba(20,36,51,.025); }.request-card { display:grid; gap:8px; }.request-card-head,.row-between { display:flex; align-items:center; justify-content:space-between; gap:9px; }.request-card strong { font-size:16px; }.request-card p,.supplier-card p,.history-card p { margin:0; color:var(--muted); line-height:1.45; }.request-card-tags { display:flex; flex-wrap:wrap; gap:6px; }.request-card-tags span { padding:2px 7px; border-radius:999px; background:#f0f3f5; color:#59707e; font-size:11px; }.request-card-tags .priority-tag { background:var(--red-soft); color:var(--red); }.request-card-foot { display:flex; justify-content:space-between; gap:10px; color:var(--muted); font-size:12px; }.status,.method-chip { display:inline-flex; align-items:center; min-height:24px; padding:3px 8px; border-radius:999px; font-size:11px; font-style:normal; font-weight:800; white-space:nowrap; }.status.pending { background:#edf1f3; color:#60717d; }.status.inquiring { background:var(--blue-soft); color:#345f88; }.status.compared { background:var(--gold-soft); color:#976c1e; }.status.confirmed { background:var(--green-soft); color:#2d7258; }.status.closed { background:#eef0f1; color:#64747c; }.method-chip.direct_supplier { background:#edf1f4; color:#405c70; }.method-chip.history_reference { background:var(--gold-soft); color:#936b1f; }.method-chip.inquiry { background:var(--blue-soft); color:#38658d; }.empty { padding:25px 14px; border:1px dashed #c9d4d9; border-radius:12px; color:var(--muted); text-align:center; }
.sheet-dialog,.detail-dialog { width:min(660px,100%); max-height:92dvh; margin:auto; padding:0; border:0; border-radius:16px; box-shadow:0 20px 56px rgba(8,24,35,.26); }.sheet-dialog::backdrop,.detail-dialog::backdrop { background:rgba(13,27,39,.56); }.sheet-form { display:grid; grid-template-rows:auto minmax(0,1fr) auto; max-height:92dvh; }.sheet-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:15px 16px; border-bottom:1px solid var(--line); background:#fff; }.sheet-head p { color:var(--blue); }.sheet-body,.detail-body { overflow:auto; padding:16px; }.sheet-body { display:grid; gap:13px; }.sheet-body label { display:grid; gap:6px; color:#415866; font-weight:750; }.sheet-body input,.sheet-body textarea,.sheet-body select { width:100%; min-height:42px; padding:10px 11px; border:1px solid var(--line); border-radius:9px; outline:0; resize:vertical; color:var(--ink); background:#fff; }.sheet-body input:focus,.sheet-body textarea:focus,.sheet-body select:focus { border-color:#809bad; box-shadow:0 0 0 3px rgba(66,110,152,.12); }.sheet-footer { padding:12px 16px calc(12px + env(safe-area-inset-bottom)); border-top:1px solid var(--line); background:#fff; }.sheet-footer .primary-button { width:100%; }.two-fields { display:grid; grid-template-columns:1fr 1fr; gap:10px; }.switch-line { grid-template-columns:auto 1fr; align-items:center; }.switch-line input { width:18px; height:18px; }.item-editor-head { display:flex; justify-content:space-between; align-items:center; }.item-editor { display:grid; gap:9px; }.request-item-edit { display:grid; gap:8px; padding:10px; border:1px solid #d8e1e5; border-radius:11px; background:#fbfcfc; }.request-item-main { display:grid; grid-template-columns:minmax(0,1fr) 88px; gap:8px; }.request-item-method { display:grid; grid-template-columns:1fr 1fr; gap:8px; }.request-item-method label { font-size:12px; }.request-item-extra { display:grid; grid-template-columns:116px minmax(0,1fr) 34px; gap:7px; }.request-item-extra input { min-width:0; }.remove-row { width:34px; min-height:40px; border:1px solid #f0d1ce; border-radius:9px; background:#fff8f7; color:var(--red); font-size:20px; }.history-use { justify-self:start; border:0; padding:3px 0; background:transparent; color:#8c681f; font-size:12px; font-weight:750; }
.detail-body { display:grid; gap:12px; background:var(--bg); }.detail-summary,.detail-section { border:1px solid var(--line); border-radius:13px; background:#fff; }.detail-summary { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px; }.detail-summary p { margin:3px 0 0; color:var(--muted); font-size:12px; }.detail-section { padding:12px; }.detail-section h3 { margin:0; font-size:16px; }.detail-section-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }.detail-section-head > span { color:var(--muted); font-size:12px; }.boss-instruction { border-left:3px solid var(--gold); }.boss-instruction p { margin:0; white-space:pre-wrap; color:#394d59; }.request-line { display:grid; gap:10px; padding:12px 0; border-top:1px solid var(--line); }.request-line:first-child { padding-top:0; border-top:0; }.request-line:last-child { padding-bottom:0; }.model-line { display:flex; justify-content:space-between; align-items:start; gap:10px; }.model-line strong { font-size:17px; }.model-line small { display:block; margin-top:3px; color:var(--muted); }.item-badges { display:flex; flex-wrap:wrap; justify-content:end; gap:5px; }.history-hint { display:grid; gap:2px; padding:9px; border-left:3px solid #b6c4cc; border-radius:0 8px 8px 0; background:#f5f7f8; color:#5f727d; font-size:12px; }.history-hint strong { color:#425a69; }.history-hint small { color:#7b8e98; }.empty-history { color:#829099; }.direct-purchase { display:grid; gap:9px; padding:10px; border:1px solid #e6d6af; border-radius:10px; background:#fffdf8; }.direct-purchase-head { display:flex; justify-content:space-between; align-items:center; gap:10px; color:#73551b; }.direct-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }.direct-fields label,.quote-fields label { display:grid; gap:4px; color:#61727b; font-size:11px; font-weight:700; }.direct-fields input,.direct-fields select,.quote-fields input { min-width:0; width:100%; min-height:37px; padding:7px; border:1px solid var(--line); border-radius:8px; color:var(--ink); background:#fff; }.direct-complete { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:9px; border-radius:9px; background:var(--green-soft); color:#2d7258; font-size:12px; }.direct-complete small { color:#597c6d; }.supplier-picker { display:flex; flex-wrap:wrap; gap:7px; }.supplier-check { display:inline-flex; align-items:center; gap:5px; min-height:32px; padding:4px 8px; border:1px solid #d4dfe4; border-radius:9px; background:#f9fbfc; font-size:12px; }.supplier-check input,.stock-check input,.quote-select input { width:17px; height:17px; accent-color:var(--navy); }.inline-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }.quote-list { display:grid; gap:8px; }.quote-card { display:grid; gap:8px; padding:10px; border:1px solid #d9e2e6; border-radius:11px; background:#fff; }.quote-card.lowest { border-color:#bf9b53; background:#fffdf8; }.quote-card.selected { border:2px solid var(--navy); }.quote-card-head { display:flex; justify-content:space-between; align-items:center; gap:9px; }.quote-fields { display:grid; grid-template-columns:1fr 1fr; gap:7px; }.price-signal { min-height:15px; color:#788893; font-size:11px; }.price-signal.up { color:var(--red); }.price-signal.down { color:var(--green); }.stock-check,.quote-select { display:inline-flex; align-items:center; gap:6px; color:var(--muted); font-size:12px; font-weight:750; }.quote-total { display:flex; justify-content:space-between; gap:10px; padding-top:3px; color:var(--muted); font-size:12px; }.quote-total strong { color:var(--ink); font-size:15px; }.quote-actions { display:flex; justify-content:space-between; align-items:center; gap:8px; }.quote-readonly { margin:0; color:var(--muted); font-size:12px; }.inquiry-groups { display:grid; gap:8px; }.supplier-message,.final-card { padding:10px; border-radius:10px; }.supplier-message { border:1px dashed #b9cad3; background:#fbfcfd; }.final-card { border:1px solid #c4d8cf; background:#f5faf7; }.supplier-message strong,.final-card strong { display:block; }.supplier-message pre,.final-card pre { margin:7px 0; white-space:pre-wrap; font:12px/1.55 inherit; color:#516670; }.final-card pre { font-size:13px; color:#375447; }.supplier-card { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:center; }.supplier-card strong,.history-card strong { font-size:16px; }.supplier-card small { display:block; margin-top:4px; color:var(--muted); }.supplier-card button { align-self:stretch; padding:0 10px; }.history-card { display:grid; gap:6px; }.history-meta { display:flex; flex-wrap:wrap; gap:8px; color:var(--muted); font-size:12px; }.history-price { color:var(--navy); font-size:18px; font-weight:850; }.copy-fallback { position:fixed; z-index:50; inset:auto 16px calc(18px + env(safe-area-inset-bottom)); padding:12px; border:1px solid #c5d2d8; border-radius:12px; background:#fff; box-shadow:0 14px 34px rgba(0,0,0,.18); }.copy-fallback textarea { width:100%; min-height:90px; padding:8px; border:1px solid var(--line); border-radius:8px; }.copy-fallback p { margin:8px 0 0; color:var(--muted); font-size:12px; }.detail-actions { position:sticky; bottom:0; box-shadow:0 -10px 22px rgba(22,49,50,.06); }
@media (min-width:760px) { .request-list { grid-template-columns:repeat(2,minmax(0,1fr)); }.supplier-list,.history-list { grid-template-columns:repeat(2,minmax(0,1fr)); }.detail-dialog { width:min(980px,calc(100% - 48px)); }.detail-body { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }.detail-summary,.detail-section:first-of-type,.detail-section:last-child { grid-column:1 / -1; }.quote-card { grid-template-columns:180px 1fr; align-items:end; }.quote-card-head { grid-column:1; grid-row:1 / span 2; }.quote-fields,.quote-total,.quote-actions { grid-column:2; } }
@media (max-width:640px) { .supply-shell { padding:12px 12px calc(18px + env(safe-area-inset-bottom)); }.page-header { min-height:76px; margin-bottom:12px; padding:13px; }.page-header h1 { font-size:19px; }.page-header #currentUser { max-width:105px; overflow:hidden; text-overflow:ellipsis; }.summary-strip { grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }.summary-strip button { min-height:63px; padding:8px; }.summary-strip button:nth-child(n+4) { min-height:56px; }.summary-strip span { font-size:10px; }.summary-strip strong { font-size:21px; }.primary-nav { gap:7px; }.nav-card { min-height:101px; padding:10px; }.nav-icon { width:28px; height:28px; margin-bottom:8px; font-size:17px; }.nav-card strong { font-size:14px; }.nav-card small { font-size:10px; }.toolbar { gap:8px; }.primary-button { min-height:42px; padding:0 11px; font-size:13px; }.sheet-dialog,.detail-dialog { width:100%; max-height:93dvh; margin:0; border-radius:16px 16px 0 0; align-self:end; }.sheet-form { max-height:93dvh; }.detail-body { max-height:calc(93dvh - 70px); }.two-fields,.direct-fields,.request-item-method { grid-template-columns:1fr; }.request-item-extra { grid-template-columns:104px minmax(0,1fr) 34px; }.request-card { padding:11px; }.request-card-foot { align-items:start; flex-direction:column; gap:3px; }.model-line { align-items:start; }.item-badges { max-width:46%; }.inline-actions .primary-button,.inline-actions .secondary-button { min-height:38px; }.direct-complete { align-items:start; flex-direction:column; gap:3px; } }

.request-card-tags .replenishment-tag { background:var(--green-soft); color:#2d7258; }
.replenishment-source { border-left:3px solid var(--green); }
.replenishment-source p { margin:0; color:#557064; font-size:12px; }
.replenishment-snapshot { color:#597c6d !important; font-weight:750; }
