/* HR & payroll hero window: check-ins fill a week grid, a leave request is approved, the payroll run builds a
   payslip. Shell and tokens (.app, .app__bar, .status, .mod, .post__icon, .items) come from /style.css. */
.hr .app__main { gap: 10px; }
.hr-crumb-root { display: inline-flex; align-items: center; gap: 4px; }
.hr .side__pill { transform: translateY(64px); } /* the finished state rests on Payroll, the third module (30px rows, 2px gap) */
.hr-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.hr-card__head { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.hr-card__head b { font-weight: 600; white-space: nowrap; }
.hr-card__head > span { min-width: 0; margin-left: auto; overflow: hidden; color: var(--muted-fg); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

/* Week grid: one row per employee, one cell per day; empty, checked in, or on leave */
.hr-week { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.hr-week th { height: 26px; color: var(--muted-fg); font-weight: 500; text-align: center; }
.hr-week thead th { background: var(--sunk); border-bottom: 1px solid var(--line); }
.hr-week thead th:first-child { width: 74px; }
.hr-week tbody th { padding: 0 12px; color: var(--fg); font-weight: 600; text-align: left; white-space: nowrap; }
.hr-week td { height: 30px; padding: 0; text-align: center; vertical-align: middle; } /* style.css pads every td for its comparison table */
.hr-week tbody tr + tr { border-top: 1px solid var(--line); }
.hr-day { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1.5px dashed #d4d4d8; border-radius: 6px; vertical-align: middle; }
.hr-day svg { width: 12px; height: 12px; stroke-width: 2.5; opacity: 0; }
.hr-day.is-in { border: 0; background: var(--ok-bg); color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok-line); }
.hr-day.is-off { border: 0; background: var(--coral); color: var(--fg); }
.hr-day.is-in svg, .hr-day.is-off svg { opacity: 1; }

/* Leave request and payslip side by side; they stack when the window is narrow */
.hr-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.hr-leave { display: grid; grid-template-rows: auto 1fr auto; }
.hr-card__head .hr-chip { flex: none; overflow: visible; height: 20px; padding: 0 7px; border: 1px solid; border-radius: 6px; font-size: 11.5px; font-weight: 600; line-height: 18px; }
.hr-chip.is-ok { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.hr-chip.is-wait { color: var(--wait); background: var(--wait-bg); border-color: var(--wait-line); }
.hr-req { display: grid; align-content: center; gap: 2px; min-width: 0; padding: 8px 12px; }
.hr-req b { font-weight: 600; }
.hr-req > span { display: flex; align-items: center; gap: 6px; min-height: 17px; color: var(--muted-fg-2); font-size: 12px; white-space: nowrap; }
.hr-key { flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--coral); }
.hr-req__txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hr-appr { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 8px; height: 31px; padding: 0 12px; border-top: 1px solid var(--line); }
.hr-appr b { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.hr-appr time { color: var(--muted-fg); font-size: 12px; font-variant-numeric: tabular-nums; }
.hr-slip td { padding-block: 5px; white-space: nowrap; }
.hr-slip td:first-child { color: var(--muted-fg-2); }
.hr-slip .hr-net td { padding-block: 7px; border-top: 1px solid var(--line); color: var(--fg); font-weight: 700; }

@media (max-width: 600px) {
  .hr-appr .post__icon { grid-area: auto; } /* style.css names this area for the home console's rows */
}
@media (max-width: 400px) {
  .hr .app__bar { gap: 8px; padding: 0 12px; }
  .hr-crumb-root { display: none; } /* the module name alone, so the status badge keeps its room */
  .hr-week thead th:first-child { width: 64px; }
  .hr-week tbody th { padding: 0 8px; }
  .hr-slip td { padding-inline: 10px; }
}
