/* ====================================================================
   Triton PQC Scanner — Naval Command Center Dashboard
   ==================================================================== */

/* Self-hosted fonts — no external CDN dependency */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/cormorant-garamond-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/outfit-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
  --bg-deep: #020617;
  --bg-primary: #0a1628;
  --bg-surface: #0f1d32;
  --bg-elevated: #142440;
  --bg-hover: #1a2d4d;

  --accent: #0891b2;
  --accent-light: #22d3ee;
  --accent-muted: rgba(8, 145, 178, 0.12);

  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --safe: #34d399;
  --safe-dim: rgba(52, 211, 153, 0.12);
  --safe-border: rgba(52, 211, 153, 0.18);
  --transitional: #fbbf24;
  --transitional-dim: rgba(251, 191, 36, 0.12);
  --transitional-border: rgba(251, 191, 36, 0.18);
  --deprecated: #fb923c;
  --deprecated-dim: rgba(251, 146, 60, 0.12);
  --deprecated-border: rgba(251, 146, 60, 0.18);
  --unsafe: #f87171;
  --unsafe-dim: rgba(248, 113, 113, 0.12);
  --unsafe-border: rgba(248, 113, 113, 0.18);
  --info: var(--accent-light);
  --info-dim: var(--accent-muted);

  --border: rgba(148, 163, 184, 0.06);
  --border-light: rgba(148, 163, 184, 0.1);
  --radius: 10px;
  --radius-lg: 14px;
  --sidebar-w: 256px;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* -- Layout ---------------------------------------------------------- */

#app {
  display: flex;
  min-height: 100vh;
}

/* -- Auth mode (login / change-password) -----------------------------
 * On auth screens there's no meaningful navigation — hide the sidebar
 * and let the main content span the full width. app.js toggles
 * body.auth-mode based on the current hash route.
 */
body.auth-mode #sidebar { display: none; }
body.auth-mode #content {
  margin-left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* -- Sidebar --------------------------------------------------------- */

#sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--bg-primary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 50;
  animation: sidebarIn 0.45s var(--ease-out);
}

@keyframes sidebarIn {
  from { transform: translateX(-20px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

.logo {
  padding: 28px 24px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  filter: drop-shadow(0 0 10px rgba(8, 145, 178, 0.35));
  transition: filter 0.3s var(--ease);
}

.logo:hover .logo-img {
  filter: drop-shadow(0 0 16px rgba(8, 145, 178, 0.55));
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.logo-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.nav-section {
  padding: 14px 0;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 400;
  transition: all 0.15s var(--ease);
  border-left: 3px solid transparent;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(8, 145, 178, 0.05);
}

.nav-link.active {
  color: var(--accent-light);
  background: rgba(8, 145, 178, 0.08);
  border-left-color: var(--accent);
  font-weight: 500;
}

.nav-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.55;
  transition: opacity 0.15s var(--ease);
}

.nav-link:hover svg,
.nav-link.active svg { opacity: 1; }

.sidebar-wave {
  height: 50px;
  width: 100%;
  overflow: hidden;
  opacity: 0.06;
}

.sidebar-wave svg {
  width: 100%;
  height: 100%;
  fill: var(--accent-light);
}

/* -- Main Content ---------------------------------------------------- */

#content {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 36px 44px;
  overflow-y: auto;
  height: 100vh;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(8, 145, 178, 0.04) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-deep) 0%, #030a18 100%);
}

/* -- Page Headings --------------------------------------------------- */

h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 24px 0 14px;
}

/* -- Stat Cards ------------------------------------------------------ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s var(--ease);
  animation: cardIn 0.5s var(--ease-out) both;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(8, 145, 178, 0.08);
}

.card:hover::before { opacity: 1; }

.card:nth-child(1) { animation-delay: 0.04s; }
.card:nth-child(2) { animation-delay: 0.08s; }
.card:nth-child(3) { animation-delay: 0.12s; }
.card:nth-child(4) { animation-delay: 0.16s; }
.card:nth-child(5) { animation-delay: 0.20s; }
.card:nth-child(6) { animation-delay: 0.24s; }
.card:nth-child(7) { animation-delay: 0.28s; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card .value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.card .label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Card variants */
.card.safe { border-left: 3px solid var(--safe); }
.card.safe .value { color: var(--safe); }
.card.safe::before { background: linear-gradient(90deg, var(--safe), transparent); }

.card.transitional { border-left: 3px solid var(--transitional); }
.card.transitional .value { color: var(--transitional); }
.card.transitional::before { background: linear-gradient(90deg, var(--transitional), transparent); }

.card.deprecated { border-left: 3px solid var(--deprecated); }
.card.deprecated .value { color: var(--deprecated); }
.card.deprecated::before { background: linear-gradient(90deg, var(--deprecated), transparent); }

.card.unsafe { border-left: 3px solid var(--unsafe); }
.card.unsafe .value { color: var(--unsafe); }
.card.unsafe::before { background: linear-gradient(90deg, var(--unsafe), transparent); }

.card.info { border-left: 3px solid var(--accent); }
.card.info .value { color: var(--accent-light); }
.card.info::before { background: linear-gradient(90deg, var(--accent), transparent); }

/* -- Charts ---------------------------------------------------------- */

.charts-row {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.chart-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  flex: 1;
  min-width: 320px;
  animation: cardIn 0.5s var(--ease-out) 0.15s both;
}

.chart-box h3 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
}

/* -- Tables ---------------------------------------------------------- */

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 30px;
  animation: cardIn 0.4s var(--ease-out) 0.12s both;
}

th, td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.87rem;
}

th {
  background: var(--bg-elevated);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
}

td { color: var(--text-primary); }

tr:last-child td { border-bottom: none; }

tbody tr { transition: background 0.12s var(--ease); cursor: pointer; }
tbody tr:hover { background: rgba(8, 145, 178, 0.035); }

td a {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 500;
}

td a:hover { text-decoration: underline; }

/* Empty state */
td[colspan] {
  text-align: center;
  color: var(--text-muted);
  padding: 32px 18px;
  font-style: italic;
  cursor: default;
}

/* -- Badges ---------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-safe {
  background: var(--safe-dim);
  color: var(--safe);
  border: 1px solid var(--safe-border);
}

.badge-transitional {
  background: var(--transitional-dim);
  color: var(--transitional);
  border: 1px solid var(--transitional-border);
}

.badge-deprecated {
  background: var(--deprecated-dim);
  color: var(--deprecated);
  border: 1px solid var(--deprecated-border);
}

.badge-unsafe {
  background: var(--unsafe-dim);
  color: var(--unsafe);
  border: 1px solid var(--unsafe-border);
}

/* -- Buttons --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.87rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  line-height: 1.4;
  background: var(--accent);
  color: #fff;
}

.btn:hover {
  background: #0a9fc5;
  box-shadow: 0 0 20px rgba(8, 145, 178, 0.25);
}

.btn-outline {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  box-shadow: none;
}

/* -- View Header ----------------------------------------------------- */

.view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.view-header h2 { margin-bottom: 0; }

/* -- Download row (scan detail report buttons) ----------------------
 * Phase 5 Sprint 3 — groups the "Download report: JSON HTML Excel …"
 * buttons on the scan detail page. Flex container with a subtle
 * background so it reads as an action bar rather than inline text.
 */
.download-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
  background: rgba(8, 145, 178, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  flex-wrap: wrap;
}

.download-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-right: 6px;
}

.download-row .btn[disabled] {
  opacity: 0.5;
  cursor: wait;
}

/* -- Forms ----------------------------------------------------------- */

.form-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.form-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-row input,
.form-row select {
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  min-width: 200px;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.form-row input::placeholder {
  color: var(--text-muted);
}

.form-row input[type="number"] { min-width: 80px; }

/* -- Diff Styles ----------------------------------------------------- */

.diff-added { border-left: 3px solid var(--safe); }
.diff-removed { border-left: 3px solid var(--unsafe); }
.diff-changed { border-left: 3px solid var(--transitional); }

/* -- Direction Badge ------------------------------------------------- */

.direction-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: capitalize;
  margin-bottom: 20px;
  animation: cardIn 0.4s var(--ease-out) both;
}

.direction-badge.improving {
  background: var(--safe-dim);
  color: var(--safe);
  border: 1px solid var(--safe-border);
}

.direction-badge.declining {
  background: var(--unsafe-dim);
  color: var(--unsafe);
  border: 1px solid var(--unsafe-border);
}

.direction-badge.stable {
  background: var(--accent-muted);
  color: var(--accent-light);
  border: 1px solid rgba(8, 145, 178, 0.18);
}

/* -- Loading & Error ------------------------------------------------- */

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.loading::before {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error {
  text-align: center;
  padding: 80px 40px;
  color: var(--unsafe);
  font-size: 0.95rem;
}

/* -- Responsive ------------------------------------------------------ */

@media (max-width: 1100px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  #sidebar { width: 200px; }
  :root { --sidebar-w: 200px; }
  #content { padding: 24px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .charts-row { flex-direction: column; }
  .form-row { flex-direction: column; align-items: stretch; }
  .form-row input, .form-row select { min-width: 100%; }
}

/* -- Screen Reader Only ---------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* -- Phase 3: Auth + Forms ------------------------------------------ */

.auth-card {
  max-width: 440px;
  margin: 48px auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.auth-card h2,
.auth-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #f1f5f9;
}

.auth-card .muted {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 24px;
}

.auth-card .warn {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 6px;
  padding: 10px 14px;
  color: #fbbf24;
  font-size: 14px;
  margin-bottom: 20px;
}

.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #cbd5e1;
}

.auth-card input,
.auth-card select {
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  color: #f1f5f9;
  font-size: 14px;
  font-family: inherit;
}

.auth-card input:focus,
.auth-card select:focus {
  outline: none;
  border-color: #22d3ee;
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.2);
}

.btn-primary {
  background: #22d3ee;
  color: #0a1628;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
}

.btn-primary:hover {
  background: #06b6d4;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}

.form-error {
  color: #f87171;
  font-size: 13px;
  min-height: 18px;
}

/* Sidebar logout button */
.sidebar-footer {
  margin-top: auto;
  padding: 16px 0 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.nav-logout {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

/* Logged-in user + org card inside the sidebar footer. */
.user-info {
  padding: 10px 14px 12px;
  margin-bottom: 6px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.06);
  font-size: 12px;
  line-height: 1.4;
  word-break: break-word;
}

.user-info-org {
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 2px;
  /* Long org names wrap rather than clipping — ops frequently use
     descriptive names like "Cyber Security Malaysia - Ops". */
  overflow-wrap: anywhere;
}

.user-info-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: #94a3b8;
}

.user-info-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-info-role {
  flex: 0 0 auto;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(34, 211, 238, 0.12);
  color: #22d3ee;
}

/* ============================================================
   Analytics Phase 1 — shared styles for Inventory, Certificates,
   and Priority views.
   ============================================================ */

.nav-section-label {
  padding: 16px 14px 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.backfill-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin: 0 0 16px;
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: #22d3ee;
  font-size: 13px;
}
.backfill-banner svg {
  flex-shrink: 0;
  animation: analytics-spin 2s linear infinite;
}
@keyframes analytics-spin {
  to { transform: rotate(360deg); }
}

.analytics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.analytics-table th {
  background: rgba(148, 163, 184, 0.08);
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  color: #94a3b8;
}
.analytics-table td {
  padding: 10px 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}
.analytics-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.analytics-table tr.clickable-row:hover {
  background: rgba(148, 163, 184, 0.04);
  cursor: pointer;
}

.empty-state {
  padding: 40px 24px;
  text-align: center;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.04);
  border-radius: 8px;
  border: 1px dashed rgba(148, 163, 184, 0.1);
}

.summary-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.summary-chip {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  background: rgba(148, 163, 184, 0.08);
  color: #94a3b8;
}
.summary-chip strong { color: #e2e8f0; }
.summary-chip.critical { background: rgba(248, 113, 113, 0.15); color: #f87171; }
.summary-chip.critical strong { color: #f87171; }
.summary-chip.urgent   { background: rgba(251, 146, 60, 0.15); color: #fb923c; }
.summary-chip.urgent strong { color: #fb923c; }
.summary-chip.warning  { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.summary-chip.warning strong { color: #fbbf24; }

/* ============================================================
   Analytics Phase 2 — Executive Summary block on Overview
   ============================================================ */

.exec-summary-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 10px;
  flex-wrap: wrap;
}

.exec-readiness {
  flex: 0 0 auto;
  padding-right: 12px;
  border-right: 1px solid rgba(148, 163, 184, 0.12);
}
.exec-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}
.exec-value {
  font-size: 26px;
  font-weight: 700;
  color: #22d3ee;
  line-height: 1.1;
}

.exec-chip {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  background: rgba(148, 163, 184, 0.08);
  color: #e2e8f0;
  white-space: nowrap;
}
.exec-chip--trend-improving { background: rgba(52,211,153,0.12); color: #34d399; }
.exec-chip--trend-declining { background: rgba(248,113,113,0.12); color: #f87171; }
.exec-chip--trend-stable    { background: rgba(148,163,184,0.12); color: #94a3b8; }
.exec-chip--pass { background: rgba(52,211,153,0.12); color: #34d399; }
.exec-chip--warn { background: rgba(251,191,36,0.12); color: #fbbf24; }
.exec-chip--fail { background: rgba(248,113,113,0.12); color: #f87171; }

.exec-projection {
  flex: 1 1 auto;
  text-align: right;
  font-size: 12px;
  color: #94a3b8;
}
.exec-projection--on-track             { color: #34d399; }
.exec-projection--behind-schedule      { color: #fb923c; }
.exec-projection--regressing           { color: #f87171; }
.exec-projection--capped               { color: #f87171; }
.exec-projection--already-complete     { color: #34d399; }
.exec-projection--insufficient-history { color: #64748b; }
.exec-projection--insufficient-movement { color: #fbbf24; }

.machine-tiers {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.tier {
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
}
.tier-red    { background: rgba(248,113,113,0.18); color: #f87171; }
.tier-yellow { background: rgba(251,191,36,0.18); color: #fbbf24; }
.tier-green  { background: rgba(52,211,153,0.18); color: #34d399; }

.top-blockers-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: rgba(148, 163, 184, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 8px;
  flex-wrap: wrap;
}
.top-blockers-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  white-space: nowrap;
}
.top-blockers-list {
  display: flex;
  gap: 6px;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
}
.blocker-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  background: rgba(248, 113, 113, 0.1);
}
.blocker-score {
  font-weight: 600;
  color: #f87171;
  font-variant-numeric: tabular-nums;
}
.blocker-algo {
  color: #e2e8f0;
}
.top-blockers-more {
  color: #22d3ee;
  font-size: 11px;
  white-space: nowrap;
  text-decoration: none;
}
