/* Análise · Explorador */
.ex-controls { display: flex; flex-direction: column; gap: 14px; }
.ex-dimbox { display: contents; }
.ex-source { align-self: center; font-size: 12px; color: var(--text-muted); padding-top: 14px; }
.ex-filters { border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.ex-filters-title { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); align-self: center; padding-top: 14px; }
.ex-hint { font-size: 12px; color: var(--text-muted); padding: 8px 0 0; }
.ex-warn { color: var(--warn); }
.ex-select-note { color: var(--text-sec); }

/* Pivot */
.ex-wrap { max-height: 70vh; overflow: auto; }
.ex-pivot { width: auto; min-width: 100%; }
.ex-pivot.ex-narrow { min-width: min(100%, 360px); max-width: 560px; }
.ex-pivot th.ex-rowhead { text-align: left; position: sticky; left: 0; z-index: 1; background: var(--bg-panel); white-space: nowrap; font-weight: 600; color: var(--text); text-transform: none; letter-spacing: 0; font-size: 13px; border-bottom: 1px solid var(--border); padding: 8px 12px; }
.ex-pivot thead th.ex-rowhead { z-index: 3; text-transform: uppercase; font-size: 11px; letter-spacing: .03em; color: var(--text-muted); border-bottom: 1px solid var(--border-strong); }
.ex-pivot thead th { z-index: 2; }
.ex-pivot td.ex-td { padding: 0; min-width: 76px; }
.ex-cell { display: block; width: 100%; padding: 8px 12px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text); background: transparent; border-radius: 0; }
.ex-cell:hover { background: rgba(255, 255, 255, .06); }
.ex-cell:focus-visible { outline: 2px solid var(--rose-hover); outline-offset: -2px; }
.ex-cell.is-zero { color: var(--text-muted); }
td.is-selected { box-shadow: inset 0 0 0 2px var(--rose-hover); }
.ex-pivot .ex-total, .ex-pivot .ex-total-h { font-weight: 700; background: var(--bg-raised); }
.ex-pivot .ex-total .ex-cell { font-weight: 700; }
.ex-pivot tfoot th.ex-rowhead, .ex-pivot tfoot td { background: var(--bg-raised); border-top: 2px solid var(--border-strong); border-bottom: none; font-weight: 700; }
.ex-pivot tbody tr:hover th.ex-rowhead { background: var(--bg-hover); }

/* Detail */
.ex-detail { scroll-margin-bottom: 16px; }
.ex-detail .ta-card-head { padding-bottom: 4px; }

@media (max-width: 900px) {
  .ex-source, .ex-filters-title { padding-top: 0; }
  .ex-wrap { max-height: 60vh; }
}

.ex-controls .ta-seg { flex-wrap: wrap; }
.ex-controls .ta-seg-btn { white-space: nowrap; }
