/* ---------------------------------------------------------
   Gestione personale — event-log timeline + timesheet grid
   (calendar/turni styles are added by a separate change)
   --------------------------------------------------------- */

/* Stacked status chips inside dense table cells (presenze anomalie). */
.chip-stack { display: flex; flex-wrap: wrap; gap: var(--sp-1); }

/* Event-log: vertical history timeline for presenza/assenza events. */
.event-log {
  list-style: none;
  margin: var(--sp-3) 0 0;
  padding: 0 0 0 var(--sp-4);
  border-left: 2px solid var(--color-border);
  display: grid;
  gap: var(--sp-3);
}
.event-log__item { position: relative; }
.event-log__item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--sp-4) - 5px);
  top: 0.35rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-fill);
  box-shadow: 0 0 0 2px var(--color-surface);
}
.event-log__head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: baseline;
}
.event-log__action {
  font-weight: 600;
  text-transform: capitalize;
  color: var(--color-text);
}
.event-log__meta { font-size: var(--text-xs); color: var(--color-text-muted); }
.event-log__detail {
  margin-top: var(--sp-1);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Timesheet: dipendente × giorno grid; first column pinned while scrolling. */
.timesheet { width: auto; min-width: 0; }
.timesheet th, .timesheet td { white-space: nowrap; text-align: center; }
.timesheet th.timesheet__name,
.timesheet td.timesheet__name {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
  background: var(--color-surface);
  box-shadow: 1px 0 0 var(--color-border);
}
.timesheet thead th { background: var(--accent-soft); }
.timesheet tr.timesheet__footer td {
  font-weight: 600;
  background: var(--accent-soft);
  border-top: 2px solid var(--color-border-strong);
}

