.sb-filter-form,
.sb-booking-form,
.sb-termin-table {
  font-family: "Trebuchet MS", "Lucida Grande", "Tahoma", sans-serif;
}

.sb-filter-form {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px;
  align-items: flex-end;
  margin: 20px 0;
}

body .sb-filter-form {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
}

.sb-filter-form .sb-field {
  min-width: 0;
}

.sb-filter-form > label {
  flex: 1 1 200px;
  max-width: 260px;
  width: auto !important;
  margin: 0 !important;
}

.sb-filter-form > button {
  flex: 0 0 auto;
  width: auto !important;
  margin: 0 !important;
}

.sb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 200px;
}

.sb-field input,
.sb-field select {
  padding: 8px 10px;
  border: 1px solid #d7d7db;
  border-radius: 6px;
  background: #fff;
}

.sb-button {
  background: #0b3c49;
  color: #fff;
  border: 0;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  min-width: 140px;
  text-align: center;
}

.sb-button:hover {
  background: #0f4b59;
  color: #fff;
}

.sb-button-outline {
  background: transparent;
  color: #0b3c49;
  border: 1px solid #0b3c49;
}

.sb-button-outline:hover {
  background: #e6f0f2;
  color: #0b3c49;
}

.sb-termin-table td:last-child {
  min-width: 160px;
  text-align: center;
}

.sb-termin-table td:last-child .sb-button {
  white-space: nowrap;
}

.sb-termin-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.sb-termin-table th,
.sb-termin-table td {
  text-align: left;
  padding: 10px 8px;
}

.sb-termin-table thead th {
  border-bottom: 2px solid #d7d7db;
  font-weight: 600;
}

.sb-termin-table tbody td {
  border-bottom: 1px solid #ececee;
}


.sb-booking-form {
  padding: 16px;
  border: 1px solid #ececee;
  border-radius: 8px;
  background: #fbfbfc;
}

.sb-booking-info {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  background: #ffffff;
}

.sb-booking-title {
  margin: 0 0 8px;
  font-size: 20px;
  color: #0f172a;
}

.sb-booking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
  color: #475569;
  margin-bottom: 8px;
}

.sb-booking-meta span {
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 999px;
}

.sb-booking-text {
  font-size: 14px;
  color: #334155;
}

.sb-section {
  margin-bottom: 20px;
}

.sb-section h4 {
  margin: 0 0 10px;
  font-size: 16px;
}

.sb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.sb-checkbox {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.sb-notice {
  padding: 10px 12px;
  border-left: 3px solid #0b3c49;
  background: #f2f7f8;
}

.sb-error {
  color: #b00020;
  font-size: 13px;
  margin-top: 4px;
  display: block;
}

.sb-participants {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.sb-participant {
  padding: 12px;
  border: 1px solid #ececee;
  border-radius: 8px;
  background: #fff;
}

.sb-participant h4 {
  margin: 0 0 10px;
  font-size: 16px;
}

.sb-participant-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

@media (max-width: 900px) {
  .sb-grid {
    grid-template-columns: 1fr;
  }

  .sb-participant-grid {
    grid-template-columns: 1fr;
  }

  .sb-termin-table,
  .sb-termin-table thead,
  .sb-termin-table tbody,
  .sb-termin-table th,
  .sb-termin-table td,
  .sb-termin-table tr {
    display: block;
  }

  .sb-termin-table thead {
    display: none;
  }

  .sb-termin-table tr {
    border: 1px solid #ececee;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 12px;
    background: #fff;
  }

  .sb-termin-table td {
    border: none;
    padding: 6px 0;
  }
}

@media (max-width: 1000px) {
  .sb-filter-form > label {
    flex: 1 1 220px;
  }
}

@media (max-width: 700px) {
  .sb-filter-form {
    flex-direction: column !important;
    align-items: stretch;
  }

  .sb-filter-form > label,
  .sb-filter-form > button {
    max-width: none;
    width: 100% !important;
  }
}
