/* ------------------------------------------------------- soporte y versiones */
.support-report { display: grid; gap: 14px; }
.support-scroll {
  overflow: auto; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.support-table { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.25; }
.support-table th, .support-table td {
  padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right;
  color: var(--fg); background: var(--bg-2); white-space: nowrap;
}
.support-table thead th {
  background: var(--bg-3); color: var(--fg-dim); font-size: 11px; letter-spacing: .3px;
  position: sticky; top: 0; z-index: 1;
}
.support-table thead th small { display: block; font-weight: 500; font-size: 10px; }
.support-table th:first-child { text-align: left; position: sticky; left: 0; z-index: 2; }
.support-table thead th:first-child { z-index: 3; }
.support-person { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; }
.support-person > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.support-table td:last-child, .support-table thead th:last-child { border-left: 1px solid var(--line); }
.support-details { display: grid; gap: 8px; }
.support-tasks {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px;
}
.support-tasks > summary { cursor: pointer; font-weight: 600; color: var(--fg); }
.support-tasks > summary:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.support-tasks .support-scroll { margin-top: 8px; box-shadow: none; }
.support-tasks .support-table th:first-child { white-space: normal; min-width: 280px; }
.support-tasks a { color: var(--accent); font-weight: 700; text-decoration: none; }
.support-task-summary { display: block; color: var(--fg-dim); font-weight: 400; }

/* tarjetas y graficas: soporte frente al resto de horas */
.support-card {
  padding: 16px 18px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 12px;
  align-content: start; min-width: 0;
}
.support-card h3, .support-card h4 { margin: 0; font-size: 15px; }
.support-heading { margin: 6px 0 0; font-size: 16px; }
.support-legend-bar { display: flex; justify-content: flex-end; }
.support-kpi { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; color: var(--fg-dim); font-size: 12px; }
.support-kpi b { font-size: 26px; line-height: 1; color: var(--purple); }
.support-hbar-track { height: 14px; background: var(--bg-3); border-radius: 7px; overflow: hidden; }
.support-hbar { display: flex; height: 100%; min-width: 2px; }
.support-people { display: grid; gap: 10px; }
.support-person-row { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) 120px; gap: 12px; align-items: center; }
.support-person-total { text-align: right; line-height: 1.2; }
.support-person-total b { display: block; font-size: 14px; color: var(--fg); }
.support-person-total small { color: var(--fg-dim); font-size: 11px; }
.support-user-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
@media (max-width: 720px) {
  .support-person-row { grid-template-columns: 1fr auto; }
  .support-person-row .support-hbar-track { grid-column: 1 / -1; grid-row: 2; }
}
.support-legend { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-dim); font-size: 12px; }
.support-legend .support-swatch:not(:first-child) { margin-left: 12px; }
.support-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.support-swatch.support, .support-seg.support { background: var(--purple); }
.support-swatch.rest, .support-seg.rest { background: var(--accent-2); }
.support-bars { display: flex; align-items: flex-start; gap: 14px; overflow-x: auto; padding-bottom: 4px; }
.support-bar-col { flex: 1 0 96px; max-width: 180px; display: flex; flex-direction: column; gap: 6px; }
/* La altura fija del hueco y de la etiqueta mantiene todas las barras sobre la misma base. */
.support-bar-slot {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  height: calc(100 * var(--scale, 2.2px) + 40px);
}
.support-bar-top { text-align: center; line-height: 1.2; white-space: nowrap; }
.support-bar-top b { display: block; font-size: 15px; color: var(--fg); }
.support-bar-top small, .support-bar-label small { display: block; color: var(--fg-dim); font-size: 10px; }
.support-bar {
  display: flex; flex-direction: column; height: calc(var(--h) * var(--scale, 2.2px)); min-height: 2px;
  border-bottom: 2px solid var(--line); border-radius: 4px 4px 0 0; overflow: hidden;
}
.support-seg { flex: 1 1 0; min-height: 0; }
.support-bar-label {
  height: 3.9em; overflow: hidden; overflow-wrap: anywhere; line-height: 1.2;
  text-align: center; font-size: 12px; font-weight: 600; color: var(--fg);
}
.support-bars.compact { --scale: 1.3px; gap: 8px; }
.support-bars.compact .support-bar-col { flex: 1 0 52px; max-width: none; }
.support-bars.compact .support-bar-top b { font-size: 12px; }
.support-bars.compact .support-bar-top small, .support-bars.compact .support-bar-label small { font-size: 9px; }
.support-bars.compact .support-bar-label { font-size: 10px; }
