/* Sign-off link sheets (send flow + status). Self-contained, same look as the
   sign-off pad sheets (signoff-ui.css), so it renders the same on every page. */

.cf-sol-sheet { position: fixed; inset: 0; z-index: 10001; display: flex; align-items: flex-end; justify-content: center; }
.cf-sol-sheet .booking-sheet__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.cf-sol-sheet .booking-sheet__panel {
  position: relative; background: #fff; width: 100%; max-width: 560px;
  border-radius: 16px 16px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.15);
  font-family: inherit; color: #111827;
}
@media (min-width: 600px) {
  .cf-sol-sheet { align-items: center; }
  .cf-sol-sheet .booking-sheet__panel { border-radius: 16px; }
}
.cf-sol-sheet .booking-sheet__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.cf-sol-sheet .booking-sheet__title { font-size: 18px; font-weight: 700; }
.cf-sol-sheet .booking-sheet__when { font-size: 14px; color: #4b5563; margin-top: 2px; }
.cf-sol-sheet .booking-sheet__close { background: none; border: 0; font-size: 28px; line-height: 1; color: #6b7280; cursor: pointer; padding: 0 4px; }
.cf-sol-sheet .booking-field { display: flex; flex-direction: column; gap: 6px; }
.cf-sol-sheet .booking-field > span { font-size: 12px; font-weight: 700; color: #374151; text-transform: uppercase; letter-spacing: 0.04em; }
.cf-sol-sheet .booking-field input {
  padding: 10px 12px; border-radius: 8px; border: 1px solid #d9e0e6;
  font: inherit; background: #fff; width: 100%; box-sizing: border-box;
}
.cf-sol-sheet .booking-sheet__foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 8px; }
/* The buttons are PINNED to the bottom on a phone (Allan, 25 Nov 2026): a long
   list of people to send to pushed Cancel / Next off the bottom of the screen.
   Edge to edge across the panel's side and bottom padding, white, so nothing
   shows through underneath — the deposit sheet's bar (deposit-ui.css).
   🪤 bottom is MINUS the panel's bottom padding: a sticky bar is held inside
   the panel's CONTENT box, so at 0 the list scrolled past in a 16px strip
   below the buttons. 💻 On the computer too (Allan, 25 Nov 2026, q29: "yes"):
   at 1280x900 Next sat 96px below the screen with "Someone else" open. */
.cf-sol-sheet .booking-sheet__foot {
  position: sticky; bottom: calc(-16px - env(safe-area-inset-bottom)); z-index: 1;
  background: #fff; border-top: 1px solid #e5e7eb;
  margin: 0 -16px calc(-16px - env(safe-area-inset-bottom));
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
/* The computer's centred sheet has 16px rounded corners: the bar's own bottom
   corners match, so it never pokes past them. (The panel clips them as well;
   this keeps it so if that ever changes.) Phones keep tonight's square bar. */
@media (min-width: 600px) and (min-height: 520.02px) {
  .cf-sol-sheet .booking-sheet__foot { border-radius: 0 0 16px 16px; }
}
.cf-sol-sheet .booking-cancel { padding: 10px 16px; border-radius: 8px; border: 1px solid #d9e0e6; background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.cf-sol-sheet .booking-save { padding: 10px 18px; border-radius: 8px; border: 0; background: #006aac; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.cf-sol-sheet .booking-save:disabled { opacity: 0.5; cursor: not-allowed; }

.cf-sol-list { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cf-sol-list legend { font-size: 12px; font-weight: 700; color: #374151; text-transform: uppercase; letter-spacing: 0.04em; padding: 0 0 6px; }
.cf-sol-row {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px;
  border: 1px solid #d9e0e6; border-radius: 10px; cursor: pointer; background: #fff;
}
.cf-sol-row:has(input:checked) { border-color: #006aac; background: #eff6fb; }
.cf-sol-row input { width: 20px; height: 20px; flex: none; }
.cf-sol-row__name { font-weight: 600; }
.cf-sol-row__pos { margin-left: auto; font-size: 13px; color: #4b5563; text-align: right; }
.cf-sol-new { display: flex; flex-direction: column; gap: 10px; }

.cf-sol-state { margin: 0; font-weight: 600; font-size: 15px; }
.cf-sol-query { padding: 10px 12px; border-radius: 8px; background: #fff7ed; border: 1px solid #fdba74; }
.cf-sol-query__label { font-size: 12px; font-weight: 700; color: #9a3412; text-transform: uppercase; letter-spacing: 0.04em; }
.cf-sol-query p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cf-sol-preview { font-size: 14px; color: #006aac; font-weight: 600; }
.cf-sol-actions { display: flex; flex-direction: column; gap: 8px; }
.cf-sol-btn {
  min-height: 44px; padding: 10px 16px; border-radius: 8px; border: 1px solid #d9e0e6;
  background: #fff; font: inherit; font-weight: 600; cursor: pointer; text-align: left;
}
.cf-sol-btn--resend { background: #006aac; border-color: #006aac; color: #fff; }
.cf-sol-btn--cancel { color: #b91c1c; border-color: #fca5a5; }
.cf-sol-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.cf-sol-error { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fef2f2; border: 1px solid #fca5a5; color: #7f1d1d; font-size: 14px; }
.cf-sol-error::before { content: '⚠ '; }
.cf-sol-error[hidden] { display: none; }
.cf-sol-loading, .cf-sol-message { margin: 0; color: #374151; }

.cf-sol-help { margin-left: 8px; font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; color: #006aac; text-decoration: none; }
.cf-sol-help:hover, .cf-sol-help:focus-visible { text-decoration: underline; }
