/* Een deel van de styling staat in de theme options van het thema omwille van form styling centraal te houden */

.vcu-agenda-display {
  position: relative;
  width: 100%;
}

.vcu-agenda-display .table-container {
  overflow-x: auto !important;
  overflow: hidden;
  /* white-space: nowrap; voorkomt dat de tabel breekt */
}

form .row {
  display: flex;
  flex-direction: row;
}

@media screen and (max-width: 992px) {
  form .row.filters {
    flex-direction: column;
  }
  form .row .col.two {
    margin-top: 20px;
  }
}

@media screen and (max-width: 767px) {
  .vcu-agenda-display {
    width: 94vw;
  }
}
/* --- */

/* Webkit scrollbar specifiek voor deze tabel */
.vcu-agenda-display .table-container::-webkit-scrollbar {
  height: 8px;
}

/* Track */
.vcu-agenda-display .table-container::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
.vcu-agenda-display .table-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 100px;
}

/* Handle on hover */
.vcu-agenda-display .table-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.vcu-agenda-display table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  /* white-space: nowrap; */
}

.vcu-agenda-display table tr {
  transition: background-color 1s ease !important;
}

.vcu-agenda-display table tr th,
.vcu-agenda-display table tr td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
  /* min-width: 50px; */
}

.vcu-agenda-display table tr th:not(.week),
.vcu-agenda-display table tr td:not(.week) {
  min-width: 97px;
}

.vcu-agenda-display table tr th {
  /* background-color: #f4f4f4; */
  /* background-color: #e2e2e2; */
  background-color: #f0f0f0;
  font-weight: 600;
  line-height: 1.25;
}

.vcu-agenda-display table tr td {
  font-size: 14px;
}

.vcu-agenda-display tr:nth-child(odd) {
  background-color: #ffffff;
}

.vcu-agenda-display tr:nth-child(even) {
  /*   background-color: #f5f5f5; */
  background-color: #f7f7f7;
}

@media screen and (max-width: 768px) {
  .vcu-agenda-display table {
    font-size: 14px;
  }

  .vcu-agenda-display th,
  .vcu-agenda-display td {
    padding: 8px;
  }

  .vcu-agenda-display th {
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  .vcu-agenda-display table {
    font-size: 12px;
  }

  .vcu-agenda-display th,
  .vcu-agenda-display td {
    padding: 6px;
  }

  .vcu-agenda-display th {
    font-size: 12px;
  }

  .vcu-agenda-display td {
    white-space: normal; /* Zorgt ervoor dat tekst breekt en niet buiten de container loopt */
    word-break: break-word;
  }
}

.locked::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 998;
  /* From https://css.glass */
  background: rgba(255, 255, 255, 0.21);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(13.7px);
  -webkit-backdrop-filter: blur(13.7px);
}
.locked .content {
  z-index: 999;
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  text-align: center;
}

a.remove {
  color: red;
}

a {
  text-decoration: none;
}

.table-container h3 {
  padding-left: 6px;
}
form.add {
  padding: 20px 20px 0 20px;
}

form.add input,
form.add select,
form.add textarea {
  width: 100%;
  padding: 10px;
  border: none;
}
form.add input,
form.add select {
  height: 46px;
}
form.add .row {
  display: flex;
  margin-bottom: 0;
  margin-bottom: 10px;
}
@media screen and (max-width: 425px) {
  form.add .row {
    flex-direction: column;
  }
}

form.add .row:last-of-type {
  margin-bottom: 0;
}

form.add .row .col {
  width: 33.3%;
  padding: 5px;
}
@media screen and (max-width: 767px) {
  form.add .row .col {
    width: 50%;
  }
}

@media screen and (max-width: 600px) {
  form.add .row {
    flex-direction: column;
  }
  form.add .row .col {
    width: 100%;
  }
}

#week_filter-menu {
  max-height: 320px;
}

@media screen and (max-width: 992px) {
  form[method="get"] #user_filter-button,
  form[method="get"] #appointment_filter-button,
  form[method="post"] #user_id-button,
  #week_filter-button {
    width: 50% !important;
  }
}

@media screen and (max-width: 600px) {
  form[method="get"] #user_filter-button,
  form[method="get"] #appointment_filter-button,
  form[method="post"] #user_id-button,
  #week_filter-button {
    width: 100% !important;
  }
}

button#filter {
  width: fit-content;
}

.highlight {
  background-color: #ffff99 !important; /* lichte gele kleur */
}
