:root { --ink: #1c1c1c; --muted: #5f5f5f; --line: #dcdcdc; --brand: #1f4e79; --warn: #a33; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, Segoe UI, sans-serif; color: var(--ink); background: #fafafa; }
header { background: #fff; border-bottom: 1px solid var(--line); }
.wrap { max-width: 1280px; margin: 0 auto; padding: .75rem 1rem; }
nav { display: flex; gap: 1.2rem; align-items: baseline; flex-wrap: wrap; }
nav .brand { font-weight: 600; color: var(--brand); text-decoration: none; margin-right: auto; }
nav a { color: var(--ink); text-decoration: none; }
nav .who { color: var(--muted); font-size: .9rem; }
h1 { font-size: 1.4rem; margin: .2rem 0; color: var(--brand); }
h2 { font-size: 1.05rem; margin: 0; }
.toolbar { display: flex; gap: 1rem; align-items: baseline; flex-wrap: wrap; margin: .5rem 0 1rem; }
.toolbar .links { margin-left: auto; display: flex; gap: 1rem; }
.mini { font-size: .85rem; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1rem; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .9rem 1rem; }
.tile.wide { grid-column: 1 / -1; }
.tile-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.src { font-size: .75rem; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 0 .5rem; }
.asof { font-size: .85rem; color: var(--ink); margin: .2rem 0 .6rem; }
.muted { color: var(--muted); } .small { font-size: .85rem; }
.unavailable { color: var(--warn); font-weight: 600; margin: .3rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
td, th { padding: .25rem .4rem; border-bottom: 1px solid #eee; text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 700; border-top: 2px solid var(--line); }
.big { font-size: 2rem; margin: .2rem 0; }
/* the tail-excluded figure: clearly secondary to the all-lines number above it */
.excl { margin: .55rem 0 0; padding-top: .5rem; border-top: 1px solid var(--line); line-height: 1.5; }
.excl strong { font-size: 1.15rem; }
.notes { font-size: .8rem; color: var(--muted); padding-left: 1.1rem; margin: .5rem 0 0; }
.scroll { overflow-x: auto; }
.cta { display: inline-block; background: var(--brand); color: #fff; padding: .45rem .8rem; border-radius: 4px; text-decoration: none; }
.collections tr.customer td { font-weight: 700; background: #f2f5f9; }
.collections tr.job td { font-weight: 600; padding-left: 1.2rem; }
.collections tr.subtotal td { font-style: italic; }
.collections tr.customer-total td { font-weight: 700; }
.login { max-width: 360px; margin: 3rem auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1.2rem; }
.login label { display: block; margin: .6rem 0; } .login input { width: 100%; padding: .4rem; }
.login button { margin-top: .6rem; padding: .5rem 1rem; }
.error { color: var(--warn); }
footer { color: var(--muted); font-size: .8rem; border-top: 1px solid var(--line); margin-top: 2rem; }
details summary { cursor: pointer; }
