:is(#hr-productivity-root,#huddle-productivity-root){display:grid;gap:18px}:is(#hr-productivity-root,#huddle-productivity-root) .hr-panel{padding:20px;background:rgba(255,255,255,.96);border:1px solid #d8c26b;border-radius:14px;color:#171717}:is(#hr-productivity-root,#huddle-productivity-root) h2{margin:0 0 12px;font-size:21px}:is(#hr-productivity-root,#huddle-productivity-root) .hr-controls{display:flex;gap:12px;align-items:end;flex-wrap:wrap}:is(#hr-productivity-root,#huddle-productivity-root) label{display:grid;gap:5px;font-weight:700;font-size:13px}:is(#hr-productivity-root,#huddle-productivity-root) input,:is(#hr-productivity-root,#huddle-productivity-root) select{padding:9px;border:1px solid #b8b8b8;border-radius:5px;background:#fff;color:#171717;min-height:38px}:is(#hr-productivity-root,#huddle-productivity-root) .hr-note{font-size:13px;line-height:1.6;margin:10px 0}:is(#hr-productivity-root,#huddle-productivity-root) .hr-status{font-weight:700;line-height:1.6}:is(#hr-productivity-root,#huddle-productivity-root) .hr-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}:is(#hr-productivity-root,#huddle-productivity-root) .hr-kpi{background:#fff9df;border:1px solid #d7c575;padding:16px;border-radius:10px}:is(#hr-productivity-root,#huddle-productivity-root) .hr-kpi strong{display:block;font-size:25px;margin:9px 0}:is(#hr-productivity-root,#huddle-productivity-root) .hr-kpi span{font-size:13px;font-weight:700}:is(#hr-productivity-root,#huddle-productivity-root) .hr-table{overflow:auto;margin:12px 0}:is(#hr-productivity-root,#huddle-productivity-root) table{width:100%;border-collapse:collapse;font-size:13px}:is(#hr-productivity-root,#huddle-productivity-root) th{background:#fff2b5;text-align:left;padding:10px;font-weight:800}:is(#hr-productivity-root,#huddle-productivity-root) td{padding:10px;border-bottom:1px solid #dedede;vertical-align:top}:is(#hr-productivity-root,#huddle-productivity-root) .hr-entry-table{min-width:1250px}:is(#hr-productivity-root,#huddle-productivity-root) .hr-entry-table input{width:100%;min-width:80px}:is(#hr-productivity-root,#huddle-productivity-root) .hr-entry-table .hr-name{min-width:160px}:is(#hr-productivity-root,#huddle-productivity-root) .hr-entry-table .hr-unit{min-width:150px}:is(#hr-productivity-root,#huddle-productivity-root) .hr-entry-table td{padding:7px}:is(#hr-productivity-root,#huddle-productivity-root) details>summary{cursor:pointer;font-weight:800;padding:12px;background:#fff9e7;border:1px solid #dfd3a0;border-radius:7px}:is(#hr-productivity-root,#huddle-productivity-root) details{margin:10px 0}:is(#hr-productivity-root,#huddle-productivity-root) .hr-warning{padding:12px;background:#fff1d3;border:1px solid #af7900;border-radius:7px;font-weight:700}:is(#hr-productivity-root,#huddle-productivity-root) .hr-entry-actions{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-top:15px}:is(#hr-productivity-root,#huddle-productivity-root) .hr-entry-actions label{flex:1;min-width:220px}:is(#hr-productivity-root,#huddle-productivity-root) .hr-save{background:#f5c900;color:#111;font-weight:800}:is(#hr-productivity-root,#huddle-productivity-root) [data-hr-remove]{color:#8c1010}:is(#hr-productivity-root,#huddle-productivity-root) .hr-number{text-align:right;white-space:nowrap}:is(#hr-productivity-root,#huddle-productivity-root) .hr-history{overflow-wrap:anywhere}:is(#hr-productivity-root,#huddle-productivity-root) button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:1000px){:is(#hr-productivity-root,#huddle-productivity-root) .hr-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:550px){:is(#hr-productivity-root,#huddle-productivity-root) .hr-kpis{grid-template-columns:1fr}:is(#hr-productivity-root,#huddle-productivity-root) .hr-panel{padding:12px}}

/* Manual notes belong to the selected day, outside the employee table. */
#hr-invoice-exceptions{overflow-wrap:anywhere}
#hr-invoice-exception-content>label{display:block;max-width:680px;font-weight:700}
#hr-invoice-exception-content textarea{display:block;box-sizing:border-box;width:100%;min-height:90px;margin:8px 0 12px;padding:10px;font:inherit;border:1px solid #c4b88b;border-radius:6px;background:#fff}
#hr-exception-history section{border-top:1px solid #dfd3a0;padding:12px 0}
/* Grid children must shrink so wide wage tables scroll inside their panel. */
:is(#hr-productivity-root,#huddle-productivity-root) .hr-closed-control{display:flex;align-items:center;gap:8px;margin:12px 0}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-closed-control input{width:18px;min-height:18px;margin:0;padding:0}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-breakdown{grid-template-columns:repeat(2,minmax(0,1fr))}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-breakdown .hr-kpi{min-width:0}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-breakdown dl{display:flex;flex-wrap:wrap;gap:12px 32px;margin:12px 0 0}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-breakdown dt{font-size:13px;font-weight:700}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-breakdown dd{margin:5px 0 0;font-size:20px;font-weight:800}
@media(max-width:550px){:is(#hr-productivity-root,#huddle-productivity-root) .hr-breakdown{grid-template-columns:1fr}}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-panel{min-width:0;max-width:100%}:is(#hr-productivity-root,#huddle-productivity-root) .hr-table{min-width:0;max-width:100%}:is(#hr-productivity-root,#huddle-productivity-root) [hidden]{display:none}

/* One aligned control per cell; headings appear only once above employees. */
:is(#hr-productivity-root,#huddle-productivity-root) .hr-entry-table{table-layout:fixed;width:1800px;min-width:1800px}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-field-table{width:2260px;min-width:2260px}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-entry-table th{height:48px;vertical-align:middle;text-align:left;font-size:12px;line-height:1.3;padding:8px;white-space:normal}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-entry-table td{padding:8px;vertical-align:top;white-space:normal}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-entry-table th:first-child{width:190px}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-field-table th:nth-child(2){width:185px}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-field-table th:nth-child(3){width:175px}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-field-table th:nth-child(4){width:90px}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-field-table th:nth-child(5){width:215px}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-entry-table input,:is(#hr-productivity-root,#huddle-productivity-root) .hr-entry-table select{box-sizing:border-box;display:block;width:100%;min-width:0!important;max-width:100%;height:38px;min-height:38px;margin:0;padding:7px 9px;font-size:13px;font-weight:500;border-radius:5px}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-entry-table input[readonly]{background:#f3f3ef;color:#333}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-entry-table tbody tr:nth-child(even){background:#faf9f3}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-entry-table th:nth-last-child(2){width:175px}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-entry-table th:last-child{width:115px}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-entry-table [data-hr-calculated]{display:block;line-height:20px;font-size:13px;text-align:left}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-entry-table .hr-pay-details{margin:4px 0 0}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-entry-table .hr-pay-details>summary{font-size:11px;padding:4px 6px;white-space:nowrap}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-entry-table button{min-height:32px;padding:6px 8px;font-size:11px;margin:0}
:is(#hr-productivity-root,#huddle-productivity-root) [data-hr-difference]{max-width:240px;font-size:12px;margin:6px 0}

/* Spreadsheet-style viewport keeps the horizontal bar accessible at every row. */
:is(#hr-productivity-root,#huddle-productivity-root) .hr-payroll-scroll{max-height:65vh;overflow:auto;position:relative;scrollbar-gutter:stable;border:1px solid #ded6b7;border-radius:6px;overscroll-behavior-x:contain;overscroll-behavior-y:auto}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-payroll-scroll thead th{position:sticky;top:0;z-index:2;background:#fff2b5;box-shadow:0 1px 0 #d7c575}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-payroll-scroll::-webkit-scrollbar{width:14px;height:14px}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-payroll-scroll::-webkit-scrollbar-track{background:#eee9d8}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-payroll-scroll::-webkit-scrollbar-thumb{background:#80734a;border:3px solid #eee9d8;border-radius:10px}

/* Daily entry keeps wage inputs visible; setup remains editable on demand. */
:is(#hr-productivity-root,#huddle-productivity-root) .hr-entry-tools{align-items:end}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-entry-tools input[type=checkbox]{width:auto;min-height:0;display:inline-block}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-quick-entry .hr-field-table>:is(thead,tbody)>tr>:is(th,td):is(:nth-child(2),:nth-child(3),:nth-child(4),:nth-child(5),:nth-child(6),:nth-child(8)),
:is(#hr-productivity-root,#huddle-productivity-root) .hr-quick-entry .hr-office-table>:is(thead,tbody)>tr>:is(th,td):is(:nth-child(2),:nth-child(4)){display:none}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-quick-entry .hr-entry-table{min-width:1100px;table-layout:auto}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-quick-entry .hr-entry-table th{width:auto}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-quick-entry .hr-entry-table th:first-child{min-width:190px}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-quick-entry tr[hidden]{display:none}

:is(#hr-productivity-root,#huddle-productivity-root) .hr-workbook-toggle{flex-direction:row;align-items:center;gap:8px;max-width:310px}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-workbook-toggle input[type=checkbox]{width:18px!important;min-width:18px!important;height:18px;min-height:18px;margin:0;flex:none}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;max-width:740px;margin:16px 0}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-calendar-weekday{text-align:center;font-weight:700;font-size:12px;padding:6px 0}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-calendar-spacer[hidden]{display:none}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-calendar-day{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:72px;padding:8px 2px;border:1px solid #c9c1a7;border-radius:8px;background:#fffdf6;color:#27281f;cursor:pointer}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-calendar-day span{font-size:11px}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-calendar-day strong{font-size:17px}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-calendar-day[aria-pressed=true]{background:#f5cc45;border:2px solid #352d14}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-calendar-day:disabled{cursor:default;opacity:.7;background:#eeece4}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-calendar-day.is-closed{background:#dfeee0;color:#20482d;opacity:1}
@media(max-width:480px){:is(#hr-productivity-root,#huddle-productivity-root) .hr-calendar{gap:3px}:is(#hr-productivity-root,#huddle-productivity-root) .hr-calendar-day{min-height:65px}:is(#hr-productivity-root,#huddle-productivity-root) .hr-calendar-day span{font-size:9px}}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-calendar-day small{font-size:10px}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-calendar-day[aria-pressed=true]{background:#dfeee0;border:2px solid #397348}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-calendar-day:focus-visible{outline:3px solid #b78b00;outline-offset:2px}

/* Payroll columns fit their headings and entered values instead of stretching across the panel. */
:is(#hr-productivity-root,#huddle-productivity-root) .hr-payroll-scroll table,
:is(#hr-productivity-root,#huddle-productivity-root) .hr-quick-entry .hr-payroll-scroll .hr-entry-table{width:max-content;min-width:0;table-layout:auto}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-payroll-scroll th,
:is(#hr-productivity-root,#huddle-productivity-root) .hr-payroll-scroll td{width:auto!important;min-width:0!important;white-space:nowrap;padding:6px 8px}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-payroll-scroll input:not([type=checkbox]),
:is(#hr-productivity-root,#huddle-productivity-root) .hr-payroll-scroll select{field-sizing:content;width:100%;min-width:4ch!important;max-width:100%;box-sizing:border-box}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-payroll-scroll input[type=number]{min-width:6ch!important}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-payroll-scroll input[type=checkbox]{width:18px;min-width:18px;min-height:18px;height:18px;padding:0}


:is(#hr-productivity-root,#huddle-productivity-root) .hr-salary-header-action{float:right;margin:-6px 0 -6px 12px}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-office-heading::after,:is(#hr-productivity-root,#huddle-productivity-root) .hr-field-heading::after{content:"";display:block;clear:both}
@media(max-width:550px){:is(#hr-productivity-root,#huddle-productivity-root) .hr-salary-header-action{float:none;display:block;margin:8px 0 0}}

:is(#hr-productivity-root,#huddle-productivity-root) .hr-pay-details p{white-space:normal;overflow-wrap:anywhere}


:is(#hr-productivity-root,#huddle-productivity-root) .hr-entry-tools{align-items:end;margin-bottom:14px}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-entry-tools .hr-setup-toggle{display:flex;align-items:center;gap:8px;min-height:38px;white-space:nowrap}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-setup-toggle input{min-height:18px;width:18px;height:18px;margin:0}

:is(#hr-productivity-root,#huddle-productivity-root) .hr-kpi.hr-score-card{position:relative;padding-right:104px}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-score-face{position:absolute;right:16px;top:50%;transform:translateY(-50%);width:72px;height:72px}

/* Keep breakdown faces centered in the free half of each card. */
:is(#hr-productivity-root,#huddle-productivity-root) .hr-breakdown .hr-score-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(112px,1fr);column-gap:20px;padding-right:16px}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-breakdown .hr-score-card>span,:is(#hr-productivity-root,#huddle-productivity-root) .hr-breakdown .hr-score-card>strong,:is(#hr-productivity-root,#huddle-productivity-root) .hr-breakdown .hr-score-card>dl{grid-column:1}
:is(#hr-productivity-root,#huddle-productivity-root) .hr-breakdown .hr-score-face{position:static;grid-column:2;grid-row:1 / 4;place-self:center;transform:none;width:112px;height:112px}
@media(min-width:551px) and (max-width:1000px){:is(#hr-productivity-root,#huddle-productivity-root) .hr-breakdown{grid-template-columns:1fr}}
@media(max-width:380px){:is(#hr-productivity-root,#huddle-productivity-root) .hr-breakdown .hr-score-card{grid-template-columns:minmax(0,1fr) 88px;column-gap:10px}:is(#hr-productivity-root,#huddle-productivity-root) .hr-breakdown .hr-score-face{width:88px;height:88px}}

#huddle-productivity-results{display:grid;gap:18px}

#hr-productivity-root .hr-pay-details{max-width:560px;white-space:normal}
#hr-productivity-root .hr-commission-table{overflow:auto;max-width:100%;margin:10px 0}
#hr-productivity-root .hr-commission-table table{width:100%;min-width:390px}
#hr-productivity-root .hr-commission-table th,#hr-productivity-root .hr-commission-table td{white-space:normal;font-size:12px}
#hr-productivity-root .hr-commission-table td.hr-number{white-space:nowrap}
#hr-productivity-root .hr-commission-totals>div{display:flex;justify-content:space-between;gap:20px;margin:6px 0;font-size:12px}
#hr-productivity-root .hr-commission-total{border-top:1px solid #d8c26b;padding-top:8px}
#hr-productivity-root .hr-commission-table :is(th,td){min-width:0!important;width:auto!important}
