.openingstijden-container {
  max-width: 500px;
  font-family: inherit;
  line-height: 1.6;
  color: inherit;
}

.openingstijden-title {
  margin-bottom: 20px;
  color: inherit;
  font-size: 1.5em;
  font-weight: inherit;
}

/* Achtergrond, border en shadow weggehaald voor schone witte achtergrond */
.openingstijden-lijst {
  padding: 0;
}

.openingstijden-rij {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  flex-wrap: wrap;
}

.openingstijden-rij:last-child {
  border-bottom: none;
}

/* Vereenvoudigde highlighting voor huidige dag met CSS custom properties */
.openingstijden-rij.huidige-dag {
  --huidige-dag-kleur: #2196f3;
  border-left: 4px solid var(--huidige-dag-kleur);
  padding-left: 16px;
  margin-left: -20px;
}

.openingstijden-rij.huidige-dag .dag-naam {
  color: var(--huidige-dag-kleur);
  font-weight: 700;
}

.openingstijden-rij.huidige-dag .restaurant-tijden {
  color: var(--huidige-dag-kleur);
  font-weight: 600;
}

.dag-naam {
  font-weight: 600;
  color: inherit;
  min-width: 120px;
  font-size: 1em;
}

.restaurant-tijden {
  color: inherit;
  font-size: 1em;
  flex: 1;
  text-align: right;
  font-weight: 400;
}

/* Keuken tijden styling aangepast voor betere leesbaarheid */
.keuken-tijden {
  color: #888;
  font-size: 0.9em;
  width: 100%;
  margin-top: 4px;
  font-style: italic;
  text-align: right;
  padding-left: 20px;
}

.gesloten {
  color: #888;
  font-style: italic;
  font-weight: 400;
}

/* Responsive design */
@media (max-width: 600px) {
  .openingstijden-rij {
    flex-direction: column;
    align-items: flex-start;
  }

  .restaurant-tijden,
  .keuken-tijden {
    text-align: left;
    width: 100%;
  }

  .dag-naam {
    margin-bottom: 4px;
  }

  .keuken-tijden {
    padding-left: 0;
    margin-top: 4px;
  }

  .openingstijden-rij.huidige-dag {
    margin-left: -12px;
    padding-left: 12px;
  }
}

/* Admin styling */
.form-table th,
.form-table td {
  padding: 10px;
  vertical-align: middle;
}

.form-table input[type="time"] {
  width: 100px;
}

.form-table input[type="checkbox"] {
  transform: scale(1.2);
}

/* Extra admin styling voor betere gebruikerservaring */
.form-table thead th {
  background-color: #f1f1f1;
  font-weight: 600;
  border-bottom: 2px solid #ddd;
}

.form-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.form-table input[type="time"]:disabled {
  background-color: #e9ecef;
  color: #6c757d;
}

/* Styling toegevoegd voor compacte openingstijden weergave voor footer gebruik */
.openingstijden-compact {
  font-family: inherit;
  color: inherit;
  font-size: 0.9em;
}

.openingstijden-compact-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: inherit;
  font-size: 1em;
}

/* Gewijzigd van horizontale flex layout naar verticale lijst styling */
.openingstijden-compact-lijst {
  list-style: none;
  padding: 0;
  margin: 0;
}

.openingstijden-compact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.openingstijden-compact-item:last-child {
  border-bottom: none;
}

.openingstijden-compact-item.huidige-dag {
  --huidige-dag-kleur: #2196f3;
  color: var(--huidige-dag-kleur);
  font-weight: 600;
}

.compact-dag {
  font-weight: 600;
  min-width: 80px;
}

.compact-tijd {
  font-weight: 400;
  color: inherit;
}

.openingstijden-compact-item.huidige-dag .compact-tijd {
  color: var(--huidige-dag-kleur);
}

/* Responsive design voor compacte weergave */
@media (max-width: 480px) {
  .openingstijden-compact-item {
    padding: 6px 0;
  }

  .compact-dag {
    min-width: 70px;
  }
}

/* Tooltip styling toegevoegd voor compacte weergave */
.openingstijden-compact-item[data-tooltip] {
  position: relative;
  cursor: pointer;
}

.openingstijden-compact-item[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.85em;
  white-space: nowrap;
  z-index: 1000;
  margin-bottom: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.openingstijden-compact-item[data-tooltip]:hover::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
}

/* Responsive design voor compacte weergave */
@media (max-width: 480px) {
  .openingstijden-compact-item {
    padding: 6px 0;
  }

  .compact-dag {
    min-width: 70px;
  }

  /* Tooltip aanpassingen voor mobiel */
  .openingstijden-compact-item[data-tooltip]:hover::after {
    font-size: 0.8em;
    padding: 6px 10px;
  }
}
