.partner-info {display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:1rem;margin:0}.partner-info dt{color:var(--muted);font-size:.85rem}.partner-info dd{margin:.35rem 0;overflow-wrap:anywhere}.partner-dialog:has([data-results]){width:min(52rem,95vw)}
.partner-list-row { cursor: pointer; }
.partner-list-row:hover { background: var(--hover); }
.hr-filters { display:flex; gap:12px; align-items:end; flex-wrap:wrap; margin:0 0 12px; }
.hr-filters label,.hr-dialog label { display:grid; gap:4px; font-weight:500; }
.hr-filters label { font-size:12px; color:var(--muted); }
.hr-filters small { padding:.6rem 0; color:var(--muted); }
.hr-metrics { display:grid; gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; grid-template-columns:repeat(auto-fit,minmax(110px,1fr)); }
.hr-metrics>div { background:var(--surface); display:grid; gap:.6rem; padding:1rem; }
.hr-metrics small { color:var(--muted); }
.hr-metrics strong { font-size:1.3rem; }
.hr-dialog form,.hr-dialog [data-standard],.hr-dialog [data-manual] { display:grid; gap:.85rem; }
.hr-dialog [hidden] { display:none; }
.hr-dialog { width:min(480px,95vw); max-height:88vh; overflow-y:auto; }
.hr-history { margin-top:1rem; }
.hr-queue { list-style:none; margin:0; padding:0 .8rem .8rem; max-height:12rem; overflow:auto; }
.hr-queue button { display:flex; text-align:left; gap:1rem; width:100%; align-items:baseline; border:0; border-top:1px solid var(--line); cursor:pointer; background:transparent; padding:.6rem; font:inherit; }
.hr-queue time { margin-left:auto; color:var(--muted); white-space:nowrap; }
.hr-history summary { cursor:pointer; font-weight:600; padding:1rem; }
.hr-tabs~.panel td { vertical-align:top; }
.hr-tabs~.panel td small { color:var(--muted); }
.hr-tabs~.panel .back-link { display:block; }
.hr-tabs~.panel td button { margin:2px; }

.hr-dialog .finance-form-fields { display:grid; gap:.85rem; margin:0; padding:0; border:0; min-width:0; }
.invoice-dialog { width:min(620px,95vw); overflow-wrap:anywhere; }
.invoice-dialog .invoice-picker { margin:16px 0; }
.invoice-filters { display:flex; flex-wrap:wrap; align-items:center; gap:8px; min-width:0; }
.invoice-filters > label { flex:1 1 100%; min-width:0; }
.invoice-filters input[type="search"] { width:100%; }
.invoice-choices { list-style:none; padding:0; margin:0; max-height: min(42vh,320px); overflow-y:auto; }
.invoice-dialog .invoice-choices label {
  display:flex; align-items:center; gap:8px; min-height:44px;
  padding:8px 0; border-bottom:1px solid var(--line-soft);
}
.invoice-choices input[type="checkbox"] { flex:none; margin:0; }
.invoice-choices label span { flex:1; min-width:0; }
.invoice-choices label small { display:block; }
.invoice-choices label b { white-space:nowrap; font-variant-numeric:tabular-nums; }
.invoice-totals { display:flex; flex-wrap:wrap; gap:4px 16px; font-variant-numeric:tabular-nums; }
.invoice-month-totals span { display:inline-block; max-width:100%; }
.contract-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.contract-line small, .muted-text { color: var(--muted); }
.hr-tabs~.panel td { vertical-align: middle; }
.hr-tabs~.panel td button { margin: 0; }

.hr-process-head .toolbar:empty { display: none; }
.hr-process-board { gap: 16px; }
.hr-process-board :is(.panel-head h2 small, .hr-process-summary small, .hr-process-step small) {
  color: var(--muted);
  font-weight: 400;
}
.hr-process-board .panel-head h2 small { font-size: 13px; margin-left: 4px; }
.hr-process-empty { margin: 0; padding: 16px 20px; color: var(--muted); font-size: 13px; }
.hr-process-entry + .hr-process-entry, .hr-process-ready + .hr-process-ready { border-top: 1px solid var(--line-soft); }
.hr-process-summary, .hr-process-system, .hr-process-step {
  display: grid;
  grid-template-columns: 20px 200px minmax(0,1fr) auto;
  align-items: center;
  gap: 4px 12px;
  padding-inline: 20px;
}
.hr-process-summary {
  min-height: 56px;
  padding-block: 6px;
  list-style: none;
  font-size: 13px;
}
.hr-process-entry > summary, .hr-process-archive > summary { cursor: pointer; }
.hr-process-summary::-webkit-details-marker, .hr-process-archive > summary::-webkit-details-marker { display: none; }
.hr-process-board summary::before {
  content: '';
  grid-column: 1;
  justify-self: center;
  margin: 0;
  width: 6px;
  height: 6px;
  border: solid var(--muted);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(-45deg);
}
.hr-process-board details[open] > summary::before { transform: rotate(45deg); }
.hr-process-board summary:hover::before { border-color: var(--ink); opacity: 1; }
.hr-process-board summary:focus-visible { outline-offset: -2px; }
.hr-process-person { display: grid; grid-column: 2; min-width: 0; }
.hr-process-person strong { font-size: 14px; font-weight: 600; }
.hr-process-summary small, .hr-process-step small { font-size: 12px; line-height: 16px; }
.hr-process-date { grid-column: 3; min-width: 0; font-weight: 500; }
.hr-process-date > small { margin-left: 6px; }
.hr-process-date .hr-process-next { display: none; margin-left: 0; }
.hr-process-entry:not([open]) .hr-process-next { display: block; }
.hr-process-progress-group, .hr-process-progress { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; }
.hr-process-progress-group { grid-column: 4; }
.hr-process-progress { color: var(--ink-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.hr-process-count { min-width: 28px; text-align: right; }
.hr-process-segments { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-width: 0; }
.hr-process-segments i { width: 12px; height: 4px; border-radius: 2px; background: rgba(23,23,23,.14); }
.hr-process-segments .is-done, .hr-process-step.is-done .hr-process-step-icon { background: #525252; }
:root[data-theme="dark"] .hr-process-segments i:not(.is-done, .is-late) { background: var(--line-strong); }
:root[data-theme="dark"] .hr-process-segments .is-done { background: var(--muted); }
.hr-process-segments .is-late { background: var(--danger); }
.hr-process-ready > .hr-process-actions, .hr-process-completed { grid-column: 4; justify-self: end; }
.hr-process-board .panel-head + .hr-process-ready { padding-top: 6px; }
.hr-process-completed { color: var(--muted); }
.hr-process-archive:not([open]) > summary { border-bottom: 0; }
.hr-process-archive > summary { display: flex; justify-content: flex-start; gap: 8px; }
.hr-process-archive > summary::before { order: 1; flex: none; }
.hr-process-system {
  min-height: 44px;
  padding-block: 5px;
  background: var(--canvas);
  border-block: 1px solid var(--line-soft);
  word-break: keep-all;
}
.hr-process-system > span { grid-column: 2; color: var(--muted); font-size: 12px; font-weight: 500; }
.hr-process-system > strong { grid-column: 3; font-size: 13px; font-weight: 500; }
.hr-process-actions { grid-column: 4; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px 10px; }
.hr-process-link { display: inline-flex; align-items: center; min-height: 28px; color: var(--accent); font-family: inherit; font-size: 12px; font-weight: 500; text-decoration: none; }
.hr-process-link:hover { color: var(--accent-ink); text-decoration: underline; }
@media (any-pointer: coarse) { .hr-process-link { min-height: 44px; } }
button.hr-process-link { border: 0; padding: 0; background: transparent; cursor: pointer; }
.hr-process-steps { list-style: none; margin: 0; padding: 0; }
.hr-process-step {
  min-height: 44px;
  border-bottom: 1px solid var(--line-soft);
}
.hr-process-archive .hr-process-step:last-child { border-bottom: 0; }
.hr-process-step-icon { grid-column: 1; justify-self: center; display: grid; place-items: center; width: 16px; height: 16px; border: 1.5px solid #a3a3a3; border-radius: 50%; }
.hr-process-step.is-done .hr-process-step-icon { border-color: #525252; }
.hr-process-step.is-done .hr-process-step-icon::after { content: ''; width: 8px; height: 4px; border: solid white; border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); }
.hr-process-step-name { display: contents; font-size: 13px; font-weight: 400; word-break: keep-all; overflow-wrap: anywhere; }
.hr-process-step-name > span { grid-column: 2; }
.hr-process-step-name > small { grid-column: 3; }
.hr-process-step-name > span > small { margin-left: 6px; }
.hr-process-step.is-done .hr-process-step-name > span { color: var(--muted); }
.hr-process-board .hr-process-step-name .is-late { color: var(--danger); font-weight: 500; }
button.hr-process-add { margin: 0 20px 0 52px; min-height: 44px; }
.hr-dialog .hr-process-checklist label { display: grid; grid-template-columns: 16px minmax(0,1fr) auto; align-items: center; gap: 8px; min-height: 36px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.hr-dialog .hr-process-checklist label:last-child { border-bottom: 0; }
.hr-process-checklist label input[type=checkbox] { margin: 0; width: 16px; height: 16px; min-height: 0; }
.hr-process-checklist small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.hr-dialog.hr-process-leave-dialog { margin-top: max(24px,10vh); max-height: calc(100dvh - max(24px,10vh) - 16px); }
.hr-dialog.hr-process-leave-dialog form, .hr-dialog.hr-process-leave-dialog .finance-form-fields { gap: 16px; }
.hr-process-leave-dialog .notice { margin: 0; }
.hr-process-leave-preview { margin: 0; padding: 10px 12px; min-height: 60px; border-radius: 8px; background: var(--raised); color: var(--ink-2); font-size: 13px; }
.hr-process-leave-preview p { color: inherit; }
.hr-process-leave-preview strong { color: var(--ink); font-weight: 500; }
.hr-process-confirm-person { margin: -8px 0 16px; color: var(--muted); font-size: 13px; }
.hr-process-dialog-actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 600px) {
  .hr-process-head .toolbar { width: 100%; }
  .hr-process-head .toolbar .button { flex: 1; min-height: 44px; }
  .hr-process-summary, .hr-process-system, .hr-process-step { grid-template-columns: 20px minmax(0,1fr) minmax(0,1fr) auto; column-gap: 8px; }
  .hr-process-summary { min-height: 64px; }
  .hr-process-date { grid-column: 3 / -1; justify-self: end; text-align: right; }
  .hr-process-progress-group, .hr-process-ready > .hr-process-actions, .hr-process-completed { grid-row: 2; grid-column: 2 / -1; }
  .hr-process-ready .button { min-height: 44px; }
  .hr-process-system { grid-template-columns: 20px auto minmax(0,1fr); }
  .hr-process-system > strong { grid-row: 2; grid-column: 2 / -1; }
  .hr-process-system > .hr-process-actions { grid-row: 1; grid-column: 3; flex-wrap: nowrap; justify-self: end; }
  .hr-process-step { padding-block: 6px; }
  .hr-process-step-name { display: flex; flex-direction: column; grid-column: 2 / 4; gap: 2px; min-width: 0; }
  .hr-process-step .button { min-height: 44px; }
  .hr-process-step .hr-process-actions { max-width: 140px; }
  button.hr-process-add { margin-left: 48px; }
}
