:root {
  --gold: #e6a523;
  --brand-red: #eb1b31;
  --brand-blue: #3c71b7;
  --navy: #2f5a90;
  --ink: #231f1e;
  --muted: #5c5652;
  --subtle: #8a8176;
  --bg: #f7f6f2;
  --paper: #eceae4;
  --surface: #fffefb;
  --line: #ddd4c4;
  --good: #1f7a72;
  --warn: #c48a14;
  --shadow: 0 0 0 1px #231f1e0f, 0 1px 2px -1px #231f1e0f, 0 2px 4px #231f1e0a;
  --font: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font-family: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
a { color: var(--brand-blue); }
.stripe { display: grid; grid-template-columns: 1fr 1fr 1fr; height: 6px; }
.stripe i:nth-child(1) { background: var(--gold); }
.stripe i:nth-child(2) { background: var(--brand-red); }
.stripe i:nth-child(3) { background: var(--brand-blue); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.login-wrap {
  min-height: calc(100dvh - 6px);
  display: flex; flex-direction: column; justify-content: center;
  max-width: 28rem; margin: 0 auto; padding: 2.5rem 1rem;
}
.brand-logo { height: 5rem; width: auto; max-width: 100%; object-fit: contain; object-position: left; margin-bottom: 2rem; }
.card { background: var(--surface); border-radius: 1rem; padding: 2rem; box-shadow: var(--shadow); }
h1 { margin: 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; color: #1e4b8b; }
.lede { margin: 0.35rem 0 0; font-size: 0.875rem; color: var(--muted); line-height: 1.45; }
label.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.lbl { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--subtle); }
input[type=text], input[type=password], input[type=number], select {
  height: 2.75rem; border: 0; border-radius: 0.4rem; background: var(--bg);
  padding: 0 0.75rem; color: var(--ink); box-shadow: 0 0 0 1px var(--line);
  outline: none; font-size: 0.9rem;
}
input:focus, select:focus { box-shadow: 0 0 0 2px var(--brand-blue); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  height: 2.75rem; padding: 0 1.1rem; border: 0; border-radius: 0.5rem;
  background: var(--brand-blue); color: #fff; font-weight: 600; font-size: 0.9rem;
}
.btn:hover { background: var(--navy); }
.btn-ghost { background: transparent; color: var(--muted); box-shadow: none; height: auto; padding: 0.4rem 0; }
.err { background: #fde8ea; color: var(--brand-red); border-radius: 0.5rem; padding: 0.7rem 0.85rem; font-size: 0.85rem; margin-bottom: 1rem; }
.notice { background: #f8efd6; color: #7a5a10; border-radius: 0.5rem; padding: 0.7rem 0.85rem; font-size: 0.85rem; margin: 1rem 0; }
header.top {
  background: var(--surface); border-bottom: 1px solid var(--line);
}
header.top .row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; flex-wrap: wrap; }
header.top img { height: 3.25rem; }
.kicker { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-blue); }
.muted { color: var(--muted); font-size: 0.8rem; }
.grid-2 { display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.dash-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 1rem;
  background: var(--surface); box-shadow: var(--shadow); text-decoration: none; color: inherit;
  min-height: 16rem;
}
.dash-card .body { padding: 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.dash-card h2 { margin: 0.35rem 0 0; font-size: 1.6rem; }
.dash-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.icon { width: 2.75rem; height: 2.75rem; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; background: var(--bg); box-shadow: 0 0 0 1px var(--line); color: var(--brand-blue); }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin: 1rem 0 1.5rem; }
@media (min-width: 700px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--surface); border-radius: 0.85rem; padding: 0.9rem 1rem; box-shadow: var(--shadow); }
.kpi .n { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.kpi .l { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--subtle); margin-top: 0.15rem; }
.panel { background: var(--surface); border-radius: 1rem; padding: 1.1rem 1.2rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.panel h3 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.bar { height: 0.5rem; background: var(--paper); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.row-line { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.875rem; margin-bottom: 0.35rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th { text-align: left; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--subtle); font-weight: 600; padding: 0.4rem 0.4rem 0.5rem; }
td { padding: 0.45rem 0.4rem; border-top: 1px solid var(--line); vertical-align: top; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0; }
.chip {
  height: 2.2rem; padding: 0 0.75rem; border: 0; border-radius: 999px;
  background: var(--paper); color: var(--ink); font-size: 0.8rem;
}
.chip.on { background: var(--brand-blue); color: #fff; }
.filters { display: grid; gap: 0.6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 800px) { .filters { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.scroll { overflow: auto; max-height: 28rem; }
footer.site { border-top: 1px solid var(--line); background: var(--surface); margin-top: 2rem; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; padding: 1rem 1.25rem; font-size: 0.75rem; color: var(--muted); }
.hidden { display: none !important; }
.tabs { display: flex; gap: 0.3rem; flex-wrap: wrap; margin: 0.75rem 0 1rem; }
.tab { height: 2.2rem; padding: 0 0.8rem; border: 0; border-radius: 0.4rem; background: transparent; color: var(--muted); font-size: 0.85rem; }
.tab.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font-weight: 600; }
