/**
 * Shell operativo claro — mismo lenguaje visual que Equipos y carga / operations_cost_dashboard.
 * Activar con body.rum-ops-page
 */
:root {
  --rum-font: "Baloo 2", system-ui, sans-serif;
  --bg: #f1f5f9;
  --bg-page: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 48%, #eef2f7 100%);
  --card: #ffffff;
  --card-soft: #f8fafc;
  --card-mute: #eef4fb;
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 1px 0 rgba(15, 23, 42, 0.06), 0 4px 16px rgba(2, 6, 23, 0.06);
  --r-tight: 4px;
  --r-panel: 8px;
  --text: #0f172a;
  --muted: #64748b;
  --rum: #2a6db0;
  --rum-2: #4fa3ff;
  --accent: #f3d2b2;
  --accent-2: #eebf95;
  --accent-text: #7a431c;
  --accent-border: rgba(229, 146, 79, 0.58);
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
}

body.rum-ops-page {
  margin: 0;
  font-family: var(--rum-font);
  background: var(--bg-page);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body.rum-ops-page .world,
body.rum-ops-page .stars-container,
body.rum-ops-page .satellite {
  display: none !important;
}

body.rum-ops-page .page {
  max-width: 1680px;
  margin: 0 auto;
  padding: 12px clamp(12px, 1.5vw, 24px) 60px;
}

body.rum-ops-page .rum-ops-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0 12px;
  flex-wrap: wrap;
}

body.rum-ops-page .rum-ops-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-tight);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-text);
  background: var(--accent);
  border: 1px solid var(--accent-border);
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

body.rum-ops-page .rum-ops-back-btn:hover {
  background: var(--accent-2);
  transform: translateX(-2px);
}

body.rum-ops-page .rum-ops-badge-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: var(--r-tight);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #eef4fb;
  color: var(--rum);
  border: 1px solid rgba(42, 109, 176, 0.16);
}

body.rum-ops-page .rum-ops-badge-role::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e5924f;
}

body.rum-ops-page .rum-ops-topbar-title {
  flex: 1;
  min-width: 0;
}

body.rum-ops-page .rum-ops-topbar-title h1 {
  margin: 0;
  font-family: var(--rum-font);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--text);
}

body.rum-ops-page .rum-ops-topbar-title .rum-ops-proj-name {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}

body.rum-ops-page .rum-ops-topbar-title .rum-ops-proj-name::before {
  content: "◆";
  font-size: 7px;
  color: var(--accent-text);
}

body.rum-ops-page .rum-ops-topbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

body.rum-ops-page .rum-ops-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: var(--r-tight);
  border: 1px solid var(--accent-border);
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--rum-font);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

body.rum-ops-page .rum-ops-btn:hover {
  background: var(--accent-2);
}

body.rum-ops-page .rum-ops-btn--ghost {
  background: #eef4fb;
  border-color: rgba(42, 109, 176, 0.16);
  color: var(--rum);
}

body.rum-ops-page .rum-ops-btn--ghost:hover {
  background: #dbeafe;
}

body.rum-ops-page .rum-ops-btn--secondary {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}

body.rum-ops-page .rum-ops-btn--secondary:hover {
  background: var(--card-soft);
}

body.rum-ops-page .rum-ops-btn--sm {
  padding: 5px 10px;
  font-size: 12px;
  min-height: 28px;
}

body.rum-ops-page .rum-ops-workflow-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 18px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
}

body.rum-ops-page .rum-ops-wf-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.rum-ops-page .rum-ops-wf-step {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: opacity 0.15s;
  color: inherit;
}

body.rum-ops-page .rum-ops-wf-step:hover {
  opacity: 0.75;
}

body.rum-ops-page .rum-ops-wf-num {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.07);
  color: #64748b;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
}

body.rum-ops-page .rum-ops-wf-num--active {
  background: var(--accent);
  color: var(--accent-text);
  border-color: rgba(246, 168, 104, 0.7);
  box-shadow: 0 0 10px rgba(246, 168, 104, 0.35);
}

body.rum-ops-page .rum-ops-wf-label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

body.rum-ops-page .rum-ops-wf-step--active .rum-ops-wf-label {
  color: #c46a4a;
  font-weight: 700;
}

body.rum-ops-page .rum-ops-wf-arrow {
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1;
}

body.rum-ops-page .rum-ops-workspace {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

body.rum-ops-page .rum-ops-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

body.rum-ops-page .rum-ops-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  padding: 10px 12px;
  box-shadow: var(--shadow);
  color: var(--text);
}

body.rum-ops-page .rum-ops-stat-card .rum-ops-sc-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 3px;
}

body.rum-ops-page .rum-ops-stat-card .rum-ops-sc-val {
  display: block;
  font-family: var(--rum-font);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

body.rum-ops-page .rum-ops-stat-card .rum-ops-sc-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

@media (max-width: 640px) {
  body.rum-ops-page .rum-ops-workflow-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
