/* Lemcon PM Tracker - app.css
   Token block copied whole from Lemcon Web Handbook 01-Foundations.
   KEEP EVERY TOKEN NAME. Renaming a token breaks every borrowed snippet. */

:root {
  --navy:      #10233f;
  --navy-2:    #1b3a68;
  --accent:    #2e8fe0;
  --ink:       #16202e;
  --muted:     #66748a;
  --line:      #e2e7ef;
  --bg:        #f4f6fa;
  --card:      #ffffff;
  --radius:    14px;
  --shadow:    0 1px 2px rgba(16,35,63,.06), 0 8px 24px rgba(16,35,63,.06);
  --shadow-lg: 0 12px 40px rgba(16,35,63,.16);
  --t7:        #2e75b6;   /* first accent. On this site: EV charging */
  --t8:        #bf8f00;   /* second accent. On this site: default card left edge */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- top bar ---------- */

.topbar {
  background: linear-gradient(100deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 62px;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 6px 20px rgba(16,35,63,.18);
}
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand .name { font-size: 15.5px; font-weight: 700; letter-spacing: .2px; }
.brand .strap { font-size: 11px; opacity: .7; }

.nav {
  display: flex; gap: 2px; margin-left: 8px;
  min-width: 0; flex: 0 1 auto;
  overflow-x: auto; scrollbar-width: thin;
}
.nav a {
  color: rgba(255,255,255,.78);
  padding: 8px 11px; border-radius: 9px;
  font-size: 13px; font-weight: 500;
  flex: none; white-space: nowrap;
}
.nav a:hover { background: rgba(255,255,255,.10); color: #fff; text-decoration: none; }
.nav a.on    { background: rgba(255,255,255,.16); color: #fff; }

.spacer { margin-left: auto; }

.who { font-size: 12.5px; text-align: right; line-height: 1.25; }
.who .role { font-size: 11px; opacity: .7; }

/* Navigation takes a full row of its own below 1499px.
   Handbook 02-Page-Shell: a nav that scrolls sideways hides its last link
   with nothing to say it is there. */
@media (max-width: 1499px) {
  .topbar { flex-wrap: wrap; height: auto; padding: 9px 16px 7px; row-gap: 5px; }
  .nav { order: 3; flex: 0 0 100%; width: 100%; margin-left: 0; }
}
@media (max-width: 700px) {
  .topbar { padding: 8px 12px 6px; }
  .nav a { padding: 7px 9px; }
}

/* ---------- page frame ---------- */

.wrap { max-width: 1360px; margin: 0 auto; padding: 22px 22px 60px; }
@media (max-width: 700px) { .wrap { padding: 14px 14px 60px; } }

.page-head {
  display: flex; align-items: flex-end; gap: 16px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.page-head h1 { font-size: 22px; letter-spacing: -.3px; font-weight: 600; }
.page-head p { color: var(--muted); font-size: 13px; }

/* ---------- cards ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--t8);
}
.card h2 {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .8px; color: var(--muted);
  padding: 16px 18px 0;
}
.card .body { padding: 16px 18px 18px; }

/* The signature pairing: a small uppercase muted label above a plain value. */
.field { margin-bottom: 12px; }
.field .label {
  font-size: 11.5px; font-weight: 400; text-transform: uppercase;
  letter-spacing: .7px; color: var(--muted);
}
.field .value { font-size: 14.5px; }
.field .value.num { font-variant-numeric: tabular-nums; }

/* ---------- status chips: four meanings, and only meanings carry colour ---------- */

.chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.chip.open { background: #D9D9D9; color: #595959; }
.chip.work { background: #FFC000; color: #3d2c00; }
.chip.done { background: #00B050; color: #ffffff; }
.chip.na   { background: #808080; color: #ffffff; }

/* ---------- escalation bands. Amber, then red once ignored past a threshold.
   The colour change is the escalation. No extra wording is needed. ---------- */

.band {
  border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 16px;
  font-size: 13.5px;
  background: #fff8e6; border: 1px solid #f0d089; color: #6b4e05;
}
.band.overdue { background: #fdeeea; border-color: #eab5ad; color: #8f1c18; }

/* ---------- tables ---------- */

table.data { width: 100%; border-collapse: collapse; }
table.data th {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .6px; color: var(--muted);
  text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line);
}
table.data td { font-size: 13px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.data td.num { font-variant-numeric: tabular-nums; text-align: right; }
table.data tr:hover td { background: #f8fafd; }
