/* Late fixes from Stage 3 QC (2026-12-03): no double borders, phone layout, notices. Loaded after revamp-app.css. */
/* No double borders. A card already draws one line; anything bordered inside it (list rows, nested cards,
   table wrappers, KPI cells) drops its own border and keeps a soft tint so it still reads as separate. */
.bl-app-page :is(.card,.bl-card,.bl-admin-card) :is(.card,.bl-card,.list-group-item,.table-responsive,.bl-table-responsive,.bl-admin-scroll,.bl-admin-table-wrap,.bl-kpi-cell,.bl-email-health) { border: 0 !important; box-shadow: none !important; }
.bl-app-page :is(.card,.bl-card,.bl-admin-card) :is(.card,.bl-card,.list-group-item,.bl-kpi-cell) { background: var(--bl-cream, #faf7f0); }
.bl-app-page :is(.card,.bl-card,.bl-admin-card) :is(.table-responsive,.bl-table-responsive,.bl-admin-scroll,.bl-admin-table-wrap) { background: transparent; }
/* Same rule inside dialogs: the dialog draws the line, the notice boxes in it (refund quote, warnings) do not. */
.modal-content :is(.alert,.bg-light,.list-group-item,.card,.bl-card) { border: 0 !important; box-shadow: none !important; }
/* Boxes drawn with the .border utility (verification upload zone, cancel and schedule sections) lose the line inside a dialog or card and keep a tint. */
:is(.modal-content,.card,.bl-card) .border.rounded { border: 0 !important; background: var(--bl-cream, #faf7f0); }
/* Host growth and links panels: the panel draws the line; the form, filter, link rows, QR box and notes inside use the tint only. */
:is(.bl-host-growth,.bl-host-links-panel,.bl-host-source-report) :is(.bl-host-link-create,.bl-host-link-row,.bl-host-report-filter,.bl-host-report-note,.bl-host-qr-panel,.bl-host-growth-notice) { border: 0 !important; }
:is(.bl-host-growth,.bl-host-links-panel,.bl-host-source-report) .bl-host-growth-notice-error { background: #FBEDEC; }
/* Passport medal tiles and error notices inside panels: tint, no second line. */
.bl-medal-cabinet .bl-customer-medal { border: 0 !important; background: #f6f2e8; }
.bl-medal-cabinet .bl-customer-medal.is-earned { background: #fbf3c8; }
.bl-medal-cabinet .bl-customer-medal.is-unavailable { background: #efece4; }
.bl-danger-panel .bl-form-error { border: 0 !important; }
/* PH-01: the account menu scrolls inside the window so Log out is always reachable on short or narrow screens. */
.bl-account-menu { max-height: calc(var(--bl-vh, 100vh) - 150px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
/* PH-02: on a phone the experiences table stacks into one card per experience, so Status and Actions never need sideways scroll. */
@media (max-width: 575.98px) {
    .bl-tours-table-scroll { overflow: visible; }
    .bl-tours-table-scroll table, .bl-tours-table-scroll tbody { display: block; width: 100%; }
    .bl-tours-table-scroll thead { display: none; }
    .bl-tours-table-scroll tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 0 0 12px; padding: 14px; border-radius: 16px; background: var(--bl-cream, #faf7f0); }
    .bl-tours-table-scroll td { display: block; width: auto !important; padding: 0 !important; border: 0 !important; text-align: left !important; background: transparent !important; }
    .bl-tours-table-scroll td:first-child { grid-column: 1 / -1; }
    .bl-tours-table-scroll td[data-label]::before { content: attr(data-label); display: block; color: var(--bl-slate); font: 600 11px/1.2 var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
    .bl-tours-table-scroll .bl-tour-actions-cell { grid-column: 1 / -1; }
}
/* PH-03: an outline button inside a yellow notice (Keep my membership) stays readable: white fill, navy text and line. */
.alert .bl-btn-outline, .bl-qs-confirm .bl-btn-outline { background: #fff; color: var(--bl-navy); border: 1.5px solid var(--bl-navy); }
@media (max-width: 575.98px) {
    .bl-tours-table-scroll .bl-tour-actions-cell .btn-group { display: flex; flex-wrap: wrap; gap: 6px; max-width: 100%; }
    .bl-tours-table-scroll .bl-tour-actions-cell .btn-group > .bl-btn { border-radius: 999px !important; flex: 0 0 auto; }
    .bl-tours-table-scroll td[data-label]::before { margin-bottom: 3px; }
}
/* PH-04: the admin and Local tab strip is wider than the phone. Without containment the browser sizes the page to the strip, so centred
   dialogs (End membership and the other reason dialogs) land far off screen. The strip still scrolls sideways inside its own box. */
.bl-workspace-sidebar { contain: paint; }
.ed-verify-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #FFF4C5; color: var(--bl-navy); font: 500 13px/1.4 var(--font-body); }
.ed-verify-note a { color: var(--bl-navy); font-weight: 700; text-decoration: underline; }

/* Experience page: more than three photos. Desktop shows three tiles, so a button opens the viewer with all of them. Phone already swipes through every photo. */
.bl-detail-allphotos { position: absolute; right: 14px; bottom: 14px; z-index: 2; padding: 8px 14px; border: 1.5px solid var(--bl-navy); border-radius: 999px; background: #fff; color: var(--bl-navy); font: 600 13px/1 var(--bl-font-sans, inherit); cursor: pointer; box-shadow: 0 2px 8px rgba(14, 27, 60, .18); }
.bl-detail-allphotos:hover { background: var(--bl-lemon, #FFE14D); }
@media (max-width: 768px) { .bl-detail-allphotos { display: none; } }

/* Support requests: each request in the list folds open in place */
.bl-support-page .list-group-item-action { position: relative; padding-right: 28px !important; }
.bl-support-page .list-group-item-action::after { content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--bl-navy); border-bottom: 2px solid var(--bl-navy); transform: rotate(45deg); transition: transform .15s ease; }
.bl-support-page .list-group-item-action[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: -2px; }
.bl-support-page .bl-case-open { background: transparent; }

/* Support requests: the sent / error notices are one tinted box, no accent bar on top of the edge */
.bl-support-page > .bl-page-shell > .alert { border: 0 !important; border-radius: 14px; }

/* Booking cards: up to three status pills plus the booking number wrap instead of clipping the number */
.bl-bookings-page .bl-booking-card .card-body > .d-flex:first-child { flex-wrap: wrap; row-gap: 6px; column-gap: 4px; }
.bl-bookings-page .bl-booking-card .card-body > .d-flex:first-child > small { margin-left: auto; white-space: nowrap; }
.bl-bookings-page .bl-booking-card .card-body > .d-flex:first-child > .badge { margin-left: 0 !important; }

/* Earnings: the Withdraw button sits at the top right and follows you down the page */
.bl-earn-float { position: sticky; top: 92px; z-index: 40; height: 0; display: flex; justify-content: flex-end; pointer-events: none; }
.bl-earn-float > .bl-btn { pointer-events: auto; box-shadow: 0 6px 18px rgba(26, 35, 64, .22); }
@media (max-width: 767px) { .bl-earn-float { top: 80px; } }
/* Q-05 PHONE-08: at phone width the floating Withdraw sat on top of body text. It stays floating (owner, 2026-12-03) but as a bar with its own
   row and a solid background: it takes its own space at the top, and text scrolls under the bar, never behind a loose button. */
@media (max-width: 767px) {
  .bl-earn-float { height: auto; padding: 6px 0; margin-bottom: 10px; background: var(--bl-surface, #fff); box-shadow: 0 1px 0 var(--bl-line, #e7e9ec); pointer-events: auto; }
  .bl-earn-float > .bl-btn { box-shadow: none; }
}

/* Save / process messages float at the top for 3 seconds and fade out; they take no page space */
.alert.alert-success,
.bl-admin-notice[role="status"],
.bl-host-growth-notice[role="status"],
.bl-honours-notice[role="status"],
.bl-story-notice[role="status"] {
  position: fixed; top: 88px; left: 50%; z-index: 1300; width: max-content; max-width: min(520px, calc(100vw - 32px));
  margin: 0 !important; padding: 12px 20px; border: 0; border-radius: 14px; pointer-events: none;
  box-shadow: 0 12px 30px rgba(26, 35, 64, .22); animation: bl-toast-3s 3s ease forwards;
}
@keyframes bl-toast-3s {
  0% { opacity: 0; transform: translate(-50%, -10px); visibility: visible; }
  8% { opacity: 1; transform: translate(-50%, 0); }
  80% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -4px); visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) { .alert.alert-success, .bl-admin-notice[role="status"], .bl-host-growth-notice[role="status"], .bl-honours-notice[role="status"], .bl-story-notice[role="status"] { animation-duration: 3s; } }
/* Q-05 (admin Support inbox): the "Reply sent" message floated over the page heading. With bl-toast-corner it sits in the bottom right corner instead
   (the same place as the other admin toasts), clear of the heading and of the reply box. */
.alert.alert-success.bl-toast-corner { top: auto; left: auto; right: 24px; bottom: 24px; animation-name: bl-toast-corner-3s; }
@keyframes bl-toast-corner-3s {
  0% { opacity: 0; transform: translateY(10px); visibility: visible; }
  8% { opacity: 1; transform: none; }
  80% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(4px); visibility: hidden; }
}
@media (max-width: 900px) { .alert.alert-success.bl-toast-corner { right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); } }

/* No accent bars or rings on stat cards and the withdraw card / open request */
.bl-workspace-page :is(.card, .bl-card).bg-primary, .bl-workspace-page :is(.card, .bl-card).bg-success,
.bl-workspace-page :is(.card, .bl-card).bg-info, .bl-workspace-page :is(.card, .bl-card).bg-secondary { border-left-width: 1px !important; border-left-color: var(--bl-line) !important; }
.bl-withdraw-card { box-shadow: none !important; }
.bl-withdraw-open { border: 0; background: var(--bl-surface-soft, #f6f4ee); }

/* Earnings: the earnings cards and the payout cards each sit in one container; the logs scroll inside it */
.bl-earn-group { background: #fff; border: 1px solid var(--bl-line); border-radius: 18px; overflow: hidden; }
.bl-earn-group > .bl-card { margin: 0 !important; border: 0 !important; border-radius: 0; box-shadow: none !important; background: transparent; }
.bl-earn-group > .bl-card + .bl-card { border-top: 1px solid var(--bl-line) !important; }
.bl-earn-group .bl-card-header { background: transparent !important; }
.bl-earn-scroll { max-height: 340px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.bl-earn-scroll thead th { position: sticky; top: 0; z-index: 1; background: #fff; }
ul.bl-earn-scroll { margin: 0; padding: 0; }

/* KPI stat cards: no outline, one calm soft shadow, same on every workspace page */
.bl-workspace-page :is(.card, .bl-card).bg-primary, .bl-workspace-page :is(.card, .bl-card).bg-success,
.bl-workspace-page :is(.card, .bl-card).bg-info, .bl-workspace-page :is(.card, .bl-card).bg-secondary { border: 0 !important; box-shadow: 0 1px 2px rgba(26, 35, 64, .06), 0 4px 14px rgba(26, 35, 64, .06) !important; }

/* Admin control room: stat cards and panels have no outline, same soft shadow as the Local KPI cards */
.bl-admin-page .bl-dashboard-metric, .bl-admin-page .bl-kpi-cell, .bl-admin-page .bl-admin-card, .bl-admin-page .bl-admin-section > .bl-card { border: 0 !important; box-shadow: 0 1px 2px rgba(26, 35, 64, .06), 0 4px 14px rgba(26, 35, 64, .06) !important; }
.bl-admin-page .bl-admin-empty { border: 0; }
