:root{color:#18324e;font-synthesis:none;background:#f2f5f9;font-family:Segoe UI,Arial,sans-serif;font-size:15px;line-height:1.5}*{box-sizing:border-box;scrollbar-width:thin;scrollbar-color:#718399 #edf2f7}body{min-width:0;margin:0}button,input,select{font:inherit;outline-offset:3px}button{cursor:pointer;transition:background .15s}button:disabled{cursor:not-allowed;opacity:.5}h1,h2,h3,p{margin-top:0}h1{letter-spacing:-.04em;font-size:32px}h2{letter-spacing:-.02em;margin-bottom:8px;font-size:18px}h3{margin-bottom:12px;font-size:14px}.muted{color:#4e657d;font-size:13px}.eyebrow{color:#526b86;letter-spacing:.07em;margin-bottom:6px;font-size:12px;font-weight:700}.app-shell{flex-direction:column;height:100vh;min-height:0;display:flex;overflow:hidden}.app-shell>:not(.workbench):not(.page-scroll){flex-shrink:0}.topbar{z-index:8;background:#fff;border-bottom:1px solid #dfe7f0;flex-wrap:wrap;align-items:center;gap:10px;padding:8px 16px;display:flex;position:relative}.brand-mark{color:#fff;background:#174ea6;border:0;border-radius:10px;place-items:center;width:38px;height:38px;padding:0;display:grid}.brand-mark:hover{background:#123e85}.brand-mark svg{width:21px;height:21px}.brand-title{align-items:baseline;gap:8px;min-width:0;margin-right:auto;font-size:15px;display:flex}.brand-title>strong{color:#18324e;flex:none}.brand-separator{color:#6b7d90}.project-title{text-overflow:ellipsis;white-space:nowrap;color:#3b4f66;min-width:0;max-width:260px;font-size:14px;font-weight:600;overflow:hidden}.demo-pill{color:#28734f;letter-spacing:.04em;background:#e8f5ed;border-radius:10px;flex:none;padding:2px 7px;font-size:10px;font-weight:700}.primary-button,.secondary-button,.danger-button{border:1px solid #0000;border-radius:6px;justify-content:center;align-items:center;gap:6px;min-height:39px;padding:8px 12px;font-size:14px;font-weight:600;display:inline-flex}.primary-button{color:#fff;background:#174ea6}.primary-button:hover:not(:disabled){background:#123e85}.secondary-button{color:#37516e;background:#fff;border-color:#d8e1eb}.secondary-button:hover:not(:disabled){background:#edf3fa}.danger-button{color:#9b4040;background:#fff0ed;border-color:#f0d4d0}.export-button{background:#24734d}.export-button:hover:not(:disabled){background:#1d5f3f}.project-actions{flex:none;gap:6px;display:flex}.project-actions>div>button,.project-actions>button{width:76px;min-height:35px;padding:6px 5px;font-size:13px}.import-control,.export-control{position:relative}.global-nav{background:#f6f8fb;border:1px solid #e5ebf2;border-radius:8px;flex-shrink:0;gap:3px;padding:3px;display:flex}.global-nav .secondary-button{white-space:nowrap;background:0 0;border-color:#0000;min-height:35px;padding:6px 10px;font-size:13px}.global-nav .secondary-button.active{color:#174ea6;background:#fff;border-color:#c8d8ee;box-shadow:0 1px 2px #18324e12}.global-nav .secondary-button>span{background:#eef3fa;border-radius:4px;margin-left:2px;padding:2px 6px;font-size:10px}.export-menu,.import-toolbar{z-index:10;background:#fff;border:1px solid #dce5ef;border-radius:8px;gap:8px;padding:12px;display:grid;position:absolute;top:calc(100% + 10px);right:0;box-shadow:0 10px 30px #18324e26}.export-menu{width:230px}.export-menu strong{color:#203c5b;margin-bottom:2px;font-size:13px}.export-menu button{justify-content:flex-start;min-height:36px;padding:7px 9px;font-size:12px}.import-toolbar{gap:12px;width:min(520px,100vw - 24px);padding:14px;right:-84px}.import-panel-heading{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.import-panel-heading strong{color:#203c5b;font-size:14px;display:block}.import-panel-heading small{color:#526b86;margin-top:2px;font-size:12px;display:block}.import-close{color:#526b86;background:#f2f5f9;border:0;border-radius:5px;flex:none;place-items:center;width:28px;height:28px;padding:5px;display:grid}.import-close svg{width:16px;height:16px}.import-sources{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.import-source{background:#f9fbfd;border:1px solid #e2e9f1;border-radius:6px;align-content:start;gap:6px;min-width:0;padding:10px;display:grid}.import-source>button{justify-self:start;min-height:33px;padding:5px 9px;font-size:12px}.import-source small{color:#71859c;text-overflow:ellipsis;white-space:nowrap;min-width:0;min-height:16px;font-size:11px;display:block;overflow:hidden}.import-source.selected{background:#f2fbf5;border-color:#b6dbc4}.import-source.selected small{color:#286342}.import-submit{justify-self:end;min-height:35px;padding:6px 12px;font-size:12px}.toast-region{z-index:30;pointer-events:none;width:min(440px,100vw - 36px);display:grid;position:fixed;bottom:18px;right:18px}.toast-message{pointer-events:auto;border:1px solid;border-radius:9px;align-items:flex-start;gap:10px;padding:13px 12px 15px 15px;font-size:13px;line-height:1.45;animation:.18s ease-out toast-enter;display:flex;position:relative;overflow:hidden;box-shadow:0 8px 28px #18324e2b}.toast-success{color:#245a3b;background:#f2fbf5;border-color:#b6dbc4}.toast-error{color:#8a2929;background:#fff5f4;border-color:#edc2c2}.toast-text{overflow-wrap:anywhere;white-space:pre-line;min-width:0}.toast-message>button{width:26px;height:26px;color:inherit;background:0 0;border:0;border-radius:5px;flex:none;place-items:center;margin:-4px -3px 0 auto;padding:4px;display:grid}.toast-message>button svg{width:16px;height:16px}.toast-timer{transform-origin:0;opacity:.55;background:currentColor;height:3px;animation:6.5s linear forwards toast-timer;position:absolute;bottom:0;left:0;right:0}@keyframes toast-enter{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes toast-timer{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.page-scroll{flex:1;min-height:0;overflow-y:auto}.welcome{max-width:1050px;margin:auto;padding:32px 35px}.welcome h1{margin-bottom:12px;font-size:clamp(26px,3vw,36px);line-height:1.15}.welcome>p{color:#526b86;max-width:850px}.welcome-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:20px;display:grid}.welcome-grid .card{padding:18px}.welcome-grid .card-icon{width:34px;height:34px;margin-bottom:10px}.welcome .welcome-scope{margin:16px 0 0;font-size:12px}.card{background:#fff;border:1px solid #e0e7ef;border-radius:10px;min-width:0;padding:22px}.card p{color:#526b86;margin-bottom:0;font-size:13px}.card-icon{color:#174ea6;background:#edf3fa;border:1px solid #c9d9ed;border-radius:9px;place-items:center;width:42px;height:42px;margin-bottom:14px;display:grid}.welcome-actions{flex-wrap:wrap;align-items:center;gap:12px;margin-top:20px;display:flex}.welcome-hint{margin:0;font-size:13px}.workbench{flex:1;grid-template-columns:minmax(0,1fr);min-height:0;display:grid}.workbench.invoice-list-open{grid-template-columns:270px minmax(0,1fr)}.invoice-sidebar[hidden]{display:none}.invoice-sidebar{background:#f9fbfd;border-right:1px solid #dfe7f0;flex-direction:column;min-width:0;min-height:0;display:flex}.invoice-sidebar-heading{color:#37516e;border-bottom:1px solid #e0e7ef;flex:none;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;font-size:13px;display:flex}.invoice-sidebar-heading strong span{color:#73869b;margin-left:4px;font-weight:500}.invoice-sidebar-heading button{width:28px;min-height:28px;padding:0}.invoice-sidebar-heading button svg{width:16px;height:16px}.invoice-sidebar-tools{border-bottom:1px solid #e0e7ef;flex:none;gap:7px;padding:10px 12px;display:grid}.invoice-sidebar-tools input,.invoice-sidebar-tools select{color:#344f6c;background:#fff;border:1px solid #d7e0eb;border-radius:5px;width:100%;min-width:0;min-height:33px;padding:5px 8px;font-size:12px}.invoice-sidebar-entries{flex-direction:column;min-height:0;display:flex;overflow-y:auto}.invoice-sidebar-item{min-width:0;color:inherit;text-align:left;background:0 0;border-top:0;border-bottom:1px solid #e6ecf3;border-left:3px solid #0000;border-right:0;flex:none;gap:4px;padding:10px 12px;display:grid}.invoice-sidebar-item:hover{background:#edf3fa}.invoice-sidebar-item.selected{background:#e9f1fc;border-left-color:#174ea6}.invoice-sidebar-item-title{color:#203c5b;justify-content:space-between;gap:6px;font-size:12px;font-weight:700;display:flex}.invoice-sidebar-item-title b{color:#607894;flex:none;font-size:11px}.invoice-sidebar-item-subtitle{color:#4e657d;text-overflow:ellipsis;white-space:nowrap;align-items:center;gap:5px;min-width:0;font-size:11px;display:flex;overflow:hidden}.invoice-sidebar-item-subtitle svg{color:#174ea6;flex:none;width:13px;height:13px}.invoice-sidebar-item-meta{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.invoice-sidebar-item .badge{padding:2px 5px;font-size:10px}.document-kind{color:#607894;font-size:10px;font-weight:600}.document-kind.credit{color:#7a4fb0}.empty-state{color:#526b86;padding:20px 16px;font-size:13px;line-height:1.6}.badge{white-space:nowrap;border-radius:4px;padding:4px 6px;font-size:11px;font-weight:750;display:inline-block}.done{color:#26734c;background:#e0f2e7}.skipped{color:#896319;background:#fff2cd}.missing{color:#a44646;background:#fce5e5}.pending{color:#426c9f;background:#e5edf9}.analysis-area{grid-template-areas:"proposal handle preview";grid-template-columns:minmax(340px, calc(var(--split,50%) - 6px)) 12px minmax(340px, 1fr);width:100%;min-width:0;min-height:0;padding:10px;display:grid}.split-handle{cursor:col-resize;touch-action:none;border-radius:4px;outline:none;grid-area:handle;place-items:center;display:grid}.split-handle span{background:#c6d3e2;border-radius:3px;width:4px;height:44px;transition:background .15s,height .15s}.split-handle:hover span,.split-handle:focus-visible span,body.resizing .split-handle span{background:#174ea6;height:72px}.split-handle:focus-visible{background:#eaf2ff}body.resizing{cursor:col-resize;-webkit-user-select:none;user-select:none}body.resizing iframe,body.resizing .document-pane{pointer-events:none}.workspace-tabs{display:none}.document-pane,.registration-pane{background:#fff;border:1px solid #dfe7f0;border-radius:9px;min-width:0;height:100%;min-height:0}.document-pane{flex-direction:column;grid-area:preview;display:flex;overflow:hidden}.document-pane>.pane-heading{background:#fff;flex:none;box-shadow:0 2px 5px #18324e0b}.document-pane>.invoice-paper,.document-pane>.raw-xml{flex:1;min-height:0;overflow:hidden auto}.missing-document-pane{justify-content:center;align-items:center;padding:24px}.missing-document-pane p{color:#71859c;text-align:center;margin:0;font-size:14px}.pane-heading{border-bottom:1px solid #e8edf4;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:8px;padding:12px 16px;display:flex}.pane-heading .muted{overflow-wrap:anywhere;margin-bottom:0}.pane-heading h2{margin-bottom:2px}.segmented{background:#f0f4f9;border-radius:5px;flex:none;padding:3px;display:flex}.segmented button{color:#365a80;background:0 0;border:0;border-radius:3px;padding:7px 10px;font-size:13px}.segmented button.active{color:#174ea6;background:#fff;box-shadow:0 1px 4px #1b365a16}.invoice-paper{padding:22px}.invoice-paper>*{min-width:0;max-width:100%}.party-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;display:grid}.party{overflow-wrap:anywhere}.party h3{color:#526b86;text-transform:uppercase;letter-spacing:.04em;margin-bottom:9px;font-size:12px;font-weight:600}.party strong{align-items:center;gap:7px;font-size:16px;display:flex}.party strong svg{color:#174ea6;flex:none;width:18px;height:18px}.party p{color:#4e657d;margin:3px 0;font-size:14px}.document-total{background:#f3f6fb;border-radius:6px;justify-content:space-between;align-items:center;margin:20px 0;padding:16px;font-size:12px;display:flex}.document-total strong{font-size:22px}.invoice-section{margin-top:22px}.invoice-section h3{font-size:16px}.note-text{color:#405a76;white-space:pre-wrap;overflow-wrap:anywhere;background:#f8fafc;border-left:2px solid #cbd7e5;padding:10px 12px;font-size:14px}.number-raw{white-space:pre;background:#fff3d6;border-radius:3px;padding:1px 4px;font-family:Consolas,monospace}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:14px}th{text-align:left;color:#425d7b;background:#f3f6fa;font-size:12px;font-weight:600}th,td{vertical-align:top;border-bottom:1px solid #e8edf4;padding:9px 8px}td{overflow-wrap:anywhere}td.number,th.number{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.raw-xml{white-space:pre-wrap;overflow-wrap:anywhere;color:#475c75;background:#f9fbfd;margin:0;padding:18px;font-size:11px;line-height:1.6}.xml-value{overflow-wrap:anywhere;border-bottom:1px solid #f0f3f7;grid-template-columns:minmax(110px,.6fr) 1fr;gap:10px;padding:8px 0;font-size:13px;display:grid}.xml-value b{color:#526b86;font-weight:500}.registration-pane{flex-direction:column;grid-area:proposal;padding:12px;display:flex;overflow:hidden}.registration-pane>.pane-heading{flex-shrink:0;align-items:center;margin-bottom:4px;padding:0 0 4px}.registration-pane .pane-heading .eyebrow{margin:0}.pane-heading-actions{align-items:center;gap:6px;margin-left:auto;display:flex}.regenerate-button{min-height:30px;padding:4px 9px;font-size:12px}.registration-tabs{background:#fff;border-bottom:1px solid #dce5f0;flex-shrink:0;gap:4px;padding:5px 0;display:flex}.registration-tabs button{color:#426181;background:#f0f4fa;border:0;border-radius:5px;flex:1;padding:10px 5px;font-size:13px;font-weight:650}.registration-tabs button.active{color:#fff;background:#174ea6}.registration-content{overflow-wrap:anywhere;flex:1;min-width:0;min-height:0;padding-right:8px;overflow:hidden auto}.registration-content>*{min-width:0;max-width:100%}.competence-box,.document-review-step,.document-code-step,.final-checks-step{background:#f7faff;border:1px solid #d7e5f7;border-radius:7px;margin:12px 0;padding:13px}.document-review-step h3,.document-code-step h3,.final-checks-step h3,.competence-box h3{margin-bottom:6px;font-size:14px}.document-review-summary{color:#526b86;margin-bottom:8px;font-size:12px;font-weight:600}.competence-box>p{color:#4b6687;font-size:13px}.evidence{margin-bottom:12px;font-size:13px}.evidence b{color:#4e657d;font-weight:650}.evidence blockquote{color:#4e657d;white-space:pre-wrap;margin:6px 0}.evidence button{color:#3566a5;background:#fff;border:1px solid #cfdff2;border-radius:4px;margin-right:5px;padding:5px 9px;font-size:13px}.evidence button.active{background:#eaf2ff;border-color:#174ea6;font-weight:700}.field{color:#3f5a77;flex-direction:column;gap:6px;margin-bottom:0;font-size:14px;font-weight:600;display:flex}.field input,.field select{color:#203c5b;background:#fff;border:1px solid #7a8da5;border-radius:5px;width:100%;min-width:0;min-height:40px;padding:8px 10px;font-size:15px;font-weight:400}.field input:disabled,.field select:disabled{color:#71869f;background:#f3f6fa;border-color:#c0cede}.document-code-legend{color:#526b86;margin:8px 0 0;font-size:12px}.warning-banner,.info-banner{color:#76551b;background:#fff7e6;border-radius:6px;padding:12px 14px;font-size:13px}.info-banner{color:#486f9c;background:#eaf2fc;font-size:12px}.check-issue{background:#fff9e9;border-left:4px solid #bd922d;border-radius:5px;margin:6px 0;padding:8px 10px;font-size:12px}.check-issue.error{background:#fff0ef;border-left-color:#bf4545}.check-issue.info{background:#f1f6fc;border-left-color:#86a8ce}.check-issue strong{white-space:pre-wrap}.check-issue p{color:#52677d;margin:3px 0 0}.check-issue .secondary-button{min-height:30px;margin-top:7px;padding:4px 9px;font-size:12px}.line-classifications{background:#f8fbff;border:1px solid #cbd9ea;border-left:4px solid #3571bd;border-radius:7px;margin:16px 0;padding:13px}.line-classifications h3{color:#203c5b;margin:0 0 3px}.line-classifications>p{color:#526b86;margin:0 0 10px;font-size:12px}.line-classifications table{background:#fff;font-size:12px}.line-classifications select{color:#203c5b;background:#f8fbff;border:1px solid #9fb5d0;border-radius:5px;min-height:32px;padding:4px 6px;font-size:12px}.line-classifications tr.extra-line td{background:#f2faf5}.registration-rows h3{margin:8px 0 4px}.rows-summary{table-layout:fixed;width:100%;font-size:13px}.rows-summary th:first-child{width:22%}.rows-summary th:nth-child(2){width:18%}.rows-summary th:nth-child(3){width:26%}.rows-summary td small{color:#526b86;font-size:11px;display:block}.rows-summary select{color:#203c5b;background:#f8fbff;border:1px solid #9fb5d0;border-radius:5px;width:100%;min-height:36px;padding:5px 7px;font-size:12px;font-weight:600}.posting-row-number{color:#174ea6;background:#e5edf9;border-radius:50%;place-items:center;width:22px;height:22px;font-size:11px;font-weight:700;display:inline-grid}.final-checks-summary{margin:8px 0 0;padding-left:20px;font-size:12px;line-height:1.7}.balance{border-radius:5px;flex-wrap:wrap;flex:none;justify-content:space-between;gap:10px;margin:8px 0;padding:8px 10px;font-size:14px;display:flex}.balanced{color:#28734f;background:#eaf6ef}.unbalanced{color:#a54141;background:#ffeded}.review-footer{flex:none}.review-actions{background:#fff;border-top:1px solid #e0e7ef;flex-wrap:wrap;flex:none;align-items:center;gap:5px;min-width:0;min-height:46px;padding:8px 0 0;display:flex}.review-actions button{flex:none;min-height:34px;font-size:13px}.icon-button{width:34px;min-width:34px;padding:5px!important}.icon-button svg{width:18px;height:18px;display:block}.invoice-navigation{align-items:center;gap:3px;margin-right:2px;display:flex}.invoice-nav-position{color:#526b86;text-align:center;min-width:38px;font-size:11px}.confirm-actions{flex:none;justify-content:flex-end;align-items:center;gap:5px;min-width:0;margin-left:auto;display:flex}.confirm-button svg{width:17px;height:17px}.review-acknowledge{color:#37516e;white-space:nowrap;cursor:pointer;background:#f8fafc;border:1px solid #d8e1eb;border-radius:6px;align-items:center;gap:5px;min-height:32px;padding:3px 6px;font-size:11px;font-weight:650;display:inline-flex}.review-acknowledge input{accent-color:#24734d;width:16px;height:16px;margin:0}.review-acknowledge:has(input:checked){color:#286342;background:#edf7f0;border-color:#9ac9aa}.unmatched-xml{background:#fbfcfe;border:1px solid #dfe7f0;border-radius:8px;margin-top:12px;padding:16px}.unmatched-xml>p{color:#6d8199;margin-bottom:14px;font-size:13px}.xml-link-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:12px;display:flex}.trace-tools{flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0;font-size:13px;display:flex}.trace-tools label{align-items:center;gap:6px;display:inline-flex}.trace-tools .secondary-button{min-height:32px;padding:5px 9px;font-size:12px}.trace-table-scroll{border:1px solid #dae3ee;border-radius:6px;overflow-x:auto}.trace-table{width:max-content;min-width:100%;font-size:12px}.trace-table thead th{z-index:1;background:#eaf0f8;position:sticky;top:0}.trace-table th:first-child{width:44px;min-width:44px;padding:7px 5px}.trace-table th:nth-child(2){min-width:170px}.trace-table th b{color:#174ea6;min-width:30px;display:inline-block}.trace-table tbody th{color:#37516e;font-weight:600}.trace-table tbody th small{color:#6b7d90;font-weight:400;display:block}.trace-table td{min-width:150px}.trace-table td input{color:#1c3b60;background:#fff;border:1px solid #c4d0df;border-radius:4px;width:100%;padding:7px;font-size:13px}.trace-table td.overridden input{background:#fff9e9;border-color:#bd922d}.trace-table tr.highlight>*{background:#fff7e6}.data-page{width:100%;max-width:1400px;margin:auto;padding:18px 28px 35px}.data-page-heading{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;padding:4px 0 16px;display:flex}.data-page-heading h1{margin:0 0 4px;font-size:26px}.data-page-heading .muted{max-width:760px;margin:0}.data-table-wrap{background:#fff;border:1px solid #dfe7f0;border-radius:8px;overflow-x:auto}.data-table{min-width:860px;font-size:13px}.data-table td{vertical-align:middle}.data-table select,.data-table input{color:#203c5b;background:#fff;border:1px solid #c0cede;border-radius:5px;min-height:34px;padding:5px 8px;font-size:13px}.data-table input.missing-value{background:#fff5f4;border-color:#bf4545}.data-table .secondary-button{min-height:32px;padding:4px 9px;font-size:12px}.supplier-name{align-items:center;gap:10px;display:flex}.supplier-icon{color:#174ea6;background:#edf3fa;border:1px solid #c9d9ed;border-radius:8px;flex:none;place-items:center;width:34px;height:34px;display:grid}.supplier-icon svg{width:18px;height:18px}.supplier-name small{color:#526b86;font-size:11px;display:block}.match-tag{font-size:12px;font-weight:600}.match-tag.normalized{color:#896319}.match-tag.exact{color:#26734c}.match-tag.manual{color:#426c9f}.match-tag.none{color:#a44646}.rules-params{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px;display:grid}.rules-params .card{padding:14px}.rules-params h3{color:#174ea6;margin-bottom:6px;font-size:13px}.rules-params ul{color:#37516e;margin:0;padding-left:16px;font-size:12px;line-height:1.7}.rules-toolbar{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:12px;font-size:13px;display:flex}.rules-toolbar input[type=search]{border:1px solid #c0cede;border-radius:5px;flex:1;min-width:200px;min-height:36px;padding:6px 9px}.rules-toolbar label{align-items:center;gap:6px;display:inline-flex}.rule-cell{border-left:3px solid #0000}.rule-cell.mode-composto{border-left-color:#9fd0b3}.rule-cell.mode-condizionale{border-left-color:#9dbbe8}.rule-cell.mode-campo-guidato{border-left-color:#e2c27a}.rule-cell.mode-vuoto{color:#6b7d90}.mode-tag{color:#37516e;white-space:nowrap;background:#eef3fa;border-radius:4px;padding:2px 6px;font-size:11px;font-weight:600;display:inline-block}.column-letter{color:#174ea6;font-weight:700}.general-rules{margin-bottom:8px}.general-rules>h2,.rules-section-title{color:#17324d;margin:6px 0 4px;font-size:16px}.general-rules>p{margin:0 0 10px;font-size:13px}.rules-section-title{margin-top:4px;margin-bottom:10px}.rules-params.general{border-left:3px solid #174ea6;padding-left:12px}.rules-params .card.editable{background:#f7faff;flex-direction:column;gap:8px;display:flex}.rules-params .card.editable .field{color:#37516e;gap:3px;font-size:12px;display:grid}.rules-params .card.editable input:not([type=checkbox]){min-height:32px;font:inherit;border:1px solid #c0cede;border-radius:5px;padding:5px 8px}.rules-params .card.editable .check-field{color:#37516e;align-items:flex-start;gap:6px;font-size:12px;display:flex}.general-rules-footer{justify-content:space-between;align-items:center;gap:8px;margin-top:auto;font-size:11px;display:flex}td.negative{color:#a44646}.association-controls,.column-rule-editor{white-space:normal;background:#f7faff;border:1px solid #c0cede;border-radius:6px;gap:10px;padding:14px;display:grid}.association-controls{margin-bottom:12px}.association-controls>div:first-child,.association-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.association-controls>div:first-child{justify-content:space-between}.association-controls small{color:#526b86}.association-controls .field,.column-rule-editor .field{gap:5px;display:grid}.association-controls select,.column-rule-editor select,.column-rule-editor input{min-width:0;max-width:100%;min-height:34px;font:inherit;background:#fff;border:1px solid #c0cede;border-radius:5px;padding:6px 8px}.association-selected{background:#eaf2ff}.vim-row-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.storage-warning{color:#704b0b;background:#fff3d6;border-bottom:1px solid #e2c27a;flex:none;padding:10px 16px;font-size:13px}.column-rule-editor h4,.column-rule-editor p{margin:4px 0}.rule-parts{gap:8px;display:grid}.rule-case{border:1px solid #c0cede;border-radius:5px;min-width:0;margin:0;padding:12px}.rule-case legend{color:#174ea6;font-weight:600}.rule-part,.rule-condition{flex-wrap:wrap;align-items:center;gap:6px;margin:8px 0;display:flex}.rule-part input[type=number]{width:120px}.rule-condition input,.rule-part input:not([type=number]){flex:1;min-width:110px}@media (width<=1250px){.invoice-paper{padding:15px}.topbar{gap:8px;padding:8px 12px}.project-title{max-width:140px}.rules-params{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=1100px){.analysis-area{grid-template:"workspace""content"minmax(0,1fr)/minmax(0,1fr);gap:8px}.split-handle{display:none}.workspace-tabs{grid-area:workspace;gap:4px;display:flex}.workspace-tabs button{color:#37516e;background:#fff;border:1px solid #d8e1eb;border-radius:5px;flex:1;min-height:34px;font-size:12px}.workspace-tabs button.active{color:#174ea6;background:#eaf2ff;border-color:#174ea6;font-weight:700}.document-pane,.registration-pane{grid-area:content}.analysis-area.proposal-active .document-pane,.analysis-area.document-active .registration-pane{display:none}.workbench.invoice-list-open{grid-template-columns:240px minmax(0,1fr)}}@media (width<=760px){.brand-title{flex-basis:calc(100% - 50px)}.project-title{display:none}.project-actions,.global-nav{flex:100%}.project-actions>button,.project-actions>div{flex:1}.project-actions>div>button,.project-actions>button{width:100%}.global-nav .secondary-button{flex:1;padding:6px 4px;font-size:12px}.import-toolbar{width:auto;margin-top:10px;position:fixed;top:auto;left:12px;right:12px}.import-sources{grid-template-columns:minmax(0,1fr)}.export-menu{right:0}.workbench.invoice-list-open{grid-template-columns:minmax(0,1fr)}.workbench.invoice-list-open .analysis-area{display:none}.welcome{padding:40px 18px}.welcome-grid,.rules-params,.party-grid{grid-template-columns:minmax(0,1fr)}.data-page{padding:14px}.rows-summary th:first-child{width:26%}.app-shell{height:auto;min-height:100vh;overflow:visible}.workbench,.analysis-area{min-height:0;display:block}.analysis-area{padding:8px}.workspace-tabs{z-index:5;background:#f2f5f9;margin:-8px -8px 8px;padding:8px;position:sticky;top:0}.document-pane,.registration-pane{height:auto;overflow:visible}.document-pane>.invoice-paper,.document-pane>.raw-xml,.registration-content{flex:none;padding-right:0;overflow:visible}.registration-pane{padding:10px}.review-footer{z-index:4;background:#fff;border-radius:0 0 9px 9px;margin:8px -10px -10px;padding:0 10px;position:sticky;bottom:0;box-shadow:0 -3px 8px #18324e1a}.review-footer .balance{background:0 0;margin:0;padding:6px 2px;font-size:12px}.review-footer .review-actions{padding:6px 0 8px}.line-table thead,.rows-summary thead{display:none}.line-table,.line-table tbody,.rows-summary,.rows-summary tbody{display:block}.line-table tr,.rows-summary tr{border-bottom:1px solid #e3eaf2;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;padding:10px 0;display:grid}.line-table td,.rows-summary td{white-space:normal;overflow-wrap:normal;border:0;padding:0;text-align:left!important}.line-table td:first-child,.rows-summary td:first-child{grid-column:1/-1;font-weight:600}.line-table td[data-label=Categoria],.rows-summary td:nth-child(3){grid-column:1/-1}.line-table td[data-label]:before,.rows-summary td[data-label]:before{content:attr(data-label);color:#6b7f96;text-transform:uppercase;letter-spacing:.03em;font-size:10px;font-weight:600;display:block}.line-table select,.rows-summary select{width:100%}.rows-summary td:first-child{align-items:center;gap:8px;display:flex}.rows-summary td:first-child small{color:#203c5b;font-size:12px;display:inline}}
