/* ═══════════════════════════════════════════════════════════════════
   JEDCO · HANSA Assets — Investment Planning
   Exact measurements from pixel analysis of original app
   Sidebar: 228px | Header: 60px | Nav bg: #f8f9fa | Blue: #228be6
   ═══════════════════════════════════════════════════════════════════ */

/* ── Mantine tokens ─────────────────────────────────────────────────── */
:root {
  --blue:      #228be6;
  --blue-lt:   rgba(34,139,230,.1);
  --blue-hv:   rgba(34,139,230,.12);
  --blue-txt:  #228be6;
  --blue-0:    #e7f5ff;
  --blue-7:    #1c7ed6;
  --blue-8:    #1971c2;
  --gray-0:    #f8f9fa;   /* sidebar background */
  --gray-1:    #f1f3f5;
  --gray-2:    #e9ecef;
  --gray-3:    #dee2e6;
  --gray-4:    #ced4da;
  --gray-5:    #adb5bd;
  --gray-6:    #868e96;
  --gray-7:    #495057;
  --gray-8:    #343a40;
  --gray-9:    #212529;
  --white:     #ffffff;
  --font:      -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --mono:      ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
  --r-sm:      4px;
  --r-md:      8px;
  --shd-xs:    0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.1);
  --shd-md:    0 4px 16px rgba(0,0,0,.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100vh; overflow: hidden; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  background: var(--white);
  color: var(--gray-9);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: var(--font); cursor: pointer; border: 0; padding: 0; background: none; }

/* ══ APP SHELL ════════════════════════════════════════════════════════ */
.shell {
  display: grid;
  grid-template-columns: 228px 1fr;
  grid-template-rows: 60px 1fr;
  height: 100vh;
  overflow: hidden;
}

/* ══ HEADER — white, 60px ════════════════════════════════════════════ */
.hdr {
  grid-column: 1 / -1;
  grid-row: 1;
  background: var(--white);
  border-bottom: 1px solid var(--gray-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
  flex-shrink: 0;
}

.hdr-left { display: flex; align-items: center; gap: 10px; }
.hdr-icon { width: 24px; height: 24px; object-fit: contain; }
.hdr-title { font-size: 18px; font-weight: 700; color: var(--gray-9); letter-spacing: -.3px; }

.hdr-right { display: flex; align-items: center; gap: 12px; }
.logo-jedco { height: 26px; width: auto; object-fit: contain; }
.logo-thc   { height: 20px; width: auto; object-fit: contain; }
.hdr-sep    { width: 1px; height: 20px; background: var(--gray-3); }

.hdr-av {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gray-5); color: var(--white);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* ══ SIDEBAR ═════════════════════════════════════════════════════════ */
/* CRITICAL: sidebar nav area background is #f8f9fa, not white */
.nav {
  grid-column: 1;
  grid-row: 2;
  background: var(--gray-0);   /* #f8f9fa — KEY DIFFERENCE from our version */
  border-right: 1px solid var(--gray-2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.nav-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-3) transparent;
}

/* ── User block — white bg, compact ─────────────────────────────────── */
.nav-user {
  background: var(--white);
  padding: 10px 12px 10px;
  border-bottom: 1px solid var(--gray-2);
}

.nav-user-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.nav-av {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gray-5); color: var(--white);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.nav-uname { font-size: 13px; font-weight: 600; color: var(--gray-9); }

.nav-badge {
  font-size: 10px; font-weight: 700;
  padding: 1px 5px; border-radius: 3px;
  background: #fa5252; color: var(--white);
}

.nav-email { font-size: 11px; color: var(--gray-6); margin-bottom: 7px; }

.nav-btn {
  display: block; width: 100%;
  padding: 5px 10px; border-radius: var(--r-sm);
  font-size: 12px; font-weight: 500; text-align: center;
  margin-bottom: 4px;
}
.nav-btn-outline { border: 1px solid var(--gray-3); color: var(--gray-8); background: var(--white); }
.nav-btn-outline:hover { background: var(--gray-0); }
.nav-btn-filled  { background: var(--blue); color: var(--white); border: 0; }
.nav-btn-filled:hover { background: var(--blue-7); }

/* ── Nav items ───────────────────────────────────────────────────────
   The nav items sit on the gray #f8f9fa background.
   On hover/active they show a WHITE background (the contrast).
   Active text is blue (#228be6).
   ──────────────────────────────────────────────────────────────────── */

/* Top-level item with icon */
.ni {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 16px;
  font-size: 13.5px;
  color: var(--gray-9);
  cursor: pointer;
  user-select: none;
  background: transparent;
  text-align: left;
  text-decoration: none;
  line-height: 1.2;
}
.ni:hover { background: var(--white); }
.ni[data-active] {
  color: var(--blue-txt);
  background: var(--white);
  font-weight: 500;
}

/* Icon */
.ni-ic {
  width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--gray-6);
  opacity: .85;
}
.ni[data-active] .ni-ic { color: var(--blue-txt); opacity: 1; }

/* Label */
.ni-lbl { flex: 1; }

/* Chevron */
.ni-chv {
  width: 14px; height: 14px;
  color: var(--gray-5);
  flex-shrink: 0;
  transition: transform 200ms;
}
.ni-grp.open > .ni > .ni-chv { transform: rotate(180deg); }
.ni-grp.open > .ni { color: var(--blue-txt); font-weight: 500; }
.ni-grp.open > .ni .ni-ic { color: var(--blue-txt); }
.ni-grp.open > .ni .ni-chv { color: var(--blue-txt); }

/* Children */
.ni-kids { display: none; }
.ni-grp.open > .ni-kids { display: block; }

/* Child item — no icon, extra indent */
.ni-child {
  display: block;
  width: 100%;
  padding: 7px 16px 7px 42px;
  font-size: 13.5px;
  color: var(--gray-7);
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  border: 0;
  text-align: left;
  line-height: 1.2;
}
.ni-child:hover { background: var(--white); color: var(--gray-9); }
.ni-child[data-active] {
  background: var(--white);
  color: var(--blue-txt);
  font-weight: 500;
}

/* PRO badge */
.badge-pro {
  font-size: 9px; font-weight: 700;
  padding: 1px 4px; border-radius: 3px;
  background: #e8590c; color: var(--white);
  margin-left: 4px;
}

/* ── Sidebar footer ──────────────────────────────────────────────────── */
.nav-footer { border-top: 1px solid var(--gray-2); background: var(--gray-0); }

.theme-row { display: flex; gap: 4px; padding: 7px 12px 4px; }
.theme-btn {
  flex: 1; padding: 4px; font-size: 11.5px;
  color: var(--gray-7); border: 1px solid var(--gray-3);
  border-radius: var(--r-sm); background: var(--white);
  font-family: var(--font);
}
.theme-btn:hover { background: var(--gray-0); }

.conn-row {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 12px 5px;
  font-size: 12px; font-weight: 600; color: var(--blue);
}
.conn-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue); flex-shrink: 0;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.4} }
.conn-sub { font-weight: 400; font-size: 11px; color: var(--gray-6); }

.refresh-btn {
  display: block; width: calc(100% - 24px);
  margin: 4px 12px 8px; padding: 8px;
  background: var(--blue); color: var(--white);
  border: 0; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600;
  font-family: var(--font); cursor: pointer; text-align: center;
}
.refresh-btn:hover { background: var(--blue-7); }

/* ══ MAIN ════════════════════════════════════════════════════════════ */
.main {
  grid-column: 2;
  grid-row: 2;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--gray-0);
}

.pg { padding: 16px 20px; }

/* Page header */
.pg-hdr {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; gap: 12px; flex-wrap: wrap;
}
.pg-title { font-size: 24px; font-weight: 700; color: var(--gray-9); letter-spacing: -.4px; }
.pg-hdr-r { display: flex; align-items: center; gap: 8px; }

/* Badges */
.bdg {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.bdg-blue  { background: var(--blue-0); color: #1864ab; }
.bdg-gray  { background: var(--gray-1); color: var(--gray-7); }
.bdg-dot   { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }

/* Loading */
.load-st { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 60px; color: var(--gray-6); font-size: 14px; }
.spin { width: 18px; height: 18px; border: 2px solid var(--gray-2); border-top-color: var(--blue); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── KPI cards ───────────────────────────────────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 16px; }
.kpi {
  background: var(--white); border: 1px solid var(--gray-2);
  border-radius: var(--r-md); border-top: 3px solid var(--blue);
  padding: 14px 16px; box-shadow: var(--shd-xs);
}
.kpi.t0 { border-top-color: #12b886; }
.kpi.t1 { border-top-color: var(--blue); }
.kpi.t2 { border-top-color: #f59f00; }
.kpi.t3 { border-top-color: #7950f2; }
.kpi-lbl { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--gray-6); margin-bottom: 7px; }
.kpi-val { font-size: 26px; font-weight: 700; color: var(--gray-9); line-height: 1; }
.kpi-val sup { font-size: 12px; font-weight: 400; color: var(--gray-6); }
.kpi-sub { font-size: 11px; color: var(--gray-5); margin-top: 4px; }

/* ── Warning ─────────────────────────────────────────────────────────── */
.warn {
  display: flex; gap: 8px; align-items: flex-start;
  background: #fff9db; border: 1px solid #ffe066; border-radius: var(--r-sm);
  padding: 9px 13px; margin-bottom: 14px;
  font-size: 12.5px; color: #5c3d00; line-height: 1.5;
}

/* ── Card shell ──────────────────────────────────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--gray-2);
  border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shd-xs); margin-bottom: 14px;
}
.card-hdr {
  padding: 11px 16px; border-bottom: 1px solid var(--gray-1);
  display: flex; align-items: center; justify-content: space-between;
}
.card-hdr-dk { background: #17375e; }
.card-hdr-dk .ctitle { color: var(--white); }
.card-hdr-dk .csub   { color: rgba(255,255,255,.45); }
.ctitle { font-size: 12px; font-weight: 700; color: var(--gray-9); text-transform: uppercase; letter-spacing: .06em; }
.csub   { font-size: 11px; color: var(--gray-6); margin-top: 2px; }

/* ── Two-col ─────────────────────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 420px; gap: 14px; margin-bottom: 14px; }
@media(max-width:1300px){ .two-col { grid-template-columns: 1fr 360px; } }
@media(max-width:1100px){ .two-col { grid-template-columns: 1fr; } }

/* ── Chart ───────────────────────────────────────────────────────────── */
.chart-pad { padding: 12px 16px 14px; }
.chart-box { position: relative; height: 280px; }
.leg-row   { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0 16px 12px; }
.leg-it    { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--gray-7); cursor: pointer; }
.leg-dot   { width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0; }

/* ── WPS panel ───────────────────────────────────────────────────────── */
.wps-hdr {
  display: grid; grid-template-columns: 52px 82px 80px 1fr;
  background: var(--gray-0); border-bottom: 1px solid var(--gray-2);
  padding: 5px 0;
}
.wps-row {
  display: grid; grid-template-columns: 52px 82px 80px 1fr;
  border-bottom: 1px solid var(--gray-1); min-height: 42px;
}
.wps-row:last-child { border-bottom: none; }
.wc     { padding: 5px 8px; display: flex; align-items: center; font-size: 11px; }
.wc.yr  { justify-content: center; font-family: var(--mono); font-weight: 700; font-size: 12px; color: var(--white); border-right: 1px solid rgba(255,255,255,.2); }
.wc.wv  { font-family: var(--mono); font-weight: 700; color: var(--gray-9); font-size: 11px; justify-content: center; border-right: 1px solid var(--gray-1); }
.wc.bv  { font-family: var(--mono); font-weight: 600; font-size: 11px; justify-content: flex-end; border-right: 1px solid var(--gray-1); cursor: pointer; transition: background .1s; }
.wc.bv:hover { background: var(--blue-0); color: var(--blue-7) !important; }
.wc.rt  { font-size: 10.5px; color: var(--gray-7); line-height: 1.4; }
.wch    { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-5); padding: 0 8px; display: flex; align-items: center; }
.wch.c  { justify-content: center; }
.wch.r  { justify-content: flex-end; }

/* ── Summary table ───────────────────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; }
table.aip { width: 100%; border-collapse: collapse; font-size: 12px; }
table.aip thead th {
  background: #17375e; color: var(--white);
  padding: 8px 12px; text-align: left;
  font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap; position: sticky; top: 0; z-index: 5;
}
table.aip thead th.r { text-align: right; }
table.aip td { padding: 6px 12px; vertical-align: middle; }
table.aip td.m { font-family: var(--mono); font-size: 11px; text-align: right; white-space: nowrap; }

/* Row levels */
table.aip tr.l0 td { background: #edf2ff; font-weight: 700; color: #1864ab; border-bottom: 1px solid #c5d0e4; cursor: pointer; }
table.aip tr.l0:hover td { background: #e0e9ff; }
table.aip tr.l1 td { background: var(--gray-0); font-weight: 600; color: var(--gray-8); border-bottom: 1px solid var(--gray-2); cursor: pointer; }
table.aip tr.l1:hover td { background: var(--blue-0); }
table.aip tr.l2 td { background: var(--white); border-bottom: 1px solid var(--gray-1); cursor: pointer; }
table.aip tr.l2:hover td { background: var(--gray-0); }
table.aip tr.l3 td { background: var(--white); border-bottom: 1px solid var(--gray-1); color: var(--gray-7); cursor: pointer; }
table.aip tr.l3:hover td { background: var(--gray-0); }
table.aip tr.l4 td { background: var(--white); border-bottom: 1px solid #fafafa; color: var(--gray-6); }
table.aip tr.l4:hover td { background: var(--gray-0); }
table.aip tr.tot td { background: #17375e; color: var(--white); font-weight: 700; }

/* Expand button */
.xb { background: none; border: none; cursor: pointer; font-size: 9px; color: var(--gray-4); padding: 0 3px 0 0; transition: transform .18s; display: inline-block; vertical-align: middle; }
.xb.o { transform: rotate(90deg); }

/* SG badge */
.sg { display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 3px; font-size: 9.5px; font-weight: 700; white-space: nowrap; }

/* Clickable sum */
.cs { cursor: pointer; border-radius: 3px; transition: background .1s; display: inline-block; padding: 1px 3px; margin: -1px -3px; }
.cs:hover { background: var(--blue-0); color: var(--blue-7) !important; }

/* Facility link */
.fac-lnk { color: var(--gray-8); font-size: 12px; }
.fac-lnk:hover { color: var(--blue); text-decoration: underline; }
.fac-arr { color: var(--blue); font-size: 10px; margin-right: 2px; }

/* ── Facilities grid ─────────────────────────────────────────────────── */
.filter-bar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.fl-lbl     { font-size: 12px; font-weight: 600; color: var(--gray-6); }
.chip  { padding: 4px 12px; border-radius: 20px; border: 1px solid var(--gray-3); background: var(--white); font-size: 12px; cursor: pointer; color: var(--gray-7); font-family: var(--font); transition: all .1s; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.on    { background: #17375e; color: var(--white); border-color: #17375e; font-weight: 600; }
.srch  { padding: 5px 12px; border-radius: 20px; border: 1px solid var(--gray-3); font-size: 12px; outline: none; background: var(--white); min-width: 180px; font-family: var(--font); color: var(--gray-9); }
.srch:focus { border-color: var(--blue); }
.fac-grid  { display: grid; grid-template-columns: repeat(auto-fill,minmax(270px,1fr)); gap: 14px; }
.fac-card  { background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--r-md); padding: 12px; cursor: pointer; transition: all .15s; box-shadow: var(--shd-xs); }
.fac-card:hover { border-color: var(--blue); box-shadow: var(--shd-md); transform: translateY(-1px); }
.fac-top   { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
.fac-nm    { font-size: 12px; font-weight: 600; color: var(--gray-9); line-height: 1.4; flex: 1; }
.fac-ext   { color: var(--blue); font-size: 14px; flex-shrink: 0; }
.cat-tag   { font-size: 9.5px; font-weight: 600; padding: 2px 6px; border-radius: 3px; background: var(--blue-0); color: #1864ab; margin-bottom: 8px; display: inline-block; }
.fac-sts   { display: flex; gap: 16px; margin-bottom: 8px; }
.fac-sv    { font-size: 13px; font-weight: 700; color: var(--gray-9); cursor: pointer; }
.fac-sv:hover { color: var(--blue); text-decoration: underline; }
.fac-sl    { font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-5); margin-top: 1px; }
.fac-bar   { height: 3px; background: var(--gray-2); border-radius: 2px; overflow: hidden; }
.fac-bar-f { height: 100%; border-radius: 2px; background: var(--blue); }

/* ── Category hero ───────────────────────────────────────────────────── */
.cat-hero { background: #17375e; border-radius: var(--r-md); padding: 18px 22px; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
.cat-hero-t { font-size: 20px; font-weight: 700; color: var(--white); }
.cat-hero-s { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 3px; }
.cat-hero-v { font-size: 20px; font-weight: 700; color: #38d9a9; cursor: pointer; }
.cat-hero-v:hover { text-decoration: underline; }
.cat-hero-l { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 2px; }
.bar-w { display: flex; align-items: center; gap: 8px; }
.bar-bg { flex: 1; height: 4px; background: var(--gray-2); border-radius: 2px; overflow: hidden; }
.bar-f  { height: 100%; border-radius: 2px; }
.bar-p  { font-family: var(--mono); font-size: 10px; color: var(--gray-5); width: 36px; text-align: right; }

/* ══ DRILL OVERLAY ════════════════════════════════════════════════════ */
.drill { display: none; position: fixed; inset: 0; z-index: 400; background: var(--gray-0); flex-direction: column; }
.drill.open { display: flex; }
.drill-bar {
  height: 52px; background: #17375e;
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.d-back {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.12); border: none;
  padding: 5px 10px; border-radius: var(--r-sm);
  color: var(--white); font-size: 13px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  font-family: var(--font); transition: background .1s;
}
.d-back:hover { background: rgba(255,255,255,.2); }
.d-center { flex: 1; min-width: 0; }
.d-title { font-size: 15px; font-weight: 700; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-meta  { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 1px; }
.d-srch {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px; padding: 5px 14px;
  font-size: 13px; color: var(--white); font-family: var(--font);
  outline: none; width: 200px;
}
.d-srch::placeholder { color: rgba(255,255,255,.4); }
.d-srch:focus { border-color: #38d9a9; }
.d-body { flex: 1; overflow: auto; }
.d-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.d-tbl thead th { background: var(--gray-1); color: var(--gray-8); padding: 8px 12px; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; cursor: pointer; user-select: none; border-bottom: 2px solid var(--gray-3); position: sticky; top: 0; z-index: 5; }
.d-tbl thead th:hover { background: var(--gray-2); }
.d-tbl tbody tr { border-bottom: 1px solid var(--gray-1); }
.d-tbl tbody tr:hover td { background: var(--blue-0); }
.d-tbl tbody td { padding: 7px 12px; vertical-align: middle; }
.d-tbl tfoot td { padding: 7px 12px; background: var(--gray-1); border-top: 2px solid var(--gray-2); font-size: 11px; color: var(--gray-7); }
.a-lnk { color: var(--gray-9); font-weight: 500; font-size: 12px; display: inline-flex; align-items: center; gap: 3px; text-decoration: none; max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-lnk:hover { color: var(--blue); }
.a-ext { font-size: 9px; color: var(--blue); opacity: 0; flex-shrink: 0; }
.a-lnk:hover .a-ext { opacity: 1; }
.f-lnk { font-size: 11px; color: var(--gray-6); max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; text-decoration: none; }
.f-lnk:hover { color: var(--blue); text-decoration: underline; }
.c-sm  { font-size: 11px; color: var(--gray-6); max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-num { font-family: var(--mono); font-size: 11px; text-align: right; white-space: nowrap; }

/* ── DACO logo ─────────────────────────────────────────────────────────── */
.logo-daco { height: 28px; width: auto; object-fit: contain; }

/* ── Airport Switcher ──────────────────────────────────────────────────── */
.airport-switcher {
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--gray-2);
  background: var(--white);
}
.switcher-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gray-5);
  margin-bottom: 6px;
}
.switcher-btns {
  display: flex;
  gap: 6px;
}
.switcher-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7px 4px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--gray-3);
  background: var(--white);
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font);
}
.switcher-btn:hover {
  border-color: var(--blue);
  background: var(--blue-0);
}
.switcher-btn.active {
  border-color: var(--blue);
  background: var(--blue);
}
.sw-code {
  font-size: 13px;
  font-weight: 800;
  color: var(--gray-8);
  letter-spacing: .5px;
  line-height: 1;
}
.switcher-btn.active .sw-code { color: var(--white); }
.sw-name {
  font-size: 9px;
  color: var(--gray-6);
  margin-top: 2px;
  white-space: nowrap;
}
.switcher-btn.active .sw-name { color: rgba(255,255,255,.75); }
