#upcoming-tours-widget {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0001;
  padding: 0;
  max-width: 100%;
  font-family: inherit;
}
.utw-header {
  background: #000;
  color: #fff;
  font-size: 1.3em;
  font-weight: bold;
  padding: 18px 24px;
  border-radius: 8px 8px 0 0;
}
.utw-filters {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
  background: #f5f5f5;
}
.utw-filter {
  background: #fff;
  border: 1px solid #81b06d;
  color: #81b06d;
  border-radius: 20px;
  padding: 4px 16px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s;
}
.utw-filter:hover,
.utw-filter.active {
  background: #81b06d;
  color: #fff;
}
.utw-filter:disabled,
.utw-filter.disabled {
  background: #f5f5f5;
  color: #999;
  border-color: #ddd;
  cursor: not-allowed;
  opacity: 0.6;
}
.utw-filter:disabled:hover,
.utw-filter.disabled:hover {
  background: #f5f5f5;
  color: #999;
}
.utw-loader {
  padding: 30px 24px;
  text-align: left;
  color: #81b06d;
  font-weight: bold;
}
.utw-list {
  width: 100%;
}
.utw-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding: 12px 24px;
  gap: 16px;
}
.utw-time {
  font-weight: bold;
  width: 80px;
  color: #81b06d;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 20px;
}
.utw-date-label {
  font-size: 0.75em;
  font-weight: normal;
  color: #666;
  margin-top: 2px;
}
.utw-name {
  flex: 1;
}
.utw-status {
  min-width: 90px;
  text-align: right;
  font-weight: bold;
}
.utw-green {
  color: #1cae4c;
}
.utw-orange {
  color: #e6a700;
}
.utw-red {
  color: #d32f2f;
}
.utw-actions {
  display: flex;
  gap: 8px;
}
.utw-btn {
  background: #81b06d;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 4px 12px;
  cursor: pointer;
  font-weight: bold;
  transition: opacity 0.2s;
}
.utw-btn.utw-info {
  background: #eee;
  color: #81b06d;
}
.utw-btn:hover {
  opacity: 0.8;
}
.utw-legend {
  display: flex;
  gap: 16px;
  padding: 12px 24px;
  font-size: 0.95em;
  background: #f5f5f5;
  border-radius: 0 0 8px 8px;
}
.utw-list-scroll {
  max-height: 280px;
  overflow-y: auto;
  border-bottom: 1px solid #eee;
}
.utw-list-scroll::-webkit-scrollbar {
  width: 6px;
}
.utw-list-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.utw-list-scroll::-webkit-scrollbar-thumb {
  background: #81b06d;
  border-radius: 3px;
}
.utw-list-scroll::-webkit-scrollbar-thumb:hover {
  background: #6a945b;
}
.utw-empty {
  padding: 30px 24px;
  text-align: center;
  color: #666;
  font-style: italic;
}
.utw-error {
  padding: 30px 24px;
  text-align: center;
  color: #d32f2f;
  font-weight: bold;
}
@media (max-width: 600px) {
  #upcoming-tours-widget {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
  }
  .utw-header {
    font-size: 1.1em;
    padding: 10px 12px;
    border-radius: 4px 4px 0 0;
  }
  .utw-filters {
    padding: 12px;
    gap: 6px;
    flex-direction: column;
    align-items: stretch;
  }
  .utw-filter {
    flex: 1;
    text-align: center;
    padding: 8px 6px;
    font-size: 0.9em;
  }
  .utw-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    padding: 12px;
  }
  .utw-time {
    width: auto;
    flex-basis: 100%;
    font-size: 22px;
    flex-direction: row;
    align-items: end;
    column-gap: 8px;
  }
  .utw-date-label {
    margin-top: 1px;
    font-size: 14px;
  }
  .utw-name {
    flex-basis: 100%;
    font-size: 14px;
    line-height: 1.3;
    font-weight: bold;
  }
  .utw-status {
    flex-grow: 1;
    text-align: left;
    min-width: auto;
    font-size: 0.9em;
  }
  .utw-actions {
    flex-grow: 1;
    min-width: auto;
    justify-content: flex-end;
    gap: 4px;
  }
  .utw-btn {
    padding: 3px 8px;
    font-size: 0.8em;
  }
  .utw-btn.utw-info {
    padding: 3px 6px;
  }
  .utw-legend {
    padding: 10px 12px;
    gap: 8px;
    flex-direction: column;
    font-size: 15px;
  }
  .utw-list-scroll {
    max-height: 400px;
  }
  .utw-loader {
    padding: 15px 12px;
    font-size: 0.9em;
  }
  .utw-empty,
  .utw-error {
    padding: 15px 12px;
    font-size: 0.85em;
  }
}
