/* Server page (#/server) */
.sv-specs { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px 16px; }
.sv-spec dt { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.sv-spec dd { margin: 2px 0 0; font-weight: 700; }

.sv-grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-bottom: 12px; }
.sv-card { min-width: 0; }
.sv-title { margin: 0; font-size: 0.9rem; font-weight: 700; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.sv-chart { width: 100%; height: 80px; display: block; overflow: visible; }
.sv-grid { stroke: var(--border); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.sv-line { fill: none; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sv-line.cpu, .sv-line.in { stroke: var(--accent-teal); }
.sv-line.out { stroke: var(--accent-gold); }
.sv-plot { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.sv-yaxis { display: flex; flex-direction: column; justify-content: space-between; height: 80px; text-align: right; font-size: 0.68rem; line-height: 1; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sv-plot-area { min-width: 0; }
.sv-xaxis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 0.68rem; line-height: 1; color: var(--text-muted); }
.sv-limit { stroke: var(--accent-pink); stroke-width: 1.5; stroke-dasharray: 1 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.sv-key.limit .sv-dot { background: transparent; border: 1.5px dotted var(--accent-pink); }
.sv-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.8rem; color: var(--text-secondary); }
.sv-key { display: inline-flex; align-items: center; gap: 6px; }
.sv-key strong { color: var(--text-primary); }
.sv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); }
.sv-key.cpu .sv-dot, .sv-key.in .sv-dot { background: var(--accent-teal); }
.sv-key.out .sv-dot { background: var(--accent-gold); }

.sv-meter { height: 10px; border-radius: var(--radius-pill); background: var(--bg-card-hover); overflow: hidden; }
.sv-meter-fill { height: 100%; background: var(--accent-teal); border-radius: var(--radius-pill); }
.sv-meter-fill.high { background: var(--accent-pink); }

.sv-section { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 18px 0 8px; }
.sv-section .pf-season { margin: 0; }
.sv-section-title { margin: 0; font-size: 1.05rem; }
.sv-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.sv-table th, .sv-table td { padding: 6px 4px; text-align: right; border-bottom: 1px solid var(--border); }
.sv-table th:first-child { text-align: left; font-weight: 600; color: var(--text-secondary); }
.sv-table thead th { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); }
.sv-table tbody tr:last-child th, .sv-table tbody tr:last-child td { border-bottom: 0; }
.sv-table td { font-weight: 700; }
.sv-table tfoot th, .sv-table tfoot td { border-top: 1px solid var(--border-accent); border-bottom: 0; color: var(--accent-teal); }
.sv-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 12px; }
.sv-tile { gap: 2px; }
.sv-tile-label { font-size: 0.8rem; font-weight: 700; color: var(--text-secondary); }
.sv-tile-value { font-size: 1.5rem; font-weight: 700; }
.sv-tile-usd { font-size: 1rem; font-weight: 700; color: var(--accent-pink); white-space: nowrap; }
/* the blocks of one section one under the other, with room between them */
.sv-stack { display: flex; flex-direction: column; gap: 12px; }
.sv-stack > .sv-section { margin-bottom: 0; }
.sv-stack > .sv-tiles { margin-bottom: 0; }
.sv-stack > .sv-card { margin: 0; }
.sv-subtitle { margin: 16px 0 6px; font-size: 0.9rem; font-weight: 700; color: var(--text-secondary); }
.sv-ai-section { border-top: 1px solid var(--border); margin-top: 14px; }
.sv-ai-chart { margin: 4px 0 10px; }
.sv-ai-title { font-size: 0.72rem; color: var(--text-muted); margin: 2px 2px 4px; }
.sv-ai-bars { display: flex; gap: 2px; }
.sv-ai-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 0 2px 6px; border-radius: var(--radius-sm); }
.sv-ai-col.selected { background: rgba(255, 255, 255, 0.05); }
.sv-ai-cell { height: 60px; display: flex; align-items: flex-end; justify-content: center; }
/* a bar chart with its vertical axis: the axis column has the same width in both charts so their months line up; the three grid
   lines (top, half, zero) sit behind the bars at the heights the axis labels name */
.sv-xy { display: grid; grid-template-columns: 4.6rem 1fr; gap: 8px; }
.sv-xy-area { position: relative; min-width: 0; }
.sv-xy-area::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 60px; pointer-events: none;
  background: linear-gradient(var(--border), var(--border)) top / 100% 1px no-repeat, linear-gradient(var(--border), var(--border)) center / 100% 1px no-repeat, linear-gradient(var(--border), var(--border)) bottom / 100% 1px no-repeat; }
.sv-euro-chart .sv-xy-area::before { top: 6px; height: 110px; }
.sv-xy-area > * { position: relative; }
.sv-xy-axis { height: 60px; }
.sv-euro-chart .sv-xy-axis { height: 110px; margin-top: 6px; }
.sv-ai-bar { display: block; width: min(100%, 44px); min-height: 2px; background: var(--accent-pink); border-radius: 2px 2px 0 0; }
.sv-ai-line { margin-top: 8px; font-size: 0.9rem; }
.sv-year-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sv-year-head .pf-season { margin: 0; }
.sv-cost-total { font-size: 0.95rem; color: var(--text-secondary); }
.sv-cost-total strong { color: var(--text-primary); }
.sv-bars { display: flex; gap: 2px; }
.sv-bar { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 6px 2px; background: none; border: 0; border-radius: var(--radius-sm); cursor: pointer; font: inherit; color: inherit; }
.sv-bar:hover, .sv-bar.selected { background: rgba(255, 255, 255, 0.05); }
.sv-bar:focus-visible { outline: 2px solid var(--accent-teal); outline-offset: 1px; }
.sv-bar-stack { display: flex; flex-direction: column-reverse; height: 110px; width: min(100%, 44px); margin: 0 auto; }
.sv-seg { display: block; width: 100%; }
.sv-seg.k-server { background: var(--accent-teal); }
.sv-seg.k-domain { background: var(--accent-gold); }
.sv-seg.k-other { background: var(--accent-purple); }
.sv-forecast { display: block; width: 100%; box-sizing: border-box; background: rgba(255, 255, 255, 0.1); border: 1px dashed var(--text-muted); }
.sv-bar-label { font-size: 0.72rem; color: var(--text-muted); text-align: center; }
.sv-bar.selected .sv-bar-label { color: var(--text-primary); font-weight: 700; }
.sv-key.k-server .sv-dot { background: var(--accent-teal); }
.sv-key.k-domain .sv-dot { background: var(--accent-gold); }
.sv-key.k-other .sv-dot { background: var(--accent-purple); }
.sv-key.forecast .sv-dot { background: transparent; border: 1px dashed var(--text-muted); }
.sv-detail-box { border-top: 1px solid var(--border); padding-top: 10px; }
.sv-detail-title { margin: 0 0 6px; font-size: 0.95rem; }
.sv-detail th:first-child { color: var(--text-secondary); }
.sv-detail .sv-pending th, .sv-detail .sv-pending td { color: var(--text-muted); font-weight: 600; }
.sv-detail tfoot th, .sv-detail tfoot td { color: var(--accent-teal); }
.sv-foot { margin-top: 12px; }
