.reports-premium{display:grid;gap:18px;max-width:1540px;margin:0 auto 34px;color:#1d293b}.reports-hero{position:relative;display:flex;gap:24px;align-items:center;justify-content:space-between;overflow:hidden;padding:24px 26px;border:1px solid #d7e5f5;border-radius:20px;background:radial-gradient(circle at 82% 0,rgba(59,130,246,.18),transparent 32%),radial-gradient(circle at 100% 100%,rgba(16,185,129,.08),transparent 28%),linear-gradient(135deg,#fff,#f4f8ff);box-shadow:0 17px 44px rgba(25,51,85,.075)}.reports-hero:after{position:absolute;right:-55px;bottom:-85px;width:220px;height:220px;border:34px solid rgba(37,99,235,.04);border-radius:50%;content:""}.reports-hero-copy{position:relative;z-index:1;display:flex;gap:16px;align-items:center}.reports-hero-icon{display:grid;width:58px;height:58px;min-width:58px;place-items:center;border:1px solid #bfdbfe;border-radius:17px;color:#2563eb;background:linear-gradient(145deg,#eff6ff,#dbeafe);box-shadow:inset 0 0 0 5px rgba(255,255,255,.52)}.reports-hero-icon .icon{width:24px;height:24px}.reports-hero .eyebrow{margin:0 0 4px;color:#2563eb;font-size:8px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}.reports-hero h1{margin:0;color:#172033;font-size:25px;line-height:1.1}.reports-hero-copy>div>p:last-child{margin:6px 0 0;color:#708096;font-size:10px}.reports-hero-actions{position:relative;z-index:1;display:flex;gap:8px;align-items:center}.reports-hero-actions>span{display:inline-flex;gap:6px;align-items:center;min-height:35px;padding:0 10px;border:1px solid #bfdbfe;border-radius:999px;color:#1d4ed8;background:rgba(239,246,255,.9);font-size:8px;font-weight:750}.reports-hero-actions>span .icon{width:13px;height:13px}.reports-filter-card{overflow:hidden;border:1px solid #dce6f2;border-radius:17px;background:#fff;box-shadow:0 13px 34px rgba(25,51,85,.06)}.reports-filter-heading{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;align-items:center;padding:14px 17px;border-bottom:1px solid #e8eef6;background:linear-gradient(145deg,#fff,#f8fbff)}.reports-filter-heading>span{display:grid;width:38px;height:38px;place-items:center;border-radius:11px;color:#2563eb;background:#eaf2ff}.reports-filter-heading>span .icon{width:16px;height:16px}.reports-filter-heading strong,.reports-filter-heading small{display:block}.reports-filter-heading strong{color:#2a374a;font-size:11px}.reports-filter-heading small{margin-top:3px;color:#8492a6;font-size:8px}.reports-premium .reports-filter-form{display:grid;grid-template-columns:minmax(210px,.72fr) minmax(230px,1fr) minmax(230px,1fr) auto;gap:13px;align-items:start;margin:0;padding:16px 17px;border:0;border-radius:0;background:#fff}.reports-filter-form .field label{margin-bottom:6px;color:#405067;font-size:8px;font-weight:780}.reports-filter-form .field input,.reports-filter-form .field select{height:42px;min-height:42px;border-color:#d8e3f0;border-radius:10px;background:#fbfcfe;font-size:10px}.reports-filter-form .field-hint{margin-top:5px;font-size:7px}.reports-filter-form .form-actions{display:flex;gap:6px;align-self:start;margin-top:20px}.reports-filter-form .form-actions .button{min-height:42px;white-space:nowrap}.reports-month-control{display:grid;grid-template-columns:34px minmax(0,1fr) 34px;gap:5px}.reports-month-control>a{display:grid;width:34px;height:42px;place-items:center;border:1px solid #d8e3f0;border-radius:9px;color:#64748b;background:#f8fafc}.reports-month-control>a:hover{border-color:#93c5fd;color:#2563eb;background:#eff6ff}.reports-month-control>a .icon{width:13px;height:13px}.reports-month-control input{min-width:0}.reports-premium .report-kpis{display:grid;grid-template-columns:1.2fr repeat(4,1fr);gap:10px;margin:0}.reports-premium .report-kpi{position:relative;overflow:hidden;min-height:130px;padding:16px;border:1px solid #dce6f2;border-radius:15px;background:linear-gradient(145deg,#fff,#f8fbff);box-shadow:0 12px 31px rgba(25,51,85,.055)}.reports-premium .report-kpi:before{position:absolute;inset:0 0 auto;height:3px;background:var(--report-accent,#2563eb);content:""}.reports-premium .report-kpi>span{display:flex;gap:7px;align-items:center;color:#718096;font-size:8px;font-weight:800;text-transform:uppercase}.reports-premium .report-kpi>span i{display:grid;width:27px;height:27px;place-items:center;border-radius:8px;color:var(--report-accent,#2563eb);background:color-mix(in srgb,var(--report-accent,#2563eb) 11%,#fff)}.reports-premium .report-kpi>span i .icon{width:13px;height:13px}.reports-premium .report-kpi strong{margin:10px 0 4px;color:#253247;font-size:23px;letter-spacing:-.035em}.reports-premium .report-kpi small{color:#697a90;font-size:8px}.reports-premium .report-kpi em{margin-top:8px;color:#94a3b8;font-size:7px}.reports-premium .report-kpi.is-work{--report-accent:#2563eb}.reports-premium .report-kpi.is-work strong{color:#1d4ed8;font-size:27px}.reports-premium .report-kpi.is-overtime{--report-accent:#7c3aed}.reports-premium .report-kpi.is-late{--report-accent:#f97316}.reports-premium .report-kpi.is-early{--report-accent:#10b981}.reports-premium .report-kpi.is-attention{--report-accent:#ef4444}.reports-premium .report-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(330px,.65fr);gap:14px;margin:0;padding:0;border:0;background:transparent}.reports-premium .report-grid.lower-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0;padding:0;border:0;background:transparent}.reports-premium .lower-grid>.report-section:first-child{grid-column:1/-1}.reports-premium .report-section{overflow:hidden;min-width:0;padding:0;border:1px solid #dce6f2;border-radius:17px;background:#fff;box-shadow:0 13px 34px rgba(25,51,85,.06)}.reports-premium .report-section-header{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:0;padding:16px 18px;border-bottom:1px solid #e8eef6;background:linear-gradient(145deg,#fff,#f8fbff)}.reports-premium .report-section-header h3{position:relative;margin:0;padding-left:13px;color:#29374a;font-size:13px}.reports-premium .report-section-header h3:before{position:absolute;top:50%;left:0;width:4px;height:18px;border-radius:999px;background:#3b82f6;content:"";transform:translateY(-50%)}.reports-premium .report-section-header>span{padding:5px 8px;border-radius:7px;color:#64748b;background:#eef3f8;font-size:7px;font-weight:750}.reports-premium .report-section-note{margin:0;padding:12px 18px 0;color:#7c8b9e;font-size:8px;line-height:1.45}.reports-premium .daily-chart-summary{gap:8px;margin:12px 18px}.reports-premium .daily-chart-summary article{padding:9px 10px;border-color:#e2eaf3;border-radius:10px;background:#f9fbfd}.reports-premium .daily-chart-summary span,.reports-premium .daily-chart-summary small{font-size:7px}.reports-premium .daily-chart-summary strong{font-size:13px}.reports-premium .bar-chart{min-height:235px;margin:0 18px 18px;padding:14px 10px 0;border:1px solid #edf2f7;border-radius:12px;background:linear-gradient(180deg,#fbfdff,#f6f9fc)}.reports-premium .bar-chart-day{height:205px}.reports-premium .bar-chart-day .bar{background:linear-gradient(180deg,#2563eb,#60a5fa);box-shadow:0 7px 14px rgba(37,99,235,.14)}.reports-premium .bar-chart-day small{font-size:7px}.reports-premium .ranking-list{gap:7px;margin:12px 14px 16px}.reports-premium .ranking-row{padding:11px;border:1px solid #e6edf5;border-radius:11px;background:#fbfcfe}.reports-premium .ranking-row strong{color:#354359;font-size:9px}.reports-premium .ranking-row small{margin-top:3px;color:#8794a5;font-size:7px;line-height:1.4}.reports-premium .ranking-row>span{color:#1d4ed8;font-size:9px}.reports-premium .ranking-bar{height:5px;background:#e7edf4}.reports-premium .ranking-bar i{background:linear-gradient(90deg,#2563eb,#38bdf8)}.reports-premium .report-table-scroll{margin:13px 16px 17px;width:auto;border-color:#e1e9f2;border-radius:12px}.reports-premium .report-work-table{min-width:1120px}.reports-premium .report-work-table th{padding:10px;color:#718096;background:#f5f8fb;font-size:7px;font-weight:800;text-transform:uppercase}.reports-premium .report-work-table td{padding:10px;color:#405067;font-size:8px}.reports-premium .report-work-table tbody tr:hover{background:#f7faff}.report-day-link{display:inline-flex;gap:3px;align-items:center;padding:5px 7px;border:1px solid #bfdbfe;border-radius:7px;color:#1d4ed8;background:#eff6ff;font-size:7px;font-weight:800;white-space:nowrap}.report-day-link:hover{border-color:#60a5fa;background:#dbeafe}.report-day-link .icon{width:10px;height:10px}.reports-premium .location-report-list{gap:7px;margin:12px 14px 16px}.reports-premium .location-report-list article{padding:11px 12px;border-color:#e5edf6;border-radius:11px;background:linear-gradient(145deg,#fff,#f9fbfd)}.reports-premium .location-report-list strong{color:#37465a;font-size:9px}.reports-premium .location-report-list>article>span{color:#1d4ed8;font-size:9px;font-weight:800}.reports-premium .location-report-list small{margin-top:3px;color:#8492a6;font-size:7px;line-height:1.4}.reports-premium .empty-state.compact{margin:12px;padding:22px;border:1px dashed #ccd9e8;border-radius:11px;color:#8492a6;background:#f8fafc;text-align:center}
/* Approved absences are a compact report section, not a second full-size form. */
.report-absence-section{overflow:hidden;border:1px solid #dce6f2;border-radius:17px;background:#fff;box-shadow:0 13px 34px rgba(25,51,85,.06)}
.report-absence-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 17px;border-bottom:1px solid #e7edf5;background:linear-gradient(145deg,#fff,#f8fbff)}
.report-absence-title{display:flex;align-items:center;gap:12px;min-width:0}.report-absence-title>span{display:grid;width:39px;height:39px;flex:0 0 39px;place-items:center;border-radius:12px;color:#6d3ce8;background:#f0ecff}.report-absence-title>span .icon{width:18px;height:18px}.report-absence-title .eyebrow{margin:0 0 2px;color:#6d3ce8;font-size:7px;font-weight:850;letter-spacing:.09em;text-transform:uppercase}.report-absence-title h2{margin:0;color:#28364a;font-size:14px;letter-spacing:-.015em}.report-absence-title div>p:last-child{margin:3px 0 0;color:#8190a3;font-size:8px}
.report-absence-summary{display:flex;gap:7px;flex:0 0 auto}.report-absence-summary>span{display:grid;min-width:88px;padding:7px 10px;border:1px solid #e1e8f2;border-radius:10px;background:#fff}.report-absence-summary small{color:#8996a8;font-size:7px;font-weight:800;text-transform:uppercase}.report-absence-summary strong{margin-top:2px;color:#334158;font-size:11px}
.report-absence-list{display:grid}.report-absence-row{display:grid;grid-template-columns:34px minmax(180px,1.35fr) minmax(170px,1fr) minmax(88px,.5fr) auto;gap:11px;align-items:center;min-height:59px;padding:9px 17px;border-bottom:1px solid #edf1f6}.report-absence-row:last-child{border-bottom:0}.report-absence-row:hover{background:#f8fbff}.report-absence-avatar{display:grid;width:32px;height:32px;place-items:center;border-radius:10px;color:#6d3ce8;background:#f2efff}.report-absence-avatar .icon{width:14px;height:14px}.report-absence-person,.report-absence-date,.report-absence-duration{display:grid;gap:2px;min-width:0}.report-absence-person strong,.report-absence-date strong,.report-absence-duration strong{overflow:hidden;color:#354359;font-size:9px;white-space:nowrap;text-overflow:ellipsis}.report-absence-person small,.report-absence-date small,.report-absence-duration small{color:#8996a8;font-size:7px}.report-absence-date small,.report-absence-duration small{font-weight:800;letter-spacing:.04em;text-transform:uppercase}.report-absence-duration>span{color:#7b899c;font-size:7px}.report-absence-status{display:inline-flex;align-items:center;gap:5px;justify-self:end;padding:6px 8px;border:1px solid #bbefd4;border-radius:999px;color:#087a4d;background:#edfff5;font-size:7px;font-weight:800;white-space:nowrap}.report-absence-status i{width:5px;height:5px;border-radius:50%;background:#10b981}
@media(max-width:1180px){.reports-premium .reports-filter-form{grid-template-columns:repeat(3,minmax(0,1fr))}.reports-filter-form .form-actions{grid-column:1/-1;justify-content:flex-end;margin-top:0}.reports-premium .report-kpis{grid-template-columns:repeat(3,1fr)}.reports-premium .report-grid{grid-template-columns:1fr}.reports-premium .ranking-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.report-absence-row{grid-template-columns:34px minmax(150px,1fr) minmax(155px,auto) minmax(80px,auto) auto}}
@media(max-width:760px){.reports-hero{align-items:flex-start;flex-direction:column;padding:18px}.reports-hero-actions{width:100%;justify-content:space-between}.reports-premium .reports-filter-form{grid-template-columns:1fr}.reports-filter-form .form-actions{grid-column:auto}.reports-filter-form .form-actions .button{flex:1}.reports-premium .report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.reports-premium .report-kpi:first-child{grid-column:1/-1}.reports-premium .report-grid.lower-grid{grid-template-columns:1fr}.reports-premium .lower-grid>.report-section:first-child{grid-column:auto}.reports-premium .ranking-list{grid-template-columns:1fr}.report-absence-heading{align-items:flex-start;flex-direction:column}.report-absence-summary{width:100%}.report-absence-summary>span{flex:1}.report-absence-row{grid-template-columns:32px minmax(0,1fr) auto}.report-absence-date{grid-column:2}.report-absence-duration{grid-column:3;grid-row:1/3;text-align:right}.report-absence-status{display:none}}
@media(max-width:520px){.reports-hero-copy{align-items:flex-start}.reports-hero-icon{width:45px;height:45px;min-width:45px;border-radius:13px}.reports-hero h1{font-size:20px}.reports-hero-actions{align-items:stretch;flex-direction:column}.reports-hero-actions>span{justify-content:center}.reports-hero-actions .button{width:100%}.reports-premium .report-kpis{grid-template-columns:1fr}.reports-premium .report-kpi:first-child{grid-column:auto}.reports-premium .daily-chart-summary{grid-template-columns:1fr}.reports-premium .bar-chart{overflow-x:auto;grid-template-columns:repeat(31,minmax(14px,1fr))}}
@media print{body>*{visibility:hidden}.app-shell,.app-main,.main-content,.module-screen,.reports-premium,.reports-premium *{visibility:visible}.sidebar,.topbar,.reports-filter-card,.reports-hero-actions,.report-day-link{display:none!important}.app-main,.main-content{margin:0!important;padding:0!important}.reports-premium{position:absolute;inset:0;display:block}.reports-hero,.reports-premium .report-kpis,.reports-premium .report-grid{margin-bottom:12px;box-shadow:none;break-inside:avoid}.reports-premium .report-section{box-shadow:none}}
.reports-premium .report-kpis{grid-template-columns:1.2fr repeat(5,1fr)}.reports-premium .report-kpi.is-breaks{--report-accent:#0ea5e9}
@media(max-width:1180px){.reports-premium .report-kpis{grid-template-columns:repeat(3,1fr)}}@media(max-width:760px){.reports-premium .report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.reports-premium .report-kpi:first-child{grid-column:1/-1}}@media(max-width:520px){.reports-premium .report-kpis{grid-template-columns:1fr}.reports-premium .report-kpi:first-child{grid-column:auto}}

/* Poufne podsumowanie wynagrodzeń */
.reports-premium .payroll-report-section{position:relative;overflow:hidden;border-color:#cbdcf3;background:radial-gradient(circle at 94% 0,rgba(124,58,237,.1),transparent 24%),linear-gradient(145deg,#fff,#f8fbff)}
.reports-premium .payroll-report-section:before{position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#2563eb,#7c3aed);content:""}
.payroll-report-heading{display:flex;gap:18px;align-items:flex-start;justify-content:space-between;padding:19px 20px 16px;border-bottom:1px solid #e3eaf4}
.payroll-report-title{display:flex;gap:13px;align-items:center}
.payroll-report-title>span{display:grid;width:46px;height:46px;flex:0 0 46px;place-items:center;border:1px solid #c4b5fd;border-radius:13px;color:#6d28d9;background:#f5f3ff;box-shadow:inset 0 0 0 4px rgba(255,255,255,.55)}
.payroll-report-title>span .icon{width:19px;height:19px}
.payroll-report-title .eyebrow{margin:0 0 3px;color:#6d28d9;font-size:7px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}
.payroll-report-title h2{margin:0;color:#1e293b;font-size:15px;line-height:1.25}
.payroll-report-title small{display:block;margin-top:4px;color:#718096;font-size:8px;line-height:1.45}
.payroll-confidential{display:inline-flex;gap:5px;align-items:center;padding:6px 9px;border:1px solid #c4b5fd;border-radius:999px;color:#6d28d9;background:#f5f3ff;font-size:7px;font-weight:850;text-transform:uppercase;white-space:nowrap}
.payroll-confidential .icon{width:12px;height:12px}
.payroll-report-kpis{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:10px;padding:16px 18px 12px}
.payroll-report-kpis article{position:relative;overflow:hidden;min-height:92px;padding:14px;border:1px solid #e0e8f2;border-radius:13px;background:rgba(255,255,255,.84)}
.payroll-report-kpis article:after{position:absolute;right:-24px;bottom:-34px;width:74px;height:74px;border:12px solid rgba(37,99,235,.04);border-radius:50%;content:""}
.payroll-report-kpis span,.payroll-report-kpis strong,.payroll-report-kpis small{position:relative;z-index:1;display:block}
.payroll-report-kpis span{color:#718096;font-size:7px;font-weight:800;text-transform:uppercase}
.payroll-report-kpis strong{margin:7px 0 3px;color:#27364a;font-size:19px;letter-spacing:-.03em}
.payroll-report-kpis small{color:#8492a6;font-size:7px}
.payroll-report-kpis .is-primary{border-color:#bfdbfe;background:linear-gradient(145deg,#eff6ff,#fff)}
.payroll-report-kpis .is-primary strong{color:#1d4ed8;font-size:23px}
.payroll-report-kpis .is-warning{border-color:#fed7aa;background:#fffaf3}
.payroll-report-kpis .is-warning strong{color:#c2410c}
.payroll-report-kpis .is-complete{border-color:#bbf7d0;background:#f4fff8}
.payroll-report-kpis .is-complete strong{color:#15803d}
.payroll-report-list{overflow:hidden;margin:2px 18px 14px;border:1px solid #dfe8f2;border-radius:13px;background:#fff}
.payroll-report-list-head,.payroll-report-list>article{display:grid;grid-template-columns:minmax(230px,1.4fr) repeat(3,minmax(120px,.7fr));gap:12px;align-items:center}
.payroll-report-list-head{padding:9px 13px;color:#718096;background:#f4f7fb;font-size:7px;font-weight:850;text-transform:uppercase}
.payroll-report-list>article{padding:10px 13px;border-top:1px solid #edf2f7;color:#475569;font-size:8px}
.payroll-report-list>article>strong{color:#1e3a8a;font-size:10px}
.payroll-employee-cell{display:flex;gap:9px;align-items:center}
.payroll-employee-cell>i{display:grid;width:31px;height:31px;flex:0 0 31px;place-items:center;border-radius:9px;color:#1d4ed8;background:#eaf2ff;font-size:8px;font-style:normal;font-weight:850}
.payroll-employee-cell>span{display:grid;gap:2px}
.payroll-employee-cell strong{color:#334155;font-size:9px}
.payroll-employee-cell small{color:#8492a6;font-size:7px}
.payroll-report-disclaimer{display:flex;gap:7px;align-items:center;margin:0 18px 16px;padding:9px 11px;border:1px solid #dbeafe;border-radius:9px;color:#52647c;background:#eff6ff;font-size:7px;line-height:1.4}
.payroll-report-disclaimer .icon{width:13px;height:13px;flex:0 0 13px;color:#2563eb}
.payroll-table-rate{display:inline-flex;padding:4px 6px;border-radius:6px;color:#1e40af;background:#eff6ff;font-weight:750;white-space:nowrap}
.payroll-table-rate.is-live{color:#b45309;background:#fef3c7}
.payroll-table-rate.is-invalid{color:#b91c1c;background:#fee2e2}
@media(max-width:900px){.payroll-report-kpis{grid-template-columns:1fr}.payroll-report-list-head{display:none}.payroll-report-list>article{grid-template-columns:repeat(3,1fr)}.payroll-report-list>article .payroll-employee-cell{grid-column:1/-1}.payroll-report-list>article>span:not(.payroll-employee-cell),.payroll-report-list>article>strong{display:grid;gap:3px}.payroll-report-list>article>[data-label]:before{color:#94a3b8;font-size:6px;font-weight:800;text-transform:uppercase;content:attr(data-label)}}
@media(max-width:560px){.payroll-report-heading{flex-direction:column;padding:16px}.payroll-report-title{align-items:flex-start}.payroll-report-title h2{font-size:13px}.payroll-report-kpis{padding:13px}.payroll-report-list{margin-right:13px;margin-left:13px}.payroll-report-list>article{grid-template-columns:1fr}.payroll-report-list>article .payroll-employee-cell{grid-column:auto}.payroll-report-disclaimer{margin-right:13px;margin-left:13px}}

/* Eksport pełnego raportu czasu pracy */
.reports-hero:has(.reports-export-menu) {
    overflow: visible;
}

.reports-hero:has(.reports-export-menu)::after {
    display: none;
}

.reports-export-menu {
    position: relative;
}

.reports-export-menu > summary {
    list-style: none;
    white-space: nowrap;
    cursor: pointer;
}

.reports-export-menu > summary::-webkit-details-marker {
    display: none;
}

.reports-export-menu > summary .icon:last-child {
    width: 12px;
    height: 12px;
    margin-left: 2px;
    transition: transform .18s ease;
}

.reports-export-menu[open] > summary .icon:last-child {
    transform: rotate(180deg);
}

.reports-export-popover {
    position: absolute;
    z-index: 80;
    top: calc(100% + 9px);
    right: 0;
    width: 370px;
    overflow: hidden;
    border: 1px solid #d8e3f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 35, 70, .2);
}

.reports-export-popover::before {
    position: absolute;
    top: -6px;
    right: 28px;
    width: 12px;
    height: 12px;
    border-top: 1px solid #d8e3f0;
    border-left: 1px solid #d8e3f0;
    content: "";
    background: #f8fbff;
    transform: rotate(45deg);
}

.reports-export-popover header {
    display: flex;
    gap: 11px;
    align-items: center;
    padding: 14px 15px;
    border-bottom: 1px solid #e5edf6;
    background: linear-gradient(145deg, #fff, #f5f9ff);
}

.reports-export-popover header > span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    color: #2563eb;
    background: #e5efff;
}

.reports-export-popover header strong,
.reports-export-popover header small,
.reports-export-popover a strong,
.reports-export-popover a small {
    display: block;
}

.reports-export-popover header strong {
    color: #263449;
    font-size: 11px;
}

.reports-export-popover header small {
    margin-top: 3px;
    color: #8492a6;
    font-size: 8px;
}

.reports-export-popover > a {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid #edf2f7;
    color: inherit;
    background: #fff;
    text-decoration: none;
    transition: background .15s ease;
}

.reports-export-popover > a:last-child {
    border-bottom: 0;
}

.reports-export-popover > a:hover {
    background: #f7faff;
}

.reports-export-popover > a > span {
    display: grid;
    place-items: center;
    width: 45px;
    height: 32px;
    border-radius: 9px;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .04em;
}

.reports-export-popover .is-xlsx {
    color: #087a4d;
    background: #dcfce7;
}

.reports-export-popover .is-pdf {
    color: #b42318;
    background: #fee4e2;
}

.reports-export-popover .is-csv {
    color: #1d4ed8;
    background: #dbeafe;
}

.reports-export-popover a strong {
    color: #334155;
    font-size: 10px;
}

.reports-export-popover a small {
    margin-top: 3px;
    color: #7c8b9e;
    font-size: 8px;
    line-height: 1.35;
}

.reports-export-popover a > .icon {
    width: 14px;
    height: 14px;
    color: #94a3b8;
}

@media(max-width:760px) {
    .reports-export-menu {
        flex: 1;
    }

    .reports-export-menu > summary {
        justify-content: center;
        width: 100%;
    }
}

@media(max-width:520px) {
    .reports-export-popover {
        position: fixed;
        top: auto;
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: auto;
        max-height: calc(100vh - 24px);
    }

    .reports-export-popover::before {
        display: none;
    }
}

.report-period-card{overflow:hidden;border:1px solid #d8e4f2;border-radius:18px;background:#fff;box-shadow:0 12px 32px rgba(30,58,95,.055)}
.report-period-card.is-closed{border-color:#a7f3d0;background:linear-gradient(145deg,#fff,#f2fff8)}
.report-period-summary{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:14px;align-items:center;padding:17px 19px}
.report-period-icon{display:grid;width:48px;height:48px;place-items:center;border-radius:14px;color:#1d4ed8;background:#eaf2ff}
.report-period-icon .icon{width:21px;height:21px}
.report-period-card.is-closed .report-period-icon{color:#047857;background:#d1fae5}
.report-period-copy{min-width:0}.report-period-copy .eyebrow{margin:0;color:#2563eb;font-size:8px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.report-period-card.is-closed .report-period-copy .eyebrow{color:#059669}
.report-period-copy h2{margin:3px 0 0;color:#1e293b;font-size:15px}.report-period-copy p{margin:4px 0 0;color:#64748b;font-size:9px;line-height:1.5}.report-period-copy small{display:block;margin-top:5px;color:#7890a6;font-size:8px}
.report-period-badge{display:inline-flex;gap:7px;align-items:center;padding:7px 10px;border-radius:999px;color:#1d4ed8;background:#eff6ff;font-size:8px;font-weight:850;text-transform:uppercase}
.report-period-badge i{width:7px;height:7px;border-radius:50%;background:#3b82f6;box-shadow:0 0 0 4px rgba(59,130,246,.1)}
.report-period-card.is-closed .report-period-badge{color:#047857;background:#ecfdf5}.report-period-card.is-closed .report-period-badge i{background:#10b981;box-shadow:0 0 0 4px rgba(16,185,129,.1)}
.report-period-readiness{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;padding:12px 19px;border-top:1px solid #e7edf5;background:#f8fbff}
.report-period-readiness>span{display:grid;grid-template-columns:24px minmax(0,1fr);gap:7px;align-items:center;min-width:0;padding:8px;border:1px solid #dce7f3;border-radius:10px;color:#64748b;background:#fff;font-size:7.5px;font-weight:750;line-height:1.3}
.report-period-readiness i{display:grid;width:24px;height:24px;place-items:center;border-radius:8px;color:#047857;background:#d1fae5;font-size:9px;font-style:normal;font-weight:850}
.report-period-readiness .has-blocker{border-color:#fed7aa;color:#9a5a13;background:#fffaf3}.report-period-readiness .has-blocker i{color:#c2410c;background:#ffedd5}
.report-period-action{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:12px;align-items:end;padding:13px 19px;border-top:1px solid #e7edf5}
.report-period-action label{display:grid;gap:5px;color:#52647a;font-size:8px;font-weight:800}.report-period-action label small{color:#94a3b8;font-size:7px}.report-period-action input{width:100%;height:40px;border-color:#d6e2ef;border-radius:10px;background:#fbfdff;font-size:9px}.report-period-action .button{min-height:40px;white-space:nowrap}.report-period-action .button:disabled{cursor:not-allowed;opacity:.45}
.report-period-message{display:flex;gap:7px;align-items:center;margin:0;padding:9px 19px;border-top:1px solid #e7edf5;color:#52647a;background:#f8fafc;font-size:8px}.report-period-message .icon{width:14px;height:14px}.report-period-message.is-warning{color:#9a5a13;background:#fffaf3}.report-period-message.is-success{color:#047857;background:#f0fdf4}
@media(max-width:1050px){.report-period-readiness{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:680px){.report-period-summary{grid-template-columns:42px minmax(0,1fr)}.report-period-icon{width:42px;height:42px}.report-period-badge{grid-column:1/-1;justify-self:start}.report-period-readiness{grid-template-columns:repeat(2,minmax(0,1fr));padding-inline:14px}.report-period-action{grid-template-columns:1fr;padding-inline:14px}.report-period-action .button{width:100%}}

/* Czytelny eksport raportu do PDF i wydruku. */
@page {
    size: A4 landscape;
    margin: 10mm;
}

@media print {
    html,
    body {
        background: #fff !important;
        print-color-adjust: exact !important;
        -webkit-print-color-adjust: exact !important;
    }

    .reports-premium {
        position: static !important;
        inset: auto !important;
        width: 100% !important;
        max-width: none !important;
    }

    .reports-premium .report-section,
    .reports-premium .report-kpi,
    .reports-premium .report-period-card,
    .reports-premium .payroll-report-kpis article,
    .reports-premium .payroll-report-list,
    .reports-premium .payroll-report-disclaimer {
        box-shadow: none !important;
    }

    .reports-premium .report-period-action,
    .reports-premium .report-period-message {
        display: none !important;
    }

    .reports-premium .daily-chart-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 7px !important;
        margin: 8px 14px !important;
        break-inside: avoid-page;
    }

    .reports-premium .daily-chart-summary article {
        padding: 7px 9px !important;
        border-color: #cbdcf3 !important;
        background: #f8fbff !important;
    }

    .reports-premium .bar-chart {
        grid-template-columns: repeat(31, minmax(8px, 1fr)) !important;
        gap: 4px !important;
        min-height: 142px !important;
        margin: 0 14px 14px !important;
        padding: 12px 9px 0 !important;
        border-color: #cbdcf3 !important;
        background:
            repeating-linear-gradient(
                to top,
                transparent 0,
                transparent 34px,
                #e5edf7 35px
            ),
            #f8fbff !important;
        break-inside: avoid-page;
    }

    .reports-premium .bar-chart-day {
        height: 125px !important;
    }

    .reports-premium .bar-chart-day .bar {
        min-height: 3px !important;
        border: 1px solid #b9c6d8 !important;
        border-bottom-color: #94a3b8 !important;
        background: #d8e1ec !important;
        box-shadow: none !important;
    }

    .reports-premium .bar-chart-day.has-work .bar {
        border-color: #1d4ed8 !important;
        background: #2563eb !important;
        box-shadow: none !important;
    }

    .reports-premium .bar-chart-day::after {
        display: none !important;
    }

    .reports-premium .bar-chart-day small {
        color: #334155 !important;
        font-size: 6.5px !important;
    }

    .reports-premium .payroll-report-section {
        overflow: visible !important;
        border: 0 !important;
        background: #fff !important;
        break-inside: auto !important;
    }

    .reports-premium .payroll-report-section::before {
        display: none !important;
    }

    .reports-premium .payroll-report-heading {
        margin-bottom: 9px !important;
        padding: 12px 14px !important;
        border: 1px solid #cbdcf3 !important;
        border-radius: 12px !important;
        background: #f8fbff !important;
        break-after: avoid-page;
        break-inside: avoid-page;
    }

    .reports-premium .payroll-report-title > span {
        width: 38px !important;
        height: 38px !important;
        flex-basis: 38px !important;
    }

    .reports-premium .payroll-report-kpis {
        display: grid !important;
        grid-template-columns: 1.2fr 1fr 1fr !important;
        gap: 8px !important;
        padding: 0 0 9px !important;
        break-after: avoid-page;
        break-inside: avoid-page;
    }

    .reports-premium .payroll-report-kpis article {
        min-height: 66px !important;
        padding: 10px 12px !important;
        border-radius: 10px !important;
    }

    .reports-premium .payroll-report-kpis strong,
    .reports-premium .payroll-report-kpis .is-primary strong {
        margin: 5px 0 2px !important;
        font-size: 17px !important;
    }

    .reports-premium .payroll-report-list {
        overflow: visible !important;
        margin: 0 0 9px !important;
        border-radius: 10px !important;
        break-inside: auto !important;
    }

    .reports-premium .payroll-report-list-head,
    .reports-premium .payroll-report-list > article {
        display: grid !important;
        grid-template-columns: minmax(190px, 1.4fr) repeat(3, minmax(100px, .7fr)) !important;
        gap: 9px !important;
    }

    .reports-premium .payroll-report-list-head {
        break-after: avoid-page;
    }

    .reports-premium .payroll-report-list > article {
        padding: 8px 11px !important;
        break-inside: avoid-page;
    }

    .reports-premium .payroll-report-list > article .payroll-employee-cell {
        grid-column: auto !important;
    }

    .reports-premium .payroll-report-list > article > span:not(.payroll-employee-cell),
    .reports-premium .payroll-report-list > article > strong {
        display: block !important;
    }

    .reports-premium .payroll-report-list > article > [data-label]::before {
        content: none !important;
    }

    .reports-premium .payroll-report-disclaimer {
        margin: 0 !important;
        padding: 7px 9px !important;
        break-inside: avoid-page;
    }

    .reports-premium .report-table-scroll {
        width: auto !important;
        max-width: none !important;
        overflow: visible !important;
        margin: 9px 10px 12px !important;
    }

    .reports-premium .report-work-table {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
    }

    .reports-premium .report-work-table thead {
        display: table-header-group;
    }

    .reports-premium .report-work-table tr {
        break-inside: avoid-page;
    }

    .reports-premium .report-work-table th,
    .reports-premium .report-work-table td {
        min-width: 0 !important;
        max-width: none !important;
        padding: 6px 4px !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .reports-premium .report-work-table th {
        color: #52647c !important;
        font-size: 6px !important;
        line-height: 1.2 !important;
        letter-spacing: .015em !important;
        text-align: center !important;
        vertical-align: middle !important;
    }

    .reports-premium .report-work-table td {
        font-size: 6.5px !important;
        line-height: 1.3 !important;
    }

    .reports-premium .report-work-table th:first-child,
    .reports-premium .report-work-table td:first-child {
        width: 7% !important;
    }

    .reports-premium .report-work-table th:nth-child(2),
    .reports-premium .report-work-table td:nth-child(2) {
        width: 12% !important;
    }

    .reports-premium .report-work-table th:nth-child(3),
    .reports-premium .report-work-table td:nth-child(3),
    .reports-premium .report-work-table th:nth-child(4),
    .reports-premium .report-work-table td:nth-child(4) {
        width: 11% !important;
    }

    .reports-premium .report-work-table .badge,
    .reports-premium .payroll-table-rate {
        padding: 3px 4px !important;
        font-size: 5.8px !important;
        line-height: 1.2 !important;
        white-space: normal !important;
    }

    .reports-premium .report-actions-column {
        display: none !important;
    }
}
