.pp-page,.pp-document{--pp-ink:#28223a;--pp-muted:#655e74;--pp-violet:#5e3992;--pp-line:#e3ddec;color:var(--pp-ink);font-variant-numeric:tabular-nums}
.pp-page{width:100%;max-width:1320px;min-width:0;margin:auto;display:grid;gap:16px}
.pp-heading,.pp-document header{display:flex;align-items:center;justify-content:space-between;gap:14px}
.pp-heading h1,.pp-document h1{margin:3px 0;font-size:clamp(22px,3vw,32px);line-height:1.15}
.pp-heading p,.pp-note,.pp-recap span,.pp-stats span{color:var(--pp-muted)}
.pp-heading p,.pp-recap p{margin:0}
.pp-back,.pp-control,.pp-periods button{font:inherit;cursor:pointer}
.pp-back{padding:4px 0;background:none;border:0;color:var(--pp-violet);font-weight:600}
.pp-filters,.pp-stats,.pp-scroll,.pp-recap{background:white;border:1px solid var(--pp-line);border-radius:13px}
.pp-filters{padding:14px;display:grid;gap:12px}
.pp-periods,.pp-week-nav,.pp-legend,.pp-filters form{display:flex;flex-wrap:wrap;align-items:end;gap:8px}
.pp-periods{padding:3px;background:#f4f0f8;border-radius:9px;width:fit-content;max-width:100%;flex-wrap:nowrap;gap:0}
.pp-periods button{border:0;background:transparent;color:#625674;padding:8px 14px;border-radius:7px;font-size:14px}
.pp-periods [aria-pressed=true]{background:white;color:#4b297a;box-shadow:0 1px 4px #36234f26;font-weight:700}
.pp-filters label{display:grid;gap:4px;font-size:13px;font-weight:600;min-width:0}
.pp-filters .select,.pp-filters .input{max-width:100%;min-width:0}
.pp-control,.pp-document nav button{color:var(--pp-violet);background:#fff;border:1px solid var(--pp-line);padding:6px 10px;border-radius:8px;font-size:13px}
.pp-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(126px,1fr));padding:6px}
.pp-stats div{padding:9px 13px;display:grid;gap:5px}.pp-stats strong{font-size:19px;line-height:1.15}
.pp-stats span,.pp-recap span,.pp-note{font-size:13px}.pp-legend{gap:6px 14px;align-items:center;font-size:12px}
.pp-mark{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:6px}
.pp-mark.PRESENT{background:#e3f3e9;color:#185b34}.pp-mark.HALF_DAY{background:#fff2c6;color:#735000}.pp-mark.ABSENT,.pp-mark.CONFLICT{background:#fde4e2;color:#891e22}.pp-mark.HOLIDAY{background:#e6edfa;color:#294970}.pp-mark.OUTSIDE{background:#eee;color:#555}.pp-mark.UNRECORDED{color:#6c6474}
.pp-scroll{min-width:0;overflow:auto}
.pp-grid{width:100%;border-collapse:collapse;font-size:14px;color:var(--pp-ink)}
.pp-grid caption{text-align:start;padding:12px 10px;color:var(--pp-violet);font-weight:700}
.pp-grid th,.pp-grid td{border-bottom:1px solid var(--pp-line);padding:8px 9px;text-align:center;vertical-align:middle}
.pp-grid thead th{background:#f6f3fa;font-size:12px;color:#57466a}
.pp-grid small{display:block;font-weight:400;white-space:nowrap}
.pp-grid th:first-child,.pp-total th{text-align:start}.pp-grid .pp-amount{text-align:end;white-space:nowrap}
.pp-grid .pp-total>*{background:#f2edf8;border:0;font-weight:bold}
.pp-recap{padding:14px}.pp-recap h3{margin:0 0 10px;font-size:15px}
.pp-recap div{display:flex;gap:12px 32px;flex-wrap:wrap}.pp-recap p{display:grid;gap:4px}
.pp-note{margin:5px 0;line-height:1.4}.pp-sign-choice{display:block;margin:16px 0}.pp-sign-choice[hidden]{display:none}
.pp-document{margin:18px auto;max-width:1120px;padding:0 14px;font:14px Arial,sans-serif;background:white}
.pp-document header{border-bottom:2px solid var(--pp-violet);padding:12px 0}.pp-document header img{height:48px;max-width:90px;object-fit:contain}
.pp-document header strong{color:var(--pp-violet)}.pp-document header aside{margin-inline-start:auto;text-align:end;font-size:13px;line-height:1.6}
.pp-document h2{font-size:17px;margin:16px 0 6px}.pp-document .pp-scroll,.pp-document .pp-recap{margin-top:10px}
.pp-document footer{font-size:10px;color:#555;text-align:center;padding:6px}.pp-sign{min-width:65px}
@media(max-width:620px){
 .pp-page{gap:12px}.pp-filters form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .pp-filters label:has(select){grid-column:1/-1}.pp-periods button{padding:8px 9px}
 .pp-week-nav{gap:5px}.pp-week-nav .pp-control{flex:1 0 39%;min-height:36px}
 .pp-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.pp-stats div{padding:8px}.pp-grid{font-size:13px}
 .pp-page .pp-grid th:first-child{position:sticky;inset-inline-start:0;background:white;min-width:105px;max-width:36vw;box-shadow:1px 0 var(--pp-line)}
 .pp-page .pp-grid{min-width:610px}.pp-page .pp-presence{min-width:680px}.pp-filters input[type=date]{width:100%}
}
@page payroll{size:A4 landscape;margin:10mm 10mm 17mm;@bottom-right{content:counter(page) " / " counter(pages);font:9pt Arial;color:#655e74}}
@media print{
 .pp-document{page:payroll;max-width:none;margin:0;padding:0;font-size:10pt;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 .pp-document nav{display:none}.pp-document header{break-inside:avoid}.pp-document h1{font-size:20pt}.pp-document header aside{font-size:10pt}
 .pp-document .pp-scroll{overflow:visible;border:0;border-radius:0}.pp-document .pp-grid{font-size:9pt}.pp-document .pp-grid th,.pp-document .pp-grid td{padding:4px 5px}
 .pp-document .pp-grid thead{display:table-header-group}.pp-document .pp-grid thead th,.pp-document .pp-legend{font-size:8pt}
 .pp-document .pp-grid caption,.pp-document h2{break-after:avoid}
 .pp-document tr,.pp-document .pp-recap{break-inside:avoid}.pp-document .pp-grid th:first-child{max-width:50mm;overflow-wrap:anywhere}
 .pp-document .pp-mark{min-width:16px;height:16px}.pp-document .pp-note{font-size:8pt}.pp-document footer{display:none}
}

@media print{
 .pp-month-grid{table-layout:fixed}
 .pp-document .pp-month-grid th,.pp-document .pp-month-grid td{padding:3px 0;font-size:7pt}
 .pp-month-grid th:first-child{width:13%}.pp-month-grid thead th:nth-last-child(-n+3){width:5%}
 .pp-document .pp-month-grid .pp-mark{min-width:12px}
}

.pp-narrow,.pp-wage-cards{display:none}
@media screen and (max-width:620px){
 .pp-page .pp-week-grid{width:100%;min-width:0;table-layout:fixed}
 .pp-page .pp-week-grid th,.pp-page .pp-week-grid td{padding:5px 0;font-size:11px}
 .pp-page .pp-week-grid th:first-child{width:23%;min-width:0;overflow-wrap:anywhere}
 .pp-week-grid thead small{font-size:8px}.pp-week-grid .pp-wide{display:none}.pp-week-grid .pp-narrow{display:inline}
 .pp-salary-grid{display:none}.pp-wage-cards{display:block;background:white;border:1px solid var(--pp-line);border-radius:12px;overflow:hidden}
 .pp-wage-cards details{padding:10px 12px;border-bottom:1px solid var(--pp-line)}
 .pp-wage-cards summary{cursor:pointer;display:flex;justify-content:space-between;gap:8px}
 .pp-wage-cards summary span{display:grid;gap:3px}.pp-wage-cards summary span+span{text-align:end}
 .pp-wage-cards small{font-size:11px;color:var(--pp-muted)}.pp-wage-cards bdi{font-weight:700}
 .pp-wage-cards dl{display:grid;grid-template-columns:1fr auto;gap:5px;font-size:13px}.pp-wage-cards dd{margin:0;text-align:end}
 .pp-mobile-total{padding:10px 12px;display:flex;justify-content:space-between;background:#f2edf8;margin:0;font-size:13px}
}
