/* ══════════════════════════════════════════════════════════════════════
   ops.css — natproces-siden (/ops, Ops.razor, ops-*). Read-only flade over
   Orchestratorens kontrolplan. Samme visuelle grundlag som admin.css/guidance.css.
   ══════════════════════════════════════════════════════════════════════ */

.ops-page      { padding: 1.5rem 2rem; max-width: 1500px; font-family: 'Segoe UI', sans-serif; }
.ops-header    { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 1rem; }
.ops-title     { font-size: 1.35rem; font-weight: 600; color: #1a1a2e; margin: 0; }
.ops-subtitle  { font-size: 13px; color: #6b7280; }

.ops-panel     { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; }
.ops-panel-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.ops-panel-head h2 { font-size: 14px; font-weight: 700; color: #1f2937; margin: 0; }
.ops-meta      { font-size: 12px; color: #6b7280; }
.ops-spacer    { flex: 1; }
.ops-mt        { margin-top: 16px; }
.ops-two-col   { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 1000px) { .ops-two-col { grid-template-columns: 1fr; } }

.ops-loading, .ops-empty { padding: 1.2rem; text-align: center; color: #9ca3af; font-size: 13px; }
.ops-status    { padding: 8px 12px; border-radius: 6px; font-size: 13px; }
.ops-status-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.ops-muted     { color: #9ca3af; }
.ops-bad       { color: #b91c1c; font-weight: 600; }
.ops-link      { border: 0; background: none; color: #4338ca; font-size: 12px; cursor: pointer; padding: 4px 0; }
.ops-link:hover { text-decoration: underline; }

/* ── Piller ─────────────────────────────────────────────────────────── */
.ops-pill      { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ops-pill-ok   { background: #dcfce7; color: #166534; }
.ops-pill-warn { background: #fef3c7; color: #92400e; }
.ops-pill-bad  { background: #fee2e2; color: #991b1b; }
.ops-pill-anom { background: #ffedd5; color: #9a3412; }

/* ── Tabeller ───────────────────────────────────────────────────────── */
.ops-table     { width: 100%; border-collapse: collapse; font-size: 13px; }
.ops-table thead { background: #f9fafb; }
.ops-table th  { text-align: left; font-weight: 600; color: #6b7280; font-size: 11.5px; padding: 7px 8px; border-bottom: 1px solid #e5e7eb; }
.ops-table td  { padding: 6px 8px; border-bottom: 1px solid #f3f4f6; vertical-align: top; }
.ops-table tbody tr:last-child td { border-bottom: 0; }
.ops-agent     { font-family: Consolas, monospace; font-size: 12.5px; }
.ops-file      { font-family: Consolas, monospace; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
.ops-err       { color: #7f1d1d; font-size: 12.5px; }
.ops-exit      { margin-left: 6px; font-size: 11px; color: #6b7280; }
.ops-clickable { cursor: pointer; }
.ops-clickable:hover td { background: #fafafa; }

.ops-runs tbody tr.ops-run { cursor: pointer; }
.ops-runs tbody tr.ops-run:hover td { background: #fafafa; }
.ops-run-problem td:first-child { border-left: 3px solid #dc2626; }
.ops-run-open td { background: #f5f3ff; }
.ops-tail-row td { background: #fafafa; padding: 8px 12px 12px; }
.ops-tail      { margin: 0; max-height: 360px; overflow: auto; font-size: 11.5px; line-height: 1.35; background: #111827; color: #e5e7eb; padding: 10px 12px; border-radius: 6px; white-space: pre-wrap; }

/* ── Status ─────────────────────────────────────────────────────────── */
.ops-st        { display: inline-block; padding: 2px 8px; border-radius: 5px; font-size: 11.5px; font-weight: 600; }
.ops-st-success   { background: #dcfce7; color: #166534; }
.ops-st-skipped   { background: #f3f4f6; color: #6b7280; }
.ops-st-transient { background: #fef3c7; color: #92400e; }
.ops-st-permanent { background: #fee2e2; color: #991b1b; }
.ops-st-nowork    { background: #e0f2fe; color: #075985; }
.ops-st-running   { background: #dbeafe; color: #1e40af; }

.ops-verdict   { display: inline-block; padding: 2px 7px; border-radius: 5px; font-size: 11.5px; font-weight: 600; }
.ops-verdict-slow   { background: #ffedd5; color: #9a3412; }
.ops-verdict-fast   { background: #ede9fe; color: #5b21b6; }
.ops-verdict-normal { background: #f3f4f6; color: #6b7280; font-weight: 500; }

/* ── Historik-gitter ────────────────────────────────────────────────── */
.ops-grid-wrap { overflow-x: auto; }
.ops-grid      { border-collapse: separate; border-spacing: 2px; font-size: 11px; }
.ops-grid th   { font-weight: 500; color: #6b7280; text-align: center; padding: 0; cursor: pointer; }
.ops-grid th.ops-grid-agent { text-align: right; padding-right: 8px; font-family: Consolas, monospace; font-size: 12px; cursor: default; white-space: nowrap; }
.ops-grid th.ops-day-weekend .ops-day { color: #c4c8cf; }
.ops-grid th.ops-day-sel .ops-day { color: #4338ca; font-weight: 700; }
.ops-day       { display: inline-block; width: 22px; }
.ops-grid td   { padding: 0; }
.ops-cell      { display: inline-block; width: 22px; height: 18px; border-radius: 3px; background: #f3f4f6; box-sizing: border-box; vertical-align: middle; cursor: pointer; }
.ops-cell-success   { background: #86efac; }
.ops-cell-skipped   { background: #e5e7eb; }
.ops-cell-transient { background: #fcd34d; }
.ops-cell-permanent { background: #f87171; }
.ops-cell-nowork    { background: #bae6fd; }
.ops-cell-running   { background: #93c5fd; }
.ops-cell-missing   { background: repeating-linear-gradient(45deg, #fee2e2 0 3px, #fff 3px 6px); }
.ops-cell-nobatch   { background: repeating-linear-gradient(45deg, #fecaca 0 3px, #fff 3px 6px); }
.ops-cell-weekend   { background: #fafafa; border: 1px dashed #e5e7eb; cursor: default; }
.ops-cell-today     { background: #fff; border: 1px dashed #c7d2fe; cursor: default; }
.ops-cell-anom      { outline: 2px solid #f97316; outline-offset: -2px; }
.ops-cell-sel       { box-shadow: 0 0 0 2px #4338ca; }
.ops-legend    { display: inline-flex; gap: 10px; align-items: center; font-size: 11.5px; color: #6b7280; }
.ops-legend i  { width: 14px; height: 12px; margin-right: 3px; cursor: default; }

/* ── Friskhedskort ─────────────────────────────────────────────────── */
.ops-cards     { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.ops-card      { border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px; background: #f9fafb; }
.ops-card-stale { border-color: #fca5a5; background: #fef2f2; }
.ops-card-label { font-size: 12px; font-weight: 600; color: #374151; }
.ops-card-value { font-size: 15px; font-weight: 700; color: #111827; margin: 3px 0 1px; }
.ops-card-age  { font-size: 11.5px; color: #6b7280; }
.ops-card-note { font-size: 11px; color: #9ca3af; margin-top: 4px; }
