/* pc-uxsweep-20261204: ParksControl staff-app polish (Luke t886u). UI only: layout, wrapping, tap targets.
   Scoped to the signed-in staff shell (div.lg:pl-64) so the guest guide, booking engine and login are untouched. */

/* 1. Dashboard stat cards: no mid-word breaks in labels ("DEPARTUR-ES", "OUTSTANDI-NG"); values never split
      ("£11,744.7 / 5") – pc-polish.js shrinks the font to fit instead. */
.lg\:pl-64 .card .\[overflow-wrap\:anywhere\].uppercase { overflow-wrap: normal; word-break: normal; hyphens: manual; letter-spacing: .02em; }
.lg\:pl-64 .card .tabular-nums.font-bold.break-words { overflow-wrap: normal; word-break: keep-all; white-space: nowrap; }

/* 2. Tables that are wider than the screen scroll inside their card instead of pushing the whole page sideways
      (class added by pc-polish.js only when a table actually overflows). */
.pc-x-scroll { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* 3. Scrollable tab strips (Reservations, Booking setup…): fade the right edge while there are more tabs to see. */
.pc-tabs-more { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }

/* 4. Lists of bookings: keep dates, money and channel names on one line. */
.lg\:pl-64 table td.text-right, .lg\:pl-64 table th.text-right { white-space: nowrap; }
.lg\:pl-64 table td:has(> span.rounded-full.h-2.w-2:first-child) { white-space: nowrap; }

/* 5. Maintenance board (desktop): priority badges wrap instead of poking 8px out of the card. */
.lg\:pl-64 a.card .flex.items-start.justify-between > span.flex.shrink-0.gap-1 { flex-wrap: wrap; justify-content: flex-end; max-width: 50%; }

/* 6. Long notes in owner income / similar lists can wrap. */
.lg\:pl-64 li.flex.flex-wrap > span { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 1023.98px) {
  /* 7. Never let the page wobble sideways on a phone. */
  .lg\:pl-64 > main { overflow-x: clip; }
  /* 8. Booking / reservation header: status + Confirmation PDF + Send email + Mark provisional wrap onto two lines
        (was 21px off the right edge). */
  .lg\:pl-64 .mb-5.flex.flex-wrap.items-end.justify-between .flex.flex-wrap.gap-2 > .flex.items-center.gap-2 { flex-wrap: wrap; }
  /* 9. Stock rows: +In / −Used / Set count / Delete wrap (was 36px off screen). */
  .lg\:pl-64 .card .flex.flex-wrap.items-center > form.flex.items-center.gap-1 { flex-wrap: wrap; }
  /* 10. Calendar / bookings-list filters: two tidy columns of full-width dropdowns instead of a ragged row. */
  .lg\:pl-64 form[data-testid="filters"] { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; align-items: end; }
  .lg\:pl-64 form[data-testid="filters"] > label, .lg\:pl-64 form[data-testid="filters"] select { width: 100%; min-width: 0; }
  .lg\:pl-64 form[data-testid="park-filter"] select { min-width: 0; flex: 1 1 auto; }
}

/* 11. Touch screens: bigger tap targets (Apple/Google guidance is ~44px; we stay compact but no more 13px boxes). */
@media (pointer: coarse) {
  .lg\:pl-64 input[type="checkbox"]:not(.sr-only):not(.peer):not(.hidden), .lg\:pl-64 input[type="radio"]:not(.sr-only):not(.peer):not(.hidden) { width: 20px; height: 20px; min-width: 20px; }
  .lg\:pl-64 .btn-sm { min-height: 36px; }
  .lg\:pl-64 main select.input, .lg\:pl-64 main select { min-height: 40px; }
  .lg\:pl-64 main summary { padding-block: 8px; }
  /* inline links inside tables (Open, Preview, guest names): taller hit area without moving anything */
  .lg\:pl-64 main table a { padding-block: 8px; }
}
