/* ==========================================================================
   HoraFlow — Design System (UI-036)
   Tokens, componentes base y utilidades responsive.
   Paleta reutilizada de horaflow-theme.css (admin).
   ========================================================================== */

:root {
  /* Brand */
  --hf-primary: #1565C0;
  --hf-primary-dark: #0D47A1;
  --hf-primary-light: #1E88E5;
  --hf-accent: #00ACC1;
  --hf-accent-dark: #00838F;
  --hf-success: #43A047;
  --hf-warning: #FB8C00;
  --hf-danger: #E53935;

  /* Backgrounds */
  --hf-bg-main: #F0F2F5;
  --hf-bg-card: #FFFFFF;
  --hf-bg-sidebar: #1B2838;
  --hf-bg-input: #FAFBFC;

  /* Text */
  --hf-text: #263238;
  --hf-text-secondary: #607D8B;
  --hf-text-light: #FFFFFF;
  --hf-text-muted: #90A4AE;

  /* Borders */
  --hf-border: #DFE3E8;
  --hf-border-light: #F0F2F5;

  /* Shadows */
  --hf-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --hf-shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --hf-shadow-lg: 0 8px 24px rgba(0,0,0,0.12);

  /* Radius */
  --hf-radius: 8px;
  --hf-radius-sm: 4px;
  --hf-radius-lg: 12px;
  --hf-radius-full: 999px;

  /* Spacing scale (rem, base 16px) */
  --hf-space-1: 0.25rem;
  --hf-space-2: 0.5rem;
  --hf-space-3: 0.75rem;
  --hf-space-4: 1rem;
  --hf-space-5: 1.5rem;
  --hf-space-6: 2rem;
  --hf-space-7: 3rem;
  --hf-space-8: 4rem;

  /* Type */
  --hf-font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --hf-text-xs: 0.75rem;
  --hf-text-sm: 0.875rem;
  --hf-text-base: 1rem;
  --hf-text-lg: 1.125rem;
  --hf-text-xl: 1.375rem;
  --hf-text-2xl: 1.75rem;

  /* Breakpoints */
  --hf-bp-mobile: 640px;
  --hf-bp-tablet: 1024px;
}

/* Dark theme */
[data-theme="dark"] {
  --hf-bg-main: #0F172A;
  --hf-bg-card: #1E293B;
  --hf-bg-sidebar: #0B1220;
  --hf-bg-input: #263449;
  --hf-text: #E2E8F0;
  --hf-text-secondary: #94A3B8;
  --hf-text-light: #FFFFFF;
  --hf-text-muted: #64748B;
  --hf-border: #334155;
  --hf-border-light: #1E293B;
  --hf-shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --hf-shadow-md: 0 4px 12px rgba(0,0,0,0.5);
  --hf-shadow-lg: 0 8px 24px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--hf-font);
  font-size: var(--hf-text-base);
  color: var(--hf-text);
  background: var(--hf-bg-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0 0 var(--hf-space-3); font-weight: 700; line-height: 1.25; }
h1 { font-size: var(--hf-text-2xl); }
h2 { font-size: var(--hf-text-xl); }
h3 { font-size: var(--hf-text-lg); }
h4 { font-size: var(--hf-text-base); }
p { margin: 0 0 var(--hf-space-4); }

a { color: var(--hf-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Grid responsive ─────────────────────────────────────────────── */
.hf-grid { display: grid; gap: var(--hf-space-4); }
.hf-grid-2 { grid-template-columns: repeat(2, 1fr); }
.hf-grid-3 { grid-template-columns: repeat(3, 1fr); }
.hf-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 640px) {
  .hf-grid-2, .hf-grid-3, .hf-grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .hf-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hf-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Cards ───────────────────────────────────────────────────────── */
.hf-card {
  background: var(--hf-bg-card);
  border-radius: var(--hf-radius-lg);
  box-shadow: var(--hf-shadow-sm);
  border: 1px solid var(--hf-border-light);
  padding: var(--hf-space-5);
}
.hf-card + .hf-card { margin-top: var(--hf-space-4); }
.hf-card__title {
  font-size: var(--hf-text-lg);
  font-weight: 700;
  margin-bottom: var(--hf-space-4);
  display: flex;
  align-items: center;
  gap: var(--hf-space-2);
}
.hf-card__title .hf-icon { font-size: 1.2em; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.hf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--hf-space-2);
  padding: var(--hf-space-2) var(--hf-space-4);
  border-radius: var(--hf-radius);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: var(--hf-text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--hf-transition, all 0.2s ease);
  text-decoration: none;
  line-height: 1.4;
}
.hf-btn:hover { text-decoration: none; transform: translateY(-1px); }
.hf-btn:focus-visible { outline: 2px solid var(--hf-primary-light); outline-offset: 2px; }
.hf-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.hf-btn--primary { background: var(--hf-primary); color: #fff; }
.hf-btn--primary:hover { background: var(--hf-primary-dark); }
.hf-btn--secondary { background: transparent; border-color: var(--hf-border); color: var(--hf-text); }
.hf-btn--secondary:hover { background: var(--hf-bg-input); }
.hf-btn--danger { background: var(--hf-danger); color: #fff; }
.hf-btn--danger:hover { opacity: 0.9; }
.hf-btn--ghost { background: transparent; color: var(--hf-text-secondary); }
.hf-btn--ghost:hover { background: var(--hf-bg-input); }
.hf-btn--sm { padding: var(--hf-space-1) var(--hf-space-3); font-size: var(--hf-text-xs); }
.hf-btn--lg { padding: var(--hf-space-3) var(--hf-space-6); font-size: var(--hf-text-base); }
.hf-btn--block { width: 100%; }

/* ── Forms ───────────────────────────────────────────────────────── */
.hf-form-group { margin-bottom: var(--hf-space-4); }
.hf-label { display: block; font-size: var(--hf-text-sm); font-weight: 600; margin-bottom: var(--hf-space-1); }
.hf-input, .hf-select, .hf-textarea {
  width: 100%;
  padding: var(--hf-space-2) var(--hf-space-3);
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius);
  background: var(--hf-bg-input);
  color: var(--hf-text);
  font-family: inherit;
  font-size: var(--hf-text-base);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.hf-input:focus, .hf-select:focus, .hf-textarea:focus {
  outline: none;
  border-color: var(--hf-primary);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.15);
}
.hf-input--error { border-color: var(--hf-danger); }
.hf-error { color: var(--hf-danger); font-size: var(--hf-text-sm); margin-top: var(--hf-space-1); }

/* ── Table ───────────────────────────────────────────────────────── */
.hf-table-wrap { overflow-x: auto; }
.hf-table { width: 100%; border-collapse: collapse; font-size: var(--hf-text-sm); }
.hf-table th {
  text-align: left;
  padding: var(--hf-space-2) var(--hf-space-3);
  font-weight: 600;
  color: var(--hf-text-secondary);
  border-bottom: 2px solid var(--hf-border);
  white-space: nowrap;
}
.hf-table td {
  padding: var(--hf-space-2) var(--hf-space-3);
  border-bottom: 1px solid var(--hf-border-light);
  vertical-align: middle;
}
.hf-table tbody tr:hover { background: var(--hf-bg-input); }

/* ── Badges ──────────────────────────────────────────────────────── */
.hf-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--hf-radius-full);
  font-size: var(--hf-text-xs);
  font-weight: 600;
}
.hf-badge--blue { background: #E3F2FD; color: #1565C0; }
.hf-badge--teal { background: #E0F7FA; color: #00838F; }
.hf-badge--green { background: #E8F5E9; color: #2E7D32; }
.hf-badge--orange { background: #FFF3E0; color: #E65100; }
.hf-badge--red { background: #FFEBEE; color: #C62828; }
.hf-badge--gray { background: #ECEFF1; color: #546E7A; }
[data-theme="dark"] .hf-badge--blue { background: #0D47A1; color: #E3F2FD; }
[data-theme="dark"] .hf-badge--teal { background: #00695C; color: #E0F7FA; }
[data-theme="dark"] .hf-badge--green { background: #1B5E20; color: #E8F5E9; }
[data-theme="dark"] .hf-badge--orange { background: #E65100; color: #FFF3E0; }
[data-theme="dark"] .hf-badge--red { background: #B71C1C; color: #FFEBEE; }
[data-theme="dark"] .hf-badge--gray { background: #37474F; color: #ECEFF1; }

/* ── KPI / stat ──────────────────────────────────────────────────── */
.hf-kpi { text-align: left; }
.hf-kpi__label { font-size: var(--hf-text-sm); color: var(--hf-text-secondary); font-weight: 600; }
.hf-kpi__value { font-size: 1.9rem; font-weight: 800; margin-top: var(--hf-space-1); color: var(--hf-text); }
.hf-kpi__hint { font-size: var(--hf-text-xs); color: var(--hf-text-muted); margin-top: 2px; }

/* ── Layout (UI-038) ─────────────────────────────────────────────── */
.hf-app { display: flex; min-height: 100vh; }

.hf-sidebar {
  width: 250px;
  background: var(--hf-bg-sidebar);
  color: var(--hf-text-light);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.hf-sidebar__brand {
  display: flex;
  align-items: center;
  gap: var(--hf-space-2);
  padding: var(--hf-space-5);
  font-size: var(--hf-text-lg);
  font-weight: 800;
}
.hf-sidebar__brand img { height: 32px; width: 32px; border-radius: 8px; }
.hf-sidebar__nav { flex: 1; padding: var(--hf-space-2); overflow-y: auto; }
.hf-sidebar__section { padding: var(--hf-space-3) var(--hf-space-3) var(--hf-space-1); font-size: var(--hf-text-xs); color: #8CA0B8; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.hf-nav-link {
  display: flex;
  align-items: center;
  gap: var(--hf-space-3);
  padding: var(--hf-space-2) var(--hf-space-3);
  border-radius: var(--hf-radius);
  color: #C3D0E0;
  font-size: var(--hf-text-sm);
  font-weight: 500;
  margin-bottom: 2px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.hf-nav-link:hover { background: rgba(255,255,255,0.08); text-decoration: none; color: #fff; }
.hf-nav-link.active { background: var(--hf-primary); color: #fff; }
.hf-nav-link .hf-icon { width: 20px; text-align: center; }
.hf-sidebar__user {
  padding: var(--hf-space-4) var(--hf-space-5);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: var(--hf-text-sm);
}
.hf-sidebar__user-name { font-weight: 600; }
.hf-sidebar__user-role { color: #8CA0B8; font-size: var(--hf-text-xs); }

.hf-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.hf-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--hf-space-4) var(--hf-space-6);
  background: var(--hf-bg-card);
  border-bottom: 1px solid var(--hf-border-light);
}
.hf-topbar__title { font-size: var(--hf-text-lg); font-weight: 700; }
.hf-topbar__actions { display: flex; align-items: center; gap: var(--hf-space-3); }
.hf-content { padding: var(--hf-space-6); flex: 1; }

/* Theme toggle */
.hf-theme-toggle {
  background: transparent;
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius);
  padding: 6px 10px;
  cursor: pointer;
  font-size: var(--hf-text-base);
  color: var(--hf-text);
}

/* Bell / notificaciones */
.hf-bell { position: relative; }
.hf-bell__btn {
  background: transparent;
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius);
  padding: 6px 10px;
  cursor: pointer;
  font-size: var(--hf-text-base);
  position: relative;
}
.hf-bell__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: var(--hf-radius-full);
  background: var(--hf-danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.hf-bell__dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 320px;
  max-height: 360px;
  overflow-y: auto;
  background: var(--hf-bg-card);
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-lg);
  box-shadow: var(--hf-shadow-lg);
  z-index: 50;
  display: none;
}
.hf-bell__dropdown.open { display: block; }
.hf-bell__item {
  display: block;
  padding: var(--hf-space-3) var(--hf-space-4);
  border-bottom: 1px solid var(--hf-border-light);
  color: var(--hf-text);
  text-decoration: none;
}
.hf-bell__item:hover { background: var(--hf-bg-input); text-decoration: none; }
.hf-bell__item strong { display: block; font-size: var(--hf-text-sm); }
.hf-bell__item span { display: block; font-size: var(--hf-text-xs); color: var(--hf-text-secondary); margin-top: 2px; }
.hf-bell__item small { color: var(--hf-text-muted); font-size: 0.7rem; }
.hf-bell__item--unread { background: rgba(21, 101, 192, 0.06); }
.hf-bell__empty { padding: var(--hf-space-4); text-align: center; color: var(--hf-text-muted); font-size: var(--hf-text-sm); }

/* ── Org chart (G16) ──────────────────────────────────────────────── */
.hf-org {
  overflow-x: auto;
  padding: var(--hf-space-2) 0 var(--hf-space-6);
}
.hf-org-tree {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--hf-space-6);
  min-width: max-content;
}
.hf-org-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.hf-org-children {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--hf-space-4);
  list-style: none;
  margin: 0;
  padding: 30px 0 0;
  position: relative;
  transition: opacity 0.2s ease;
}
/* Línea vertical desde el nodo padre hasta la fila de hijos */
.hf-org-branch > .hf-org-children::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 30px;
  background: var(--hf-border);
}
/* Línea vertical de caída de cada hijo */
.hf-org-children > li::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 30px;
  background: var(--hf-border);
}
/* Línea horizontal entre hermanos (mitad izquierda y mitad derecha) */
.hf-org-children > li::before {
  content: '';
  position: absolute;
  top: 0;
  right: 50%;
  width: 50%;
  height: 2px;
  background: var(--hf-border);
}
.hf-org-children > li:first-child::before {
  left: 50%;
  right: auto;
  width: 50%;
}
.hf-org-children > li:only-child::before {
  display: none;
}
.hf-org-children > li:only-child::after {
  left: 50%;
}
.hf-org-children.collapsed {
  display: none;
}
/* Tarjeta de nodo */
.hf-org-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--hf-space-3) var(--hf-space-4);
  background: var(--hf-bg-card);
  border: 1px solid var(--hf-border-light);
  border-radius: var(--hf-radius-lg);
  box-shadow: var(--hf-shadow-sm);
  min-width: 150px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  z-index: 1;
}
.hf-org-node:hover {
  transform: translateY(-2px);
  box-shadow: var(--hf-shadow-md);
}
.hf-org-node--root {
  min-width: 190px;
  border-color: var(--hf-primary);
  background: linear-gradient(180deg, rgba(21, 101, 192, 0.06), transparent);
}
.hf-org-node--root .hf-org-node__avatar {
  width: 46px;
  height: 46px;
  font-size: var(--hf-text-lg);
}
.hf-org-node__avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--hf-radius-full);
  background: linear-gradient(135deg, var(--hf-primary), var(--hf-accent));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--hf-text-base);
  box-shadow: var(--hf-shadow-sm);
}
.hf-org-node__name {
  font-weight: 700;
  font-size: var(--hf-text-sm);
  text-align: center;
  line-height: 1.3;
}
.hf-org-node__meta {
  font-size: var(--hf-text-xs);
  color: var(--hf-text-secondary);
  text-align: center;
}
.hf-org-toggle {
  position: absolute;
  top: -10px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: var(--hf-radius-full);
  background: var(--hf-primary);
  color: #fff;
  font-size: var(--hf-text-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--hf-shadow-sm);
  cursor: pointer;
  user-select: none;
  z-index: 2;
}
.hf-org-legend {
  display: flex;
  gap: var(--hf-space-4);
  justify-content: center;
  flex-wrap: wrap;
  font-size: var(--hf-text-xs);
  color: var(--hf-text-secondary);
  margin-top: var(--hf-space-2);
}

/* ── Modal ───────────────────────────────────────────────────────── */
.hf-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.hf-modal-backdrop.open { opacity: 1; pointer-events: auto; }
.hf-modal {
  background: var(--hf-bg-card);
  border-radius: var(--hf-radius-lg);
  box-shadow: var(--hf-shadow-lg);
  max-width: 480px;
  width: 90%;
  padding: var(--hf-space-5);
}
.hf-modal__title { font-size: var(--hf-text-lg); font-weight: 700; margin-bottom: var(--hf-space-3); }
.hf-modal__actions { display: flex; justify-content: flex-end; gap: var(--hf-space-2); margin-top: var(--hf-space-4); }

/* ── Toast ───────────────────────────────────────────────────────── */
.hf-toast-wrap { position: fixed; top: var(--hf-space-4); right: var(--hf-space-4); z-index: 200; display: flex; flex-direction: column; gap: var(--hf-space-2); }
.hf-toast {
  background: var(--hf-bg-card);
  border-left: 4px solid var(--hf-primary);
  box-shadow: var(--hf-shadow-md);
  border-radius: var(--hf-radius);
  padding: var(--hf-space-3) var(--hf-space-4);
  font-size: var(--hf-text-sm);
  min-width: 260px;
  animation: hf-slide-in 0.25s ease;
}
.hf-toast--success { border-left-color: var(--hf-success); }
.hf-toast--error { border-left-color: var(--hf-danger); }
@keyframes hf-slide-in { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── Misc ────────────────────────────────────────────────────────── */
.hf-muted { color: var(--hf-text-muted); }
.hf-secondary { color: var(--hf-text-secondary); }
.hf-center { text-align: center; }
.hf-flex { display: flex; align-items: center; gap: var(--hf-space-3); }
.hf-flex-between { display: flex; align-items: center; justify-content: space-between; }
.hf-mt-4 { margin-top: var(--hf-space-4); }
.hf-mb-4 { margin-bottom: var(--hf-space-4); }

.hf-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--hf-radius-full);
  background: linear-gradient(135deg, var(--hf-primary), var(--hf-accent));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--hf-text-sm);
  flex-shrink: 0;
}

.hf-empty {
  text-align: center;
  padding: var(--hf-space-7) var(--hf-space-4);
  color: var(--hf-text-muted);
}
.hf-empty__icon { font-size: 2.5rem; margin-bottom: var(--hf-space-2); }

/* Clock-in hero (UI-039) */
.hf-clock-hero {
  text-align: center;
  padding: var(--hf-space-7);
}
.hf-clock-time { font-size: 3.5rem; font-weight: 800; line-height: 1; }
.hf-clock-date { color: var(--hf-text-secondary); margin-top: var(--hf-space-2); }
.hf-clock-buttons { display: flex; gap: var(--hf-space-3); justify-content: center; margin-top: var(--hf-space-5); flex-wrap: wrap; }
.hf-geo-status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--hf-text-xs); margin-top: var(--hf-space-3); color: var(--hf-text-secondary); }
.hf-geo-status .hf-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hf-success); display: inline-block; }

/* Calendar (UI-041) */
.hf-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.hf-cal-dow { font-size: var(--hf-text-xs); font-weight: 700; color: var(--hf-text-secondary); text-align: center; padding: var(--hf-space-1); }
.hf-cal-day {
  border: 1px solid var(--hf-border-light);
  border-radius: var(--hf-radius);
  min-height: 72px;
  padding: var(--hf-space-1);
  font-size: var(--hf-text-xs);
  background: var(--hf-bg-card);
}
.hf-cal-day.today { border-color: var(--hf-primary); box-shadow: 0 0 0 2px rgba(21,101,192,0.2); }
.hf-cal-day.other-month { opacity: 0.4; }
.hf-cal-shift {
  display: block;
  margin-top: 2px;
  padding: 1px 6px;
  border-radius: var(--hf-radius-sm);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}
.hf-cal-shift--morning { background: #E3F2FD; color: #0D47A1; }
.hf-cal-shift--afternoon { background: #FFF3E0; color: #E65100; }
.hf-cal-shift--night { background: #EDE7F6; color: #4527A0; }
.hf-cal-shift--rotating { background: #E0F7FA; color: #00695C; }
[data-theme="dark"] .hf-cal-shift--morning { background: #0D47A1; color: #E3F2FD; }
[data-theme="dark"] .hf-cal-shift--afternoon { background: #E65100; color: #FFF3E0; }
[data-theme="dark"] .hf-cal-shift--night { background: #4527A0; color: #EDE7F6; }
[data-theme="dark"] .hf-cal-shift--rotating { background: #00695C; color: #E0F7FA; }
/* Ausencias aprobadas en el calendario */
.hf-cal-absence {
  display: block;
  margin-top: 2px;
  padding: 1px 6px;
  border-radius: var(--hf-radius-sm);
  font-size: 10px;
  font-weight: 600;
  background: #E0F7FA;
  color: #00695C;
  border: 1px dashed #00838F;
  white-space: nowrap;
  overflow: hidden;
}
[data-theme="dark"] .hf-cal-absence {
  background: #004D40;
  color: #B2DFDB;
  border-color: #00838F;
}

/* Login (UI-037) */
.hf-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--hf-primary-dark) 0%, var(--hf-primary) 55%, var(--hf-accent-dark) 100%);
  padding: var(--hf-space-4);
}
.hf-login-card {
  background: var(--hf-bg-card);
  border-radius: var(--hf-radius-lg);
  box-shadow: var(--hf-shadow-lg);
  padding: var(--hf-space-6);
  width: 100%;
  max-width: 400px;
}
.hf-login-brand { text-align: center; margin-bottom: var(--hf-space-5); }
.hf-login-brand img { height: 48px; width: 48px; border-radius: 12px; }
.hf-login-brand h1 { font-size: var(--hf-text-xl); margin-top: var(--hf-space-3); }
.hf-login-brand p { color: var(--hf-text-secondary); font-size: var(--hf-text-sm); margin: 0; }
