.viewWidthControl{position:relative;flex:0 0 auto}.viewWidthTrigger{display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:1px solid var(--border);border-radius:10px;background:var(--bg-card);color:var(--text);cursor:pointer}.viewWidthTrigger[aria-expanded=true]{border-color:var(--accent);color:var(--accent)}.viewWidthPopover{position:fixed;z-index:1000;box-sizing:border-box;width:324px;max-width:calc(100vw - 24px);padding:16px;border:1px solid var(--border);border-radius:14px;background:var(--bg-main);color:var(--text);box-shadow:0 14px 40px #0004;font-size:12px}.viewWidthPopover label{display:block;font-size:14px;font-weight:600}.viewWidthPopover output{display:block;margin:6px 0;color:var(--text-muted)}.viewWidthPopover input{width:100%;margin:8px 0;accent-color:var(--accent)}.viewWidthEnds,.viewWidthFooter{display:flex;justify-content:space-between;align-items:center;gap:8px;color:var(--text-muted)}.viewWidthFooter{margin-top:14px;padding-top:12px;border-top:1px solid var(--border)}.viewWidthPopover button{font:inherit;color:var(--text);background:var(--bg-card);border:1px solid var(--border);border-radius:7px;padding:5px 7px;cursor:pointer}.viewWidthStatus{margin-top:8px;color:var(--text-muted)}@media(max-width:820px){.viewWidthControl{display:none}}.invoice-column-header[draggable=true]{cursor:grab}.invoice-column-header[draggable=true]:active{cursor:grabbing}.invoice-column-header:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}.invoice-column-target{box-shadow:inset 0 0 0 2px var(--accent)}.invoice-column-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:8px 12px;font-size:12px;color:var(--text-muted)}.invoice-column-toolbar button{color:var(--text);background:var(--bg-card);border:1px solid var(--border);border-radius:8px;padding:6px 10px;cursor:pointer}.invoice-column-toolbar button:disabled{opacity:.5;cursor:default}.invoiceAdaptiveRow{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 8px;text-align:left}.invoiceAdaptiveRow>span{white-space:nowrap;font-variant-numeric:tabular-nums}.invoiceAdaptiveValues{display:flex;flex-direction:column;gap:4px;width:var(--invoice-values-width, 63px)}.payment-report{min-width:0;padding:16px;background:var(--panel);border:1px solid var(--border);border-radius:18px}.payment-report p{font-size:12px;color:var(--text-muted)}.payment-report-columns{display:flex;flex-wrap:nowrap;min-width:0;overflow-x:auto;gap:5px;border:1px solid var(--border);border-radius:12px;padding:10px}.payment-report-column{display:flex;flex:0 0 auto;align-items:center;border:1px solid var(--border);padding:5px;border-radius:8px;cursor:grab}.payment-report-column label{display:flex;gap:3px;align-items:center;font-size:12px;white-space:nowrap;cursor:inherit}.payment-report-column:active{cursor:grabbing}.payment-report-column:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.payment-report .is-drop-target{box-shadow:inset 0 0 0 2px var(--accent)}.payment-report th[draggable]{cursor:grab}.payment-report button,.payment-report select{padding:7px 9px;border:1px solid var(--border);border-radius:7px;background:var(--bg-card-strong);color:var(--text);cursor:pointer}.payment-report button:disabled{opacity:.45;cursor:default}.payment-report button:focus-visible,.payment-report tr:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.payment-report-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:14px 0}.payment-report-scroll{overflow:auto;border:1px solid var(--border);border-radius:8px}.payment-report table{border-collapse:separate;border-spacing:0;width:100%;font-size:12px}.payment-report th{position:sticky;top:0;z-index:1;background:var(--bg-card-strong);text-align:left}.payment-report th button{border:0;font-weight:700;text-align:left;width:100%}.payment-report th,.payment-report td{border-bottom:1px solid var(--border);padding:9px;min-width:95px}.payment-report td{max-width:300px;overflow-wrap:anywhere}.payment-report th.payment-report-lp,.payment-report td.payment-report-lp{width:38px;min-width:38px;max-width:38px;padding:9px 4px;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.payment-report td.number{white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}.payment-report tbody tr{cursor:pointer}.payment-report tr.selected{background:color-mix(in srgb,var(--accent) 17%,transparent)}:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:root{--bg-main: #0b1220;--bg-card: rgba(15, 23, 42, .55);--bg-card-strong: rgba(15, 23, 42, .9);--dropdown-bg: #0f172a;--border: rgba(148, 163, 184, .14);--border-strong: rgba(148, 163, 184, .22);--text: #e5e7eb;--text-muted: rgba(226, 232, 240, .7);--text-soft: rgba(226, 232, 240, .85);--accent: rgba(37, 99, 235, 1);--accent-2: rgba(30, 58, 138, 1);--ok: rgba(16, 185, 129, .95);--warn: rgba(245, 229, 11, .95);--bad: rgba(243, 99, 99, .95);--btn-bg: rgba(15, 23, 42, .25);--btn-border: var(--border-strong);--link: rgba(147, 197, 253, .95);--btn-primary-bg: linear-gradient(135deg, var(--accent), var(--accent-2));--btn-primary-border: color-mix(in srgb, var(--accent) 55%, transparent);--btn-primary-text: #fff;--status-active-bg: linear-gradient(135deg, var(--accent), var(--accent-2));--status-active-border: color-mix(in srgb, var(--accent) 55%, transparent);--status-active-text: #fff}html[data-theme=light]{--bg-main: #eef2f7;--bg-card: #f6f8fb;--bg-card-strong: #ffffff;--dropdown-bg: #ffffff;--border: rgba(0, 0, 0, .08);--border-strong: rgba(0, 0, 0, .14);--text: #0b1220;--text-muted: rgba(11, 18, 32, .65);--text-soft: rgba(11, 18, 32, .85);--accent: rgba(37, 99, 235, 1);--accent-2: rgba(30, 58, 138, 1);--ok: rgb(5, 150, 105);--warn: rgb(129, 79, 9);--bad: rgb(185, 28, 28);--btn-primary-bg: #e2e8f0;--btn-primary-border: #cbd5e1;--btn-primary-text: #0b1220;--btn-bg: #f1f5f9;--link: rgb(196, 196, 196);--status-active-bg: #e2e8f0;--status-active-border: #cbd5e1;--status-active-text: #0b1220}html,body{min-height:100%}body{margin:0;display:block;min-width:320px;min-height:100vh;background:var(--bg-main);color:var(--text)}html[data-theme=dark]{color-scheme:dark}html[data-theme=light]{color-scheme:light}a{font-weight:500;color:var(--link);text-decoration:inherit}a:hover{opacity:.9}button{border-radius:8px;border:1px solid var(--btn-border);padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background:var(--btn-bg);color:var(--text);cursor:pointer;transition:border-color .25s,background .25s,opacity .2s}button:hover{border-color:var(--accent)}button:disabled{opacity:.55;cursor:not-allowed}button:focus,button:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 35%,transparent);outline-offset:2px}.tenantTicker{width:100%;overflow:hidden;white-space:nowrap}.tenantTickerTrack{display:inline-block;min-width:100%;white-space:nowrap;transform:translate(0)}.tenantTicker.is-overflowing:hover .tenantTickerTrack{animation:tenantTickerDrift 3.1s ease-in-out infinite alternate}@keyframes tenantTickerDrift{0%{transform:translate(0)}to{transform:translate(var(--tenant-scroll-distance, 0px))}}h1,h2,h3,h4,h5,h6{color:var(--text)}.mobileOnly{display:none}.desktopOnly{display:block}@media(max-width:820px){.mobileOnly{display:block}.desktopOnly{display:none}}@media(max-width:820px){.inv-table thead{display:none}.inv-table,.inv-table tbody,.inv-table tr,.inv-table td{display:block;width:100%}.inv-table tr.inv-row{border:1px solid var(--border);border-radius:14px;margin-bottom:12px;overflow:hidden;background:color-mix(in srgb,var(--bg-card) 80%,transparent)}.inv-table tr.inv-row>td{border-bottom:1px solid var(--border);padding:10px 12px}.inv-table tr.inv-row>td:last-child{border-bottom:none}.inv-table tr.inv-row>td:before{content:attr(data-label);display:block;font-size:12px;font-weight:700;color:var(--text-muted);margin-bottom:6px}.inv-table tr.inv-row>td[data-label=Akcje]{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.inv-table tr.inv-row>td[data-label=Akcje]:before{width:100%}.inv-table tr.inv-note-row td{display:block;width:100%;border:1px solid var(--border);border-radius:14px;padding:10px 12px;margin:-6px 0 14px;background:color-mix(in srgb,var(--bg-card) 65%,transparent)}.inv-table tr.inv-note-row td:before{content:"Komentarz";display:block;font-size:12px;font-weight:700;color:var(--text-muted);margin-bottom:6px}}@media(max-width:820px){.topBar{flex-direction:column;align-items:stretch;gap:10px}.topBarRight{flex-wrap:wrap;justify-content:space-between;gap:10px}.topBarRight .kpiBox{flex:1 1 100%}.topBarRight .btnRow{display:flex;gap:8px;flex-wrap:wrap;width:100%}.topBarRight .btnRow>button{flex:1 1 140px}}.filtersToggle{display:none}@media(max-width:820px){.filtersHeader{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.filtersHint{grid-column:1 / span 2}.filtersToggle{display:inline-flex}.filtersBody{display:none}.filtersBody.open{display:block}.filtersBody form{display:grid!important;grid-template-columns:1fr!important}.filtersBody [style*=gridColumn]{grid-column:1 / -1!important}.filtersBody .actionsRow{display:flex!important;gap:8px}.filtersBody .actionsRow>button{flex:1 1 50%}}@media(max-width:820px){.appHeaderInner{flex-direction:column;align-items:stretch;gap:10px}.appBrand{width:100%;justify-content:flex-start}.appHeaderRight{width:100%;display:grid;grid-template-columns:1fr;gap:10px}.appHeaderRight .tenantPill,.appHeaderRight .userBlock{width:100%;min-width:0}.appHeaderRight .headerActions{width:100%;justify-content:space-between}.appHeaderRight .headerActions>button{flex:1 1 50%}.headerMenu{right:0!important;left:0!important;width:auto!important;max-width:100%!important}}@media(min-width:560px)and (max-width:820px){.appHeaderRight{grid-template-columns:1fr 1fr;align-items:start}.appHeaderRight .headerActions{grid-column:1 / -1}}.headerMenuItem{transition:background-color .16s ease,color .16s ease}.headerMenu{display:flex;flex-direction:column}.headerMenu .headerMenuItem{border-bottom:1px solid color-mix(in srgb,var(--border) 88%,transparent)!important}.headerMenu .headerMenuItem:hover{background:color-mix(in srgb,var(--accent) 8%,var(--bg-card-strong))!important}.headerMenu .headerMenuItem:last-child{border-bottom:none!important}.nbpHistoryRow{transition:background-color .14s ease}.nbpHistoryRow:hover{background:color-mix(in srgb,var(--accent) 7%,transparent)}@media(max-width:820px){.appHeaderInner{flex-direction:column;align-items:stretch;gap:10px}.appBrandRow{width:100%;display:grid!important;grid-template-columns:1fr auto;align-items:center;gap:12px}.appBrand{min-width:0}.appHeaderRight{width:100%;display:grid!important;grid-template-columns:1fr 1fr;gap:10px;align-items:start}.appHeaderRight .tenantPill,.appHeaderRight .userBlock{min-width:0;width:100%}.appHeaderRight .headerActions{grid-column:1 / -1;width:100%;display:grid!important;grid-template-columns:1fr 1fr;gap:10px}.appHeaderRight .headerActions>button{width:100%}.headerMenu{right:0!important;left:0!important;width:auto!important;max-width:100%!important}.headerMenuItem{font-size:14px}}@media(max-width:520px){.appHeaderRight,.appHeaderRight .headerActions{grid-template-columns:1fr}}@media(max-width:820px){.appHeader{position:static!important}}.invoice-list-typography[data-invoice-list-font-mode=Compact]{font-family:Aptos Narrow,Arial Narrow,Roboto Condensed,Segoe UI,sans-serif}.invoice-list-typography[data-invoice-list-font-mode=Compact] :is(td,td *,th,th *,button,input,select){font-family:inherit!important;font-size:13px!important;font-weight:500!important}.invoice-list-typography[data-invoice-list-font-mode=Compact] :is(th,th *){font-size:14px!important;font-weight:600!important}.invoice-list-typography[data-invoice-list-font-mode=Compact] :is(b,strong){font-weight:600!important}.invoice-list-typography[data-invoice-list-font-mode=Comfortable]{font-family:Atkinson Hyperlegible,Lexend,"Source Sans 3",Segoe UI,sans-serif}.invoice-list-typography[data-invoice-list-font-mode=Comfortable] :is(td,td *,th,th *,button,input,select){font-family:inherit!important;font-size:14px!important}.invoice-list-typography[data-invoice-list-font-mode=Comfortable] :is(th,th *){font-size:15px!important}.undoDecisionDialog::backdrop{background:#0000008c}@media(max-width:820px){#root,#root *,#root *:before,#root *:after{box-sizing:border-box}.appHeader{position:relative!important}.appHeaderInner{padding:10px 8px!important;flex-direction:column!important;align-items:stretch!important}.appHeaderRight{min-width:0;grid-template-columns:minmax(0,1fr)!important}.appHeaderRight .tenantPill,.appHeaderRight .userBlock{min-width:0!important;max-width:100%!important;width:100%!important;flex-basis:auto!important;overflow-wrap:anywhere}.appHeaderRight .headerActions{grid-template-columns:repeat(2,minmax(0,1fr))!important;min-width:0}.headerMenu{max-height:75dvh;overflow-y:auto!important}.headerSubmenu{position:static!important;width:100%!important;box-shadow:none!important}.appMain{padding:8px 0 16px!important}.appContent{padding:8px 4px!important;margin:0!important;border-inline:0!important;border-radius:0!important;box-shadow:none!important}.appFooterInner{padding:10px 8px!important;flex-wrap:wrap;gap:8px}.appMain :is(div,section,form,fieldset),.mobile-overlay :is(div,section,form,fieldset){min-width:0!important;max-width:100%}.appMain :is(h1,h2,h3,p,label,pre),.mobile-overlay :is(h1,h2,h3,p,label,pre){overflow-wrap:anywhere}.mobile-grid{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}.mobile-grid>*{grid-column:1 / -1!important;min-width:0!important}.mobile-flow{flex-wrap:wrap!important;gap:8px!important;min-width:0}.mobile-flow>*{min-width:0!important;max-width:100%}.topBar{flex-direction:column!important;align-items:stretch!important}.topBarRight{width:100%}.mobile-scroll{max-width:100%;min-width:0;overflow-x:auto!important;overscroll-behavior-x:contain}.mobile-overlay{padding:8px!important;overflow-y:auto}.mobile-overlay>div{width:100%!important;max-width:100%!important;max-height:calc(100dvh - 16px)!important;overflow-y:auto!important}.mobile-overlay iframe{min-height:0;flex:1 1 auto}.mobile-overlay button{flex-shrink:0;overflow-wrap:normal!important}#root :is(input,select,textarea){max-width:100%;min-width:0!important;font-size:16px!important}#root button{max-width:100%;min-height:40px;white-space:normal;overflow-wrap:anywhere}.invoice-preview{padding:0!important}.invoiceListResults{padding-inline:4px!important}.invoiceMobileCard{padding-inline:8px!important;overflow-wrap:anywhere}.invoiceMobileHeader{display:grid!important;grid-template-columns:minmax(0,1fr)}.invoiceMobileHeader>div{text-align:left!important}.invoiceLinePreviewRow{grid-template-columns:repeat(4,minmax(0,1fr))!important;row-gap:6px!important}.invoiceLinePreviewRow>:first-child{grid-column:1 / -1;white-space:normal!important}.invoiceLinePreviewRow>[data-label]{white-space:normal!important;overflow-wrap:anywhere}.invoiceLinePreviewRow>[data-label]:before{content:attr(data-label);display:block;font-size:10px;color:var(--text-muted)}.mobile-grid>.mobile-divider{border-left:0!important;padding-left:0!important;border-top:1px solid var(--border);padding-top:10px}.appHeaderInner{gap:8px!important}.appBrand>div:last-child>div:not(:first-child){display:none}.appHeaderRight{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:6px!important}.appHeaderRight .tenantPill{grid-column:1 / -1;padding:4px 8px!important;min-height:32px!important}.tenantPill>div:first-child{display:none}.appHeaderRight .userBlock{display:none}.headerModules{padding:0!important;border:0!important;background:none!important;gap:4px!important}.headerModules>button{flex:1;padding:5px 8px!important}.headerSync{width:100%;min-height:40px!important}.appHeaderRight .headerActions{grid-column:1 / -1;grid-template-columns:minmax(0,1fr) 44px!important}.mobileMenuIdentity{font-size:12px;overflow-wrap:anywhere;border-bottom:1px solid var(--border)}.invoiceListPage .topBar{gap:6px!important;margin-bottom:8px!important}.invoiceTotalCount{display:none!important}.invoiceListPage .topBarRight{display:flex!important;flex-wrap:wrap!important;gap:6px!important}.invoiceListPage .topBarRight>button{flex:1}.invoiceActivity{flex-basis:100%}.invoiceActivity.empty,.invoiceFilters:not(.expanded),.invoiceFilters .filtersHeader{display:none!important}.invoiceFilters.expanded{padding:8px!important}.invoiceMobileCard{padding-bottom:8px!important}.invoiceCompactTop{display:flex;align-items:center;justify-content:space-between;gap:8px}.invoiceCompactSelect{display:flex;align-items:center;justify-content:center;width:40px;min-height:40px;cursor:pointer}.invoiceCompactSelect input{width:18px;height:18px}.invoiceCompactParty{margin-top:4px;font-size:16px;font-weight:750;line-height:1.35}.invoiceCompactNumber{margin-top:4px;font-size:12px;color:var(--text-muted)}.invoiceCompactBadges{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;font-size:11px;font-weight:700}.invoiceCompactAmounts{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin:10px 0}.invoiceCompactAmounts>span{font-size:12px;color:var(--text-muted)}.invoiceCompactAmounts strong{font-size:18px;margin-left:auto;text-align:right}.invoiceCompactAmounts small{display:block;font-size:11px;font-weight:400;color:var(--text-muted)}.invoiceCompactDue{margin-bottom:8px;font-size:12px;text-align:right;color:var(--warn)}.invoiceCompactPreview{width:100%}.invoiceCompactActions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 8px;align-items:stretch}.invoiceCompactPayment{width:100%;color:#fff!important}.invoiceCompactPayment.paid{background:#48765a!important;border-color:#48765a!important}.invoiceCompactPayment.unpaid{background:#a65359!important;border-color:#a65359!important}.invoiceCompactPayment.other{background:var(--panel)!important;color:var(--text)!important}.invoiceCompactPayment:disabled{opacity:1;cursor:default}.invoiceCompactDeadline{grid-column:2;text-align:right;font-size:12px;color:var(--text-muted)}.invoiceMobileExtras{margin-top:4px}.invoiceMobileExtras>summary{padding:10px 4px;min-height:44px;font-size:13px;color:var(--text-muted);cursor:pointer}.invoiceMobileExtras>summary:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;border-radius:6px}.invoiceExpanded{border-top:1px solid var(--border);padding-top:10px}.invoiceActionSection{margin-top:14px;padding-top:12px;border-top:1px solid var(--border)}.invoiceActionSection h4{margin:0 0 8px;font-size:14px}.invoicePaymentSummary{display:grid;gap:8px;font-size:13px}.invoicePaymentSummary>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px}.invoicePaymentSummary strong{margin-left:auto}.invoicePaymentButtons{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.invoicePaymentButtons>button{flex:1 1 140px}.invoicePaymentButtons>button:disabled{opacity:.55;cursor:not-allowed}.invoicePaymentNote{margin-top:6px;font-size:12px;color:var(--text-muted)}.invoiceDocumentButtons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.invoiceDocumentButtons>button:first-child{grid-column:1 / -1}.invoiceDocumentButtons>button{width:100%;min-height:44px!important;padding:8px 4px!important}.invoiceDocumentButtons small{display:block;font-size:10px;font-weight:400;color:var(--text-muted)}.invoiceListPage.hasSelection{padding-bottom:calc(35dvh + 16px)}.invoiceBulkActions:not(.active){display:none!important}.invoiceBulkActions.active{inset:auto 8px 8px!important;width:auto!important;max-height:35dvh!important;overflow-y:auto;transform:none!important;background:var(--bg-main)!important}.invoiceBulkSubmenu{position:static!important;width:100%!important;max-height:180px;overflow-y:auto}}
