:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#172522;background:#e7ecea;font-synthesis:none;text-rendering:optimizeLegibility;--ink: #172522;--muted: #697773;--line: #cbd5d1;--surface: #fff;--brand: #087a6c;--brand-dark: #0b554f;--danger: #ae3f39;--type-micro: 9px;--type-caption: 10px;--type-small: 11px;--type-ui: 12px;--type-section: 14px;--type-title: 16px}*{box-sizing:border-box}html,body,#root{width:100%;min-width:320px;height:100%}body{margin:0;overflow:hidden;background:#e7ecea;font-size:var(--type-ui);line-height:1.35}body.drawer-open{overflow:hidden}button,input,select,textarea{border-radius:0;font:inherit}button{color:inherit}button,a{-webkit-tap-highlight-color:transparent}svg{width:18px;height:18px}.boot-screen{height:100%;display:grid;place-content:center;justify-items:center;gap:10px;color:#62716d;background:#e7ecea}.brand-loader{display:flex;align-items:end;gap:3px;height:24px}.brand-loader span{width:6px;background:var(--brand);animation:bars .7s ease-in-out infinite alternate}.brand-loader span:nth-child(1){height:14px}.brand-loader span:nth-child(2){height:24px;animation-delay:.1s}.brand-loader span:nth-child(3){height:18px;animation-delay:.2s}.boot-screen p{margin:0;font-size:12px}@keyframes bars{to{opacity:.35;transform:scaleY(.7)}}.login-page{height:100%;display:grid;place-items:center;padding:16px;background:#e7ecea}.login-form{width:min(360px,100%);padding:22px 24px 24px;border:1px solid #bfcac6;border-top:4px solid var(--brand);background:#fff;box-shadow:0 8px 24px #162f2b1a;animation:window-in .14s ease-out both}.login-brandline{display:flex;align-items:center;gap:8px;color:var(--brand-dark)}.login-brandline svg{width:22px;color:var(--brand)}.login-brandline b{font-size:var(--type-section);letter-spacing:.02em}.login-brandline em,.app-brand em{padding:2px 5px;color:#06413c;background:#bcebdc;font-size:var(--type-micro);font-style:normal;font-weight:700}.login-form h1{margin:18px 0 16px;font-size:20px;line-height:1}.field{position:relative;display:flex;min-width:0;flex-direction:column;gap:4px}.field>label{color:#465550;font-size:var(--type-small);font-weight:600}.field input,.field select,.field textarea,.select-control{width:100%;min-width:0;border:1px solid #bdc9c4;outline:0;color:#172522;background:#fff;transition:border-color .1s,box-shadow .1s}.field input,.field select{height:32px;padding:0 8px}.field textarea{min-height:64px;padding:7px 8px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus,.select-control:focus-within,.select-control.is-open{border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}.field input[aria-invalid=true],.async-select.has-error .select-control,.editor-table input[aria-invalid=true]{border-color:var(--danger);box-shadow:inset 0 0 0 1px #ae3f3933}.field-error{display:block;color:var(--danger);font-size:var(--type-micro);font-weight:600;line-height:1.3}.login-field{margin-top:10px}.login-field input{height:38px;padding:0 10px}.password-control{position:relative;width:100%}.password-control input{padding-right:42px}.password-toggle{position:absolute;top:1px;right:1px;width:36px;height:calc(100% - 2px);padding:0;border:0;display:grid;place-items:center;cursor:pointer;color:#64736e;background:transparent}.password-toggle:hover{color:var(--brand-dark);background:#eaf2ef}.password-toggle:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}.password-toggle svg{width:17px;height:17px}.check-control{display:inline-flex;align-items:center;gap:7px;margin:12px 0;color:#53625e;font-size:var(--type-small);cursor:pointer}.check-control input,.gift-toggle input{accent-color:var(--brand)}.form-error,.editor-error{border-left:3px solid #c64d47;color:#913b36;background:#fff0ef;font-size:var(--type-small);line-height:1.4}.form-error{margin-bottom:10px;padding:7px 8px}.login-submit,.primary-action,.secondary-action,.danger-action{border:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;font-weight:600;transition:background .1s,color .1s}.login-submit{width:100%;height:38px;justify-content:space-between;padding:0 11px;color:#fff;background:var(--brand-dark)}.login-submit svg{width:15px;transform:rotate(45deg)}.login-submit:hover:not(:disabled),.primary-action:hover:not(:disabled){background:#063f3b}button:disabled{cursor:not-allowed;opacity:.55}@keyframes window-in{0%{opacity:.4;transform:translateY(5px)}}.app-shell{height:100%;display:flex;flex-direction:column;background:#e7ecea}.topbar{height:40px;flex:0 0 40px;display:grid;grid-template-columns:190px 1fr auto;align-items:center;border-bottom:1px solid #074640;color:#fff;background:var(--brand-dark)}.app-brand{height:40px;padding:0 10px;display:inline-flex;align-items:center;gap:7px;color:#fff;text-decoration:none;font-size:13px;font-weight:700}.app-brand svg{width:20px;color:#bcebdc}.topbar-title{padding-left:12px;border-left:1px solid rgba(255,255,255,.18);font-size:var(--type-ui);font-weight:600}.topbar-clock{height:40px;display:flex;align-items:center;gap:7px;font-variant-numeric:tabular-nums;white-space:nowrap}.topbar-clock>svg{width:14px;height:14px;color:#b9d1cc}.topbar-clock-date{color:#e8f3ef}.digital-time{height:27px;margin-left:3px;padding:2px 6px;border:1px solid #3b7971;display:inline-flex;align-items:center;gap:1px;background:#092f2c}.digital-time .digital-digit{width:12px;height:20px;flex:0 0 auto;fill:#bef7d91a}.digital-time .digital-digit .lit,.digital-time .digital-colon{fill:#bff5d9}.digital-time .digital-colon{width:4px;height:20px;flex:0 0 auto}.topbar-user{height:40px;padding-left:12px;display:flex;align-items:center;gap:7px;border-left:1px solid rgba(255,255,255,.18)}.topbar-user>span{display:flex;flex-direction:column;min-width:105px}.topbar-user strong{overflow:hidden;max-width:180px;font-size:var(--type-small);line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.topbar-user small{color:#b9d1cc;font-size:var(--type-caption)}.icon-button{width:34px;height:34px;border:0;display:grid;place-items:center;cursor:pointer;color:inherit;background:transparent}.icon-button:hover{background:#ffffff1f}.icon-button svg{width:16px}.app-body{min-height:0;flex:1;display:grid;grid-template-columns:190px minmax(0,1fr)}.module-sidebar{min-height:0;border-right:1px solid #bfcac6;background:#edf1ef}.module-title{height:38px;padding:0 11px;display:flex;align-items:center;border-bottom:1px solid #c5d0cc;color:#263a36;background:#dce5e2;font-size:var(--type-section);font-weight:700}.module-sidebar nav{padding:4px 0}.module-sidebar button{width:100%;height:34px;padding:0 10px;border:0;border-left:3px solid transparent;display:flex;align-items:center;gap:8px;cursor:pointer;color:#41514c;background:transparent;font-size:var(--type-ui);text-align:left}.module-sidebar button svg{width:15px;color:#4f8b80}.module-sidebar button:hover{background:#e0e8e5}.module-sidebar button.active{border-left-color:var(--brand);color:#073f3a;background:#fff;font-weight:600}.workspace{min-width:0;min-height:0;overflow:hidden}.invoice-screen{height:100%;display:flex;flex-direction:column}.workspace-heading{height:44px;flex:0 0 44px;padding:0 8px 0 12px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #bcc8c3;background:#f7f9f8}.workspace-heading h1{margin:0;font-size:var(--type-title);line-height:1;font-weight:700}.primary-action{min-height:30px;padding:0 10px;color:#fff;background:var(--brand);font-size:var(--type-ui);white-space:nowrap}.primary-action svg,.secondary-action svg{width:14px;height:14px}.secondary-action{min-height:30px;padding:0 10px;border:1px solid #b9c5c0;color:#344640;background:#fff;font-size:var(--type-ui)}.secondary-action:hover{border-color:#7b928a;background:#edf4f1}.danger-action{min-height:30px;padding:0 10px;color:#fff;background:var(--danger);font-size:var(--type-ui)}.danger-action:hover:not(:disabled){background:#84312d}.danger-action svg{width:14px}.invoice-workspace{min-height:0;flex:1;display:flex;flex-direction:column;background:#fff}.filter-bar{min-height:42px;flex:0 0 auto;padding:5px 8px;display:flex;flex-wrap:wrap;align-items:center;gap:7px;border-bottom:1px solid #cbd5d1;background:#e9efed}.search-box{width:min(300px,28vw);height:30px;display:flex;align-items:center;gap:6px;padding:0 7px;border:1px solid #b9c5c0;background:#fff}.search-box svg{flex:0 0 auto;width:13px;color:#6f7d79}.search-box input{min-width:0;flex:1;border:0;outline:0;color:#23332f;background:transparent;font-size:var(--type-small)}.search-box button{border:0;cursor:pointer;color:var(--brand);background:none;font-size:var(--type-caption);font-weight:600}.date-range-filter{position:relative;flex:0 0 auto}.date-range-trigger{width:258px;height:30px;padding:0 7px;border:1px solid #b9c5c0;display:grid;grid-template-columns:15px minmax(0,1fr) 13px;align-items:center;gap:6px;cursor:pointer;color:#40524d;background:#fff;text-align:left}.date-range-trigger:hover,.date-range-trigger.is-open{border-color:#4e887e}.date-range-trigger:focus-visible{outline:2px solid var(--brand);outline-offset:1px}.date-range-trigger>svg{width:13px;height:13px}.date-range-trigger>svg:last-child{width:11px;justify-self:end;transition:transform .1s}.date-range-trigger.is-open>svg:last-child{transform:rotate(180deg)}.date-range-trigger>span{min-width:0;display:flex;align-items:baseline;gap:7px}.date-range-trigger small{color:#6b7975;font-size:var(--type-micro);font-weight:700;text-transform:uppercase;white-space:nowrap}.date-range-trigger strong{overflow:hidden;color:#263733;font-size:var(--type-small);font-weight:600;text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums}.date-picker-popover{position:absolute;top:34px;left:0;z-index:80;width:506px;border:1px solid #8fa39c;color:#253530;background:#fff;box-shadow:0 8px 22px #142d2833;animation:window-in .1s ease-out both}.date-picker-popover.single-mode{width:260px}.date-picker-mode{height:34px;display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #c8d2ce;background:#edf2f0}.date-picker-mode button{border:0;border-right:1px solid #c8d2ce;border-bottom:2px solid transparent;cursor:pointer;color:#52625d;background:transparent;font-size:var(--type-small);font-weight:600}.date-picker-mode button:last-child{border-right:0}.date-picker-mode button:hover{color:var(--brand-dark);background:#e2ebe8}.date-picker-mode button.active{border-bottom-color:var(--brand);color:#063f3b;background:#fff}.date-picker-calendars{display:grid;grid-template-columns:1fr 1fr}.single-mode .date-picker-calendars{grid-template-columns:1fr}.date-picker-calendar{min-width:0;padding:5px 7px 7px}.date-picker-calendar+.date-picker-calendar{border-left:1px solid #d5ddda}.date-picker-month-header{height:29px;display:grid;grid-template-columns:26px 1fr 26px;align-items:center}.date-picker-month-header strong{text-align:center;font-size:var(--type-small);font-weight:700}.date-picker-month-header button{width:26px;height:25px;padding:0;border:1px solid transparent;display:grid;place-items:center;cursor:pointer;color:#52645e;background:transparent}.date-picker-month-header button:hover{border-color:#b7c5c0;color:var(--brand);background:#edf4f1}.date-picker-month-header button:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}.date-picker-month-header svg{width:13px;height:13px}.date-picker-weekdays,.date-picker-days{display:grid;grid-template-columns:repeat(7,1fr)}.date-picker-weekdays{height:23px;align-items:center;border-bottom:1px solid #dbe2df;color:#71807b;font-size:var(--type-micro);font-weight:700;text-align:center}.date-picker-days{gap:1px;padding-top:3px}.date-picker-days button{position:relative;height:27px;padding:0;border:1px solid transparent;cursor:pointer;color:#344640;background:transparent;font-size:var(--type-caption);font-variant-numeric:tabular-nums}.date-picker-days button:hover:not(:disabled){border-color:#6e9c92;background:#e5f1ed}.date-picker-days button.outside-month{color:#aab4b0;cursor:default;opacity:.55}.date-picker-days button.in-range{color:#124f47;background:#dcece7}.date-picker-days button.selected-edge{border-color:var(--brand-dark);color:#fff;background:var(--brand-dark);font-weight:700}.date-picker-days button.today:not(.selected-edge):after{position:absolute;right:4px;bottom:2px;left:4px;height:1px;content:"";background:var(--brand)}.date-picker-footer{min-height:42px;padding:5px 7px;border-top:1px solid #c8d2ce;display:flex;align-items:center;justify-content:space-between;gap:8px;background:#f3f6f4}.date-picker-footer>span{overflow:hidden;color:#52625d;font-size:var(--type-caption);font-weight:600;text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums}.date-picker-footer>div{display:flex;gap:4px}.date-picker-footer button{min-height:28px}.list-filter-select{width:148px;height:30px;padding:0 23px 0 7px;border:1px solid #b9c5c0;outline:0;color:#344640;background-color:#fff;font-size:var(--type-small)}.list-filter-select:focus{border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}.payment-status-filter{width:162px}.filter-actions{margin-left:auto;display:flex;align-items:center;gap:4px}.filter-icon-button{width:30px;height:30px;padding:0;border:1px solid #b9c5c0;display:grid;place-items:center;cursor:pointer;color:#4b615b;background:#fff}.filter-icon-button:hover:not(:disabled){border-color:#759088;color:var(--brand);background:#edf4f1}.filter-icon-button:focus-visible{outline:2px solid var(--brand);outline-offset:1px}.filter-icon-button:disabled{cursor:not-allowed;opacity:.45}.filter-icon-button svg{width:15px;height:15px}.filter-icon-button.excel-action{color:#167047}.filter-icon-button.active{border-color:#398f82;color:#075c53;background:#dcece7}.filter-icon-button .is-spinning{animation:spin .7s linear infinite}.advanced-filter-bar{flex:0 0 auto;padding:6px 8px;display:grid;grid-template-columns:minmax(180px,1fr) minmax(160px,.8fr) minmax(160px,.8fr) minmax(190px,.8fr) auto;align-items:end;gap:7px;border-bottom:1px solid #c5d0cc;background:#f3f6f4}.advanced-filter-bar .field>label{font-size:var(--type-micro);text-transform:uppercase}.advanced-filter-bar .select-control,.advanced-filter-bar .field input,.advanced-filter-bar .field select{height:30px}.advanced-filter-bar .select-control input{height:28px}.sort-filter>div{display:flex;gap:4px}.sort-filter select{flex:1}.sort-filter .filter-icon-button{flex:0 0 30px}.reset-filter{height:30px}.summary-strip{min-height:46px;flex:0 0 auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));border-bottom:1px solid #cbd5d1;background:#f8faf9}.summary-strip>div{min-width:0;padding:5px 10px;border-right:1px solid #d6dfdb}.summary-strip>div:last-child{border-right:0}.summary-strip span{display:block;margin-bottom:2px;color:#71807b;font-size:var(--type-caption);font-weight:600;text-transform:uppercase}.summary-strip strong{display:block;overflow:hidden;color:#263733;font-size:14px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums}.summary-strip .attention strong{color:var(--danger)}.invoice-table-wrap{min-height:0;flex:1;overflow:auto}.invoice-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}.invoice-table th{position:sticky;top:0;z-index:2;height:30px;padding:0 8px;border-right:1px solid #d4ddda;border-bottom:1px solid #bfcac6;color:#4d5d58;background:#e5ebe9;font-size:var(--type-caption);font-weight:600;letter-spacing:.01em;text-align:left;text-transform:uppercase}.invoice-table th:first-child{width:290px}.invoice-table th:last-child{width:40px;border-right:0}.inbound-invoice-table{min-width:1020px}.inbound-invoice-table th:nth-child(2){width:27%}.inbound-invoice-table th:nth-child(6){width:14%}.outbound-invoice-table{min-width:1240px}.outbound-invoice-table th:nth-child(2){width:20%}.outbound-invoice-table th:nth-child(3){width:11%}.outbound-invoice-table th:nth-child(8){width:13%}.invoice-table td{height:42px;padding:4px 8px;border-right:1px solid #edf0ef;border-bottom:1px solid #dde4e1;vertical-align:middle;font-size:var(--type-small)}.invoice-table td:last-child{border-right:0}.invoice-table tbody tr:nth-child(2n){background:#fafcfb}.invoice-table tbody tr:hover{background:#eaf5f1}.invoice-code strong{display:block;color:#075c53;font-size:var(--type-small)}.invoice-code span,.date-cell span{display:block;margin-top:1px;color:#7d8985;font-size:var(--type-micro)}.invoice-code-layout{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px}.invoice-code-main{min-width:0}.invoice-code-main strong,.invoice-code-main span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.invoice-document-date{min-width:72px;padding-left:7px;border-left:1px solid #d8e0dc;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.invoice-code .invoice-document-date strong{color:#344d45;font-size:var(--type-caption);font-weight:700}.invoice-code .invoice-document-date span{color:#71817a;font-size:var(--type-micro)}.partner-cell strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--type-small);font-weight:600}.date-cell strong{font-size:var(--type-caption)}.align-right{text-align:right!important}.amount-cell{color:#1d302b;font-weight:600;font-variant-numeric:tabular-nums}.muted-amount,.debt-cell{color:#5d6a66;font-variant-numeric:tabular-nums}.debt-cell.has-debt{color:var(--danger);font-weight:600}.profit-cell{color:#38564b;font-variant-numeric:tabular-nums;font-weight:600}.profit-cell.is-negative{color:var(--danger)}.status-stack{display:flex;flex-wrap:wrap;gap:3px}.payment-status,.delivery,.locked{width:max-content;padding:2px 4px;border:1px solid transparent;font-size:var(--type-micro);font-weight:600;white-space:nowrap}.payment-status.done{border-color:#b8ddca;color:#226047;background:#e6f4ed}.payment-status.partial{border-color:#ead4a8;color:#805915;background:#fff5df}.payment-status.unpaid{border-color:#e8c7c4;color:#874540;background:#fbeeed}.payment-status.refund{border-color:#d8b98c;color:#815315;background:#fff1d9}.delivery,.delivery-0{border-color:#aac4d0;color:#34566a;background:#e8f1f5}.delivery-1{border-color:#0d6244;color:#fff;background:#0d6244}.delivery-3{border-color:#e2a09a;color:#9c211b;background:#fde9e6}.delivery-4{border-color:#d9b96e;color:#704c0a;background:#fff0cd}.delivery-5{border-color:#b9a6dc;color:#573b84;background:#ede6fb}.locked{display:inline-flex;align-items:center;gap:2px;border-color:#d0d2d3;color:#555c5a;background:#e9ebea}.locked svg{width:8px;height:8px}.invoice-actions{display:flex;align-items:center;justify-content:flex-end;gap:2px}.row-action-menu{position:relative}.row-action-menu>summary{width:28px;height:28px;border:1px solid transparent;display:grid;place-items:center;cursor:pointer;color:#536862;list-style:none}.row-action-menu>summary::-webkit-details-marker{display:none}.row-action-menu>summary:hover,.row-action-menu[open]>summary{border-color:#86aaa0;color:var(--brand);background:#fff}.row-action-menu>summary svg{width:14px}.row-action-popover{position:absolute;top:0;right:31px;z-index:12;width:184px;padding:3px;border:1px solid #9dada7;background:#fff;box-shadow:0 7px 20px #122b262e}.row-action-menu.open-up .row-action-popover{top:auto;bottom:0}.row-action-popover button{width:100%;height:29px;padding:0 7px;border:0;display:flex;align-items:center;gap:7px;cursor:pointer;color:#31463f;background:transparent;font-size:var(--type-small);text-align:left}.row-action-popover button:hover:not(:disabled){color:#075c53;background:#e8f2ef}.row-action-popover button:disabled{opacity:.38}.row-action-popover button+button{border-top:1px solid #edf0ef}.row-action-popover button svg{width:13px;flex:0 0 13px}.row-action-popover .danger-menu-item{color:var(--danger)}.chevron{width:13px;color:#8c9995}.skeleton-row span{display:block;width:70%;height:7px;background:#e7ecea;animation:pulse .9s ease-in-out infinite alternate}@keyframes pulse{to{opacity:.35}}.empty-list,.empty-lines{display:grid;place-items:center;gap:4px;padding:22px 10px;color:#697873}.empty-list svg{width:18px}.empty-list strong,.empty-lines strong{font-size:var(--type-small)}.data-status{position:relative;height:26px;flex:0 0 26px;padding:0 8px;display:flex;align-items:center;gap:6px;overflow:hidden;border-top:1px solid #b9c5c0;color:#4e5e59;background:#e5ebe9;font-size:var(--type-caption)}.data-status>*:not(.data-progress){position:relative;z-index:1}.data-progress{position:absolute;inset:0 auto 0 0;background:#087a6c17;transition:width .14s linear}.data-status.loading{color:#075c53}.data-status.ready .status-indicator{width:6px;height:6px;background:#2d9868}.data-status.error{color:#913b36;background:#f9e9e7}.data-status.error .status-indicator{width:6px;height:6px;background:#b84640}.data-status em{margin-left:auto;font-style:normal;font-variant-numeric:tabular-nums}.data-status button{margin-left:auto;border:0;cursor:pointer;color:inherit;background:transparent;font-size:var(--type-caption);font-weight:600;text-decoration:underline}.select-control{position:relative;height:32px;display:flex;align-items:center}.select-control .field-icon{position:absolute;left:7px;width:12px;color:#74817d;pointer-events:none}.select-control input{height:30px;padding:0 27px;border:0;box-shadow:none!important;background:transparent}.select-control.is-disabled{background:#edf0ef}.clear-select{position:absolute;right:3px;width:24px;height:24px;border:0;display:grid;place-items:center;cursor:pointer;color:#6f7e79;background:transparent}.clear-select svg{width:11px}.select-popover{position:absolute;top:calc(100% + 1px);right:0;left:0;z-index:80;max-height:240px;overflow-y:auto;padding:2px;border:1px solid #aebdb7;background:#fff;box-shadow:0 6px 16px #122c282e;animation:menu-in .1s ease-out both}@keyframes menu-in{0%{opacity:.45;transform:translateY(-2px)}}.select-option{width:100%;padding:6px 7px;border:0;cursor:pointer;color:#263733;background:transparent;font-size:var(--type-small);text-align:left}.select-option:hover,.select-option[aria-selected=true]{color:#073f3a;background:#e5f1ed}.select-message{padding:9px 7px;color:#71807b;font-size:var(--type-caption);text-align:center}.select-message-error{color:#913b36;background:#fff4f2}.select-load-more{width:100%;height:29px;border:0;border-top:1px solid #d5dedb;cursor:pointer;color:#08685e;background:#f4f8f6;font-size:var(--type-caption);font-weight:700}.select-load-more:hover{background:#e5f1ed}.partner-option{display:flex;align-items:center;justify-content:space-between;gap:8px}.partner-option strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.partner-option span{flex:0 0 auto;color:#6b7975;font-size:var(--type-micro)}.product-option{display:flex;flex-direction:column;gap:2px}.product-option strong{font-size:var(--type-small)}.product-option em{margin-left:4px;color:#5f6e69;font-size:var(--type-caption);font-style:normal}.product-option span{color:#74817d;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:var(--type-micro)}.mini-spinner,.button-spinner,.spinner{display:inline-block;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .7s linear infinite}.mini-spinner{width:10px;height:10px;vertical-align:-2px}.button-spinner{width:12px;height:12px}.button-spinner.dark,.spinner{color:var(--brand)}.spinner{width:17px;height:17px}@keyframes spin{to{transform:rotate(360deg)}}.drawer-backdrop{position:fixed;inset:0;z-index:100;display:grid;place-items:center;background:#0c1c1975;animation:fade-in .1s both}@keyframes fade-in{0%{opacity:0}}.invoice-drawer{position:relative;width:min(1180px,calc(100vw - 24px));height:min(680px,calc(100vh - 24px));border:1px solid #697b75;display:flex;flex-direction:column;background:#eef2f0;box-shadow:0 12px 36px #071c1847;animation:window-in .12s ease-out both}.invoice-drawer.is-fullscreen{width:100vw;height:100vh;border:0}.drawer-header{height:40px;flex:0 0 40px;padding:0 4px 0 10px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #0a4e48;color:#fff;background:var(--brand-dark)}.drawer-header h2{margin:0;font-size:var(--type-section);font-weight:600}.invoice-drawer form{min-height:0;flex:1;display:flex;flex-direction:column}.editor-layout{min-height:0;flex:1;overflow:hidden;padding:8px 10px;display:flex;flex-direction:column}.editor-fixed-top{flex:0 0 auto}.editor-loading{min-height:0;flex:1;display:flex;align-items:center;justify-content:center;gap:7px;color:#52625d;font-size:var(--type-small)}.editor-blocked{padding:6px 10px;border-bottom:1px solid #d3b8a2;color:#7d3f19;background:#fff4e8;font-size:var(--type-small)}.editor-popup{position:absolute;top:47px;right:10px;z-index:120;width:min(430px,calc(100% - 20px));min-height:38px;padding:7px 5px 7px 9px;border:1px solid #c67872;border-left:4px solid var(--danger);display:flex;align-items:center;gap:8px;color:#823a35;background:#fff7f6;box-shadow:0 7px 20px #4618142e;font-size:var(--type-small);animation:window-in .12s ease-out both}.editor-popup span{flex:1}.editor-popup button{width:26px;height:26px;flex:0 0 26px;border:0;display:grid;place-items:center;cursor:pointer;color:#8e4b46;background:transparent}.editor-popup button:hover{background:#f5dedc}.editor-popup svg{width:12px}.form-section{display:grid;gap:7px}.inbound-header-fields{grid-template-columns:minmax(280px,1.5fr) minmax(150px,.7fr) minmax(180px,1fr)}.outbound-header-fields{grid-template-columns:repeat(12,minmax(0,1fr))}.header-date-discount{min-width:0;display:grid;gap:7px}.outbound-header-fields>:nth-child(1){grid-column:1 / span 5;grid-row:1}.outbound-header-fields>:nth-child(2){grid-column:6 / span 2;grid-row:1 / span 2}.outbound-header-fields>:nth-child(3){grid-column:8 / span 2;grid-row:1}.outbound-header-fields>:nth-child(4){grid-column:10 / span 3;grid-row:1}.outbound-header-fields>:nth-child(5){grid-column:1 / span 5;grid-row:2}.outbound-header-fields>:nth-child(6){grid-column:8 / span 5;grid-row:2}.line-section{min-height:110px;flex:1 1 auto;margin-top:8px;border-top:1px solid #bcc8c3;display:flex;flex-direction:column;overflow:hidden}.section-heading{height:32px;display:flex;align-items:center;justify-content:space-between}.section-heading h3{margin:0;font-size:var(--type-ui);font-weight:600}.product-search-row{display:flex;align-items:end;gap:5px}.product-search-row .async-select{width:min(640px,70%)}.add-hint{height:32px}.editor-table-wrap{min-height:0;flex:1;margin-top:6px;overflow:auto;border:1px solid #bec9c5;background:#fff}.editor-table{width:100%;min-width:960px;border-collapse:separate;border-spacing:0;table-layout:fixed}.editor-table th{position:sticky;top:0;z-index:3;height:29px;padding:0 6px;border-right:1px solid #d3ddda;border-bottom:1px solid #bcc8c3;color:#4f5f5a;background:#e3eae7;font-size:var(--type-micro);font-weight:600;text-align:left;text-transform:uppercase}.editor-table th:first-child{width:25%}.editor-table th:nth-child(2){width:6%}.editor-table th:nth-child(3),.editor-table th:nth-child(4){width:11%}.editor-table th:nth-child(5){width:6%}.editor-table th:last-child{width:34px}.outbound-editor-table{min-width:1050px}.outbound-editor-table th:first-child{width:27%}.outbound-editor-table th:nth-child(2){width:6%}.outbound-editor-table th:nth-child(3){width:12%}.outbound-editor-table th:nth-child(4){width:8%}.outbound-editor-table th:nth-child(5){width:12%}.outbound-editor-table th:nth-child(6){width:10%}.outbound-editor-table th:nth-child(7){width:20%}.inbound-editor-table{min-width:1160px}.inbound-editor-table th:first-child{width:19%}.inbound-editor-table th:nth-child(2){width:5%}.inbound-editor-table th:nth-child(3),.inbound-editor-table th:nth-child(4){width:9%}.inbound-editor-table th:nth-child(5){width:6%}.inbound-editor-table th:nth-child(6){width:18%}.inbound-editor-table th:nth-child(7){width:11%}.inbound-editor-table th:nth-child(8){width:6%}.inbound-editor-table th:nth-child(9){width:11%}.editor-table td{padding:5px 6px;border-right:1px solid #edf0ef;border-bottom:1px solid #dce3e0;vertical-align:top}.editor-table td:last-child{border-right:0}.editor-table tbody tr:last-child td{border-bottom:0}.editor-table input{width:100%;height:30px;min-width:48px;padding:0 6px;border:1px solid #bdc9c4;outline:0;font-size:var(--type-small)}.editor-table input:focus{border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}.editor-table .money-input{text-align:right;font-variant-numeric:tabular-nums}.editor-table td small{display:block;margin-top:2px;color:#895d17;font-size:var(--type-micro)}.cell-field{min-width:0}.cell-field .field-error{margin-top:2px}.line-product strong{display:block;overflow:hidden;font-size:var(--type-small);text-overflow:ellipsis;white-space:nowrap}.line-product>span{display:block;overflow:hidden;margin-top:2px;color:#6d7a76;font-size:var(--type-micro);text-overflow:ellipsis;white-space:nowrap}.gift-toggle{display:inline-flex;align-items:center;gap:3px;margin-top:4px;color:#586762;font-size:var(--type-micro);cursor:pointer}.gift-toggle input{width:11px;height:11px;min-width:0;margin:0;box-shadow:none}.editor-table .async-select{min-width:100px}.editor-table .async-select>label{display:none}.editor-table .select-control{height:28px}.editor-table .select-control input{height:26px;padding-left:23px}.editor-table .select-control .field-icon{left:6px;width:10px}.editor-table .select-popover{min-width:180px}.product-discount-cell .select-popover{min-width:235px}.product-discount-cell>small{display:block;margin-top:3px;color:#687772;font-size:var(--type-micro)}.discount-option{display:flex;align-items:center;justify-content:space-between;gap:8px}.discount-option strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.discount-option span{flex:0 0 auto;color:#60716b;font-size:var(--type-micro)}.line-total{padding-top:12px!important;font-size:var(--type-small);font-weight:600;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.stock-ok,.stock-warning{display:block;padding-top:7px;font-size:var(--type-small);font-weight:600;text-align:center}.stock-ok{color:#22664c}.stock-warning{color:var(--danger)}.remove-line{width:26px;height:26px;border:0;display:grid;place-items:center;cursor:pointer;color:#788681;background:transparent}.remove-line:hover{color:#a83f39;background:#fff0ef}.remove-line svg{width:12px}.empty-lines{padding:18px 8px}.form-bottom{flex:0 0 auto;display:grid;grid-template-columns:minmax(260px,1fr) minmax(320px,390px);gap:14px;margin-top:8px;border-top:1px solid #bcc8c3;padding-top:7px;background:#eef2f0}.note-field{max-width:580px}.note-field textarea{min-height:72px;background:#fff}.settlement{padding-left:12px;border-left:1px solid #c4cfcb}.settlement>div{min-height:23px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#586762;font-size:var(--type-caption)}.settlement b{color:#283b36;font-size:var(--type-caption);font-variant-numeric:tabular-nums}.settlement em{font-size:var(--type-micro);font-style:normal}.settlement .grand-total{min-height:32px;margin-top:2px;border-top:1px solid #c7d1cd}.settlement .grand-total span{color:#243732;font-weight:800}.settlement .grand-total b{color:#075c53;font-size:var(--type-title)}.paid-line{position:relative}.paid-line input{width:130px;height:27px;padding:0 21px 0 6px;border:1px solid #bdc9c4;outline:0;font-size:var(--type-caption);text-align:right}.paid-line em{position:absolute;right:6px;color:#6f7d79}.remaining{border-top:1px dashed #cbd4d0}.settlement .remaining b{font-size:var(--type-ui)}.settlement>.settlement-validation{min-height:18px;justify-content:flex-end;color:var(--danger);text-align:right}.negative,.settlement .remaining b.negative{color:#b63732!important}.vat-line label{margin-left:auto;display:flex;align-items:center}.vat-line input{width:44px;height:24px;padding:0 4px;border:1px solid #bdc9c4;text-align:right}.vat-line label em{margin-left:3px}.drawer-footer{height:48px;flex:0 0 48px;padding:0 10px;border-top:1px solid #bcc8c3;display:flex;align-items:center;justify-content:flex-end;gap:6px;background:#e5ebe9}.drawer-footer .primary-action,.drawer-footer .secondary-action,.drawer-footer .danger-action{min-width:90px}.invoice-detail-modal{width:min(1180px,calc(100vw - 24px));max-height:calc(100vh - 24px);border:1px solid #697b75;display:flex;flex-direction:column;background:#eef2f0;box-shadow:0 12px 36px #071c1847;animation:window-in .12s ease-out both}.detail-layout{min-height:0;flex:1;padding:8px 10px;display:flex;flex-direction:column;overflow:hidden}.detail-meta{flex:0 0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #c1ccc8;background:#f8faf9}.detail-meta>div{min-width:0;min-height:43px;padding:5px 8px;border-right:1px solid #d5ddda;border-bottom:1px solid #d5ddda}.detail-meta>div:nth-child(3n){border-right:0}.detail-meta>div:nth-last-child(-n+2){border-bottom:0}.detail-meta>div:last-child{grid-column:span 2;border-right:0}.outbound-detail-meta>div:nth-last-child(3){border-bottom:0}.outbound-detail-meta>div:last-child{grid-column:auto}.detail-meta span,.detail-note>span,.payment-history>span{display:block;color:#6a7874;font-size:var(--type-micro);font-weight:700;text-transform:uppercase}.detail-meta strong{display:block;overflow:hidden;margin-top:2px;font-size:var(--type-small);text-overflow:ellipsis;white-space:nowrap}.detail-meta strong.delivery{display:inline-flex;width:max-content;max-width:100%;padding:3px 6px;font-size:var(--type-caption)}.detail-meta .detail-invoice-code{display:flex;align-items:center;gap:5px}.detail-lock-icon{flex:0 0 14px;width:14px;height:14px;color:#b63732}.detail-meta small{display:block;margin-top:2px;color:#526a60;font-size:var(--type-micro)}.detail-lines-wrap{min-height:120px;flex:1;margin-top:8px;border:1px solid #bdc9c4;overflow:auto;background:#fff}.detail-lines{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}.inbound-detail-lines{min-width:1040px}.outbound-detail-lines{min-width:1000px}.detail-lines th{position:sticky;top:0;z-index:2;height:29px;padding:0 6px;border-right:1px solid #d2dcda;border-bottom:1px solid #bdc9c4;color:#50605b;background:#e3eae7;font-size:var(--type-micro);font-weight:700;text-align:left;text-transform:uppercase}.inbound-detail-lines th:first-child{width:32%}.inbound-detail-lines th:nth-child(2){width:6%}.inbound-detail-lines th:nth-child(3){width:7%}.inbound-detail-lines th:nth-child(4),.inbound-detail-lines th:nth-child(5){width:11%}.inbound-detail-lines th:nth-child(6){width:6%}.inbound-detail-lines th:nth-child(7){width:15%}.inbound-detail-lines th:last-child{width:12%}.outbound-detail-lines th:first-child{width:38%}.outbound-detail-lines th:nth-child(2){width:7%}.outbound-detail-lines th:nth-child(3){width:8%}.outbound-detail-lines th:nth-child(4){width:13%}.outbound-detail-lines th:nth-child(5){width:8%}.outbound-detail-lines th:nth-child(6){width:12%}.outbound-detail-lines th:nth-child(7){width:14%}.detail-lines td{min-height:38px;padding:5px 6px;border-right:1px solid #edf0ef;border-bottom:1px solid #dce3e0;vertical-align:middle;font-size:var(--type-small)}.detail-product>strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.detail-product-badges{min-width:0;margin-top:4px;display:flex;align-items:center;gap:4px;overflow:hidden}.detail-product-badges .product-badge{min-width:0;height:19px;padding:0 5px;border:1px solid #c4cfcb;display:inline-flex;align-items:center;overflow:hidden;color:#53635e;background:#edf1ef;font-size:var(--type-micro);line-height:17px;text-overflow:ellipsis;white-space:nowrap}.detail-product-badges .variant-badge{max-width:34%;flex:0 1 auto;color:#315a50;border-color:#b7cbc5;background:#e7f0ed}.detail-product-badges .gift-badge{flex:0 0 auto;color:#865812;border-color:#d6bd91;background:#fff4df}.detail-product-badges .lot-badge{max-width:66%;flex:0 1 auto;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.detail-product-badges .lot-badge>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.detail-quantity{font-weight:600;font-variant-numeric:tabular-nums}.detail-unit{overflow:hidden;color:#52635d;text-overflow:ellipsis;white-space:nowrap}.detail-lines .line-total{padding-top:5px!important}.detail-bottom{flex:0 0 128px;margin-top:8px;display:grid;grid-template-columns:minmax(240px,1fr) minmax(300px,1.2fr) 300px;gap:12px;overflow:hidden}.detail-bottom.has-return-history{flex-basis:220px}.detail-note,.payment-history,.detail-totals{min-width:0;padding-right:10px;border-right:1px solid #c5cfcb}.detail-note p{max-height:88px;margin:5px 0 0;overflow:auto;color:#3d4e49;font-size:var(--type-small);white-space:pre-wrap}.payment-history{display:flex;flex-direction:column;overflow:hidden}.payment-history>div{margin-top:3px;overflow:auto}.payment-history-list{max-height:102px;flex:0 0 auto}.has-return-history .payment-history-list{max-height:47px}.payment-history p{min-height:25px;margin:0;padding:3px 0;display:grid;grid-template-columns:105px 1fr 100px;align-items:center;gap:6px;border-bottom:1px solid #dce3e0;font-size:var(--type-micro)}.payment-history time{color:#61716c}.payment-history b{text-align:right;font-size:var(--type-caption);font-variant-numeric:tabular-nums}.payment-history b.refund-payment{color:#9a5c13}.payment-history em{overflow:hidden;color:#6f7d79;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.payment-history .no-payment{display:block;color:#788681}.return-history{min-height:0;flex:1;margin-top:5px!important;border-top:1px solid #c9d3cf;overflow:hidden!important}.return-history>span{display:block;padding:4px 0 1px;color:#6a7874;font-size:var(--type-micro);font-weight:700;text-transform:uppercase}.return-history-list{height:calc(100% - 20px);overflow:auto}.return-history-entry{border:1px solid #c8d2ce;border-bottom:0;background:#fff}.return-history-entry:last-child{border-bottom:1px solid #c8d2ce}.return-history-entry>header{min-height:26px;padding:3px 5px;display:grid;grid-template-columns:104px 1fr 54px;align-items:center;gap:6px;color:#54645f;background:#e8eeec;font-size:var(--type-micro)}.return-history-entry>header strong{overflow:hidden;color:#25463f;text-overflow:ellipsis;white-space:nowrap}.return-history-entry>header b{text-align:right;font-size:var(--type-caption);font-variant-numeric:tabular-nums}.return-history-entry table{width:100%;border-collapse:collapse;table-layout:fixed}.return-history-entry th{height:21px;padding:0 5px;border-right:1px solid #dce3e0;border-bottom:1px solid #d2dbd8;color:#697873;background:#f5f7f6;font-size:8px;text-align:left;text-transform:uppercase}.return-history-entry th:first-child{width:78%}.return-history-entry th:last-child{width:22%;border-right:0;text-align:right}.return-history-entry td{min-width:0;height:40px;padding:3px 5px;border-right:1px solid #e4e9e7;border-bottom:1px solid #e4e9e7;font-size:var(--type-micro);vertical-align:middle}.return-history-entry tr:last-child td{border-bottom:0}.return-history-entry td:last-child{border-right:0;text-align:right;white-space:nowrap}.return-history-entry td>strong{display:block;overflow:hidden;font-size:var(--type-caption);text-overflow:ellipsis;white-space:nowrap}.return-history-entry td>span{color:#6d7b77}.return-history-badges{margin-top:3px}.return-history-badges .lot-badge{max-width:100%}.return-lot-badge{max-width:100%;height:19px;padding:0 4px;border:1px solid #c4cfcb;display:inline-flex!important;align-items:center;overflow:hidden;color:#53635e;background:#edf1ef;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;text-overflow:ellipsis;white-space:nowrap}.detail-totals{padding-right:0;border-right:0}.detail-totals p{min-height:29px;margin:0;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #d3dcd8;color:#586762;font-size:var(--type-caption)}.detail-totals b{color:#273a35;font-size:var(--type-small);font-variant-numeric:tabular-nums}.detail-totals .remaining b{color:var(--danger);font-size:var(--type-section)}.detail-totals .refund-total b{color:#995b12;font-size:var(--type-section)}.detail-error{min-height:0;flex:1;margin:10px;padding:10px;border-left:3px solid var(--danger);color:#913b36;background:#fff0ef;font-size:var(--type-small)}.return-action{color:#8a5a12}.confirm-modal{width:min(500px,calc(100vw - 16px));border:1px solid #697b75;display:flex;flex-direction:column;background:#eef2f0;box-shadow:0 12px 36px #071c1847;animation:window-in .12s ease-out both}.confirm-content{padding:12px;background:#f8faf9}.confirm-content p{margin:0 0 8px;color:#344640;font-size:var(--type-small);line-height:1.5}.confirm-content p:last-of-type{margin-bottom:0;color:#687671}.confirm-content .detail-error{margin:10px 0 0}.delivery-context{margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid #d5ddda;display:flex;align-items:center;justify-content:space-between}.delivery-context span{color:#687772;font-size:var(--type-caption);font-weight:700;text-transform:uppercase}.delivery-context strong{color:#075c53;font-size:var(--type-small)}.invoice-return-modal{width:min(1060px,calc(100vw - 24px));height:min(520px,calc(100vh - 24px));border:1px solid #697b75;display:flex;flex-direction:column;background:#eef2f0;box-shadow:0 12px 36px #071c1847;animation:window-in .12s ease-out both}.return-layout{min-height:0;flex:1;padding:8px 10px;display:flex;flex-direction:column}.return-meta{flex:0 0 auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #c1ccc8;background:#f8faf9}.return-meta>div{min-width:0;min-height:42px;padding:5px 8px;border-right:1px solid #d5ddda}.return-meta>div:last-child{border-right:0}.return-meta span{display:block;color:#6a7874;font-size:var(--type-micro);font-weight:700;text-transform:uppercase}.return-meta strong{display:block;overflow:hidden;margin-top:2px;font-size:var(--type-small);text-overflow:ellipsis;white-space:nowrap}.return-lines-wrap{min-height:100px;flex:1;margin-top:8px;border:1px solid #bdc9c4;overflow:auto;background:#fff}.return-lines{width:100%;min-width:820px;border-collapse:separate;border-spacing:0;table-layout:fixed}.return-lines th{position:sticky;top:0;z-index:2;height:29px;padding:0 6px;border-right:1px solid #d2dcda;border-bottom:1px solid #bdc9c4;color:#50605b;background:#e3eae7;font-size:var(--type-micro);font-weight:700;text-align:left;text-transform:uppercase}.return-lines th:first-child{width:40%}.return-lines th:nth-child(2),.return-lines th:nth-child(3){width:9%}.return-lines th:nth-child(4){width:8%}.return-lines th:nth-child(5){width:14%}.return-lines th:last-child{width:16%}.return-lines td{height:44px;padding:5px 6px;border-right:1px solid #edf0ef;border-bottom:1px solid #dce3e0;font-size:var(--type-small);vertical-align:middle}.return-lines td strong,.return-lines td span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.return-lines td span{margin-top:2px;color:#74817d;font-size:var(--type-micro)}.return-lines input{width:100%;height:29px;padding:0 6px;border:1px solid #bdc9c4;outline:0;text-align:right}.return-lines input:focus{border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}.outbound-return-lines th:first-child{width:43%}.outbound-return-lines th:nth-child(2){width:9%}.outbound-return-lines th:nth-child(3){width:8%}.outbound-return-lines th:nth-child(4){width:14%}.outbound-return-lines th:nth-child(5){width:9%}.outbound-return-lines th:last-child{width:17%}.return-error{flex:0 0 auto;margin-top:7px;padding:6px 8px;border-left:3px solid var(--danger);color:#913b36;background:#fff0ef;font-size:var(--type-small)}.payment-backdrop{z-index:130}.payment-modal{width:min(430px,calc(100vw - 16px));border:1px solid #697b75;display:flex;flex-direction:column;background:#eef2f0;box-shadow:0 12px 36px #071c1847;animation:window-in .12s ease-out both}.payment-modal form{display:flex;flex-direction:column}.payment-content{padding:10px}.payment-invoice{min-height:62px;padding:6px 8px;border:1px solid #c0cbc7;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:10px;align-items:center;background:#f8faf9}.payment-invoice>div{min-width:0}.payment-invoice span{display:block;color:#667570;font-size:var(--type-micro);font-weight:700;text-transform:uppercase}.payment-invoice strong{display:block;overflow:hidden;margin-top:3px;color:#17352f;font-size:var(--type-small);text-overflow:ellipsis;white-space:nowrap}.payment-invoice .payment-remaining{padding-left:10px;border-left:1px solid #d1dad7;text-align:right}.payment-invoice b{display:block;margin-top:3px;color:var(--danger);font-size:var(--type-section);font-variant-numeric:tabular-nums;white-space:nowrap}.payment-field{margin-top:10px}.payment-field-control{position:relative;display:flex}.payment-field-control input{height:36px;padding-right:90px;text-align:right;font-size:var(--type-ui);font-weight:600;font-variant-numeric:tabular-nums}.payment-field-control button{position:absolute;top:1px;right:1px;height:34px;padding:0 8px;border:0;border-left:1px solid #c1ccc8;cursor:pointer;color:#08685e;background:#edf4f1;font-size:var(--type-micro);font-weight:700}.payment-field .field-error{margin-top:4px}.products-report-modal{width:min(1180px,calc(100vw - 24px));height:min(680px,calc(100vh - 24px));border:1px solid #697b75;display:flex;flex-direction:column;background:#eef2f0;box-shadow:0 12px 36px #071c1847;animation:window-in .12s ease-out both}.report-toolbar{min-height:43px;padding:6px 8px;border-bottom:1px solid #c6d0cc;display:flex;align-items:center;gap:10px;background:#f5f8f7}.report-toolbar .search-box{width:min(430px,60vw)}.report-toolbar>span{margin-left:auto;color:#64736e;font-size:var(--type-caption)}.products-report-table-wrap{min-height:0;flex:1;overflow:auto;background:#fff}.products-report-table{width:100%;min-width:980px;border-collapse:separate;border-spacing:0;table-layout:fixed}.products-report-table th{position:sticky;top:0;z-index:2;height:30px;padding:0 7px;border-right:1px solid #d4ddda;border-bottom:1px solid #bfcac6;color:#4d5d58;background:#e5ebe9;font-size:var(--type-caption);text-align:left;text-transform:uppercase}.products-report-table th:first-child{width:25%}.products-report-table th:nth-child(2){width:17%}.products-report-table th:nth-child(3){width:24%}.products-report-table th:nth-child(4),.products-report-table th:nth-child(6){width:8%}.products-report-table th:nth-child(5){width:7%}.products-report-table th:last-child{width:13%}.products-report-table td{height:42px;padding:5px 7px;border-right:1px solid #edf0ef;border-bottom:1px solid #dde4e1;font-size:var(--type-small)}.products-report-table tbody tr:nth-child(2n){background:#fafcfb}.products-report-table td>strong,.products-report-table td>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.products-report-table td>span{color:#74817d;font-size:var(--type-micro)}.lock-backdrop{z-index:130}.lock-modal{width:min(430px,calc(100vw - 16px));border:1px solid #697b75;display:flex;flex-direction:column;background:#eef2f0;box-shadow:0 12px 36px #071c1847;animation:window-in .12s ease-out both}.lock-modal form{display:flex;flex-direction:column}.lock-content{padding:10px}.lock-context{min-height:56px;padding:6px 8px;border:1px solid #c0cbc7;display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:center;background:#f8faf9}.lock-context>div{min-width:0}.lock-context>div+div{padding-left:12px;border-left:1px solid #d1dad7}.lock-context span{display:block;color:#667570;font-size:var(--type-micro);font-weight:700;text-transform:uppercase}.lock-context strong,.lock-context b{display:block;overflow:hidden;margin-top:3px;color:#17352f;font-size:var(--type-small);text-overflow:ellipsis;white-space:nowrap}.lock-modal.is-locking .lock-context b{color:#8b5c16}.lock-description{margin:8px 0;color:#53635e;font-size:var(--type-small);line-height:1.4}.lock-password{margin-top:8px}.lock-password .credential-username{position:absolute;width:1px;height:1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.lock-password .field-error{margin-top:1px}.lock-modal.is-locking .lock-confirm{background:#8b5c16}.lock-modal.is-locking .lock-confirm:hover:not(:disabled){background:#68440e}.toast{position:fixed;right:10px;bottom:10px;z-index:200;min-height:38px;max-width:380px;padding:6px 6px 6px 9px;border:1px solid #92aaa2;display:flex;align-items:center;gap:7px;color:#27403a;background:#fff;box-shadow:0 6px 18px #0f2d282e;font-size:var(--type-small);animation:window-in .12s ease-out both}.toast-dot{width:6px;height:6px;background:#2d9b69}.toast button{width:25px;height:25px;margin-left:auto;border:0;display:grid;place-items:center;cursor:pointer;color:#65746f;background:transparent}.toast button svg{width:11px}@media(max-width:900px){.topbar{grid-template-columns:155px 1fr auto}.app-body{grid-template-columns:155px minmax(0,1fr)}.header-fields{grid-template-columns:1fr 1fr}.outbound-header-fields>:nth-child(n){grid-column:auto;grid-row:auto}.outbound-header-fields>:nth-child(1){grid-column:1 / -1}.outbound-header-fields>:nth-child(2){grid-column:1;grid-row:2 / span 2}.outbound-header-fields>:nth-child(3){grid-column:2;grid-row:2}.outbound-header-fields>:nth-child(4){grid-column:2;grid-row:3}.outbound-header-fields>:nth-child(5){grid-column:1;grid-row:4}.outbound-header-fields>:nth-child(6){grid-column:2;grid-row:4}.header-fields>:first-child{grid-column:span 2}.form-bottom{grid-template-columns:1fr 340px}.invoice-drawer{width:calc(100vw - 12px)}}@media(max-width:640px){.topbar{grid-template-columns:1fr auto}.topbar-title{display:none}.topbar-user>span{display:none}.app-body{grid-template-columns:1fr;grid-template-rows:34px minmax(0,1fr)}.module-sidebar{border-right:0;border-bottom:1px solid #bfcac6}.module-title{display:none}.module-sidebar nav{height:33px;padding:0;display:flex}.module-sidebar button{height:33px;flex:1;justify-content:center;border-left:0;border-bottom:2px solid transparent}.module-sidebar button.active{border-bottom-color:var(--brand)}.workspace-heading{height:40px;flex-basis:40px;padding-left:8px}.workspace-heading h1{font-size:15px}.workspace-heading .primary-action{width:31px;padding:0;font-size:0}.filter-bar{min-height:0;flex-basis:auto}.search-box,.date-range-filter,.date-range-trigger{width:100%}.date-picker-popover,.date-picker-popover.single-mode{position:fixed;top:86px;right:5px;left:5px;width:auto}.date-picker-popover.single-mode{right:auto;width:260px}.list-filter-select{min-width:140px;flex:1}.filter-actions{margin-left:auto}.advanced-filter-bar{grid-template-columns:1fr 1fr;max-height:190px;overflow:auto}.reset-filter{align-self:end}.summary-strip{min-height:68px;grid-template-columns:1fr 1fr}.summary-strip>div{padding:4px 7px}.summary-strip>div:nth-child(2){border-right:0}.summary-strip>div:nth-child(-n+2){border-bottom:1px solid #d6dfdb}.summary-strip strong{font-size:var(--type-ui)}.invoice-detail-modal,.invoice-return-modal,.products-report-modal{width:100vw;height:100vh;border:0}.return-meta{grid-template-columns:1fr 1fr}.return-meta>div:nth-child(2){border-right:0}.return-meta>div:nth-child(-n+2){border-bottom:1px solid #d5ddda}.detail-meta{grid-template-columns:1fr 1fr}.detail-meta>div:nth-child(3n){border-right:1px solid #d5ddda}.detail-meta>div:nth-child(2n){border-right:0}.detail-meta>div:nth-last-child(-n+3){border-bottom:1px solid #d5ddda}.detail-meta>div:nth-last-child(-n+2){border-bottom:0}.outbound-detail-meta>div:last-child{grid-column:span 2;border-bottom:0}.outbound-detail-meta>div:nth-last-child(2){border-bottom:1px solid #d5ddda}.inbound-detail-meta>div:nth-last-child(2){border-bottom:1px solid #d5ddda}.detail-bottom{flex-basis:165px;grid-template-columns:1fr 1fr;overflow:auto}.detail-note{display:none}.invoice-drawer{width:100vw;height:100vh;border:0}.editor-layout{padding:7px}.header-fields,.form-bottom{grid-template-columns:1fr;max-width:none}.outbound-header-fields>:nth-child(n){grid-column:auto;grid-row:auto}.header-fields>:first-child{grid-column:auto}.editor-fixed-top,.form-bottom{max-height:35vh;overflow:auto}.product-search-row .async-select{width:auto;flex:1}.add-hint{width:34px;padding:0;font-size:0}.editor-table-wrap{overflow:auto}.settlement{padding-left:0;border-left:0}.drawer-footer{height:44px;flex-basis:44px;padding:0 7px}.drawer-footer .secondary-action{min-width:66px}.drawer-footer .primary-action{flex:1}.toast{right:5px;bottom:5px;left:5px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.outbound-print-sheet{display:none}@media print{@page{size:A5 landscape;margin:4mm}:root,body{width:auto;height:auto;overflow:visible;background:#fff}body>#root{display:none!important}.outbound-print-sheet{width:100%;padding:2mm 3mm;display:block;color:#111;background:#fff;font-family:Arial,sans-serif;font-size:8.5pt;line-height:1.18;print-color-adjust:exact}.outbound-print-sheet *{box-sizing:border-box}.print-generated-at{margin-bottom:2mm;font-size:8pt;font-style:italic;text-align:right}.print-company{min-height:21mm;padding-bottom:2mm;border-bottom:1px solid #222;display:grid;grid-template-columns:58% 42%;gap:0;break-inside:avoid}.print-company h2,.print-bank h3{margin:0 0 1.5mm;font-size:9pt;line-height:1.1}.print-company p,.print-contacts p{margin:0 0 .7mm}.print-company b,.print-contacts b,.print-note b{font-weight:700}.print-bank{min-width:0;display:flex;align-items:flex-start;gap:2mm}.print-bank>div{min-width:0;flex:1}.print-bank img{width:23mm;height:23mm;flex:0 0 23mm;object-fit:contain}.outbound-print-sheet h1{margin:3mm 0 2.5mm;font-size:15pt;line-height:1;text-align:center}.print-contacts{margin-bottom:3mm;display:grid;grid-template-columns:58% 42%;break-inside:avoid}.print-invoice-meta{text-align:right}.print-invoice-meta>strong{display:block;margin-bottom:1mm;font-size:9pt}.print-payment-condition{color:#111;font-weight:700}.print-product-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:7.5pt}.print-product-table thead{display:table-header-group}.print-product-table tr{break-inside:avoid}.print-product-table th{height:9mm;padding:1mm .8mm;border-top:1px solid #222;border-bottom:1px solid #222;border-right:.4pt solid #888;color:#111;background:#fff;font-size:7pt;line-height:1.15;text-align:left;vertical-align:middle}.print-product-table th:last-child{border-right:0}.print-product-table td{padding:1.5mm .8mm;border-bottom:.4pt solid #888;vertical-align:top;overflow-wrap:anywhere}.print-product-table th:nth-child(1),.print-product-table th:nth-child(3),.print-product-table th:nth-child(4),.print-product-table th:nth-child(7){text-align:center}.print-product-table th:nth-child(5),.print-product-table th:nth-child(6),.print-product-table th:nth-child(8){text-align:right}.print-product-table td small{font-size:7pt;font-style:italic}.print-product-table .print-centered{text-align:center}.print-product-table .print-number{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.print-totals-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:7.5pt;break-inside:avoid}.print-totals-table td{padding:1.4mm .8mm;text-align:right}.print-totals-table td:last-child{white-space:nowrap;font-variant-numeric:tabular-nums}.print-totals-table tr:last-child td{border-top:1px solid #222;font-weight:700}.print-note{margin:2mm 0 0}.print-signatures{margin-top:9mm;display:grid;grid-template-columns:repeat(4,1fr);text-align:center;break-inside:avoid}.print-signatures b,.print-signatures i{display:block}.print-signatures i{margin-top:1mm;font-size:7.5pt}}
