#scroll1 {
  width: 100%;
  background-color: transparent;
  height: 20px;
  overflow-x:auto;
}

/* Filtry nad kalendarem */
.filters-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px; /* Mezera mezi filtry a datumem */
  width: 100%;
}

.filter-container,
.date-container {
  margin: 0;
  /*padding: 0 20px;*/
  width: fit-content;
}

.filter-container form {
  width: 560px;
}

.date-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-today,
.btn-date-select {
  height: 36px;
  padding: 0 16px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  background: white;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-today:hover,
.btn-date-select:hover,
.btn-nav:hover {
  border-color: var(--primary-blue);
  background-color: white;
}

.btn-nav {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 100px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-buttons {
  display: flex;
  gap: 8px;
}

/* Kalendářová tabulka */
.calendar-table {
  max-width: 1000px;
  border-spacing: 2.5px;
  padding: 0;
}

.calendar-table thead th {
  padding: 6px 2px;
  font-weight: 600;
  color: var(--primary-blue);
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
  min-width: 40px;
}

.table-cell {
  width: 125px;
  min-width: 125px;
  max-width: 125px;
  padding: 4px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  color: #092969;
  background: #fbfbfd;
  border-bottom: 1px solid #f0f0f5;
}

.hour-slot {
  padding: 2px;
  border-radius: 4px;
  background: white;
  /* width: fit-content; */
  /* table-layout: fixed; */
}

.time-group {
  display: flex;
  justify-content: space-between;
  gap: 2px;
}

.time-group span {
  flex: 1;
  text-align: center;
  white-space: nowrap;
  padding: 6px 2px;
  font-weight: 600;
  color: var(--primary-blue);
  font-size: 13px;
}

.slots-grid {
  display: flex;
  gap: 2px;
  width: fit-content;
  margin: auto;
}

.row-border {
  background: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
}

.row-border:not(.day-spacing) {
  border-top: 1px solid #e5e7eb;
}

.row-border + .row-border {
  border-bottom: 1px solid #e5e7eb;
}

.day-spacing + .row-border {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.row-border + .day-spacing {
  margin-bottom: 8px;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.day-spacing {
  height: 20px;
}

.day-spacing td {
  padding-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-blue);
  display: none;
  text-align: center;
}

.day-spacing-first {
  display: none;
}

.trainer-slots {
  display: flex;
  flex-direction: column;
  /* Sloty pod sebe */
  gap: 2px;
}

.trainer-names {
  /* display: flex; */
  flex-direction: column;
  gap: 2px;
  padding: 4px 8px;
  width: fit-content;
  min-width: 100px;
}

.trainer-cell {
  width: fit-content;
  padding: 4px;
  white-space: nowrap;
  /* overflow: hidden;
  text-overflow: ellipsis; */
  font-size: 13px;
  color: #092969;
  /* background: #fbfbfd;
  border-bottom: 1px solid #f0f0f5; */
  margin: 2px;
}

.circle {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.time-slot {
  margin: 1px;
  display: inline-block;
  width: 48px;
  height: 28px;
  font-size: 12px;
  /*font-weight: 600;*/
  text-align: center;
  line-height: 22px;
  border-radius: 2px;
  padding: 3px;
}

.time-slot a {
  color: unset;
}

.bez {
  background-color: lightgrey;
  border: solid 1px darkgrey;
}

.kalendar-denni-pracovnika .time-slot.bez {
  cursor: pointer;
}

.time-slot.otevreno {
  background-color: #e8f5ee;
  color: #168d6b;
  cursor: pointer;
  border: solid 1px #aee0c9;
}

.time-slot.konci {
  background-color: #d8e5de;
  color: #168d6b;
  cursor: pointer;
  border: solid 1px #aee0c9;
}

.zavreno {
  background-color: #fbc6d0;
  color: #d73232;
  border: solid 1px #f2abb6;
}

.time-slot.rezervace {
  background-color: #7762da;
  color: white;
}

.time-slot.rezervace-souvisejici {
  background-color: #9884ec;
  color: white;
}

.date-cell {
  position: relative;
  background-color: #f1f2f3;
  padding: 12px 8px;
  width: 90px;
  min-width: 90px;
  max-width: 90px;
  text-align: center;
  border-radius: 4px 0 0 4px;
}

.date-cell.today {
  background-color: #e2eaf8;
  color: var(--primary-color);
}

.date-cell.today .day-name {
  color: var(--primary-color);
}

.date-cell.today .date {
  color: var(--primary-color);
}

.today-badge {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 9px;
  z-index: 2;
}

.date-cell .date-content {
  position: relative;
  z-index: 1;
}

.date-cell .day-name {
  font-size: 9px;
  text-transform: uppercase;
  color: #445585;
  margin-bottom: 4px;
  font-weight: 600;
}

.date-cell .date {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary-blue);
  line-height: 1.2;
}

.day-spacing td {
  height: 24px;
  background: transparent;
}

#snippet--kalendar.kalendar-front {
  max-width: 1200px;
}

@media only screen and (max-width: 1060px) {
  .filters-wrapper {
    flex-direction: column;
    align-items: start;
    gap: 0;
  }

  .filter-container {
    margin-bottom: 0;
  }

  .date-container {
    margin-top: 0;
    padding: 0 20px 10px 20px;
  }
}

@media only screen and (max-width: 640px) {
  .filter-container {
    padding: 0;
    width: 100%;
  }

  .filter-container form {
    width: 100%;
    gap: 16px !important;
  }

  .filter-group {
    width: 100%;
    flex: 1;
  }

  .date-container {
    padding: 0 0 10px 0;
  }

  .day-spacing td {
    display: table-cell;
  }

  .day-spacing-first {
    display: table-row;
  }
}

@media only screen and (max-width: 640px) {
  .filter-container form {
    flex-direction: column;
    gap: 0 !important;
  }

  .filter-group {
    margin-bottom: 16px;
  }
}