/* Shared attendance controls follow the active appearance, including dialogs. */
:is(.workforce-page,.workforce-dialog,.workforce-payroll,.attendance-offline){color:var(--ink);min-width:0;overflow-wrap:anywhere}
.workforce-page [data-workforce-body]>.panel,.attendance-offline{padding:clamp(16px,3vw,26px)}
.workforce-page [data-workforce-body] .panel-heading{padding:0 0 16px;flex-wrap:wrap;align-items:flex-start}
.workforce-page :is(h2,h3,legend),.workforce-dialog :is(h2,h3,legend),.workforce-payroll :is(h2,h3,legend){color:var(--ink)}
:is(.workforce-page,.workforce-dialog,.workforce-payroll,.attendance-offline) :is(p,li){line-height:1.7}
:is(.workforce-page,.workforce-dialog,.workforce-payroll,.attendance-offline) .muted{color:var(--muted)}
:is(.workforce-page,.workforce-dialog,.workforce-payroll) label{color:var(--ink);min-width:0;line-height:1.6}
:is(.workforce-page,.workforce-dialog,.workforce-payroll) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){color:var(--ink);background:var(--white);border-color:var(--muted);min-width:0;max-width:100%;color-scheme:inherit}
:is(.workforce-page,.workforce-dialog,.workforce-payroll) label:has(>input[type=checkbox]){display:flex;align-items:flex-start;gap:12px;cursor:pointer}
:is(.workforce-page,.workforce-dialog,.workforce-payroll) input[type=checkbox]{display:inline-block;width:22px;height:22px;min-height:22px;max-width:22px;flex:0 0 22px;padding:0;margin:2px 0 0;accent-color:var(--green)}
:is(.workforce-page,.workforce-dialog,.workforce-payroll,.attendance-offline) :is(button,input,select,textarea,summary,a,[tabindex]):focus-visible{outline:3px solid var(--muted);outline-offset:3px}
.workforce-tabs,.workforce-actions{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0 20px;min-width:0}
:is(.workforce-page,.workforce-dialog,.attendance-offline) .button{height:auto;min-height:44px;max-width:100%;white-space:normal;line-height:1.5;padding:10px 16px;text-align:center}
.workforce-tabs .button{flex:1 1 150px}
.workforce-tabs .button[aria-pressed=true]{font-weight:700}
.workforce-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,calc(160px * var(--font-scale,1))),1fr));gap:16px;margin:22px 0}
.workforce-summary article{padding:18px;border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);min-width:0}
.workforce-summary article>span,.workforce-summary article>strong{display:block}
.workforce-summary strong{font-size:calc(28px * var(--font-scale,1));line-height:1.3;overflow-wrap:anywhere}
.workforce-scroll{max-width:100%;overflow:auto;margin:20px 0}
.workforce-table{width:100%;min-width:650px;border-collapse:collapse;font-variant-numeric:tabular-nums}
.workforce-table th,.workforce-table td{padding:12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;color:var(--ink)}
.workforce-table small{display:block;color:var(--muted)}
.workforce-table th:first-child{position:sticky;left:0;background:var(--white)}
.workforce-history,.workforce-request{padding:18px 0;border-bottom:1px solid var(--line)}
.workforce-request ul{padding-left:1.5em}
.workforce-shift,.workforce-fieldset{min-width:0;border:1px solid var(--muted);border-radius:var(--radius);padding:18px;margin:16px 0}
.workforce-shift{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,calc(150px * var(--font-scale,1))),1fr));gap:16px}
:is(.workforce-shift,.workforce-fieldset) legend,.workforce-payroll legend{padding:0 8px;font-weight:700;line-height:1.6;max-width:100%;white-space:normal}
.workforce-shift input{max-width:100%}
.workforce-profiles article{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px 0}
.workforce-intro{margin:12px 0 20px;color:var(--muted)}
.workforce-form{display:grid;gap:20px}
.workforce-form>.workforce-fieldset{margin:0}
.workforce-fieldset>.muted{margin:12px 0 0}
.workforce-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,calc(220px * var(--font-scale,1))),1fr));gap:20px}
.workforce-check>span{min-width:0}
.workforce-fieldset .workforce-actions{margin-bottom:0}
.workforce-payroll fieldset,.payroll-profiles details{border:1px solid var(--muted);border-radius:var(--radius);padding:18px;margin:20px 0;min-width:0}
.workforce-payroll label{margin:14px 0}
.workforce-payroll .form-grid>label{margin:0}
.payroll-profiles summary,.attendance-offline summary,.workforce-page summary,.workforce-dialog summary{color:var(--ink);font-weight:700;line-height:1.6;cursor:pointer;padding:8px 0;min-height:44px}
.payroll-profiles details>p,.attendance-offline details>p{margin:14px 0}
.attendance-offline{margin:20px 0}
.attendance-offline .attendance-buttons{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}
.attendance-offline [role=status]{font-weight:600;color:var(--ink)}
.workforce-dialog .form-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,calc(200px * var(--font-scale,1))),1fr))}
.workforce-dialog .modal-footer{flex-wrap:wrap}
@media(max-width:600px){.workforce-tabs .button{flex-basis:100%}.workforce-shift,.workforce-fieldset,.workforce-payroll fieldset,.payroll-profiles details{padding:14px}.workforce-page .page-heading{flex-wrap:wrap}.workforce-summary article{padding:16px}}
@media print{.workforce-table{min-width:0;font-size:10pt}.workforce-scroll{overflow:visible}.workforce-table th:first-child{position:static}.workforce-dialog .invoice-paper,.workforce-dialog .invoice-paper :is(h1,h2,h3,p,th,td){color:#000;background:#fff}.workforce-dialog .invoice-paper .workforce-table th{position:static}}
.showcase-banner{margin:16px 24px;padding:16px 20px;border:1px solid var(--muted);border-radius:var(--radius);background:var(--white);color:var(--ink);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;min-width:0}.showcase-banner p{margin:5px 0 0;color:var(--muted);line-height:1.6}.showcase-banner nav{display:flex;flex-wrap:wrap;gap:10px}.showcase-banner .button{height:auto;min-height:44px;white-space:normal;padding:10px 14px}.showcase-banner [aria-current=true]{font-weight:700}@media(max-width:600px){.showcase-banner{margin:12px;padding:14px}.showcase-banner nav{width:100%}.showcase-banner .button{flex:1 1 45%}}

:is(.workforce-page,.workforce-dialog,.workforce-payroll,.attendance-offline,.showcase-banner) .button.secondary{background:var(--white);color:var(--ink);border-color:var(--muted)}
:is(.workforce-page,.workforce-dialog,.workforce-payroll,.attendance-offline,.showcase-banner) .button.primary{background:var(--green);color:var(--panel-action-text,#fff);border:1px solid var(--green)}
.workforce-page .subtle-tag{color:var(--ink);background:var(--paper);border:1px solid var(--muted)}
.help-search label,.help-section :is(h2,h3),.help-contents h2{color:var(--ink)}
.help-search .muted{color:var(--muted)}

.workforce-page .page-heading :is(.eyebrow,p),.workforce-page .muted,.workforce-page .workforce-summary span,.workforce-page .workforce-history small,.workforce-payroll .muted,.attendance-offline .muted,.help-search .muted,#main:has(.help-layout)>.page-heading :is(.eyebrow,p){color:var(--ink)}

.workforce-payroll :is(th,thead th){color:var(--ink)}

:is(.workforce-page,.workforce-dialog,.workforce-payroll) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){min-height:44px;font:inherit;padding:10px 12px}

/* Preserve complete glyphs and wrapped choices at every personal text size. */
.workforce-policy h2{height:auto;max-height:none;line-height:1.5;white-space:normal;overflow:visible;padding-block:2px}
.workforce-policy-modes{min-width:0;margin:0;padding:0;border:0}
.workforce-policy-modes legend{padding:0;margin-bottom:10px;font:inherit;font-weight:600;line-height:1.6}
.workforce-policy-modes label{display:flex;align-items:flex-start;gap:12px;padding:10px 12px;margin:0 0 8px;border:1px solid var(--muted);border-radius:var(--radius);cursor:pointer}
.workforce-policy-modes label>span{min-width:0;white-space:normal;line-height:1.6}
.workforce-policy-modes input[type=radio]{appearance:auto;display:block;flex:0 0 22px;width:22px;height:22px;min-height:22px;max-width:22px;margin:2px 0 0;padding:0;accent-color:var(--green)}
.workforce-site-name{grid-column:1/-1}
.workforce-site-name textarea{width:100%;height:auto;min-height:calc(3.2em + 22px);line-height:1.6;resize:vertical;white-space:pre-wrap;overflow-wrap:anywhere}
.workforce-policy :is(input:not([type=checkbox]):not([type=radio]),textarea){height:auto;line-height:1.6;min-height:max(44px,calc(1.6em + 22px))}

.workforce-page [data-workforce-body]>.panel{overflow:visible}
.workforce-page [data-workforce-body] :is(h2,h3,p,li,legend){height:auto;max-height:none;white-space:normal;overflow:visible;text-overflow:clip;line-height:1.7}
.workforce-requests>p{margin:14px 0;padding-block:2px}

.workforce-late-alert{flex:1 1 350px;min-width:0;margin:0;padding:12px 16px;border:1px solid var(--muted);border-radius:var(--radius);display:grid;gap:10px;color:var(--ink)}
.workforce-late-alert legend{font:inherit;font-weight:600;padding:0 6px;line-height:1.7;white-space:normal}
.workforce-late-switch{display:flex;align-items:flex-start;gap:12px;margin:0!important}
.workforce-late-switch span{min-width:0;white-space:normal;line-height:1.7}
.workforce-late-alert label{margin:0;white-space:normal}
.workforce-late-alert input[type=number]{height:auto;min-height:max(44px,calc(1.6em + 22px));line-height:1.6;width:100%}
.workforce-late-status{margin:0;font-size:inherit;line-height:1.7;color:var(--ink)}
.workforce-late-alert:disabled{opacity:1}.workforce-late-alert:disabled label,.workforce-late-alert:disabled p{color:var(--ink)}
@media(max-width:700px){.workforce-late-alert{width:100%;flex-basis:100%}}

.workforce-page .workforce-late-alert{grid-template-columns:minmax(0,1fr) minmax(100px,150px);align-items:center}
.workforce-page .workforce-late-alert .workforce-late-switch{flex-direction:row;align-items:center}
.workforce-late-status{grid-column:1/-1}
@media(max-width:700px){.workforce-page .workforce-late-alert{grid-template-columns:1fr}}
