.hr-shell{display:grid;gap:16px;width:100%}.hr-form,.hr-shell .hr-note{max-width:var(--measure)}
.hr-ico{display:inline-block;flex:none;width:1.25em;height:1.25em;background:currentColor;-webkit-mask:var(--i) center/contain no-repeat;mask:var(--i) center/contain no-repeat;vertical-align:-.22em}
.hr-ico-arrow-left{--i:url('/icons/arrow-left.svg')}.hr-ico-plus{--i:url('/icons/plus.svg')}.hr-ico-paperclip{--i:url('/icons/paperclip.svg')}.hr-ico-user{--i:url('/icons/user.svg')}.hr-ico-calendar{--i:url('/icons/calendar.svg')}.hr-ico-clock{--i:url('/icons/clock.svg')}.hr-ico-receipt{--i:url('/icons/receipt.svg')}.hr-ico-money{--i:url('/icons/money.svg')}.hr-ico-download{--i:url('/icons/download.svg')}.hr-ico-check{--i:url('/icons/check.svg')}.hr-ico-gear{--i:url('/icons/gear.svg')}.hr-ico-beach{--i:url('/icons/beach.svg')}

.hr-card{display:grid;gap:10px;min-width:0;justify-content:stretch;padding:20px 22px}
.hr-card h3{margin:0 0 2px;font-size:var(--text-17);font-weight:900;display:flex;align-items:center;gap:8px}
.hr-card small,.hr-hint{color:var(--muted);font-size:var(--text-14)}
.hr-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.hr-head h2{margin:0}
.hr-back{display:inline-flex;align-items:center;gap:6px;min-height:42px;border:2px solid var(--line);border-radius:var(--radius-control);padding:6px 12px;background:var(--paper);color:var(--ink);font-weight:800;text-decoration:none;box-shadow:0 3px 0 var(--line)}
.hr-big{font:900 var(--text-30)/1.15 Nunito,sans-serif;color:var(--ink);overflow-wrap:anywhere}
.hr-big span{font-size:var(--text-17);color:var(--muted)}
.hr-big.hr-mid{font-size:var(--text-20)}
.hr-pay-card{background:var(--sky-soft);gap:6px}
.hr-pay-card a{justify-self:start;margin-top:6px;text-decoration:none}
.hr-hero{text-align:center;justify-items:center}
.hr-wide{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;text-decoration:none}@media(min-width:701px){.hr-wide{max-width:360px}}@media(min-width:981px){.hr-shell[data-view="profile"]{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.hr-shell[data-view="profile"]>.hr-head{grid-column:1/-1}}
.hr-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px}
.hr-tile{display:grid;justify-items:center;align-content:center;gap:4px;min-height:118px;padding:14px 10px;border:3px solid var(--line);border-radius:var(--radius-card);background:var(--paper);color:var(--ink);text-align:center;text-decoration:none;box-shadow:0 4px 0 var(--line)}
.hr-tile:active{transform:translateY(2px);box-shadow:0 2px 0 var(--line)}
.hr-tile .hr-ico{width:34px;height:34px}
.hr-pixel{width:48px;height:48px;image-rendering:pixelated}
.hr-tile strong{font-size:var(--text-17)}
.hr-tile small{color:var(--warn-ink);font-size:var(--text-14);font-weight:700}
.hr-line{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:11px 0;border-top:2px dashed var(--edge-soft);color:var(--ink);text-decoration:none}
.hr-card h3+.hr-line,.hr-card>.hr-line:first-child{border-top:0}
.hr-line>div:first-child{display:grid;gap:2px;min-width:0;flex:1 1 180px;overflow-wrap:anywhere}
.hr-line-end{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.hr-line-actions{display:flex;gap:8px;flex-wrap:wrap}
.hr-link{font-weight:800}
.hr-small{min-height:var(--control-small);padding:5px 11px;font-size:var(--text-14);gap:6px;text-decoration:none}
.hr-times{font-weight:800;font-variant-numeric:tabular-nums}
.hr-done{display:flex;align-items:center;justify-content:center;gap:8px;margin:4px 0;color:var(--good-ink);font-weight:900}
.hr-empty{justify-items:center;text-align:center;color:var(--muted)}
.hr-empty .hr-ico{width:40px;height:40px}
.hr-kv{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid var(--edge-soft);overflow-wrap:anywhere}
.hr-kv span:first-child{color:var(--muted)}
.hr-kv strong{text-align:right}
.hr-kv-strong{font-weight:900}
.hr-kv-strong span:first-child{color:var(--ink)}
.hr-slip{display:grid;gap:8px;text-align:center}
.hr-slip .hr-kv{text-align:left}
.hr-bar{display:block;width:100%;height:18px;border:2px solid var(--line);border-radius:var(--radius-control);overflow:hidden;margin-top:6px;box-sizing:border-box}
.hr-legend{display:flex;flex-wrap:wrap;gap:6px 14px;justify-content:center;font-size:var(--text-14);color:var(--muted)}
.hr-legend i{display:inline-block;width:11px;height:11px;border:2px solid var(--line);border-radius:var(--radius-small);margin-right:5px;vertical-align:-1px}
.hr-bar-net{background:var(--green);fill:var(--green)}.hr-bar-epf{background:var(--blue);fill:var(--blue)}.hr-bar-socso{background:var(--purple);fill:var(--purple)}.hr-bar-pcb{background:var(--yellow);fill:var(--yellow)}.hr-bar-other{background:var(--red);fill:var(--red)}
.hr-more summary{cursor:pointer;font-weight:900;color:var(--link);padding:6px 0;list-style-position:inside}
.hr-more h3{font-size:var(--text-14);margin-top:10px;text-align:left}
.hr-note{color:var(--muted);text-align:left}
.hr-form{display:grid;gap:12px}
.hr-form label{display:grid;gap:5px;font-weight:800;font-size:var(--text-14)}
.hr-form input:not([type=checkbox]),.hr-form select,.hr-form textarea{box-sizing:border-box;width:100%;min-width:0;min-height:var(--control);border:2px solid var(--edge);border-radius:var(--radius-control);padding:8px 10px;background:var(--white);font:inherit;font-weight:600;color:var(--ink);line-height:1.3}
.hr-form textarea{min-height:76px;line-height:1.5}
.hr-two{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));gap:10px}
.hr-two>label{min-width:0;align-content:start}
.hr-group{border:2px solid var(--edge-soft);border-radius:var(--radius-control);padding:10px 12px 12px;margin:0}
.hr-group legend{padding:0 6px;font-weight:900}
.hr-file-drop{display:flex!important;align-items:center;gap:8px;padding:10px;border:2px dashed var(--edge);border-radius:var(--radius-control);background:var(--white)}
.hr-file-drop input{min-height:0!important;border:0!important;padding:0 0!important;font-size:var(--text-14)}
.hr-file{position:relative;cursor:pointer}
.hr-file input{position:absolute;inset:0;opacity:0;cursor:pointer}
.hr-sheet .hr-close{min-width:44px;font-size:var(--text-20)}
.hr-sheet .hr-form{margin-top:12px}
.hr-sheet{overflow:auto}
.hr-dialog .hr-actions{display:flex;gap:10px;justify-content:flex-end}
.hr-month-pick{display:flex}
.hr-month-pick label{display:flex;align-items:center;gap:10px;font-weight:900;color:var(--ink);background:var(--paper);border:3px solid var(--line);border-radius:var(--radius-control);padding:6px 12px}
.hr-month-pick input{min-height:var(--control-small);border:2px solid var(--edge);border-radius:var(--radius-control);padding:4px 8px;font-family:inherit}
.hr-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}
.hr-stat{display:grid;gap:2px;padding:12px 14px;border:3px solid var(--line);border-radius:var(--radius-card);background:var(--paper);box-shadow:0 3px 0 var(--shade)}
.hr-stat small{color:var(--muted);font-weight:700}
.hr-stat strong{font-size:var(--text-20);font-weight:900}
.hr-step>summary{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none;font-size:var(--text-17)}
.hr-step>summary::-webkit-details-marker{display:none}
.hr-step-dot{display:grid;place-items:center;flex:none;width:34px;height:34px;border:3px solid var(--line);border-radius:50%;background:var(--white);font-weight:900}
.hr-step-done .hr-step-dot{background:var(--green);color:var(--white)}
.hr-step-now .hr-step-dot{background:var(--yellow)}
/* A later step is toned down on its heading and buttons only: its explanation stays at full strength so it can be read (design rule "Grey text"). */
.hr-step-later>summary,.hr-step-later>.ops-step-head,.hr-step-later :is(button,a.primary,a.secondary){opacity:.75}
.hr-step[open]>summary{margin-bottom:6px}
.hr-exclusion{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;align-items:center;padding:10px 0;border-top:2px dashed var(--edge-soft)}
.hr-exclusion>span{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.hr-exclusion input[type=text]{grid-column:1/-1}
.hr-check{display:flex!important;align-items:center;gap:6px;font-size:var(--text-14)}
.hr-check input{width:20px;height:20px}
.hr-file-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
.hr-file-list .secondary{gap:8px;justify-content:flex-start}
@media(max-width:650px){.hr-shell{gap:12px}.hr-card{padding:16px}.hr-big{font-size:var(--text-30)}.hr-tiles{grid-template-columns:1fr 1fr;gap:10px}.hr-tile{min-height:104px}.hr-line-end{width:100%;justify-content:flex-start}.hr-line-actions>*{flex:1}}
@media(prefers-reduced-motion:reduce){.hr-tile:active{transform:none}}

/* Design rule "Pay table": one row per person, the five earnings in the row, the rest opens under it. Spacing is from the seven steps (design rule "Spacing"). */
.hr-shell[data-view="payrun"]{max-width:none}
.hr-payband{display:flex;flex-wrap:wrap;align-items:stretch;gap:var(--space-16)}
.hr-payband .hr-stats{flex:1 1 420px;max-width:640px;margin-left:auto}
.hr-pay-note{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-8) var(--space-12);margin:0;font-size:var(--text-14)}
.hr-pay-note>span:last-child{flex:1 1 320px}
.hr-chip-from{border-color:var(--warn-edge);background:var(--yellow-soft);color:var(--warn-ink)}
.hr-chip-warn{border-color:var(--danger);background:var(--bad);color:var(--bad-ink)}
.hr-chip[hidden],.hr-pay-warn[hidden],.hr-pay-panel[hidden],.hr-paytable small[hidden]{display:none}
.hr-shell[data-view="payrun"] .hr-step{grid-template-columns:minmax(0,1fr)}
.hr-pay-scroll{overflow-x:auto;border:2px solid var(--edge-soft);border-radius:var(--radius-card);background:var(--white)}
.hr-paytable{width:100%;min-width:952px;table-layout:fixed;border-collapse:collapse;font-variant-numeric:tabular-nums;color:var(--ink)}
.hr-pay-col-who{width:200px}.hr-pay-col-ded{width:88px}.hr-pay-col-net{width:104px}.hr-pay-col-act{width:88px}
.hr-paytable caption{caption-side:bottom;padding:var(--space-12) var(--space-16);text-align:left}
.hr-paytable :is(th,td){padding:var(--space-16) var(--space-8);text-align:right;vertical-align:top}
.hr-paytable thead tr,.hr-paytable tfoot tr{background:var(--sky-soft)}
.hr-paytable thead th{padding-block:var(--space-8);color:var(--muted);font-size:var(--text-14);font-weight:800;vertical-align:bottom}
.hr-paytable .hr-pay-grp th{padding-bottom:0;color:var(--ink);font-size:var(--text-14);letter-spacing:.04em;text-align:left;text-transform:uppercase}
.hr-paytable .hr-pay-who{position:sticky;left:0;z-index:1;padding-left:var(--space-16);background:inherit;text-align:left}
.hr-paytable :is(tbody,tfoot) th{color:var(--ink);font-size:inherit;letter-spacing:0;text-transform:none}
.hr-pay-row,.hr-pay-panel{background:var(--white)}
.hr-pay-row{border-top:2px solid var(--edge-soft)}
.hr-pay-row.is-open,.hr-pay-row.is-open+.hr-pay-panel{background:var(--paper)}
.hr-pay-name{display:flex;align-items:flex-start;gap:var(--space-12)}
.hr-pay-name strong{display:flex;align-items:center;min-height:40px;font-size:var(--text-17);line-height:1.25;overflow-wrap:anywhere}
.hr-pay-chips{display:flex;flex-wrap:wrap;gap:var(--space-4);margin-top:var(--space-4)}
.hr-pay-chips .badge{margin:0}
.hr-pay-x{display:grid;place-items:center;flex:none;width:40px;height:40px;padding:0;border:2px solid var(--line);border-radius:var(--radius-control);background:var(--white);cursor:pointer}
.hr-pay-x::before{content:"";width:8px;height:8px;border-right:3px solid var(--ink);border-bottom:3px solid var(--ink);transform:translateY(-2px) rotate(45deg)}
.hr-pay-x[aria-expanded="true"]::before{transform:translateY(2px) rotate(-135deg)}
.hr-pay-box{display:grid;gap:var(--space-4);font-size:var(--text-14);font-weight:800;text-align:left}
.hr-pay-box input,.hr-pay-text :is(input,textarea){box-sizing:border-box;width:100%;min-width:0;min-height:var(--control-small);border:2px solid var(--edge);border-radius:var(--radius-control);padding:var(--space-4) var(--space-8);background:var(--white);font:inherit;font-weight:700;color:var(--ink)}
.hr-pay-box input{padding-inline:var(--space-4);font-size:var(--text-14);text-align:right;font-variant-numeric:tabular-nums;-moz-appearance:textfield;appearance:textfield}
.hr-pay-box input::-webkit-inner-spin-button,.hr-pay-box input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.hr-pay-box input.hr-from-last{border-color:var(--warn-edge);background:var(--yellow-soft)}
.hr-pay-box b{display:block;line-height:40px;text-align:right}
.hr-pay-sum{font-weight:800;line-height:40px;white-space:nowrap}
.hr-pay-net strong{font-size:var(--text-17);font-weight:900}
.hr-paytable .hr-pay-sep{border-left:2px solid var(--edge-soft)}
.hr-paytable .hr-pay-act{padding-right:var(--space-16)}
.hr-pay-act button{width:100%;min-height:var(--control-small)}
.hr-pay-row.is-open [data-pay-save]{visibility:hidden}
.hr-pay-comm{margin-top:var(--space-4);padding:var(--space-4) var(--space-8);border:2px solid var(--good-edge);border-radius:var(--radius-pill);background:var(--good);color:var(--good-ink);font:inherit;font-size:var(--text-14);font-weight:800;white-space:nowrap;cursor:pointer}
.hr-pay-comm:disabled{border-color:transparent;cursor:default}
.hr-paytable .hr-pay-panel>td{padding:0 var(--space-16) var(--space-24);text-align:left}
.hr-pay-warn{margin:0 0 var(--space-16);padding:var(--space-12);border:2px solid var(--danger);border-radius:var(--radius-control);background:var(--bad);color:var(--bad-ink);font-size:var(--text-14);font-weight:800}
.hr-pay-groups{display:grid;grid-template-columns:2fr 1fr 1fr;gap:var(--space-16);align-items:start}
.hr-pay-groups .hr-group{background:var(--white)}
.hr-pay-foot{display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--space-16);margin-top:var(--space-16)}
.hr-pay-foot .hr-pay-text{flex:1 1 240px}
.hr-pay-foot button{margin-left:auto}
.hr-pay-text{display:grid;gap:var(--space-4);font-size:var(--text-14);font-weight:800}
.hr-pay-text textarea{height:40px;resize:vertical}
.hr-paytable tfoot tr{border-top:2px solid var(--line);font-weight:800}
.hr-paytable tfoot :is(th,td){padding-block:var(--space-12)}
.hr-paytable tfoot small{display:block;color:var(--muted);font-weight:700}
@media(max-width:900px){
  .hr-pay-scroll{overflow:visible;border:0;background:transparent}
  .hr-paytable,.hr-paytable tbody,.hr-paytable tfoot,.hr-paytable caption{display:block;min-width:0}
  .hr-paytable thead,.hr-paytable colgroup{display:none}
  .hr-paytable caption{padding-inline:0}
  .hr-pay-row,.hr-paytable tfoot tr{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-12);margin-top:var(--space-16);padding:var(--space-16);border:2px solid var(--edge-soft);border-radius:var(--radius-card)}
  .hr-pay-row.is-open{border-bottom:0;border-radius:var(--radius-card) var(--radius-card) 0 0}
  .hr-paytable :is(.hr-pay-row,tfoot tr)>*{display:block;width:auto;padding:0;border:0;text-align:left}
  .hr-paytable .hr-pay-who,.hr-paytable .hr-pay-act{grid-column:1/-1;position:static;min-width:0}
  .hr-paytable td[data-label]::before{content:attr(data-label);display:block;color:var(--muted);font-size:var(--text-14);font-weight:800;line-height:1.3}
  .hr-pay-sum{line-height:1.5}
  .hr-pay-box input,.hr-pay-text :is(input,textarea),.hr-pay-act button{min-height:var(--control)}
  .hr-pay-x{width:44px;height:44px}
  .hr-pay-panel{display:block;border:2px solid var(--edge-soft);border-top:0;border-radius:0 0 var(--radius-card) var(--radius-card)}
  .hr-paytable .hr-pay-panel>td{display:block;padding:0 var(--space-16) var(--space-16)}
  .hr-pay-groups{grid-template-columns:1fr}
  .hr-pay-foot button{width:100%}
  .hr-payband .hr-stats{max-width:none;margin-left:0}
}
