:root { --bg: #F4F6F7; --surface: #FFFFFF; --ink: #1B2A2E; --muted: #66787E; --accent: #0B6E7A; --line: #D8E0E3; --danger: #B4232C; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif; }
a { color: var(--accent); }
.top { display: flex; align-items: center; gap: 18px; padding: 8px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.top .brand { font-weight: 700; text-decoration: none; }
.top nav a { margin-right: 12px; }
.top .who { margin-left: auto; color: var(--muted); }
.inline { display: inline; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 12px 16px 40px; }
h1 { font-size: 20px; margin: 8px 0 12px; }
h2 { font-size: 15px; margin: 14px 0 6px; color: var(--accent); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px 14px; }
.card.narrow { max-width: 420px; margin: 40px auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 12px; align-items: start; }
table { border-collapse: collapse; width: 100%; }
.list th, .list td { padding: 4px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.list th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.kv th { width: 90px; color: var(--muted); font-weight: 600; text-align: left; padding: 3px 8px 3px 0; vertical-align: top; }
.kv td { padding: 3px 0; }
.num { text-align: right !important; white-space: nowrap; }
.empty { color: var(--muted); text-align: center; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all; white-space: pre-wrap; }
.small { font-size: 12px; }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: #E9EEF0; color: var(--muted); vertical-align: middle; }
.attr { display: inline-block; font-size: 12px; padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; margin: 1px 2px 1px 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.filters input[type=search] { flex: 1; min-width: 200px; }
input, select, button { font: inherit; }
input[type=text], input[type=search], input[type=password], input[type=date], select { padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }
.stack label, .card.narrow label { display: block; margin: 6px 0; }
.stack input, .card.narrow input { width: 100%; }
.btn { padding: 6px 14px; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; }
.btn:disabled { opacity: .6; }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; text-decoration: underline; }
.error { color: var(--danger); }
.hint { color: var(--muted); margin: 6px 0 0; }
.pager { margin-top: 10px; }
.crumbs { color: var(--muted); margin: 0; }
pre { margin: 0; background: #F7F9FA; border: 1px solid var(--line); border-radius: 6px; padding: 8px; max-height: 360px; overflow: auto; }
@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } .wrap { padding: 8px; } }
/* ---- 第 2 步：询价 / 报价工作台 ---- */
.grid.wide { grid-template-columns: minmax(320px, 1fr) minmax(0, 2fr); }
.span2 { grid-column: span 2; }
@media (max-width: 900px) { .grid.wide { grid-template-columns: 1fr; } .span2 { grid-column: auto; } }
h1 .right { float: right; }
h3 { font-size: 14px; margin: 10px 0 4px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 6px 0; }
.row label { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); gap: 2px; }
.row label.grow { flex: 1; min-width: 200px; }
.row input, .row select { color: var(--ink); }
textarea { width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; color: var(--ink); }
textarea.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.chip { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: #E9EEF0; color: var(--muted); vertical-align: middle; }
.chip.s-issued, .chip.s-published, .chip.s-quoted { background: #E1F0F2; color: var(--accent); }
.chip.s-won, .chip.s-applied { background: #E3F3E6; color: #1F7A3A; }
.chip.s-lost, .chip.s-void, .chip.s-inactive, .chip.s-rejected, .chip.s-closed { background: #F6E4E5; color: var(--danger); }
.btn.small { padding: 3px 10px; font-size: 12px; }
.btn.secondary { background: #fff; color: var(--accent); }
.btn.ok { background: #1F7A3A; border-color: #1F7A3A; }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.hidden { display: none !important; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 8px; }
@media (max-width: 900px) { .editor { grid-template-columns: 1fr; } }
.params { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin: 6px 0; }
.params label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.params input, .params select { width: 100%; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; }
.calc-box { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; background: #F7F9FA; }
.calc-box .big { font-size: 18px; font-weight: 700; color: var(--ink); }
.warn { color: #9A5B00; }
tr.warn td { background: #FFF6E5; }
tr.editing td { background: #EAF6F7; }
input.short { width: 90px; }
.list td.actions { white-space: nowrap; }
.list .link { margin-right: 6px; }
