.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;
}

.horario-employee-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 16px;
}



/** Dashboard **/
.l4d-kpi {
  border-radius: 14px;
  transition: all .15s ease;
}

.l4d-kpi:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.l4d-kpi .fs-4 {
  font-size: 1.4rem;
}

.l4d-company-kpis .kpi-box {
    background: #f8f9fa;
    border-radius: 14px;
    padding: 20px;
    transition: all .2s ease;
}

.l4d-company-kpis .kpi-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.l4d-company-kpis .kpi-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 6px;
}

.l4d-company-kpis .kpi-value {
    font-size: 1.5rem;
    font-weight: 600;
}

.corporate-card {
    border: 1px solid #dee2e6 !important;
    border-radius: 6px;
    background: #ffffff;
}

.corporate-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
}

.corporate-subtitle {
    font-size: 0.85rem;
    color: #6c757d;
}

.corporate-period {
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
}

.corporate-kpi {
    padding: 10px 0;
}

.corporate-kpi .kpi-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #6c757d;
    margin-bottom: 4px;
}

.corporate-kpi .kpi-value {
    font-size: 1.4rem;
    font-weight: 600;
    color: #212529;
}

.corporate-progress {
    height: 8px;
    background: #e9ecef;
}

.corporate-section {
    border-left: 3px solid #dee2e6;
    padding-left: 12px;
}

.section-title {
    font-weight: 600;
    margin-bottom: 6px;
    color: #343a40;
}

.section-content {
    font-size: 0.9rem;
}