.pw{border:1px solid #d9e6e9;border-radius:16px;overflow:hidden;background:#fff;margin:16px 0;box-shadow:0 5px 22px #1034400a;color:#173b49}.pw-head{display:flex;justify-content:space-between;gap:16px;padding:18px 20px;background:linear-gradient(120deg,#f0f8f8,#f7faff);border-bottom:1px solid #d9e6e9}.pw-head span{font-size:9px;letter-spacing:1.5px;color:#147f7b;font-weight:800}.pw-head h3{margin:5px 0;font-size:20px}.pw-head p{margin:0;color:#65808d;font-size:11px}.pw-head>b{align-self:center;background:white;border:1px solid #d9e6e9;border-radius:20px;padding:7px 11px;font-size:11px;white-space:nowrap}.pw-tools{display:flex;gap:12px;align-items:end;padding:12px 16px;background:#fff}.pw-tools label{margin:0;flex:1;font-size:11px}.pw-tools input,.pw-tools select{margin-top:5px;min-height:39px;padding:8px 10px;font-size:12px}.pw-tools button{border:1px solid #d9e6e9;border-radius:9px;background:#eef6f6;color:#146966;padding:10px;font-size:11px;min-height:39px}.pw-grid{max-height:68dvh;overflow:auto;overscroll-behavior:contain;scrollbar-color:#98b4ba #edf3f5;position:relative}.pw table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font-size:11px}.pw th,.pw td{padding:8px 5px;min-width:42px;text-align:center;border-bottom:1px solid #e7eef1;border-right:1px solid #e7eef1;height:46px;background:#fff}.pw thead th{position:sticky;top:0;z-index:3;background:#eef5f6;color:#45606b;font-size:11px}.pw thead small{display:block;font-size:9px;font-weight:400;margin-top:3px}.pw .pw-name{position:sticky;left:0;z-index:2;text-align:left;min-width:195px;max-width:195px;padding:9px 12px;box-shadow:3px 0 6px #1034400b;border-right:1px solid #cbdde1}.pw thead .pw-name{z-index:5;background:#173f4b;color:#fff}.pw-name small{display:block;font-size:9px;color:#7b9199;font-weight:400;line-height:1.4;margin-top:4px;white-space:normal}.pw tr:hover>td,.pw tr:hover>th.pw-name{background:#f6fafb}.pw .pw-week{border-right:3px solid #d00!important}.pw-code{display:inline-flex;align-items:center;justify-content:center;min-width:27px;min-height:24px;border-radius:5px;font-weight:750;padding:2px 4px;border:1px solid #173b4912}.pw .pw-total{min-width:88px;max-width:100px;background:#f8fbfc;font-variant-numeric:tabular-nums}.pw footer{padding:10px 15px;color:#6c858e;font-size:10px;border-top:1px solid #e7eef1}.pw-week-key{display:inline-block;height:11px;border-left:3px solid #d00;vertical-align:middle;margin-right:5px}.pw-empty{padding:16px;text-align:center;color:#78919a}.payroll-top-actions{padding:12px;background:#f1f7f8;border:1px solid #dbe7ea;border-radius:12px;margin:12px 0;gap:7px}.payroll-top-actions .btn{font-size:12px;min-height:39px;padding:9px 12px}
@media(min-width:1100px){.content:has(.pw){max-width:none;padding-left:22px;padding-right:22px}}
@media(max-width:767px){.pw-head{padding:13px;gap:8px}.pw-head h3{font-size:16px}.pw-head p{font-size:10px}.pw-head>b{padding:5px 7px;font-size:10px}.pw-tools{display:grid;grid-template-columns:1fr 1fr;padding:10px;gap:8px}.pw-tools button{grid-column:1/-1;min-height:36px}.pw-tools input,.pw-tools select{font-size:16px}.pw .pw-name{min-width:130px;max-width:130px;padding:7px 8px;font-size:10px}.pw-name small{font-size:8px}.pw th,.pw td{min-width:38px;padding:5px 3px;height:42px}.pw-grid{max-height:62dvh}.payroll-top-actions{display:grid;grid-template-columns:1fr 1fr;padding:8px}.payroll-top-actions .btn{font-size:11px;width:100%;padding:8px;min-height:42px}}
@media print{.pw,.payroll-top-actions{display:none!important}}

.pw-hours{display:block;font-size:9px;font-weight:650;line-height:1.5;white-space:nowrap;margin-top:2px}.pw-hours.overtime{color:#086b80}.pw-hours.shift{color:#3f5c75}.pw-hours.premium{color:#75509d}.pw-hours.unknown{color:#8a6b33}.pw td:has(.pw-hours){min-width:53px;vertical-align:top;padding-top:7px}
@media(max-width:767px){.pw-hours{font-size:8px}.pw td:has(.pw-hours){min-width:47px}}

.pw-mobile-nav{display:none}
@media screen and (max-width:767px){
 .pw-mobile-nav{display:flex;align-items:center;gap:6px;padding:8px 10px}
 .pw-mobile-nav b{flex:1;text-align:center;font-size:12px}
 .pw-mobile-nav button{min-height:44px;min-width:44px;border-radius:8px;border:1px solid var(--pc-line,#cbdde1);background:var(--pc-panel,#f1f7f8);color:var(--pc-text,#173b49);padding:5px 8px}
 .pw-mobile-nav button:disabled{opacity:.45}
 .pw .pw-mobile-hide{display:none}
 .pw .pw-name{min-width:108px;max-width:108px}
 .pw-grid{overscroll-behavior-x:contain;overscroll-behavior-y:auto}
}

@media screen and (max-width:767px){
 .pw-mobile-nav{display:grid;grid-template-columns:44px minmax(0,1fr) auto 44px}
 .pw-mobile-nav [data-pw-prev]{grid-column:1;grid-row:1}
 .pw-mobile-nav [data-pw-next]{grid-column:4;grid-row:1}
 .pw-mobile-nav [data-pw-days]{grid-column:2;grid-row:1}
 .pw-mobile-nav [data-pw-totals]{grid-column:3;grid-row:1}
}

@media screen and (min-width:1100px){
 .pw-full-month table{width:calc(100% + 616px);table-layout:fixed}
 .pw-full-month .pw-name{box-sizing:border-box;width:155px;min-width:0;max-width:none}
 .pw-full-month .pw-total{box-sizing:border-box;width:88px;min-width:0;max-width:none}
 .pw-full-month th:not(.pw-name,.pw-total),
 .pw-full-month td:not(.pw-total){box-sizing:border-box;min-width:0;padding-inline:2px;overflow-wrap:anywhere}
 .pw-full-month .pw-code{min-width:0;padding-inline:3px}
 .pw-full-month .pw-hours{white-space:normal}
}

.pw-legend{margin:0;padding:8px 16px 11px;font-size:11px;line-height:1.65;border-bottom:1px solid var(--ui-line,#d9e6e9)}
.pw-legend .pw-week-key{margin-left:9px}
