/* SIGVE v1.1.0 */
.v110-status{display:inline-flex;padding:.25rem .55rem;border-radius:999px;font-size:.78rem;font-weight:700;background:#eef2f7}
.v110-status.pagado{background:#dcfce7;color:#166534}.v110-status.pendiente{background:#fef3c7;color:#92400e}.v110-status.exento_incorporacion{background:#dbeafe;color:#1e40af}.v110-status.anulado{background:#fee2e2;color:#991b1b}
.v110-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.75rem;margin:1rem 0}.v110-summary .stat{min-height:86px}
.v110-table-actions{display:flex;gap:.35rem;flex-wrap:wrap}.v110-note{padding:.8rem 1rem;border-left:4px solid currentColor;background:rgba(0,0,0,.03);border-radius:.5rem}
.report-letter{background:#fff;padding:2rem;max-width:920px;margin:1rem auto;border:1px solid #ddd}.report-letter-header{display:flex;align-items:center;gap:1rem;border-bottom:2px solid #222;padding-bottom:1rem}.report-letter-header img{width:72px;height:72px}.report-signatures{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem;margin-top:5rem;text-align:center}.report-signatures div{border-top:1px solid #333;padding-top:.4rem}
@media print{body *{visibility:hidden!important}.report-letter,.report-letter *{visibility:visible!important}.report-letter{position:absolute;left:0;top:0;width:100%;border:0;margin:0;padding:1cm}.sidebar,.topbar{display:none!important}}

.report-detail-table .report-date{width:105px;white-space:nowrap}.report-detail-table .report-amount,.report-amount{text-align:right;white-space:nowrap;width:130px}


/* SIGVE v1.1.3: impresión del informe mensual en la misma pestaña */
@media print{
  @page{size:letter;margin:12mm}
  body.printing-official-report *{visibility:hidden!important}
  body.printing-official-report #section-informe-mensual,
  body.printing-official-report #section-informe-mensual #official-report,
  body.printing-official-report #section-informe-mensual #official-report *{visibility:visible!important}
  body.printing-official-report #section-informe-mensual{
    display:block!important;
    position:absolute!important;
    inset:0 auto auto 0!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
  }
  body.printing-official-report #section-informe-mensual>.panel{display:none!important}
  body.printing-official-report #official-report{
    display:block!important;
    position:absolute!important;
    left:0!important;
    top:0!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
  }
  body.printing-official-report .report-letter{
    display:block!important;
    position:static!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    box-shadow:none!important;
    background:#fff!important;
    color:#111!important;
    font-size:12px!important;
  }
  body.printing-official-report .report-letter-header img{width:64px!important;height:64px!important}
  body.printing-official-report .v7-table{width:100%!important;border-collapse:collapse!important;margin:8px 0 16px!important}
  body.printing-official-report .v7-table th,
  body.printing-official-report .v7-table td{border:1px solid #bbb!important;padding:6px 8px!important;color:#111!important}
  body.printing-official-report .report-date{width:95px!important;white-space:nowrap!important}
  body.printing-official-report .report-amount{width:110px!important;text-align:right!important;white-space:nowrap!important}
  body.printing-official-report .report-signatures{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:28px!important;margin-top:70px!important}
  body.printing-official-report h3{page-break-after:avoid}
  body.printing-official-report table{page-break-inside:auto}
  body.printing-official-report tr{page-break-inside:avoid;page-break-after:auto}
}


/* SIGVE v2.1 · Gestión inteligente de cuotas */
.cuotas-dashboard{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}
.cuota-stat{appearance:none;text-align:left;font:inherit;color:inherit;border:1px solid transparent;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.cuota-stat:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(15,23,42,.09);border-color:#94a3b8}
.cuota-stat.al-dia{background:#ecfdf5}.cuota-stat.pendiente{background:#fffbeb}.cuota-stat.deuda{background:#fef2f2}.cuota-stat.exento{background:#f8fafc}
.cuota-money{background:#eff6ff}.cuota-progress-card{background:#f5f3ff}
.cuota-progress{height:9px;background:#e5e7eb;border-radius:999px;overflow:hidden;margin:.55rem 0 .25rem}.cuota-progress i{display:block;height:100%;background:#16a34a;border-radius:inherit}
.cuotas-actions-panel{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:1rem 0}.cuotas-actions-panel .actions{margin:0}
.button.whatsapp{background:#16a34a;color:#fff;border-color:#16a34a}.button.whatsapp:hover:not(:disabled){background:#15803d}.button.whatsapp:disabled{opacity:.45;cursor:not-allowed}
.quota-row.al-dia{--quota-accent:#16a34a}.quota-row.pendiente-mes{--quota-accent:#eab308}.quota-row.deuda{--quota-accent:#dc2626}.quota-row.exento{--quota-accent:#64748b}
.quota-row td:first-child{border-left:4px solid var(--quota-accent,#cbd5e1)}.quota-select{width:18px;height:18px}.quota-check{width:42px}.quota-debt-detail{margin-top:.3rem;color:#991b1b;font-size:.78rem}
.v110-status.al-dia{background:#dcfce7;color:#166534}.v110-status.pendiente-mes{background:#fef3c7;color:#92400e}.v110-status.deuda{background:#fee2e2;color:#991b1b}.v110-status.exento{background:#e2e8f0;color:#334155}
.quota-wa-list{display:grid;gap:.65rem;max-height:52vh;overflow:auto;margin:1rem 0}.quota-wa-list article{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem;border:1px solid #e2e8f0;border-radius:.65rem;background:#fff}
@media(max-width:760px){.cuotas-head .panel-heading,.cuotas-actions-panel{align-items:stretch;flex-direction:column}.cuotas-actions-panel .actions{display:grid;grid-template-columns:1fr}.cuotas-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}.cuota-stat,.cuota-money,.cuota-progress-card{min-height:94px}.cuotas-table-wrap{overflow:visible}.cuotas-table,.cuotas-table tbody,.cuotas-table tr,.cuotas-table td{display:block;width:100%}.cuotas-table thead{display:none}.cuotas-table tr{margin-bottom:.8rem;border:1px solid #e2e8f0;border-radius:.75rem;overflow:hidden;background:#fff}.cuotas-table td{border:0!important;border-bottom:1px solid #f1f5f9!important;padding:.65rem .8rem}.cuotas-table td:first-child{border-left:5px solid var(--quota-accent,#cbd5e1)!important}.cuotas-table td:last-child{border-bottom:0!important}.v110-table-actions .button{flex:1;min-width:130px}.quota-wa-list article{align-items:stretch;flex-direction:column}.quota-wa-list .button{width:100%}}
@media(max-width:430px){.cuotas-dashboard{grid-template-columns:1fr}.v110-table-actions{display:grid;grid-template-columns:1fr}.v110-table-actions .button{width:100%}}

/* SIGVE v2.2 · catálogo y selector de vías */
.admin-via-grid{display:grid;grid-template-columns:1fr 2fr;gap:1rem}.admin-via-grid .full{grid-column:1/-1}.via-picker{position:relative}.via-suggestions{position:absolute;z-index:3000;left:0;right:0;top:calc(100% + 4px);max-height:230px;overflow:auto;background:#fff;border:1px solid #cbd5d1;border-radius:9px;box-shadow:0 12px 28px rgba(0,0,0,.16);padding:.3rem}.via-suggestion{display:block;width:100%;text-align:left;border:0;background:#fff;padding:.65rem .75rem;border-radius:6px;cursor:pointer}.via-suggestion:hover{background:#eef6f1}.via-empty{padding:.75rem;color:#667085}.address-preview{margin:.4rem 0;padding:.65rem .8rem;border-radius:8px;background:#eef6f1}.via-inactive{opacity:.62}@media(max-width:650px){.admin-via-grid{grid-template-columns:1fr}}
