:root{--navy:#0b1f3a;--navy2:#102b4e;--gold:#c99a43;--bg:#f4f6f9;--text:#172033;--muted:#697386;--line:#dfe4eb;--red:#b42318;--green:#147a4b}*{box-sizing:border-box}body{margin:0;font-family:"Segoe UI",Arial,sans-serif;color:var(--text);background:var(--bg)}.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(145deg,#07172b,#12365e)}.auth-card{width:min(430px,100%);background:#fff;border-radius:16px;padding:34px;box-shadow:0 24px 70px #0005}.brand{display:flex;align-items:center;gap:12px;margin-bottom:30px}.brand-logo{display:block;width:52px;height:52px;object-fit:cover;border-radius:9px;flex:0 0 auto}.brand strong,.brand small{display:block}.brand strong{letter-spacing:.08em}.brand small{color:var(--muted);margin-top:3px}.auth-card h1{font-size:26px;margin:0 0 7px}.muted{color:var(--muted);margin:0 0 24px;line-height:1.5}label{display:block;font-weight:600;font-size:14px;margin:16px 0}input{display:block;width:100%;margin-top:7px;padding:12px 13px;border:1px solid #cbd3df;border-radius:8px;font:inherit;outline:none}input:focus{border-color:var(--gold);box-shadow:0 0 0 3px #c99a4326}button,.button{display:inline-flex;justify-content:center;width:100%;border:0;border-radius:8px;padding:13px 18px;background:var(--navy);color:#fff;font-weight:700;font-size:15px;text-decoration:none;cursor:pointer}.alert,.success{padding:11px 13px;border-radius:8px;margin:18px 0;font-size:14px}.alert{background:#fee4e2;color:var(--red)}.success{background:#dcfae6;color:var(--green)}.topbar{min-height:76px;padding:12px 30px;background:var(--navy);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;color:#fff}.topbar .brand{margin:0}.topbar .brand-logo{width:50px;height:50px;border-radius:7px}.brand-light small{color:#c5d0de}.topnav{display:flex;align-items:center;gap:5px}.navlink{color:#c5d0de;text-decoration:none;padding:9px 13px;border-radius:7px;font-size:14px;font-weight:700}.navlink:hover,.navlink.active{color:#fff;background:#ffffff17}.userbox{display:flex;align-items:center;gap:11px;justify-self:end}.userbox small{display:block;color:#bfcbd9;font-size:12px;margin-top:2px}.avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--gold);color:#fff;font-weight:800;flex:0 0 auto}.userbox form{margin-left:10px}.logout{width:auto;padding:9px 12px;background:#ffffff18;border:1px solid #ffffff2e}.dashboard{max-width:1280px;margin:auto;padding:34px 28px}.welcome{display:flex;justify-content:space-between;gap:30px;align-items:flex-start;background:#fff;border:1px solid var(--line);padding:28px;border-radius:14px}.eyebrow{font-size:12px;font-weight:800;letter-spacing:.13em;color:var(--gold);margin:0 0 8px}.welcome h1,.panel h1{margin:0 0 10px}.welcome p:not(.eyebrow){margin:0;color:var(--muted);max-width:720px;line-height:1.6}.status{color:var(--green);font-size:12px;font-weight:800;white-space:nowrap}.placeholder{text-align:center;background:#fff;border:1px dashed #bdc6d3;border-radius:14px;margin-top:22px;padding:55px 20px}.placeholder-icon{margin:auto;display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:#dcfae6;color:var(--green);font-size:25px;font-weight:800}.placeholder h2{margin:16px 0 7px}.placeholder p{color:var(--muted);margin:0}.admin-grid{max-width:1500px;display:grid;grid-template-columns:360px 1fr;gap:22px;align-items:start}.panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:26px}.users-panel{min-width:0}.section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.count-badge{background:#eef2f6;color:var(--navy);padding:7px 10px;border-radius:20px;font-weight:700;font-size:12px}.activation-box{background:#fff8e9;border:1px solid #efd59e;border-radius:10px;padding:14px;margin:18px 0}.activation-box label{margin:0}.activation-box small{display:block;color:#74613a;margin-top:9px}.copy-button{margin-top:9px;padding:10px}.table-wrap{overflow:auto}.users-table{width:100%;border-collapse:collapse;font-size:14px}.users-table th{text-align:left;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.04em;padding:12px;border-bottom:1px solid var(--line)}.users-table td{padding:14px 12px;border-bottom:1px solid #edf0f4;vertical-align:middle}.person{display:flex;align-items:center;gap:10px;min-width:210px}.person strong,.person small{display:block}.person small{color:var(--muted);margin-top:3px}.status-pill{display:inline-flex;padding:5px 8px;border-radius:16px;font-weight:700;font-size:12px}.status-aktywne{background:#dcfae6;color:var(--green)}.status-zablokowane{background:#fee4e2;color:var(--red)}.status-oczekuje{background:#fff2cc;color:#7a5b00}.row-actions{display:flex;gap:7px}.row-actions form{margin:0}.small-button{width:auto;white-space:nowrap;padding:8px 10px;font-size:12px}.small-button.secondary{background:#eef2f6;color:var(--navy)}@media(max-width:900px){.topbar{grid-template-columns:auto 1fr}.topnav{grid-row:2;grid-column:1/-1;justify-content:center;padding-top:8px}.userbox{grid-column:2}.admin-grid{grid-template-columns:1fr}}@media(max-width:720px){.topbar{padding:12px 16px}.brand-light div{display:none}.userbox>span:not(.avatar){display:none}.dashboard{padding:20px 14px}.welcome{display:block}.status{display:block;margin-top:18px}.panel{padding:18px}}

/* Wspólny raport rozliczeń — wersja produkcyjna */
.report-page{--r-ink:#18201f;--r-muted:#66716e;--r-line:#e3e8e6;--r-soft:#f5f7f6;--r-brand:#145f55;--r-brand-dark:#0d493f;--r-red:#b83232;--r-green:#267a54;--r-blue:#315ea8;background:var(--r-soft);color:var(--r-ink)}
.report-page button,.report-page input,.report-page select{font:inherit}.report-page button{cursor:pointer}.report-topbar{height:72px;padding:0 30px;background:#fff;border-bottom:1px solid var(--r-line);display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:30}.report-brand{display:flex;align-items:center;gap:11px}.report-brand img{width:42px;height:42px;border-radius:9px;object-fit:cover}.report-brand strong,.report-brand span,.logged-user small{display:block}.report-brand strong{font-size:15px;letter-spacing:.06em}.report-brand span{margin-top:2px;color:var(--r-muted);font-size:11px}.report-top-actions{display:flex;align-items:center;gap:11px}.report-top-actions form{margin:0}.save-state{display:flex;align-items:center;gap:7px;color:var(--r-muted);font-size:11px}.save-state i{width:7px;height:7px;border-radius:50%;background:#55a77c;box-shadow:0 0 0 3px #e2f2e9}.save-state.save-error{color:#a73737}.save-state.save-error i{background:#c54848;box-shadow:0 0 0 3px #fde8e8}.top-link{padding:8px 10px;border-radius:8px;color:var(--r-brand);font-size:11px;font-weight:750;text-decoration:none}.top-link:hover{background:#edf7f4}.report-avatar{display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:#efe6fa;color:#7445a2;font-size:11px;font-weight:800}.logged-user{font-size:11px;font-weight:700}.logged-user small{margin-top:2px;color:var(--r-muted);font-size:8px;font-weight:500}.report-logout{width:auto;padding:8px 10px;border:1px solid var(--r-line);border-radius:8px;background:#fff;color:#596662;font-size:10px}.report-shell{max-width:1740px;margin:auto;padding:34px 30px 48px}.report-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}.report-eyebrow{margin:0 0 8px;color:var(--r-brand);font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.report-heading h1{margin:0;font-size:clamp(29px,3vw,42px);line-height:1.08;letter-spacing:-.04em}.report-subtitle{margin:8px 0 0;color:var(--r-muted);font-size:14px}.period-actions{display:flex;align-items:flex-end;gap:8px}.period-select{margin:0}.period-select span{display:block;margin:0 0 6px 2px;color:var(--r-muted);font-size:10px;font-weight:700;text-transform:uppercase}.period-select select{height:42px;min-width:155px;margin:0;padding:0 34px 0 13px;border:1px solid #d8dfdc;border-radius:10px;background:#fff;color:var(--r-ink)}.primary-button,.secondary-button{display:inline-flex;align-items:center;justify-content:center;width:auto;height:42px;padding:0 15px;border-radius:10px;border:1px solid transparent;font-size:12px;font-weight:700}.primary-button{color:#fff;background:var(--r-brand)}.secondary-button{background:#fff;border-color:var(--r-line);color:var(--r-ink)}.primary-button:disabled,.secondary-button:disabled{opacity:.45;cursor:default}.link-button{text-decoration:none}.summary-grid{display:grid;grid-template-columns:minmax(300px,1.7fr) repeat(3,minmax(170px,1fr));gap:12px;margin-bottom:16px}.summary-card{min-height:112px;border:1px solid var(--r-line);border-radius:14px;background:#fff;padding:17px 19px}.progress-card{display:flex;flex-direction:column;justify-content:center}.summary-label{display:flex;justify-content:space-between;color:var(--r-muted);font-size:12px;font-weight:700}.summary-label span{color:var(--r-brand)}.progress-track{height:9px;overflow:hidden;margin:12px 0 10px;border-radius:999px;background:#edf1ef}.progress-track div{height:100%;border-radius:inherit;background:linear-gradient(90deg,#1d7468,#4ea692)}.progress-card p{margin:0;color:var(--r-muted);font-size:12px}.summary-kicker{display:block;color:var(--r-muted);font-size:11px}.summary-number{display:block;margin:7px 0 2px;font-size:29px}.summary-number.green{color:var(--r-green)}.summary-number.red{color:var(--r-red)}.summary-number.blue{color:var(--r-blue)}.summary-card small{color:#8b9491;font-size:10px}.workspace-card{overflow:hidden;border:1px solid var(--r-line);border-radius:16px;background:#fff;box-shadow:0 9px 28px rgba(18,50,42,.05)}.report-toolbar{padding:15px 17px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--r-line)}.search-wrap{position:relative;width:min(330px,100%);flex:0 1 330px}.search-wrap>span{position:absolute;left:12px;top:8px;color:#7d8885;font-size:21px;transform:rotate(-18deg)}.search-wrap input{width:100%;height:38px;margin:0;padding:0 12px 0 38px;border:1px solid #dbe1df;border-radius:9px;background:#fafbfb;font-size:13px}.owner-filters{display:flex;gap:2px;padding:3px;border-radius:10px;background:#f0f3f2;overflow:auto}.owner-filters button{width:auto;height:32px;min-width:39px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:var(--r-muted);font-size:10px;font-weight:750;white-space:nowrap}.owner-filters button.active{color:var(--r-brand-dark);background:#fff;box-shadow:0 1px 5px rgba(22,55,47,.1)}.toggle-filter{margin:0 0 0 auto;display:flex;align-items:center;gap:8px;color:var(--r-muted);font-size:12px;white-space:nowrap}.toggle-filter input{position:absolute;opacity:0}.toggle-filter>span{width:30px;height:18px;padding:2px;border-radius:999px;background:#dce2e0}.toggle-filter>span:after{content:"";display:block;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003}.toggle-filter input:checked+span{background:var(--r-brand)}.toggle-filter input:checked+span:after{transform:translateX(12px)}.legend-row{min-height:45px;padding:0 17px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--r-line)}.result-count,.legend{color:var(--r-muted);font-size:10px}.legend{display:flex;gap:15px}.legend span{display:flex;align-items:center;gap:5px}.legend i{width:7px;height:7px;border-radius:50%}.legend-red{background:#d04b4b}.legend-green{background:#4a9a70}.legend-gray{background:#9ba5a2}.table-scroll{overflow:auto;max-height:610px}.report-table{width:100%;min-width:1900px;border-collapse:separate;border-spacing:0;font-size:11px}.report-table th,.report-table td{border-right:1px solid #edf0ef;border-bottom:1px solid #edf0ef}.report-table thead th{position:sticky;z-index:8;background:#f8faf9;color:#56615e;font-weight:750;text-align:left}.report-table .group-row th{top:0;height:29px;padding:0 12px;background:#edf3f1;color:#71807c;font-size:9px;letter-spacing:.09em;text-transform:uppercase}.report-table thead tr:nth-child(2) th{top:29px;height:62px;padding:0 10px;line-height:1.4}.client-col{width:270px;min-width:270px}.owner-col{width:68px;min-width:68px;text-align:center}.report-table thead tr:nth-child(2) th:nth-child(n+3):nth-child(-n+6){width:160px;min-width:160px;text-align:center}.money-head{width:126px;min-width:126px;text-align:center!important}.note-head{width:210px;min-width:210px;text-align:center!important}.report-table tbody td{height:60px;padding:7px 9px;background:#fff}.report-table tbody tr:hover td{background:#fbfdfc}.sticky-first,.sticky-second{position:sticky;z-index:5;background:#fff!important}.sticky-first{left:0}.sticky-second{left:270px;box-shadow:6px 0 12px -12px rgba(15,41,35,.65)}.report-table thead .sticky-first,.report-table thead .sticky-second{z-index:12;background:#f8faf9!important}.group-row .sticky-group{position:sticky;left:0;z-index:14;background:#edf3f1!important}.client-title{display:flex;align-items:baseline;gap:8px}.client-name strong{font-size:12px}.client-name small{color:#7d8985;font-size:9px;white-space:nowrap}.client-meta{display:flex;align-items:center;gap:7px;margin-top:5px}.suspension-toggle{width:auto;height:18px;padding:0 6px;border:1px solid #b9dfc8;border-radius:999px;background:#e4f4eb;color:#216844;font-size:7px;font-weight:800}.suspension-toggle.is-suspended{border-color:#e8c998;background:#fff1dc;color:#935817}.suspended-row td:not(.sticky-first):not(.sticky-second){background:#fffcf7}.owner-select{width:48px;height:31px;margin:auto;padding:0 3px;border:1px solid #d8dfdc;border-radius:8px;background:#f3f7f6;color:var(--r-brand);font-size:10px;font-weight:800}.owner-badge{display:grid;place-items:center;width:31px;height:31px;margin:auto;border-radius:9px;background:#edf2f0;color:var(--r-brand);font-weight:800;font-size:10px}.status-cell{text-align:center}.status-button{width:126px;height:30px;margin:auto;padding:0;border-radius:999px;border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:9.5px;font-weight:750}.status-dot{width:6px;height:6px;border-radius:50%}.status-not-started{background:#fde8e8;color:#9f2929;border-color:#f3c8c8}.status-not-started .status-dot{background:#cf4141}.status-done{background:#e4f4eb;color:#216844;border-color:#cbe7d7}.status-done .status-dot{background:#419467}.status-na{background:#edf0ef;color:#6b7572;border-color:#dde2e0}.status-na .status-dot{background:#9aa39f}.money-cell{padding-left:5px!important;padding-right:5px!important}.money-entry{height:36px;display:flex;align-items:center;border:1px solid #ccdcf2;border-radius:7px;background:#eaf2ff}.money-entry input{width:74px;min-width:0;height:34px;margin:0;padding:0 3px 0 7px;border:0;background:transparent;text-align:right;font-size:12px;font-weight:750}.money-entry input:disabled{background:#edf0ef;color:#6b7572}.money-entry>span{padding-right:4px;color:#7f8b87;font-size:9px}.money-na-toggle{width:27px;height:22px;margin-right:3px;padding:0;border:0;border-radius:5px;background:#e9eeec;color:#77817e;font-size:7px}.money-na-toggle.active{background:#cfd7d4;color:#52605c}.money-refund{border-color:#e4b8b8;background:#fff0f0}.money-refund input{color:#9f2929}.note-cell input{width:100%;height:38px;margin:0;padding:0 9px;border:1px solid transparent;border-radius:7px;background:#f8faf9;text-align:center;text-transform:uppercase;font-size:12px;font-weight:750}.table-footer{min-height:43px;padding:0 17px;display:flex;align-items:center;justify-content:space-between;color:#8b9491;background:#fbfcfc;font-size:10px}
@media(max-width:980px){.report-shell{padding:24px 16px 36px}.report-topbar{padding:0 16px}.summary-grid{grid-template-columns:repeat(2,1fr)}.progress-card{grid-column:1/-1}.report-toolbar{flex-wrap:wrap}.search-wrap{flex:1 1 100%;width:100%}.toggle-filter{margin-left:0}.period-actions{flex-wrap:wrap;justify-content:flex-end}.logged-user{display:none}}
@media(max-width:620px){.save-state,.top-link{display:none}.report-heading{align-items:stretch;flex-direction:column}.period-actions{justify-content:flex-start}.summary-grid{grid-template-columns:1fr 1fr}.summary-grid .summary-card:last-child{grid-column:1/-1}.legend-row{align-items:flex-start;flex-direction:column;gap:8px;padding-top:10px;padding-bottom:10px}.legend{flex-wrap:wrap}.table-footer{align-items:flex-start;flex-direction:column;justify-content:center;gap:3px}}

.report-nav{display:flex;align-items:center;gap:4px;padding:4px;border-radius:10px;background:#f0f3f2}.report-nav a{padding:8px 13px;border-radius:8px;color:#66716e;font-size:11px;font-weight:750;text-decoration:none}.report-nav a:hover,.report-nav a.active{background:#fff;color:#0d493f;box-shadow:0 1px 5px rgba(22,55,47,.1)}
.inline-form{margin:0}.cell-audit-host{position:relative}.sticky-first.cell-audit-host,.sticky-second.cell-audit-host{position:sticky}.cell-audit{position:absolute;right:3px;bottom:3px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border:1px solid #d7e1dd;border-radius:999px;background:#fff;color:#145f55;font-size:7px;font-weight:900;letter-spacing:.02em;box-shadow:0 1px 4px #163b3020;cursor:help;z-index:4}.vat-table{min-width:1775px}.vat-table thead tr:nth-child(2) th:nth-child(n+3):nth-child(-n+10){width:145px;min-width:145px;text-align:center}.vat-table .jpk-group{background:#e9f1fb!important;color:#31517f!important;text-align:center}.vat-table .vatue-group{background:#ecf6f2!important;color:#145f55!important;text-align:center}.vat-scope-tags{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:8px}.scope-tag{display:inline-flex!important;align-items:center!important;width:auto!important;height:24px!important;padding:0 9px!important;border:1px solid #d9e0dd!important;border-radius:999px!important;background:#f3f5f4!important;color:#7e8985!important;font-size:9px!important;font-weight:850!important}.scope-tag.active{border-color:#abd0c8!important;background:#e2f2ee!important;color:#0f5b4f!important}.add-correction{display:inline-flex!important;align-items:center!important;width:auto!important;height:24px!important;padding:0 9px!important;border:1px dashed #c99a43!important;border-radius:999px!important;background:#fffaf0!important;color:#8b6421!important;font-size:9px!important;font-weight:850!important}.add-correction:hover{background:#f8e9c9!important}.status-button:disabled{cursor:default;opacity:.62}.date-cell{padding:6px!important}.date-cell input{width:122px;height:34px;margin:0 auto;padding:0 7px;border:1px solid #dbe2df;border-radius:7px;background:#fff;color:#34413d;font-size:10px}.date-cell input:disabled{background:#f0f2f1;color:#9aa39f}.vat-summary .summary-number{font-size:25px}.revenue-head{width:160px;min-width:160px;text-align:center!important}.revenue-cell{position:relative;min-width:160px}.revenue-cell input{display:inline-block;width:112px;height:36px;margin:0;padding:0 7px;border:1px solid #ead39f;border-radius:7px;background:#fffaf0;text-align:right;font-size:11px;font-weight:750}.revenue-cell>span{margin-left:3px;color:#7f8b87;font-size:9px}.revenue-cell>strong{display:block;text-align:center;color:#283630}.correction-row td{height:52px!important;background:#fffaf1!important;border-bottom-color:#ead9b7!important}.correction-row .sticky-first,.correction-row .sticky-second{background:#fffaf1!important}.correction-title{position:relative;padding-left:28px!important}.correction-title:before{content:"\21B3";position:absolute;left:10px;top:17px;color:#b9852d;font-size:15px}.correction-title strong,.correction-title small{display:block}.correction-title strong{color:#805a1b;font-size:10px}.correction-title small{max-width:215px;margin-top:3px;overflow:hidden;color:#8a7860;text-overflow:ellipsis}.correction-mark{display:grid;place-items:center;width:27px;height:27px;margin:auto;border-radius:8px;background:#f6e7c9;color:#8b6421;font-size:9px;font-weight:900}.na-block{text-align:center;color:#a29a8d;font-size:9px;font-weight:700}.modal-backdrop[hidden]{display:none}.modal-backdrop{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px;background:#07172baa}.modal{width:min(440px,100%);padding:28px;border-radius:16px;background:#fff;box-shadow:0 24px 70px #0005}.modal-kicker{color:#c18d33;font-size:10px;font-weight:850;letter-spacing:.11em;text-transform:uppercase}.modal h2{margin:7px 0}.modal p{margin:0 0 16px;color:#66716e}.correction-form label{margin:14px 0;color:#52605c;font-size:12px}.correction-form select,.correction-form input{width:100%;height:42px;margin-top:7px;padding:0 11px;border:1px solid #d8dfdc;border-radius:9px;background:#fff;color:#18201f}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.modal-actions button{width:auto}
.payroll-table{min-width:1730px}.payroll-table thead tr:nth-child(2) th:nth-child(n+3):nth-child(-n+10){width:145px;min-width:145px;text-align:center}.payroll-table .payroll-group{background:#e9f1fb!important;color:#31517f!important;text-align:center}.payroll-table .bills-group{background:#ecf6f2!important;color:#145f55!important;text-align:center}.payroll-table .note-head{width:230px;min-width:230px}.count-cell{position:relative;padding:6px!important}.count-editor{display:flex;align-items:center;justify-content:center;gap:5px}.count-cell input{width:64px;height:35px;margin:0;padding:0 6px;border:1px solid #d8dfdc;border-radius:8px;background:#f8faf9;text-align:center;font-size:12px;font-weight:800}.count-cell input[readonly]{border-color:#e1e6e4;background:#f1f3f2;color:#64706c;cursor:default}.count-unlock{display:grid!important;place-items:center!important;width:44px!important;height:30px!important;padding:0 5px!important;border:1px solid #d8dfdc!important;border-radius:8px!important;background:#fff!important;color:#64706c!important;font-size:9px!important}.count-unlock.unlocked{border-color:#b9d8d1!important;background:#e7f3f0!important;color:#145f55!important}.count-unlock:disabled{opacity:.65;cursor:wait}.count-readonly{display:block;text-align:center;font-size:13px}.client-title small{font-size:10px}.payroll-summary .summary-number{font-size:25px}.inline-success{display:inline-block;margin-top:9px;padding:5px 9px;border-radius:999px;background:#dcfae6;color:#147a4b;font-size:10px;font-weight:800}.client-modal{width:min(620px,100%)}.client-form label{margin:8px 0;color:#52605c;font-size:12px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px 14px}.form-wide{grid-column:1/-1}.client-form input,.client-form select{width:100%;height:42px;margin-top:7px;padding:0 11px;border:1px solid #d8dfdc;border-radius:9px;background:#fff;color:#18201f}.form-checks{display:flex;gap:10px;margin-top:13px}.form-check{display:flex!important;align-items:center;gap:8px;margin:0!important;padding:10px 13px;border:1px solid #d8dfdc;border-radius:9px;background:#f8faf9}.form-check input{width:17px;height:17px;margin:0;padding:0}.withdraw-correction-form{position:absolute;right:28px;top:5px;margin:0}.withdraw-correction{display:inline-flex!important;width:auto!important;height:23px!important;padding:0 8px!important;border:1px solid #e7b9b9!important;border-radius:7px!important;background:#fff5f5!important;color:#a73737!important;font-size:8px!important;font-weight:800!important}.correction-title{padding-right:92px!important}
@media(max-width:1100px){.report-nav{order:3}.report-topbar{height:auto;min-height:72px;flex-wrap:wrap;gap:8px;padding-top:8px;padding-bottom:8px}.report-top-actions{margin-left:auto}}
@media(max-width:700px){.report-nav{width:100%;justify-content:center}.report-nav a{flex:1;text-align:center}.report-top-actions .save-state{display:none}.vat-summary{grid-template-columns:1fr 1fr}.form-grid{grid-template-columns:1fr}.form-wide{grid-column:auto}}

/* Indywidualne uprawnienia użytkowników */
.permission-intro{max-width:640px;margin:7px 0 0}.permission-full{display:inline-flex;padding:6px 9px;border-radius:999px;background:#e4f4eb;color:#216844;font-size:11px;font-weight:800;white-space:nowrap}.permission-button{display:inline-flex!important;align-items:center!important;gap:8px!important;width:auto!important;padding:7px 10px!important;border:1px solid #d8e0dd!important;border-radius:9px!important;background:#f8faf9!important;color:#183d36!important;text-align:left!important}.permission-button strong{display:grid;place-items:center;min-width:32px;height:25px;border-radius:7px;background:#e5f2ee;color:#145f55;font-size:10px}.permission-button span{font-size:11px;font-weight:750;white-space:nowrap}.permissions-modal{width:min(760px,100%)}.permissions-modal h2 span{color:#145f55}.permissions-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.permission-option{display:flex!important;align-items:flex-start;gap:10px;margin:0!important;padding:13px;border:1px solid #dfe5e3;border-radius:10px;background:#fafbfb;cursor:pointer}.permission-option:has(input:checked){border-color:#9bc9bd;background:#edf7f4}.permission-option input{width:18px!important;height:18px!important;margin:2px 0 0!important;accent-color:#145f55}.permission-option span,.permission-option strong,.permission-option small{display:block}.permission-option strong{color:#273532;font-size:12px}.permission-option small{margin-top:4px;color:#71807c;font-size:10px;line-height:1.35}.permission-shortcuts{display:flex;gap:12px;margin-top:12px}.text-button{width:auto!important;padding:4px 0!important;border:0!important;background:transparent!important;color:#145f55!important;font-size:11px!important;font-weight:800!important}.money-readonly{display:block;text-align:center;color:#32403c;font-size:11px;font-weight:800}.money-readonly.is-na{color:#76807d;font-weight:700}.permission-note{display:block;margin-top:7px;color:#6b7773;font-size:10px}
@media(max-width:700px){.permissions-grid{grid-template-columns:1fr}.permissions-modal{padding:20px}.users-table{min-width:920px}}

/* Raporty PDF i Excel */
.export-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}.export-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;padding:20px;border:1px solid var(--r-line);border-radius:15px;background:#fff}.export-card h2{margin:0 0 5px;font-size:17px}.export-card p{max-width:560px;margin:0;color:var(--r-muted);font-size:11px;line-height:1.5}.export-card .primary-button{text-decoration:none}.export-icon{display:grid;place-items:center;width:53px;height:53px;border-radius:12px;font-size:11px;font-weight:900;letter-spacing:.05em}.export-pdf .export-icon{background:#fde8e8;color:#9f2929}.export-excel .export-icon{background:#e4f4eb;color:#216844}.reports-summary{grid-template-columns:minmax(300px,1.7fr) repeat(3,minmax(170px,1fr))}.report-preview-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:12px;margin-bottom:12px}.report-preview-card,.report-list-card{padding:19px}.preview-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:15px}.preview-title h2{margin:0;font-size:17px}.obligation-grid,.mini-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.obligation-grid div,.mini-stats div{padding:12px;border:1px solid #e5eae8;border-radius:10px;background:#fafbfb}.obligation-grid span,.mini-stats span{display:block;color:var(--r-muted);font-size:8px}.obligation-grid strong,.mini-stats strong{display:block;margin-top:5px;font-size:12px}.obligation-grid strong.negative{color:#a73737}.mini-stats{grid-template-columns:repeat(3,1fr)}.mini-stats strong{color:var(--r-blue);font-size:19px}.preview-table{width:100%;border-collapse:collapse;font-size:11px}.preview-table th{padding:10px;border-bottom:1px solid var(--r-line);color:var(--r-muted);font-size:9px;text-align:left;text-transform:uppercase}.preview-table td{padding:9px 10px;border-bottom:1px solid #edf0ef}.preview-table td strong,.preview-table td small{display:block}.preview-table td small{margin-top:3px;color:var(--r-muted);font-size:8px}.preview-table .owner-badge{margin:0}.empty-state{padding:25px!important;color:var(--r-green);font-weight:700;text-align:center}.preview-note,.generated-note{margin:12px 0 0;color:var(--r-muted);font-size:9px}.generated-note{text-align:right}.progress-value{width:0;transition:width .25s ease}
@media(max-width:1050px){.export-grid,.report-preview-grid{grid-template-columns:1fr}.reports-summary{grid-template-columns:repeat(2,1fr)}.reports-summary .progress-card{grid-column:1/-1}}
@media(max-width:700px){.export-card{grid-template-columns:auto 1fr}.export-card .primary-button{grid-column:1/-1}.obligation-grid{grid-template-columns:repeat(2,1fr)}.mini-stats{grid-template-columns:repeat(2,1fr)}.report-list-card{overflow:auto}.preview-table{min-width:720px}}

/* Ustawienia i powiadomienia */
.settings-shell{max-width:1500px}.settings-state{display:inline-flex;align-items:center;gap:8px;padding:9px 12px;border-radius:999px;font-size:11px;font-weight:800}.settings-state i{width:8px;height:8px;border-radius:50%}.settings-state.is-on{background:#e4f4eb;color:#216844}.settings-state.is-on i{background:#419467;box-shadow:0 0 0 3px #cfe9da}.settings-state.is-off{background:#edf0ef;color:#6b7572}.settings-state.is-off i{background:#9aa39f}.settings-flash{margin:-8px 0 18px;padding:13px 15px;border-radius:10px;font-size:12px;font-weight:700}.settings-flash.is-success{border:1px solid #bfe3ce;background:#e7f7ee;color:#216844}.settings-flash.is-error{border:1px solid #f0c1c1;background:#fff0f0;color:#9f2929}.settings-overview{display:grid;grid-template-columns:repeat(4,1fr);gap:11px;margin-bottom:14px}.settings-overview article{padding:16px 18px;border:1px solid var(--r-line);border-radius:13px;background:#fff}.settings-overview span,.settings-overview small,.settings-overview strong{display:block}.settings-overview span{color:var(--r-muted);font-size:10px;font-weight:750;text-transform:uppercase}.settings-overview strong{margin:5px 0 2px;font-size:25px}.settings-overview small{color:#87918e;font-size:9px}.settings-layout{display:grid;grid-template-columns:1fr 1fr;gap:13px}.settings-card{padding:21px;overflow:visible}.settings-wide{grid-column:auto}.settings-full{grid-column:1/-1}.settings-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.settings-card-head h2{margin:0 0 6px;font-size:19px}.settings-card-head p:not(.report-eyebrow){max-width:720px;margin:0;color:var(--r-muted);font-size:11px;line-height:1.5}.config-pill{display:inline-flex;padding:7px 10px;border-radius:999px;font-size:9px;font-weight:850;white-space:nowrap}.config-pill.ready{background:#e4f4eb;color:#216844}.config-pill.waiting{background:#fff1dc;color:#935817}.settings-form label,.settings-test label,.secret-url{margin:0;color:#52605c;font-size:11px;font-weight:750}.settings-form input,.settings-form select,.settings-test input,.recipient-add input,.secret-url input{width:100%;height:40px;margin-top:6px;padding:0 11px;border:1px solid #d8dfdc;border-radius:8px;background:#fff;color:#18201f;font-size:12px}.settings-form input[type=color]{padding:4px}.settings-form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.settings-form-grid.compact{grid-template-columns:1fr 1fr;margin:14px 0}.settings-form-grid .form-span{grid-column:1/-1}.settings-actions{display:flex;justify-content:flex-end;margin-top:16px}.settings-actions button{min-width:150px}.settings-test{display:flex;align-items:flex-end;gap:10px;margin-top:18px;padding-top:17px;border-top:1px solid var(--r-line)}.settings-test form{display:flex;align-items:flex-end;gap:8px;flex:0 1 520px}.settings-test label{flex:1}.settings-test button{white-space:nowrap}.settings-test p{margin:0;color:var(--r-muted);font-size:9px;line-height:1.45}.recipient-add{display:grid;grid-template-columns:.7fr 1fr auto;gap:7px;margin-bottom:14px}.recipient-add input{margin:0}.recipient-list{display:grid;gap:7px}.recipient-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:10px;border:1px solid #e4e9e7;border-radius:10px;background:#fafbfb}.recipient-row.is-inactive{opacity:.58}.recipient-icon{display:grid;place-items:center;width:33px;height:33px;border-radius:9px;background:#e5f2ee;color:var(--r-brand);font-size:11px;font-weight:850}.recipient-row strong,.recipient-row small,.recipient-row em{display:block}.recipient-row strong{font-size:11px}.recipient-row small{margin-top:2px;color:var(--r-muted);font-size:9px}.recipient-row em{margin-top:4px;color:#8b9491;font-size:8px;font-style:normal}.recipient-actions{display:flex;align-items:center;gap:8px}.recipient-actions form,.cron-actions form{margin:0}.text-action{width:auto!important;height:auto!important;padding:5px!important;border:0!important;background:transparent!important;color:var(--r-brand)!important;font-size:9px!important}.text-action.danger{color:#a73737!important}.master-switch{display:flex!important;align-items:center;gap:10px!important;margin:0 0 15px!important;padding:12px;border:1px solid #dfe5e3;border-radius:10px;background:#f8faf9}.master-switch input{position:absolute;opacity:0;width:1px!important;height:1px!important}.master-switch>span{width:36px;height:21px;padding:3px;border-radius:999px;background:#cfd7d4}.master-switch>span:after{content:"";display:block;width:15px;height:15px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #0003;transition:transform .15s}.master-switch input:checked+span{background:var(--r-brand)}.master-switch input:checked+span:after{transform:translateX(15px)}.master-switch strong{font-size:12px}.settings-form fieldset{margin:15px 0 0;padding:0;border:0;transition:opacity .15s}.settings-form legend{margin-bottom:9px;color:#52605c;font-size:10px;font-weight:800;text-transform:uppercase}.choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.choice-grid.events{grid-template-columns:repeat(2,1fr)}.settings-check{display:flex!important;align-items:flex-start;gap:9px!important;margin:0!important;padding:10px;border:1px solid #dfe5e3;border-radius:9px;background:#fafbfb}.settings-check:has(input:checked){border-color:#9bc9bd;background:#edf7f4}.settings-check input{width:17px!important;height:17px!important;margin:1px 0 0!important;padding:0!important;accent-color:var(--r-brand)}.settings-check strong,.settings-check small{display:block}.settings-check strong{font-size:10px}.settings-check small{margin-top:3px;color:var(--r-muted);font-size:8px;line-height:1.35}.option-muted{opacity:.43}.manual-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:17px;padding:13px;border:1px solid #e2e8e5;border-radius:10px;background:#fafbfb}.manual-summary strong,.manual-summary small{display:block}.manual-summary strong{font-size:11px}.manual-summary small{margin-top:3px;color:var(--r-muted);font-size:8px}.deadline-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.secret-url input{font-family:Consolas,monospace;font-size:10px;background:#f7f9f8}.cron-actions{display:flex;align-items:center;gap:12px;margin-top:10px}.settings-note{display:flex;flex-direction:column;gap:4px;margin-top:14px;padding:11px;border-left:3px solid var(--r-brand);border-radius:0 8px 8px 0;background:#edf7f4;color:#52605c;font-size:9px;line-height:1.5}.settings-note strong{color:#183d36}.settings-feature-list{columns:2;margin:0 0 18px;padding-left:18px;color:#4e5c58;font-size:10px;line-height:1.8}.settings-metric{display:flex;align-items:baseline;gap:8px;margin:16px 0}.settings-metric strong{font-size:30px;color:var(--r-brand)}.settings-metric span{color:var(--r-muted);font-size:10px}.integration-options{display:grid;grid-template-columns:1fr 1fr;gap:9px}.integration-options article{padding:14px;border:1px solid #e3e8e6;border-radius:10px;background:#fafbfb}.integration-options strong{font-size:11px}.integration-options p{margin:6px 0 0;color:var(--r-muted);font-size:9px;line-height:1.5}.history-block{margin-top:18px}.history-block h3{margin:0 0 9px;font-size:13px}.settings-table-wrap{overflow:auto;border:1px solid #e6eae9;border-radius:10px}.settings-table{width:100%;border-collapse:collapse;font-size:9px}.settings-table th{padding:9px 10px;background:#f5f7f6;color:#6f7b77;text-align:left;text-transform:uppercase;white-space:nowrap}.settings-table td{padding:9px 10px;border-top:1px solid #edf0ef;vertical-align:top}.notification-table{min-width:1100px}.notification-table td:nth-child(6){max-width:280px}.notification-table td:last-child small{display:block;max-width:240px;margin-top:4px;overflow:hidden;color:#8b9491;text-overflow:ellipsis;white-space:nowrap}.log-status{display:inline-flex;padding:4px 7px;border-radius:999px;font-size:8px;font-weight:800}.log-status.sent,.log-status.success{background:#e4f4eb;color:#216844}.log-status.error,.log-status.failed{background:#fde8e8;color:#9f2929}.settings-empty{padding:20px!important;color:#7f8b87!important;text-align:center!important}.history-legend{display:flex;gap:10px;color:var(--r-muted);font-size:9px}.history-legend span{display:flex;align-items:center;gap:5px}.history-legend i{width:7px;height:7px;border-radius:50%}.history-legend i.sent{background:#419467}.history-legend i.error{background:#cf4141}.company-preview{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}.company-preview div{padding:11px;border:1px solid #e4e9e7;border-radius:9px}.company-preview dt{color:var(--r-muted);font-size:8px;text-transform:uppercase}.company-preview dd{margin:5px 0 0;font-size:11px;font-weight:700}
@media(min-width:1180px){.settings-layout{grid-template-columns:1fr 1fr}.settings-layout>#smtp,.settings-layout>#integration,.settings-layout>#company{grid-column:1/-1}}
@media(max-width:950px){.settings-overview{grid-template-columns:1fr 1fr}.settings-layout{grid-template-columns:1fr}.settings-wide,.settings-full{grid-column:auto}.settings-form-grid{grid-template-columns:1fr 1fr}.choice-grid{grid-template-columns:1fr}.settings-test{align-items:stretch;flex-direction:column}.settings-test form{flex-basis:auto}}
@media(max-width:620px){.settings-overview,.settings-form-grid,.settings-form-grid.compact,.deadline-grid,.integration-options,.company-preview{grid-template-columns:1fr}.recipient-add{grid-template-columns:1fr}.recipient-row{grid-template-columns:auto 1fr}.recipient-actions{grid-column:1/-1;justify-content:flex-end}.settings-card{padding:17px}.settings-card-head{flex-direction:column}.choice-grid.events{grid-template-columns:1fr}.manual-summary{align-items:flex-start;flex-direction:column}.settings-test form{align-items:stretch;flex-direction:column}.settings-feature-list{columns:1}}
