/* Supplier portal: a formal, light business-finance document. Navy brand, calm spacing, big numbers. */
:root {
  --bg: #f6f7f9; --surface: #fff; --sunken: #f1f3f6; --ink: #0e1116; --ink-2: #3a4150; --muted: #6b7280;
  --line: #e4e7ec; --line-2: #d4d9e1; --brand: #1b3a5c; --brand-soft: #eaf0f6;
  --good: #137a4b; --good-soft: #e7f5ee; --bad: #b42318; --bad-soft: #fdecea; --warn: #8a5a00; --warn-soft: #fdf3dc;
  --sans: -apple-system, "SF Pro Text", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 12px; --shadow: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--brand); text-decoration: none; }
button { font: inherit; cursor: pointer; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); position: relative; }
.brand .mark::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path d='M9 16h14M16 9v14' stroke='white' stroke-width='3' stroke-linecap='round'/></svg>") center / 60% no-repeat; }
.brand b { display: block; font-size: 15px; line-height: 1.2; }
.brand span { display: block; color: var(--muted); font-size: 12.5px; }
.tabs { display: flex; gap: 4px; margin-left: 12px; }
.tabs a { padding: 8px 14px; border-radius: 99px; color: var(--ink-2); font-weight: 500; }
.tabs a:hover { background: var(--sunken); }
.tabs a.on { background: var(--brand); color: #fff; }
.lang { margin-left: auto; display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.lang button { border: 0; background: none; padding: 6px 10px; color: var(--muted); }
.lang button.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
main { flex: 1; padding: 32px 0 48px; display: flex; flex-direction: column; gap: 28px; }
.foot { color: var(--muted); font-size: 13px; padding: 18px 0 28px; }

.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.hero .label { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.hero .big { font-size: 46px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.hero .big.credit { color: var(--good); }
.hero .sub { color: var(--ink-2); margin-top: 8px; }
.facts { display: flex; gap: 36px; flex-wrap: wrap; }
.fact b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fact span { color: var(--muted); font-size: 13px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.card-head h2 { margin: 0; font-size: 16px; font-weight: 650; }
.card-head .hint { color: var(--muted); font-size: 13.5px; }
.card-body { padding: 20px 22px; }
.spacer { flex: 1; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 22px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 14px; }
th { color: var(--muted); font-weight: 600; font-size: 12.5px; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
tfoot td { font-weight: 650; background: var(--sunken); border-top: 1px solid var(--line); }
.mono { font-family: var(--mono); font-size: 13px; }
.muted { color: var(--muted); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; }
.pill.ok { background: var(--good-soft); color: var(--good); }
.pill.review { background: var(--warn-soft); color: var(--warn); }
.pill.disputed { background: var(--bad-soft); color: var(--bad); }
.pill.credit { background: var(--brand-soft); color: var(--brand); }
.neg { color: var(--good); }
.btn { border: 1px solid var(--line-2); background: var(--surface); padding: 9px 16px; border-radius: 9px; font-weight: 500; }
.btn:hover { background: var(--sunken); }
.btn.primary { background: var(--brand); color: #fff; border-color: transparent; }
.btn.primary:disabled { opacity: .5; cursor: default; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.empty { color: var(--muted); padding: 36px; text-align: center; }
.note { color: var(--muted); font-size: 13.5px; line-height: 1.5; }

/* add charges */
.entry { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .entry { grid-template-columns: 1fr; } }
textarea.paste { width: 100%; min-height: 180px; font: 13.5px/1.5 var(--mono); padding: 12px; border: 1px solid var(--line-2); border-radius: 9px; resize: vertical; }
.grid { width: 100%; }
.grid input, .grid select { font: inherit; padding: 7px 9px; border: 1px solid var(--line-2); border-radius: 7px; width: 100%; background: #fff; }
.grid td { padding: 6px 8px; }
.grid th { padding: 8px 8px; }
.grid .rm { border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; }
.row-bad td { background: var(--bad-soft); }
.row-warn td { background: var(--warn-soft); }
.flag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 99px; margin-right: 4px; background: var(--warn-soft); color: var(--warn); }
.flag.bad { background: var(--bad-soft); color: var(--bad); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar input[type=date] { font: inherit; padding: 7px 9px; border: 1px solid var(--line-2); border-radius: 7px; }
.msg { padding: 12px 16px; border-radius: 9px; background: var(--good-soft); color: var(--good); font-weight: 500; }
.msg.bad { background: var(--bad-soft); color: var(--bad); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--sunken); border-radius: 10px; padding: 14px 16px; font-size: 14px; }
.step b { display: block; margin-bottom: 4px; }
.months { display: flex; gap: 8px; flex-wrap: wrap; }
.months a { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--ink-2); font-size: 14px; }
.months a.on { background: var(--brand); color: #fff; border-color: transparent; }
