/* 出来高調書モック — スタイル（vanilla CSS） */
:root {
  --ink: #1f2933;
  --ink-2: #4b5563;
  --ink-3: #6b7280;
  --line: #e3e7ec;
  --line-2: #cfd6de;
  --bg: #f4f6f8;
  --card: #ffffff;
  --primary: #2b5e8c;
  --primary-2: #1f4767;
  --primary-soft: #e6eef6;
  --ok: #2f7d4f;
  --ok-soft: #e6f4ea;
  --warn: #b7791f;
  --warn-soft: #fbf1dc;
  --danger: #b3261e;
  --danger-soft: #fbe9e7;
  --gray-soft: #eef1f4;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .06);
  font-size: 17px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Meiryo', 'Hiragino Sans', 'Yu Gothic UI', system-ui, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.5;
  min-height: 100vh; display: flex; flex-direction: column;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.3; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { font-weight: 600; color: var(--ink-2); background: #f8fafc; font-size: .92rem; white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--ink-3); }
.small { font-size: .9rem; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 32px; flex-wrap: wrap; background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 14px; height: 14px; background: var(--primary); transform: rotate(45deg); border-radius: 2px; }
.brand h1 { font-size: 1.15rem; }
.brand-sub { font-size: .85rem; color: var(--ink-3); }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.user-box { display: flex; align-items: center; gap: 8px; }
.user-box .user { display: flex; align-items: baseline; gap: 1em; margin-right: 8px; white-space: nowrap; }
.nav[hidden] { display: none; }

/* nav */
.nav { display: flex; gap: 4px; padding: 6px 28px 0; background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; }
.nav a { display: inline-block; padding: 12px 16px; color: var(--ink-2); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.nav a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.nav a:hover { color: var(--primary); }

/* main */
.main { flex: 1; width: 100%; margin: 0; padding: 24px 32px 48px; }
@media (max-width: 720px) { .main { padding: 16px 16px 40px; } }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h2 { font-size: 1.35rem; }
.page-head .sub { color: var(--ink-3); margin-top: 4px; }
.crumb { font-size: .9rem; color: var(--ink-3); margin-bottom: 6px; }
.crumb a { color: var(--primary); text-decoration: none; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 16px; }
.card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.card .card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
/* グリッド子要素の min-width:auto による横はみ出しを防ぐ（長い文字列・pre が列を押し広げないように） */
.grid-2 > *, .grid-3 > *, .grid-5 > *, .card { min-width: 0; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .grid-5 { grid-template-columns: repeat(2, 1fr); } }

/* KPI */
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.kpi .k-label { font-size: .85rem; color: var(--ink-3); }
.kpi .k-value { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi .k-note { font-size: .82rem; color: var(--ink-3); }
.kpi.k-warn .k-value { color: var(--warn); }
.kpi.k-danger .k-value { color: var(--danger); }
.kpi.k-ok .k-value { color: var(--ok); }

/* chips / badges */
.chip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .8rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.chip-mock { background: var(--warn-soft); color: var(--warn); }
.st-未提出 { background: var(--gray-soft); color: var(--ink-3); }
.st-査定待ち { background: var(--warn-soft); color: var(--warn); }
.st-差戻し { background: var(--danger-soft); color: var(--danger); }
.st-確定 { background: var(--ok-soft); color: var(--ok); }
.st-契約前 { background: transparent; color: var(--line-2); }
.badge { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: .78rem; font-weight: 600; }
.badge-add { background: var(--ok-soft); color: var(--ok); }
.badge-qty { background: var(--primary-soft); color: var(--primary); }
.badge-price { background: var(--warn-soft); color: var(--warn); }
.badge-rev { background: var(--gray-soft); color: var(--ink-2); }

/* board */
.board td.cell { text-align: center; }
.board a.cell-link { text-decoration: none; }
.board tr:hover td { background: #fbfcfd; }
.board .sub-name { font-weight: 600; }
.board .sub-name a { color: var(--primary); text-decoration: none; }
.board .sub-name a:hover { text-decoration: underline; }
.board .sub-kind { font-size: .85rem; color: var(--ink-3); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; text-decoration: none; color: var(--ink); font-weight: 600; }
.btn:hover { background: #f8fafc; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-2); }
.btn-danger { background: #fff; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-ghost { border-color: transparent; color: var(--ink-3); }
.btn-ghost:hover { background: var(--gray-soft); color: var(--ink); }
.btn-sm { padding: 4px 10px; font-size: .85rem; font-weight: 500; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* summary strip (計算結果) */
.sumstrip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.sumstrip .s { background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.sumstrip .s-label { font-size: .8rem; color: var(--ink-3); }
.sumstrip .s-value { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.sumstrip .s.hi { background: var(--primary-soft); border-color: #c9d9e8; }
.sumstrip .s.hi .s-value { color: var(--primary); }
@media (max-width: 900px) { .sumstrip { grid-template-columns: repeat(2, 1fr); } }

/* 協力会社入力：カード型（スマホ幅でもそのまま） */
.sec-title { margin: 18px 0 8px; font-size: .95rem; color: var(--ink-2); font-weight: 700; letter-spacing: .02em; }
.item-card { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .9fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 8px; }
.item-card.has-error { border-color: var(--danger); background: #fffafa; }
.item-card .i-name { font-weight: 600; }
.item-card .i-spec { font-size: .85rem; color: var(--ink-3); }
.item-card .i-prev { font-size: .9rem; color: var(--ink-2); }
.item-card .i-prev b { color: var(--ink); }
.pct-ctl { display: flex; align-items: center; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.pct-ctl input[type=number] { width: 84px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; text-align: right; font-size: 1.05rem; font-weight: 700; }
.pct-ctl input.bad { border-color: var(--danger); background: var(--danger-soft); }
.pct-ctl .unit { font-weight: 700; color: var(--ink-2); }
.pct-ctl .q { padding: 6px 8px; font-size: .8rem; }
.i-amt { font-size: .85rem; color: var(--ink-3); text-align: right; }
.i-amt b { color: var(--ink); font-size: 1rem; }
.i-amt .i-inc-row b { color: var(--primary); font-size: 1.1rem; }
/* 完了済み（前月までで100％）：入力なし・グレー */
.item-card.is-done { background: #f8fafc; }
.item-card.is-done .i-name, .item-card.is-done .i-amt b { color: var(--ink-3); }
.done-ctl { gap: 10px; }
.done-dash { font-size: 1.3rem; font-weight: 700; color: var(--ink-3); }
.i-err { grid-column: 1 / -1; color: var(--danger); font-size: .85rem; }
@media (max-width: 720px) {
  .item-card { grid-template-columns: 1fr; }
  .pct-ctl { justify-content: flex-start; }
  .i-amt { text-align: left; }
}
.sticky-bottom { position: sticky; bottom: 0; background: rgba(244,246,248,.96); backdrop-filter: blur(4px); padding: 12px 0 4px; border-top: 1px solid var(--line); margin-top: 16px; }
.bill-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: space-between; }
.bill-row .bill-input { display: flex; align-items: center; gap: 8px; }
.bill-row input[type=number] { width: 160px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; text-align: right; font-weight: 700; font-size: 1.05rem; }
.bill-row input.bad { border-color: var(--danger); background: var(--danger-soft); }
.guard { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.guard .g { font-size: .82rem; padding: 3px 9px; border-radius: 6px; background: var(--gray-soft); color: var(--ink-2); }
.guard .g.on { background: var(--ok-soft); color: var(--ok); }
.guard .g.off { background: var(--danger-soft); color: var(--danger); }
/* スマホ幅：固定バーは「当月請求額＋提出」だけに絞り、画面の半分を占めないようにする */
@media (max-width: 720px) {
  .sticky-bottom { padding: 8px 0 2px; }
  .sticky-bottom .card { padding: 10px 12px; }
  .sticky-bottom .sumstrip { grid-template-columns: 1fr 1fr; gap: 6px; }
  .sticky-bottom .sumstrip .s { padding: 6px 8px; }
  .sticky-bottom .sumstrip .s:not(.hi):not(.s-remain-keep) { display: none; }
  .sticky-bottom .sumstrip .s-value { font-size: 1rem; }
  .sticky-bottom .bill-row { margin-top: 8px; gap: 8px; }
  .sticky-bottom .bill-row input[type=number] { width: 130px; }
  .sticky-bottom .guard { display: none; }
}

/* 査定テーブル：各列は ％（上）／金額（下）の2段 */
.assess th { vertical-align: bottom; }
.assess .th-sub { display: block; font-size: .75rem; font-weight: 500; color: var(--ink-3); }
.assess tr.sec-row td { background: #f8fafc; font-weight: 600; color: var(--ink-2); }
.assess .pa-p { font-weight: 700; }
.assess td.muted .pa-p { font-weight: 500; }
.assess .pa-a { font-size: .85rem; color: var(--ink-3); }
.assess td.diff-up .pa-p { color: var(--ok); }
.assess .col-fix { background: #f3f8fd; border-left: 2px solid #c9d9e8; border-right: 2px solid #c9d9e8; }
.assess th.col-fix { background: var(--primary-soft); color: var(--primary); }
.assess .fix-in { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.assess .f-diff { font-size: .8rem; color: var(--danger); font-weight: 600; }
.assess .bar { height: 5px; background: var(--gray-soft); border-radius: 3px; margin-top: 4px; overflow: hidden; }
.assess .bar span { display: block; height: 100%; background: var(--primary); }
.assess .remain-p { color: var(--warn); }
.assess .remain-p.zero { color: var(--ink-3); font-weight: 500; }
.assess .bar.bar-ghost { visibility: hidden; }
.assess th.col-remain { color: var(--warn); }
.assess tfoot td { border-top: 2px solid var(--line-2); background: #f8fafc; font-weight: 700; }
.assess tfoot td.col-fix { background: #e9f1fa; }
.assess input[type=number].bad { border-color: var(--danger); background: var(--danger-soft); }
.assess input[type=number] { width: 78px; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 6px; text-align: right; font-weight: 700; }
.assess td.diff-up { color: var(--ok); font-weight: 600; }
.assess td.diff-0 { color: var(--ink-3); }
.assess tr.changed td { background: #fffdf5; }
textarea { display: block; width: 100%; min-height: 64px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; }
.tl { list-style: none; padding: 0; margin: 0; }
.tl li { padding: 6px 0 6px 14px; border-left: 2px solid var(--line-2); position: relative; font-size: .92rem; }
.tl li::before { content: ''; position: absolute; left: -5px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

/* 変更履歴 */
.amt-flow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.amt-flow .node { background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.amt-flow .node .n-label { font-size: .8rem; color: var(--ink-3); }
.amt-flow .node .n-value { font-weight: 700; font-variant-numeric: tabular-nums; }
.amt-flow .node.cur { background: var(--primary-soft); border-color: #c9d9e8; }
.amt-flow .arrow { color: var(--ink-3); }
.delta-plus { color: var(--ok); font-weight: 600; }
.delta-minus { color: var(--danger); font-weight: 600; }
tr.row-changed td { background: #fbfdff; }
tr.row-added td { background: #f6fbf7; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs button { padding: 8px 14px; border: none; background: none; cursor: pointer; color: var(--ink-2); border-bottom: 3px solid transparent; font-weight: 600; }
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }

/* 出来高調書（帳票プレビュー） */
.sheet-wrap { overflow-x: auto; }
.sheet { width: 1180px; background: #fff; border: 1px solid var(--line-2); padding: 22px 26px; margin: 0 auto; color: #111; font-size: 14px; }
.sheet .sh-title { display: flex; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.sheet .sh-title h3 { font-size: 20px; letter-spacing: .1em; }
.sheet .sh-title .ym { font-size: 16px; font-weight: 700; }
.sheet .sh-title .vendor { margin-left: auto; border-bottom: 1px solid #333; padding: 0 12px 2px; min-width: 260px; }
.sheet table.hd th, .sheet table.hd td { border: 1px solid #555; padding: 5px 8px; font-size: 13.5px; }
.sheet table.hd th { background: #f1f1f1; text-align: center; font-weight: 600; color: #111; }
.sheet table.hd td { text-align: center; }
.sheet table.sum { margin-top: 10px; }
.sheet table.sum th, .sheet table.sum td { border: 1px solid #555; padding: 5px 8px; text-align: center; }
.sheet table.sum th { background: #f1f1f1; color: #111; }
.sheet table.sum td { font-size: 15.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sheet table.det { margin-top: 12px; }
.sheet table.det th, .sheet table.det td { border: 1px solid #777; padding: 4px 7px; font-size: 13px; }
.sheet table.det th { background: #e9eef3; color: #111; text-align: center; }
.sheet table.det td.num { text-align: right; }
.sheet table.det td.c { text-align: center; }
.sheet table.det tr.sec td { background: #fafafa; font-weight: 600; }
.sheet .sh-foot { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12.5px; color: #333; }
.sheet .assess-mark { color: #b3261e; font-weight: 700; }
.sheet .stamp { display: inline-block; border: 1.5px solid #b3261e; color: #b3261e; padding: 2px 8px; border-radius: 4px; font-weight: 700; font-size: 11px; transform: rotate(-4deg); }

/* 請求書データ */
.kv { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 6px 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.kv dd.big { font-size: 1.3rem; }
.json { background: #0f172a; color: #e2e8f0; padding: 12px 14px; border-radius: 8px; font-family: Consolas, 'Courier New', monospace; font-size: .82rem; overflow-x: auto; white-space: pre; max-width: 100%; }
@media (max-width: 720px) { .kv { grid-template-columns: 110px minmax(0, 1fr); } }
/* 変更履歴・金額推移：長い文言は折り返す */
.amt-flow .node { max-width: 100%; }
.amt-flow .node .n-value { overflow-wrap: anywhere; }
.tl li { overflow-wrap: anywhere; }
.page-head > div { min-width: 0; }
.page-head h2, .page-head .sub, .crumb { overflow-wrap: anywhere; }

/* ログイン */
body.is-login .main { display: flex; justify-content: center; }
.login-wrap { width: 100%; max-width: 520px; padding-top: 4vh; }
.login-card { width: 100%; }
.login-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.login-head .brand-mark { width: 18px; height: 18px; }
.login-head h2 { font-size: 1.5rem; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: var(--ink-2); }
.login-form input { padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 8px; font-weight: 400; color: var(--ink); }
.login-form input:focus, .search-bar input:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }
.login-form a { color: var(--primary); align-self: flex-start; }
.btn-block { width: 100%; justify-content: center; padding: 11px 14px; }
.login-help { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-2); display: grid; gap: 6px; }
.demo-card { background: #fbfcfd; border-style: dashed; box-shadow: none; }
.demo-btns { display: grid; gap: 8px; }
.demo-btns .btn { justify-content: flex-start; }

/* 工事の選択 */
.search-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.search-bar input[type=search] { flex: 1 1 360px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 8px; }
.search-bar select { padding: 9px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; }
table.proj td, table.proj th { padding: 12px 12px; }
table.proj tr.proj-row { cursor: pointer; }
table.proj tr.proj-row:hover td, table.proj tr.proj-row:focus td { background: var(--primary-soft); }
table.proj tr.proj-row:focus { outline: none; }
table.proj .proj-name { color: var(--primary); font-weight: 600; text-decoration: none; }
table.proj tr.no-data .proj-name { color: var(--ink); font-weight: 500; }
table.proj .go { color: var(--primary); font-weight: 600; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }

/* 月別の提出状況（注文明細） */
.mstat-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.mstat { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-decoration: none; color: var(--ink); }
.mstat:hover { border-color: var(--primary); background: #fbfdff; }
.mstat.is-cur { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.mstat .m-ym { font-weight: 700; display: flex; gap: 6px; align-items: center; }
.mstat .m-amt { font-variant-numeric: tabular-nums; font-weight: 600; }
.mstat .m-act { font-size: .88rem; color: var(--primary); font-weight: 600; }
.chip-cur { background: var(--primary-soft); color: var(--primary); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: #1f2933; color: #fff; padding: 10px 16px; border-radius: 10px; opacity: 0; pointer-events: none; transition: all .25s; box-shadow: var(--shadow); max-width: 90vw; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* footer */
.foot { display: flex; justify-content: space-between; gap: 16px; padding: 12px 32px; font-size: .82rem; color: var(--ink-3); border-top: 1px solid var(--line); background: #fff; flex-wrap: wrap; }
.notice { border-left: 4px solid var(--primary); background: var(--primary-soft); padding: 10px 14px; border-radius: 6px; font-size: .92rem; margin-bottom: 14px; }
.notice.warn { border-left-color: var(--warn); background: var(--warn-soft); }
.notice.ok { border-left-color: var(--ok); background: var(--ok-soft); }
.empty { text-align: center; color: var(--ink-3); padding: 40px 0; }

/* print: 帳票だけを A4 横で */
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body { background: #fff; }
  .app-chrome, .no-print, .toast { display: none !important; }
  .main { max-width: none; padding: 0; }
  .card { border: none; box-shadow: none; padding: 0; margin: 0; }
  .sheet-wrap { overflow: visible; }
  .sheet { width: 100%; border: none; padding: 0; }
}

/* スマホ幅：ヘッダーのログイン情報・ボタンを折り返す */
.btn { white-space: nowrap; }
@media (max-width: 720px) {
  .topbar { padding: 10px 16px; }
  .topbar-right { width: 100%; flex-wrap: wrap; gap: 6px; }
  .user-box { flex-wrap: wrap; gap: 6px; width: 100%; }
  .user-box .user { width: 100%; margin-right: 0; flex-wrap: wrap; gap: .6em; }
  .user-box .btn, .topbar-right > .btn { padding: 6px 10px; font-size: .88rem; }
  .nav { padding: 4px 8px 0; }
}

/* 値引き（端数調整）行：金額で入力 */
.pct-ctl input.amt-in { width: 130px; }
.item-card.is-adj { background: #fffcf7; }

/* 注文明細：当初／第n回変更のタブ */
.tabs .tab-latest { margin-left: 6px; font-size: .72rem; padding: 1px 6px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); vertical-align: 1px; }

/* 変更契約で前月までの％を換算した項目 */
.i-prev .rebase { font-size: .78rem; color: var(--warn); font-weight: 600; }

/* 査定画面：協力会社申請の列（施工管理者確定の青と対にして橙系） */
.assess .col-req { background: #fdf7ee; border-left: 2px solid #eed9b6; }
.assess th.col-req { background: var(--warn-soft); color: var(--warn); }
.assess tfoot td.col-req { background: #f9eedb; }

/* 小計 → 値引き → 合計 */
.subtotal-row td, .total-row td { font-weight: 700; background: #f8fafc; border-top: 2px solid var(--line-2); }
.assess tr.sub-row td { font-weight: 700; background: #f8fafc; border-top: 2px solid var(--line-2); }
.sum-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; margin: 14px 0 8px; border-top: 2px solid var(--line-2); font-weight: 700; flex-wrap: wrap; }
.sum-line.sl-total { margin-top: 8px; background: var(--primary-soft); border-radius: 8px; border-top: none; }
.sum-line .sl-val b { font-size: 1.1rem; }
.sheet table.det tr.sh-tot td { font-weight: 700; background: #f1f1f1; }
