/* Tesorería por obra: el remanente reservado se distingue del dinero disponible. */
.cash-reserves { width: min(100%, 1240px); margin: 0 0 16px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.cash-reserves > header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.cash-reserves header p { margin: 0 0 4px; color: var(--deep); font: 500 9px var(--mono); letter-spacing: .1em; }
.cash-reserves h2 { margin: 0; color: var(--ink); font: 700 16px Manrope, sans-serif; }
.cash-reserves header > span { color: var(--muted); font-size: 10px; }
.cash-reserve-equation { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 16px; padding: 12px 16px; background: var(--night); border-radius: 6px; }
.cash-reserve-equation span { display: block; color: var(--muted); font-size: 10px; }
.cash-reserve-equation b { display: block; color: var(--deep); font-size: 22px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.cash-reserve-equation i { color: var(--muted); font-style: normal; font-size: 20px; }
.cash-reserve-equation .cash-reserve-deficit b { color: #a83e4b; }
.cash-reserve-note, .cash-reserve-empty { margin: 12px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.cash-reserve-warning { padding: 10px 12px; margin: 12px 0 0; border-left: 3px solid var(--clay); background: #fff4f5; color: #a83e4b; font-size: 11px; line-height: 1.5; }
.cash-reserves details { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.cash-reserves summary { color: var(--deep); font-size: 11px; font-weight: 600; cursor: pointer; width: fit-content; }
.cash-reserves summary:hover { color: var(--acid); }
.cash-reserves summary:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; border-radius: 2px; }
.cash-reserve-table { overflow-x: auto; margin-top: 12px; }
.cash-reserve-table table { width: 100%; }
.cash-reserve-table th:last-child, .cash-reserve-table td:last-child { text-align: right; }
.cash-reserve-table td:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cash-reserve-table th:nth-child(2), .cash-reserve-table td:nth-child(2) { text-align: center; }
@media (max-width: 620px) {
  .cash-reserves > header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .cash-reserve-equation { grid-template-columns: 1fr; gap: 8px; }
  .cash-reserve-equation > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .cash-reserve-equation b { font-size: 18px; margin: 0; }
  .cash-reserve-equation i { display: none; }
}
