:root {
  --ink: #16202b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f6f8fa;
  --card: #fff;
  --brand: #F26522;
  --brand-dark: #d1541a;
  --ok: #15803d;
  --ok-bg: #f0fdf4;
  --warn: #b45309;
  --bad: #b91c1c;
  --bad-bg: #fef2f2;
  --assured: #FF8A3D;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 15px/1.5 "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--brand); }

header.top {
  background: var(--brand);
  color: #fff;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 22px;
  height: 52px;
}
header.top .brand { font-weight: 700; letter-spacing: .3px; }
header.top a { color: #ffe0cd; text-decoration: none; font-size: 14px; }
header.top a:hover, header.top a.on { color: #fff; }
header.top .right { margin-left: auto; font-size: 13px; color: #ffd4bb; }

main { padding: 22px; max-width: 1240px; margin: 0 auto; }

h1 { font-size: 21px; margin: 0 0 4px; }
h2 { font-size: 15px; margin: 26px 0 10px; color: var(--muted);
     text-transform: uppercase; letter-spacing: .6px; }
.sub { color: var(--muted); margin: 0 0 18px; font-size: 14px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.grid { display: grid; gap: 14px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.stat { background: var(--card); border: 1px solid var(--line);
        border-radius: 8px; padding: 14px 16px; }
.stat .k { font-size: 12px; color: var(--muted); text-transform: uppercase;
           letter-spacing: .5px; }
.stat .v { font-size: 24px; font-weight: 700; margin-top: 4px; }
.stat .n { font-size: 12px; color: var(--muted); margin-top: 2px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11px; text-transform: uppercase;
     letter-spacing: .5px; color: var(--muted); font-weight: 600;
     padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:hover { background: #fffaf7; }

input, select, button {
  font: inherit; color: inherit;
  border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px;
  background: #fff;
}
input:focus, select:focus { outline: 2px solid #ffc7a3; border-color: var(--brand); }
input.num { text-align: right; font-variant-numeric: tabular-nums; }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px;
        text-transform: uppercase; letter-spacing: .4px; }

button.primary, a.primary {
  background: var(--brand); color: #fff; border-color: var(--brand);
  font-weight: 600; cursor: pointer; text-decoration: none;
  display: inline-block; padding: 9px 16px; border-radius: 6px;
}
button.primary:hover { background: var(--brand-dark); }
button.primary:disabled { background: #cbd5e1; border-color: #cbd5e1; cursor: not-allowed; }
button.ghost { cursor: pointer; }
button.ghost:hover { background: #f1f5f9; }

.pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px;
        border-radius: 20px; letter-spacing: .3px; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.warn { background: #fffbeb; color: var(--warn); }
.pill.assured { background: #fff1e6; color: #c2410c; }

.msg { padding: 10px 13px; border-radius: 6px; font-size: 14px; margin-bottom: 14px; }
.msg.bad { background: var(--bad-bg); color: var(--bad); border: 1px solid #fecaca; }
.msg.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #bbf7d0; }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.right { text-align: right; }
.row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }

/* landed cost is network-only; tint it so nobody screenshots it by accident */
.netonly { background: #fffdf5; }

.login-wrap { max-width: 340px; margin: 12vh auto; }
.login-wrap .card { padding: 24px; }

.search-box { position: relative; }
.results { position: absolute; z-index: 20; left: 0; right: 0; top: 100%;
           background: #fff; border: 1px solid var(--line); border-radius: 6px;
           box-shadow: 0 8px 24px rgba(15,23,42,.12); max-height: 320px;
           overflow: auto; }
.results div { padding: 8px 11px; cursor: pointer; border-bottom: 1px solid #f1f5f9; }
.results div:hover, .results div.sel { background: #fff5ef; }
.results .nm { font-weight: 600; }
.results .mt { font-size: 12px; color: var(--muted); }

.msg.warn { background: #fffbeb; color: var(--warn); border: 1px solid #fde68a; }

/* tablett' lockup in the header bar */
header.top a.brand { display: flex; align-items: center; height: 100%; }
header.top a.brand img { height: 21px; display: block; }
