/* ============================================================
   S-PRESSO STAFF DASHBOARD — checkin.css
   Styles for Check-in tab only.
   Booking cards, expanded details, charges, action buttons.

   v2 changes:
   - Card header: Name+ID / Room+Password / Dates+Nights / Count / Price / Badges
   - .booking-main cursor pointer, user-select none (header only)
   - .details-inner cursor default, user-select text (expanded section)
   - Faster expand transition: 0.18s
   - Room password sub-row style
   - Click-to-copy spans for phone + email
   - Inline editable notes textarea + save button
   - Charge total row style
============================================================ */

/* ============ BOOKING CARD ============ */
.booking-card {
  position: relative;
  background: var(--white); border: 2px solid var(--gray-200);
  border-radius: 10px; padding: 13px 16px;
  margin-bottom: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.booking-card:hover    { border-color: var(--gold-600); box-shadow: 0 3px 12px rgba(160,122,34,0.12); }
.booking-card.expanded { border-color: var(--navy-800); box-shadow: 0 4px 16px rgba(26,54,93,0.12); }
.booking-card.last-minute:not(.expanded):not(:hover) { border-color: var(--gold-600); box-shadow: 0 3px 12px rgba(160,122,34,0.12); }

/* Collapsed row layout — 8 cols, last only renders for group bookings */
.booking-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.4fr 0.8fr 0.9fr 0.7fr 120px auto;
  gap: 10px; align-items: center;
  cursor: pointer;
  user-select: none;
  position: relative;
}

/* Guest column */
.guest-name { font-weight: 700; font-size: 0.97rem; color: var(--navy-800); }

/* Booking ID — below guest name */
.booking-id-display {
  font-size: 0.78rem; font-weight: 600;
  color: var(--gold-600); margin-top: 2px;
  font-family: monospace; letter-spacing: 0.3px;
}

/* Room number */
.room-number { font-size: 0.9rem; font-weight: 700; color: var(--navy-800); }

/* Room password — below room number */
.room-password {
  font-size: 0.75rem; color: var(--gray-500);
  margin-top: 2px; font-family: monospace;
}

/* Booking source + country */
.booking-ref     { font-size: 0.82rem; font-weight: 600; color: var(--navy-800); }
.booking-country { font-size: 0.76rem; color: var(--gray-500); margin-top: 2px; }

/* Stay dates */
.stay-dates  { font-size: 0.84rem; font-weight: 600; color: var(--navy-800); }
.stay-nights { font-size: 0.74rem; color: var(--gray-500); margin-top: 2px; }

/* Guest count — 2+1 format */
.guest-count { font-size: 0.84rem; font-weight: 600; color: var(--navy-800); }

/* Price */
.booking-price { font-size: 0.9rem; font-weight: 700; color: var(--navy-800); }

/* ============ EXPANDED DETAILS ============
   Faster transition: 0.18s vs old 0.3s.
   max-height 700px covers charges + notes + actions.
============ */
.booking-details {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.18s ease, opacity 0.15s ease;
}
.booking-details.visible {
  max-height: 700px;
  opacity: 1;
}

/* Expanded inner — more breathing room from header */
.details-inner {
  padding-top: 18px;
  border-top: 1px solid var(--gray-200);
  margin-top: 14px;
  cursor: default;
  user-select: text;
}

.details-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px; margin-bottom: 14px;
}
.detail-item  { display: flex; flex-direction: column; gap: 3px; }
.detail-label { font-size: 0.65rem; color: var(--gray-500); text-transform: uppercase; font-weight: 600; }
.detail-value { font-size: 0.85rem; color: var(--navy-800); font-weight: 500; }
.code {
  font-family: monospace; background: var(--gray-50);
  padding: 2px 7px; border-radius: 5px; font-size: 0.88rem;
}

/* ============ BALANCE DUE AMOUNT (under unpaid badge) ============ */
.badge-group {
  background: rgba(139,92,246,0.12);
  color: #7c3aed;
  border: 1px solid rgba(139,92,246,0.25);
}
  font-size: 0.75rem; font-weight: 700;
  color: var(--error); margin-top: 3px;
  font-family: monospace;
}

/* ============ CLICK-TO-COPY SPANS (phone + email) ============ */
.detail-copy {
  cursor: pointer;
  border-bottom: 1px dashed #cbd5e1;
  padding-bottom: 1px;
  transition: color 0.15s;
}
.detail-copy:hover { color: #3b82f6; border-color: #3b82f6; }

/* Email copy button — styled as a subtle pill */
.detail-copy-email {
  font-size: 0.78rem; font-weight: 600;
  color: #3b82f6; border-bottom: none;
  background: rgba(59,130,246,0.08);
  padding: 2px 8px; border-radius: 5px;
}
.detail-copy-email:hover { background: rgba(59,130,246,0.18); }

/* ============ CHARGES LIST ============ */
.charges-list  { margin-bottom: 14px; }
.charges-title { font-size: 0.7rem; color: var(--gray-500); text-transform: uppercase; font-weight: 600; margin-bottom: 6px; }
.charge-item {
  display: flex; justify-content: space-between;
  font-size: 0.82rem; padding: 4px 0;
  border-bottom: 1px dashed var(--gray-200);
}
.charge-item:last-child { border-bottom: none; }
.charge-total {
  font-weight: 700; color: var(--navy-800);
  border-top: 1px solid var(--gray-200);
  padding-top: 4px; margin-top: 4px;
  border-bottom: none;
}

/* ============ NOTES SECTION ============ */
.notes-section { margin-top: 12px; }

/* Label + Save button on same line */
.notes-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.notes-header .detail-label { margin-bottom: 0; }

.notes-hint {
  font-size: 0.68rem; color: var(--gray-400);
  margin-top: 4px; font-style: italic;
}

.notes-textarea {
  width: 100%; box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid var(--gray-200); border-radius: 6px;
  font-size: 0.85rem; font-family: var(--font-sans);
  resize: vertical; background: var(--gray-50);
  color: var(--navy-800);
  transition: border-color 0.15s;
}
.notes-textarea:focus {
  outline: none; border-color: #3b82f6; background: var(--white);
}

.notes-save-btn { margin-top: 6px; }

/* ============ PORTAL BUTTON ============ */
.portal-btn {
  background: rgba(59,130,246,0.1);
  color: #3b82f6;
}
.portal-btn:hover {
  background: rgba(59,130,246,0.2);
}

/* ── CLEANING SCHEDULE BADGE (collapsed card) ─────────────── */
.badge-clean-sched {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* ── STAY CLEANING SECTION (expanded) ─────────────────────── */
.cleaning-dates-section {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-100, #f1f5f9);
}

.cleaning-dates-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cleaning-date-add {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cleaning-date-input {
  font-size: 0.78rem;
  padding: 3px 7px;
  border: 1px solid var(--gray-300, #cbd5e1);
  border-radius: 6px;
  color: var(--gray-700, #334155);
  background: #fff;
  height: 28px;
}

.cleaning-add-btn {
  height: 28px;
  padding: 0 10px;
  font-size: 0.78rem;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.cleaning-add-btn:hover {
  background: rgba(16, 185, 129, 0.2);
}

.cleaning-dates-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.cleaning-date-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.78rem;
  color: #065f46;
}

.cleaning-remove-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.7rem;
  padding: 0;
  line-height: 1;
}

.cleaning-remove-btn:hover {
  color: #dc2626;
}

.cleaning-dates-empty {
  font-size: 0.75rem;
  color: #94a3b8;
  font-style: italic;
}

/* ── GROUP BOOKING ICON ───────────────────────────────────── */
.group-icon {
  color: #94a3b8;
  vertical-align: middle;
  margin-left: 4px;
  position: relative;
  top: -2px;
}

.note-icon {
  color: #94a3b8;
  vertical-align: middle;
  margin-left: 4px;
  position: relative;
  top: -2px;
}

/* ============ ACTION BUTTONS ============ */
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.action-btn {
  padding: 8px 16px; border-radius: 8px; border: none;
  font-size: 0.8rem; font-weight: 600; font-family: var(--font-sans);
  cursor: pointer; transition: all var(--transition-fast);
  background: var(--gray-100); color: var(--navy-800);
}
.action-btn:hover    { background: var(--gray-200); }
.action-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.action-btn.primary  {
  background: linear-gradient(135deg, var(--gold-600), var(--gold-500));
  color: var(--white);
}
.action-btn.primary:hover    { box-shadow: 0 4px 12px rgba(160,122,34,0.35); }
.action-btn.primary:disabled { box-shadow: none; }
.action-btn.danger   { background: var(--error-bg); color: var(--error); }

.action-btn.flag-toggle { padding: 6px 10px; font-size: 0.75rem; border: 1px solid transparent; }
.action-btn.flag-toggle.flag-early.active { background: #ede9fe; color: #5b21b6; border-color: #a78bfa; }
.action-btn.flag-toggle.flag-late.active  { background: #fef3c7; color: #92400e; border-color: #fbbf24; }

/* ============ BALANCE DISPLAY ============ */
.balance-paid { color: var(--success); font-weight: 600; font-size: 0.82rem; }
.balance-due  { color: var(--error);   font-weight: 600; font-size: 0.82rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .booking-main { grid-template-columns: 1fr 1fr; }
  .booking-main > div:nth-child(n+6) { display: none; }
}
@media (max-width: 768px) {
  .booking-main { grid-template-columns: 1fr 1fr; gap: 8px; }
}
@media (max-width: 480px) {
  .booking-main { grid-template-columns: 1fr; }
}

/* ── ROOM CLEANING BADGE ──────────────────────────────────── */
.room-clean-badge {
  font-size: 0.78rem;
  color: #059669;
  font-weight: 600;
  margin-left: 4px;
}

/* ── DATE CHIPS ───────────────────────────────────────────── */
.date-chips-row {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.date-chip {
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--gray-300, #cbd5e1);
  background: #fff;
  color: var(--gray-600, #475569);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.date-chip:hover {
  border-color: #a07a22;
  color: #a07a22;
}

.date-chip.active {
  background: #1a365d;
  border-color: #1a365d;
  color: #fff;
  font-weight: 600;
}

/* ── API REFERENCE ────────────────────────────────────────── */
.api-ref {
  color: #94a3b8;
  font-size: 0.85em;
}

/* ============ SEND CONFIRM AREA ============ */
.send-confirm-area {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding: 14px;
  background: rgba(160,122,34,0.06);
  border: 1px solid rgba(160,122,34,0.2);
  border-radius: 10px;
}
.send-confirm-area.visible { display: flex; }

.send-confirm-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.send-email-input {
  padding: 9px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: var(--font-sans);
  color: var(--navy-800);
  background: var(--white);
  width: 100%;
  box-sizing: border-box;
}
.send-email-input:focus {
  outline: none;
  border-color: var(--gold-600);
}

.send-confirm-guest {
  font-size: 0.82rem;
  color: var(--navy-800);
  font-weight: 600;
}

.send-confirm-btns {
  display: flex;
  gap: 8px;
}

.send-portal-btn {
  background: rgba(160,122,34,0.1);
  color: var(--gold-600);
}
.send-portal-btn:hover { background: rgba(160,122,34,0.2); }
.send-portal-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.send-payment-btn {
  background: rgba(239,68,68,0.08);
  color: var(--error);
}
.send-payment-btn:hover { background: rgba(239,68,68,0.15); }
.send-payment-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ============ SUBMISSIONS FAB ============ */
.sub-fab-btn {
  position: fixed; bottom: 90px; right: 20px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #1a365d, #2d4a7a);
  border: 2px solid var(--gold-border);
  color: white; font-size: 0.72rem; font-weight: 700;
  cursor: pointer; box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  white-space: pre-line; line-height: 1.3; text-align: center;
  transition: all 0.2s;
}
.sub-fab-btn.has-unmatched {
  border-color: #f59e0b;
  animation: fabPulse 2s infinite;
}
@keyframes fabPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(245,158,11,0); }
}
.sub-fab-panel {
  position: fixed; bottom: 162px; right: 20px; z-index: 149;
  width: 310px; max-height: 380px; overflow-y: auto;
  background: var(--white); border-radius: 14px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--gold-border);
}
.sub-fab-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 14px; border-bottom: 1px solid var(--gray-200);
  font-weight: 600; font-size: 0.85rem; color: var(--navy-800);
  position: sticky; top: 0; background: var(--white); z-index: 1;
}
.sub-fab-header button {
  background: none; border: none; cursor: pointer;
  color: var(--gray-400); font-size: 1rem; padding: 0;
}
.sub-fab-item {
  padding: 9px 14px; border-bottom: 1px solid var(--gray-100);
  font-size: 0.81rem;
}
.sub-fab-item:last-child { border-bottom: none; }
.sub-fab-item.matched   { border-left: 3px solid var(--success); }
.sub-fab-item.unmatched { border-left: 3px solid #f59e0b; }
.sub-fab-item-name { font-weight: 600; color: var(--navy-800); }
.sub-fab-item-meta { color: var(--gray-500); margin-top: 2px; }
.sub-fab-item-actions { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.sub-fab-copy-btn {
  padding: 3px 9px; border-radius: 5px; border: 1px solid var(--gray-200);
  background: var(--gray-50); color: var(--navy-800); font-size: 0.74rem;
  cursor: pointer; font-family: var(--font-sans);
}
.sub-fab-copy-btn:hover { background: var(--gold-100); border-color: var(--gold-border); }
.toast.warning {
  background: #fffbeb; color: #92400e; border-left: 4px solid #f59e0b;
}

/* ============ FAB FILTERS ============ */
.sub-fab-filters {
  display: flex; gap: 5px; padding: 6px 14px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--white); position: sticky; top: 41px; z-index: 1;
}
.sub-fab-filter {
  padding: 3px 10px; border-radius: 12px; border: 1px solid var(--gray-200);
  background: var(--gray-50); color: var(--navy-800); font-size: 0.75rem;
  font-weight: 600; cursor: pointer; font-family: var(--font-sans);
  transition: all 0.15s;
}
.sub-fab-filter.active {
  background: var(--navy-800); color: var(--white); border-color: var(--navy-800);
}
.sub-fab-filter:hover:not(.active) { background: var(--gold-100); border-color: var(--gold-border); }

/* ── SEND MODAL ─────────────────────────────────────────── */
.send-modal-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.38);
  border-radius: inherit;
  z-index: 10;
  align-items: flex-start;
  justify-content: center;
  padding-top: 24px;
}
.send-modal-overlay.visible {
  display: flex;
}
.send-modal {
  background: #fff;
  border: 0.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  width: 300px;
  max-width: 90%;
}
.send-modal-title {
  font-size: 14px;
  font-weight: 500;
  color: #1a365d;
  margin-bottom: 3px;
}
.send-modal-guest {
  font-size: 12px;
  color: #718096;
  margin-bottom: 14px;
}
.send-modal .send-modal-email,
.send-modal input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  background: #f7fafc;
  color: #1a202c;
  margin-bottom: 8px;
}
.send-modal-note {
  font-size: 11px;
  color: #718096;
  margin-bottom: 16px;
}
.send-modal-note--payment {
  color: #a32d2d;
}
.send-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ── LANG PILLS ─────────────────────────────────────────── */
.send-modal-langs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.lang-pill {
  flex: 1;
  padding: 5px 0;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: transparent;
  color: #718096;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.15s;
}
.lang-pill:hover {
  border-color: #a07a22;
  color: #a07a22;
}
.lang-pill.active {
  background: #a07a22;
  border-color: #a07a22;
  color: #fff;
}

/* ============ FAB LANGUAGE BADGE ============ */
.sub-fab-lang {
  font-size: 0.70rem; font-weight: 600; padding: 2px 7px;
  border-radius: 10px; white-space: nowrap; flex-shrink: 0;
}
.sub-fab-lang-en { background: #e6f1fb; color: #0c447c; }
.sub-fab-lang-ja { background: #eaf3de; color: #27500a; }
.sub-fab-lang-ko { background: #eeedfe; color: #3c3489; }
.sub-fab-lang-zh { background: #faeeda; color: #633806; }

/* ============ AI CHAT FAB ============ */
.ai-fab-btn {
  position: fixed; bottom: 90px; left: 20px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #a07a22, #c49a2a);
  border: 2px solid var(--gold-border);
  color: white; font-size: 1.3rem;
  cursor: pointer; box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.ai-fab-btn:hover { transform: scale(1.08); }

/* Mobile: shrink + lift FABs above bottom bar */
@media (max-width: 768px) {
  .sub-fab-btn { width: 50px; height: 50px; bottom: 184px; right: 14px; font-size: 0.62rem; }
  .ai-fab-btn  { width: 50px; height: 50px; bottom: 120px; left: 14px;  font-size: 1.1rem;  }
}
.ai-fab-panel {
  position: fixed; bottom: 162px; left: 20px; z-index: 149;
  width: 340px; max-height: 520px;
  background: var(--white); border-radius: 14px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--gold-border);
  display: flex; flex-direction: column; overflow: hidden;
}
.ai-fab-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 14px; background: var(--navy-800); color: #fff;
  font-size: 0.85rem; font-weight: 600;
}
.ai-fab-header button {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.7); font-size: 1rem; padding: 0;
}
.ai-fab-header button:hover { color: #fff; }
.ai-fab-messages {
  flex: 1; overflow-y: auto; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 10px;
  max-height: 340px;
}
.ai-msg { font-size: 0.82rem; line-height: 1.5; max-width: 90%; }
.ai-msg.user {
  align-self: flex-end;
  background: var(--navy-800); color: #fff;
  padding: 7px 12px; border-radius: 12px 12px 3px 12px;
}
.ai-msg.assistant {
  align-self: flex-start;
  background: var(--gray-50); color: var(--navy-800);
  padding: 7px 12px; border-radius: 12px 12px 12px 3px;
  border: 1px solid var(--gray-200);
}
.ai-msg.thinking {
  align-self: flex-start; color: var(--gray-400);
  font-style: italic; font-size: 0.78rem;
}
.ai-fab-input-row {
  display: flex; gap: 8px; padding: 10px 12px;
  border-top: 1px solid var(--gray-200);
}
.ai-fab-input {
  flex: 1; padding: 7px 10px; border-radius: 8px;
  border: 1px solid var(--gray-300); font-size: 0.82rem;
  font-family: var(--font-sans); outline: none;
  resize: none; height: 36px;
}
.ai-fab-input:focus { border-color: var(--gold-600); }
.ai-fab-send {
  padding: 7px 14px; border-radius: 8px; border: none;
  background: var(--gold-600); color: #fff;
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
  font-family: var(--font-sans);
}
.ai-fab-send:hover { background: var(--gold-500); }
.ai-fab-send:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============ AI CHAT MARKDOWN ============ */
.ai-msg.assistant { line-height: 1.6; }
.ai-p  { margin: 0 0 6px 0; }
.ai-p:last-child { margin-bottom: 0; }
.ai-h1 { font-size: 1rem; font-weight: 700; color: var(--navy-800); margin: 8px 0 4px; }
.ai-h2 { font-size: 0.9rem; font-weight: 700; color: var(--navy-800); margin: 6px 0 4px; }
.ai-h3 { font-size: 0.84rem; font-weight: 600; color: var(--navy-700); margin: 6px 0 3px; }
.ai-ul, .ai-ol { margin: 4px 0 6px 0; padding-left: 18px; }
.ai-ul li, .ai-ol li { margin-bottom: 3px; font-size: 0.82rem; }
.ai-code {
  background: var(--gray-100); color: #c0392b;
  padding: 1px 5px; border-radius: 4px;
  font-family: 'Courier New', monospace; font-size: 0.78rem;
}
.ai-hr { border: none; border-top: 1px solid var(--gray-200); margin: 8px 0; }

/* Room password — editable + override indicator */
.room-password {
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  transition: background 0.15s;
}
.room-password:hover { background: #f3f4f6; }
.room-password-override {
  background: #fffbeb;
  color: #92400e;
  font-weight: 600;
}
.room-password-override:hover { background: #fef3c7; }
.room-password-input {
  font-family: monospace;
  font-size: 0.75rem;
  border: 1px solid #a07a22;
  border-radius: 3px;
  padding: 1px 4px;
  width: 70px;
  outline: none;
  background: #fff;
}

/* ============ FOLLOW-UP NOTES BOARD ============ */
.followup-board {
  margin-top: 24px;
  background: #fff;
  border: 2px solid #1e3a5f;
  border-radius: 12px;
  padding: 18px 20px;
}
.followup-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
  margin-bottom: 14px;
  gap: 12px;
}
.followup-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #1e3a5f;
}
.followup-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: #6b7280;
}
.followup-controls { display: flex; gap: 8px; }
.followup-filter {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #fff;
  cursor: pointer;
}
.followup-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.followup-priority-select {
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  min-width: 120px;
}
.followup-input {
  flex: 1;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #fff;
}
.followup-input:focus { outline: none; border-color: #1e3a5f; }
.followup-post-btn {
  font-size: 13px;
  padding: 6px 18px;
  border-radius: 6px;
  background: #1e3a5f;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 500;
}
.followup-post-btn:hover { background: #142b48; }
.followup-post-btn:disabled { opacity: 0.5; cursor: wait; }

.followup-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.followup-empty {
  text-align: center;
  padding: 24px 12px;
  color: #9ca3af;
  font-size: 13px;
  font-style: italic;
}
.followup-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  border-left: 3px solid #d1d5db;
}
.followup-item.prio-urgent { border-left-color: #ef4444; }
.followup-item.prio-normal { border-left-color: #f59e0b; }
.followup-item.prio-info   { border-left-color: #10b981; }

.followup-item-done { opacity: 0.55; }
.followup-item-done .followup-content { text-decoration: line-through; }

.followup-avatar {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #1e3a5f;
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.followup-body { flex: 1; min-width: 0; }
.followup-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  gap: 10px;
}
.followup-meta-text {
  font-size: 12px;
  color: #6b7280;
  flex: 1;
  min-width: 0;
}
.followup-meta-text strong { color: #1f2937; font-weight: 600; }
.followup-done-badge { color: #10b981; font-weight: 500; }

.followup-actions { display: flex; gap: 6px; flex-shrink: 0; }
.followup-action-btn {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
}
.followup-action-btn:hover { background: #f3f4f6; color: #1f2937; }
.followup-action-danger:hover { color: #dc2626; border-color: #fca5a5; }

.followup-content {
  font-size: 13px;
  line-height: 1.5;
  color: #1f2937;
  word-break: break-word;
}

@media (max-width: 640px) {
  .followup-input-row { flex-wrap: wrap; }
  .followup-priority-select { flex: 1; min-width: 0; }
  .followup-input { width: 100%; flex-basis: 100%; order: 2; }
  .followup-post-btn { order: 3; }
}


/* ── Follow-up stat card (clickable) ── */
.stat-card-followup {
  cursor: pointer;
  border: 1px solid #cbd5e1;
  transition: all 0.15s;
}
.stat-card-followup:hover {
  border-color: #1e3a5f;
  background: #f8fafc;
  transform: translateY(-1px);
}
.stat-bar-fill.navy { background: #1e3a5f; }


/* ============ ARRIVAL ICON BUTTON (absolute, top-right of card) ============ */
.booking-arrival-btn {
  position: absolute;
  top: 50%; right: 14px;
  margin-top: -16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(30,58,95,0.10); color: var(--navy-800);
  transition: all 0.15s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  z-index: 2;
  flex-shrink: 0;
}
.booking-arrival-btn:hover  { transform: scale(1.08); background: rgba(30,58,95,0.20); }
.booking-arrival-btn:active { transform: scale(0.95); }
.booking-arrival-btn.arrived { background: var(--navy-800); color: #fff; }

/* Reserve right-side space inside the row so name/badges don't sit under the icon */
.booking-main { padding-right: 44px; }

/* ============ ARRIVED CARD STATE (matches breakfast .bf-card.arrived) ============ */
.booking-card.arrived {
  background: linear-gradient(180deg, #fef9e7, #ffffff);
  border-color: #d4a72c;
}


/* FAB round-button icons — white on dark navy background */
.sub-fab-btn svg, .sub-fab-btn span svg,
.bf-fab-btn  svg, .bf-fab-btn  span svg,
.ai-fab-btn  svg, .ai-fab-btn  span svg,
#af-icon svg, #af-close svg {
  color: #ffffff;
}
