/*
 * css/costos.css — piezas propias de la página Costos (js/views/costos.js), a partir de
 * docs/standard/examples/Costs/styles.css. Solo variables del kit y de css/base.css: siguen el tema claro/oscuro.
 */

.cost-what { min-width: 0; overflow-wrap: anywhere; }

/* Total estimado: el número nunca aparece sin "/ mes (estimado)" (§9.2) */
.cost-total .v { overflow-wrap: anywhere; }
.cost-total .v .unit { color: var(--mc-dim); font-size: 0.95rem; font-weight: 500; }
.cost-total .sub { margin-top: 6px; }
.cost-warn { color: var(--warn-text); font-weight: 600; font-size: var(--chrome-text-sm); margin-top: 4px; }   /* siempre con texto (UX-2) */

/* tablas de partidas y escenarios (§9.4, §9.5) */
table.cost-tbl td { vertical-align: top; }
table.cost-tbl td.cost-item { font-family: var(--chrome-font-mono-stack); font-weight: 600; white-space: nowrap; }
table.cost-tbl td.cost-detail { color: var(--chrome-fg-muted); min-width: 260px; overflow-wrap: anywhere; }
table.cost-tbl td.num { white-space: nowrap; }
table.cost-tbl .cost-conf { color: var(--chrome-fg-muted); font-family: var(--chrome-font-sans); font-size: var(--chrome-text-xs);
  white-space: normal; }
table.cost-tbl tr.cost-err td.num b { color: var(--err-text); }
.cost-delta { color: var(--chrome-fg-muted); font-size: var(--chrome-text-sm); }

/* escenarios: visualmente distintos, no se suman */
.card.cost-scen { border-style: dashed; }
.cost-foot { margin: 4px 2px 12px; overflow-wrap: anywhere; }

/* Teléfono (390 px): grilla partida | importe con el detalle debajo; sin encabezado ni scroll horizontal (§9.6) */
@media (max-width: 600px) {
  .tbl-box.cost-box { overflow: visible; max-height: none; }
  table.cost-tbl thead { display: none; }
  table.cost-tbl, table.cost-tbl tbody { display: block; width: 100%; }
  table.cost-tbl tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 42%); gap: 2px 8px;
    padding: 6px 0; border-bottom: 1px solid var(--chrome-border); }
  table.cost-tbl tbody tr > td { display: block; padding: 0; border: 0; min-width: 0; position: static; background: transparent; }
  table.cost-tbl td.cost-item { white-space: normal; overflow-wrap: anywhere; }
  table.cost-tbl td.cost-detail { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
  table.cost-tbl td.num { white-space: normal; }
}
