[hidden] { display: none !important; }
.new-record > summary { display: inline-block; cursor: pointer; background: #76263e; color: #fff; padding: 9px 14px; border-radius: 5px; font-size: 14px; font-weight: 600; list-style: none; }
.new-record > summary::-webkit-details-marker { display: none; }
.new-record > summary:focus-visible { outline: 2px solid #a96e43; outline-offset: 3px; }
.new-record[open] > summary { margin-bottom: 14px; }

/* Colores de las secciones del Panel. */
.section-balances { border-top: 3px solid #237a50; }
.section-balances > h2 { color: #237a50; }
.section-obligations { border-top: 3px solid #b83232; }
.section-obligations > h2 { color: #b83232; }
.section-receivables { border-top: 3px solid #ad591d; }
.section-receivables > h2 { color: #ad591d; }

.registered-balance-card { display: flex; align-items: center; gap: 12px; }
.registered-balance-main { flex: 1; min-width: 0; }
.opening-badge { flex: 0 0 118px; border: 1px solid #c8dfce; background: #f5faf6; border-radius: 8px; padding: 10px 8px; text-align: center; color: #237a50; font-size: 11px; line-height: 1.4; }
.opening-badge strong, .opening-badge span, .opening-badge small { display: block; }
.opening-badge strong { font-size: 11px; }
.opening-badge span { margin-top: 6px; font-size: 14px; font-weight: 700; }
.opening-badge small { margin-top: 4px; font-size: 10px; }
@media (max-width: 380px) { .registered-balance-card { flex-wrap: wrap; } }

.registered-balance-main > p.muted { white-space: nowrap; font-size: 10px; }

/* Misma alineación en las tres tarjetas de resumen. */
.financial-summary-grid > .card { align-self: stretch; }
.financial-summary-grid .registered-balance-card { display: grid; grid-template-columns: minmax(0, 1fr) 118px; grid-template-rows: auto auto; column-gap: 12px; row-gap: 5px; align-items: start; }
.financial-summary-grid .ingreso-desglose-card { align-items: flex-start; }
.financial-summary-grid .opening-badge, .financial-summary-grid .ingreso-desglose { min-height: 72px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }
.financial-summary-grid .balance-note { grid-column: 1 / -1; margin: 0 !important; white-space: nowrap; font-size: 10px; line-height: 1.4; }
.financial-summary-grid .metric { margin-top: 6px; line-height: 1.2; }
@media (max-width: 420px) { .financial-summary-grid .balance-note { font-size: 9px; } }

/* Primera tarjeta según referencia: nota bajo el importe, apertura a la derecha. */
.financial-summary-grid .registered-balance-card { grid-template-rows: auto; }
.financial-summary-grid .registered-balance-main > .balance-note { margin: 5px 0 0 !important; font-size: 9px; white-space: nowrap; line-height: 1.4; }

.academic-cobro { margin: 12px 0; padding: 12px; border: 1px solid #e3d2d7; border-left: 3px solid #76263e; border-radius: 6px; background: #fcfafb; }
.academic-cobro h3 { margin: 0 0 10px; font-size: 14px; color: #76263e; }
.academic-cobro > label, .academic-cobro #academic-enrollment > label, .academic-cobro #academic-historical > label { margin-top: 9px; }
.academic-search-row { display: flex; gap: 8px; }
.academic-search-row input { min-width: 0; }
.academic-confirm { display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }
.academic-confirm input[type="checkbox"] { width: 16px; min-height: 16px; flex: 0 0 16px; margin: 0; }
.academic-cobro .muted { margin: 8px 0; }

.academic-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.academic-header h3 { margin: 0; }
.academic-header button { font-size: 11px; min-height: 28px; padding: 5px 9px; }
