/* Gym Manager — admin UI stylesheet.
 *
 * Single source of design truth (Phase 6 plan §5c): design tokens as
 * :root custom properties, plus the base layout every page shares.
 * Small, hand-written, no framework. Component CSS beyond what M1 uses
 * (calendar cards, booking rows, ...) is added in the milestone that
 * first renders it — not speculatively here.
 */

:root {
    /* TRIAL PALETTE — reverted to the james-whipp.webflow.io-derived
       green/teal (user preferred this over the navy-logo variant).
       Visual validation only, not yet BB-reviewed or approved as the
       real Phase design system. Logo mark now shown via logo-mark.png
       (pre-cropped monogram) regardless of accent color chosen. */
    --bg: #FFFFFF;
    --surface: #FFFFFF;
    --ink: #222222;
    --accent: #5ab963;
    --accent-secondary: #457e7d;
    --muted: #999999;

    /* Shades derived from the palette above — do not add new base tokens. */
    --border: #E6E6E6;
    --ink-soft: #333333;

    /* Status pill hues (bookings render in M2; tokens are cheap now). */
    --status-confirmed: var(--accent);
    --status-completed: var(--accent-secondary);
    --status-no-show: #B0603A;
    --status-canceled: var(--muted);

    /* Type — real Libre Franklin (body) from the reference site;
       Industry (their heading face) is a paid commercial font we can't
       use, substituted with Oswald (free, similarly bold/condensed). */
    --font-body: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: "Oswald", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Spacing / misc */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 24px;
    --radius: 6px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.5;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-4);
}

a {
    color: var(--accent);
}

/* Django's default form-error rendering ({{ form.as_p }} auto-includes
   non_field_errors as this <ul>) — style it as an error instead of
   plain black bullets. Bug fix: login.html used to ALSO render
   {{ form.non_field_errors }} explicitly above the form, duplicating
   this same list. */
ul.errorlist {
    color: var(--status-no-show);
    list-style: none;
    margin: 0 0 var(--space-3);
    padding: 0;
}

/* Logout is a POST-only form (Django 5's LogoutView, GET removed) —
   .logout-form/.link-button make the button read as the plain text
   link it visually replaces. */
.logout-form {
    display: inline;
    margin: 0;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.01em;
    margin: 0 0 var(--space-3);
}

/* Global authenticated top bar (bare <nav> in base.html — the admin's
   own nav shell below is a distinct component, styled by class). */
body > nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-4);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

/* Brand mark — TRIAL: the source file (static/images/logo.jpeg) is the
   full lockup (monogram + wordmark below it); at nav-bar scale only the
   monogram should show. Cropped via object-fit rather than a second
   image asset: the box is scaled-by-width (526x450 source, ~63% as
   tall as wide) then object-position:top keeps only the monogram band,
   letting the wordmark below fall outside the box. The area nav
   block right after it (.admin-nav/.client-nav/.trainer-nav) carries
   its own margin-right:auto now, so logo+tabs group at the left and
   name+logout stay pushed to the far right (nav's flex-end default). */
.site-logo {
    /* logo-mark.png is already pre-cropped to just the monogram
       (static/images/logo.jpeg is the full lockup incl. wordmark) —
       no object-fit cropping needed, just scale it. */
    height: 36px;
    width: auto;
}

/* Login page — the one place the full lockup (monogram + wordmark)
   gets room to breathe, per the design brief. */
.login-shell {
    max-width: 360px;
    margin: var(--space-4) auto 0;
    text-align: center;
}

.login-logo {
    width: 180px;
    margin-bottom: var(--space-4);
}

.login-shell h1 {
    text-align: center;
}

.login-shell form {
    text-align: left;
}

.form-error {
    color: var(--status-no-show);
}

/* Admin nav shell */
.admin-shell {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* Lives inline in the shared top bar now (base.html's {% block
   nav_tabs %}, right after .site-logo) — margin-right:auto groups it
   with the logo at the left, leaving name/logout pushed to the right
   by the bar's own flex-end default (2026-08-25, was its own full-width
   row with a bottom border before that merge). */
.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-right: auto;
}

.admin-nav a {
    color: var(--ink-soft);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
}

.admin-nav a:hover {
    color: var(--accent);
}

.notif-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8em;
    height: 1.8em;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 50%;
}

.notif-bell:hover {
    background: var(--border);
}

.notif-dot {
    position: absolute;
    top: 0.15em;
    right: 0.15em;
    width: 0.5em;
    height: 0.5em;
    background: var(--status-no-show);
    border-radius: 50%;
    border: 1px solid var(--surface);
}

/* Config hub — square links to the individual config screens. Named
   config-hub-* (not config-grid/config-card) because .config-grid is
   already taken below by the week-configuration form layout — a same-
   name flex rule later in this file was silently overriding this one. */
.config-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 120px));
    gap: var(--space-3);
}

.config-hub-card {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-2);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--ink-soft);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
}

.config-hub-card:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Tables — the calendar and client lists are the content; keep the
   row/column rhythm plain and scannable. */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
}

th, td {
    text-align: left;
    padding: var(--space-2) var(--space-3);
    border-bottom: 1px solid var(--border);
}

th {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
}

/* Status pills — the signature element (§5c). Bookings render these
   from M2 onward; tokens/classes live here so the palette stays
   centralized. */
.pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--surface);
    background: var(--muted);
}

.pill.confirmed { background: var(--status-confirmed); }
.pill.completed { background: var(--status-completed); }
.pill.no_show { background: var(--status-no-show); }
.pill.canceled { background: var(--status-canceled); text-decoration: line-through; }

/* Django messages (e.g. AssignTrainerView's ValidationError surfacing). */
.messages {
    list-style: none;
    margin: 0 0 var(--space-3);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.messages .message {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}

.messages .message.error {
    color: var(--status-no-show);
    border-color: var(--status-no-show);
}

/* Week calendar (§49) — the marquee screen. */
.calendar-nav {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.calendar-nav h1 {
    margin: 0;
}

/* §49a: direct week selection (partials/week_picker.html) sits under
   the arrows, and the arrows themselves grey out at the navigable
   bounds. .nav-disabled moved here from client.css/trainer.css, which
   each kept a local copy back when only they had bounded nav — this
   file is loaded in all three areas, so one rule now covers them. */
.nav-disabled {
    color: var(--muted);
}

.week-picker {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.calendar {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.calendar-day h2 {
    font-size: 1rem;
    margin-bottom: var(--space-2);
}

.calendar-day-classes {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

/* Class card — native <details>/<summary>, zero JS expand/collapse. */
.class-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-2) var(--space-3);
}

.class-card summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
    font-weight: 600;
}

.class-card-canceled {
    opacity: 0.6;
}

.class-card-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border);
}

.class-card-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}

.class-card-bookings {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

/* Booking row — the HTMX swap target (name | pill | actions). */
.booking-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-1) 0;
}

.booking-row-name {
    flex: 1;
}

.booking-row-actions {
    display: flex;
    gap: var(--space-2);
}

.booking-row-error {
    color: var(--status-no-show);
    font-size: 0.85rem;
}

/* Form controls — simple, no framework. */
select, textarea, button,
input[type="text"], input[type="email"], input[type="date"], input[type="number"],
input[type="search"] {
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: var(--space-1) var(--space-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
}

textarea {
    width: 100%;
    max-width: 480px;
    min-height: 4em;
    font-family: inherit;
}

button {
    background: var(--accent);
    color: var(--surface);
    border-color: var(--accent);
    cursor: pointer;
    font-weight: 600;
}

button:hover {
    opacity: 0.9;
}

/* Client list (§48) — search box + pagination. */
.client-search {
    width: 100%;
    max-width: 360px;
    margin-bottom: var(--space-3);
}

.pagination {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-3);
    font-size: 0.9rem;
}

/* "no bookings next week" highlight. A tint derived from the existing
   --status-no-show token via color-mix(), not a new base color. */
.row-flagged {
    background: color-mix(in srgb, var(--status-no-show) 12%, var(--surface));
}

.flag-marker {
    display: inline-block;
    margin-left: var(--space-2);
    font-size: 0.75rem;
    color: var(--status-no-show);
}

/* Client detail (§48) — summary block. */
.client-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3);
}

.client-summary-label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
}

/* Client detail — one row per booking that week; wraps the reused
   .booking-row (name | pill | actions) with its date/time/type. */
.client-bookings {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.client-booking-slot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-2) var(--space-3);
}

.client-booking-datetime {
    font-weight: 600;
    white-space: nowrap;
}

.client-booking-type {
    color: var(--ink-soft);
}

.client-booking-slot .booking-row {
    flex: 1;
    padding: 0;
}

/* A11y floor — visible keyboard focus, reduced motion. */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* List/detail page header — title + a primary action link
   ("Novo cliente"). Same flex-row rhythm as .calendar-nav. */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.page-header h1 {
    margin: 0;
}

/* Generic page-level intro copy, right after <h1>/.calendar-nav — every
   /config/ screen had this as a bare <p> relying on the browser's
   default paragraph margin for spacing, which reads as cramped and is
   inconsistent with the token system. Deliberate gap instead. Repeat
   the class on consecutive intro paragraphs (e.g. capacity.html) —
   margin collapse gives the same gap between them as after the last
   one. Reserved for actual description copy (softened to --ink-soft) —
   NOT for nav strips; see .week-nav-line below for that. */
.page-intro {
    margin: 0 0 var(--space-4);
    color: var(--ink-soft);
}

/* A catalogue/list table followed by more content (an "add new" form,
   a heading) — tables have zero default margin, so without this the
   next element touches the table directly. */
.config-table {
    margin-bottom: var(--space-4);
}

/* Week configuration (Phase 6 M5, §40) — 7 day rows: active checkbox +
   start/end time, one continuous block per day. */
.config-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    max-width: 640px;
}

.config-day-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-3) var(--space-4);
}

.config-day-active {
    min-width: 140px;
    font-weight: 600;
}

.config-day-row label {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 0.85rem;
    color: var(--ink-soft);
}

/* Today: §40 will not let the admin contract it. Inputs stay enabled —
   the day can still be widened — so this is a hint, not a disabled
   state. */
.config-day-today {
    border-style: dashed;
}

/* Before today: §40 freezes the day outright. The fields carry the
   `disabled` attribute, so this only has to make the row read as inert. */
.config-day-past {
    border-style: dashed;
    opacity: 0.75;
}

.config-day-note {
    flex-basis: 100%;
    font-size: 0.8rem;
    color: var(--ink-soft);
}

/* Calendar grid shell (admin/trainer/client calendar pages — see
   .calendar-grid below) — days × time slots. NOT used by the trainer
   schedule screen: that used to be an hour × day table sharing this
   shell, but is a list of per-day cards now (.schedule-day et al.,
   further down) — the "schedule" in this class's name is a naming
   leftover from before that rework, not a live dependency. Horizontal
   scroll wrapper keeps a full week readable on narrow viewports. */
.schedule-grid-wrap {
    overflow-x: auto;
}

.schedule-grid th,
.schedule-grid td {
    text-align: center;
    white-space: nowrap;
}

.schedule-grid th:first-child,
.schedule-grid td:first-child {
    text-align: left;
    white-space: normal;
}

.block-row {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    margin-bottom: var(--space-1);
}

/* Trainer schedule (§11-13), per-day layout: one card per configured
   date, same surface/border/radius language as .config-day-row, with
   that day's hourly Fixo checkboxes folded behind a native <details>
   (zero JS — same pattern as .class-card/.performance-history). */
.schedule-trainer-form {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

/* The intro <p> here is a .page-intro (reused, not redeclared) — this
   only adds the max-width the longer description copy on this
   specific screen wants; .page-intro's own margin already produces the
   gap to whatever comes after, so this wrapper carries no margin of
   its own. */
.schedule-intro h2 {
    margin-bottom: var(--space-2);
}

.schedule-intro .page-intro {
    max-width: 640px;
}

/* The month-week nav strip is NOT description copy — no .page-intro
   here (that class is for text, not a list of nav links; see its own
   comment above). Just the deliberate gap. */
.week-nav-line {
    margin: 0 0 var(--space-4);
}

.schedule-days {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.schedule-day {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-3) var(--space-4);
}

.schedule-save {
    margin-top: var(--space-2);
}

.schedule-day-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
}

.schedule-day-label {
    min-width: 90px;
    font-weight: 600;
}

.schedule-day-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    flex: 1;
}

.block-row-new {
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: var(--space-1) var(--space-2);
    color: var(--muted);
}

.fixed-hours-toggle {
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border);
}

.fixed-hours-toggle summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.fixed-hours-table {
    margin-top: var(--space-2);
    max-width: 220px;
}

.fixed-hours-table th,
.fixed-hours-table td {
    padding: var(--space-1) var(--space-2);
}

.fixed-hours-table td {
    text-align: center;
}

/* Calendar grid (admin/trainer/client calendar/ pages) — days × time
   slots, using the .schedule-grid-wrap/table shell above. Cells hold
   class-cards or a slot pill, so text stays left/top-aligned and free
   to wrap instead of that shell's plain-table defaults (centered,
   nowrap). */
.calendar-grid th:first-child,
.calendar-grid td:first-child {
    white-space: nowrap;
}

.calendar-grid td {
    text-align: left;
    white-space: normal;
    vertical-align: top;
    min-width: 180px;
}

/* Multiple class-cards (§13: a slot can hold a group class + several
   individual ones) stack via normal block flow — <details> is
   block-level by default, no flex needed. (A td forced to
   display:flex previously pulled it out of the table's column layout
   in most browsers, collapsing every day's column into one — do not
   reintroduce that.) Plain margin gives the same visual gap. */
.calendar-grid .class-card + .class-card,
.calendar-grid .class-card + .cell-add,
.calendar-grid td > .cell-add {
    margin-top: var(--space-2);
}

/* "+" add-individual-class affordance (native <details>, zero JS) —
   hidden until the cell is hovered/focused so the grid doesn't look
   cluttered with a button on every slot. ``display: none`` (not
   opacity) so the hidden state reserves zero layout space — no blank
   gap under cells that aren't being hovered. Only hidden on pointers
   that can actually hover; touch devices (no hover) always show it,
   since there's no hover gesture to reveal it with there. Once
   opened, ``[open]`` keeps it visible regardless of hover (native
   <details> behaviour) — a click elsewhere collapsing it mid-fill
   would lose the form's input. */
.cell-add summary {
    list-style: none;
    cursor: pointer;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1;
}

.cell-add summary::-webkit-details-marker {
    display: none;
}

.cell-add-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-top: var(--space-2);
    min-width: 200px;
}

@media (hover: hover) {
    .cell-add {
        display: none;
    }

    td:hover .cell-add,
    .cell-add:focus-within,
    .cell-add[open] {
        display: block;
    }
}

/* Frozen indicator (§4) — reuses .pill, no new base color (§5c). */
.pill.frozen {
    background: var(--muted);
}

/* Client management (Phase 6 M4) — freeze/plan/trainer/performance
   actions on the client detail page. Each card reuses the
   --surface/--border treatment already established by .client-summary,
   as a plain block rather than a grid since these hold forms. */
.client-management {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.management-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-3) var(--space-4);
}

.management-card h2 {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* Confirmation dialog (native <dialog>) — freeze/unfreeze account,
   reusable for any other destructive admin action later. Also the base
   for .form-dialog (Dados/Desempenho/Perfil edit popups), just wider. */
dialog.confirm-dialog {
    max-width: 420px;
    padding: var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-body);
}

dialog.form-dialog {
    position: relative;
    max-width: 480px;
    width: 100%;
}

.dialog-close {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    width: 1.6em;
    height: 1.6em;
    padding: 0;
    line-height: 1;
    font-size: 1.1rem;
    background: none;
    color: var(--ink-soft);
    border: none;
}

.dialog-close:hover {
    color: var(--ink);
    opacity: 1;
}

dialog.confirm-dialog::backdrop {
    background: rgba(0, 0, 0, 0.4);
}

.confirm-dialog-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.button-secondary {
    background: var(--surface);
    color: var(--ink-soft);
    border-color: var(--border);
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6em;
    height: 1.6em;
    padding: 0;
    line-height: 1;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 50%;
}

.icon-button-danger {
    background: none;
    border: none;
    border-radius: 0;
    color: #8B0000;
    padding: 0;
    width: auto;
    height: auto;
    font-size: 1rem;
    font-weight: 700;
}

.icon-button-danger:hover {
    opacity: 0.7;
}

.performance-history {
    margin-top: var(--space-3);
}

.performance-history summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--ink-soft);
}

.performance-history ul {
    list-style: none;
    margin: var(--space-2) 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.client-trainer-list {
    list-style: none;
    margin: 0 0 var(--space-3);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.client-trainer-list li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* Generic form layout — client create/edit page (clients/form.html)
   and the performance management card. */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    max-width: 480px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.form-row label {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
}

.form-error {
    color: var(--status-no-show);
    font-size: 0.85rem;
}

/* §40 relocate/cancel screen — the per-row "realocar para <slot>" form
   and the bulk cancel below the table. The row actions reuse
   .booking-row-actions (flex), so these only need to keep the select and
   its button on one line and give the bulk action breathing room. */
.relocate-form {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.relocate-bulk {
    margin-bottom: var(--space-4);
}

