/* Import Bootstrap classes where possible */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f8f9fa; /* Bootstrap default background */
}

/* Standard Bootstrap container */
.container {
  max-width: 600px; /* Bootstrap default width */
  margin: auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Remove form styling - Bootstrap handles form elements */
.form-control,
.form-select {
  font-size: 16px;
}

/* Remove default button styling and use Bootstrap */
.btn {
  font-weight: bold;
  text-transform: uppercase;
}

/* Custom styling for week selector */
#week-selector {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-bottom: 15px;
}

/* Bootstrap-like button style for week navigation */
#week-selector button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 4px;
}

/* Weekday selection */
#week-days {
  display: flex;
  gap: 5px;
}

.week-day {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
}

.week-day.selected {
  background-color: #007bff;
  color: white;
  font-weight: bold;
}

/* Remove input styling since Bootstrap already has form controls */
.input-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 300px;
}

/* Star icon for favorites */
.favorite-icon {
  position: absolute;
  right: 10px;
  cursor: pointer;
  font-size: 20px;
  color: #ffd700;
  transition: transform 0.2s;
}

.favorite-icon:hover {
  transform: scale(1.2);
}

#date-scroll-container {
  overflow-x: auto;
  white-space: nowrap;
  width: 100%;
  padding: 10px 0;
}

#date-scroll button {
  display: inline-block;
  padding: 10px 15px;
  margin: 5px;
  border: 1px solid #ddd;
  background: #f8f8f8;
  cursor: pointer;
  border-radius: 5px;
  min-width: 60px;
}

#date-scroll button.active {
  background: #007bff;
  color: white;
  font-weight: bold;
}

#week-controls {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

#week-controls button {
  padding: 5px 10px;
  cursor: pointer;
}
.invoiced-row {
  --bs-table-accent-bg: lightblue !important;
}

/* Make suggestion list appear over other content and match input width */
.position-relative .list-group {
  top: 100%;
  left: 0;
  max-height: 200px;
  overflow-y: auto;
  border-radius: 0 0 0.375rem 0.375rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.position-relative .list-group {
  background: #fff;
  border: 1px solid #dee2e6;
}

/* Invoice button styling with fallback */
.invoice-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
}

/* Fallback for when Bootstrap icons don't load */
.invoice-btn .bi::before {
  content: "📄";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

/* If Bootstrap icons load properly, hide the emoji fallback */
@supports (font-family: "bootstrap-icons") {
  .invoice-btn .bi::before {
    content: "";
  }
}