/* ============================================================
   Salubox Alianzas — Panel de Finanzas
   Piezas únicas de public/finanzas/inicio.html no compartidas por otro panel.
   ============================================================ */

h1 { color: var(--sb-aviso); }

main { container-type: inline-size; }

.tabla-scroll { overflow-x: auto; }
.tabla-scroll table { min-width: 0; }
.tabla-scroll th, .tabla-scroll td { padding: .6rem .5rem; }
.tabla-scroll .badge { text-align: center; }
.sin-datos { font-size: .8rem; color: var(--sb-texto-suave); }
button.pill { white-space: nowrap; }

.celda-copiable { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

@container (max-width: 1040px) {
  .tabla-scroll table { min-width: 0; background: none; box-shadow: none; }
  thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr { background: #fff; border-radius: var(--sb-radio); box-shadow: var(--sb-sombra); margin-bottom: 1rem; padding: .4rem 0; }
  td { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem 1rem; text-align: right; }
  td::before { content: attr(data-label); flex: none; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--sb-texto-suave); text-align: left; }
  td:first-child { font-weight: 700; color: var(--sb-tinta); }
}
@media (pointer: coarse) {
  button.pill, .filtros .sb-btn { min-height: 44px; }
  .filtros label.check { min-height: 44px; }
}
@container (min-width: 1041px) {
  .tabla-scroll .tabla-compacta { display: table; width: 100%; background: #fff; box-shadow: var(--sb-sombra); border-radius: var(--sb-radio); }
  .tabla-compacta td:not(:first-child) { white-space: nowrap; }
  .tabla-compacta thead { display: table-header-group; }
  .tabla-compacta tbody { display: table-row-group; }
  .tabla-compacta tr { display: table-row; background: none; box-shadow: none; border-radius: 0; margin: 0; padding: 0; }
  .tabla-compacta td { display: table-cell; text-align: left; vertical-align: middle; }
  .tabla-compacta td::before { content: none; }
}
