.hr-filter {width:100%; align-items:end; grid-template-columns:repeat(auto-fit, minmax(min(10rem, 100%), 1fr))}
.hr-body {display:grid; gap:1.25rem}
.hr-body section + section {border-top:1px solid var(--line, #dde3ed); padding-top:1rem}
.hr-body h3 {margin:0 0 .65rem}
.hr-body details {margin-top:.75rem}
.hr-body summary {cursor:pointer; font-weight:600; padding-block:.45rem}
.hr-actions {display:flex; align-items:center; gap:.5rem; flex-wrap:wrap}
.hr-document-list {padding:0; list-style:none}
.hr-document-list li, .hr-account-choice {display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.75rem; padding:.65rem 0; border-bottom:1px solid var(--line, #dde3ed)}
.hr-document-list small {display:block; overflow-wrap:anywhere; margin-top:.25rem}
.hr-document-list .badge {display:inline-block}
@media (max-width:650px) {.hr-filter {grid-template-columns:1fr; width:100%}}
.hr-totals {display:flex; flex-wrap:wrap; justify-content:flex-start; gap:1.5rem}
.hr-totals strong {margin-inline-start:.3rem; font-variant-numeric:tabular-nums}

#hr-drawer .drawer-header, #hr-time-drawer .drawer-header {position:sticky; top:0; z-index:1; background:var(--white,#fff)}
@media (max-width:650px) {
 .hr-time-table table, .hr-time-table tbody, .hr-time-table tr {display:block; min-width:0; width:100%}
 .hr-time-table thead {position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%)}
 .hr-time-table tr {padding:.55rem .9rem; border-bottom:1px solid var(--line,#dde3ed)}
 .hr-time-table td {display:flex; align-items:baseline; justify-content:space-between; gap:1rem; border:0; padding:.3rem 0; white-space:normal}
 .hr-time-table td[data-label]::before {content:attr(data-label); font-size:.85rem; color:var(--muted,#6b7985)}
 .hr-time-table .hr-shift-action {justify-content:flex-end; padding-top:.6rem}
 .hr-time-table .hr-shift-action:empty {display:none}
}

.hr-pay-panel, .hr-shifts-panel {margin-top:1rem}
.hr-pay-hint {margin:1rem}
.hr-shift-categories {display:grid; gap:.25rem}
.hr-shift-break small {display:block}
.hr-live-panel {margin-bottom:1rem; overflow:hidden}
.hr-live-panel .panel-header {gap:1rem; flex-wrap:wrap}
.hr-live-panel h2 {margin:0}
.hr-live-grid {display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr)); gap:.85rem; padding:1rem}
.hr-live-card {border:1px solid var(--line,#dde3ed); border-radius:.75rem; padding:1rem; min-width:0; background:var(--white,#fff)}
.hr-live-card-heading {display:flex; justify-content:space-between; align-items:center; gap:1rem}
.hr-live-card-heading strong {overflow-wrap:anywhere}
.hr-live-facts {display:grid; grid-template-columns:1fr 1fr; gap:.8rem; margin-block:1rem}
.hr-live-facts div {min-width:0}
.hr-live-facts dt {font-size:.8rem; color:var(--muted,#6b7985)}
.hr-live-facts dd {margin:.25rem 0 0; font-variant-numeric:tabular-nums; overflow-wrap:anywhere}
.hr-live-clock {font-size:clamp(2rem,7vw,3rem); line-height:1.2; font-weight:650; font-variant-numeric:tabular-nums; margin:.75rem 0}
.hr-clock-body {padding:0 1.2rem 1rem}
.hr-clock-panel {border-top:3px solid var(--primary,#1b685b)}
.hr-clock-panel textarea {resize:vertical}
.hr-live-history > summary {cursor:pointer; padding:1rem; font-weight:600}
.hr-work-reason {white-space:pre-wrap; overflow-wrap:anywhere}
#hr-live-drawer .drawer-header {position:sticky; top:0; z-index:1; background:var(--white,#fff)}
#hr-live-drawer form {display:grid; gap:.9rem}
#hr-live-drawer label {display:grid; gap:.4rem}
#hr-live-drawer textarea {width:100%; resize:vertical}
#hr-live-drawer blockquote {margin-inline:0; padding:.6rem 1rem; border-left:3px solid var(--line,#dde3ed); white-space:pre-wrap}
.hr-change {border-bottom:1px solid var(--line,#dde3ed); padding-block:.65rem}
.hr-change p {margin:.4rem 0; overflow-wrap:anywhere}
.hr-change-values {display:grid; grid-template-columns:1fr 1fr; gap:.75rem}
.hr-change-values > div {min-width:0}
.hr-change-values pre {font-size:.75rem; white-space:pre-wrap; overflow-wrap:anywhere}
.hr-week-grid {display:grid; gap:.6rem}
.hr-week-row {display:grid; grid-template-columns:minmax(7rem,1fr) 1fr 1fr; gap:.5rem; align-items:center}
#hr-live-drawer .hr-week-row label:first-child {display:flex; align-items:center; gap:.4rem}
.hr-week-row input[type=checkbox] {width:1rem; height:1rem}
#hr-car-qr-result {display:grid; justify-items:start; gap:1rem; margin-top:1rem}
#hr-car-qr-result img {width:240px; max-width:100%; height:auto}
#hr-car-qr-result a {max-width:100%; overflow-wrap:anywhere}
#hr-qr-print {display:none}
#hr-live-drawer #qr-video {display:block; width:100%; max-height:50vh; margin-block:1rem; background:#182625}
@media(max-width:650px) {
 .hr-live-grid {padding:.75rem; grid-template-columns:1fr}
 .hr-live-panel .panel-header {padding:1rem}
 .hr-live-panel .hr-actions {width:100%}
 .hr-clock-body {padding-inline:1rem}
 .hr-clock-panel .hr-actions .primary {width:100%; min-height:3rem}
 .hr-live-facts {gap:.65rem}
 .hr-change-values {grid-template-columns:1fr}
 .hr-week-row {grid-template-columns:minmax(6.5rem,1fr) 1fr 1fr}
 .hr-week-row input[type=time] {min-width:0; padding-inline:.3rem}
 #hr-live-drawer .drawer-header h2 {font-size:1.2rem}
}
@media print {
 body:has(#hr-qr-print) > * {display:none!important}
 body:has(#hr-qr-print) > #hr-qr-print {display:grid!important; gap:1cm; justify-items:center; color:#000}
 #hr-qr-print img {width:10cm; height:10cm}
 #hr-qr-print a {font-size:10pt; overflow-wrap:anywhere}
}
