
.reports-window{top:12px;left:24px;width:min(1380px,calc(100vw - 48px));height:calc(100dvh - 62px);display:flex;flex-direction:column;background:var(--nuvile-paper)}.report-shell{display:flex;flex:1;min-height:0;overflow:hidden}.report-nav{width:205px;flex:none;background:var(--nuvile-soft);border-right:1px solid var(--nuvile-soft);padding:14px 10px;overflow:auto}.report-nav>small{display:block;letter-spacing:1.6px;font-size:10px;margin:4px 8px 12px;color:#647a67}.report-nav>button{display:block;text-align:left;border:0;background:none;width:100%;padding:10px;border-radius:4px;font-size:13px;color:var(--nuvile-primary)}.report-nav>button.active{background:var(--nuvile-primary);color:#fff}.report-nav hr{border:0;border-top:1px solid var(--nuvile-border);margin:15px 0}.report-main{flex:1;min-width:0;min-height:0;padding:16px;display:flex;flex-direction:column;gap:10px}.report-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.report-heading small{font-size:10px;letter-spacing:1.4px;color:var(--nuvile-muted)}.report-heading h2{margin:5px 0;font-size:24px}.report-scope{font-size:11px;color:#718270}.report-filters{display:flex;gap:8px;align-items:end;flex-wrap:wrap;background:var(--nuvile-paper);border:1px solid var(--nuvile-soft);padding:10px;border-radius:4px;margin:0}.report-filters label{font-size:11px;margin:0;min-width:115px;flex:1}.report-filters input,.report-filters select,.report-nav select,.report-modal input,.report-modal select{font-size:12px;height:31px;padding:4px 6px;margin:3px 0 0}.report-filters button{width:auto;height:32px;font-size:12px;padding:6px 16px;margin:0}.report-client{position:relative;flex:1;min-width:170px}.report-client [data-client-label]{font-size:10px}.report-client .lookup-results{position:absolute;top:100%;left:0;z-index:10;width:min(650px,65vw);max-height:250px;overflow:auto}.report-check{display:flex;align-items:center;gap:5px;min-width:auto!important;white-space:nowrap;flex:0!important}.report-check input{width:15px;height:15px;margin:0}.report-tools{display:flex;align-items:center;gap:12px;font-size:11px;color:var(--nuvile-muted)}.report-tools input{width:300px;max-width:60%;height:30px;font-size:12px;padding:5px 8px}.report-tools button{margin-left:auto;font-size:12px;padding:5px 10px}.report-grid{flex:1;min-height:100px;overflow:auto;border:1px solid var(--nuvile-soft)}.report-grid table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}.report-grid td,.report-grid th{padding:6px 9px;border-bottom:1px solid var(--nuvile-soft);text-align:left;height:30px}.report-grid th{background:var(--nuvile-soft);position:sticky;top:0;z-index:1;font-size:11px}.report-grid .numeric{text-align:right;font-variant-numeric:tabular-nums}.report-grid tr:focus,.report-grid tr.selected{outline:1px solid var(--nuvile-muted);background:var(--nuvile-soft)}.report-grid tbody tr:hover{background:var(--nuvile-soft)}.report-grid tfoot{font-weight:bold;background:var(--nuvile-soft)}.report-grid tfoot td{position:sticky;bottom:0;border-top:1px solid var(--nuvile-muted)}.report-page{display:flex;align-items:center;gap:10px;font-size:12px;flex:none}.report-page strong{margin-left:auto;font-size:13px}.report-page button,.report-footer button{height:34px;padding:6px 10px;font-size:12px;margin:0;white-space:nowrap}.report-footer{display:flex;gap:7px;justify-content:flex-end;flex-wrap:wrap;border-top:1px solid var(--nuvile-soft);padding-top:9px;flex:none}.report-share-note{font-size:10px;color:var(--nuvile-muted)}.report-warnings:empty{display:none}.report-warnings{padding:7px 10px;font-size:11px;background:var(--nuvile-soft);border:1px solid var(--nuvile-border);border-radius:4px;max-height:70px;overflow:auto}.report-main>.error{padding:8px;font-size:12px;margin:0}.report-nav [data-builder] label{display:block;font-size:12px;margin:10px 0 4px}.report-nav [data-builder] small{display:block;font-size:10px;color:#6d7966;margin:7px 0}.report-nav select[multiple]{height:auto}.report-nav [data-builder] button{display:block;width:100%;font-size:12px;padding:8px;margin:10px 0}.report-modal{padding:0;width:min(680px,calc(100vw - 30px));background:var(--nuvile-paper)}.report-modal .dialog-head{padding:12px 18px;background:var(--nuvile-primary);color:#fff;display:flex;justify-content:space-between;align-items:center}.report-modal-body{padding:18px;max-height:70dvh;overflow:auto;font-size:13px}.report-modal-body label{display:block;margin-bottom:12px}.report-modal-body select[multiple]{height:auto;width:100%}.report-modal-body footer{display:flex;justify-content:flex-end;gap:8px;margin-top:15px}.report-modal-body footer button{width:auto;padding:8px 16px;font-size:13px;margin:0}.report-saved-item{display:flex;justify-content:space-between;width:100%;padding:12px;margin-bottom:8px;gap:10px}.report-chart{flex:none;max-height:225px;overflow:auto;border:1px solid var(--nuvile-soft);padding:10px;font-size:11px}.report-chart>strong{display:block;margin-bottom:8px}.report-bar{display:grid;grid-template-columns:minmax(100px,220px) 1fr 115px;gap:12px;align-items:center;height:22px}.report-bar>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.report-bar>div{background:var(--nuvile-soft);height:12px}.report-bar i{display:block;height:100%}.report-bar b{text-align:right}.reports-loading{padding:20px}
@media(max-width:950px){.report-nav{width:175px}.report-main{padding:10px}.report-heading h2{font-size:20px}.report-scope{display:none}.report-footer{gap:4px}.report-footer button{font-size:11px;padding:5px 7px}.report-page strong{font-size:11px}}@media(max-width:640px){.reports-window{left:4px;top:4px;width:calc(100vw - 8px);height:calc(100dvh - 40px)}.report-shell{flex-direction:column;overflow:auto}.report-nav{width:auto;max-height:160px;flex:none}.report-nav>button{display:inline-block;width:auto;padding:6px}.report-main{min-height:650px;overflow:visible}.report-nav [data-builder]{display:flex;gap:6px;flex-wrap:wrap}.report-nav [data-builder] label{width:46%}.report-grid{min-height:200px}.report-page{flex-wrap:wrap}.report-page strong{width:100%}}

.reports-window table[data-grid] caption.grid-tools{text-align:left}.report-nav{display:block}

.report-bar i{background:var(--nuvile-muted)}.report-bar i.negative{background:#aa6545}

/* Los totales necesitan fondo propio al quedar fijos sobre las filas. */
.report-grid tfoot td{background:var(--nuvile-soft);z-index:3;box-shadow:0 -1px 0 var(--nuvile-muted);height:34px}
.report-grid td,.report-grid th{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.report-grid table{table-layout:fixed;min-width:1050px}
.report-grid th[data-column-key="razon_social"],.report-grid th[data-column-key="cliente"]{width:260px}
.report-grid th[data-column-key="direccion"]{width:210px}
.report-grid th[data-column-key="telefono"]{width:170px}
.report-grid th.numeric{width:150px}
.report-grid th[data-column-key="codigo"]{width:80px}
.report-grid th[data-column-key="cuit"]{width:130px}
.report-grid th[data-column-key="saldo_neto"],.report-grid th[data-column-key="saldo"]{width:170px}
.report-grid th[data-column-key="vendedor"]{width:150px}

.report-axis-summary{display:grid;gap:5px;padding:10px 0;font-size:12px}.report-axis-summary span{overflow-wrap:anywhere;margin-bottom:8px}.report-axes-modal{width:min(1150px,95vw)!important;max-width:95vw!important}.report-axis-panels{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:14px}.report-axis-panels section{border:1px solid var(--nuvile-soft);border-radius:5px;padding:12px;min-width:0}.report-axis-panels h3{margin:0 0 12px;font-size:15px}.report-axis-field{display:flex;align-items:center;gap:5px;border-bottom:1px solid var(--nuvile-soft);padding:7px 0}.report-axis-field span{flex:1;min-width:0}.report-axis-field button{padding:4px 7px;min-height:28px;font-size:12px}.report-axes-modal .report-modal-body{max-height:75vh;overflow:auto}@media(max-width:760px){.report-axis-panels{grid-template-columns:1fr}}

.report-ledger-modal{width:min(1380px,96vw);max-width:96vw;height:90dvh;max-height:94dvh}.report-ledger-modal[open]{display:flex;flex-direction:column}.report-ledger-modal>.report-modal-body{padding:0;flex:1;min-height:0;max-height:none;overflow:hidden}.report-ledger-modal .reports-window{position:static;inset:auto;width:100%;height:100%;resize:none;border:0;box-shadow:none;min-width:0;min-height:0}.report-ledger-modal .reports-window>.window-title{display:none}.report-tools [data-detail-hint]{font-size:12px;color:var(--nuvile-primary)}.report-tools{flex-wrap:wrap}

.document-detail-modal{width:min(1100px,95vw);max-width:95vw;padding:0}.document-detail-modal .dialog-head{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;background:var(--nuvile-primary);color:white}.document-detail-body{padding:18px;max-height:70vh;overflow:auto}.document-detail-table{overflow:auto}.document-detail-table table{width:100%;border-collapse:collapse;font-size:13px}.document-detail-table td,.document-detail-table th{padding:7px;border-bottom:1px solid var(--nuvile-soft);text-align:left}.document-detail-modal footer{padding:12px 18px;display:flex;justify-content:flex-end}.document-detail-modal footer button{width:auto}[data-document-ref]{cursor:pointer}

.report-grid th[data-column-key="observaciones"]{width:280px}

.source-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:14px 0}.source-fields fieldset{border:1px solid var(--nuvile-border);padding:14px}.source-form small{display:block;font-size:11px;color:var(--nuvile-muted)}.source-form textarea{width:100%;font:13px monospace}.source-list{margin-top:16px}.source-fields .report-check{margin:8px 0}

/* Configuración ampliada del cubo: tarjetas compactas y desplazamiento dentro del modal. */
.cube-options{width:min(1040px,95vw)!important;border-radius:12px;overflow:hidden}
.cube-options[open]{display:flex;flex-direction:column;max-height:calc(100dvh - 32px)}
.cube-options>.dialog-head{flex:none}.cube-options>.report-modal-body{min-height:0;overflow:auto;max-height:none}
.cube-intro{display:flex;gap:16px;align-items:center;margin-bottom:20px}.cube-intro h3{font-size:20px;margin:0 0 6px;color:var(--nuvile-primary)}.cube-intro p{margin:0;color:var(--nuvile-muted)}.cube-icon{font-size:30px;color:var(--nuvile-muted);background:var(--nuvile-soft);border-radius:12px;padding:12px}
.cube-rule{display:flex;align-items:end;gap:10px;padding:12px;background:var(--nuvile-paper);border:1px solid var(--nuvile-soft);border-radius:9px;margin:8px 0}.cube-rule label{flex:1;min-width:0;margin:0}.cube-rule input,.cube-rule select{width:100%;height:35px}.cube-rule button{flex:none;width:32px;height:35px;padding:4px;margin:0}.cube-options [data-add-rule]{width:auto;padding:8px 14px}.cube-note{color:var(--nuvile-muted);font-size:12px}.cube-options footer{position:sticky;bottom:-18px;background:var(--nuvile-paper);padding:12px 0;border-top:1px solid var(--nuvile-soft)}
.report-axis-panels section{max-height:52dvh;overflow:auto}.report-axis-field[hidden]{display:none}
@media(max-width:700px){.cube-rule{flex-wrap:wrap}.cube-rule label{flex-basis:42%}}

.report-library{width:min(1040px,95vw)!important;border-radius:12px;overflow:hidden}.report-library .report-modal-body{max-height:calc(90dvh - 70px)}.library-tools{display:flex;gap:12px;margin-bottom:18px}.library-tools input{flex:1;height:36px}.library-tools select{width:220px;height:36px}.library-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.report-library .library-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:10px;padding:18px;margin:0;width:100%;min-height:162px;border:1px solid var(--nuvile-soft);background:var(--nuvile-paper);border-radius:12px;color:var(--nuvile-primary);white-space:normal}.library-card:hover{border-color:var(--nuvile-muted);background:var(--nuvile-soft)}.library-card strong{font-size:16px}.library-card>span{font-size:12px;line-height:1.4}.library-card .library-badge{font-size:10px;letter-spacing:.6px;text-transform:uppercase;color:var(--nuvile-muted)}.library-card .library-open{margin-top:auto;font-weight:600}.report-nav [data-builder] label[hidden]{display:none}@media(max-width:650px){.library-cards{grid-template-columns:1fr}.library-tools{flex-wrap:wrap}.library-tools select{width:100%}}

.report-page strong{white-space:normal;text-align:right;overflow-wrap:anywhere}.report-page{flex-wrap:wrap}

@media(min-width:1051px){.reports-window.report-tree-editor:not(.maximized){left:292px;width:calc(100vw - 304px)}}
@media(min-width:701px) and (max-width:1050px){.reports-window.report-tree-editor:not(.maximized){left:253px;width:calc(100vw - 261px)}}
.report-axis-summary{color:var(--nuvile-primary)}

.report-standard-fields{display:grid;gap:5px;margin:12px 0}.report-standard-field{display:flex;align-items:center;gap:4px;border-bottom:1px solid var(--nuvile-soft);padding:5px 0}.report-nav [data-builder] .report-standard-field label{display:flex;align-items:center;gap:7px;flex:1;margin:0;color:var(--nuvile-primary)}.report-standard-field input{width:14px;height:14px;flex:none}.report-nav [data-builder] .report-standard-field button{width:25px;padding:3px;margin:0}.report-config-hint{font-size:11px;line-height:1.45;color:#60715e}.report-nav h3{font-size:16px;color:var(--nuvile-primary)}

.report-standard-field[hidden]{display:none}.report-standard-fields{max-height:43dvh;overflow:auto}.report-nav [data-standard-search]{width:100%;font-size:12px;height:32px}

.report-axis-guide{background:var(--nuvile-soft);border:1px solid var(--nuvile-soft);border-radius:8px;padding:12px 16px;margin-bottom:14px;line-height:1.5}.report-axis-guide p{margin:6px 0}.report-axis-help{font-size:12px;color:#61725e;line-height:1.45}.report-axis-panels{grid-template-columns:1.35fr 1fr 1fr}
.fiscal-export-entry{display:flex;align-items:center;gap:12px;width:100%;padding:16px!important;margin-top:14px;border-radius:10px!important;text-align:left}
.fiscal-export-entry span{flex:1}.fiscal-export-entry strong,.fiscal-export-entry small{display:block}.fiscal-export-entry small{margin-top:4px;font-size:12px;opacity:.8}
.fiscal-export-modal{width:min(760px,94vw)!important;max-height:92dvh;overflow:auto}.fiscal-export-modal .report-modal-body{padding:22px}.fiscal-intro{display:flex;gap:16px;align-items:center}.fiscal-intro small{letter-spacing:1.2px;color:var(--nuvile-muted);font-size:11px}.fiscal-intro h2{margin:4px 0;font-size:24px}.fiscal-intro p{margin:0}.fiscal-icon{background:var(--nuvile-soft);border-radius:12px;padding:18px;color:var(--nuvile-muted)}.fiscal-icon svg{width:28px;height:28px}.fiscal-format{display:grid;gap:4px;padding:16px;border:1px solid var(--nuvile-border);border-radius:10px;margin-top:20px;background:var(--nuvile-soft)}.fiscal-format span,.fiscal-scope{font-size:12px;color:var(--nuvile-muted)}.fiscal-scope{padding:12px;border-radius:8px;background:var(--nuvile-soft)}.fiscal-counts{display:flex;gap:12px;margin:18px 0}.fiscal-counts div{flex:1;border:1px solid var(--nuvile-border);border-radius:9px;padding:12px}.fiscal-counts b{font-size:23px;display:block}.fiscal-counts span{font-size:12px}.fiscal-files>div{display:flex;gap:12px;align-items:center;border-top:1px solid var(--nuvile-border);padding:12px 0}.fiscal-files span{overflow-wrap:anywhere;font-size:12px}.fiscal-files small{display:block;opacity:.75}.fiscal-issues{background:var(--nuvile-paper);border-radius:8px;padding:14px;max-height:220px;overflow:auto}.fiscal-issues p{font-size:13px}.fiscal-success{color:var(--nuvile-primary)}.fiscal-export-modal footer{display:flex;gap:8px;justify-content:flex-end;margin-top:20px;flex-wrap:wrap}

.fiscal-export-modal[open]{display:flex;flex-direction:column;overflow:hidden;max-height:92dvh}.fiscal-export-modal>.dialog-head,.fiscal-export-modal>footer{flex:none}.fiscal-export-modal>.report-modal-body{min-height:0;overflow:auto;max-height:none;padding:18px 22px}.fiscal-export-modal>footer{margin:0;padding:14px 22px;border-top:1px solid var(--nuvile-border);background:var(--nuvile-paper)}.fiscal-export-modal .fiscal-intro h2{font-size:22px}.fiscal-export-modal .fiscal-format{margin-top:14px;padding:12px}.fiscal-export-modal .fiscal-counts{margin:12px 0}.fiscal-export-modal .fiscal-files>div{padding:9px 0}
.fiscal-export-modal>footer button{width:auto!important;margin:0!important;min-height:36px;padding:8px 15px}.fiscal-export-modal>footer{align-items:center}.fiscal-export-modal .report-modal-body>p{font-size:13px;line-height:1.45}

.tax-date-range{display:grid;grid-template-columns:1fr 1fr;gap:12px}.fiscal-files button{flex:none;width:auto!important}.fiscal-files strong{display:block}@media(max-width:600px){.tax-date-range{grid-template-columns:1fr}}

.document-detail-modal{width:min(850px,calc(100vw - 32px))}.document-detail-modal .document-identity{display:flex;flex-wrap:wrap;gap:20px;justify-content:space-between;border-bottom:1px solid var(--nuvile-border);padding-bottom:14px;margin-bottom:14px}.document-detail-modal h3{font-size:15px;margin:4px 0 12px}.document-detail-modal .document-identity p{margin:4px 0}.document-detail-modal small{color:var(--nuvile-muted);font-size:12px}.document-detail-modal .document-notes{margin:14px 0}.document-detail-modal .document-notes p{margin:4px 0}.document-detail-modal .document-total{display:flex;justify-content:space-between;padding:12px;background:var(--nuvile-soft);gap:12px}.document-detail-modal .document-detail-table th{letter-spacing:0;text-transform:none;font-size:12px}.document-detail-modal .document-detail-table td{padding:6px 8px}.document-detail-modal .document-detail-table th:last-child,.document-detail-modal .document-detail-table td:last-child{text-align:right}.document-detail-modal footer{gap:10px;align-items:center;flex-wrap:wrap}.document-detail-modal footer .delivery-options{display:flex;gap:8px;flex-wrap:wrap;border:0;padding:0;margin:0}.document-detail-modal footer button{min-height:36px;padding:8px 12px;margin:0}

/* Compact report filters, matching the approved two-row layout. */
.reports-window .report-filters{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:8px 10px;padding:10px;flex:none;background:var(--nuvile-soft)}
.reports-window .report-filters>label{grid-column:span 3;min-width:0;width:auto}
.reports-window .report-filters>.report-client{grid-column:span 6;min-width:0;order:-2}
.reports-window .report-filters>label:has([name=desde]),.reports-window .report-filters>label:has([name=hasta]){order:-1}
.reports-window .report-filters>label:has([name=vendedor]){grid-column:span 4}
.reports-window .report-filters>button[type=submit]{grid-column:span 2;align-self:end;padding:5px 8px}
.reports-window .report-filters input:not([type=checkbox]),.reports-window .report-filters select{width:100%;min-width:0;margin:3px 0 0;height:32px}
.reports-window .report-filters>.report-check{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:32px;white-space:normal;line-height:1.3}
.reports-window .report-filters .report-check input[type=checkbox]{flex:0 0 18px;width:18px;height:18px;min-width:18px;margin:0;padding:0}
.reports-window .report-client-field{display:flex;gap:5px;align-items:end;min-width:0}
.reports-window .report-client-field input{flex:1;min-width:0}
.reports-window .report-client-field button{flex:none;padding:5px 8px}
.reports-window .report-filters [hidden]{display:none!important}
.reports-window .report-main{gap:8px}
.reports-window .report-heading h2{font-size:20px;margin:3px 0}
.reports-window .report-page,.reports-window .report-footer{flex:none}
.report-client-result{display:block;width:100%;text-align:left;margin:4px 0}
@media(max-width:600px){.reports-window .report-filters>.report-client{grid-column:span 12}.reports-window .report-filters>label,.reports-window .report-filters>label:has([name=vendedor]),.reports-window .report-filters>button[type=submit]{grid-column:span 6}}

/* Readability adjustment: keep compact geometry while increasing screen text. */
.reports-window .report-grid table,.reports-window .report-grid td{font-size:14px}
.reports-window .report-grid th{font-size:13px;letter-spacing:0}
.reports-window .report-filters label,.reports-window .report-client [data-client-label],.reports-window .report-tools,.reports-window .report-warnings{font-size:13px}
.reports-window .report-filters input,.reports-window .report-filters select,.reports-window .report-filters button,.reports-window .report-tools input,.reports-window .report-nav select,.reports-window .report-nav button,.reports-window .report-page,.reports-window .report-page button,.reports-window .report-footer button{font-size:14px}
.reports-window .report-nav label,.reports-window .report-nav [data-builder] label,.reports-window .report-nav [data-builder] small,.reports-window .report-heading small,.reports-window .report-scope,.reports-window .report-share-note{font-size:12px;letter-spacing:0}
.reports-window .report-page strong{font-size:14px}

/* Comfortable reading at Full HD, including browser chrome reducing height. */
.reports-window .report-grid table,.reports-window .report-grid td{font-size:16px}
.reports-window .report-grid th,.reports-window .report-filters label,.reports-window .report-client [data-client-label],.reports-window .report-tools,.reports-window .report-warnings{font-size:14px}
.reports-window .report-filters input,.reports-window .report-filters select,.reports-window .report-tools input,.reports-window .report-nav select{font-size:16px}
.reports-window .report-nav{width:230px}
.reports-window .report-nav button{white-space:normal;overflow-wrap:anywhere;height:auto;min-height:34px}
@media(max-width:640px){.reports-window .report-nav{width:auto}}
