.fx-workspace{--fx-text:var(--theme-text,var(--ink,#173049));--fx-muted:var(--theme-muted,var(--muted,#52677b));--fx-surface:var(--theme-surface,var(--white,#fff));--fx-border:var(--theme-border,var(--line,#d9e2ee));--fx-soft:var(--theme-surface-raised,var(--paper,#f3f6fa));color:var(--fx-text);min-width:0;max-width:1500px;margin:0 auto}.fx-workspace *,.fx-modal-body *{box-sizing:border-box}.fx-head,.fx-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.fx-head{margin-bottom:20px}.fx-head h1{margin:3px 0 8px;font-size:clamp(24px,3vw,34px);line-height:1.15}.fx-head p,.fx-section-head p{margin:0;color:var(--fx-muted);max-width:75ch}.fx-eyebrow{font-size:12px!important;text-transform:uppercase;letter-spacing:.07em;font-weight:700}.fx-head-actions,.fx-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.fx-head-actions{justify-content:flex-end}.fx-workspace .button,.fx-modal-body .button{min-height:44px;white-space:normal}.fx-workspace .button.primary,.fx-modal-body .button.primary{color:var(--theme-accent-contrast,#fff)}.fx-tabs{display:flex;gap:6px;overflow-x:auto;padding:5px 0 12px;margin:14px 0 8px;scrollbar-width:thin}.fx-tabs button{border:1px solid var(--fx-border);border-radius:10px;padding:12px 18px;background:var(--fx-surface);color:var(--fx-text);font:inherit;font-weight:600;white-space:nowrap;min-height:44px}.fx-tabs button.is-active{background:var(--theme-accent,var(--teal,#1e61cc));color:var(--theme-accent-contrast,#fff);border-color:var(--theme-accent,var(--teal,#1e61cc))}.fx-panel{background:var(--fx-surface);border:1px solid var(--fx-border);border-radius:16px;padding:24px;margin-bottom:20px;min-width:0}.fx-panel h2{font-size:19px;margin:0 0 8px}.fx-panel h3{font-size:16px;margin:24px 0 10px}.fx-section-head{margin-bottom:18px;align-items:center}.fx-section-head .fx-field{flex:0 0 175px}.fx-notice{border:1px solid #cbd9eb;background:#edf4ff;color:#173a68;padding:15px 18px;border-radius:12px;line-height:1.5;margin:12px 0}.fx-notice p{margin:5px 0 0;color:inherit}.fx-warning{background:#fff5dd!important;color:#714b06!important;border-color:#ead49e!important}.fx-danger{background:#fff0ef!important;color:#992b23!important;border-color:#efc3be!important}.fx-success{background:#e7f6ed!important;color:#17613a!important;border-color:#b9dec8!important}.fx-neutral{background:#edf2f7;color:#304b66;border-color:#d0dce7}.fx-fiscal-note{font-size:13px}.fx-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:12px 0 20px}.fx-metrics>div{display:flex;flex-direction:column;gap:8px;min-width:0;border:1px solid var(--fx-border);border-radius:14px;background:var(--fx-surface);padding:20px}.fx-metrics span,.fx-metrics small{color:var(--fx-muted);font-size:13px}.fx-metrics strong{font-size:25px;line-height:1.2;overflow-wrap:anywhere}.fx-badge{display:inline-flex;align-items:center;font-size:12px;font-weight:700;border:1px solid transparent;border-radius:100px;padding:4px 9px;vertical-align:middle;line-height:1.35;max-width:100%}.fx-table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;clear:both}.fx-workspace table,.fx-modal-body table{width:100%;min-width:650px;border-collapse:collapse;font-size:14px;background:transparent;color:var(--fx-text,#173049)}.fx-workspace th,.fx-modal-body th{text-align:left;font-size:12px;color:var(--fx-muted,#52677b);background:var(--fx-soft,#f3f6fa);font-weight:700;white-space:nowrap}.fx-workspace th,.fx-workspace td,.fx-modal-body th,.fx-modal-body td{padding:13px 12px;border-bottom:1px solid var(--fx-border,#d9e2ee);vertical-align:middle;overflow-wrap:anywhere}.fx-workspace td small,.fx-modal-body td small{display:block;color:var(--fx-muted,#52677b);font-size:12px;margin-top:5px;max-width:35ch}.fx-workspace td strong{font-size:14px}.fx-amount{white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:650}.fx-empty{padding:32px 20px;text-align:center;color:var(--fx-muted);line-height:1.5}.fx-empty strong{display:block;color:var(--fx-text)}.fx-empty p{max-width:65ch;margin:8px auto 16px}.fx-loading{padding:32px;text-align:center;color:var(--fx-muted)}.fx-helper{font-size:13px;line-height:1.55;color:var(--fx-muted,#52677b);margin:10px 0}.fx-bottom-note{margin:20px 0}.fx-fields,.fx-list-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.fx-list-tools{max-width:760px;margin:18px 0}.fx-field{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:13px;font-weight:600;line-height:1.4}.fx-field>span{color:var(--fx-text,#173049)}.fx-full{grid-column:1/-1}.fx-field input,.fx-field select,.fx-field textarea{width:100%;min-width:0;min-height:44px;padding:11px 12px;border-radius:9px;border:1px solid var(--fx-border,#cdd8e4);background:var(--fx-surface,#fff);color:var(--fx-text,#173049);font:inherit;font-size:16px}.fx-field input[type=file]{font-size:13px;padding:9px}.fx-field input[type=file]::file-selector-button{border:0;border-radius:6px;background:#e7edf5;color:#24466b;min-height:28px;max-width:100%;margin-right:8px;cursor:pointer}.fx-check{display:flex;align-items:flex-start;gap:10px;margin:18px 0;font-size:14px;line-height:1.55;color:var(--fx-text,#173049);cursor:pointer}.fx-check input{flex:0 0 20px;width:20px;height:20px;min-height:20px;margin-top:2px;accent-color:var(--theme-accent,var(--teal,#1e61cc))}.fx-check span{min-width:0}.fx-production{margin-top:24px;padding:18px;background:#fff7e7;border:1px solid #ead8b0;border-radius:12px;color:#4d3a16}.fx-production h3,.fx-production .fx-check,.fx-production .fx-helper{color:#4d3a16;margin-top:0}.fx-production .fx-check{margin:14px 0}.fx-sequence{margin:16px 0;border:1px solid var(--fx-border);border-radius:12px;padding:18px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;min-width:0}.fx-sequence legend{font-size:13px;font-weight:700;padding:0 8px}.fx-sequence-next{display:flex;flex-direction:column;gap:6px;padding-top:3px;font-size:12px;color:var(--fx-muted)}.fx-sequence-next strong{color:var(--fx-text);font-size:15px}.fx-sequence-next small{font-size:12px;line-height:1.5}.fx-sequence>.fx-helper{margin:0;align-self:center}.fx-record{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0}.fx-record div{min-width:0}.fx-record dt{font-size:12px;color:var(--fx-muted,#52677b);margin-bottom:6px}.fx-record dd{margin:0;line-height:1.5;color:var(--fx-text,#173049);overflow-wrap:anywhere;font-size:14px}.fx-record dd small{display:block;color:var(--fx-muted,#52677b);font-size:12px;margin-top:5px}.fx-checklist{list-style:none;padding:0;margin:20px 0 0}.fx-checklist li{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--fx-border)}.fx-checklist li>span:nth-child(2){flex:1;min-width:0;font-size:14px}.fx-checklist li>span:first-child{font-size:20px;color:var(--fx-muted);flex:0 0 24px}.fx-checklist li.fx-complete>span:first-child{color:#26804d}.fx-connection{border-top:1px solid var(--fx-border);margin-top:24px;padding-top:22px}.fx-form-error{background:#fff0ef;color:#992b23;border:1px solid #efc3be;border-radius:9px;padding:12px 14px;font-size:14px;line-height:1.5}.fx-form-error[hidden]{display:none}.fx-modal-body{--fx-text:var(--theme-text,var(--ink,#173049));--fx-muted:var(--theme-muted,var(--muted,#52677b));--fx-surface:var(--theme-surface,var(--white,#fff));--fx-border:var(--theme-border,var(--line,#d9e2ee));--fx-soft:var(--theme-surface-raised,var(--paper,#f3f6fa));color:var(--fx-text);min-width:0}.fx-source-preview{padding:18px;background:var(--fx-soft);border:1px solid var(--fx-border);border-radius:12px;margin-bottom:22px}.fx-source-preview h3{margin:0 0 5px}.fx-source-preview p{margin:5px 0}.fx-source-preview>strong{display:block;font-size:25px;margin:14px 0;color:var(--fx-text)}.fx-document-head{display:flex;align-items:flex-start;gap:20px;justify-content:space-between;border-bottom:1px solid var(--fx-border);padding-bottom:20px}.fx-document-head h3{font-size:24px;margin:6px 0;overflow-wrap:anywhere}.fx-document-head p{margin:5px 0;line-height:1.5}.fx-document-total{text-align:right;min-width:145px}.fx-document-total span{display:block;color:var(--fx-muted);font-size:12px}.fx-document-total strong{display:block;font-size:25px;margin-top:8px;white-space:nowrap}.fx-totals{margin:24px 0 20px auto;max-width:340px}.fx-totals>div{display:flex;gap:20px;justify-content:space-between;padding:8px 0;font-size:14px}.fx-totals dt{color:var(--fx-muted)}.fx-totals dd{margin:0;font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:600}.fx-totals .fx-grand-total{border-top:1px solid var(--fx-border);padding-top:14px;margin-top:8px;font-size:19px}.fx-grand-total dt{color:var(--fx-text);font-weight:700}.fx-workspace :focus-visible,.fx-modal-body :focus-visible{outline:3px solid #3b83f6;outline-offset:3px}.fx-workspace button[disabled],.fx-modal-body button[disabled]{cursor:not-allowed;opacity:.6}
@media(max-width:900px){.fx-head{flex-wrap:wrap}.fx-head-actions{justify-content:flex-start}.fx-sequence{grid-template-columns:repeat(2,minmax(0,1fr))}.fx-panel{padding:20px}.fx-head p{max-width:65ch}}
@media(max-width:600px){.fx-head{gap:14px}.fx-head h1{font-size:26px}.fx-head>div:first-child{width:100%}.fx-head-actions{width:100%;justify-content:space-between}.fx-panel{padding:16px;border-radius:12px}.fx-metrics{grid-template-columns:1fr;gap:10px}.fx-metrics>div{padding:15px;gap:5px}.fx-metrics strong{font-size:22px}.fx-metrics small{font-size:12px}.fx-section-head{align-items:stretch;flex-direction:column;gap:12px}.fx-section-head .fx-field{flex:initial;width:100%}.fx-fields,.fx-list-tools,.fx-record{grid-template-columns:1fr}.fx-sequence{grid-template-columns:1fr;padding:15px}.fx-sequence .fx-field{grid-column:auto}.fx-notice{padding:13px 14px}.fx-tabs{margin-top:10px;gap:6px}.fx-tabs button{padding:11px 14px;font-size:13px}.fx-table-wrap{position:relative}.fx-workspace table,.fx-modal-body table{font-size:13px}.fx-workspace th,.fx-workspace td,.fx-modal-body th,.fx-modal-body td{padding:12px 10px}.fx-table-wrap::after{content:'Desliza para ver las columnas →';display:block;font-size:11px;color:var(--fx-muted);padding:10px 2px}.fx-document-head{display:block}.fx-document-total{text-align:left;margin-top:20px}.fx-document-total strong{font-size:25px}.fx-totals{max-width:none}.fx-actions>.button{flex:1 1 180px;text-align:center;justify-content:center}.fx-workspace .fx-actions{margin-top:15px}.fx-checklist li{align-items:flex-start}.fx-checklist .fx-badge{font-size:11px}.fx-modal-body .fx-table-wrap{max-width:100%}.fx-production{padding:14px}}
@media print{.fx-document{color:#102b44!important;background:#fff!important}.fx-document .fx-actions,.fx-document form,.fx-document .fx-notice{display:none!important}.fx-document .fx-table-wrap{overflow:visible}.fx-document table{min-width:0}.fx-document-head,.fx-record,.fx-totals{break-inside:avoid}}
.fx-source-modes{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.fx-source-tools{display:grid;grid-template-columns:180px auto minmax(180px,1fr);gap:18px;align-items:end;margin:18px 0}.fx-source-tools .fx-check{margin:0 0 10px}.fx-rnc-result{border-top:1px solid var(--fx-border);padding-top:18px;margin-top:20px}.fx-item{display:grid;grid-template-columns:minmax(150px,2fr) minmax(75px,.8fr) minmax(105px,1fr) auto;gap:12px;padding:16px 0;border-bottom:1px solid var(--fx-border);align-items:end}.fx-composer-total{text-align:right;font-size:18px;border-top:1px solid var(--fx-border);padding-top:15px;margin:20px 0}.fx-print-options{border-top:1px solid var(--fx-border);padding-top:16px;margin:18px 0}.fx-modal-body form>h3{margin:24px 0 8px}.fx-modal-body [data-fiscal-rnc-feedback]{align-self:center;overflow-wrap:anywhere}.fx-rnc-result h3{overflow-wrap:anywhere}@media(max-width:800px){.fx-source-tools{grid-template-columns:1fr 1fr}.fx-source-tools .fx-field:last-child{grid-column:1/-1}.fx-item{grid-template-columns:1fr 1fr}.fx-item>.fx-field:first-child{grid-column:1/-1}.fx-item>.button{grid-column:1/-1;justify-self:end}}@media(max-width:500px){.fx-source-modes{display:grid;grid-template-columns:1fr;width:100%}.fx-source-modes>.button{width:100%;text-align:center}.fx-source-tools{grid-template-columns:1fr}.fx-source-tools .fx-field:last-child{grid-column:auto}.fx-item{gap:12px}.fx-print-options>.button{flex-basis:100%}}

@media print{.fx-document[data-fiscal-demo="true"] .fx-notice.fx-warning{display:block!important;border:2px solid #111!important;color:#111!important;background:#fff!important}}

.fx-pdf-import{margin:16px 0 22px;padding:16px;border:1px solid var(--fx-border);border-radius:10px;min-width:0}.fx-pdf-import input[type=file]{max-width:100%;width:100%;font-size:14px}.fx-pdf-import [data-fiscal-pdf-feedback]{overflow-wrap:anywhere}
.reference-app .fx-workspace{width:100%;max-width:100%}
.fx-cash-tools{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:20px 0}.fx-cash-tools>.fx-field{flex:1 1 220px}.fx-cash-row{padding:18px;border:1px solid var(--fx-border,#d9e2ee);background:var(--fx-surface,#fff);border-radius:12px;min-width:0;margin:14px 0}.fx-cash-row>header{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:14px}.fx-cash-row>header strong{flex:1 1 180px;overflow-wrap:anywhere}.fx-cash-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}.fx-cash-fields>[hidden]{display:none!important}.fx-cash-fields>div>.button{margin-top:8px}.fx-cash-fields small{display:block;overflow-wrap:anywhere;line-height:1.5;margin-top:8px}.fx-cash-summary{font-weight:650;line-height:1.6;padding:16px;border:1px solid var(--fx-border,#d9e2ee);border-radius:10px;font-variant-numeric:tabular-nums}.fx-cash-fields input[readonly]{background:var(--fx-soft,#f3f6fa)}#fiscal-cash-import-form{max-width:100%;min-width:0}#fiscal-cash-import-form .fx-notice{font-size:13px}#fiscal-cash-import-form .fx-notice p{color:inherit}@media(max-width:600px){.fx-cash-row{padding:14px}.fx-cash-fields{grid-template-columns:minmax(0,1fr)}.fx-cash-tools>.button{width:100%}.fx-cash-row .fx-helper{overflow-wrap:anywhere}}
.reference-app .fx-workspace .fx-notice p{color:inherit}
@media(max-width:600px){#app.qm-app:has(.fx-workspace) .qm-header .ref-sync{max-width:92px;white-space:normal!important;line-height:1.25;overflow-wrap:anywhere}}
