/* =============================================================
   CALENDAR — Calendario mensual, semanal, vista de carga
   ============================================================= */

.modal-calendar {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  padding: 16px;
}
.modal-calendar__div-1 {
  background: #f2f2f7;
  width: 100%;
  max-width: 980px;
  height: 92vh;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.modal-calendar__div-2 {
  padding: 18px 24px;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5e5ea;
  flex-shrink: 0;
}
.modal-calendar__div-3 { display: flex; align-items: center; gap: 14px; }
.change-month {
  background: #f2f2f7;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.calendar-month-year {
  font-family: 'Syne',sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #1c1c1e;
  letter-spacing: -0.5px;
  text-transform: capitalize;
}
.calendar-user-label {
  font-size: 11px;
  color: #8e8e93;
  font-weight: 600;
  margin-top: 1px;
}
.modal-calendar__div-4 { display: flex; gap: 8px; }
.print-monthly-calendar {
  background: #f0fdf4;
  color: #16a34a;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.close-calendar {
  background: #fff0f0;
  color: #ff3b30;
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.modal-calendar__div-5 {
  padding: 8px 24px;
  background: white;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}
.modal-calendar__span-1 {
  font-size: 10px;
  font-weight: 700;
  color: #0284c7;
  display: flex;
  align-items: center;
  gap: 4px;
}
.modal-calendar__span-2 {
  width: 8px;
  height: 8px;
  background: #0284c7;
  border-radius: 2px;
  display: inline-block;
}
.modal-calendar__span-3 {
  font-size: 10px;
  font-weight: 700;
  color: #dc2626;
  display: flex;
  align-items: center;
  gap: 4px;
}
.modal-calendar__span-4 {
  width: 8px;
  height: 8px;
  background: #fecaca;
  border-radius: 2px;
  display: inline-block;
}
.modal-calendar__span-5 {
  font-size: 10px;
  font-weight: 700;
  color: #059669;
  display: flex;
  align-items: center;
  gap: 4px;
}
.modal-calendar__span-6 {
  width: 8px;
  height: 8px;
  background: #bbf7d0;
  border-radius: 2px;
  display: inline-block;
}
.modal-calendar__span-7 {
  font-size: 10px;
  font-weight: 700;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 4px;
}
.modal-calendar__span-8 {
  width: 8px;
  height: 8px;
  background: #007aff;
  border-radius: 50%;
  display: inline-block;
}
.modal-calendar__div-6 { display: flex; flex: 1; overflow: hidden; }
.calendar-grid-container {
  flex: 1.6;
  padding: 20px 20px 20px 24px;
  background: white;
  overflow-y: auto;
  border-right: 1px solid #e5e5ea;
}
.modal-calendar__div-7 {
  flex: 1;
  background: #f2f2f7;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-calendar__div-8 {
  padding: 16px 20px 10px;
  border-bottom: 1px solid #e5e5ea;
  flex-shrink: 0;
}
.selected-date-badge {
  background: #007aff;
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.selected-date-title {
  font-family: 'Syne',sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #1c1c1e;
  margin-top: 6px;
}
.list-tasks-planned {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.list-tasks-planned__div-1 { text-align: center; margin-top: 40px; color: #8e8e93; }
.list-tasks-planned__div-2 { font-size: 36px; opacity: 0.3; margin-bottom: 8px; }
.list-tasks-planned__p-1 { font-size: 13px; margin: 0; }

/* Vistas alternas (semana, equipo) */
.calendar-alt-view-container {
  display: none;
  flex: 1;
  overflow: auto;
  background: white;
  padding: 18px 22px;
}
.cal-shift-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  margin-bottom: 4px;
  display: inline-block;
  width: fit-content;
}
.cal-shift-work { background: #E0F2FE; color: #0284C7; border: 1px solid #BAE6FD; }
.cal-shift-off { background: #F3F4F6; color: #64748B; border: 1px dashed #CBD5E1; }
.cal-shift-vac { background: #ECFDF5; color: #059669; border: 1px solid #A7F3D0; }