/* Schedule optics + anchor stability */

/* Ensure anchor jumps land below fixed top nav */
.schedule-row-anchor {
  scroll-margin-top: 90px;
}

/* Brief highlight on the anchored slot after actions.
   Apply to cells, because many tables set explicit background colors on <td>.
*/
.schedule-row-anchor:target td,
.schedule-row-anchor:target {
  animation: schedule-flash 8s ease-out;
}

/* JS-applied variant used by AJAX actions (claim/drop) */
.schedule-row-anchor.schedule-row-updated {
  animation: schedule-flash 8s ease-out;
}

@keyframes schedule-flash {
  0% { background-color: rgba(254, 240, 138, 0.9); }
  90% { background-color: rgba(254, 240, 138, 0.9); }
  100% { background-color: transparent; }
}

/* Inline Assign/Reassign menus on schedules page */
.shift-menu .shift-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.shift-menu .shift-menu-trigger::-webkit-details-marker { display: none; }
.shift-menu .shift-menu-trigger::marker { content: ""; }
.shift-menu[open] > .shift-menu-trigger {
  background: #15803d !important;
  color: #ffffff !important;
  border-color: #15803d !important;
}
.shift-menu[open] > .shift-menu-trigger::after {
  content: "▾";
  margin-left: 0.25rem;
  font-size: 0.7rem;
  line-height: 1;
}
.shift-menu .shift-menu-panel {
  top: calc(100% + 0.5rem);
  bottom: auto;
}
.shift-menu.open-up .shift-menu-panel {
  top: auto;
  bottom: calc(100% + 0.5rem);
}
.shift-menu.open-up[open] > .shift-menu-trigger::after {
  content: "▴";
}

/* Solid separator after Sundays */
.week-separator td {
  height: 14px;
  background-color: #e5e7eb; /* neutral grey */
  border: none;
}



/* Basic form controls (used in a few legacy views) */
.input {
  width: 100%;
  border: 1px solid #cbd5e1; /* slate-300 */
  background: #ffffff;
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.input::placeholder { color: #94a3b8; } /* slate-400 */
.input:focus {
  outline: none;
  border-color: #64748b; /* slate-500 */
  box-shadow: 0 0 0 4px rgba(226, 232, 240, 0.9); /* slate-200 */
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 12px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  background: #ffffff;
}
.btn:hover { background: #f8fafc; }
.btn-primary {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}
.btn-primary:hover { background: #1e293b; }
