/* Read-only daily staff browsing; preserve native controls and enlarged-text reflow. */
.owner-staff-hours { min-width:0; overflow-wrap:anywhere; }
.owner-staff-hours [hidden] { display:none!important; }
.staff-hours-controls { display:flex; flex-wrap:wrap; gap:8px; align-items:center; min-width:0; max-width:100%; }
.staff-hours-controls button, .staff-hours-controls input, .staff-hours-days button { min-height:48px; }
.staff-hours-controls button { min-width:48px; padding:.5rem .7rem; }
.staff-hours-controls button[aria-label] { font-size:1.4rem; padding:.2rem .5rem; }
/* Native date fields have an intrinsic width; both grid track and field must shrink. */
.staff-hours-controls label { display:grid; grid-template-columns:minmax(0,1fr); flex:1 1 100%; width:100%; gap:4px; min-width:0; max-width:100%; }
.staff-hours-controls input { width:100%; min-width:0; max-width:100%; box-sizing:border-box; padding:.5rem .125rem; font-weight:400; }
.staff-hours-visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.staff-hours-days { display:grid; grid-template-columns:repeat(7,minmax(max(48px,3.5rem),1fr)); gap:4px; min-width:0; max-width:100%; box-sizing:border-box; overflow-x:auto; padding:10px 3px; }
.staff-hours-days button { display:flex; flex-direction:column; align-items:center; gap:4px; min-width:48px; padding:6px 4px; background:transparent; color:inherit; border:1px solid transparent; }
.staff-hours-days button span { font-size:.8rem; }
.staff-hours-days button strong { display:grid; place-items:center; width:max(36px,2.25rem); height:max(36px,2.25rem); box-sizing:border-box; border:1px solid var(--border, #777); border-radius:50%; }
.staff-hours-days button[aria-pressed="true"] { border-color:currentColor; }
.staff-hours-days button[aria-pressed="true"] strong { background:#6ae3c6; color:#0b1f2b; outline:2px solid currentColor; outline-offset:-4px; }
.staff-hours-days button[aria-current="date"] span { text-decoration:underline; text-underline-offset:3px; }
.owner-staff-hours .staff-hours-heading { margin:4px 0 12px; font-size:1.05rem; line-height:1.4; }
.staff-hours-search { display:flex; flex-direction:column; gap:4px; font-size:.875rem; font-weight:600; max-width:28rem; margin:0 0 12px; }
.staff-hours-search input { min-height:44px; min-width:0; width:100%; box-sizing:border-box; font-size:1rem; padding:.5rem .75rem; }
.staff-hours-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:12px; }
.owner-staff-hours article { border:1px solid var(--border, #777); border-radius:12px; padding:14px; min-width:0; line-height:1.5; }
.owner-staff-hours article h3 { margin:0 0 10px; font-size:1.1rem; }
.owner-staff-hours article p { margin:8px 0; }
.owner-staff-hours article button { min-height:44px; max-width:100%; white-space:normal; }
.owner-staff-hours .staff-hours-worker-open { display:block; width:100%; margin:0; padding:0; min-height:44px; text-align:left; color:inherit; background:transparent; font:inherit; white-space:normal; overflow-wrap:anywhere; }
.owner-staff-hours .staff-hours-worker-open:hover { text-decoration:underline; }
.staff-hours-day-totals { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:0 0 12px; }
.staff-hours-day-totals div { min-width:0; }
.staff-hours-day-totals dt { font-size:.875rem; }
.staff-hours-day-totals dd { margin:0; font-size:1.25rem; font-weight:700; }
.staff-hours-worker-more { font-size:.875rem; margin:8px 0 0; }
.staff-hours-worker-more summary { min-height:44px; cursor:pointer; padding:10px 0; }
.staff-hours-worker-more p { line-height:1.5; }
.staff-hours-anomalies { font-size:.875rem; line-height:1.5; }
.staff-hours-pagination { display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:center; margin:16px 0; }
.staff-hours-pagination button { min-height:44px; }
.staff-hours-caveats { margin:12px 0 0; font-size:.875rem; }
.staff-hours-caveats summary { cursor:pointer; min-height:44px; padding:10px 0; }
.staff-hours-caveats p { max-width:75ch; line-height:1.6; }
.staff-hours-caveats button { min-height:44px; }
.staff-hours-scope { font-weight:600; }
.staff-hours-search-help { font-size:.875rem; line-height:1.5; max-width:65ch; }
.staff-hours-status, .staff-hours-warning { line-height:1.5; }
.staff-hours-status:empty, .staff-hours-warning:empty { display:none; }
.staff-hours-warning { border-inline-start:3px solid currentColor; padding-inline-start:.75rem; }
.staff-hours-detail { margin-top:4px; line-height:1.6; min-width:0; }
.staff-hours-detail h3 { margin:12px 0 4px; font-size:1.2rem; }
.staff-hours-detail-date { margin:0 0 16px; font-size:.875rem; }
.staff-hours-detail h4 { margin:16px 0 8px; }
.staff-hours-detail ul { padding-inline-start:1.25rem; }
.staff-hours-detail li { margin-block:8px; overflow-wrap:anywhere; }
.staff-hours-detail button { min-height:44px; }
.owner-staff-hours button:focus-visible, .owner-staff-hours input:focus-visible, .owner-staff-hours summary:focus-visible { outline:3px solid currentColor; outline-offset:2px; }

/* Recorded totals are distinct from the planned schedule and from each other. */
.owner-staff-hours .staff-hours-heading { font-size:1.15rem; margin:8px 0 14px; }
.owner-staff-hours .staff-hours-search { max-width:none; padding-bottom:14px; border-bottom:1px solid #334d6b; }
.owner-staff-hours .staff-hours-search input { max-width:28rem; }
.owner-staff-hours .staff-hours-cards article { background:#102038; border-color:#3e6084; padding:16px; }
.owner-staff-hours .staff-hours-cards article h3 { border-bottom:1px solid #334d6b; padding-bottom:8px; }
.owner-staff-hours .staff-hours-day-totals { gap:8px; }
.owner-staff-hours .staff-hours-day-totals>div { padding:10px; border-radius:8px; background:#1b3049; }
.owner-staff-hours .staff-hours-day-totals dt { color:#adc0d8; line-height:1.5; }
.owner-staff-hours .staff-hours-day-totals dd { color:#f5f7fb; font-variant-numeric:tabular-nums; margin-top:4px; line-height:1.3; }
.owner-staff-hours .staff-hours-worker-more { border-top:1px solid #334d6b; }
.owner-staff-hours .staff-hours-worker-more summary { color:#c5d9f0; }
.owner-staff-hours .staff-hours-anomalies { color:#f0d8ac; padding-inline-start:10px; border-inline-start:2px solid #c7a66a; }
.owner-staff-hours .staff-hours-caveats { border-top:1px solid #334d6b; }
.owner-staff-hours .staff-hours-detail { padding:16px; border:1px solid #3e6084; border-radius:12px; background:#102038; }
@media(max-width:360px){
  .owner-staff-hours .staff-hours-day-totals { grid-template-columns:minmax(0,1fr); }
  /* Leave room for classic scrollbar gutters and wrapped worker names by
     trimming decorative space, not text, controls or focus rings. */
  .owner-staff-hours .staff-hours-days { padding-block:6px; }
  .owner-staff-hours .staff-hours-search { padding-bottom:6px; margin-bottom:8px; }
}
