@media (min-width:1051px){.metrics:not(.compact){grid-template-columns:repeat(5,1fr)}}
.monthly-grid-wrap{max-height:calc(100vh - 245px);overflow:auto}.monthly-grid{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font-size:11px}.monthly-grid th,.monthly-grid td{padding:7px 8px;min-width:72px;text-align:center;border-right:1px solid #edf0f4;border-top:1px solid #edf0f4;background:#fff}.monthly-grid thead th{position:sticky;top:0;z-index:3;background:#f7f8fb;color:#667286}.monthly-grid thead tr:first-child th{top:0;height:38px}.monthly-grid thead tr:nth-child(2) th{top:38px}.monthly-grid .date-cell{position:sticky;left:0;z-index:2;min-width:105px;text-align:left;font-weight:600;background:#fafbfc}.monthly-grid thead .date-cell{z-index:5}.monthly-grid .employee-head{font-size:11px;color:#253041;border-left:2px solid #dfe4eb}.monthly-grid .group-start{border-left:2px solid #dfe4eb}.monthly-grid .time-cell{cursor:pointer;color:#465467;font-variant-numeric:tabular-nums}.monthly-grid .time-cell:hover{background:#efefff;color:#5149c4}.monthly-grid .paid-cell{background:#f1faf6;color:#167856;font-weight:700}.monthly-grid .weekend td{background:#fbfbfc}.monthly-grid .weekend .paid-cell{background:#f1f7f4}.monthly-grid .today td{box-shadow:inset 0 1px #7c74e8,inset 0 -1px #7c74e8}.monthly-grid .empty-time{color:#b1b8c3}
.monthly-grid td.status-verified{background:#dcf5e8!important;color:#147653}.monthly-grid td.status-mismatch{background:#fde7e7!important;color:#ad3434}.monthly-grid .paid-cell.clickable{cursor:pointer}.monthly-grid .paid-cell.clickable:hover{filter:brightness(.96)}.day-verify{display:block;border:0;background:none;color:#635bdb;font:600 9px 'DM Sans';padding:3px 0 0;cursor:pointer}.month-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.month-tools .secondary{padding:7px 9px;font-size:10px}.verification-progress{font-size:11px;font-weight:700;color:#536071;background:#f2f4f7;padding:7px 9px;border-radius:7px}.verification-legend{display:flex;gap:18px;padding:9px 20px;border-bottom:1px solid #edf0f4;color:#7a8595;font-size:10px}.verification-legend i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px}.pending-dot{background:#cbd2dc}.verified-dot{background:#62c995}.mismatch-dot{background:#ed8585}#unverifiedFilter.active{background:#635bdb;color:#fff;border-color:#635bdb}@media(max-width:900px){.month-tools{justify-content:flex-start}.panel-head{align-items:flex-start;gap:12px;flex-direction:column}}
.ranking-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:20px}.ranking-list{padding:6px 20px 10px}.rank-row{display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:9px;padding:10px 0;border-bottom:1px solid #f0f2f5}.rank-row:last-child{border:0}.rank-number{width:21px;height:21px;border-radius:6px;display:grid;place-items:center;background:#f0f1f5;color:#727d8d;font-size:9px;font-weight:700}.rank-row:nth-child(1) .rank-number{background:#fff1c9;color:#9a6c00}.rank-row b{font-size:11px}.rank-value{font-size:11px;font-weight:700;color:#445060}.rank-icon{width:28px;height:28px;border-radius:8px;display:grid;place-items:center}.rank-icon.green{background:#e6f7f0;color:#16835e}.rank-icon.purple{background:#eeedff;color:#635bdb}.rank-icon.orange{background:#fff1e5;color:#df7c2f}.monthly-grid td.day-leave{background:#fff3d9!important;color:#956615;font-weight:700;cursor:pointer}.monthly-grid td.day-not-employed{background:#eef1f4!important;color:#8c96a4;font-weight:600;cursor:pointer}@media(max-width:1050px){.ranking-grid{grid-template-columns:1fr}}
.sort-btn{border:0;background:none;padding:0;color:#8b95a4;text-transform:uppercase;letter-spacing:.05em;font:600 9px 'DM Sans';cursor:pointer;white-space:nowrap}.sort-btn:hover,.sort-btn.active{color:#5149c4}.sort-btn i{display:inline-block;min-width:9px;font-style:normal;font-size:11px}
.cooperation-info{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:16px}.cooperation-info small{font-size:9px;color:#818b99;text-align:right}.cooperation-status{font-size:9px;font-weight:700;padding:5px 7px;border-radius:6px}.cooperation-status.active{background:#e7f7f0;color:#147b58}.cooperation-status.ended{background:#f0f2f5;color:#6f7987}.cooperation-status.planned{background:#fff2df;color:#a26918}
.employee-group-badge{margin-left:auto;font-size:9px;font-weight:700;padding:5px 7px;border-radius:6px;white-space:nowrap}.group-label{display:block;font-size:9px;margin-top:3px;font-weight:600}
.groups-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.group-card{display:grid;grid-template-columns:38px 1fr auto;gap:12px;align-items:center;background:#fff;border:1px solid #e8edf2;border-top:3px solid;border-radius:12px;padding:18px;box-shadow:0 2px 7px rgba(20,31,45,.02)}.group-color{width:38px;height:38px;border-radius:10px}.group-card h3{margin:0 0 3px;font:700 14px Manrope}.group-card p{margin:0;color:#7a8594;font-size:10px}.group-actions{display:flex;align-items:center;gap:5px}.group-actions .secondary{padding:7px 9px;font-size:10px}.form-grid input[type="color"]{padding:4px;height:40px;width:100%}@media(max-width:900px){.groups-grid{grid-template-columns:1fr}}
.employee-filter{border:1px solid #dfe4ea;border-radius:8px;background:#fff;padding:7px 28px 7px 9px;max-width:210px;font:600 10px 'DM Sans';color:#465263}.monthly-grid .filter-hidden{display:none!important}
.monthly-grid .weekend td{background:#fff}.monthly-grid .weekend .paid-cell{background:#f1faf6}.monthly-grid .weekend .date-cell{color:#465467}.monthly-grid .weekend .time-cell:hover{background:#efefff}
.month-tools .verify-day-main{background:#e8f6ef;color:#167856;border-color:#c9e9da}.month-tools .verify-day-main:hover{background:#d9f0e5}

/* Finanse */
.finance-heading{align-items:flex-end}.finance-actions{display:flex;gap:9px}.finance-period{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;padding:12px 16px;background:#fff;border:1px solid #e8edf2;border-radius:11px}.finance-period>div:first-child{display:flex;align-items:center;gap:10px}.finance-period .eyebrow{font-size:9px;font-weight:700;color:#8a94a3;text-transform:uppercase;letter-spacing:.08em}.finance-period strong{font:700 13px Manrope;color:#283344}.date-nav .today-btn{width:auto;padding:0 12px;font:700 9px 'DM Sans';color:#6159d4}.finance-metrics{margin-bottom:20px}.finance-metrics .metric{min-width:0}.finance-metrics .metric strong{white-space:nowrap}.finance-metrics .result-card{background:linear-gradient(145deg,#252943,#343858);border-color:#343858}.finance-metrics .result-card span,.finance-metrics .result-card small{color:#c9cee0}.finance-metrics .result-card strong{color:#fff}.finance-metrics .profit-icon{background:#dff7ec;color:#1b885f}.finance-metrics .result-card:has(strong.loss){background:linear-gradient(145deg,#4a2930,#693740);border-color:#693740}.finance-metrics strong.loss{color:#ffd9dc}.finance-analysis-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.8fr);gap:20px;margin-bottom:20px}.finance-data-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(360px,1fr);gap:20px}.finance-legend{display:flex;gap:13px;color:#758194;font-size:9px}.finance-legend span{display:flex;align-items:center;gap:5px}.finance-legend i{width:7px;height:7px;border-radius:50%}.revenue-dot{background:#4eb38b}.cost-dot{background:#6c63d9}.profit-dot{background:#253041}.profit-trend{height:205px;padding:16px 20px 10px;display:grid;grid-template-columns:repeat(6,1fr);align-items:end;gap:12px}.trend-column{height:175px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px}.trend-bars{height:145px;display:flex;align-items:flex-end;gap:4px}.trend-bar{display:block;width:11px;border-radius:4px 4px 2px 2px;min-height:3px}.trend-bar.revenue{background:#4eb38b}.trend-bar.costs{background:#7770dd}.trend-column>strong{font-size:9px;color:#16805b;white-space:nowrap}.trend-column>strong.negative{color:#c34d58}.trend-column>small{font-size:9px;text-transform:uppercase;color:#929caa}.cost-breakdown{padding:18px 20px 22px}.cost-total{display:flex;align-items:end;justify-content:space-between;padding-bottom:15px;margin-bottom:14px;border-bottom:1px solid #eef1f4}.cost-total span{font-size:10px;color:#7b8695}.cost-total strong{font:800 19px Manrope;color:#273344}.cost-row{margin-top:15px}.cost-row>div:first-child{display:flex;justify-content:space-between;gap:15px;font-size:10px;color:#586577}.cost-row>div strong{color:#2f3b4d}.cost-track{height:6px;margin:7px 0 5px;border-radius:999px;background:#edf0f4;overflow:hidden}.cost-track i{display:block;height:100%;border-radius:999px}.cost-row small{font-size:8px;color:#929caa}.table-sub{display:block;margin-top:2px;color:#929caa;font-size:8px}.category-pill{display:inline-block;padding:5px 7px;border-radius:6px;background:#f0f3f7;color:#596779;font-size:9px;font-weight:600}.leases-list{padding:4px 18px}.lease-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid #eef1f4}.lease-row:last-child{border-bottom:0}.lease-icon{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:#fff0e4;color:#d77b36;font-size:16px}.lease-info{min-width:0}.lease-info b,.lease-info small,.lease-info span{display:block}.lease-info b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#2f3b4d}.lease-info small{margin-top:2px;font-size:8px;color:#7d8898}.lease-info span{margin-top:4px;font-size:8px;color:#a0a8b4}.lease-payment{text-align:right}.lease-payment strong,.lease-payment small{display:block;white-space:nowrap}.lease-payment strong{font-size:11px;color:#2e3b4d}.lease-payment small{font-size:8px;color:#8791a0}.lease-actions{display:flex;align-items:center;gap:4px}.lease-actions .secondary{padding:6px 7px;font-size:8px}.lease-empty{padding:35px 10px}.form-grid .full-field{grid-column:1/-1}
@media(max-width:1180px){.finance-analysis-grid,.finance-data-grid{grid-template-columns:1fr}.finance-metrics{grid-template-columns:repeat(2,1fr)!important}.finance-metrics .result-card{grid-column:span 2}}
@media(max-width:720px){.finance-heading{align-items:stretch}.finance-actions{flex-direction:column}.finance-period{align-items:flex-start;gap:10px}.finance-period>div:first-child{align-items:flex-start;flex-direction:column;gap:3px}.finance-metrics{grid-template-columns:1fr!important}.finance-metrics .result-card{grid-column:auto}.profit-trend{gap:4px;padding-left:8px;padding-right:8px}.trend-bar{width:8px}.lease-row{grid-template-columns:34px minmax(0,1fr) auto}.lease-payment{grid-column:2}.lease-actions{grid-column:3;grid-row:1/3}}

/* Pomocnicze przeliczenie EUR na PLN */
.money-dual{display:inline-flex;flex-direction:column;align-items:flex-start;vertical-align:middle;line-height:1.15;white-space:nowrap}.money-dual .eur-amount{font:inherit;color:inherit}.money-dual .pln-amount{display:block!important;margin-top:3px;color:#8d97a5!important;font:400 8px/1.2 'DM Sans'!important;letter-spacing:0!important;text-transform:none!important}.metric>div:last-child>.money-dual,.metric strong>.money-dual{display:flex}.metric strong .pln-amount{font-size:9px!important}.metric .result-card .pln-amount,.result-card .pln-amount{color:#b8bfd3!important}.rank-value .money-dual,.person-rate strong .money-dual,.lease-payment strong .money-dual,.cost-row strong .money-dual,.cost-total strong .money-dual{align-items:flex-end}.trend-column strong .money-dual{align-items:center}.trend-column strong .pln-amount{font-size:7px!important}.table-wrap .pln-amount{margin-top:2px}.profit .pln-amount{color:#62a58b!important}

/* Cele finansowe i planista */
.financial-planning-grid{display:grid;grid-template-columns:minmax(330px,.82fr) minmax(500px,1.45fr);gap:20px;margin-bottom:20px}.advisor-badge{padding:6px 9px;border-radius:7px;background:#eeedff;color:#5f58d8;font-size:9px;font-weight:700}.profit-advisor{padding:18px 20px 20px}.advisor-base{display:flex;align-items:center;justify-content:space-between;padding:15px;border-radius:12px;background:linear-gradient(145deg,#f4f3ff,#f8f8fc)}.advisor-base>div:first-child span,.advisor-base>div:first-child strong,.advisor-base>div:first-child small{display:block}.advisor-base span{font-size:9px;color:#7a8595}.advisor-base strong{margin-top:4px;font:800 20px Manrope;color:#282f42}.advisor-base small{margin-top:3px;font-size:8px;color:#969eaa}.allocation-ring{--pct:0;width:58px;height:58px;border-radius:50%;display:grid;place-content:center;text-align:center;background:radial-gradient(circle at center,#f7f7fd 58%,transparent 60%),conic-gradient(#655dd9 calc(var(--pct)*1%),#dddff0 0);color:#413aaf}.allocation-ring b{font:800 12px Manrope}.allocation-ring small{font-size:7px;color:#7c83a0}.allocation-list{margin-top:14px}.allocation-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid #eef1f4}.allocation-row>div{display:grid;grid-template-columns:8px minmax(0,1fr) auto;align-items:center;gap:7px;min-width:0}.allocation-row i{width:7px;height:7px;border-radius:2px}.allocation-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;color:#505d70}.allocation-row b{font-size:8px;color:#7e8796}.allocation-row>strong{font-size:10px;color:#303c4e;white-space:nowrap}.allocation-row.retained{border-bottom:0}.allocation-row.retained i{background:#c9ced7}.advisor-tips{display:grid;gap:8px;margin-top:12px}.advisor-tip{padding:10px 11px;border-radius:9px;border-left:3px solid #929baa;background:#f6f7f9}.advisor-tip b,.advisor-tip span{display:block}.advisor-tip b{font-size:9px;color:#3d495b}.advisor-tip span{margin-top:3px;font-size:8px;line-height:1.45;color:#7b8695}.advisor-tip.priority{background:#fff7e9;border-color:#dc9b3e}.advisor-tip.success{background:#eef9f4;border-color:#45a97f}.advisor-tip.danger{background:#fff0f1;border-color:#d85d67}.planning-note{margin:13px 0 0;padding-top:11px;border-top:1px solid #edf0f4;color:#929baa;font-size:8px;line-height:1.45}.financial-goals{display:grid;gap:12px;padding:14px 18px 18px}.financial-goal{padding:15px;border:1px solid #e5e9ef;border-radius:12px;background:#fff}.financial-goal.completed{background:#f5fbf8;border-color:#cde8da}.goal-top{display:flex;align-items:center;justify-content:space-between}.goal-priority{padding:5px 7px;border-radius:6px;font-size:7px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.goal-priority.critical{background:#fff0e3;color:#b76a2d}.goal-priority.high{background:#eeedff;color:#5b54c8}.goal-priority.normal{background:#eef2f5;color:#687586}.goal-menu{display:flex;gap:4px}.goal-menu .table-action{width:24px;height:24px}.financial-goal h3{margin:9px 0 3px;font:700 12px Manrope;color:#293547}.financial-goal>p{margin:0;min-height:28px;color:#818b99;font-size:8px;line-height:1.45}.goal-values{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.goal-values>div:last-child{text-align:right}.goal-values span,.goal-values strong{display:block}.goal-values span{font-size:7px;color:#9aa2ae;text-transform:uppercase;letter-spacing:.05em}.goal-values strong{margin-top:3px;font:700 11px Manrope;color:#354154}.goal-progress{height:7px;margin-top:9px;border-radius:999px;background:#edf0f4;overflow:hidden}.goal-progress i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#655dd9,#52ae8b)}.goal-progress-meta{display:flex;justify-content:space-between;gap:8px;margin-top:5px;color:#8b95a3;font-size:7px}.goal-progress-meta b{color:#657184}.goal-suggestion{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.goal-suggestion>div{padding:9px 10px;border-radius:9px;background:#f6f7fa}.goal-suggestion span,.goal-suggestion strong,.goal-suggestion small{display:block}.goal-suggestion span{font-size:7px;color:#8e97a4}.goal-suggestion strong{margin-top:3px;font-size:10px;color:#354154}.goal-suggestion small{margin-top:2px;font-size:7px;color:#9ea6b1}.dynamic-goal-note{margin-top:9px;padding:8px 9px;border-radius:8px;background:#eef7f3;color:#4e7d6b;font-size:7px;line-height:1.45}.dynamic-goal-note.legal{background:#f2f3f8;color:#6f7788}.goal-contribute{width:100%;margin-top:10px;padding:8px;font-size:9px}.goal-contribute:disabled{opacity:.5;cursor:not-allowed}.goals-empty{padding:40px 10px}.form-hint{grid-column:1/-1;padding:10px;border-radius:8px;background:#eef7f3;color:#4e7d6b;font-size:9px;line-height:1.45}
@media(max-width:1280px){.financial-planning-grid{grid-template-columns:1fr}.financial-goals{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.financial-goals{grid-template-columns:1fr}.finance-actions{width:100%}.financial-planning-grid{grid-template-columns:minmax(0,1fr)}.goal-suggestion{grid-template-columns:1fr}.advisor-base{align-items:flex-start}}
.goal-deadline{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:9px;padding:8px 9px;border-radius:8px;background:#f3f1ff;color:#625bbc;font-size:7px}.goal-deadline strong{white-space:nowrap}.goal-deadline.overdue{background:#fff0f1;color:#b94f58}

/* Karta czasu: pracownicy w wierszach */
.orientation-toggle{display:flex;padding:3px;border-radius:9px;background:#eef1f5}.orientation-toggle button{border:0;border-radius:7px;padding:6px 9px;background:transparent;color:#778292;font:700 9px 'DM Sans';cursor:pointer;white-space:nowrap}.orientation-toggle button.active{background:#fff;color:#5149c4;box-shadow:0 1px 4px rgba(32,42,58,.1)}.leave-dot{background:#e7ad50}.monthly-grid.employees-orientation{font-size:10px}.monthly-grid.employees-orientation th,.monthly-grid.employees-orientation td{min-width:92px;padding:6px}.employees-orientation thead tr:first-child th{height:48px}.employees-orientation .employee-row-head{position:sticky;left:0;z-index:4;min-width:205px;max-width:205px;text-align:left;background:#fff;border-left:3px solid var(--group-color,#dfe4eb)}.employees-orientation thead .employee-row-head{z-index:7;background:#f7f8fb;border-left:0;padding-left:14px}.employee-compact{display:flex;align-items:center;gap:8px}.employee-compact .avatar{width:27px;height:27px;min-width:27px;font-size:8px}.employee-compact b,.employee-compact small{display:block}.employee-compact b{max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:#2e394a}.employee-compact small{max-width:145px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:7px;color:#8c96a4}.employees-orientation .day-column-head{position:sticky;top:0;z-index:4;min-width:92px;background:#f7f8fb}.day-column-head b,.day-column-head small{display:block}.day-column-head b{font:700 11px Manrope;color:#465365}.day-column-head small{margin-top:2px;font-size:7px;text-transform:uppercase;color:#949daa}.day-column-head button{position:absolute;right:5px;top:5px;width:16px;height:16px;border:0;border-radius:5px;background:#e8f6ef;color:#16805b;font-size:8px;cursor:pointer}.employees-orientation .compact-day-cell{position:relative;height:50px;cursor:pointer;font-variant-numeric:tabular-nums;transition:background .12s}.employees-orientation .compact-day-cell:hover{background:#f0efff!important;box-shadow:inset 0 0 0 1px #cbc7f6}.compact-day-cell .compact-time,.compact-day-cell>strong{display:block;white-space:nowrap}.compact-day-cell .compact-time{font-size:8px;color:#536071}.compact-day-cell>strong{margin-top:4px;font-size:9px;color:#263345}.compact-day-cell .compact-label{font-size:8px;font-weight:700}.compact-add{color:#a8b0bc;font-size:13px}.compact-verify{position:absolute;right:4px;top:4px;width:15px;height:15px;padding:0;border:0;border-radius:50%;background:#e1e5eb;color:#697687;font:700 8px 'DM Sans';cursor:pointer}.compact-day-cell.status-verified .compact-verify{background:#58b98b;color:#fff}.compact-day-cell.status-mismatch .compact-verify{background:#d8626b;color:#fff}.employees-orientation .weekend-col{background:#fafbfc}.employees-orientation .today-col{box-shadow:inset 2px 0 #736be1,inset -2px 0 #736be1}.employees-orientation thead .today-col{background:#eeedff}.employees-orientation .month-total-head,.employees-orientation .month-total-cell{position:sticky;right:0;z-index:4;min-width:112px;background:#f5f7fa;border-left:2px solid #dfe4eb}.employees-orientation thead .month-total-head{z-index:7}.month-total-cell strong,.month-total-cell small{display:block;white-space:nowrap}.month-total-cell strong{font:700 10px Manrope;color:#2e3a4c}.month-total-cell small{margin-top:4px;font-size:7px;color:#8b95a3}.employees-orientation tbody tr:hover .employee-row-head{background:#f8f8fd}.employees-orientation tbody tr:hover .month-total-cell{background:#eff2f6}.monthly-grid.days-orientation .filter-hidden{display:none!important}
@media(max-width:900px){.orientation-toggle{order:-1}.employees-orientation .employee-row-head{min-width:175px;max-width:175px}.employee-compact b,.employee-compact small{max-width:115px}.monthly-grid.employees-orientation th,.monthly-grid.employees-orientation td{min-width:86px}}

/* Leasing po cesji i historia wpłat */
.lease-row.extended{align-items:start}.lease-row.extended .lease-icon{margin-top:2px}.lease-paid{display:grid;grid-template-columns:minmax(120px,1fr) auto;gap:12px;margin-top:10px;padding:9px 10px;border-radius:9px;background:#f7f8fb}.lease-paid>div:last-child{text-align:right}.lease-paid span,.lease-paid strong{display:block}.lease-paid span{font-size:7px;color:#919aa7;text-transform:uppercase;letter-spacing:.04em}.lease-paid strong{margin-top:3px;font-size:9px;color:#354154}.lease-paid .money-dual .pln-amount{font-size:7px!important}.lease-progress{height:5px;margin-top:8px;border-radius:999px;background:#e9edf2;overflow:hidden}.lease-progress i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#df8b47,#6d63da)}.lease-info .lease-progress-label{margin-top:4px;font-size:7px;color:#8c96a4}.lease-row.extended .lease-payment{padding-top:4px}.lease-row.extended .lease-actions{flex-direction:column;align-items:stretch}.lease-row.extended .lease-actions .secondary{white-space:nowrap}.lease-add-payment{background:#eef7f3!important;color:#24795d!important;border-color:#cfe8dc!important}.lease-form-hint{background:#fff7ea;color:#8b672e}
@media(max-width:720px){.lease-row.extended{grid-template-columns:34px minmax(0,1fr)}.lease-row.extended .lease-payment{grid-column:2;text-align:left}.lease-row.extended .lease-actions{grid-column:2;grid-row:auto;flex-direction:row;flex-wrap:wrap}.lease-paid{grid-template-columns:1fr 1fr}}

/* Karta pracownika i terminy dokumentów */
.employee-document-alerts{margin-bottom:16px}.documents-clear{display:flex;align-items:center;gap:8px;padding:10px 13px;border:1px solid #d7eadf;border-radius:10px;background:#f2faf6;color:#34745c;font-size:9px;font-weight:600}.documents-clear span{width:19px;height:19px;display:grid;place-items:center;border-radius:6px;background:#dcefe5}.document-alert-panel{display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:start;padding:14px 16px;border:1px solid #f0d4a9;border-radius:11px;background:#fff9ef}.document-alert-title{display:flex;align-items:center;gap:9px;min-width:210px}.document-alert-title>span{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#f7dfba;color:#a76719;font-weight:800}.document-alert-title b,.document-alert-title small{display:block}.document-alert-title b{font-size:10px;color:#5a452b}.document-alert-title small{margin-top:2px;font-size:8px;color:#9a8060}.document-alert-list{display:flex;gap:7px;flex-wrap:wrap}.document-alert-list button{display:grid;grid-template-columns:auto auto;gap:2px 8px;text-align:left;padding:7px 9px;border:1px solid #ecd8b8;border-radius:8px;background:#fff;cursor:pointer}.document-alert-list span{font-size:8px;color:#7e6a50}.document-alert-list .alert-person{font-weight:700;color:#4e4030}.document-alert-list b{grid-column:1/-1;font-size:7px;color:#a76719}.document-alert-list b.expired{color:#b54852}.person-name-button,.employee-inline-link{display:block;border:0;background:none;padding:0;text-align:left;color:#273345;cursor:pointer}.person-name-button{font:700 13px Manrope}.employee-inline-link{font:700 inherit}.person-name-button:hover,.employee-inline-link:hover{color:#5b54cf;text-decoration:underline;text-underline-offset:3px}.person-documents{display:flex;gap:6px;flex-wrap:wrap;margin-top:13px}.document-chip{display:inline-flex;align-items:center;gap:5px;padding:5px 7px;border-radius:6px;background:#f0f2f5;color:#6e7988;font-size:7px;font-weight:700}.document-chip i{width:6px;height:6px;border-radius:50%;background:#9ca5b1}.document-chip.valid{background:#e8f7f0;color:#237459}.document-chip.valid i{background:#42a47c}.document-chip.expiring{background:#fff1dc;color:#9c641f}.document-chip.expiring i{background:#d78d35}.document-chip.expired{background:#fdebec;color:#aa424c}.document-chip.expired i{background:#d75c66}.document-chip.planned{background:#eeedff;color:#5f58c2}.document-chip.planned i{background:#7169da}.person-actions{flex-wrap:wrap}.person-actions .secondary{flex:1;white-space:nowrap;padding-left:8px;padding-right:8px;font-size:8px}.form-section-title{grid-column:1/-1;display:flex;align-items:end;justify-content:space-between;gap:12px;margin-top:6px;padding:11px 0 3px;border-top:1px solid #e9edf2}.form-section-title b{font:700 11px Manrope;color:#344052}.form-section-title span{font-size:8px;color:#8d97a5}.employee-card-dialog{width:min(1050px,calc(100vw - 32px));max-width:1050px;max-height:calc(100vh - 40px);padding:0;border:0;border-radius:16px;overflow:auto}.employee-card-modal-head{position:sticky;top:0;z-index:4;display:flex;align-items:center;justify-content:space-between;padding:19px 22px;background:#fff;border-bottom:1px solid #e9edf2}.employee-card-identity{display:flex;align-items:center;gap:12px}.employee-card-identity .avatar{width:42px;height:42px;font-size:12px}.employee-card-identity h2{margin:0;font:800 18px Manrope;color:#273345}.employee-card-identity p{margin:3px 0 0;color:#7e8998;font-size:9px}.employee-card-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 22px;background:#f8f9fb}.employee-card-actions .primary{padding:8px 11px;font-size:9px}.employee-card-section{padding:19px 22px;border-top:1px solid #edf0f4}.employee-card-section:first-of-type{border-top:0}.employee-card-section-title h3{margin:0;font:700 13px Manrope;color:#303c4e}.employee-card-section-title p{margin:3px 0 0;color:#8b95a3;font-size:8px}.employee-facts{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin-top:13px}.employee-facts>div{padding:11px;border-radius:9px;background:#f6f7fa}.employee-facts span,.employee-facts strong{display:block}.employee-facts span{font-size:7px;color:#909aa7}.employee-facts strong{margin-top:5px;font-size:9px;color:#354154}.employee-facts .money-dual .pln-amount{font-size:7px!important}.employee-documents-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:13px}.employee-document-card{padding:14px;border:1px solid #e4e8ee;border-radius:11px}.employee-document-card.expiring{border-color:#eecb94;background:#fffaf1}.employee-document-card.expired{border-color:#efc5c8;background:#fff5f5}.employee-document-card.valid{border-color:#cde8da;background:#f5fbf8}.document-card-head{display:flex;align-items:center;gap:9px}.document-card-icon{width:31px;height:31px;display:grid;place-items:center;border-radius:9px;background:#eef1f5;color:#5c6878;font-size:9px;font-weight:800}.document-card-head h4{margin:0 0 4px;font:700 11px Manrope;color:#344052}.document-status{padding:4px 6px;border-radius:5px;background:#eef1f4;color:#687586;font-size:7px;font-weight:700}.document-status.valid{background:#dff2e8;color:#287357}.document-status.expiring{background:#ffe8c7;color:#98621d}.document-status.expired{background:#f9dfe1;color:#a84049}.employee-document-card>strong{display:block;margin-top:13px;font-size:9px;color:#465365}.document-dates{display:flex;gap:18px;margin-top:10px;color:#8b95a3;font-size:8px}.document-dates b{color:#536071}.document-reminder{margin-top:10px;padding:7px 8px;border-radius:7px;background:#ffeacb;color:#93601e;font-size:7px;font-weight:700}.document-reminder.expired{background:#f9dfe1;color:#a13d46}.document-file-area{margin-top:13px;padding-top:11px;border-top:1px solid rgba(126,137,152,.18)}.document-file-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.document-file-heading>span{font-size:8px;font-weight:700;color:#687586}.document-upload-button{padding:5px 7px;border:1px solid #d9dde5;border-radius:6px;background:#fff;color:#5b54c8;font-size:7px;font-weight:700;cursor:pointer}.document-upload-button:hover{border-color:#b8b3ec;background:#f5f4ff}.no-document-files{display:block;margin-top:9px;color:#9aa2ae;font-size:7px}.employee-pdf-list{display:grid;gap:6px;margin-top:8px}.employee-pdf-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:5px;padding:7px;border-radius:7px;background:rgba(255,255,255,.74)}.employee-pdf-row>div{min-width:0}.employee-pdf-row b,.employee-pdf-row small{display:block}.employee-pdf-row b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:7px;color:#465365}.employee-pdf-row small{margin-top:2px;font-size:6px;color:#9aa2ae}.employee-pdf-row button{border:0;border-radius:5px;padding:4px 5px;background:#ecebff;color:#5d56c7;font-size:6px;font-weight:700;cursor:pointer}.employee-pdf-row .pdf-delete{background:#fdebec;color:#aa424c}.rate-history{margin-top:12px;border:1px solid #e8ecf1;border-radius:10px;overflow:hidden}.rate-history>div{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:12px;padding:9px 11px;border-top:1px solid #edf0f4}.rate-history>div:first-child{border-top:0}.rate-history span{font-size:8px;color:#758194}.rate-history strong{font-size:9px;color:#354154}.rate-history em{padding:4px 6px;border-radius:5px;background:#e8f7f0;color:#267357;font-size:7px;font-style:normal;font-weight:700}
@media(max-width:900px){.document-alert-panel{grid-template-columns:1fr}.employee-facts{grid-template-columns:repeat(2,1fr)}.employee-documents-grid{grid-template-columns:1fr 1fr}}@media(max-width:620px){.employee-card-dialog{width:calc(100vw - 16px)}.employee-card-modal-head,.employee-card-section,.employee-card-actions{padding-left:14px;padding-right:14px}.employee-documents-grid{grid-template-columns:1fr}.employee-facts{grid-template-columns:1fr 1fr}.employee-card-actions{align-items:flex-start;flex-direction:column}.document-dates{flex-direction:column;gap:4px}}
.employee-inline-link{font:inherit;font-weight:700}

/* Logowanie i synchronizacja Supabase */
.cloud-sync-status{display:inline-flex;align-items:center;gap:7px;padding:7px 9px;border-radius:8px;background:#f0f2f5;color:#7b8695;font-size:8px;font-weight:700;white-space:nowrap}.cloud-sync-status i{width:7px;height:7px;border-radius:50%;background:#9ba4b0}.cloud-sync-status.online{background:#e8f7f0;color:#287357}.cloud-sync-status.online i{background:#43a97f;box-shadow:0 0 0 3px rgba(67,169,127,.12)}.cloud-sync-status.saving{background:#fff3df;color:#98631e}.cloud-sync-status.saving i{background:#d99537}.cloud-sync-status.error{background:#fdebec;color:#a84049}.cloud-sync-status.error i{background:#d85d67}.cloud-logout{padding:7px 9px;font-size:8px}.cloud-auth-dialog{width:min(410px,calc(100vw - 28px));padding:0;border:0;border-radius:17px;box-shadow:0 28px 80px rgba(26,35,52,.28)}.cloud-auth-dialog::backdrop{background:rgba(29,37,52,.72);backdrop-filter:blur(5px)}.cloud-auth-dialog form{display:grid;gap:14px;padding:25px}.cloud-auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:3px}.cloud-auth-brand .brand-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#655dd9;color:#fff;font:800 16px Manrope}.cloud-auth-brand h2{margin:0;font:800 17px Manrope;color:#293547}.cloud-auth-brand p{margin:4px 0 0;color:#838e9d;font-size:9px}.cloud-auth-dialog label{display:grid;gap:6px;color:#687586;font-size:9px;font-weight:700}.cloud-auth-dialog input{width:100%;box-sizing:border-box;border:1px solid #dfe4eb;border-radius:9px;padding:10px 11px;background:#fff;color:#303c4e;font:500 11px 'DM Sans';outline:0}.cloud-auth-dialog input:focus{border-color:#8179e3;box-shadow:0 0 0 3px rgba(101,93,217,.1)}.cloud-auth-message{min-height:17px;margin:0;padding:9px 10px;border-radius:8px;background:#f4f5f8;color:#7c8796;font-size:8px;line-height:1.45}.cloud-auth-message.error{background:#fdebec;color:#a84049}.cloud-auth-dialog .primary{width:100%;padding:10px}.cloud-auth-dialog .primary:disabled{opacity:.65;cursor:wait}@media(max-width:720px){.cloud-sync-status>span{display:none}.cloud-sync-status{padding:7px}.cloud-logout{display:none!important}}
