.hr-page { max-width: 1080px; margin: 0 auto; }
.hr-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; margin: 20px 0; }
.hr-controls label { display: grid; gap: 6px; min-width: 0; }
.hr-controls input, .hr-controls select { max-width: 100%; font: inherit; padding: 10px; }
.hr-page .panel { margin: 20px 0; }
.hr-history { display: grid; gap: 6px; padding: 14px 0; overflow-wrap: anywhere; border-bottom: 1px solid var(--line); }
.hr-history small { color: var(--muted); }
.hr-page p { line-height: 1.6; }
@media (max-width: 600px) { .hr-controls label { width: 100%; } }

/* CL-21: Human records and time off put readable information before cross-screen links. */
@media (max-width: 600px) {
  :is(.hr-page, .timeoff-page, .decisions-page[data-decision-kind="Time off"], #decision-detail[data-detail^="time_off:"]) { padding: 14px; min-width: 0; overflow-wrap: anywhere; }
  :is(.hr-page, .timeoff-page) { display: flex; flex-direction: column; }
  :is(.hr-page, .timeoff-page) > .page-head { display: contents; }
  :is(.hr-page, .timeoff-page) > .page-head > button { flex: none; margin: 6px 0; }
  :is(.hr-page, .timeoff-page) > .page-head > button:not(#timeoff-new) { order: 1; }
  :is(.hr-page, .timeoff-page) .metric-grid { grid-template-columns: minmax(0, 1fr); margin: 10px 0; }
  :is(.hr-page, .timeoff-page) .panel { margin: 10px 0; }
  :is(.hr-page, .timeoff-page, .decisions-page[data-decision-kind="Time off"], #decision-detail[data-detail^="time_off:"]) :is(p, small, label, .small, .chip, .metric span) { font-size: 14px; }
  :is(.hr-page, .timeoff-page, .decisions-page[data-decision-kind="Time off"], #decision-detail[data-detail^="time_off:"]) :is(button, input, select) { min-height: 44px; max-width: 100%; font-size: 16px; white-space: normal; }
  .hr-page .hr-controls { gap: 8px; margin: 10px 0; }
  .hr-page .hr-history a { display: flex; align-items: center; min-height: 44px; }
  .timeoff-page .timeoff-row { display: block; font-size: 14px; }
  .decision-row[data-item^="time_off:"] { min-height: 44px; overflow-wrap: anywhere; }
  .decision-row[data-item^="time_off:"] :is(.decision-main, .decision-meta) { min-width: 0; }
  .decision-row[data-item^="time_off:"] :is(span, small) { font-size: 14px; }
  body:has(:is(.hr-page, .timeoff-page, .decisions-page[data-decision-kind="Time off"], #decision-detail[data-detail^="time_off:"])) .dialog { padding: 16px; font-size: 14px; overflow-wrap: anywhere; }
  body:has(:is(.hr-page, .timeoff-page, .decisions-page[data-decision-kind="Time off"], #decision-detail[data-detail^="time_off:"])) .dialog :is(p, label, legend, .small) { font-size: 14px; }
  body:has(:is(.hr-page, .timeoff-page, .decisions-page[data-decision-kind="Time off"], #decision-detail[data-detail^="time_off:"])) .dialog :is(input, select, textarea, button) { min-width: 0; max-width: 100%; font-size: 16px; }
  body:has(:is(.hr-page, .timeoff-page, .decisions-page[data-decision-kind="Time off"], #decision-detail[data-detail^="time_off:"])) .dialog :is(button, select, input:not([type="checkbox"]), label.check) { min-height: 44px; }
  body:has(:is(.hr-page, .timeoff-page, .decisions-page[data-decision-kind="Time off"], #decision-detail[data-detail^="time_off:"])) .dialog .btns { flex-direction: column; }
}
