/* Jamming.Live Booking: request forms, dashboards, Booking detail, the Guest status page. Builds on jl-auth.css / jl-artist.css tokens. */

.bk-main { width: 100%; padding: 24px clamp(16px, 4vw, 56px) 48px; }
.bk-wrap { width: 100%; max-width: 980px; margin: 0 auto; }
.bk-wrap h1 { margin: 6px 0 8px; font-size: clamp(1.6rem, 4vw, 2.2rem); overflow-wrap: anywhere; }
.bk-wrap .panel { margin: 0 0 18px; }
.bk-date-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bk-date-head h2 { margin: 0 0 8px; font-size: 1.1rem; }
.bk-rate { margin: 6px 0 0; color: var(--ok); font-weight: 700; min-height: 1.2em; }
.money { display: flex; align-items: center; gap: 8px; }
.money span { color: var(--ink-soft); }
.money input { flex: 1; }

/* Status chips */
.bk-status { display: inline-block; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.bk-status.is-confirmed { color: #7ee2a8; border-color: rgba(79, 209, 139, 0.55); background: rgba(79, 209, 139, 0.1); }
.bk-status.is-pending_artist_response, .bk-status.is-artist_countered, .bk-status.is-pending_platform_fee { color: #ffd77a; border-color: rgba(255, 210, 74, 0.5); background: rgba(255, 210, 74, 0.08); }
.bk-status.is-declined, .bk-status.is-withdrawn, .bk-status.is-canceled, .bk-status.is-expired_no_response, .bk-status.is-expired_payment_not_completed { color: #ff9d9d; border-color: rgba(255, 42, 42, 0.45); background: rgba(255, 42, 42, 0.08); }

/* Dashboard */
.bk-section { margin: 0 0 24px; }
.bk-section h2 { margin: 0 0 10px; font-size: 1.2rem; }
.bk-section h2 .count { color: var(--ink-faint); font-weight: 400; font-size: 0.9rem; }
.bk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bk-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.bk-row.needs-action { border-color: #7a2a30; background: #1c1114; }
.bk-row-main { flex: 1 1 280px; min-width: 0; }
.bk-row-title { font-weight: 800; overflow-wrap: anywhere; }
.bk-row-title a { color: var(--ink); text-decoration: none; }
.bk-row-title a:hover { text-decoration: underline; }
.bk-row-sub { color: var(--ink-soft); font-size: 0.92rem; margin-top: 2px; }
.bk-row-money { color: var(--ink-soft); font-size: 0.92rem; margin-top: 4px; }
.bk-row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bk-new-message { display: inline-block; margin-left: 8px; font-size: 0.78rem; color: var(--accent-ink); font-weight: 700; }
.bk-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 14px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); margin: 14px 0 22px; align-items: end; }
.bk-filters .field { margin: 0; }
.bk-empty { color: var(--ink-faint); padding: 8px 0; }

/* Detail */
.bk-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 24px; margin: 0; }
.bk-facts dt { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.bk-facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.bk-notice { padding: 12px 14px; border: 1px solid #624249; border-left: 4px solid var(--accent); background: #1c1114; border-radius: 6px; margin: 0 0 16px; line-height: 1.45; }
.bk-thread { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.bk-message { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.bk-message.from-artist { border-left: 4px solid #7a5ce0; }
.bk-message.from-venue { border-left: 4px solid #2f9e86; }
.bk-message .who { font-weight: 700; }
.bk-message .when { color: var(--ink-faint); font-size: 0.85rem; margin-left: 8px; }
.bk-message p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.bk-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bk-timeline li { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 8px 0; border-top: 1px solid var(--line); }
.bk-timeline li:first-child { border-top: 0; }
.bk-timeline .when { color: var(--ink-faint); min-width: 150px; font-size: 0.9rem; }

/* Guest */
.bk-fee { padding: 16px; border: 1px solid #624249; background: #1c1114; border-radius: 10px; margin: 16px 0; }
.bk-fee h3 { margin: 0 0 8px; }
.bk-pay[aria-disabled="true"], button.bk-pay:disabled { opacity: 0.55; cursor: not-allowed; }
.bk-deadline { font-weight: 700; }

/* Phone: single column rows */
@media (max-width: 600px) { .bk-row-actions { width: 100%; } }
