Files
felhom.eu/hub/internal/web/templates/style.css
T
admin 7f11cfb36c hub v0.65.0 — PBS DR storage visibility (ep0 usage op) + Offsite tab split + dual dashboard gauges (R-5)
Makes PBS DR storage visible like the restic pool box (v0.64.0), differentiated. Scoping
correction: restic = subaccounts on the shared Hetzner Storage Box (Hetzner API); PBS DR =
the felhom-offsite PBS datastore on the ep0 endpoint VM (NO Hetzner API). Option A
(Viktor-ruled): a read-only `usage` op on the felhom-tenantsync ep0 forced command (twin of
fingerprint), polled by a new hub checker on the 15-min throttle. READ-ONLY throughout.

Phase-0 (gate PASSED): on ep0 (PBS 4.2.3), df -B1 --output=size,used,avail <datastore path>
yields bytes (39990112256/7627939840/... ~19%), read-only, existing sudo context, no admin token.

- scripts/felhom-tenantsync.sh -> v1.2.0: read-only `usage` short-circuit (df on the datastore
  path), no customer_id, no admin token, NO mutation. + a bash harness proving zero mutation.
- tenantsync.Client.Usage() + BoxUsage; unknown-op -> typed ErrUsageUnsupported (graceful).
- monitor.PBSDRBoxChecker: OffsiteBoxChecker clone over a usageReader seam; 15-min throttle,
  cached PBSBoxSnapshot, escalation-only pbsdr_box_fill on the "pbsdr-box" scope (operator only,
  no SaveEvent), recovery re-arm. Fill only. THREE states: ok / unavailable (ep0 <=v1.1.0,
  neutral no-alert) / degraded (exec failed, keep last).
- config: Alerting.PBSDRBoxFill{Warn,Crit}Percent (80/90); built with the tenantsync client,
  60s sweep, SetPBSDRBox. Hub deploy INDEPENDENT of the ep0 update (graceful degradation).
- web: /offsite splits into Restic + PBS DR hash tabs (endpoint cards under PBS DR); PBS panel;
  the single dashboard tile becomes two gauges (RESTIC pct.ratio, PBS DR pct / n/a).
- runbook offsite-endpoint.md 10: v1.2.0 update steps (no sudoers/authorized_keys change).

Tests: 10 Go + the harness; 3 red-proofs (usage mutation, escalation-only, unavailable-drives-band)
confirmed red then restored. go build/vet/test + bash -n + hub confirm gate all pass.
2026-07-17 21:13:30 +02:00

1008 lines
24 KiB
CSS

/* Felhom Hub — Dark theme */
/* Felhom Hub — design system v2 (TASK-D4). Canonical tokens:
documentation/design/design-system.md */
@font-face {
font-family: 'Plus Jakarta Sans';
font-style: normal;
font-weight: 400 800;
font-display: swap;
src: url('/static/fonts/pjs-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: 'Plus Jakarta Sans';
font-style: normal;
font-weight: 400 800;
font-display: swap;
src: url('/static/fonts/pjs-latin-ext.woff2') format('woff2');
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
font-family: 'JetBrains Mono';
font-style: normal;
font-weight: 400 500;
font-display: swap;
src: url('/static/fonts/jbm-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: 'JetBrains Mono';
font-style: normal;
font-weight: 400 500;
font-display: swap;
src: url('/static/fonts/jbm-latin-ext.woff2') format('woff2');
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
--bg-0: #0A1220; --bg-1: #0F1B2E; --bg-2: #16263F;
--line: #22344F; --line-soft: #1A2A42;
--text-1: #EDF2F9; --text-2: #94A6BF; --text-3: #5E7392;
--blue: #0083D8; --blue-bright: #2EA8F5; --blue-dim: rgba(0,131,216,.13);
--warn: #E0A93E; --warn-dim: rgba(224,169,62,.12);
--crit: #E5534B; --crit-dim: rgba(229,83,75,.12);
--radius: 2px;
--font-ui: 'Plus Jakarta Sans', -apple-system, sans-serif;
--font-data: 'JetBrains Mono', monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: var(--font-ui);
background: var(--bg-0);
color: var(--text-1);
line-height: 1.6;
min-height: 100vh;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem 1.5rem;
}
/* Header */
header {
margin-bottom: 2rem;
}
header h1 {
font-size: 1.75rem;
font-weight: 700;
color: var(--text-1);
}
.subtitle {
color: var(--text-2);
font-size: 0.9rem;
margin-top: 0.25rem;
}
.back-link {
color: var(--blue-bright);
text-decoration: none;
font-size: 0.9rem;
display: inline-block;
margin-bottom: 0.5rem;
}
.back-link:hover {
text-decoration: underline;
}
/* Dashboard table */
.dashboard-table {
width: 100%;
border-collapse: collapse;
background: var(--bg-1);
border-radius: var(--radius);
overflow: hidden;
}
.dashboard-table th {
text-align: left;
padding: 0.75rem 1rem;
background: var(--bg-1);
color: var(--text-2);
font-size: 0.8rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
border-bottom: 1px solid var(--line);
}
.dashboard-table td {
padding: 0.75rem 1rem;
border-bottom: 1px solid var(--line);
font-size: 0.9rem;
}
.dashboard-table tbody tr {
cursor: pointer;
transition: background 0.15s;
}
.dashboard-table tbody tr:hover {
background: var(--bg-2);
}
.dashboard-table tbody tr:last-child td {
border-bottom: none;
}
.customer-name {
font-weight: 600;
}
.status-dot {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
margin-right: 0.35rem;
vertical-align: baseline;
background: var(--text-3);
}
.status-dot-nominal { background: var(--blue); }
.status-dot-warn { background: var(--warn); }
.status-dot-crit { background: var(--crit); }
.status-dot-neutral { background: transparent; border: 1px solid var(--text-3); }
/* Status badges */
.status-badge {
display: inline-block;
white-space: nowrap;
padding: 0.15rem 0.5rem;
border-radius: var(--radius);
font-size: 0.75rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
}
/* Status = STATE -> tag semantics (outline + dot; design-system addendum). Keyed by the
raw status value the templates emit; exception-color: ok is blue, pending/disabled quiet. */
.status-badge { border: 1px solid var(--line); background: transparent; color: var(--text-2); }
.status-badge::before {
content: '';
display: inline-block;
width: 6px;
height: 6px;
border-radius: 50%;
margin-right: 0.35rem;
background: var(--text-3);
vertical-align: 0.05em;
}
.status-badge-ok { border-color: rgba(0,131,216,.45); color: var(--blue-bright); }
.status-badge-ok::before { background: var(--blue); }
.status-badge-warn, .status-badge-blocked, .status-badge-stale { border-color: var(--warn); color: var(--warn); background: var(--warn-dim); }
.status-badge-warn::before, .status-badge-blocked::before, .status-badge-stale::before { background: var(--warn); }
.status-badge-down, .status-badge-fail { border-color: var(--crit); color: var(--crit); background: var(--crit-dim); }
.status-badge-down::before, .status-badge-fail::before { background: var(--crit); }
.status-badge-disabled, .status-badge-pending { color: var(--text-3); }
.status-badge-disabled::before, .status-badge-pending::before { background: transparent; border: 1px solid var(--text-3); }
/* Config badges */
.config-badge {
display: inline-block;
padding: 0.15em 0.5em;
border-radius: var(--radius);
font-size: 0.75rem;
font-weight: 600;
letter-spacing: 0.03em;
}
.config-badge-managed { background: var(--blue-dim); color: var(--blue-bright); }
.config-badge-manual { background: var(--bg-2); color: var(--text-2); }
.config-badge-blocked { background: var(--crit-dim); color: var(--crit); }
/* Blocked banner */
.flash-blocked {
background: var(--crit-dim);
border: 1px solid rgba(229,83,75,.3);
color: var(--crit);
padding: 0.75rem 1rem;
border-radius: var(--radius);
margin-bottom: 1rem;
font-size: 0.9rem;
}
/* Blocked row in tables */
.row-blocked { opacity: 0.5; }
/* Cards */
.card {
background: var(--bg-1);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 1.25rem;
margin-bottom: 1rem;
}
.card h2 {
font-size: 1.1rem;
font-weight: 600;
margin-bottom: 1rem;
color: var(--text-1);
}
.card h3 {
font-size: 0.9rem;
font-weight: 600;
margin-top: 0.75rem;
margin-bottom: 0.5rem;
color: var(--text-2);
}
/* Info grid */
.info-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 0.75rem;
}
.info-item .label {
display: block;
font-size: 0.75rem;
color: var(--text-3);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.info-item .value {
font-size: 0.9rem;
color: var(--text-1);
}
/* Metrics */
.metrics-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 1rem;
margin-top: 0.75rem;
}
.metric {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.metric-label {
font-size: 0.8rem;
color: var(--text-2);
}
.metric-value {
font-size: 1.25rem;
font-weight: 700;
font-family: var(--font-data);
}
.metric-detail {
font-size: 0.8rem;
color: var(--text-3);
}
.bar {
height: 6px;
background: var(--line);
border-radius: var(--radius);
overflow: hidden;
}
.bar-fill {
height: 100%;
background: var(--blue-bright);
border-radius: var(--radius);
transition: width 0.3s ease;
}
/* Fill bands (v0.64.0, R-5) — exception color: neutral when nominal, amber ≥ warn, red ≥ crit; no green. */
.bar-fill.bar-ok { background: var(--text-3); }
.bar-fill.bar-warning { background: var(--warn); }
.bar-fill.bar-critical { background: var(--crit); }
/* Offsite dashboard gauges (v0.65.0, R-5) — two side-by-side tiles (Restic, PBS DR). */
.offsite-gauges { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.offsite-gauges .offsite-tile { margin-bottom: 0; }
/* Offsite pool dashboard tile (v0.64.0, R-5) — compact, band-colored, links to /offsite. */
.offsite-tile {
display: inline-flex; align-items: baseline; gap: 0.5rem;
padding: 0.4rem 0.8rem; margin-bottom: 1rem;
border: 1px solid var(--line); border-radius: var(--radius);
text-decoration: none; font-size: 0.85rem;
}
.offsite-tile-label { color: var(--text-3); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.03em; }
.offsite-tile-val { color: var(--text-1); font-weight: 600; }
.offsite-tile-stale { color: var(--warn); font-size: 0.72rem; }
.offsite-tile-warning { border-color: var(--warn); }
.offsite-tile-warning .offsite-tile-val { color: var(--warn); }
.offsite-tile-critical { border-color: var(--crit); }
.offsite-tile-critical .offsite-tile-val { color: var(--crit); }
/* Container table */
.container-table {
width: 100%;
border-collapse: collapse;
font-size: 0.85rem;
}
.container-table th {
text-align: left;
padding: 0.5rem 0.75rem;
color: var(--text-3);
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
border-bottom: 1px solid var(--line);
}
.container-table td {
padding: 0.4rem 0.75rem;
border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}
.container-state {
font-size: 0.8rem;
font-weight: 600;
}
.container-state-running { color: var(--blue-bright); }
.container-state-stopped, .container-state-exited { color: var(--crit); }
.container-state-unhealthy { color: var(--warn); }
/* Health */
.health-status {
font-size: 1.1rem;
font-weight: 700;
text-transform: uppercase;
}
.health-status-ok { color: var(--blue-bright); }
.health-status-warn { color: var(--warn); }
.health-status-fail { color: var(--crit); }
.issue-list, .warning-list {
list-style: none;
padding-left: 0;
}
.issue-list li::before { content: "● "; color: var(--crit); }
.warning-list li::before { content: "● "; color: var(--warn); }
.issue, .warning {
padding: 0.25rem 0;
font-size: 0.9rem;
}
/* History */
.history-table {
width: 100%;
border-collapse: collapse;
font-size: 0.85rem;
margin-top: 0.5rem;
}
.history-table th {
text-align: left;
padding: 0.4rem 0.5rem;
color: var(--text-3);
font-size: 0.75rem;
border-bottom: 1px solid var(--line);
}
.history-table td {
padding: 0.3rem 0.5rem;
border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}
details summary {
cursor: pointer;
color: var(--blue-bright);
font-size: 0.9rem;
}
/* Empty state */
.empty-state {
text-align: center;
padding: 4rem 2rem;
color: var(--text-2);
}
.empty-state .hint {
margin-top: 0.5rem;
font-size: 0.85rem;
color: var(--text-3);
}
.empty-state code {
background: var(--bg-2);
padding: 0.15rem 0.4rem;
border-radius: var(--radius);
font-family: var(--font-data);
font-size: 0.85rem;
}
/* Footer */
footer {
margin-top: 2rem;
padding-top: 1rem;
border-top: 1px solid var(--line);
text-align: center;
font-size: 0.8rem;
color: var(--text-3);
}
footer a {
color: var(--blue-bright);
text-decoration: none;
}
/* Code */
code {
font-family: var(--font-data);
font-size: 0.85em;
color: var(--blue-bright);
}
/* Navigation */
.nav-links {
display: flex;
gap: 1.5rem;
margin-top: 0.5rem;
}
.nav-link {
color: var(--text-2);
text-decoration: none;
font-size: 0.9rem;
padding-bottom: 2px;
border-bottom: 2px solid transparent;
transition: color 0.15s, border-color 0.15s;
}
.nav-link:hover {
color: var(--text-1);
}
.nav-link.active {
color: var(--blue-bright);
border-bottom-color: var(--blue-bright);
font-weight: 600;
}
/* Buttons */
.btn {
display: inline-block;
padding: 0.5rem 1rem;
background: var(--blue-bright);
color: var(--bg-0);
border: none;
border-radius: var(--radius);
font-size: 0.85rem;
font-weight: 600;
cursor: pointer;
text-decoration: none;
transition: opacity 0.15s;
}
.btn:hover { opacity: 0.85; }
.btn-outline {
background: transparent;
color: var(--text-2);
border: 1px solid var(--line);
}
.btn-outline:hover {
color: var(--text-1);
border-color: var(--text-2);
}
.btn-danger {
background: var(--crit);
color: #fff;
}
.btn-sm {
padding: 0.3rem 0.6rem;
font-size: 0.8rem;
}
/* Forms */
.config-form .form-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1rem;
}
.form-group {
display: flex;
flex-direction: column;
gap: 0.3rem;
}
.form-group label {
font-size: 0.8rem;
font-weight: 600;
color: var(--text-2);
text-transform: uppercase;
letter-spacing: 0.03em;
}
.form-group input[type="text"],
.form-group input[type="email"] {
background: var(--bg-0);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 0.5rem 0.75rem;
color: var(--text-1);
font-size: 0.9rem;
font-family: inherit;
}
.form-group input:focus {
outline: none;
border-color: var(--blue-bright);
}
.form-group input[readonly] {
opacity: 0.6;
cursor: not-allowed;
}
.form-hint {
font-size: 0.75rem;
color: var(--text-3);
}
/* Install-command generator (GL-7) */
.gen-controls {
background: var(--bg-0);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 1rem;
margin-bottom: 1rem;
}
.gen-radios {
display: flex;
gap: 1.25rem;
flex-wrap: wrap;
}
.gen-radio, .gen-check {
display: flex;
align-items: center;
gap: 0.4rem;
font-size: 0.85rem;
color: var(--text-1);
text-transform: none;
letter-spacing: normal;
font-weight: 400;
cursor: pointer;
}
.gen-radio input, .gen-check input {
accent-color: var(--blue-bright);
cursor: pointer;
}
.gen-checks {
display: flex;
flex-direction: column;
gap: 0.5rem;
margin-top: 0.85rem;
padding-top: 0.85rem;
border-top: 1px solid var(--line-soft);
}
.gen-check code, .gen-radio code { color: var(--blue-bright); font-size: 0.8rem; }
.gen-controls input[type="number"] {
background: var(--bg-1);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 0.5rem 0.75rem;
color: var(--text-1);
font-size: 0.9rem;
font-family: inherit;
}
.gen-controls input[type="number"]:focus,
.gen-controls input[type="text"]:focus { outline: none; border-color: var(--blue-bright); }
.gen-msg {
color: #E5534B;
font-size: 0.82rem;
margin: 0 0 0.75rem;
padding: 0.5rem 0.75rem;
background: rgba(229,83,75,.10);
border: 1px solid rgba(229,83,75,.35);
border-radius: var(--radius);
}
/* Credentials */
.credential-row {
margin-bottom: 0.5rem;
}
.credential-box {
display: flex;
align-items: center;
gap: 0.5rem;
background: var(--bg-0);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 0.5rem 0.75rem;
margin-top: 0.25rem;
overflow-x: auto;
}
.credential-box code {
flex: 1;
font-size: 0.8rem;
word-break: break-all;
color: var(--text-1);
}
.copy-btn {
background: transparent;
border: 1px solid var(--line);
border-radius: var(--radius);
color: var(--text-2);
cursor: pointer;
padding: 0.2rem 0.5rem;
font-size: 0.85rem;
flex-shrink: 0;
transition: color 0.15s, border-color 0.15s;
}
.copy-btn:hover {
color: var(--blue-bright);
border-color: var(--blue-bright);
}
/* Flash messages */
.flash {
padding: 0.75rem 1rem;
border-radius: var(--radius);
margin-bottom: 1rem;
font-size: 0.9rem;
}
.flash-success {
background: var(--blue-dim);
color: var(--blue-bright);
border: 1px solid rgba(74, 222, 128, 0.3);
}
.flash-error {
background: var(--crit-dim);
color: var(--crit);
border: 1px solid rgba(229,83,75,.3);
}
/* YAML Preview */
.yaml-preview {
background: var(--bg-0);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 1rem;
max-height: 500px;
overflow: auto;
}
.yaml-preview pre {
font-family: var(--font-data);
font-size: 0.8rem;
color: var(--text-2);
white-space: pre-wrap;
word-break: break-word;
margin: 0;
}
/* Muted text */
.text-muted {
color: var(--text-3);
}
/* Severity badges */
.severity-badge {
display: inline-block;
padding: 0.15em 0.5em;
border-radius: var(--radius);
font-size: 0.8em;
font-weight: 600;
line-height: 1.4;
}
.severity-error {
background: rgba(239, 68, 68, 0.15);
color: #ef4444;
}
.severity-warning {
background: rgba(245, 158, 11, 0.15);
color: #f59e0b;
}
.severity-info {
background: rgba(59, 130, 246, 0.15);
color: #3b82f6;
}
.severity-critical {
background: var(--crit-dim);
color: var(--crit);
}
.severity-ok {
background: var(--bg-2);
color: var(--text-2);
}
/* Event filter buttons */
.event-filter {
font-size: 0.8em;
padding: 0.2em 0.6em;
cursor: pointer;
}
.event-filter.active {
background: var(--blue-bright);
color: #fff;
border-color: var(--blue-bright);
}
/* Notification channel badges */
.status-badge-operator {
background: rgba(139, 92, 246, 0.15);
color: #8b5cf6;
}
.status-badge-customer {
background: rgba(59, 130, 246, 0.15);
color: #3b82f6;
}
/* Config diff table */
.diff-changed td { color: #f59e0b; }
.diff-hub_only td { color: #3b82f6; }
.diff-controller_only td { color: #fb923c; }
/* Badge styles */
.badge {
display: inline-block;
padding: 0.15rem 0.5rem;
border-radius: var(--radius);
font-size: 0.8rem;
font-weight: 600;
font-family: var(--font-data);
}
.badge-error {
background: var(--crit-dim);
color: var(--crit);
}
.badge-warn {
background: rgba(250, 204, 21, 0.2);
color: var(--warn);
}
.badge-neutral {
background: var(--bg-2);
color: var(--text-3);
}
/* v0.51.0: badge-ok was referenced by the DR-recipe rows but never defined (fell back to the
bare .badge). Blue = healthy, per the status-badge-ok convention. */
.badge-ok {
background: rgba(0, 131, 216, 0.15);
color: var(--blue-bright);
}
/* Summary cards row */
.summary-cards {
display: flex;
gap: 1rem;
margin-bottom: 1.5rem;
flex-wrap: wrap;
}
.summary-card {
flex: 1;
min-width: 160px;
background: var(--bg-1);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 1rem 1.25rem;
}
.summary-card .card-number {
font-size: 2rem;
font-weight: 700;
color: var(--text-1);
font-family: var(--font-data);
line-height: 1.1;
}
.summary-card .card-label {
font-size: 0.8rem;
color: var(--text-3);
margin-top: 0.25rem;
}
/* Chart container */
.chart-container {
position: relative;
width: 100%;
height: 280px;
margin: 1rem 0;
}
/* Period selector button group */
.period-selector {
display: flex;
gap: 0.25rem;
margin-bottom: 1rem;
}
.period-btn {
padding: 0.3rem 0.75rem;
border: 1px solid var(--line);
border-radius: var(--radius);
background: var(--bg-1);
color: var(--text-2);
font-size: 0.85rem;
text-decoration: none;
cursor: pointer;
transition: background 0.15s, color 0.15s;
}
.period-btn:hover, .period-btn.active {
background: var(--blue-bright);
color: var(--bg-0);
border-color: var(--blue-bright);
}
/* Accuracy dot */
.accuracy-dot {
display: inline-block;
width: 10px;
height: 10px;
border-radius: 50%;
margin-left: 0.25rem;
}
.accuracy-ok { background: var(--blue-bright); }
.accuracy-warn { background: var(--warn); }
.accuracy-danger { background: var(--crit); }
/* Memory color classes */
.mem-ok { color: var(--blue-bright); }
.mem-warn { color: var(--warn); }
.mem-danger { color: var(--crit); }
/* Data table (apps page) */
.data-table {
width: 100%;
border-collapse: collapse;
font-size: 0.9rem;
}
.data-table th {
text-align: left;
padding: 0.6rem 0.75rem;
font-weight: 600;
color: var(--text-2);
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.04em;
border-bottom: 1px solid var(--line);
white-space: nowrap;
}
.data-table td {
padding: 0.6rem 0.75rem;
border-bottom: 1px solid rgba(100,116,139,0.15);
color: var(--text-1);
font-family: var(--font-data);
font-size: 0.875rem;
}
/* Plain links only — :not(.btn) keeps <a class="btn"> buttons on the .btn palette
(blue-bright link text on a blue-bright button background is invisible). */
.data-table td a:not(.btn) {
color: var(--blue-bright);
text-decoration: none;
font-family: var(--font-sans, sans-serif);
}
.data-table td a:not(.btn):hover { text-decoration: underline; }
.data-table th a {
color: var(--text-2);
text-decoration: none;
}
.data-table th a:hover { color: var(--text-1); }
.data-table tr:hover td { background: rgba(96,165,250,0.04); }
.data-table input[type="checkbox"] {
width: 1rem;
height: 1rem;
cursor: pointer;
accent-color: var(--blue-bright);
}
/* Responsive */
@media (max-width: 768px) {
.container { padding: 1rem; }
.dashboard-table { font-size: 0.8rem; }
.dashboard-table th, .dashboard-table td { padding: 0.5rem; }
.info-grid { grid-template-columns: 1fr 1fr; }
.metrics-grid { grid-template-columns: 1fr; }
}
/* Row tint — exception rule: only warn/crit rows carry a wash; ok/pending stay quiet. */
.dashboard-table tbody tr.status-warn { background: var(--warn-dim); }
.dashboard-table tbody tr.status-down { background: var(--crit-dim); }
/* Two-tone brand heading */
header h1 span { color: var(--blue-bright); }
/* Inline icon (Lucide sprite) */
.ico { width: 16px; height: 16px; flex-shrink: 0; vertical-align: -0.18em; }
/* Hairline table rows (v2): soft dividers, header underline stays --line. */
.dashboard-table td, .data-table td { border-bottom: 1px solid var(--line-soft); }
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 1px; }
/* ── Customer page tabs (v0.47.0) ──────────────────────────────────────────
Hash-based client-side tabs. Graceful degradation is load-bearing: panels
are hidden ONLY under body.js-tabs (added by JS on DOMContentLoaded) — with
JS off every panel stays visible and the page reads top-to-bottom. */
.summary-strip {
position: sticky;
top: 0;
z-index: 40;
display: flex;
align-items: center;
gap: 1rem;
flex-wrap: wrap;
padding: 0.5rem 0.75rem;
margin: 0.75rem 0 0;
background: var(--bg-0);
border: 1px solid var(--line);
border-radius: var(--radius);
font-size: 0.85rem;
}
.summary-strip .strip-name { font-weight: 600; color: var(--text-1); }
.summary-strip .strip-item { color: var(--text-2); white-space: nowrap; }
.summary-strip .strip-item code { font-size: 0.85em; }
.tab-nav {
display: flex;
gap: 0.25rem;
margin: 0.75rem 0 1rem;
border-bottom: 1px solid var(--line);
overflow-x: auto;
white-space: nowrap;
}
.tab-nav a {
color: var(--text-2);
text-decoration: none;
font-size: 0.9rem;
padding: 0.45rem 0.75rem;
border-bottom: 2px solid transparent;
flex-shrink: 0;
}
.tab-nav a:hover { color: var(--text-1); }
.tab-nav a.active {
color: var(--blue-bright);
border-bottom-color: var(--blue-bright);
font-weight: 600;
}
.tab-badge {
display: inline-block;
min-width: 1.2em;
margin-left: 0.35em;
padding: 0 0.35em;
background: var(--crit);
color: #fff;
border-radius: var(--radius);
font-size: 0.75em;
font-weight: 600;
text-align: center;
}
body.js-tabs .tab-panel:not(.tab-panel-active) { display: none; }
/* Inline two-step confirm (take-two F-16) — the in-place replacement for native confirm() */
.inline-confirm { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.inline-confirm-q { font-size: .8rem; color: var(--warn); }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation: none !important; transition: none !important; }
}