/* Carwash Numbers pilot — mobile-first, dark navy/teal identity
   borrowed from the prototype dashboard. */
:root {
  --bg: #071820;
  --surface: #0b2737;
  --surface2: #0e2f42;
  --ink: #f2f8f8;
  --muted: #a8bac1;
  --line: #254550;
  --aqua: #2dd4bf;
  --aqua-soft: #123f45;
  --cash: #72d0ad;
  --warn: #fbbf24;
  --warn-soft: #4a2a21;
  --bad: #f87171;
  --ok: #34d399;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, system-ui, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.45;
}
.topbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px;
  padding: 10px 14px; background: var(--surface);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10;
}
.brand { color: var(--aqua); font-weight: 700; text-decoration: none; font-size: 18px; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.topbar nav a { color: var(--ink); text-decoration: none; padding: 6px 2px; }
.topbar nav a:hover { color: var(--aqua); }
.who { color: var(--muted); font-size: 13px; }
main { max-width: 860px; margin: 0 auto; padding: 14px 14px 90px; }
h1 { font-size: 22px; margin: 6px 0 12px; }
h2 { font-size: 18px; margin: 20px 0 8px; color: var(--aqua); }
h3 { font-size: 15px; margin: 14px 0 6px; }
a { color: var(--aqua); }
.muted { color: var(--muted); font-size: 14px; }

.flash { padding: 10px 12px; border-radius: 8px; margin: 8px 0; }
.flash.ok { background: #123f2e; border: 1px solid var(--ok); }
.flash.error { background: #4a2020; border: 1px solid var(--bad); }

/* asset tabs (top) + pillar tabs (bottom) */
.asset-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 4px 0 2px; }
.asset-tabs a {
  flex: 1 0 auto; text-align: center; padding: 10px 8px; border-radius: 10px 10px 0 0;
  background: var(--surface); color: var(--muted); text-decoration: none;
  border: 1px solid var(--line); border-bottom: none; font-weight: 600; white-space: nowrap;
}
.asset-tabs a.active { background: var(--surface2); color: var(--aqua); }
.pillar-tabs {
  position: fixed; bottom: 0; left: 0; right: 0; display: flex;
  background: var(--surface); border-top: 1px solid var(--line); z-index: 10;
}
.pillar-tabs a {
  flex: 1; text-align: center; padding: 14px 4px; color: var(--muted);
  text-decoration: none; font-weight: 600; font-size: 14px;
}
.pillar-tabs a.active { color: var(--aqua); border-top: 3px solid var(--aqua); padding-top: 11px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 10px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.card .label { font-size: 12px; color: var(--muted); }
.card .value { font-size: 24px; font-weight: 700; margin: 2px 0; }
.card .sub { font-size: 12px; color: var(--muted); }

table.data { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14px; }
table.data th, table.data td { padding: 8px 6px; text-align: right; border-bottom: 1px solid var(--line); }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; }
table.data tr:last-child td { border-bottom: none; }

.alert { padding: 10px 12px; border-radius: 8px; margin: 8px 0; font-size: 14px; }
.alert.warn { background: var(--warn-soft); border: 1px solid var(--warn); }
.alert.ok { background: #123f2e; border: 1px solid var(--ok); }

.chart { width: 100%; height: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.chart-label { fill: var(--muted); }

form.stack { display: grid; gap: 12px; max-width: 520px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px; font-size: 16px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface2); color: var(--ink);
}
.field .hint { font-size: 13px; color: var(--muted); margin-top: 4px; min-height: 18px; }
.field .hint.bad { color: var(--warn); font-weight: 600; }
.field .hint.good { color: var(--ok); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
button, .btn {
  display: inline-block; padding: 12px 18px; font-size: 16px; font-weight: 700;
  border: none; border-radius: 10px; background: var(--aqua); color: #06231f;
  cursor: pointer; text-decoration: none; text-align: center;
}
button:hover, .btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }

.login-wrap { max-width: 380px; margin: 8vh auto 0; }
.login-wrap h1 { text-align: center; }

.list { list-style: none; padding: 0; margin: 8px 0; }
.list li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.section { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 14px 0; }

@media print {
  .topbar, .pillar-tabs, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .card, table.data, .section, .chart { break-inside: avoid; }
  .card, .section { border-color: #ccc; }
  table.data th, table.data td { border-color: #ddd; color: #000; }
  h2, a { color: #000; }
  .muted, .card .label, .card .sub { color: #555; }
}
