/* HR — patrones Vacation Manager adaptados a tokens Íntimo */
.hr-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0.35rem;
  background: #fff;
  border-radius: var(--radius-md, 10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.hr-tab {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  color: var(--intimo-gray-600, #666);
}
.hr-tab:hover { background: var(--intimo-bg, #f5f5f5); color: #111; }
.hr-tab.is-active {
  background: #111;
  color: #fff;
}

.hr-section[hidden] { display: none !important; }
.hr-section.is-on { display: block; }

.hr-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.hr-stat {
  background: #fff;
  border-radius: var(--radius-md, 10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 1rem 1.1rem;
  border-top: 3px solid #111;
}
.hr-stat__label {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--intimo-gray-600, #666);
  font-weight: 700;
}
.hr-stat__value {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 0.2rem;
  letter-spacing: -0.02em;
}

.hr-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 900px) {
  .hr-grid-2 { grid-template-columns: 1fr; }
}

.hr-panel { padding: 1rem 1.1rem 1.15rem; }
.hr-list { display: grid; gap: 0.55rem; margin-top: 0.65rem; }
.hr-list-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  background: var(--intimo-bg, #f7f7f7);
  border-radius: 10px;
  font-size: 0.88rem;
}
.hr-list-item strong { font-weight: 600; }
.hr-list-empty { color: var(--intimo-gray-600, #666); font-size: 0.88rem; padding: 0.5rem 0; }

.hr-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.hr-badge--pending { background: #fff3e0; color: #b86e00; }
.hr-badge--approved { background: #e8f5e9; color: #2e7d32; }
.hr-badge--rejected { background: #fce4ec; color: #c2185b; }
.hr-badge--activo { background: #e8f5e9; color: #2e7d32; }

.hr-form-card { max-width: 640px; padding: 1.15rem 1.25rem 1.4rem; }
.hr-form { display: grid; gap: 0.85rem; margin-top: 0.75rem; }
.hr-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 640px) {
  .hr-form-row { grid-template-columns: 1fr; }
}

.hr-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.25rem;
  font-size: 0.9rem;
}
.hr-detail-grid dt {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--intimo-gray-600, #666);
  font-weight: 700;
}
.hr-detail-grid dd { margin: 0.15rem 0 0; font-weight: 500; }
.hr-mini-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; margin-top: 0.5rem; }
.hr-mini-table th,
.hr-mini-table td {
  text-align: left;
  padding: 0.4rem 0.35rem;
  border-bottom: 1px solid #eee;
}
.hr-section-title {
  margin: 1.1rem 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.hr-form-hint {
  margin: 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #444;
  background: #f5f5f5;
  border-radius: 8px;
  border-left: 3px solid #111;
}

.hr-calendar-panel {
  margin-top: 1rem;
}
.hr-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  margin: 0.65rem 0 1rem;
  padding: 0.65rem 0.85rem;
  background: var(--intimo-bg, #f7f7f7);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--intimo-gray-600, #666);
}
.hr-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hr-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}
.hr-legend-dot--vac-ok { background: #111; }
.hr-legend-dot--vac-pending { background: #111; opacity: 0.45; }
.hr-legend-dot--special { background: #555; }
.hr-legend-dot--holiday { background: #c4a035; }

#hr-calendar {
  background: #fff;
  border-radius: 10px;
  min-height: 420px;
}

/* FullCalendar — tokens Íntimo */
#hr-calendar .fc {
  font-family: inherit;
}
#hr-calendar .fc .fc-toolbar-title {
  font-size: 1.1rem;
  font-weight: 700;
}
#hr-calendar .fc .fc-button {
  background: #111 !important;
  border-color: #111 !important;
  font-weight: 500;
  text-transform: capitalize;
  box-shadow: none !important;
}
#hr-calendar .fc .fc-button:hover {
  background: #333 !important;
  border-color: #333 !important;
}
#hr-calendar .fc .fc-button-primary:disabled {
  background: #999 !important;
  border-color: #999 !important;
}
#hr-calendar .fc .fc-daygrid-day.fc-day-today {
  background: rgba(0, 0, 0, 0.05) !important;
}
#hr-calendar .fc-event {
  border: none !important;
  padding: 2px 6px;
  font-size: 0.72rem;
  border-radius: 4px;
  cursor: pointer;
}
#hr-calendar .fc-event.vacation-approved { background: #111 !important; }
#hr-calendar .fc-event.vacation-pending { background: #111 !important; opacity: 0.55; }
#hr-calendar .fc-event.special-approved,
#hr-calendar .fc-event.special-pending,
#hr-calendar .fc-event.pto-approved,
#hr-calendar .fc-event.pto-pending { background: #555 !important; }
#hr-calendar .fc-event.special-pending,
#hr-calendar .fc-event.pto-pending { opacity: 0.55; }
#hr-calendar .fc .fc-daygrid-event-dot { display: none; }
#hr-calendar .fc-h-event .fc-event-main { color: #fff; }

.hr-howto {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #333;
}
.hr-howto li { margin-bottom: 0.4rem; }

.hr-portal-body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f3f3f3 0%, #ececec 100%);
}
.hr-portal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: #111;
  color: #fff;
}
.hr-portal-top__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.hr-portal-top__brand img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}
.hr-portal-top__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hr-portal-top__right .text-muted { color: rgba(255, 255, 255, 0.65); }
.hr-portal-top .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.hr-portal-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}
.hr-portal-hero { margin-bottom: 1rem; }
