:root {
  --bg: #f3f5f8;
  --panel: #ffffff;
  --text: #1f2933;
  --muted: #5f6b7a;
  --line: #dde2e8;
  --head: #f6f8fa;
  --primary: #1a5dbf;
  --primary-dark: #154a99;
  --primary-soft: #e8f0fb;
  --ok: #1f7a3d;
  --ok-soft: #e2f4e7;
  --warn: #8a5a00;
  --warn-soft: #fff3cd;
  --bad: #b42318;
  --bad-soft: #fde8e7;
  --s-none: #8b95a1;
  --s-requested: #3a78d8;
  --s-quoted: #15928f;
  --s-ordered: #c9820c;
  --s-delivered: #7654c4;
  --s-done: #2d8a4e;
  --s-skip: #b5bdc6;
}

* { box-sizing: border-box; }
html { font-size: 15px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Yu Gothic UI", "Meiryo UI", Meiryo, "Hiragino Sans", system-ui, sans-serif;
  line-height: 1.55;
}
a { color: var(--primary); }
[hidden] { display: none !important; }

.layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }

/* ログイン */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.login-card { width: 100%; max-width: 380px; padding: 28px 28px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.login-card h1 { font-size: 20px; }
.login-card .field { display: block; margin-top: 14px; white-space: normal; }
.login-card .field input { width: 100%; margin-top: 4px; padding: 9px 10px; }

/* 案件の枠 */
.case-list { display: flex; flex-direction: column; gap: 14px; }
.section-title { margin: 18px 0 4px; font-size: 15px; color: var(--muted); }
.case-card {
  padding: 16px 18px; border: 2px solid #cfe7d8; border-radius: 12px; background: #f4fbf6;
  transition: border-color .12s, background .12s;
}
.case-card.over { border-color: var(--ok); background: #e6f6ec; }
.case-card.is-done { border-color: var(--line); background: var(--panel); opacity: .85; }
.case-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.case-title { font-size: 17px; font-weight: 700; }
.case-sub { margin-top: 2px; font-size: 13px; color: var(--muted); }
.case-next { text-align: right; white-space: nowrap; }
.case-bar { width: 100%; height: 12px; margin: 10px 0 2px; }
.case-body { display: flex; gap: 14px; align-items: stretch; margin-top: 10px; }
.case-requests { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; align-content: flex-start; }
.case-request {
  display: flex; flex-direction: column; padding: 6px 12px; text-decoration: none; color: var(--text);
  background: #fff; border: 1px solid #d6e6dc; border-radius: 8px; font-size: 14px;
}
.case-request:hover { border-color: var(--primary); }
.case-drop {
  display: flex; align-items: center; justify-content: center; width: 320px; padding: 12px;
  border: 2px dashed #a9cdb8; border-radius: 10px; background: #fff; color: var(--muted); font-size: 13px; text-align: center;
}
.case-card.over .case-drop { border-color: var(--ok); color: var(--ok); }
.case-new { border-style: dashed; background: #fbfdfc; }
.case-new-inner { text-align: center; padding: 14px; }
.case-new-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }

/* 画面の上に出す確認 */
#overlay { position: fixed; inset: 0; z-index: 20; }
.modal-back { position: absolute; inset: 0; background: rgba(15, 23, 32, .45); }
.modal {
  position: relative; max-width: 760px; margin: 8vh auto 0; max-height: 80vh; overflow-y: auto;
  padding: 22px 24px; background: var(--panel); border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
}
.modal-request { padding: 12px 0; border-top: 1px solid var(--line); }
.modal-request:first-of-type { border-top: 0; }

/* 設定のタブ */
.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tab { font: inherit; padding: 7px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); cursor: pointer; }
.tab:hover { background: var(--bg); }
.tab.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }

/* 見積先の選び直し・注文の入力 */
.vendor-pick { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.vendor-pick label { display: flex; gap: 4px; align-items: center; font-size: 13px; }
.order-form { padding: 10px 0; border-top: 1px solid var(--line); }
.order-form h3 { margin-bottom: 8px; }
.skip-reason { margin-top: 6px; }

/* 左のメニュー */
.sidebar {
  position: sticky; top: 0; height: calc(100vh - 32px); overflow-y: auto;
  display: flex; flex-direction: column; padding-top: 18px;
  background: var(--panel); border-right: 1px solid var(--line);
}
.brand { font-size: 17px; font-weight: 700; padding: 0 20px 14px; }
.kind-switch { display: flex; margin: 0 16px 10px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.kind-switch button { flex: 1; font: inherit; font-size: 13px; padding: 6px 0; border: 0; background: var(--panel); color: var(--text); cursor: pointer; }
.kind-switch button + button { border-left: 1px solid var(--line); }
.kind-switch button.on { background: var(--primary); color: #fff; }
.nav-group { font-size: 12px; color: var(--muted); padding: 16px 20px 4px; }
.sidebar a { display: block; padding: 9px 20px; color: var(--text); text-decoration: none; border-left: 4px solid transparent; }
.sidebar a:hover { background: var(--bg); }
.sidebar a.active { background: var(--primary-soft); border-left-color: var(--primary); font-weight: 700; }
.user { margin-top: auto; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* 共通 */
main { width: 100%; max-width: 1360px; padding: 24px 32px 80px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 18px; }
h1 { font-size: 23px; margin: 0 0 4px; }
h2 { font-size: 17px; margin: 0 0 12px; }
h3 { font-size: 16px; margin: 0; }
.lead { margin: 0; color: var(--muted); }
.crumb { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.muted { color: var(--muted); }
.note-muted { color: var(--muted); font-size: 13px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin-bottom: 16px; }
.card.compact { padding: 12px 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-size: 14px; padding: 7px 14px; white-space: nowrap; text-decoration: none;
  border: 1px solid #c8d0da; border-radius: 7px; background: var(--panel); color: var(--text); cursor: pointer;
}
.btn:hover { background: var(--bg); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; font-size: 15px; font-weight: 700; padding: 11px 24px; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { background: #a8b6c8; border-color: #a8b6c8; cursor: not-allowed; }
.link-btn { font: inherit; font-size: 13px; padding: 2px 4px; border: 0; background: none; color: var(--primary); text-decoration: underline; cursor: pointer; }
.actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 16px; }
.actions.left { justify-content: flex-start; }
.done-text { color: var(--ok); font-weight: 700; }

.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.card .table-wrap { border-radius: 8px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--head); color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.center { text-align: center; }
table.clickable tbody tr { cursor: pointer; }
table.clickable tbody tr:hover td { background: #f7faff; }
tr.foot td { background: var(--head); font-weight: 600; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.s-none { background: var(--s-none); }
.s-requested { background: var(--s-requested); }
.s-quoted { background: var(--s-quoted); }
.s-ordered { background: var(--s-ordered); }
.s-delivered { background: var(--s-delivered); }
.s-done { background: var(--s-done); }
.s-skip { background: var(--s-skip); }
.tag { display: inline-block; padding: 1px 7px; border-radius: 5px; background: #edf0f3; color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; vertical-align: middle; }
.tag.ok { background: var(--ok); color: #fff; }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--bad); color: #fff; }
.chip { display: inline-block; margin: 0 4px 4px 0; padding: 1px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #edf0f3; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill-warn { background: var(--warn-soft); color: var(--warn); }

.notice { margin: 0 0 10px; padding: 10px 14px; border-radius: 8px; }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.info { margin-top: 12px; background: var(--primary-soft); color: var(--primary-dark); }
.notice.bad { background: var(--bad-soft); color: var(--bad); }
.overdue { color: var(--bad); font-weight: 700; }
.bad { color: var(--bad); font-weight: 700; }
.warn-text { color: var(--warn); font-weight: 600; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 24px; margin: 0; }
.info-grid dt { font-size: 12px; color: var(--muted); }
.info-grid dd { margin: 0; font-weight: 600; }

input[type="text"], input[type="number"], select {
  font: inherit; font-size: 14px; padding: 5px 8px;
  border: 1px solid #c5cdd6; border-radius: 6px; background: #fff; color: var(--text);
}
input:disabled { background: #eef0f3; color: #9aa4ae; }
input.small { width: 92px; text-align: right; }
.field { display: flex; align-items: center; gap: 8px; margin-top: 12px; white-space: nowrap; }
.field input { flex: 1; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }

/* ホーム */
.todo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.todo { margin: 0; }
.todo h2 { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.count { min-width: 32px; padding: 2px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-size: 14px; text-align: center; }
.todo ul { list-style: none; margin: 0; padding: 0; }
.todo li + li { border-top: 1px solid var(--line); }
.todo li a { display: flex; flex-direction: column; margin: 0 -10px; padding: 9px 10px; border-radius: 6px; color: var(--text); text-decoration: none; }
.todo li a:hover { background: var(--bg); }
.todo-sub { font-size: 13px; color: var(--muted); }

/* 台帳 */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.filters label { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 11px; height: 11px; margin-right: 5px; border-radius: 3px; vertical-align: -1px; }
.progress { display: flex; width: 200px; height: 10px; border-radius: 5px; overflow: hidden; background: #eceff3; }
.progress span { display: block; height: 100%; }
.progress-text { margin-top: 3px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.next-link { font-weight: 600; text-decoration: none; }
.next-link:hover { text-decoration: underline; }

/* 取込 */
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  margin-bottom: 20px; padding: 36px 20px; cursor: pointer;
  border: 2px dashed #aebbcb; border-radius: 12px; background: var(--panel); color: var(--muted);
}
.dropzone:hover, .dropzone.over { border-color: var(--primary); background: var(--primary-soft); }
.drop-main { font-size: 18px; font-weight: 700; color: var(--text); }
.file-block { margin-bottom: 28px; }
.file-name { margin: 0 0 10px; font-size: 16px; }
.file-name .muted { margin-left: 6px; font-size: 14px; font-weight: 400; }
.parsed-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.summary { display: flex; gap: 6px; }
.parsed .info-grid { margin-bottom: 14px; }
.row-equip td { background: #e9f0fa; color: #1d3f73; font-weight: 700; }
.row-sub td { padding-left: 28px; background: #f6f8fb; color: var(--muted); font-weight: 600; }
.row-review td { background: var(--warn-soft); }
.note { margin-top: 2px; font-size: 12px; color: var(--warn); font-weight: 600; }

/* 見積依頼・注文 */
.two-col { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
.vendor {
  display: flex; flex-direction: column; align-items: flex-start; width: 100%;
  margin-bottom: 8px; padding: 10px 12px; font: inherit; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.vendor:hover { background: var(--bg); }
.vendor.on { border-color: var(--primary); background: var(--primary-soft); }
.vendor-name { font-weight: 700; }
.vendor-sub { font-size: 13px; color: var(--muted); }
.mail-field { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: start; margin-bottom: 10px; }
.mail-label { padding-top: 7px; font-size: 13px; color: var(--muted); font-weight: 600; }
.mail-value {
  margin: 0; padding: 7px 10px; white-space: pre-wrap; word-break: break-word;
  font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 6px; background: #f8f9fb;
}

/* 見積の入力 */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.doc-view { display: flex; justify-content: center; min-height: 560px; padding: 20px; border-radius: 10px; background: #4b5057; }
.paper { width: 100%; max-width: 460px; aspect-ratio: 1 / 1.414; padding: 28px 26px; background: #fff; color: #333; font-size: 11px; box-shadow: 0 3px 12px rgba(0, 0, 0, .35); }
.paper-title { margin-bottom: 14px; text-align: center; font-size: 18px; letter-spacing: .4em; }
.paper-row { display: flex; justify-content: space-between; margin-bottom: 12px; }
.paper-table th, .paper-table td { padding: 4px 6px; border: 1px solid #999; background: #fff; color: #333; font-size: 11px; }
.paper-note { margin-top: 18px; color: #888; text-align: center; }
.split.entry-split { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.entry td { vertical-align: middle; }
.entry input.small { width: 76px; }
.alt { margin-top: 4px; font-size: 13px; }
.alt input { width: 130px; }

/* 相見積 */
table.compare td.quote { min-width: 170px; }
td.cheapest { background: var(--ok-soft); }
td.selected { box-shadow: inset 0 0 0 2px var(--primary); }
td.none { background: repeating-linear-gradient(-45deg, #f4f5f7, #f4f5f7 6px, #eceef1 6px, #eceef1 12px); }
.none-text { color: var(--muted); font-size: 13px; font-weight: 600; }
.pick { position: relative; display: flex; flex-direction: column; gap: 2px; padding-left: 24px; cursor: pointer; }
.pick input { position: absolute; left: 0; top: 3px; }
.price { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pick .sub { font-size: 12px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }

/* 照合 */
th.group { text-align: center; border-left: 1px solid var(--line); }
td.diff { background: var(--bad-soft); color: var(--bad); font-weight: 700; }
td.diff input { border-color: var(--bad); }

#toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 10; transform: translateX(-50%);
  padding: 10px 20px; border-radius: 8px; background: #22313f; color: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}

@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .split, .two-col { grid-template-columns: 1fr; }
}

/* Business workspace: shared visual language across every workflow screen. */
:root { --bg: #f2f5f3; --text: #24322a; --muted: #5c6b61; --line: #d9e2dc; --head: #f4f7f5; --primary: #217346; --primary-dark: #185b42; --primary-soft: #e9f3ec; }
html { font-size: 14px; }
body { font-family: "Yu Gothic UI", "Meiryo", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #4d8ef0; outline-offset: 3px; }
.icon { width: 20px; height: 20px; flex: 0 0 20px; vertical-align: middle; }
.layout { grid-template-columns: 232px minmax(0, 1fr); }
.workspace { min-width: 0; }
.sidebar { background: #15253e; color: #d3deed; height: 100dvh; padding: 26px 14px 0; border: 0; z-index: 30; }
.sidebar .brand { display: flex; gap: 10px; align-items: center; padding: 0 4px 32px; border: 0; color: #fff; font-size: 16px; letter-spacing: .02em; }
.sidebar .brand:hover { background: transparent; }
.brand small { display: block; color: #aabbd2; font-size: 10px; font-weight: 400; margin-top: 5px; letter-spacing: .13em; }
.brand-mark { width: 38px; height: 38px; background: #2b67cc; display: grid; place-items: center; border-radius: 10px; }
.brand-mark .icon { width: 25px; height: 25px; }
.nav-caption { padding: 0 14px 12px; font-size: 10px; letter-spacing: .16em; color: #9aaecb; }
.sidebar .nav-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 3px 0; border: 0; border-radius: 7px; color: #c6d3e6; font-size: 13px; }
.sidebar .nav-link:hover { background: #213752; color: #fff; }
.sidebar .nav-link.active { background: #2b5dac; color: #fff; box-shadow: inset 3px 0 #8ab7ff; }
.nav-group { color: #9aaecb; font-size: 11px; padding: 28px 14px 6px; }
.sidebar-note { margin-top: auto; padding: 48px 14px 22px; color: #9aaecb; font-size: 11px; line-height: 1.9; }
.user { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 20px 4px; color: #d3deed; border-color: #30415a; margin-top: 0; }
.user strong { font-size: 12px; }.user small { display: block; font-size: 10px; color: #9aaecb; }
.user .link-btn { font-size: 10px; margin-left: auto; color: #c6d3e6; }
.avatar { background: #2e4565; color: #e2ebf9; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; }
.topbar { min-height: 72px; background: #fff; border-bottom: 1px solid var(--line); padding: 14px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-location, .topbar-tools { display: flex; align-items: center; gap: 16px; font-size: 12px; }
.topbar-location > span, .scope-label, .today { color: var(--muted); }.divider { color: #c9d2df !important; }
.kind-switch { margin: 0; padding: 3px; background: #f1f4f8; border: 0; border-radius: 7px; gap: 2px; }
.kind-switch button { padding: 5px 12px; background: transparent; font-size: 12px; border-radius: 5px; min-width: 52px; }
.kind-switch button { white-space: nowrap; flex: 1 0 auto; }
.kind-switch button + button { border: 0; }.kind-switch button.on { background: #fff; color: var(--primary); box-shadow: 0 1px 4px #18294220; font-weight: 700; }
main { max-width: 1680px; margin: 0 auto; padding: 32px 36px 64px; }
.page-head { align-items: center; margin-bottom: 18px; gap: 20px; }
h1 { font-size: 20px; letter-spacing: .02em; font-weight: 700; margin: 0 0 4px; line-height: 1.5; }
h2 { font-size: 15px; }.lead { font-size: 13px; line-height: 1.7; max-width: 780px; }
.eyebrow { color: #5c6b61; font-size: 10px; font-weight: 700; letter-spacing: .15em; margin-bottom: 7px; }
.btn { min-height: 38px; border-color: #d3dce8; border-radius: 6px; font-size: 12px; padding: 8px 14px; gap: 8px; font-weight: 600; transition: background .15s, border-color .15s; }
.btn .icon { width: 17px; height: 17px; flex-basis: 17px; }
.btn-primary { background: var(--primary); border-color: var(--primary); padding: 10px 18px; color: #fff; box-shadow: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }.actions { flex-wrap: wrap; margin: 18px 0; gap: 10px; }.actions.left { margin: 16px 0; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 28px; }
.metric { background: white; border: 1px solid var(--line); border-radius: 9px; padding: 18px 20px; box-shadow: 0 2px 3px #24324a02; }
.metric-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: #52647e; }
.metric-label .icon { color: #7b94b5; }.metric-value { font-size: 34px; font-weight: 700; line-height: 1.4; margin: 8px 0 3px; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.metric-value span { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 8px; }.metric-detail { font-size: 11px; color: var(--muted); }
.metric.attention { background: #fffaf5; border-color: #f0d9c4; }.metric.attention .metric-value, .metric.attention .icon { color: #b35a19; }.metric.success .metric-value { color: #278276; }
.list-panel { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; margin-bottom: 18px; }
.list-panel-head { padding: 0 22px; border-bottom: 1px solid var(--line); }
.filter-tabs { display: flex; gap: 24px; overflow-x: auto; }.filter-tabs button { border: 0; border-bottom: 3px solid transparent; background: transparent; padding: 18px 1px 15px; color: var(--muted); cursor: pointer; white-space: nowrap; font-size: 13px; }
.filter-tabs button span { margin-left: 8px; background: #eff2f7; color: #61728c; border-radius: 4px; padding: 2px 6px; font-size: 11px; }
.filter-tabs button.on { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }.filter-tabs button.on span { background: var(--primary-soft); color: var(--primary); }
.list-toolbar { padding: 20px 22px 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.search-field { display: flex; align-items: center; gap: 8px; border: 1px solid #d3dce8; border-radius: 6px; background: #fff; padding: 0 12px; flex: 1; min-width: 220px; color: #8a9bb2; }
.search-field:focus-within { outline: 2px solid #85adf0; }.search-field input { width: 100%; border: 0; min-height: 38px; outline: none; min-width: 0; color: var(--text); background: transparent; font-size: 12px; }
.toolbar-select { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }.toolbar-select select { font-size: 12px; }
.list-caption { display: flex; justify-content: space-between; gap: 16px; padding: 0 22px 14px; color: var(--muted); font-size: 11px; }
.case-list { gap: 0; padding: 0 22px; }.case-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 20px; margin-bottom: 14px; }
.case-card.needs-attention { border-left: 3px solid #ce7e39; }.case-card.is-done { opacity: 1; background: #fafcfe; }
.case-title { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 17px; }.case-title > .icon { color: #6885ab; }
.case-project { font-size: 13px; font-weight: 600; margin: 6px 0; }.case-sub { font-size: 11px; }.case-next { min-width: 150px; }.next-caption { display: block; color: var(--muted); font-size: 10px; margin-bottom: 4px; }
.next-link { display: inline-block; font-size: 13px; border-radius: 5px; background: var(--primary-soft); padding: 7px 11px; }.case-next.overdue .next-link { color: #a84d13; background: #fff0e3; }
.case-next .note-muted { margin-top: 7px; font-size: 11px; }.case-bar { height: 6px; margin: 15px 0 5px; width: 100%; }.progress-text { font-size: 10px; white-space: normal; line-height: 1.7; }
.case-body { margin-top: 16px; padding-top: 14px; border-top: 1px solid #edf0f5; gap: 16px; }
.case-request { font-size: 12px; border-color: var(--line); background: #f9fbfe; padding: 7px 12px; border-radius: 5px; }.case-request .note-muted { font-size: 10px; margin-top: 3px; }
.case-drop { width: 210px; border: 1px dashed #bac9dd; border-radius: 6px; padding: 8px 12px; font-size: 12px; gap: 10px; cursor: pointer; text-align: left; }.case-drop .note-muted { display: block; font-size: 10px; }.case-drop:hover, .case-drop:focus-within { border-color: var(--primary); background: var(--primary-soft); }
.case-new { background: #edf3fb; border: 1px dashed #b7c9e3; margin-bottom: 16px; }.case-new-inner { display: flex; align-items: center; gap: 16px; padding: 0; text-align: left; }.case-new-inner > .icon { width: 28px; height: 28px; flex-basis: 28px; color: #567eb4; }.case-new-inner .btn { margin-left: auto; }.case-new-title { font-size: 13px; }.case-new .note-muted { font-size: 11px; }
.status-help { font-size: 11px; color: var(--muted); }.status-help summary { cursor: pointer; margin-bottom: 12px; }.legend { font-size: 11px; gap: 8px 16px; }
.empty-state { padding: 42px 20px; text-align: center; color: var(--muted); }.empty-state > .icon { width: 36px; height: 36px; color: #8fa6c5; margin-bottom: 16px; }.empty-state h2 { color: var(--text); margin-bottom: 8px; }.empty-state p { font-size: 13px; margin: 0 0 20px; }
.workflow { display: flex; margin: 22px 36px 0; border: 1px solid var(--line); background: white; border-radius: 8px; overflow-x: auto; }
.workflow a, .workflow-last { position: relative; flex: 1; padding: 13px 14px; font-size: 12px; color: #64748b; text-decoration: none; white-space: nowrap; border-right: 1px solid var(--line); }
.workflow a > span, .workflow-last > span { font-size: 10px; color: #94a3b8; margin-right: 8px; }.workflow a:hover { background: #f5f8fd; }.workflow [aria-current="step"], .workflow .current { background: var(--primary-soft); color: var(--primary); font-weight: 700; box-shadow: inset 0 -3px var(--primary); }.workflow-last { border: 0; }.workflow-last small { display: block; font-size: 9px; padding-left: 22px; font-weight: 400; }
.card { padding: 22px; border-radius: 8px; box-shadow: 0 2px 4px #24324a02; }.card.compact { padding: 16px 22px; }.info-grid { gap: 16px 24px; }.info-grid dt { font-size: 11px; margin-bottom: 5px; }.info-grid dd { font-size: 13px; overflow-wrap: anywhere; }
.table-wrap { border-radius: 8px; margin-top: 14px; }th, td { padding: 13px 14px; font-size: 12px; }thead th { font-size: 11px; padding-top: 12px; padding-bottom: 12px; letter-spacing: .02em; }tbody tr:last-child td { border-bottom: 0; }table.clickable td { vertical-align: middle; }table.clickable td a { font-weight: 600; text-decoration: none; }table.clickable td a:hover { text-decoration: underline; }
.badge { font-size: 10px; padding: 4px 8px; border-radius: 4px; }.badge.s-none { color: #53627a; background: #edf0f5; }.badge.s-requested { color: #225fae; background: #e9f1ff; }.badge.s-quoted { color: #087970; background: #e0f4ee; }.badge.s-ordered { color: #955715; background: #fff0da; }.badge.s-delivered { color: #6d49a3; background: #f0e9fc; }.badge.s-done { color: #287640; background: #e7f4e9; }.badge.s-skip { color: #667085; background: #f0f1f3; }
input[type="text"], input[type="number"], input[type="date"], input[type="password"], input[type="email"], select, textarea { min-height: 36px; padding: 7px 10px; border: 1px solid #cbd5e1; border-radius: 5px; font-size: 12px; background: white; color: var(--text); max-width: 100%; }input[type="checkbox"], input[type="radio"] { accent-color: var(--primary); width: 16px; height: 16px; }
input:disabled, select:disabled { background: #eef1f5; color: #8490a3; }.field { white-space: normal; }.field input { min-width: 0; }.filters { gap: 14px 20px; }.filters label { font-size: 12px; }.note-muted { font-size: 11px; }.chip { font-size: 11px; }.notice { padding: 13px 16px; font-size: 12px; font-weight: 400; border: 1px solid transparent; }.notice.bad { border-color: #efc7c4; }
.tabs { flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }.tab { font-size: 12px; border-radius: 6px; padding: 10px 16px; }.tab.on { background: var(--primary-soft); color: var(--primary); border-color: #b8ceef; }
.dropzone { background: #f9fbff; border: 1px dashed #a9bfdc; min-height: 180px; justify-content: center; padding: 34px 20px; text-align: center; }.drop-main { font-size: 17px; }.dropzone:focus-visible { background: var(--primary-soft); }.import-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 24px; }.import-guide div { border: 1px solid var(--line); background: white; padding: 18px; border-radius: 8px; }.import-guide strong { display: block; font-size: 13px; margin-bottom: 6px; }.import-guide span { color: var(--muted); font-size: 12px; }
.todo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }.todo h2 { border-bottom: 1px solid var(--line); padding-bottom: 16px; }.todo li a { padding: 14px 10px; gap: 6px; }.todo-sub { font-size: 11px; }
.two-col > *, .split > *, .todo-grid > * { min-width: 0; }
.two-col { grid-template-columns: 230px minmax(0, 1fr); gap: 24px; }.vendor { padding: 14px; }.vendor.on { box-shadow: inset 3px 0 var(--primary); }.mail-field { margin-bottom: 14px; }.mail-value { font-size: 12px; line-height: 1.9; padding: 10px 12px; }.crumb { font-size: 11px; margin-bottom: 16px; }
.login-page { background: #eef2ef; }.login-card { max-width: 400px; border-radius: 6px; padding: 36px 36px 28px; border: 1px solid #c4d1c7; box-shadow: none; }.login-brand { color: var(--primary); font-size: 12px; display: flex; gap: 10px; align-items: center; margin-bottom: 26px; }.login-card h1 { font-size: 22px; }.login-card .lead { font-size: 12px; margin-bottom: 24px; }.login-card .field { font-size: 12px; font-weight: 600; margin-top: 20px; }.login-card .field input { min-height: 42px; }.login-card .actions { margin-bottom: 0; }.login-card .btn { width: 100%; }
#toast { z-index: 100; max-width: calc(100vw - 32px); font-size: 13px; }.modal { border-radius: 10px; box-shadow: 0 24px 80px #0e203547; }.modal h2 { margin-bottom: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }.skip-link { position: fixed; left: 12px; top: -100px; z-index: 100; background: #fff; padding: 12px; }.skip-link:focus { top: 12px; }.menu-toggle { display: none; }
@media (min-width: 1600px) { main { padding-left: 48px; padding-right: 48px; }.case-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }.case-list .empty-state { grid-column: 1 / -1; }.case-body { flex-wrap: wrap; }.case-drop { width: auto; min-width: 180px; } }
@media (max-width: 1200px) { .topbar { padding: 14px 24px; }main { padding: 28px 24px 60px; }.workflow { margin-left: 24px; margin-right: 24px; }.metrics { gap: 10px; }.metric { padding: 16px; }.metric-detail { font-size: 10px; }.scope-label, .today { display: none; }.split.entry-split { grid-template-columns: 1fr; } }
@media (min-width: 901px) and (max-width: 1000px) { .layout { grid-template-columns: 210px minmax(0, 1fr); }.sidebar { position: sticky; height: 100dvh; }.brand { font-size: 14px !important; } }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; }.sidebar { display: none; position: fixed; inset: 65px auto 0 0; width: 232px; height: calc(100dvh - 65px); box-shadow: 12px 0 30px #12243b25; }.menu-open .sidebar { display: flex; }.menu-toggle { display: inline-flex; padding: 6px; min-height: 32px; }.topbar { min-height: 65px; }.split, .two-col { grid-template-columns: 1fr; }.workflow a, .workflow-last { padding: 12px; }.workflow { margin-top: 18px; }.topbar-location { gap: 10px; } }
@media (max-width: 600px) { main { padding: 24px 16px 48px; }.topbar { padding: 12px 16px; }.topbar-location > span { display: none; }.topbar-location strong { font-size: 11px; }.kind-switch button { min-width: 40px; padding: 5px 7px; font-size: 11px; }.page-head { align-items: flex-start; flex-direction: column; gap: 14px; }h1 { font-size: 23px; }.metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }.metric-value { font-size: 28px; }.metric-label { font-size: 11px; }.metric-label .icon { width: 16px; height: 16px; flex-basis: 16px; }.metric-detail { font-size: 9px; }.filter-tabs { gap: 18px; }.filter-tabs button { font-size: 11px; }.filter-tabs button span { margin-left: 4px; }.list-panel-head { padding: 0 14px; }.list-toolbar { padding: 16px 14px 12px; gap: 12px; }.search-field { min-width: 100%; }.list-caption { padding: 0 14px 12px; }.list-caption > span:last-child { display: none; }.case-list { padding: 0 12px; }.case-card { padding: 16px; }.case-head { flex-direction: column; gap: 12px; }.case-next { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; text-align: left; width: 100%; }.case-next .note-muted { margin: 0 0 0 auto; }.next-caption { margin: 0; }.case-body { flex-direction: column; }.case-drop { width: 100%; justify-content: flex-start; }.case-new-inner { flex-wrap: wrap; }.case-new-inner .btn { margin: 0; }.case-new-inner > .icon { display: none; }.case-new-inner > div { flex: 1 1 100%; }.todo-grid, .import-guide { grid-template-columns: 1fr; }.workflow { margin: 16px 16px 0; }.card { padding: 16px; }.mail-field { grid-template-columns: 1fr auto; }.mail-label { grid-column: 1 / -1; }.modal { margin: 20px 12px; max-height: calc(100dvh - 40px); padding: 20px; }.login-card { padding: 28px; }.field { flex-wrap: wrap; }.info-grid { grid-template-columns: 1fr; } }
@media print { .sidebar, .topbar, .workflow, .btn, .link-btn, .case-drop, .case-new, #toast { display: none !important; }.layout { display: block; }main { padding: 0; max-width: none; }body { background: white; }.table-wrap { overflow: visible; }.card, .case-card { break-inside: avoid; }.metrics { grid-template-columns: repeat(4, 1fr); } }

.detail-toolbar { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin: 24px 0 12px; }
.detail-toolbar h2 { margin: 0 0 5px; }.detail-toolbar p { margin: 0; }.detail-toolbar .search-field { flex: 0 1 320px; margin-left: auto; }
.dropzone:focus-within { outline: 3px solid #4d8ef0; outline-offset: 3px; background: var(--primary-soft); }
.case-title, .case-project, .vendor-name { overflow-wrap: anywhere; }
@media (max-width: 600px) { .detail-toolbar .search-field { flex: 1 1 100%; }.case-head > div { max-width: 100%; }.next-link { white-space: normal; text-align: left; } }
