body:has(.hours-page), body:has(.hours-mobile) { background: #fff; }
.hours-page { color: #17212c; font-size: 14px; min-width: 0; padding: 0 0 40px; }
.hours-heading { margin: 0 0 38px; }
#admin-main-content:has(.hours-page) #flash_messages:empty { display: none; }
.hours-heading h1, .hours-review-heading h1, .hours-shift-detail h1 { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.hours-heading p, .hours-review-heading p { color: #526171; margin-top: 10px; }
.hours-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 38px; }
.hours-week-picker { display: inline-flex; position: relative; align-items: stretch; border: 1px solid #d2d9e0; border-radius: 5px; background: #fff; min-height: 44px; }
.hours-icon-button { display: inline-flex; min-width: 40px; min-height: 44px; align-items: center; justify-content: center; color: #46596d; border-radius: 4px; }
.hours-icon-button:hover { background: #f3f7fb; }
.hours-date-menu { position: relative; }
.hours-date-menu > summary { list-style: none; display: flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer; min-height: 44px; padding: 0 14px; white-space: nowrap; }
.hours-date-menu > summary::-webkit-details-marker, .hours-report-picker > summary::-webkit-details-marker { display: none; }
.hours-date-form { position: absolute; z-index: 30; left: -40px; top: 52px; background: #fff; border: 1px solid #d2d9e0; border-radius: 6px; box-shadow: 0 8px 24px #17212c16; padding: 16px; width: 280px; display: grid; gap: 12px; }
.hours-search { border: 1px solid #d2d9e0; border-radius: 5px; display: flex; width: 235px; max-width: 100%; background: #fff; }
.hours-search-input { min-width: 0; width: 100%; padding: 0 12px; background: transparent; border: 0; }
.hours-search-input::placeholder { color: #768594; }
.hours-filters { display: flex; gap: 12px; }
.hours-filter { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 17px; border: 1px solid #d2d9e0; border-radius: 5px; white-space: nowrap; }
.hours-filter.is-active { border-color: var(--color-brand-blue); color: var(--color-brand-blue-dark); background: var(--color-brand-blue-soft); }
.hours-grid-wrap { border: 1px solid #dde3e9; border-radius: 3px; overflow-x: auto; }
.hours-grid { border-collapse: collapse; width: 100%; text-align: center; font-size: 13px; }
.hours-grid th, .hours-grid td { padding: 17px 8px; border-bottom: 1px solid #e2e7ec; vertical-align: middle; }
.hours-grid thead th { background: #fcfdfe; font-size: 12px; font-weight: 650; padding-top: 22px; padding-bottom: 22px; white-space: nowrap; }
.hours-grid tbody tr:last-child > * { border-bottom: 0; }
.hours-grid tbody tr:hover { background: #fafcfe; }
.hours-grid .hours-name-cell { text-align: left; font-weight: 500; width: 160px; }
.hours-grid .hours-select-cell { padding-left: 12px; padding-right: 4px; width: 30px; }
.hours-select-cell input { width: 17px; height: 17px; accent-color: var(--color-brand-blue); cursor: pointer; }
.hours-person { display: flex; align-items: center; gap: 10px; line-height: 1.4; }
.hours-avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 35px; height: 35px; border-radius: 50%; background: var(--color-brand-purple); color: #fff; font-size: 11px; font-weight: 600; }
.hours-day-link { display: grid; gap: 4px; min-height: 40px; align-content: center; border-radius: 3px; }
.hours-day-link > span:not(.hours-cell-alert):not(.hours-cell-muted) { white-space: nowrap; }
.hours-day-link:hover { color: var(--color-brand-blue-dark); background: #eef5fd; }
.hours-total { white-space: nowrap; font-weight: 600; }
.hours-total small { display: block; font-size: 10px; color: #64748b; font-weight: 400; margin-top: 5px; }
.hours-cell-alert { display: block; color: #98620b; font-size: 12px; line-height: 1.4; }
.hours-cell-muted { display: block; color: #64748b; font-size: 12px; line-height: 1.5; }
.hours-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; line-height: 1.5; white-space: nowrap; }
.hours-status::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #8294a5; flex: none; }
.hours-status-approved::before, .hours-status-ready::before { background: #299265; }
.hours-status-attention::before { background: #d78b22; }
.hours-status-attention { color: #8b5b0e; }
.hours-text-link { color: var(--color-brand-blue-dark); text-underline-offset: 4px; }
.hours-text-link:hover { text-decoration: underline; }
.hours-grid .hours-text-link { font-size: 12px; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
.hours-grid-footer { display: flex; justify-content: space-between; align-items: start; margin-top: 28px; gap: 20px; font-size: 12px; color: #64748b; }
.hours-selected-review { text-align: center; }
.hours-selected-review small { display: block; margin-top: 8px; }
.hours-primary, .hours-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 21px; border-radius: 5px; font-size: 14px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.hours-primary { background: var(--color-brand-blue); color: #fff; border: 1px solid var(--color-brand-blue); }
.hours-primary:hover { background: var(--color-brand-blue-dark); }
.hours-secondary { background: #fff; border: 1px solid #ccd6df; color: #354b61; }
.hours-secondary:hover { background: #f4f7fa; }
.hours-page :where(a, button, input, textarea, select, summary):focus-visible,
.hours-mobile :where(a, button, input, textarea, select, summary):focus-visible { outline: 2px solid var(--color-brand-purple); outline-offset: 4px; }
.hours-empty { text-align: center; padding: 65px 24px; border-top: 1px solid #e0e6ec; color: #64748b; }
.hours-empty h2, .hours-empty h3 { color: #334155; font-weight: 600; font-size: 18px; margin-bottom: 8px; }
.hours-empty p { max-width: 450px; margin: 0 auto 20px; line-height: 1.6; }
.hours-management-list { display: none; border-top: 1px solid #e0e6ec; }
.hours-worker-summary { display: flex; align-items: center; gap: 12px; padding: 22px 0; border-bottom: 1px solid #e0e6ec; }
.hours-worker-summary strong { font-weight: 600; }
.hours-worker-summary .hours-status { display: flex; margin-top: 6px; }
.hours-mobile { padding: 8px 4px 0; max-width: 540px; margin: 0 auto; color: #17212c; font-size: 14px; }
.hours-mobile h1 { font-size: 27px; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; margin-bottom: 12px; }
.hours-mobile > .hours-week-picker { display: flex; width: 100%; }
.hours-mobile .hours-date-menu { flex: 1; }
.hours-mobile .hours-date-menu > summary { padding: 0 4px; gap: 10px; font-size: 13px; }
.hours-mobile .hours-icon-button { min-width: 36px; }
.hours-mobile-total { padding: 20px 0 20px; text-align: center; }
.hours-mobile-total #weekly-hours-total { font-size: 40px; color: var(--color-brand-blue); line-height: 1.15; font-weight: 650; letter-spacing: -.03em; }
.hours-mobile-total > p + p { color: #46566a; font-size: 16px; margin-top: 4px; }
.hours-mobile-total small { display: block; color: #526171; font-size: 12px; margin-top: 12px; }
.hours-daily-list > section { margin-bottom: 3px; }
.hours-daily-list h2 { font-size: 12px; font-weight: 600; color: var(--color-brand-purple-dark); padding-bottom: 10px; border-bottom: 1px solid #dbe2e8; }
.hours-shift-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; min-height: 84px; line-height: 1.5; }
.hours-shift-row + .hours-shift-row { border-top: 1px solid #eef1f4; }
.hours-shift-row strong { display: block; font-size: 14px; font-weight: 600; }
.hours-shift-row span > span { display: block; color: #526171; font-size: 13px; }
.hours-shift-row .hours-shift-total { font-size: 20px; white-space: nowrap; }
.hours-shift-row.has-issue { border-left: 2px solid #dca243; padding-left: 12px; }
.hours-attention-note { display: flex; align-items: center; gap: 10px; background: #fffaef; color: #8b5b0e; padding: 14px; border-radius: 4px; font-size: 13px; line-height: 1.6; margin: 8px 0 24px; }
.hours-report-picker { margin: 18px -4px 0; border-top: 1px solid #dbe2e8; border-bottom: 1px solid #dbe2e8; }
.hours-report-picker > summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 18px 4px; cursor: pointer; }
.hours-report-picker > summary span { flex: 1; }
.hours-report-picker > p { font-size: 13px; color: #64748b; margin: 0 4px 10px; }
.hours-report-choice { display: block; padding: 14px 4px; color: var(--color-brand-blue-dark); border-top: 1px solid #eef1f4; font-size: 13px; }
.hours-back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #526171; font-size: 13px; margin-bottom: 24px; }
.hours-review-page { max-width: 1100px; }
.hours-review-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.hours-eyebrow { font-size: 11px; color: #64748b; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin: 0 0 10px !important; }
.hours-review-summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 1px solid #dbe2e8; padding: 34px 0; margin-bottom: 24px; }
.hours-review-total { font-size: 40px; letter-spacing: -.03em; font-weight: 650; color: var(--color-brand-blue); }
.hours-review-summary p + p { color: #64748b; font-size: 13px; margin-top: 7px; }
.hours-approve-form { text-align: center; }
.hours-approve-form p, .hours-confirmed-copy { font-size: 12px; color: #64748b; margin-top: 10px; line-height: 1.6; }
.hours-section-heading { font-size: 16px; font-weight: 600; margin: 24px 0 14px; }
.hours-week-divider { font-size: 13px; color: var(--color-brand-purple-dark); font-weight: 600; padding: 14px; background: var(--color-brand-purple-soft); margin-top: 20px; }
.hours-review-row { display: flex; align-items: center; gap: 24px; padding: 23px 0; border-bottom: 1px solid #e1e7ed; }
.hours-row-date { width: 100px; color: #526171; font-size: 13px; flex: none; }
.hours-review-row h3 { font-weight: 600; font-size: 14px; }
.hours-review-row p { color: #64748b; font-size: 13px; margin-top: 5px; }
.hours-row-value { min-width: 80px; text-align: right; }
.hours-period-note { padding: 14px 0; color: #64748b; font-size: 13px; line-height: 1.7; }
.hours-disclosure { border-top: 1px solid #dbe2e8; margin-top: 24px; }
.hours-disclosure > summary { display: flex; gap: 10px; align-items: center; cursor: pointer; min-height: 56px; font-weight: 500; color: #3a5168; }
.hours-disclosure > summary { display: list-item; list-style-position: inside; align-content: center; }
.hours-disclosure > summary svg { display: inline-block; margin: 0 6px; vertical-align: middle; }
.hours-disclosure > p { font-size: 13px; color: #64748b; line-height: 1.7; }
.hours-disclosure .panel { border-radius: 4px; box-shadow: none; background: #f8fafc; border: 1px solid #e2e8f0; margin: 16px 0; }
.hours-history li { padding: 12px 0; font-size: 13px; color: #526171; border-bottom: 1px solid #eef1f4; line-height: 1.7; }
.hours-shift-detail { max-width: 760px; margin-left: auto; margin-right: auto; }
.hours-detail-subtitle { color: #64748b; font-size: 14px; margin: 10px 0 24px; }
.hours-recorded-detail { padding: 26px 0; border-bottom: 1px solid #dbe2e8; }
.hours-recorded-detail > strong { display: block; font-size: 38px; color: var(--color-brand-blue); font-weight: 650; }
.hours-recorded-detail > span { color: #526171; font-size: 14px; display: block; margin-top: 5px; }
.hours-recorded-detail p { color: #526171; font-size: 13px; margin-top: 12px; }
.hours-focused-form { display: grid; gap: 16px; padding: 12px 0 24px; }
.hours-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.hours-focused-form .field-input { border-radius: 5px; }
.hours-focused-form :is(.hours-primary,.hours-secondary) { justify-self: start; }
.hours-errors { margin: 24px 0; padding: 16px; border: 1px solid #e6b8b8; border-radius: 4px; background: #fff6f6; color: #972f35; font-size: 14px; line-height: 1.7; }
.hours-errors h2 { font-weight: 600; }
.hours-issue { padding: 18px 0; border-bottom: 1px solid #dbe2e8; font-size: 13px; line-height: 1.7; }
.hours-issue p + p { margin-top: 8px; }
@media (max-width: 1199px) {
  .hours-grid-wrap { display: none; }
  .hours-management-list { display: block; }
  .hours-selected-review { display: none; }
}
@media (max-width: 599px) {
  .hours-heading { margin-bottom: 26px; }
  .hours-toolbar { gap: 12px; margin-bottom: 26px; }
  .hours-toolbar > .hours-week-picker { width: 100%; }
  .hours-toolbar .hours-date-menu { flex: 1; }
  .hours-toolbar .hours-search { width: 100%; }
  .hours-filters { width: 100%; }
  .hours-filter { flex: 1; padding: 0 12px; }
  .hours-footer-note { display: none; }
  .hours-review-summary { align-items: stretch; flex-direction: column; gap: 16px; }
  .hours-approve-form { text-align: left; }
  .hours-review-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
  .hours-row-date { grid-column: 1 / -1; width: auto; }
  .hours-review-row > .hours-text-link { grid-column: 1 / -1; min-height: 36px; align-content: center; }
  .hours-form-grid { grid-template-columns: minmax(0,1fr); }
  .hours-shift-detail h1 { font-size: 26px; }
  .hours-focused-form :is(.hours-primary,.hours-secondary) { width: 100%; }
}

/* Worker companion: align My hours with the shared flat, square-cornered system. */
.hours-mobile { max-width: none; padding: 0; color: #0f172a; }
.hours-mobile > .hours-week-picker { margin-top: 20px; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; padding: 4px; }
.hours-mobile-total { text-align: left; padding: 20px 0 8px; }
.hours-mobile-total #weekly-hours-total { font-size: 36px; color: #0f172a; }
.hours-mobile-total > p + p { color: #475569; font-size: 15px; margin-top: 2px; }
.hours-mobile-total small { color: #64748b; font-size: 13px; margin-top: 8px; }
.hours-mobile .hours-attention-note, .hours-worker .hours-attention-note { border: 1px solid #fde68a; background: #fffbeb; color: #78350f; border-radius: 6px; font-size: 14px; padding: 12px 16px; margin: 12px 0 20px; }
.hours-daily-list > section { margin-top: 24px; }
.hours-daily-list h2 { font-size: 18px; color: #0f172a; padding-bottom: 8px; border-bottom: 1px solid #cbd5e1; }
.hours-mobile .hours-shift-row { margin-top: 12px; padding: 14px 16px; min-height: 64px; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; color: #0f172a; }
.hours-mobile .hours-shift-row + .hours-shift-row { border-top: 1px solid #e2e8f0; }
.hours-mobile .hours-shift-row strong { font-size: 17px; }
.hours-mobile .hours-shift-row span > span { font-size: 14px; color: #475569; }
.hours-mobile .hours-shift-row.has-issue { border-color: #fcd34d; background: #fffbeb; padding-left: 16px; }
.hours-mobile .hours-report-picker { margin: 24px 0 0; padding: 0 16px; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; }
.hours-mobile .hours-report-picker > summary { padding: 14px 0; font-weight: 600; color: #0f172a; }
.hours-mobile .hours-report-choice { padding: 14px 0; font-size: 15px; }
.hours-mobile .hours-empty { border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; padding: 32px 20px; margin-top: 20px; }
.hours-mobile .hours-primary, .hours-worker .hours-primary, .hours-worker .hours-secondary { width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 6px; font-size: 16px; }
.hours-worker .hours-secondary { border-color: rgba(134, 93, 152, .4); color: #6c5295; }
.hours-worker .hours-focused-form :is(.hours-primary, .hours-secondary) { justify-self: stretch; }
.hours-worker .hours-recorded-detail { margin-top: 20px; padding: 16px; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; }
.hours-worker .hours-recorded-detail > strong { font-size: 32px; color: #0f172a; letter-spacing: -.02em; }
.hours-worker .hours-errors { border-color: #fecdd3; background: #fff1f2; color: #881337; border-radius: 6px; }
.hours-worker .hours-disclosure { margin-top: 16px; padding: 0 16px; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; }
.hours-worker .hours-disclosure > summary { font-weight: 600; color: #0f172a; }
.hours-worker .hours-issues { margin-top: 20px; }
.hours-worker .hours-period-note { color: #475569; font-size: 14px; }
