/* Navegación 23: estilos locales; no redefine el tema ni la barra lateral. */
.cm-module-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:24px 32px 0;flex-wrap:wrap}.cm-module-heading h1{margin:0;font-size:1.65rem}
.cm-module-view{min-width:0}.cm-module-view .table-responsive{overflow:auto;max-height:60svh}.cm-module-view table{border-collapse:collapse}.cm-module-view th{position:sticky;top:0;background:var(--card-bg);z-index:1}
.cm-module-view .modal-overlay{padding:16px}.cm-module-view .modal{max-height:94svh;overflow:auto}.cm-module-view .modal-large{width:min(1200px,94svw);max-width:94svw}.cm-module-view input,.cm-module-view select,.cm-module-view textarea{max-width:100%}
.cm-module-view .table-responsive:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
@media(max-width:900px){.cm-module-heading{margin:16px 16px 0}.cm-module-heading h1{font-size:1.4rem}.cm-module-view .modal-overlay{padding:8px}.cm-module-view .modal-large{width:96svw;max-width:96svw}}

#invoiceModal .modal{max-width:94svw;width:94svw;max-height:94svh;overflow:hidden}#invoiceForm{display:flex;flex-direction:column;overflow:hidden}#invoiceForm .modal-body{padding:20px;overflow:auto;min-height:0}#invoiceForm .form-grid{padding:16px 0;grid-template-columns:repeat(3,minmax(0,1fr))}#invoiceForm .form-group{min-width:0}#invoiceForm select,#invoiceForm input,#invoiceForm textarea{width:100%;min-width:0}#invoiceLinesBody select{min-width:180px}#invoiceLinesBody input{min-width:90px}.cm-billing-totals{display:flex;gap:24px;justify-content:flex-end;flex-wrap:wrap;margin:20px 0}.cm-billing-totals strong{display:block}#invoiceForm .modal-footer{flex:0 0 auto;display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
@media(max-width:700px){#invoiceForm .form-grid{grid-template-columns:1fr}#invoiceForm .modal-body{padding:14px}#invoiceForm .modal-footer button{flex:1}.cm-billing-totals{justify-content:space-between}}
[data-cm-theme=dark] .cm-module-view .btn.btn-secondary{background:#20372b;color:#cae2d2;border-color:#405f4b}[data-cm-theme=dark] .cm-module-view .btn.btn-secondary:hover{background:#2a4937;color:#e5f6eb}
