.l4d-horario.horario-validated {
  opacity: 0.92;
}

.l4d-horario.horario-validated input {
  background-color: #f8f9fa;
  cursor: not-allowed;
}

.l4d-horario.horario-validated::before {
  content: "MES VALIDADO";
  position: sticky;
  top: 0;
  display: block;
  background: #198754;
  color: #fff;
  text-align: center;
  font-weight: 600;
  padding: 6px;
  z-index: 5;
}
.month-summary .month-chevron {
  display: inline-block;
  transition: transform .2s ease;
}

.month-summary.open .month-chevron {
  transform: rotate(180deg);
}
.month-day-grid {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  grid-template-rows: auto auto; /* 🔑 CLAVE */
  gap: 10px;
  align-items: start;

  border: 1px solid #dee2e6;
  padding: 8px;
  padding-bottom:0;
  border-radius: 4px;
}

/* Fecha */
.month-day-grid .day-date {
  white-space: nowrap;
  grid-column: 1;
  grid-row: 1;
}

/* Fichajes / badge */
.month-day-grid .day-content {
  grid-column: 2/4;
  grid-row: 1;
  min-width: 0;
  overflow:hidden;
}

/* Acciones */
.month-day-grid .day-actions {
  grid-column: 4;
  grid-row: 1;
  align-self: start;
  text-align: end;
}

/* Si NO hay acciones → 2 columnas */
.month-day-grid:not(:has(.day-actions)) {
  grid-template-columns: 140px 1fr;
}

/* Print friendly */
@media print {
  .month-day-grid {
    page-break-inside: avoid;
  }
}
.day-row-grid {
  display: grid;
  grid-template-columns: 95px 105px minmax(0,1fr) 34px;
  gap: 10px;
  align-items: center;
}
.day-row-grid.r-total{
	row-gap:0;
}
.day-total {
  grid-column: 3;
  grid-row: 2;           /* 🔑 segunda fila */
  align-self: end;
  justify-self: end;
  min-width: 70px;
  white-space: nowrap;
  text-align: right;
  font-weight: 600;
  padding-top: 4px;
  border-top: 1px dashed #dee2e6;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.r-horario {
  animation: fadeSlideIn .15s ease-out;
}
.month-detail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 12px;
}

.day-row-grid input[type="time"] {
  width: 90px;
  min-width: 90px;
  max-width: 90px;
}
.day-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.month-day-grid.is-today {
  border: solid 2px #0d6efd;
  background-color: #f0f7ff!important;
}
.time-validated{
	width: 93px;
}