.payroll-profiles{max-width:100%;min-width:0}.profile-tabs,.profile-toolbar,.profile-batch{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;margin-bottom:.65rem}.profile-tabs a,.profile-tabs button{padding:.45rem .8rem}.profile-tabs [aria-current=page]{background:var(--accent,#316c65);color:#fff}.profile-toolbar label,.profile-batch label,[data-rate-form] label{display:flex;align-items:center;gap:.35rem}.profile-toolbar input,.profile-toolbar select{max-width:12rem}.profile-table-scroll{overflow:auto;max-width:100%;border:1px solid var(--border,#d8e0dc);border-radius:8px}.profile-table-scroll table{width:100%;border-collapse:collapse;font-size:.84rem}.profile-table-scroll th{white-space:nowrap;padding:.55rem;position:sticky;top:0;background:var(--surface,#f3f6f3)}.profile-table-scroll td{padding:.4rem;vertical-align:top;border-top:1px solid var(--border,#d8e0dc);min-width:100px;max-width:230px}.profile-table-scroll td:first-child{min-width:150px}.profile-table-scroll input:not([type=checkbox]),.profile-table-scroll select{width:100%;min-width:100px;box-sizing:border-box;display:block;margin-bottom:.3rem;padding:.3rem}.profile-table-scroll small,.profile-table-scroll [data-effective]{display:block;font-size:.75rem}.profile-table-scroll details{margin-top:.45rem}.profile-table-scroll details p{font-size:.77rem;margin:.45rem 0}.profile-table-scroll tr.changed{background:var(--notice-bg,#fff9e9)}.profile-current{line-height:1.5}.payroll-profiles .error{color:#a02f25;margin:.5rem 0}[data-rate-form]{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1rem;align-items:end}.payroll-profiles .muted{font-size:.8rem;line-height:1.5}@media(max-width:600px){.profile-toolbar label{flex:1 1 45%;font-size:.8rem}.profile-toolbar input,.profile-toolbar select{width:100%;min-width:0}.profile-table-scroll{max-height:72vh}.profile-tabs{gap:.25rem}.profile-tabs button,.profile-tabs a{padding:.4rem .55rem;font-size:.85rem}.profile-batch{font-size:.8rem}.profile-current{max-width:170px!important}}

.profile-add{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0!important;margin-left:3px;font-size:19px;line-height:1}.payroll-profiles dialog{max-width:calc(100vw - 32px);border:1px solid var(--line,#ccc);border-radius:8px;padding:18px}.payroll-profiles dialog label{display:grid;gap:6px}.payroll-profiles dialog form>div{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}

.profile-table-scroll th:first-child,.profile-table-scroll td:first-child{position:sticky;left:0;background:var(--surface,#f3f6f3);z-index:1}.profile-table-scroll th:first-child{z-index:3}.profile-table-scroll td{vertical-align:middle}.profile-table-scroll td input:not([type=checkbox]),.profile-table-scroll td select{margin-bottom:0}.profile-current{max-width:180px}.profile-table-scroll td:first-child small{white-space:nowrap}

.profile-main-table tr[data-system=HQ]{--profile-row-bg:#f3f7f0;background:var(--profile-row-bg)}.profile-main-table tr[data-system=NOODLE]{--profile-row-bg:#fcf8ed;background:var(--profile-row-bg)}.profile-main-table tr[data-person-first=true]>td{border-top:2px solid #c7d0c4}.profile-main-table td:first-child{background:var(--profile-row-bg,#f4f6f0)}.profile-main-table tr.changed{--profile-row-bg:#fff2cc;background:var(--profile-row-bg)}.profile-main-table tr.changed>td:first-child{box-shadow:inset 3px 0 #ac8439}.profile-main-table th{background:#edf1e9;color:#263a32}.profile-pay-table th:nth-child(n+4):nth-child(-n+5),.profile-tips-table th:nth-child(n+3):nth-child(-n+4){background:#f4eee2}.profile-pay-table th:nth-child(n+6):nth-child(-n+8),.profile-tips-table th:nth-child(n+5):nth-child(-n+6){background:#e7f1ee}.profile-pay-table td:nth-child(n+6):nth-child(-n+8) input,.profile-tips-table td:nth-child(n+5):nth-child(-n+6) input{font-variant-numeric:tabular-nums;color:#214e45;background:#f5faf8}.profile-main-table [data-effective]{background:#fffaf0}.profile-system{display:inline-block;background:#e5eee2;padding:3px 6px;border-radius:3px}.profile-main-table [data-system=NOODLE] .profile-system{background:#f0e7cf}.profile-main-table th:first-child{background:#e4ebe0}.profile-main-table .profile-history button{padding:4px 8px;font-size:12px}
.profile-main-table thead th{background:#edf1e9!important}.profile-pay-table thead th:nth-child(n+4):nth-child(-n+5),.profile-tips-table thead th:nth-child(n+3):nth-child(-n+4){background:#f4eee2!important}.profile-pay-table thead th:nth-child(n+6):nth-child(-n+8),.profile-tips-table thead th:nth-child(n+5):nth-child(-n+6){background:#e7f1ee!important}.profile-main-table thead th:nth-last-child(2){background:#f6edda!important}

.profile-employee-code{display:inline;white-space:nowrap;font-size:11px;font-weight:400;color:var(--muted,#686863)}
/* One field per column; identity, configuration and amount groups share payroll colors. */
.profile-main-table{table-layout:auto}.profile-main-table th,.profile-main-table td{white-space:nowrap;line-height:1.3}.profile-main-table td{padding:5px 8px;min-width:78px}.profile-main-table input[type=number]{text-align:right;font-variant-numeric:tabular-nums}.profile-main-table th:nth-child(n+6):nth-child(-n+9){text-align:right}.profile-main-table [data-key],.profile-main-table [data-rate-key]{cursor:pointer}.profile-main-table [data-key]:hover td,.profile-main-table [data-rate-key]:hover td{box-shadow:inset 0 0 0 999px #316c650a}.profile-main-table [data-key]:focus-visible,.profile-main-table [data-rate-key]:focus-visible{outline:2px solid var(--accent,#316c65);outline-offset:-2px}.profile-main-table .profile-history-row td{padding:5px 8px;font-size:.78rem;background:#eef0ed;color:#5b6861;border-top:1px dashed #d2d9d3}.profile-main-table .profile-history-row td:first-child{background:#e7ebe5}.profile-main-table .profile-group th{background:#dfe8df!important;padding:0;text-align:left}.profile-main-table .profile-group button{width:100%;text-align:left;border:0;border-radius:0;background:transparent;padding:8px 10px}.profile-main-table .profile-missing th,.profile-main-table .profile-missing td{background:#fff1da!important;color:#7b4a18}.profile-effective{font-size:.78rem;color:#596b60}.profile-history-indicator{display:inline-block;width:16px;color:#527363}.profile-main-table .num,.profile-standards-table th:nth-last-child(2){text-align:right;font-variant-numeric:tabular-nums}.profile-table-scroll [hidden]{display:none!important}.profile-batch{padding:.6rem;background:#eaf0e9;border:1px solid #d5ded4;border-radius:6px}.profile-table-scroll .profile-pay-table td:first-child{min-width:175px}.profile-standards-table td{max-width:none}.profile-standards-table input{max-width:180px;margin-left:auto}.profile-tips-table th:nth-child(4),.profile-tips-table th:nth-child(5){background:#e7f1ee!important;text-align:right}.profile-tips-table td:nth-child(4){background:#eff7f3;color:#214e45}
.profile-table-scroll input:not([type=checkbox]),.profile-table-scroll select{min-height:32px;height:32px;border-radius:5px;font-size:13px;padding:4px 7px}.profile-main-table .profile-group button{min-height:30px}.profile-standards-table td{padding-top:5px;padding-bottom:5px}@media(max-width:600px){.profile-table-scroll input:not([type=checkbox]),.profile-table-scroll select{min-height:36px;height:36px}.profile-main-table td{padding:4px 6px}}
.profile-unset{display:inline-block;margin-left:.4rem;padding:1px 5px;background:#fff0d7;color:#815019;border-radius:4px;font-size:.82em}

.profile-standards-table td:first-child>[data-grade-name]{display:inline-block;width:calc(100% - 24px);margin-left:0;vertical-align:middle}.profile-standards-table td:first-child>span{display:inline-block;width:16px;vertical-align:middle}
.profile-standards-table td:first-child>[data-grade-name]{width:100%;min-width:150px}.profile-grade-actions{white-space:nowrap}.profile-grade-actions button{font-size:12px;padding:5px 8px;margin-right:4px}.profile-grade-actions [data-save-rate]:not(:disabled){background:var(--accent,#316c65);color:white}.profile-grade-actions [data-delete-grade]{color:#8c352a}.payroll-profiles dialog p{max-width:580px;line-height:1.6}
