/* Project-specific CSS for Django Vines */
/* Bootstrap theming is now handled by custom Bootstrap SCSS build */

/* Legacy alert styles (keeping for backward compatibility) */
.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

/* Add any Django Vines-specific custom styles below */
/* Note: Bootstrap theming is handled in work/theming/src/bootstrap-serra-vine.scss */

/* ============================================================
   Table Action Dropdown - Show on Hover
   ============================================================ */
/* Hide dropdown by default */
.table tbody tr .dropdown {
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
}

/* Show dropdown on row hover or when menu is open */
.table tbody tr:hover .dropdown,
.table tbody tr .dropdown.show,
.table tbody tr .dropdown:focus-within {
  opacity: 1;
}

/* Compact dropdown button styling */
.table .dropdown .btn-link {
  line-height: 1;
}

/* Fix dropdown clipping in responsive tables */
.table-responsive {
  overflow: clip visible;
}

/* ============================================================
   Week Separators
   ============================================================ */
/* Visual separation between weeks in production request tables */
tr.week-start {
  border-top: 2px solid var(--bs-primary);
}

tr.week-start td:first-child {
  position: relative;
}

/* Week label (legacy) - CSS-only display for pages without JS selection */
tr.week-start td:first-child[data-week]::before {
  content: "Week " attr(data-week);
  position: absolute;
  top: -0.65rem;
  left: 0;
  background: white;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--bs-secondary);
  white-space: nowrap;
}

/* Week label - clickable element to select all requests in week */
.week-label {
  position: absolute;
  top: -0.65rem;
  left: 0;
  background: white;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--bs-secondary);
  white-space: nowrap;
  cursor: pointer;
  border-radius: 0.25rem;
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.week-label:hover,
.week-label:focus {
  background-color: var(--bs-primary);
  color: white;
  outline: none;
}