:root { --ink: #1c1c1c; --muted: #666; --line: #d9d9d9; --accent: #1f4e79; --bad: #a40000; --soft: #f5f5f3; }
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.4 system-ui, "Segoe UI", sans-serif; color: var(--ink); background: #fff; }
a { color: var(--accent); }
.bar { display: flex; align-items: center; gap: 24px; padding: 10px 20px; background: var(--accent); color: #fff; }
.bar a { color: #fff; text-decoration: none; }
.bar .brand { font-weight: 600; }
.bar nav { display: flex; gap: 16px; flex: 1; }
.bar .who { display: flex; gap: 12px; align-items: center; margin: 0; }
main { padding: 20px; }
h1 { font-size: 20px; margin: 0 0 16px; }
h2 { font-size: 15px; margin: 24px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); padding: 5px 7px; border: 1px solid #aaa; border-radius: 3px; background: #fff; min-width: 0; }
input:disabled, select:disabled { background: var(--soft); color: var(--muted); }
button, .button { font: inherit; padding: 6px 14px; border: 1px solid var(--accent); border-radius: 3px; background: var(--accent); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
button.secondary, .button.secondary { background: #fff; color: var(--accent); }
button.link { background: none; border: none; color: #fff; text-decoration: underline; padding: 0; }
button.remove { background: #fff; color: var(--bad); border-color: var(--bad); padding: 3px 9px; }
.card { border: 1px solid var(--line); border-radius: 4px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.narrow { max-width: 360px; margin: 40px auto; }
.error { color: var(--bad); font-weight: 600; margin: 0; }
.notice { color: var(--muted); margin: 4px 0; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 16px; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 5px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
td:nth-child(8) { white-space: normal; min-width: 180px; }
th { font-size: 12px; color: var(--muted); background: var(--soft); position: sticky; top: 0; }
.n { text-align: right; font-variant-numeric: tabular-nums; }
tr.adjustment td { background: #fff7ec; }
.pager { display: flex; gap: 16px; align-items: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 14px; }
.grid .wide { grid-column: span 2; }
.grid .full { grid-column: 1 / -1; }
.block { border: 1px solid var(--line); border-radius: 4px; padding: 12px; margin-bottom: 10px; background: var(--soft); }
.block-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 600; }
.results { border: 1px solid var(--line); border-radius: 3px; background: #fff; max-height: 180px; overflow-y: auto; }
.results button { display: block; width: 100%; text-align: left; background: #fff; color: var(--ink); border: none; border-bottom: 1px solid var(--line); border-radius: 0; }
.results button:hover { background: var(--soft); }
.actions { display: flex; gap: 12px; align-items: center; margin-top: 20px; position: sticky; bottom: 0; background: #fff; padding: 12px 0; border-top: 1px solid var(--line); }
.totals { margin-left: auto; font-variant-numeric: tabular-nums; }
.check { flex-direction: row; align-items: center; gap: 6px; }
