/* Scoped payroll worksheet and summary. PAD workspace layout is unchanged. */
.p4-workflow{display:flex;align-items:center;gap:15px;margin:0 0 26px;color:#8793aa;font-size:12px}.p4-workflow>i{width:45px;height:1px;background:#d5ddea}.p4-workflow>.p3-badge{margin-left:auto}.p4-step{display:flex;align-items:center;gap:9px}.p4-step>span{width:26px;height:26px;border:1px solid #cfd8e8;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px}.p4-step.current{color:#294da8;font-weight:650}.p4-step.current>span{background:#e7edfc;border-color:#b9c9ef}.p4-payroll-setup{display:grid;grid-template-columns:1fr 1fr 1fr 1fr auto;gap:15px;background:white;border:1px solid #dce2ee;border-radius:9px;padding:20px;margin-bottom:24px;align-items:end}.p4-payroll-setup label{font-size:11px;color:#65728c;margin:0}.p4-payroll-setup input,.p4-payroll-setup select{font-size:12px;padding:10px;margin-bottom:0;border-color:#d8e0ed}.p4-payroll-setup button{font-size:11px;padding:11px 16px}.p4-payroll-sheet{border:1px solid #d7dfec;border-radius:9px;background:white;overflow:visible}.p4-sheet-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 24px;border-bottom:1px solid #e0e6f0}.p4-sheet-toolbar h2{font-size:18px;letter-spacing:-.4px;margin:0 0 6px}.p4-sheet-toolbar p{font-size:11px;color:#8b94a9;margin:0}.p4-sheet-search{position:relative;width:240px;margin:0}.p4-sheet-search>.p3-icon{position:absolute;left:10px;top:11px;width:17px;height:17px;color:#8c9aba}.p4-sheet-search input{font-size:11px;padding:10px 12px 10px 35px;margin:0;border-color:#dde3ef}.p4-payroll-sheet>.table-wrap{margin:0;border:0;border-radius:0;min-height:90px;overflow-x:auto;overflow-y:visible}.p4-payroll-table{table-layout:auto;font-size:12px}.p4-payroll-table th,.p4-payroll-table td{padding:18px 20px;border-right:1px solid #e1e6ef;border-bottom:1px solid #e1e6ef}.p4-payroll-table th:last-child,.p4-payroll-table td:last-child{border-right:0}.p4-payroll-table thead th{background:#f8f9fc;color:#5f6d87;font-size:11px;font-weight:600;white-space:nowrap}.p4-payroll-table td{color:#435375;font-size:12px;vertical-align:middle}.p4-payroll-table .numeric{text-align:right;font-variant-numeric:tabular-nums}.p4-payroll-table tbody tr:nth-child(2n){background:#fdfdff}.p4-payroll-table tbody tr:hover{background:#fafbff}.p4-payroll-table td>small{display:inline;color:#8c96ac;font-size:10px}.p4-payroll-table tfoot th{background:#fafbfe;font-size:12px;font-weight:650;color:#36496e;border-bottom:0}.p4-payroll-table tfoot small{font-size:9px;font-weight:400;color:#95a0b5;margin-left:8px}.p4-employee-cell{display:flex;align-items:center;justify-content:space-between;gap:22px;min-width:160px}.p4-employee-cell>a{color:#2a4c98;font-weight:600;font-size:12px}.p4-row-actions{position:relative;color:#34549e}.p4-row-actions>summary{padding:0 5px;list-style:none;font-size:21px;line-height:1;cursor:pointer}.p4-row-actions>summary::-webkit-details-marker,.p4-options>summary::-webkit-details-marker{display:none}.p4-row-actions>div{position:absolute;z-index:5;right:0;top:20px;min-width:220px;background:white;border:1px solid #dbe2ef;box-shadow:0 5px 20px #1c315e15;border-radius:7px;padding:7px}.p4-row-actions>div a{display:block;padding:10px;color:#3d5794;font-size:10px}.p4-row-actions>div a:hover{background:#f2f5fc}.p4-department{display:flex;align-items:center;justify-content:space-between;gap:15px;min-width:110px;font-size:11px;color:#5e6f8e}.p4-department>span{color:#7e91bc}.p4-unconfigured{color:#98a2b5!important;font-size:10px;font-weight:400!important}.p4-payroll-table .p4-open-warning{display:block!important;color:#a16b22;font-size:9px;margin-top:4px}.p4-pagination{display:flex;align-items:center;justify-content:end;gap:12px;padding:15px 22px;border-top:1px solid #e1e6f0;font-size:10px;color:#7f8ca4;flex-wrap:wrap}.p4-pagination>span:first-child{margin-right:auto}.p4-pagination label{display:flex;align-items:center;gap:8px;margin:0;font-size:10px;font-weight:400}.p4-pagination select{width:60px;padding:6px;margin:0;font-size:10px;border-color:#d6deed}.p4-pagination button{background:none;color:#667caa;padding:1px 6px;font-size:25px;font-weight:400}.p4-action-bar{display:flex;align-items:start;justify-content:space-between;gap:20px;margin:18px 0}.p4-left-actions,.p4-right-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.p4-action-bar .button,.p4-action-bar button{padding:9px 15px;font-size:11px;line-height:1.4}.p4-right-actions>button:not(.light){min-width:85px}.p4-right-actions>button[data-payroll-summary] .p3-icon{width:14px;height:14px}.p4-options{position:relative;font-size:11px}.p4-options summary{list-style:none;padding:9px 13px;border:1px solid #cdd7eb;color:#4562a4;border-radius:6px;cursor:pointer;background:#fff;line-height:1.4;font-weight:600}.p4-options summary>span{margin-left:7px}.p4-options>div{position:absolute;top:calc(100% + 6px);left:0;min-width:230px;max-width:290px;background:white;border:1px solid #d5dfef;border-radius:7px;box-shadow:0 5px 20px #18365c18;padding:7px;z-index:15}.p4-options a{display:block;padding:9px 10px;font-size:11px;color:#3b5797}.p4-options a:hover{background:#f0f4fc}.p4-options p{font-size:10px;color:#8e98ad;padding:7px 10px;margin:0;line-height:1.7}.p4-history{margin-top:40px}.p4-history .p3-widget-title{margin-bottom:0;border:0;padding-bottom:0}.p4-history .p3-widget-title h2{font-size:18px;letter-spacing:-.3px;margin:0}.p4-history .table-wrap{margin-top:18px}.p4-history th{font-size:10px}.p4-history td{font-size:11px}.p4-details-link{background:none;color:#3155a2;font-size:10px;padding:0;font-weight:650;text-decoration:underline}.p4-summary-dialog{width:min(880px,calc(100% - 36px));max-width:880px;padding:29px 31px;border-radius:15px}.p4-summary-dialog .p3-dialog-head{margin-bottom:30px}.p4-summary-dialog .p3-dialog-head h2{font-size:23px}.p4-summary-meta{border-bottom:1px solid #dce3ef;padding-bottom:25px;margin-bottom:25px}.p4-summary-required{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.p4-summary-required>strong:first-child{font-size:13px;font-weight:650}.p4-summary-required small{font-size:10px;color:#8b97ad;font-weight:400}.p4-summary-required>strong:last-child{font-size:25px;letter-spacing:-.6px;color:#293a60}.p4-summary-meta dl{margin:0}.p4-summary-meta dl>div{display:flex;justify-content:space-between;gap:25px;margin-top:8px;font-size:12px;color:#6c7991}.p4-summary-meta dd{margin:0;text-align:right;color:#455471}.p4-summary-body{display:grid;grid-template-columns:minmax(210px,1fr) minmax(0,1.7fr);align-items:center;gap:35px}.p4-summary-donut{width:225px;height:225px;margin:15px auto}.p4-summary-donut:before{inset:28px}.p4-summary-donut strong{font-size:21px}.p4-summary-donut small{display:block;color:#8d9ab1;font-size:9px;margin-top:3px}.p4-summary-body>.caption,.p4-summary-body>div>.caption{font-size:10px;text-align:center;line-height:1.8;margin:20px auto 0;max-width:220px}.p4-summary-breakdown>section{margin-bottom:27px}.p4-summary-breakdown>section:last-child{margin-bottom:0}.p4-summary-section-title{display:flex;align-items:center;gap:10px}.p4-summary-section-title>.p3-dot{width:10px;height:10px}.p4-summary-section-title h3{font-size:15px;font-weight:650;flex:1;letter-spacing:-.2px;margin:0}.p4-summary-section-title h3 small{font-size:9px;font-weight:400;color:#9aa3b5}.p4-summary-section-title>strong{font-size:19px;color:#34476e}.p4-summary-breakdown dl{margin:13px 0 0 20px}.p4-summary-breakdown dl>div{display:flex;justify-content:space-between;gap:15px;margin:10px 0;font-size:12px;color:#75819a}.p4-summary-breakdown dd{text-align:right;white-space:nowrap;margin:0;color:#4e5f80;font-variant-numeric:tabular-nums}.p4-summary-breakdown dt>small{font-size:9px;color:#9aa6bb;margin-left:4px}.p4-allocated{padding-top:9px;border-top:1px dashed #e2e7ef;color:#4a6496!important}.p4-summary-notice{font-size:10px;line-height:1.8;color:#8b95aa;margin:22px 0 0;padding:13px 15px;background:#f4f6fb;border-radius:6px}.p4-summary-footer{display:flex;justify-content:space-between;align-items:start;gap:20px;border-top:1px solid #e2e7f0;margin-top:23px;padding-top:20px}.p4-summary-footer>div{display:flex;gap:9px}.p4-summary-footer button{font-size:11px;padding:10px 18px}.p4-summary-footer .p4-options>div{top:auto;bottom:calc(100% + 7px)}.p4-home-details{background:none!important;color:#3654a5!important;border:0;border-top:1px solid #e0e6f0;border-radius:0!important;width:100%;padding:16px 0 0}.p4-resume-link{display:inline-block;margin-top:12px;font-size:11px;font-weight:650;color:#3654a5}.p4-payroll-sheet+.p4-action-bar~.caption{font-size:10px;line-height:1.7}.p4-payroll-sheet .empty{font-size:12px}@media(max-width:1100px){.p4-payroll-setup{grid-template-columns:1fr 1fr;gap:16px}.p4-payroll-setup>button{grid-column:1/-1}.p4-action-bar{flex-direction:column;align-items:stretch}.p4-right-actions{justify-content:end}.p4-summary-dialog{padding:26px}.p4-summary-body{gap:20px;grid-template-columns:minmax(180px,1fr) minmax(0,1.6fr)}.p4-summary-donut{width:190px;height:190px}.p4-summary-donut strong{font-size:18px}}@media(max-width:650px){.p4-workflow{font-size:10px;gap:8px;flex-wrap:wrap}.p4-workflow>i{width:15px}.p4-workflow>.p3-badge{font-size:8px}.p4-step{gap:6px}.p4-step>span{width:22px;height:22px;font-size:9px}.p4-payroll-setup{padding:17px;gap:14px}.p4-payroll-setup input,.p4-payroll-setup select{font-size:11px}.p4-sheet-toolbar{padding:18px;align-items:start;flex-direction:column;gap:15px}.p4-sheet-search{width:100%}.p4-payroll-table th,.p4-payroll-table td{padding:15px}.p4-employee-cell{min-width:150px}.p4-action-bar .button,.p4-action-bar button{font-size:10px;padding:9px 12px}.p4-right-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.p4-left-actions{justify-content:space-between}.p4-pagination{padding:13px;gap:8px}.p4-summary-dialog{padding:23px 20px}.p4-summary-dialog .p3-dialog-head{margin-bottom:25px}.p4-summary-dialog .p3-dialog-head h2{font-size:21px}.p4-summary-required{align-items:start}.p4-summary-required>strong:last-child{font-size:21px}.p4-summary-required>strong:first-child{font-size:12px}.p4-summary-required small{display:block;font-size:9px}.p4-summary-meta dl>div{font-size:11px}.p4-summary-body{grid-template-columns:1fr;gap:25px}.p4-summary-donut{width:190px;height:190px;margin:0 auto}.p4-summary-body>div>.caption{max-width:260px;margin-top:13px}.p4-summary-section-title h3{font-size:14px}.p4-summary-section-title>strong{font-size:17px}.p4-summary-breakdown dl>div{font-size:11px}.p4-summary-footer{flex-direction:column;gap:16px}.p4-summary-footer>div{align-self:end}.p4-summary-notice{font-size:9px}.p4-history .p3-widget-title{gap:10px}.p4-history .p3-widget-title h2{font-size:17px}}@media print{.p4-workflow,.p4-action-bar,.p4-payroll-setup,.p4-pagination,.p4-sheet-search,.p4-row-actions{display:none!important}.p4-payroll-table{white-space:normal!important}.p4-payroll-table th,.p4-payroll-table td{padding:8px;font-size:9px}.p4-payroll-sheet{border:0}}

/* v3.3: payroll-only process screens */
.p5-helpbar{display:flex;justify-content:flex-end;gap:10px;margin:14px 0}.p5-filters{display:flex;gap:24px;padding:16px 22px;background:#f4f6fb;border-bottom:1px solid #dce2ee}.p5-filters label{display:flex;align-items:center;gap:10px}.p5-preview-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:22px 0}.p5-preview-cards article{padding:24px;border:1px solid #dce2ee;border-radius:12px;background:#fff}.p5-preview-cards strong{font-size:28px;color:#133dcc}.p5-preview-cards h3{font-size:17px}.p5-preview-cards p{font-size:14px;line-height:1.6}.p5-dept{display:block;color:#67748c;margin-top:5px}.p5-saved-summary{padding:24px;background:white;border:1px solid #dce2ee;border-radius:14px;margin:24px 0}[data-payroll-preview]{padding:24px;background:#fff;border:1px solid #dce2ee;border-radius:14px}#p5-guide,#p5-help,#p5-confirm,#p5-issues{max-width:760px;padding:30px}#p5-guide p,#p5-help p,#p5-confirm p,#p5-issues p{line-height:1.7}#p5-issues li{padding:12px;background:#fff3d8;margin:8px 0;border-radius:8px}#p5-guide .p4-summary-footer{align-items:center}.p4-workflow{flex-wrap:wrap}[hidden]{display:none!important}@media(max-width:800px){.p5-preview-cards{grid-template-columns:1fr}.p5-filters{flex-wrap:wrap}.p4-workflow{font-size:12px}.p4-workflow i{max-width:25px}}

/* v3.4: saved summary matching the approved reference */
.p6-summary{max-width:1100px;margin:24px auto 32px}.p6-summary-card,.p6-ledger{border:1px solid #d5dce8;border-radius:12px;background:#fff;padding:26px 30px}.p6-summary-card header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #dce2ee;padding-bottom:18px;margin-bottom:25px}.p6-summary-card h2{font-size:23px;margin:0}.p6-summary h3{font-size:16px;margin:0 0 8px}.p6-summary-columns{display:grid;grid-template-columns:1.35fr 1fr;gap:65px;align-items:center}.p6-cash{font-size:36px;line-height:1.25;color:#1743cb;display:block}.p6-note{max-width:470px;color:#616b7d;font-size:14px;line-height:1.55;margin:8px 0 24px}.p6-summary-columns dl{margin:0}.p6-summary-columns dl div{display:flex;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid #dce2ee;font-size:14px}.p6-summary-columns dt{color:#667185}.p6-summary-columns dd{margin:0}.p6-reminder{margin:23px 0 0;font-size:14px;color:#616b7d}.p6-inline{background:none!important;border:0!important;padding:0!important;color:#1743cb!important;text-decoration:underline;cursor:pointer}.p6-ledger{display:flex;justify-content:space-between;align-items:flex-start;gap:40px;margin-top:30px}.p6-ledger p{max-width:650px;line-height:1.6;color:#616b7d;font-size:14px;margin-bottom:0}.p6-ledger button{white-space:nowrap}.p6-bottom{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:28px}.p6-summary dialog{max-width:650px;padding:28px}.p6-summary dialog p{line-height:1.6}@media(max-width:750px){.p6-summary-columns{grid-template-columns:1fr;gap:15px}.p6-ledger{flex-direction:column;gap:18px}.p6-summary-card,.p6-ledger{padding:20px}.p6-cash{font-size:30px}}
