:root {
  color-scheme: light;
  --bg: #f4f7f6;
  --surface: #ffffff;
  --surface-soft: #f9fbfa;
  --ink: #17231f;
  --muted: #61706b;
  --line: #d7e0dd;
  --line-strong: #aebdb8;
  --teal: #137c72;
  --teal-soft: #d9efeb;
  --red: #b94d3f;
  --red-soft: #f7ddd8;
  --amber: #a36f10;
  --amber-soft: #f8e8c7;
  --green: #377c43;
  --green-soft: #dff1e2;
  --blue: #315f8f;
  --blue-soft: #dbe8f5;
  --radius: 8px;
  --shadow: 0 14px 34px rgba(23, 35, 31, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 247, 246, 0.97)),
    repeating-linear-gradient(90deg, rgba(23, 35, 31, 0.035) 0 1px, transparent 1px 84px);
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  width: min(1760px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 18px 0 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 0 14px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(1.65rem, 2.5vw, 2.65rem);
  line-height: 1.08;
}

h2 {
  margin-bottom: 4px;
  font-size: 1.04rem;
}

.meta-line {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 980px;
}

.status-pill,
.nav-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
  text-decoration: none;
}

.nav-pill {
  border-color: var(--line-strong);
  color: var(--ink);
  font-weight: 850;
}

.status-pill.accent {
  border-color: #9bcfc7;
  background: var(--teal-soft);
  color: #0e625a;
}

.nav-pill:hover {
  border-color: #9bcfc7;
  color: #0e625a;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 6px 0 14px;
}

.kpi {
  min-height: 108px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.kpi strong {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.kpi span {
  display: block;
  font-size: 1.85rem;
  font-weight: 870;
  line-height: 1;
}

.kpi small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.controls {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(180px, 230px) minmax(170px, 220px);
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
}

.search-box,
.select-wrap {
  display: grid;
  gap: 6px;
}

.search-box span,
.select-wrap span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.search-box input,
.select-wrap select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.search-box input {
  padding: 0 12px;
}

.select-wrap select {
  padding: 0 34px 0 10px;
}

.summary-grid,
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.85fr);
  gap: 14px;
  margin-bottom: 14px;
}

.panel,
.table-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(249, 251, 250, 0.95);
}

.panel-head.compact {
  min-height: 64px;
}

.package-board,
.stage-board,
.attention-list,
.vendor-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.package-card,
.attention-item,
.vendor-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.package-title,
.attention-title,
.vendor-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.package-title strong,
.attention-title strong,
.vendor-title strong {
  font-size: 0.94rem;
  line-height: 1.25;
}

.package-meta,
.attention-meta,
.vendor-meta {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.bar-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
}

.track {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7efec;
}

.fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  border-radius: inherit;
  background: var(--teal);
}

.fill.green {
  background: var(--green);
}

.fill.amber {
  background: var(--amber);
}

.fill.red {
  background: var(--red);
}

.stage-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stage-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.stage-card strong {
  display: block;
  margin-bottom: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

.chip.complete {
  background: var(--green-soft);
  color: var(--green);
}

.chip.progress {
  background: var(--blue-soft);
  color: var(--blue);
}

.chip.behind,
.chip.pending {
  background: var(--amber-soft);
  color: var(--amber);
}

.chip.critical {
  background: var(--red-soft);
  color: var(--red);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot.green {
  background: var(--green);
}

.dot.amber {
  background: var(--amber);
}

.dot.red {
  background: var(--red);
}

.table-scroll {
  max-height: calc(100vh - 430px);
  min-height: 430px;
  overflow: auto;
}

table {
  width: 100%;
  min-width: 1480px;
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #e6efec;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

td {
  background: rgba(255, 255, 255, 0.98);
  font-size: 0.86rem;
}

tr:nth-child(even) td {
  background: #f9fbfa;
}

.item-cell {
  width: 280px;
  font-weight: 820;
  line-height: 1.25;
}

.vendor-cell {
  width: 220px;
  white-space: pre-line;
}

.update-cell {
  width: 300px;
  line-height: 1.32;
  white-space: pre-line;
}

.metric-cell {
  min-width: 92px;
  font-weight: 830;
}

.delivery-cell {
  width: 170px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.small-muted {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
}

.empty {
  padding: 18px;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .summary-grid,
  .detail-grid,
  .controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100vw - 18px, 760px);
    padding-top: 10px;
  }

  .topbar {
    display: grid;
  }

  .status-stack {
    justify-content: flex-start;
  }

  .kpi-grid,
  .stage-board {
    grid-template-columns: 1fr;
  }
}
/* Tuah brand theme layer */
:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --surface-strong: #ffffff;
  --ink: #1c242c;
  --muted: #5e6a76;
  --line: #dce3ea;
  --line-strong: #aeb8c3;
  --teal: #f15b22;
  --teal-deep: #c74412;
  --teal-soft: #ffe5d6;
  --coral: #f15b22;
  --coral-soft: #ffe5d6;
  --amber: #f15b22;
  --amber-soft: #fff0e7;
  --blue: #264a80;
  --blue-soft: #e2ebf7;
  --green: #2f7a4f;
  --green-soft: #e1f1e8;
  --red: #c8442e;
  --red-soft: #fde4de;
  --charcoal: #1c242c;
  --shadow: 0 18px 42px rgba(28, 36, 44, 0.11);
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 246, 248, 0.98)),
    repeating-linear-gradient(90deg, rgba(38, 74, 128, 0.035) 0 1px, transparent 1px 86px);
}

.topbar {
  border-bottom: 4px solid var(--teal);
}

.eyebrow {
  color: var(--teal);
  letter-spacing: 0.02em;
}

h1,
h2,
h3 {
  color: var(--ink);
}

.quick-nav a,
button,
.action-button,
.open-button,
.full-toggle {
  border-color: var(--line-strong);
  color: var(--ink);
}

.quick-nav a:hover,
.quick-nav a[aria-current="page"],
button:hover,
.action-button:hover,
.open-button:hover,
.full-toggle:hover {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--ink);
}

.panel,
.kpi-card,
.control-panel,
.stat-card,
.metric-card,
.money-focus,
.progress-hero,
.curve-hero,
.countdown-card,
.manhours-card,
.timeline-card,
.vessel-card {
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.panel-head,
th {
  background: linear-gradient(90deg, rgba(255, 229, 214, 0.82), rgba(249, 250, 251, 0.96));
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(241, 91, 34, 0.28);
  border-color: var(--teal);
}

.status-chip.critical,
.status-pill.state-rejected,
.variance.bad,
.variance-pill.bad {
  background: var(--red-soft);
  color: var(--red);
}

/* ════════════════════════════════════════
   UNIFIED LAYOUT OVERRIDES (20260524)
   ════════════════════════════════════════ */
:root {
  --bg: #f0f4f8;
  --surface: #ffffff;
  --surface-soft: #f7f9fb;
  --surface-strong: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --ink: #1a202c;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --teal: #f15b22;
  --teal-deep: #c74412;
  --teal-soft: #fff1eb;
  --coral: #f15b22;
  --coral-soft: #fff1eb;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --green: #16a34a;
  --green-soft: #f0fdf4;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --charcoal: #1e293b;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 6px 16px rgba(0,0,0,0.04);
}
html, body { background: var(--bg); color: var(--ink); }
.app-shell {
  display: grid !important;
  grid-template-columns: 250px minmax(0, 1fr);
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
}
.main-content .topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 28px;
  background: var(--surface-glass);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.main-content .topbar h1 { font-size: 1.2rem; margin-bottom: 0; }
.main-content main {
  padding: 24px 28px 40px;
  display: flex; flex-direction: column; gap: 20px;
  width: auto;
  max-width: none;
}
.quick-nav, .nav-pill, .status-stack { display: none !important; }

@media (max-width: 1024px) {
  .app-shell { grid-template-columns: 1fr !important; }
  .main-content main { padding: 18px 16px 32px; }
  .main-content .topbar { padding: 12px 16px; }
}

/* ── PTR mobile responsive ── */
@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .controls { grid-template-columns: 1fr; }
  .summary-grid, .detail-grid { grid-template-columns: 1fr; }
  .panel-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .package-board, .stage-board { grid-template-columns: 1fr; }
  .table-scroll { overflow-x: auto; }
  .table-scroll table { font-size: 0.75rem; }
}
@media (max-width: 640px) {
  .kpi-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════
   PTR MODERN POLISH (20260524-modern)
   Top-notch management view.
   ════════════════════════════════════════ */

/* ── KPI cards ── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: all 200ms ease;
}
.kpi:hover {
  border-color: rgba(249, 115, 22, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.kpi strong {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
  text-transform: uppercase;
}
.kpi span {
  color: #f97316;
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  font-size: 1.7rem;
}
.kpi small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

/* ── Filter controls ── */
.controls {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.search-box span,
.select-wrap span,
label span {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  text-transform: uppercase;
}
.search-box input,
.select-wrap select,
input, select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--ink);
  color-scheme: dark;
  border-radius: 8px;
  transition: all 200ms ease;
}
select option {
  background: #151d2e;
  color: #e5edf7;
}
select option:checked {
  background: #24324b;
  color: #ffffff;
}
.search-box input:focus,
.select-wrap select:focus,
input:focus, select:focus {
  outline: 2px solid rgba(249, 115, 22, 0.3);
  border-color: rgba(249, 115, 22, 0.5);
}
input::placeholder { color: rgba(255, 255, 255, 0.35); }

/* ── Panels ── */
.summary-grid,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 14px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.panel-head {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--line);
  padding: 16px 20px;
}
.panel-head.compact { padding: 12px 16px; }
.panel-head h2 {
  color: var(--ink);
  font-weight: 800;
}
.panel-head .eyebrow { color: #fb923c; }
.panel-head .meta-line { color: var(--muted); }

/* ── Package board ── */
.package-board {
  padding: 16px 20px;
  display: grid;
  gap: 10px;
}
.package-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  transition: all 200ms ease;
}
.package-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(249, 115, 22, 0.3);
  transform: translateY(-1px);
}
.package-title {
  color: var(--ink);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.005em;
  margin-bottom: 4px;
}
.package-meta {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
}

/* ── Stage board ── */
.stage-board {
  padding: 16px 20px;
  display: grid;
  gap: 10px;
}
.stage-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}

/* ── Bar row (progress in stage cards) ── */
.bar-row {
  display: grid;
  grid-template-columns: minmax(96px, 132px) minmax(0, 1fr) 76px;
  gap: 10px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--ink);
}
.bar-row b { color: var(--ink); font-weight: 700; }
.bar-row > span:first-child { color: var(--muted); font-weight: 760; }
.bar-row > span:last-child {
  color: #fb923c;
  font-family: "JetBrains Mono", monospace;
  font-weight: 850;
  text-align: right;
  white-space: nowrap;
}

.track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  overflow: hidden;
  height: 8px;
  width: 100%;
}
.fill {
  height: 100%;
  background: linear-gradient(90deg, #f97316, #ea580c);
  border-radius: 999px;
  transition: width 400ms ease;
}
.fill.green { background: linear-gradient(90deg, #10b981, #059669); }
.fill.amber { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.fill.red { background: linear-gradient(90deg, #ef4444, #dc2626); }
.fill.blue { background: linear-gradient(90deg, #38bdf8, #0ea5e9); }
.fill.slate { background: linear-gradient(90deg, #94a3b8, #64748b); }

/* ── Attention items ── */
.attention-list {
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}
.attention-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-left: 4px solid #fb923c;
  border-radius: 10px;
  padding: 12px 14px;
  transition: all 200ms ease;
}
.attention-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(249, 115, 22, 0.3);
  transform: translateY(-1px);
}
.attention-item.critical {
  border-left-color: #ef4444;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.08), rgba(21, 29, 46, 0.4) 60%);
}
.attention-item.behind,
.attention-item.warn {
  border-left-color: #fbbf24;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.06), rgba(21, 29, 46, 0.4) 60%);
}
.attention-item.complete,
.attention-item.done {
  border-left-color: #10b981;
}
.attention-title {
  color: var(--ink);
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 4px;
}
.attention-meta {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

/* ── Vendor items ── */
.vendor-list {
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}
.vendor-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: all 200ms ease;
}
.vendor-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(56, 189, 248, 0.3);
}
.vendor-title {
  color: var(--ink);
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 4px;
}
.vendor-meta {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

/* ── Status chips/pills in tables ── */
.chip,
.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.chip.critical,
.chip.red,
.status-chip.critical {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}
.chip.behind,
.chip.warn,
.chip.amber,
.status-chip.behind {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.25);
}
.chip.progress,
.chip.blue,
.status-chip.progress {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.25);
}
.chip.complete,
.chip.done,
.chip.green,
.status-chip.complete {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.25);
}
.chip.slate,
.chip.neutral {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.3);
}

/* ── PTR Table ── */
.table-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.table-scroll {
  background: var(--surface);
  overflow-x: auto;
}
.table-scroll table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.82rem;
}
.table-scroll th {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  padding: 12px 14px;
  position: sticky;
  top: 0;
  z-index: 2;
}
.table-scroll td {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  padding: 11px 14px;
  vertical-align: middle;
}
.table-scroll tbody tr:nth-child(even) td {
  background: var(--surface-soft);
}
.table-scroll tbody tr:hover td {
  background: rgba(249, 115, 22, 0.06);
}
.delivery-cell { font-family: "JetBrains Mono", monospace; font-size: 0.8rem; color: var(--ink); }
.small-muted { color: var(--muted); font-size: 0.76rem; }
.empty,
.empty-state {
  color: var(--muted);
  text-align: center;
  padding: 24px;
  font-size: 0.84rem;
}

/* ── Legend ── */
.legend {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.dot.green { background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.15); }
.dot.amber { background: #fbbf24; box-shadow: 0 0 0 3px rgba(251,191,36,0.15); }
.dot.red    { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.15); }
.dot.blue   { background: #38bdf8; box-shadow: 0 0 0 3px rgba(56,189,248,0.15); }

/* ── Mobile responsive ── */
@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-grid, .detail-grid, .controls { grid-template-columns: 1fr; }
  .panel-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .table-scroll table { font-size: 0.75rem; }
}
@media (max-width: 640px) {
  .kpi-grid { grid-template-columns: 1fr; }
}
