/* PeopleOps-specific layout. Tokens and components come from arvion.css. */

.grid-4 > .card { padding: 16px 18px; }
.grid-4 .stat-value { font-size: 26px; }
.page-head { margin-bottom: 14px; }

/* ---------- onboarding board -------------------------------------------- */
.board.five {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}
.phase-col {
  background: linear-gradient(180deg, rgba(18, 24, 38, 0.65), rgba(11, 15, 26, 0.25));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  min-height: 160px;
}
.phase-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 1px 2px 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.phase-head .name {
  font: 600 10px/1 var(--font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}
.phase-head .count {
  font: 600 10px/1 var(--font-sans);
  color: var(--muted);
  background: var(--surface-3);
  border-radius: 99px;
  padding: 3px 6px;
}
.task-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  margin-bottom: 7px;
}
.task-card.is-overdue { border-left: 2px solid var(--red); }
.task-card.is-done { opacity: 0.55; }
.task-card.is-done .task-label { text-decoration: line-through; }
.task-label { font-size: 12px; font-weight: 600; line-height: 1.35; color: var(--text); }
.task-meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 10px; color: var(--muted); }
.task-owner { border: 1px solid var(--line-strong); border-radius: 99px; padding: 2px 6px; font-size: 9.5px; }
.task-toggle {
  width: 18px; height: 18px; border-radius: 5px; flex: none;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03);
  color: transparent; font-size: 11px; line-height: 1; cursor: pointer;
  display: inline-grid; place-items: center;
}
.task-toggle[aria-checked="true"] { background: var(--green-soft); border-color: rgba(52, 211, 153, 0.5); color: var(--green); }
.task-toggle:hover { border-color: var(--gold-line); }

/* ---------- balances ----------------------------------------------------- */
.balance-row { padding: 9px 0; border-bottom: 1px solid var(--line); }
.balance-row:last-child { border-bottom: 0; }
.balance-row .row { font-size: 12px; }
.balance-num { font: 600 14px/1 var(--font-display); font-variant-numeric: tabular-nums; }

/* ---------- approvals ---------------------------------------------------- */
.approval-card {
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: 14px 16px;
}
.approval-card.has-error { border-left-color: var(--red); }
.approval-dates { font-size: 11.5px; color: var(--muted); }
.approval-note { font-size: 12px; color: var(--text-2); margin-top: 8px; }
.approval-warn {
  margin-top: 8px;
  font-size: 11px;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 8px;
  padding: 6px 9px;
}

/* ---------- calendar ----------------------------------------------------- */
.calendar-head {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 6px;
}
.calendar-head span {
  font: 600 9.5px/1 var(--font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 4px 0;
}
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-day {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 5px 6px;
  background: rgba(6, 9, 16, 0.3);
  overflow: hidden;
}
.cal-day.is-blank { border-color: transparent; background: transparent; }
.cal-day.is-off { background: rgba(255, 255, 255, 0.015); border-style: dashed; }
.cal-day.is-holiday { border-color: var(--gold-line); background: var(--gold-soft); }
.cal-day.is-today { border-color: var(--green); box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.25) inset; }
.cal-num { font: 600 11px/1 var(--font-mono); color: var(--muted); }
.cal-day.is-today .cal-num { color: var(--green); }
.cal-holiday-name { font-size: 9px; color: var(--gold); line-height: 1.25; margin-top: 2px; }
.cal-chip {
  display: block;
  margin-top: 3px;
  font-size: 9.5px;
  line-height: 1.2;
  border-radius: 4px;
  padding: 2px 4px;
  background: var(--surface-3);
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-chip.annual { background: var(--gold-soft); color: var(--gold); }
.cal-chip.sick { background: var(--blue-soft); color: #8fb4ff; }
.cal-chip.casual { background: var(--green-soft); color: var(--green); }
.cal-chip.unpaid { background: var(--red-soft); color: var(--red); }
.cal-more { font-size: 9px; color: var(--muted); margin-top: 3px; }
.cal-legend-item { display: inline-flex; align-items: center; gap: 5px; margin-right: 12px; }
.cal-legend-item i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }

.availability-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 11.5px; }
.availability-row:last-child { border-bottom: 0; }
.availability-row .date { width: 62px; color: var(--muted); font-family: var(--font-mono); font-size: 10.5px; }
.availability-row .progress { flex: 1; height: 6px; }

/* compact person line used in side panels */
.person-line { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.person-line:last-child { border-bottom: 0; }
.person-line .name { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.person-line .sub { font-size: 10.5px; color: var(--muted); }

.board-wrap { overflow-x: auto; }
@media (max-width: 1180px) {
  .board.five { grid-template-columns: repeat(5, 200px); }
}

/* leave form validation */
.validation {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 11.5px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.validation .dot { margin-top: 5px; }
.validation.ok { color: var(--green); border-color: rgba(52, 211, 153, 0.3); background: var(--green-soft); }
.validation.err { color: var(--red); border-color: rgba(248, 113, 113, 0.3); background: var(--red-soft); }
#leave-validation { display: flex; flex-direction: column; gap: 6px; }

/* directory: two compact columns so 14 people fit without pagination */
.directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.dir-row { display: flex; align-items: center; gap: 9px; padding: 7px 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.directory > .dir-row:nth-last-child(-n+2) { border-bottom: 0; }
.dir-name { font-size: 12.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dir-sub { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
