/* ============================================================
   Funkey Monkey — party booking: public portal + admin board.
   Builds on fm-public.css (portal) and admin.css/fm-admin.css (admin).
   ============================================================ */

/* ── Portal shell ─────────────────────────────────────────── */
.fp-hero { padding: 28px 0 8px; }
.fp-hero h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); margin-bottom: 6px; }
.fp-hero p { color: var(--fm-ink-2); margin: 0; }
.fp-layout { display: grid; gap: 20px; padding: 16px 0 32px; align-items: start; }
@media (min-width: 980px) { .fp-layout { grid-template-columns: minmax(0, 1fr) 340px; } }
.fp-step-card { padding: 22px; min-height: 360px; }
@media (max-width: 520px) { .fp-step-card { padding: 16px; } }
.fp-step-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.fp-step-title { font-size: 1.35rem; font-weight: 800; margin: 0 0 4px; letter-spacing: -.02em; }
.fp-step-sub { color: var(--fm-muted); margin: 0 0 18px; font-size: .95rem; }
.fp-error { margin-bottom: 14px; }

/* Summary aside */
.fp-aside { position: sticky; top: 84px; display: none; }
@media (min-width: 980px) { .fp-aside { display: block; } }
.fp-aside .fm-card-title { display: flex; align-items: center; gap: 8px; }
.fp-pick-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; font-size: .92rem; }
.fp-pick-list li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; color: var(--fm-ink-2); }
.fp-pick-list li strong { color: var(--fm-ink); }
.fp-pick-list .fp-pick-empty { color: #b9b2a3; }
.fp-total-row { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--fm-ink); padding-top: 10px; margin-top: 6px; }
.fp-total-row strong { font-size: 1.4rem; font-weight: 800; }
.fp-trust { display: flex; gap: 8px; align-items: center; color: var(--fm-muted); font-size: .82rem; margin-top: 12px; }

/* Bottom action bar */
.fp-bar-total { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.fp-bar-total small { color: var(--fm-muted); font-size: .78rem; font-weight: 600; }
.fp-bar-total strong { font-size: 1.2rem; font-weight: 800; }
.fp-bar-actions { display: flex; gap: 8px; }
@media (max-width: 420px) { .fp-bar-actions .fm-btn { padding-inline: 14px; } }

/* ── Calendar ─────────────────────────────────────────────── */
.fp-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.fp-cal-head h3 { margin: 0; font-size: 1.1rem; }
.fp-cal-nav { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--fm-line); background: #fff; cursor: pointer; font-size: 1.1rem; display: grid; place-items: center; }
.fp-cal-nav:disabled { opacity: .35; cursor: not-allowed; }
.fp-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.fp-cal-dow { text-align: center; font-size: .74rem; font-weight: 800; color: var(--fm-muted); text-transform: uppercase; padding-bottom: 2px; }
.fp-day {
  position: relative; aspect-ratio: 1 / 1; min-height: 42px; border-radius: 12px; border: 1.5px solid transparent;
  background: #fff; font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; color: var(--fm-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0;
}
.fp-day small { font-size: .62rem; font-weight: 700; color: var(--fm-brand); line-height: 1; }
.fp-day.is-available { border-color: #cfe9e1; background: #f4fbf8; }
.fp-day.is-few { border-color: #f3dc8f; background: var(--fm-banana-soft); }
.fp-day.is-few small { color: #7a5600; }
.fp-day:hover:not(:disabled) { border-color: var(--fm-brand); }
.fp-day.is-selected { background: var(--fm-brand); border-color: var(--fm-brand); color: #fff; }
.fp-day.is-selected small { color: #d9f3eb; }
.fp-day:disabled { cursor: not-allowed; color: #c3bcad; background: transparent; }
.fp-day.is-sold_out:disabled, .fp-day.is-blackout:disabled { text-decoration: line-through; }
.fp-day.is-today::after { content: ""; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--fm-coral); }
.fp-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: .82rem; color: var(--fm-muted); }
.fp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fp-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1.5px solid; }

/* ── Slot, room, package cards ────────────────────────────── */
.fp-slot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fp-slot-time { font-size: 1.15rem; font-weight: 800; }
.fp-slot-label { color: var(--fm-muted); font-size: .88rem; }
.fp-free { font-size: .8rem; font-weight: 800; }
.fp-free.is-low { color: #9a6a00; }
.fp-free.is-none { color: var(--fm-coral); }
.fp-room-swatch { width: 10px; align-self: stretch; border-radius: 6px; flex: none; }
.fp-room { display: flex; gap: 14px; }
.fp-room-name { font-weight: 800; font-size: 1.05rem; }
.fp-cap { display: flex; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: var(--fm-ink-2); margin-top: 6px; }
.fp-pkg { display: flex; flex-direction: column; height: 100%; padding: 18px; }
.fp-pkg-name { font-size: 1.25rem; font-weight: 800; padding-right: 30px; }
.fp-pkg-tag { color: var(--fm-muted); font-size: .9rem; margin: 2px 0 10px; }
.fp-pkg-price { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.fp-pkg-price small { font-size: .82rem; color: var(--fm-muted); font-weight: 600; }
.fp-pkg-meta { font-size: .84rem; color: var(--fm-ink-2); margin: 4px 0 12px; }
.fp-pkg .fm-list-check { margin-top: auto; }
.fp-pkg .fm-badge { position: absolute; top: -11px; left: 16px; }

.fp-guests { display: grid; gap: 14px; }
.fp-guest-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border: 1.5px solid var(--fm-line); border-radius: var(--fm-radius); background: #fff; }
.fp-guest-row h4 { margin: 0; font-size: 1.05rem; }
.fp-guest-row p { margin: 2px 0 0; font-size: .86rem; color: var(--fm-muted); }

.fp-theme { text-align: center; padding: 16px 12px; height: 100%; }
.fp-theme .fm-option-emoji { font-size: 2.4rem; margin-bottom: 8px; }
.fp-theme-name { font-weight: 800; }
.fp-theme-desc { font-size: .8rem; color: var(--fm-muted); margin: 4px 0 8px; min-height: 2.4em; }
.fp-extra { display: flex; gap: 12px; align-items: flex-start; padding-right: 44px; }
.fp-extra .fm-option-emoji { font-size: 1.8rem; margin: 0; }
.fp-extra-name { font-weight: 800; }
.fp-extra-desc { font-size: .84rem; color: var(--fm-muted); margin: 2px 0 6px; }

/* ── Review ───────────────────────────────────────────────── */
.fp-review-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .fp-review-grid { grid-template-columns: 1fr 1fr; } }
.fp-review-block { border: 1.5px solid var(--fm-line); border-radius: var(--fm-radius); padding: 14px 16px; background: #fff; }
.fp-review-block h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fm-muted); margin: 0 0 8px; display: flex; justify-content: space-between; }
.fp-review-block h4 button { border: 0; background: none; color: var(--fm-brand); font-weight: 800; cursor: pointer; font-size: .8rem; text-transform: none; letter-spacing: 0; }
.fp-review-block p { margin: 0 0 4px; }
.fp-gst { font-size: .82rem; color: var(--fm-muted); margin-top: 8px; }
.fp-pay-options { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 6px 0 14px; }

/* ── Confirmation ─────────────────────────────────────────── */
.fp-confirm { padding: 24px 0 48px; }
.fp-status-hero { text-align: center; padding: 8px 0 18px; }
.fp-status-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; margin: 0 auto 12px; background: var(--fm-brand-soft); }
.fp-status-icon.is-wait { background: var(--fm-banana-soft); }
.fp-status-icon.is-bad { background: var(--fm-coral-soft); }
.fp-booking-no { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 800; letter-spacing: .04em; background: var(--fm-sunk); padding: 4px 10px; border-radius: 8px; }
.fp-countdown { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.fp-detail-grid { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 700px) { .fp-detail-grid { grid-template-columns: 1.2fr 1fr; } }
.fp-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
@media print { .fm-header, .fm-footer, .fp-actions, .fm-test-banner { display: none !important; } }

/* ── Admin: day board ─────────────────────────────────────── */
.pa-board-wrap { overflow-x: auto; }
.pa-board { width: 100%; border-collapse: separate; border-spacing: 6px; min-width: 640px; }
.pa-board th { font-size: .8rem; color: var(--adm-text-secondary); text-align: left; font-weight: 800; padding: 4px 6px; white-space: nowrap; }
.pa-board th.pa-room { width: 150px; }
.pa-room-name { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--adm-text-primary); }
.pa-room-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.pa-cell { border-radius: 10px; min-height: 64px; vertical-align: top; padding: 0; }
.pa-free {
  width: 100%; min-height: 64px; border: 1.5px dashed var(--adm-border); background: #fafbfc; border-radius: 10px;
  color: var(--adm-text-muted); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer;
}
.pa-free:hover { border-color: var(--adm-accent); color: var(--adm-accent); background: var(--adm-accent-soft); }
.pa-closed { min-height: 64px; border-radius: 10px; background: repeating-linear-gradient(-45deg, #f3f4f6, #f3f4f6 6px, #eceef1 6px, #eceef1 12px); color: var(--adm-text-muted); font-size: .76rem; font-weight: 700; display: flex; align-items: center; justify-content: center; text-transform: capitalize; }
.pa-chip {
  width: 100%; min-height: 64px; text-align: left; border: 0; border-radius: 10px; padding: 8px 10px; cursor: pointer;
  font: inherit; display: flex; flex-direction: column; gap: 2px; border-left: 4px solid;
}
.pa-chip strong { font-size: .9rem; }
.pa-chip span { font-size: .76rem; opacity: .85; }
.pa-chip.st-pending { background: var(--adm-yellow-soft); border-color: #d97706; color: var(--adm-yellow); }
.pa-chip.st-partially_paid { background: var(--fm-violet-soft, #ede8fb); border-color: #6d4ad6; color: #4c2fb0; }
.pa-chip.st-confirmed { background: var(--adm-green-soft); border-color: var(--adm-green); color: #14532d; }
.pa-chip.st-completed { background: #e6eefc; border-color: #2f6fde; color: #1d4a99; }
.pa-chip.has-attention { box-shadow: 0 0 0 2px var(--adm-red) inset; }
.pa-date-nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pa-date-nav .adm-form-control { width: auto; }

/* Drawer */
.pa-drawer-backdrop { position: fixed; inset: 0; background: rgba(17, 24, 39, .35); z-index: 1900; display: none; }
.pa-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: #fff; z-index: 1950;
  box-shadow: -12px 0 40px rgba(0, 0, 0, .18); display: flex; flex-direction: column; transform: translateX(100%);
  transition: transform .2s ease;
}
.pa-drawer.is-open { transform: none; }
.pa-drawer-head { padding: 16px 20px; border-bottom: 1px solid var(--adm-border); display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.pa-drawer-body { padding: 16px 20px; overflow-y: auto; flex: 1; }
.pa-drawer-foot { padding: 12px 20px; border-top: 1px solid var(--adm-border); display: flex; flex-wrap: wrap; gap: 8px; }
.pa-section { margin-bottom: 18px; }
.pa-section h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--adm-text-secondary); margin: 0 0 8px; font-weight: 800; }
.pa-money { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pa-money div { background: #f8fafc; border: 1px solid var(--adm-border); border-radius: 10px; padding: 8px 10px; }
.pa-money small { display: block; font-size: .72rem; color: var(--adm-text-secondary); font-weight: 700; text-transform: uppercase; }
.pa-money strong { font-size: 1.05rem; }
.pa-attention { background: var(--adm-red-soft); color: var(--adm-red); border-radius: 10px; padding: 10px 12px; font-weight: 700; font-size: .9rem; margin-bottom: 14px; display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; }
.pa-pick-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pa-pick { border: 1.5px solid var(--adm-border); border-radius: 10px; padding: 8px 10px; background: #fff; cursor: pointer; text-align: left; font: inherit; font-size: .88rem; }
.pa-pick strong { display: block; }
.pa-pick.active { border-color: var(--adm-accent); background: var(--adm-accent-soft); }
.pa-pick:disabled { opacity: .45; cursor: not-allowed; }
.pa-check-list { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.pa-check-list label { display: flex; gap: 8px; align-items: center; font-size: .9rem; border: 1px solid var(--adm-border); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.pa-quote { background: #f8fafc; border: 1px solid var(--adm-border); border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
.pa-quote .fm-num { font-weight: 800; }
.pa-weekdays { display: flex; gap: 6px; flex-wrap: wrap; }
.pa-weekdays label { display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid var(--adm-border); border-radius: 999px; padding: 4px 10px; font-size: .85rem; font-weight: 700; cursor: pointer; }
.pa-weekdays input { accent-color: var(--adm-accent); }
.pa-inactive td { opacity: .55; }
