.payroll-sheets{--sheet-green:#57634d;--sheet-line:#e2dfd6;color:#353d35;line-height:1.7;min-width:0}
.payroll-sheets.panel{padding:28px;border:1px solid var(--sheet-line);border-radius:20px;background:#fdfcf9}
.payroll-sheets :is(.sheet-toolbar,.sheet-actions){display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:16px 0}
.payroll-sheets .sheet-toolbar{margin-top:0;padding-bottom:18px;border-bottom:1px solid var(--sheet-line)}
.payroll-sheets label{display:flex;flex-direction:column;gap:8px;font-size:14px;color:#62695e}
.payroll-sheets :is(input:not([type=checkbox]),select,textarea){box-sizing:border-box;max-width:100%;min-height:44px;padding:10px 12px;border:1px solid #d9d9ce;border-radius:10px;background:#fffefa;color:inherit;font:inherit;font-size:15px}
.payroll-sheets textarea{width:100%;min-height:92px;resize:vertical}
.payroll-sheets input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;accent-color:var(--sheet-green);margin-right:8px}
.payroll-sheets button{width:auto;min-height:42px;padding:9px 16px;border:1px solid #cdd0c3;border-radius:10px;background:#fdfcf9;color:var(--sheet-green);font:inherit;font-size:14px;font-weight:600;line-height:1.5;white-space:normal;cursor:pointer}
.payroll-sheets button.primary{background:var(--sheet-green);border-color:var(--sheet-green);color:white}
.payroll-sheets button:disabled{opacity:.45;cursor:not-allowed}
.payroll-sheets :is(button,input,textarea,select):focus-visible{outline:2px solid #b49773;outline-offset:3px}
.payroll-sheets :is(h2,h3){line-height:1.5}.payroll-sheets h2{font-size:21px}.payroll-sheets h3{font-size:17px;margin:22px 0 12px}
.sheet-status{white-space:pre-line}.payroll-sheets .sheet-error{color:#995c51;font-weight:600}
.sheet-results:not(:empty){background:#f1f2e9;padding:16px 20px;border-radius:14px;margin:18px 0}.sheet-results p{margin:6px 0}
.sheet-table-wrap{overflow:auto;max-width:100%;border:1px solid var(--sheet-line);border-radius:14px}
.sheet-table{width:100%;border-collapse:collapse;font-size:14px;text-align:left;white-space:nowrap}
.sheet-table :is(th,td){padding:14px 16px;border-bottom:1px solid var(--sheet-line)}
.sheet-table th{background:#efeee7;color:#62695e;font-size:13px;font-weight:600}.sheet-table tr:last-child td{border-bottom:0}
.sheet-table tbody tr:hover{background:#f5f5ee}.sheet-table td:nth-last-child(4){font-variant-numeric:tabular-nums}
.sheet-changed{background:#f6eee0}.sheet-change-note{font-size:12px;color:#936c3a;white-space:normal;min-width:170px;margin:8px 0 0}
.sheet-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.sheet-board-column{background:#f2f2eb;border-radius:16px;padding:20px;min-width:0}
.sheet-list-card{padding:18px;background:#fffefa;border:1px solid var(--sheet-line);border-radius:14px;margin:14px 0;overflow-wrap:anywhere}
.sheet-list-card small{display:block;color:#787c70}.sheet-list-card p{margin:12px 0}
.sheet-badge{display:inline-block;padding:3px 9px;margin:4px 6px 4px 0;border-radius:7px;background:#edeee7;color:#69725f;font-size:12px}.sheet-badge.is-green{background:#e5ebdd;color:#4d6443}.sheet-badge.is-warm{background:#f3e8d7;color:#936c3a}
.sheet-sign-group{margin-top:26px}.sheet-sign-group>.sheet-list-card{display:inline-block;box-sizing:border-box;width:calc(50% - 12px);margin:6px;vertical-align:top}
.sheet-payout-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,285px),1fr));gap:18px}
.sheet-payout-card{border:1px solid var(--sheet-line);padding:22px;border-radius:16px;background:#f8f7f2}.sheet-payout-card h2{margin:10px 0}.sheet-payout-net{display:block;font-size:32px;color:var(--sheet-green);font-variant-numeric:tabular-nums;margin:16px 0}.sheet-payout-info{white-space:pre-wrap;overflow-wrap:anywhere}
.sheet-dialog{box-sizing:border-box;width:min(960px,calc(100vw - 32px));max-width:960px;max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--sheet-line);border-radius:20px;background:#fdfcf9}
.sheet-dialog::backdrop{background:#29312673}.sheet-dialog .shared-dialog-body{padding:24px;overflow:auto}.sheet-dialog .shared-dialog-header{background:#f4f3ed;border-bottom:1px solid var(--sheet-line)}
.sheet-document-heading{padding:6px 0 20px;border-bottom:1px solid var(--sheet-line);margin-bottom:22px}.sheet-document-heading h2{font-size:28px;margin:8px 0}.sheet-eyebrow{font-size:12px;letter-spacing:.15em;color:#787c70}
.payroll-sheets .payroll-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.payroll-sheets .payroll-breakdown{padding:18px;background:#f4f3ed;border-radius:14px}.payroll-sheets .payroll-row{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:10px 0}.payroll-sheets .payroll-row strong{white-space:nowrap;font-variant-numeric:tabular-nums}.payroll-sheets .payroll-detail{font-size:13px;color:#787c70;white-space:pre-wrap}.payroll-sheets .payroll-net{display:flex;justify-content:space-between;gap:16px;background:#e9eddf;border-radius:14px;padding:20px;margin:12px 0}.payroll-sheets .payroll-net strong{font-size:28px;color:var(--sheet-green)}
.sheet-manual{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.sheet-manual label:last-of-type{grid-column:1/-1}.sheet-manual button{justify-self:start}.sheet-manual small{font-size:12px}
.sheet-receipt,.sheet-history{border-top:1px solid var(--sheet-line);padding-top:12px;margin-top:24px}.sheet-history p{font-size:13px;color:#787c70}.sheet-receipt p{white-space:pre-wrap;overflow-wrap:anywhere}.sheet-receipt>label{margin:18px 0}.payroll-sheets .sheet-sign-consent{flex-direction:row;align-items:flex-start;color:#353d35}.sheet-sign-consent input{margin-top:4px}
.sheet-warnings{color:#936c3a}.sheet-attendance{color:#787c70;font-size:14px}
.payroll-admin-warning{display:inline-block;margin-inline-end:8px;padding:2px 7px;border-radius:6px;background:#ecece8;color:#72766d;font-size:11px;font-weight:500;line-height:1.6;vertical-align:middle}
@media(max-width:640px){.payroll-sheets.panel{padding:18px}.sheet-board,.payroll-sheets .payroll-columns,.sheet-manual{grid-template-columns:1fr}.sheet-sign-group>.sheet-list-card{display:block;width:100%;margin:12px 0}.sheet-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:16px}.sheet-dialog .shared-dialog-body{padding:18px}.payroll-sheets .payroll-net{flex-wrap:wrap}.sheet-toolbar label{width:100%}.sheet-toolbar input{width:100%}}

.payslip-signature-pad{display:block;box-sizing:border-box;width:100%;height:220px;min-height:200px;background:#fff;border:1px solid #c9cbbf;border-radius:10px;touch-action:none;cursor:crosshair;user-select:none}
.sheet-signature-entry[hidden]{display:none}.sheet-signature-entry{margin:16px 0}.sheet-signature-entry>button{margin-top:10px}
.sheet-saved-signature{margin:18px 0}.sheet-saved-signature img{display:block;max-width:100%;width:600px;height:auto;border:1px solid #e2dfd6;border-radius:10px;background:#fff}.sheet-saved-signature small{display:block;overflow-wrap:anywhere;color:#787c70}
.sheet-column-picker{margin:16px 0;border:1px solid #e2dfd6;border-radius:12px;padding:12px 16px;background:#f8f7f2}
.sheet-column-picker summary{cursor:pointer;color:#57634d;font-size:14px;font-weight:600}
.sheet-column-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin-top:18px;max-height:350px;overflow:auto;padding:6px}
.payroll-sheets .sheet-column-options label{display:flex;flex-direction:row;align-items:center;gap:6px;font-size:13px}
.sheet-grid-hint{font-size:13px;color:#787c70}.sheet-grid-scroll{max-height:65dvh;overscroll-behavior:contain}
.sheet-grid-table th{position:sticky;top:0;z-index:2;white-space:nowrap}
.sheet-grid-table :is(th,td):first-child{position:sticky;left:0;z-index:1;min-width:200px;max-width:250px;background:#fdfcf9;box-shadow:3px 0 7px #353d3510}
.sheet-grid-table th:first-child{z-index:3;background:#efeee7}
.sheet-grid-table td:not(:first-child){min-width:105px;max-width:320px}
.sheet-grid-table td.sheet-grid-number{text-align:right;font-variant-numeric:tabular-nums}
.sheet-grid-table .sheet-changed td:first-child{background:#f6eee0}
.sheet-grid-table .sheet-change-note{white-space:normal}.sheet-grid-table tbody tr:hover td:first-child{background:#f5f5ee}
.sheet-related{border-top:1px solid #e2dfd6;margin-top:24px;padding-top:12px}
.payroll-date-banner:not(:empty){padding:12px 16px;background:#eef0e6;color:#57634d;border:1px solid #dfe3d5;border-radius:12px;font-size:15px;line-height:1.8}
.payroll-pay-date{color:#57634d;font-weight:600}
.payroll-date-setting{margin-top:28px;padding:20px;border:1px solid #e2dfd6;border-radius:14px;background:#f8f7f2}
.payroll-date-setting h3{margin-top:0}.payroll-date-setting label{display:flex;flex-direction:column;gap:8px;font-size:14px}
.payroll-date-setting [role=status]{white-space:pre-wrap;color:#62695e}.payroll-date-setting .toolbar-row{margin:16px 0}
.sheet-legacy-gift{grid-column:1/-1;color:#936c3a;background:#f6eee0;padding:12px;border-radius:10px}
.sheet-related-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}
.payroll-sheets .sheet-related-tabs button[aria-selected=true]{background:#57634d;border-color:#57634d;color:white}
@media(max-width:640px){.sheet-column-options{grid-template-columns:1fr}.sheet-grid-table :is(th,td):first-child{min-width:155px;max-width:190px}.sheet-related-tabs>button{flex:1 1 100%}.sheet-grid-actions>button{width:100%}}
