/* =========================================================
   Schedule — Round 46c CSS
   Look-preserving additions:
     • Card-level closed-day chip (r46c-closed-day-tag)
     • Persistent visual cue on cards on a closed/holiday day
       (data-r46c-closed-day="1") even when other conflicts
       have been resolved (so the card never turns "all green"
       while it sits on a hard-block closed day)
     • r46c-action-toast — visible feedback for alert button
       taps when window.toast is unavailable.

   Colors mirror the existing R42 closed-day banner palette so
   the visual language matches.  No size/font changes outside
   the new chip itself.
   ========================================================= */

/* ----- Card-level closed-day chip (independent of double-book) ----- */
#vScheduler .sv4-card[data-r46c-closed-day="1"] {
  /* keep the card's existing colors; add a left edge so the
     state is unmistakable even when _conflict has cleared. */
  box-shadow:
    inset 4px 0 0 0 #b04535,
    0 1px 3px rgba(13, 33, 55, .06);
}

#vScheduler .sv4-card[data-r46c-closed-day="1"]::before {
  content: '🚫';
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 13px;
  line-height: 1;
  pointer-events: none;
  opacity: .9;
}

/* Force the closed-day card to sit visually closer to the
   conflict palette than the safe/green palette, even when
   sv4-card.has-conflict is absent (i.e. double-book was
   removed but the closed day remains). */
#vScheduler .sv4-card[data-r46c-closed-day="1"] {
  background: #fff5f2;
  border-color: #f3c7c1;
}

/* The inline chip itself — modeled after r46-dbook-tag so
   look-feel stays consistent. Always visible regardless of
   double-book state. */
.r46c-closed-day-tag {
  margin-top: 6px;
  background: #fff;
  border: 1px solid #f3c7c1;
  border-left: 3px solid #b04535;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11.5px;
  line-height: 1.35;
  color: #7a1f12;
  font-weight: 650;
}

/* Mobile sizing — keep tap target reasonable. */
@media (max-width: 720px) {
  .r46c-closed-day-tag {
    font-size: 12px;
    padding: 5px 9px;
  }
  #vScheduler .sv4-card[data-r46c-closed-day="1"]::before {
    top: 8px;
    right: 10px;
    font-size: 14px;
  }
}

/* ----- Visible feedback toast for alert action delegate ----- */
.r46c-action-toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #141310;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(13, 33, 55, .25);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .2px;
  z-index: 9700;
  pointer-events: none;
  animation: r46cToastIn .18s ease-out;
}

@keyframes r46cToastIn {
  from { opacity: 0; transform: translate(-50%, 6px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
