/* Praga Rendiciones — complementos sobre el diseño base de FH Tareas */
:root { --primario: #1f3a5f; --primario-oscuro: #14273f; --primario-suave: #e8eef6; }
.sidebar .marca .bajada { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.neg { color: var(--rojo); }
.aviso.aviso { background: var(--amarillo-fondo); color: var(--amarillo); border: 1px solid var(--amarillo-borde); }

.chip.estado-CARGA { background: var(--borde-fila); color: var(--texto-3); }
.chip.estado-ENVIADO { background: #e6edf9; color: #2f57a8; }
.chip.estado-OBSERVADO { background: var(--amarillo-fondo); color: var(--amarillo); }
.chip.estado-REVISADO { background: #e8f5ee; color: var(--verde); }
.chip.estado-CERRADO { background: var(--primario); color: #fff; }
.chip.mov-ok { background: #e8f5ee; color: var(--verde); }
.chip.mov-pendiente { background: var(--amarillo-fondo); color: var(--amarillo); }
.chip.mov-observado { background: var(--rojo-fondo); color: var(--rojo); }
.chip.mov-corregido, .chip.mov-anulado { background: var(--borde-fila); color: var(--apagado); text-decoration: line-through; }

.encabezado-periodo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.encabezado-periodo h1 { margin: 0; }
.encabezado-periodo .nav-mes a { text-decoration: none; padding: 3px 8px; border: 1px solid var(--borde-input); border-radius: 6px; font-size: 12px; color: var(--texto-2); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--borde); margin: 8px 0 14px; }
.tabs a { padding: 8px 14px; text-decoration: none; color: var(--texto-3); font-size: 13px; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.activo { color: var(--primario); border-bottom-color: var(--primario); }
.tabs a .badge { margin-left: 6px; font-size: 10px; background: var(--borde-fila); border-radius: 999px; padding: 1px 6px; }
.barra-acciones { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.barra-acciones form { display: inline-flex; gap: 6px; align-items: center; }
.barra-acciones input[type=file] { width: auto; margin: 0; font-size: 12px; }
.barra-acciones button { margin-top: 0; }
.fila-pendiente td { background: #fffbea !important; }
.fila-observada td { background: var(--rojo-fondo) !important; }
.fila-devengo td { color: var(--texto-3); font-style: italic; }
.tabla-mov td.acciones { white-space: nowrap; }
.tabla-mov td.acciones form { display: inline; }
.tabla-mov button.chico { padding: 3px 7px; font-size: 11px; }
.mini { font-size: 11px; color: var(--apagado); }
.alerta-mov { display: inline-block; font-size: 10.5px; color: var(--rojo); }
.alerta-mov.aviso { color: var(--amarillo); }

.tabla-matriz { font-size: 11.5px; }
.tabla-matriz th:first-child, .tabla-matriz td:first-child { position: sticky; left: 0; background: #fff; z-index: 1; min-width: 170px; }
.tabla-matriz th { white-space: nowrap; }
.tabla-matriz tr.bloque td { background: #f4f5f7; font-weight: 700; text-transform: uppercase; font-size: 10.5px; letter-spacing: .5px; }
.tabla-matriz tr.total td { font-weight: 700; border-top: 2px solid var(--borde-input); }

.panel-control { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.cifra { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cifra.ok { color: var(--verde); } .cifra.mal { color: var(--rojo); }
.lista-alertas { margin: 0; padding-left: 18px; font-size: 12.5px; }
.lista-alertas li { margin: 3px 0; }
.comentario { border-left: 3px solid var(--borde-input); padding: 4px 10px; margin: 6px 0; font-size: 12.5px; }
.comentario .quien { font-weight: 600; } .comentario .cuando { color: var(--apagado); font-size: 11px; margin-left: 6px; }
.comentario.estado { border-left-color: var(--primario); }

dialog { border: 0; border-radius: 12px; padding: 0; width: min(760px, 94vw); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(35,38,45,.45); }
dialog .cabecera { padding: 14px 18px; border-bottom: 1px solid var(--borde); font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; }
dialog .cuerpo { padding: 12px 18px 18px; }
dialog .pie { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
dialog .pie button { margin-top: 0; }
.fila-triple { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .fila-triple, .fila-doble { grid-template-columns: 1fr; } }
.signo { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.signo.cobro { background: #e8f5ee; color: var(--verde); } .signo.pago { background: var(--rodo-fondo, #fdf1f0); color: var(--rojo); }
.ayuda-concepto { font-size: 11.5px; color: var(--texto-3); margin-top: 4px; min-height: 14px; }

.tarjeta-sociedad h2 { margin-top: 0; }
.tarjeta-sociedad .meses { display: flex; flex-wrap: wrap; gap: 6px; }
.tarjeta-sociedad .mes { text-decoration: none; border: 1px solid var(--borde-input); border-radius: 8px; padding: 6px 10px; min-width: 150px; color: var(--texto); }
.tarjeta-sociedad .mes:hover { background: var(--borde-fila); }
.tarjeta-sociedad .mes .titulo { font-weight: 600; font-size: 12.5px; }
.tarjeta-sociedad .mes .datos { font-size: 11px; color: var(--apagado); }
.form-nuevo-mes { display: inline-flex; gap: 6px; align-items: center; }
.form-nuevo-mes select, .form-nuevo-mes input { width: auto; margin: 0; padding: 5px 8px; }
.form-nuevo-mes button { margin: 0; }
details.desplegable summary { cursor: pointer; font-weight: 600; font-size: 12.5px; color: var(--texto-2); }
.tabla-envoltura.alto { max-height: 70vh; overflow: auto; }
.pill-conc { font-size: 10.5px; background: var(--borde-fila); border-radius: 999px; padding: 1px 7px; margin: 1px; display: inline-block; }
.pill-conc form { display: inline; } .pill-conc button { background: none; border: 0; color: var(--apagado); padding: 0 2px; margin: 0; font-size: 11px; cursor: pointer; }
