.sidebar ul{list-style:none;padding:0}
.sidebar a{color:inherit;text-decoration:none;display:flex;align-items:center;gap:7px;width:100%}
.topnav-preview .topnav-links li{cursor:pointer}
.topnav-session form{display:inline}
.contenido h1{color:#1f4e79;margin-top:0}
.contenido a{color:#1f4e79}
table{border-collapse:collapse;width:100%;background:#fff;margin:12px 0}
th,td{border:1px solid #dde3ea;padding:8px 10px;text-align:left;font-size:14px}
thead th{background:#1f4e79;color:#fff}
tbody tr:nth-child(even){background:#f3f4f6}
form p{margin:10px 0}
label{display:block;font-weight:600;margin:8px 0 4px}
input[type=text],input[type=email],input[type=password],input[type=number],
input[type=date],input[type=search],select,textarea{
  width:100%;max-width:420px;padding:8px 10px;border:1px solid #b9c4d0;border-radius:6px}
button:not(.btn),[type=submit]:not(.btn){background:#1f4e79;color:#fff;border:0;border-radius:6px;
  padding:9px 16px;cursor:pointer;font-size:14px}
button:not(.btn):hover,[type=submit]:not(.btn):hover{background:#2c669b}
.errorlist{color:#b91c1c;list-style:none;padding:0}
.login-card{max-width:440px;margin:8vh auto;background:#fff;padding:28px 32px;
  border:0;border-radius:16px;box-shadow:0 14px 40px rgba(15,45,75,.12);text-align:center}
.login-card h1{color:#1f4e79}
.login-card form{text-align:left}
.login-card img{max-width:170px;margin-bottom:12px}
.btn-login{background:#1f4e79;border-color:#1f4e79;color:#fff}
.btn-login:hover{background:#173c5e;border-color:#173c5e;color:#fff}
.topnav{display:flex;justify-content:space-between;align-items:center;
  background:#fff;border-bottom:1px solid #dde3ea;padding:10px 30px}
.topnav form{display:inline}
.mensajes{list-style:none;padding:0}
.mensajes li{background:#eef5fb;border:1px solid #d7e5f0;border-radius:6px;
  padding:8px 12px;margin:8px 0}
dl{display:grid;grid-template-columns:200px 1fr;gap:6px 12px;max-width:640px}
dt{font-weight:600;color:#536273}dd{margin:0}

/* Patrón compartido con la interfaz legacy: encabezados claros, indicadores
   centrados y tablas de módulos operativos sin sacrificar accesibilidad. */
.module-header{display:flex;justify-content:space-between;align-items:center;gap:16px}
.indicador{padding:20px;text-align:center}
.indicador h2{font-size:clamp(1.6rem,3vw,2.1rem);font-weight:700;margin-bottom:.25rem}
.abonos-table td{vertical-align:middle}
.abonos-table .btn{margin:2px}
.usuario-create-field{flex:0 0 444px;max-width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5)}
.usuario-create-form .form-control,.usuario-create-form .form-select{max-width:none}
@media (max-width:991px){.module-header{align-items:flex-start;flex-wrap:wrap}}

/* Reportes: visual hierarchy matching the legacy management dashboard. */
.reportes-hub{--reportes-navy:#1f4e79;--reportes-border:#dce5ee;--reportes-muted:#64748b}
.reportes-page-header h1{color:var(--reportes-navy)}
.reportes-page-header p{color:var(--reportes-muted)}
.reportes-hub .card{border:1px solid var(--reportes-border);border-radius:.7rem;box-shadow:0 .15rem .45rem rgba(31,78,121,.06);overflow:hidden}
.reportes-hub .card-header{background:linear-gradient(90deg,#f8fbfe,#eef5fa);border-bottom:1px solid var(--reportes-border);color:#193f63;display:flex;align-items:center;gap:.65rem;min-height:3.1rem;padding:.7rem 1rem}
.reportes-hub .card-header strong{font-size:.95rem}
.reportes-hub .card-header small,.reportes-hub .card-header span{color:var(--reportes-muted);font-size:.8rem;font-weight:400}
.reportes-filters .card-body{padding:1rem 1.1rem 1.15rem}
.reportes-filter-form .form-control,.reportes-filter-form .form-select,.reportes-hub .card-body .form-control,.reportes-hub .card-body .form-select{max-width:none}
.reportes-filter-form .form-label{color:#40566c;font-size:.78rem;margin:0 0 .3rem}
.reportes-filter-actions{align-items:flex-end;display:flex;flex-wrap:wrap;gap:.5rem;min-height:calc(2.375rem + 1.5rem)}
.reportes-filter-actions .btn{align-items:center;display:inline-flex;justify-content:center;white-space:nowrap}
.reportes-kpi{border:0!important;border-left:5px solid var(--reportes-kpi)!important;box-shadow:0 .18rem .55rem rgba(15,45,75,.09)!important;color:#193f63;padding:1rem 1.1rem;text-align:left}
.reportes-kpi small{color:#52687d;font-size:.75rem;font-weight:700;letter-spacing:.025em;text-transform:uppercase}
.reportes-kpi h2{color:var(--reportes-kpi);font-size:clamp(1.35rem,2vw,1.85rem);line-height:1.2;margin:.32rem 0 0;overflow-wrap:anywhere}
.reportes-kpi--slate{--reportes-kpi:#475569}.reportes-kpi--violet{--reportes-kpi:#7c3aed}.reportes-kpi--blue{--reportes-kpi:#2563eb}.reportes-kpi--cyan{--reportes-kpi:#0891b2}.reportes-kpi--green{--reportes-kpi:#15803d}.reportes-kpi--teal{--reportes-kpi:#0f766e}.reportes-kpi--amber{--reportes-kpi:#b45309}.reportes-kpi--indigo{--reportes-kpi:#4f46e5}.reportes-kpi--red{--reportes-kpi:#dc2626}
.reportes-hub .table{margin:0}
.reportes-hub .table>:not(caption)>*>*{border-color:#e6edf3;padding:.58rem .75rem;vertical-align:middle}
.reportes-hub .table thead th{background:#245a89;color:#fff;font-size:.72rem;letter-spacing:.025em;text-transform:uppercase;white-space:nowrap}
.reportes-hub .table tbody tr:nth-child(even){background:#f8fafc}
.reportes-hub .table-hover tbody tr:hover{background:#eef6fc;color:inherit}
.reportes-amount{font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap}
.reportes-category-card .table tbody tr{border-left:4px solid transparent}
.reportes-category-card .table tbody tr:hover{border-left-color:var(--reportes-category-color,#1f4e79)}
.reportes-category-dot{background:var(--reportes-category-color,#6c757d);border-radius:50%;display:inline-block;height:.7rem;margin-right:.45rem;vertical-align:middle;width:.7rem}
.reportes-share{min-width:9rem;white-space:nowrap}.reportes-share>span:first-child{display:inline-block;min-width:3.2rem;text-align:right}.reportes-share .progress{display:inline-flex;height:.4rem;margin-left:.4rem;vertical-align:middle;width:4.5rem}.reportes-share .progress-bar{min-width:0}
.reportes-management .card-body{padding:1rem}.reportes-management .nav-pills{gap:.45rem}.reportes-management .nav-link{border:1px solid #cbd9e5;color:#315d83;font-size:.86rem;padding:.42rem .8rem}.reportes-management .nav-link.active{background:#1f4e79;border-color:#1f4e79;color:#fff}
.reportes-hub .btn{font-weight:600}.reportes-hub .card-header .btn{margin-left:auto}
@media (max-width:767px){.reportes-hub .card-header{align-items:flex-start;flex-wrap:wrap}.reportes-hub .card-header .btn{margin-left:0}.reportes-filter-actions{align-items:stretch;min-height:0}.reportes-filter-actions .btn{flex:1 1 auto}.reportes-kpi{text-align:center}.reportes-share{min-width:8rem}.reportes-management .nav-pills{flex-wrap:nowrap;overflow-x:auto;padding-bottom:.2rem}.reportes-management .nav-link{white-space:nowrap}}

/* Comprobantes repetidos: cards mirror the operational legacy list without
   rendering untrusted source URLs. */
.duplicados-page{--dup-navy:#1f4e79;--dup-border:#d9e3ec;max-width:1080px}.duplicados-header{align-items:flex-start;display:flex;gap:1rem;justify-content:space-between;margin-bottom:1rem}.duplicados-header h1{margin-bottom:.25rem}.duplicados-header p,.duplicados-history>p{color:#64748b;margin-bottom:0}.duplicados-search{background:#f7fafc;border:1px solid var(--dup-border);border-radius:.65rem;margin:1rem 0;padding:.9rem 1rem}.duplicados-search label{color:#40566c;font-size:.86rem;margin-top:0}.duplicados-search .form-control{max-width:none}.duplicados-status{color:#52687d;font-size:.9rem;margin:.8rem 0}.duplicados-notice{background:#fff7e6;border-left:4px solid #d97706;border-radius:.25rem;color:#7c4a03;padding:.65rem .8rem}.duplicados-summary{display:grid;gap:.65rem;grid-template-columns:repeat(4,1fr);margin:1rem 0}.duplicados-summary>div{background:#fff;border:1px solid var(--dup-border);border-left:4px solid #2c669b;border-radius:.5rem;padding:.7rem .85rem}.duplicados-summary small{color:#64748b;display:block;font-size:.72rem;font-weight:700;text-transform:uppercase}.duplicados-summary strong{color:#193f63;font-size:1.3rem}.duplicados-card{background:#fff;border:1px solid var(--dup-border);border-radius:.7rem;box-shadow:0 .15rem .45rem rgba(31,78,121,.06);margin:1rem 0;overflow:hidden;padding:1rem}.duplicados-card>header{align-items:flex-start;border-bottom:1px solid #edf1f5;display:flex;gap:.75rem;justify-content:space-between;margin:-1rem -1rem .75rem;padding:.85rem 1rem}.duplicados-card h2{color:#193f63;font-size:1.02rem;margin:0}.duplicados-card h2 span{color:#64748b;font-weight:400}.duplicados-meta{color:#475569;font-size:.9rem;line-height:1.55}.duplicados-mail,.duplicados-badge{border-radius:999px;display:inline-block;font-size:.7rem;font-weight:700;letter-spacing:.02em;padding:.25rem .5rem;white-space:nowrap}.duplicados-mail--enviado,.duplicados-badge--excluida{background:#dcfce7;color:#166534}.duplicados-mail--en_envio,.duplicados-badge--requiere_revision{background:#fef3c7;color:#92400e}.duplicados-mail--pendiente{background:#e2e8f0;color:#475569}.duplicados-receipt{border:1px solid #e2e8f0;border-radius:.4rem;margin:.55rem 0;padding:.6rem .75rem}.duplicados-receipt summary{cursor:pointer;font-size:.9rem;font-weight:600}.duplicados-receipt dl{font-size:.86rem;grid-template-columns:9.5rem 1fr;margin:.65rem 0;max-width:none}.duplicados-history{border-top:2px solid var(--dup-border);margin-top:1.5rem;padding-top:1.25rem}.duplicados-history h2{color:#193f63;font-size:1.25rem}.duplicados-evento{background:#f8fafc;border:1px solid #e3ebf2;border-radius:.45rem;font-size:.88rem;line-height:1.5;margin:.55rem 0;padding:.65rem .8rem}.duplicados-empty{background:#f8fafc;border:1px dashed #b9c8d6;border-radius:.5rem;color:#64748b;padding:1rem;text-align:center}@media (max-width:767px){.duplicados-header{flex-wrap:wrap}.duplicados-header .btn{width:100%}.duplicados-summary{grid-template-columns:repeat(2,1fr)}.duplicados-card>header{flex-direction:column}.duplicados-receipt dl{grid-template-columns:1fr;gap:.1rem}.duplicados-receipt dt{margin-top:.35rem}}
