/* rx-dtr.css - Human Resource > Daily Time Records. Tables on desktop, one card per row on phones, plain white when printed. */
.dtr { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; height: 100%; }
.dtr-bar { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-width: 0; }
.dtr-count { white-space: normal; }
.dtr-tabs { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.dtr-tab {
  height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ctl-line); background: var(--ctl); color: var(--ink);
  font: 400 13.5px var(--font); white-space: nowrap; cursor: pointer; transition: border-color .15s;
}
.dtr-tab:hover { border-color: var(--line-hover); }
.dtr-tab:focus-visible { outline: 2px solid var(--ac-text); outline-offset: 2px; }
.dtr-tab[aria-current="true"] { background: var(--ac); border-color: var(--ac); color: #fff; font-weight: 500; }
.dtr__body {
  flex: 1 1 auto; min-height: 0; min-width: 0; overflow: auto; overscroll-behavior: contain; border-radius: 22px;
  border: 1px solid var(--line); background: var(--card);
  scrollbar-width: thin; scrollbar-color: var(--scroll) transparent;
}
.dtr-pick { flex: 0 1 160px; }
.dtr-pick--cut { flex: 0 1 190px; }
.dtr-date { flex: 0 1 150px; width: auto; }
.dtr-emp { flex: 1 1 200px; min-width: 0; }

/* tables */
.dtr-t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.dtr-t th {
  position: sticky; top: 0; z-index: 2; padding: 11px 12px; text-align: left; white-space: nowrap;
  background: var(--solid-2); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 500;
}
.dtr-t td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dtr-t tbody tr:last-child td { border-bottom: 0; }
.dtr-t .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.dtr-t tfoot td { position: sticky; bottom: 0; background: var(--solid-2); border-top: 1px solid var(--line-hover); border-bottom: 0; font-weight: 500; }
.dtr-t tr.is-click { cursor: pointer; }
.dtr-t tr.is-click:hover td { background: var(--tint); }
.dtr-t tr.is-click:focus-visible { outline: 2px solid var(--ac-text); outline-offset: -2px; }
.dtr-name { font-weight: 500; white-space: nowrap; }
.dtr-block { display: block; }
.dtr-was { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink2); }
.dtr-bad { color: var(--bad); }
.dtr-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.dtr-chip { max-width: none; font-weight: 400; background: var(--tint-2); }

/* Employee DTR, on screen and on paper */
.dtr-paper { padding: 22px 24px; background: #fff; min-height: 100%; }
.dtr-paper__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 20px; margin-bottom: 14px; }
.dtr-paper__top h3 { margin: 0; font-size: 24px; font-weight: 300; letter-spacing: -.01em; }
.dtr-paper__top p { margin: 2px 0 0; font-size: 13px; }
.dtr-paper__range { font-size: 13px; }
.dtr-paper__info { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 16px; margin: 0 0 16px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dtr-paper__info dt { font-size: 11.5px; font-weight: 500; }
.dtr-paper__info dd { margin: 2px 0 0; font-size: 13.5px; overflow-wrap: anywhere; }
.dtr-paper__table { overflow-x: auto; }
.dtr-paper .dtr-t { font-size: 12.5px; }
.dtr-paper .dtr-t th { position: static; background: var(--solid-2); padding: 8px; }
.dtr-paper .dtr-t td { padding: 7px 8px; }
.dtr-paper .dtr-t tfoot td { position: static; }
.dtr-sign { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 24px; margin-top: 46px; font-size: 12px; }
.dtr-sign div { padding-top: 6px; border-top: 1px solid var(--ink); }
.dtr-print-only { display: none; }
.dtr-pay__note { padding: 10px 12px; }
.dtr-pay .dtr-t th { white-space: normal; vertical-align: bottom; }
.dtr-pay .dtr-t th, .dtr-pay .dtr-t td { padding-left: 8px; padding-right: 8px; }
.dtr-pay .dtr-t th:first-child, .dtr-pay .dtr-t td:first-child { padding-left: 14px; }
.dtr-pay .dtr-t th:last-child, .dtr-pay .dtr-t td:last-child { padding-right: 14px; }

/* pop-ups */
.dtr-modal {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: var(--scrim); -webkit-backdrop-filter: blur(20px) saturate(120%); backdrop-filter: blur(20px) saturate(120%);
}
.dtr-modal__card {
  display: flex; flex-direction: column; gap: 12px; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 22px; border-radius: 30px;
  background: var(--solid); box-shadow: var(--pop-shadow); color: var(--ink); font-family: var(--font);
}
.dtr-modal__card > * { flex: none; }
.dtr-modal__card:focus { outline: none; }
.dtr-modal__card > h3 { margin: 0; font-size: 24px; font-weight: 300; letter-spacing: -.01em; overflow-wrap: anywhere; }
.dtr-modal__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 4px; }
.dtr-grow { flex: 1 1 auto; }
.dtr-small { height: 36px; padding: 0 14px; font-size: 13px; }
.dtr-form { display: grid; gap: 10px; }
.dtr-form--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dtr-text { height: 74px; padding: 10px 14px; resize: vertical; line-height: 1.4; }
.dtr-check { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.dtr-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ac); }
.dtr-day__stat { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 12px 14px; border-radius: 18px; background: var(--tint); }
.dtr-day__stat span { display: block; font-size: 11.5px; }
.dtr-day__stat b { display: block; margin-top: 2px; font-size: 15px; font-weight: 400; }
.dtr-day__sec { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.dtr-day__sec h4 { margin: 0; font-size: 14px; font-weight: 500; }
.dtr-day__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; }
.dtr-day__line { margin: 0; font-size: 14px; }
.dtr-day__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.dtr-day__log { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.dtr-day__log:first-of-type { border-top: 0; }
.dtr-day__t { min-width: 0; }
.dtr-day__t b { display: block; font-size: 14px; font-weight: 500; }
.dtr-day__t small { display: block; margin-top: 2px; font-size: 12px; overflow-wrap: anywhere; }

/* Requests */
.req-credit { flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 12px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
.req-credit span { display: block; font-size: 11.5px; }
.req-credit b { display: block; margin-top: 2px; font-size: 20px; font-weight: 300; }
.req-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 0; }
.req-facts dt { font-size: 11.5px; font-weight: 500; }
.req-facts dd { margin: 2px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.req-facts .is-wide { grid-column: 1 / -1; }
.req-steps { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 12px 0 0; list-style: none; border-top: 1px solid var(--line); }
.req-steps li { padding-left: 14px; border-left: 2px solid var(--line); font-size: 13px; }
.req-steps li.is-on { border-left-color: var(--ac); }
.req-steps b { font-weight: 500; }
.req-steps small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink2); overflow-wrap: anywhere; }

/* phones: each row becomes a small card */
@media (orientation: portrait), (max-width: 760px) {
  .dtr { height: auto; }
  .dtr__body { overflow: visible; border: 0; background: none; }
  .dtr-tabs { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; margin: 0 -4px; padding: 2px 4px; scrollbar-width: none; }
  .dtr-tabs::-webkit-scrollbar { display: none; }
  .dtr-tab { flex: none; height: 42px; }
  .dtr-pick { flex: 1 1 40%; }
  .dtr-emp { flex: 1 1 100%; }
  #dtrTools .ux-btn, #reqTools .ux-btn { flex: 1 1 40%; margin-left: 0; }
  .dtr-pay .dtr-t td:first-child, .dtr-pay .dtr-t td:last-child { padding: 0; }
  .dtr__body > .dtr-t thead, .dtr-pay .dtr-t thead { display: none; }
  .dtr__body > .dtr-t, .dtr__body > .dtr-t tbody, .dtr-pay .dtr-t, .dtr-pay .dtr-t tbody, .dtr-pay .dtr-t tfoot { display: block; }
  .dtr__body > .dtr-t tr, .dtr-pay .dtr-t tr {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin-bottom: 8px; padding: 12px 14px;
    border-radius: 18px; border: 1px solid var(--line); background: var(--tint);
  }
  .dtr__body > .dtr-t td, .dtr-pay .dtr-t td { position: static; display: block; padding: 0; border: 0; background: none; text-align: left; min-width: 0; font-size: 13.5px; }
  .dtr__body > .dtr-t td:empty, .dtr-pay .dtr-t td:empty { display: none; }
  .dtr__body > .dtr-t td::before, .dtr-pay .dtr-t td::before { content: attr(data-l); display: block; font-size: 11px; font-weight: 500; color: var(--ink2); }
  .dtr__body > .dtr-t td.dtr-name, .dtr-pay .dtr-t td.dtr-name { grid-column: 1 / -1; order: -1; font-size: 15px; white-space: normal; }
  .dtr__body > .dtr-t td.dtr-name::before, .dtr-pay .dtr-t td.dtr-name::before { display: none; }
  .dtr__body > .dtr-t td:last-child { grid-column: 1 / -1; }
  .dtr-pay .dtr-t td:last-child { grid-column: auto; }
  .dtr-t tr.is-click:hover td { background: none; }
  .dtr-paper { padding: 16px 14px; border-radius: 18px; }
  .dtr-paper__info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dtr-modal { align-items: flex-end; padding: 8px; }
  .dtr-modal__card { padding: 16px; border-radius: 24px; max-height: calc(100dvh - 16px); }
  .dtr-day__stat { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dtr-small { height: 44px; }
  .req-credit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* printing: only the paper, in black on white */
@media print {
  html, body { height: auto !important; overflow: visible !important; background: #fff !important; }
  body::before, .sm-side, .sm-pandas, .sm-foot, .rx-status, .rxc, .dtr-bar, #dtrTools, #dtrPage .sm-perm__head, .dtr-pay__note { display: none !important; }
  .sm-shell { display: block !important; height: auto !important; overflow: visible !important; padding: 0 !important; }
  .sm-main { display: block !important; overflow: visible !important; margin: 0 !important; padding: 0 !important; }
  #dtrPage { display: block !important; height: auto !important; padding: 0 !important; background: none !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .ux, .dtr, .dtr__body { display: block !important; height: auto !important; overflow: visible !important; border: 0 !important; background: none !important; }
  .dtr-paper { padding: 0; }
  .dtr-print-only { display: flex; }
  .dtr-sign.dtr-print-only { display: grid; }
  .dtr-t { font-size: 10.5px !important; }
  .dtr-t th, .dtr-t td, .dtr-t tfoot td { position: static !important; padding: 4px 5px !important; background: none !important; color: #000; border-bottom: 1px solid #bbb; }
  .dtr-t tr { break-inside: avoid; }
  .dtr-t thead { display: table-header-group; }
  .dtr-bad { color: #000; }
}

/* Rules and Policies: the file row in its forms */
.rp-file { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rp-file__name { flex: 1 1 140px; min-width: 0; font-size: 13px; color: var(--ink2); overflow-wrap: anywhere; }

/* Scheduling: the month grid */
.sch-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-height: 66px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.sch-bar .ux-note { margin: 0; }
.sch-bar__n { font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.sch-lab { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.sch-time { width: 128px; }
.sch-err { flex: 1 1 100%; margin: 0; }
.sch-err:empty { display: none; }
.sch-bar .ux-btn { margin: 0; }
.sch-wrap { overflow: auto; }
.sch { border-collapse: separate; border-spacing: 0; font-size: 11.5px; user-select: none; }
.sch th, .sch td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sch thead th { position: sticky; top: 0; z-index: 2; background: var(--solid-2); font-weight: 400; }
.sch-name { position: sticky; left: 0; z-index: 1; min-width: 150px; max-width: 190px; padding: 6px 10px; background: var(--solid-2); text-align: left; font-size: 12.5px; font-weight: 500; }
.sch thead .sch-name { z-index: 3; }
.sch-who { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
button.sch-who { cursor: pointer; }
.sch-who span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sch-who small { display: block; font-size: 11px; font-weight: 400; color: var(--ink2); }
.sch-day { min-width: 58px; padding: 0; }
.sch-day.is-wk { color: var(--ink2); }
.sch-day.is-today { box-shadow: inset 0 -2px 0 var(--ac); }
.sch-head { display: block; width: 100%; padding: 5px 2px; border: 0; background: none; color: inherit; font: inherit; text-align: center; }
button.sch-head { cursor: pointer; }
.sch-head small { display: block; font-size: 10.5px; }
.sch-head span { font-size: 13px; }
button.sch-who:focus-visible, button.sch-head:focus-visible, .sch-c:focus-visible { outline: 2px solid var(--ac-text); outline-offset: -2px; }
.sch-c { height: 38px; min-width: 58px; padding: 2px; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.sch-c[tabindex] { cursor: pointer; }
td.sch-c[tabindex]:hover { box-shadow: inset 0 0 0 1px var(--line-hover); }
.sch-c.is-work { background: var(--tint-2); }
.sch-c.is-rest { box-shadow: inset 0 0 0 1px var(--ctl-line); color: var(--ink2); }
.sch-c.is-leave { background: var(--tint); }
.sch-c span, .sch-c small { display: block; }
.sch-c small { font-size: 9.5px; line-height: 1.1; color: var(--ac-text); font-weight: 500; }
.sch-c.is-changed { box-shadow: inset 0 0 0 1px var(--ac); }
.sch-c.is-sel small { color: #fff; }
.sch-c.is-sel { background: var(--ac); color: #fff; box-shadow: none; }
.sch tfoot .sch-name, .sch-count { font-weight: 400; color: var(--ink2); }
.sch-count { height: 30px; }
@media (orientation: portrait), (max-width: 760px) {
  .sch-name { min-width: 110px; max-width: 120px; padding: 6px; }
  .sch-c, .sch-day { min-width: 48px; }
  .sch-c { height: 44px; }
  .sch-bar .ux-btn { flex: 1 1 40%; }
  .sch-lab { flex: 1 1 40%; }
  .sch-time { width: 100%; min-width: 0; }
}
/* Incident Report */
.ir-people { display: grid; gap: 8px; }
.ir-chip { cursor: pointer; border: 1px solid var(--ctl-line); color: var(--ink); font: 400 12px var(--font); }
.ir-sub { margin: 8px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.ir-text { white-space: pre-wrap; }

/* Scheduling tools */
.sch-view { flex: none; flex-wrap: nowrap; }
.sch-month { flex: 0 0 190px; width: 190px; }
.sch-loc { flex: 0 1 180px; }
.sch-week { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.sch-week__t { min-width: 118px; text-align: center; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.sch-step { width: 40px; padding: 0; font-size: 18px; }
.sch--week .sch-c, .sch--week .sch-day { min-width: 118px; }
.sch--week .sch-c { height: 46px; font-size: 12.5px; }

/* Payroll */
.pay-head { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.pay-head span { display: block; font-size: 11.5px; color: var(--ink2); }
.pay-head b { display: block; margin-top: 2px; font-size: 15px; font-weight: 400; overflow-wrap: anywhere; }
.pay-warn, .pay-note { margin: 0; padding: 10px 14px; }
.pay-warn { color: var(--bad); }
.pay-wrap { overflow-x: auto; }
.pay-wrap .dtr-t td, .pay-wrap .dtr-t th { white-space: nowrap; }
.pay-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.pay-row--total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px; font-weight: 500; }
.pay-row--net { padding: 10px 0 0; border-top: 1px solid var(--line-hover); font-size: 17px; font-weight: 500; }
.pay-adj { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.7fr) auto auto; gap: 6px; align-items: center; }
.pay-settings { max-width: 520px; padding: 16px; }
@media (orientation: portrait), (max-width: 760px) { .pay-head { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pay-adj { grid-template-columns: 1fr 1fr; } }

/* Scheduling: the month fits the panel on a computer; a phone scrolls sideways */
.sch:not(.sch--week) { width: 100%; table-layout: fixed; }
.sch:not(.sch--week) .sch-name { width: 148px; min-width: 0; }
.sch:not(.sch--week) .sch-day, .sch:not(.sch--week) .sch-c { min-width: 0; font-size: 10.5px; padding-left: 0; padding-right: 0; overflow: hidden; }
.sch:not(.sch--week) .sch-c.is-changed { position: relative; }
.sch:not(.sch--week) .sch-c.is-changed small { position: absolute; top: 2px; right: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--ac); }
@media (orientation: portrait), (max-width: 760px) {
  .sch:not(.sch--week) { width: auto; table-layout: auto; }
  .sch:not(.sch--week) .sch-day, .sch:not(.sch--week) .sch-c { min-width: 44px; font-size: 11.5px; }
  #payTools .ux-btn, #payTools .ux-in, #loansTools .ux-btn, #loansTools .ux-in, #rulesTools .ux-btn { flex: 1 1 40%; margin-left: 0; }
  #payTools .ux-btn--ok, #loansTools .ux-btn--ok, #rulesTools .ux-btn--ok { flex: 1 1 100%; }
}
.pay-report { flex: 1 1 280px; }
/* a list choice inside a form field keeps the normal input height (its toolbar sizing does not apply there) */
.ux-f > select.dtr-pick { flex: none; width: 100%; }
@media (orientation: portrait), (max-width: 760px) { .ux-f > select.dtr-pick { flex: none; } }

/* HR Overview */
.hh { overflow-y: auto; }
.hh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.hh-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 112px; padding: 14px 16px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; text-align: left; }
button.hh-tile { cursor: pointer; }
button.hh-tile:hover { border-color: var(--line-hover); }
button.hh-tile:focus-visible { outline: 2px solid var(--ac-text); outline-offset: 2px; }
.hh-tile.is-warn { border-color: var(--ac); }
.hh-tile__t { font-size: 12.5px; color: var(--ink2); }
.hh-tile__n { font-size: 30px; font-weight: 300; line-height: 1.1; }
.hh-tile__s { font-size: 12px; color: var(--ink2); }
.hh-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-top: 12px; }
.hh-card { padding: 14px 16px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); }
.hh-card h3 { margin: 0 0 8px; font-size: 15px; font-weight: 500; }
.hh-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.hh-row__v { color: var(--ink2); white-space: nowrap; }
/* My HR */
.my-head { flex: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.my-head b { font-size: 18px; font-weight: 400; }
.my-head span { font-size: 13px; color: var(--ink2); }
.my-actions { padding: 12px 0; }
.my-sub { margin: 10px 0 6px; font-size: 15px; font-weight: 500; }
/* Onboarding */
.onb-prog { display: inline-flex; align-items: center; gap: 8px; }
.onb-bar { display: inline-block; width: 90px; height: 6px; border-radius: 3px; background: var(--tint-2); overflow: hidden; }
.onb-bar i { display: block; height: 100%; background: var(--ac); }
.onb-items { display: flex; flex-direction: column; }
.onb-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.onb-item.is-done .dtr-check span { color: var(--ink2); text-decoration: line-through; }
.onb-meta { font-size: 11.5px; color: var(--ink2); white-space: nowrap; }
.onb-due { width: 150px; height: 36px; }
.onb-add { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.onb-tpl { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.onb-ta { width: 100%; height: auto; min-height: 220px; padding: 10px 14px; line-height: 1.5; resize: vertical; }
@media (orientation: portrait), (max-width: 760px) {
  .onb-item { grid-template-columns: 1fr 1fr; }
  .onb-item .dtr-check { grid-column: 1 / -1; }
  .onb-add { grid-template-columns: 1fr; }
  #onbTools .ux-btn, #myTools .ux-in { flex: 1 1 100%; }
}
.ux.hh { display: block; }
.hh-grid, .hh-cards { align-content: start; grid-auto-rows: auto; }
.hh-card { align-self: start; }

/* Performance Reviews, final pay */
.rv-crit { display: flex; flex-direction: column; }
.rv-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr) minmax(0, 1.6fr); gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.rv-name b { display: block; font-size: 13.5px; font-weight: 500; }
.rv-name small { font-size: 11.5px; color: var(--ink2); }
.rv-overall { margin: 4px 0 0; font-size: 14px; font-weight: 500; }
.rv-edit { display: flex; flex-direction: column; gap: 6px; padding: 12px; }
.rv-erow { display: grid; grid-template-columns: minmax(0, 1fr) 90px auto; gap: 8px; }
.my-rev { margin-bottom: 10px; }
.my-rev__t { margin: 8px 0 0; font-size: 12px; color: var(--ink2); }
.pay-final { padding: 0 16px 12px; max-width: 620px; }
@media (orientation: portrait), (max-width: 760px) { .rv-row { grid-template-columns: 1fr 1fr; } .rv-row .rv-name { grid-column: 1 / -1; } #revTools .ux-btn--ok { flex: 1 1 100%; } }
@media (orientation: portrait), (max-width: 760px) {
  .hh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hh-tile { min-height: 104px; padding: 12px; }
  .hh-tile__n { font-size: 26px; }
  .sch-name .sch-who, button.sch-who { min-height: 40px; display: flex; flex-direction: column; justify-content: center; }
  .sch-head, button.sch-head { min-height: 40px; }
}
/* 057: employer numbers in Payroll settings, the employer line on remittance lists, and the print letterhead */
.pay-employer { margin-top: 18px; }
.pay-employer h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 600; }
.pay-employer-line { margin: 8px 0 6px; padding: 0 14px; font-weight: 600; color: var(--ac-text); }
.dtr-lh:empty { display: none; }
@media print { .dtr-lh.dtr-print-only { display: block; } .dtr-lh:empty { display: none; } }
/* 061: HR > Analytics bar charts */
.hs-charts { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.hs-bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding: 6px 0 18px; }
.hs-bar { position: relative; flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; min-width: 6px; }
.hs-bar__fill { display: block; width: 100%; border-radius: 3px 3px 0 0; background: var(--ac); opacity: .85; }
.hs-bar:hover .hs-bar__fill { opacity: 1; }
.hs-bar__l { position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%); font-size: 10px; opacity: .7; white-space: nowrap; }

/* 061: the schedule one day at a time (phones open on it) */
.sch.sch--day { width: 100%; table-layout: fixed; }
.sch.sch--day .sch-name { width: 55%; }
.sch.sch--day .sch-c { height: 44px; font-size: .95rem; }
.sch-dayin { width: auto; min-width: 9.5rem; }

/* review fixes: empty charts, full-width tiles, empty schedule cells */
.hs-bars { position: relative; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.hs-bars.is-empty .hs-bar { visibility: hidden; }
.hs-bars.is-empty .hs-bar__l { visibility: visible; }
.hs-empty { position: absolute; inset: 0 0 18px; display: grid; place-items: center; font-size: .85rem; opacity: .65; }
.hh-grid.hs-tiles { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.sch tbody .sch-c:not(.is-work):not(.is-rest):not(.is-leave) { background: rgba(28, 28, 32, .55); }
.sch.sch--day tbody .sch-c:not(.is-work):not(.is-rest):not(.is-leave)::after { content: 'No shift'; font-size: .8rem; opacity: .55; }/* 062: announcements at the top of My HR */
.my-news { display: grid; gap: 8px; margin: 0 0 12px; }
.my-news__item { padding: 10px 14px; border-radius: 12px; background: rgba(28, 28, 32, .55); border: 1px solid rgba(255, 255, 255, .12); }
.my-news__item.is-pinned { border-color: var(--ac-text); }
.my-news__item b { display: block; }
.my-news__item p { margin: 4px 0; white-space: pre-line; }
.my-news__item small { opacity: .7; }
/* BIR 1601-C summary */
.pay-1601 { max-width: 760px; }
.pay-1601 tr.pay-strong td { font-weight: 600; }
/* Overview: the cards sit in one even row of four on a wide screen */
@media (min-width: 1100px) { #hrhomeBox .hh-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hh-grid.hs-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hs-tiles .hh-tile__n { font-size: 1.35rem; overflow-wrap: anywhere; } }
.pay-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
/* 070: contribution and tax rates */
.pay-rates .pay-row span:last-child { text-align: right; max-width: 70%; }
.rt-tax .rv-erow { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
@media (max-width: 600px) { .pay-rates .pay-row { flex-direction: column; align-items: flex-start; } .pay-rates .pay-row span:last-child { text-align: left; max-width: none; } }
/* phone: a review criterion's name takes the whole row, with its weight and Remove underneath */
@media (max-width: 600px) {
  .rv-edit .rv-erow { grid-template-columns: minmax(0, 1fr) auto; }
  .rv-edit .rv-erow > input:first-child { grid-column: 1 / -1; }
  .rt-tax .rv-erow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rt-tax .rv-erow > button { grid-column: 1 / -1; justify-self: start; }
}
/* review criteria: the weight reads as a percent; on a phone each criterion sits in its own band */
.rv-wt { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rv-wt .ux-in { min-width: 0; width: 100%; }
.rv-pct { opacity: .8; }
@media (max-width: 600px) {
  .rv-edit .rv-erow { padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .rv-edit .rv-erow:last-of-type { border-bottom: 0; }
}
/* expense claims */
.ex-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ex-photo { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ex-photo-btn { cursor: pointer; }
.ex-preview { max-width: 100%; max-height: 220px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .15); }
.ex-how { width: auto; }
.my-exp-add { margin: 0 0 10px; }
.ex-photo-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; }
/* 086: org chart */
.org-find { margin: 0 0 10px; max-width: 360px; }
.org ul { list-style: none; margin: 0; padding: 0; }
.org__team .org__team { margin-left: 18px; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .18); }
.org__item { margin: 8px 0; }
.org__card { display: inline-flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 12px; background: rgba(28, 28, 32, .6); border: 1px solid rgba(255, 255, 255, .12); max-width: 100%; }
.org__card span, .org__card small { opacity: .8; }
.org__toggle { align-self: flex-start; margin-top: 6px; }
.org__item.is-hit > .org__card { border-color: var(--ac-text); box-shadow: 0 0 0 1px var(--ac); }
@media (max-width: 600px) { .org__team .org__team { margin-left: 6px; padding-left: 10px; } }
/* 090: recruitment */
.rec-pipe { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.rec-step { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(28, 28, 32, .55); color: inherit; font: inherit; font-size: .85rem; cursor: pointer; }
.rec-step.is-on { background: var(--ac); border-color: var(--ac-text); }
.rec-hist { margin: 10px 0; }
.rec-hist__row { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.rec-hist__row p { margin: 2px 0; white-space: pre-line; }
.rec-hist__row small { opacity: .7; }
.rec-acts { margin-top: 8px; }
.rec-btns { display: flex; flex-wrap: wrap; gap: 8px; }
/* org chart, round 2: even cards, a drawn tree on wide screens, and location groups in a grid */
.org__h { margin: 14px 0 6px; font-size: 1rem; font-weight: 600; }
.org__card { width: 200px; min-height: 92px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.org__card b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org__loc { font-size: .85em; }
.org__group h4 { margin: 12px 0 6px; font-size: .95rem; font-weight: 600; opacity: .9; }
.org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.org-grid .org__item { margin: 0; }
.org-grid .org__card { width: 100%; }
@media (min-width: 761px) {
  .org-tree { overflow-x: auto; padding-bottom: 8px; }
  .org-tree ul { display: flex; justify-content: center; position: relative; padding: 22px 0 0; margin: 0; }
  .org-tree ul.org__top { padding-top: 0; justify-content: flex-start; min-width: max-content; }
  .org-tree .org__team .org__team { margin-left: 0; padding-left: 0; border-left: 0; }
  .org-tree li { display: flex; flex-direction: column; align-items: center; position: relative; padding: 22px 8px 0; margin: 0; text-align: center; }
  .org-tree ul.org__top > li { padding-top: 0; }
  .org-tree li::before, .org-tree li::after { content: ''; position: absolute; top: 0; right: 50%; width: 50%; height: 22px; border-top: 1px solid rgba(255, 255, 255, .35); }
  .org-tree li::after { right: auto; left: 50%; border-left: 1px solid rgba(255, 255, 255, .35); }
  .org-tree li:only-child::before, .org-tree li:only-child::after { display: none; }
  .org-tree li:only-child { padding-top: 22px; }
  .org-tree li:only-child::after { display: block; border-top: 0; height: 22px; }
  .org-tree li:first-child::before, .org-tree li:last-child::after { border: 0 none; }
  .org-tree li:last-child::before { border-right: 1px solid rgba(255, 255, 255, .35); border-radius: 0 6px 0 0; }
  .org-tree li:first-child::after { border-radius: 6px 0 0 0; }
  .org-tree ul.org__top > li::before, .org-tree ul.org__top > li::after { display: none; }
  .org-tree ul ul::before { content: ''; position: absolute; top: 0; left: 50%; height: 22px; border-left: 1px solid rgba(255, 255, 255, .35); }
  .org-tree .org__card { align-items: center; }
  .org-tree .org__toggle { align-self: center; }
}
@media (max-width: 760px) { .org-tree .org__card { width: 100%; max-width: 320px; } }
.org__card { min-height: 118px; }
@media (min-width: 761px) { .org-tree ul.org__top { justify-content: center; margin: 0 auto; width: max-content; min-width: 100%; } }
@media (max-width: 760px) { .org-tree .org__card { width: 250px; max-width: none; } .org-tree { overflow-x: auto; } }
.org-tree .org__card { height: 150px; min-height: 0; }
@media (max-width: 760px) { .org { padding: 0 6px; } .org-find { margin-left: 6px; } }

/* Leave > Who's off: a month grid on wide screens, a list of days on phones */
.lc-month { align-self: center; min-width: 140px; text-align: center; font-weight: 500; }
.lc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.lc-wd { font-size: 11.5px; text-align: center; opacity: .75; padding: 4px 0; }
.lc-cell { display: flex; flex-direction: column; align-items: stretch; gap: 3px; min-height: 92px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: inherit; font: inherit; text-align: left; cursor: pointer; overflow: hidden; }
.lc-cell:hover, .lc-cell:focus-visible { border-color: var(--ac); }
.lc-cell.is-blank { background: none; border-color: transparent; cursor: default; }
.lc-cell.is-today { border-color: var(--ac); box-shadow: inset 0 0 0 1px var(--ac); }
.lc-n { font-size: 12px; font-weight: 600; }
.lc-hol { font-size: 10.5px; color: var(--ac-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-who { display: block; font-size: 11.5px; padding: 1px 6px; border-radius: 999px; background: rgba(255,255,255,.1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-who.is-me { background: var(--ac); color: #fff; }
.lc-who.is-wait { background: none; border: 1px dashed var(--line); }
.lc-more { font-size: 11px; opacity: .8; }
.lc-list { display: none; }
.lc-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); margin-bottom: 8px; }
.lc-row b { flex: 1 0 100%; font-weight: 500; font-size: 13px; }
.lc-row .lc-who { font-size: 12.5px; padding: 3px 9px; white-space: normal; }
.lc-key { margin-top: 10px; }
@media (max-width: 760px) {
  .lc-grid { display: none; }
  .lc-list { display: block; }
  .lc-month { min-width: 0; flex: 1; }
}
/* Payroll > Check changes: a wider window, tighter headings */
.dtr-modal__card.pay-var { width: min(820px, 100%); }
.pay-var h4 { margin: 4px 0 0; font-size: 14px; font-weight: 600; }
.pay-var .ir-text { margin: 0; }
.pay-var .dtr-was { white-space: normal; }
/* a text link inside a note, such as Open Pay profiles */
.ux-link { padding: 0; border: 0; background: none; color: var(--ac-text); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.ux-link:focus-visible { outline: 2px solid var(--ac-text); outline-offset: 2px; border-radius: 4px; }
/* Employees > Employment status and movements */
.mv-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; }
.mv-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; flex: 1 1 260px; }
.mv-top .ux-note { margin: 0; flex: 1 1 100%; order: 3; }
.mv-add { margin-left: auto; }
.mv-group { border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px 12px; margin: 0; min-width: 0; }
.mv-group legend { padding: 0 6px; font-size: 12.5px; font-weight: 600; }
/* Payroll > Benefits: one row per dependent */
.ben-tabs { margin-bottom: 10px; }
.ben-dep { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 6px; align-items: center; margin-bottom: 6px; }
@media (max-width: 560px) { .ben-dep { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* Employees > App access: the Biometric ID and its Save button */
.hr-bio { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-top: 10px; }
.hr-bio .ux-f { flex: 1 1 220px; margin: 0; }
/* Analytics > Dashboard and Reports */
.hd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-top: 12px; }
.hd-grid .hd-wide { grid-column: 1 / -1; }
.hd-reports { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 12px; align-items: start; }
.hd-rlist { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); max-height: 75vh; overflow-y: auto; }
.hd-rlist h4 { margin: 10px 6px 4px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; opacity: .75; }
.hd-rlist h4:first-child { margin-top: 2px; }
.hd-ritem { text-align: left; padding: 7px 10px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.hd-ritem:hover, .hd-ritem:focus-visible { background: rgba(255,255,255,.08); }
.hd-ritem[aria-current="true"] { background: var(--ac); color: #fff; }
.hd-rpick { display: none; margin-bottom: 10px; width: 100%; }
.hd-table { margin-top: 12px; }
@media (max-width: 860px) {
  .hd-reports { grid-template-columns: minmax(0, 1fr); }
  .hd-rlist { display: none; }
  .hd-rpick { display: block; }
  .hd-grid { grid-template-columns: minmax(0, 1fr); }
}
/* Overview: the 12-month charts between the tiles and the lists */
.hh-charts { margin: 12px 0; }
.hh-more { grid-column: 1 / -1; justify-self: end; }/* My HR > My details and Employees > Profile changes (159) */
.pc-wait { border: 1px solid var(--ac); border-radius: 16px; padding: 12px 14px; margin-bottom: 14px; background: rgba(var(--ac-rgb), .1); }
.pc-wait > b { display: block; margin-bottom: 8px; }
.pc-wait .ux-btn { margin-top: 10px; }
.pc-intro { margin: 0 0 10px; }
.pc-group { border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px 12px; margin-bottom: 12px; min-width: 0; }
.pc-group h4, .pc-h { margin: 0 0 8px; font-size: 13.5px; font-weight: 600; }
.pc-h { margin-top: 18px; }
.pc-group .ux-f.is-changed label::after { content: ' · changed'; color: var(--ac-text); font-weight: 600; }
.pc-addr, .pc-note { resize: vertical; min-height: 54px; }
.pc-send { margin-top: 6px; }
.pc-t .pc-to { color: var(--ac-text); font-weight: 600; }
.pc-quote { font-style: italic; margin: 8px 0; }
.pc-chip--no { opacity: .75; }
.pc-card { width: min(760px, 100%); }
.hr-pc--wait { border-color: var(--ac); color: var(--ac-text); }
.hr-personal { margin-top: 12px; }
/* Overview > People insights (188): a heading across the chart grid */
.hh-deep { margin-top: 14px; }
.hh-deep__h { grid-column: 1 / -1; margin: 0; font-size: 14px; font-weight: 600; }
/* Overview: the bar that holds Choose cards (it opens its panel below itself) and the More link or the People insights title */
.hh-cardbar { grid-column: 1 / -1; position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.hh-cardbar > b { font-size: 14px; font-weight: 600; }
.hh-cardbar .rxch-chooser { position: absolute; top: 100%; z-index: 30; }
