/* Self-hosted Plus Jakarta Sans (variable font, OFL-licensed).
 * Fetched from Google Fonts and split by language subset; one @font-face
 * per subset with the full weight range so the browser picks any weight.
 * Removing the third-party RTT to fonts.googleapis.com / fonts.gstatic.com
 * shaves ~150–300ms off LCP — material for Core Web Vitals ranking. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/static/fonts/plus-jakarta-sans/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/static/fonts/plus-jakarta-sans/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/static/fonts/plus-jakarta-sans/plus-jakarta-sans-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/static/fonts/plus-jakarta-sans/plus-jakarta-sans-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Bokaren — brand colors from logo */
:root {
    --blue-900: #1e293b;
    --blue-800: #334155;
    --blue-700: #475569;
    --blue-600: #64748b;
    --blue-500: #94a3b8;
    --blue-400: #cbd5e1;
    --blue-300: #e2e8f0;
    --blue-200: #f1f5f9;
    --blue-100: #f8fafc;
    --blue-50: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --green-500: #16a34a;
    --green-50: #f0fdf4;
    --red-500: #dc2626;
    --red-50: #fef2f2;
    --yellow-500: #f59e0b;
    /* Accent aliases — overridden per-tenant via theme CSS injection */
    --accent-900: var(--blue-900);
    --accent-800: var(--blue-800);
    --accent-700: var(--blue-700);
    --accent-600: var(--blue-600);
    --accent-500: var(--blue-500);
    --accent-400: var(--blue-400);
    --accent-300: var(--blue-300);
    --accent-200: var(--blue-200);
    --accent-100: var(--blue-100);
    --accent-50: var(--blue-50);
    /* Booking preset defaults (overridden per-tenant via booking_preset_css_for).
     * Values mirror static/brand.css paper/sand/ink foundation so the booking
     * page feels like a continuation of the landing/funnel surfaces. */
    --bk-bg: #FAFAF7;
    --bk-surface: #FFFFFF;
    --bk-sand: #F3F0EA;
    --bk-border: #E6E3DC;
    --bk-text: #111111;
    --bk-text-muted: #5B5B5B;
    --bk-primary: #F15A42;
    --bk-primary-dark: #D94B34;
    --bk-primary-light: #FFF1EB;
    --bk-accent: #F15A42;
    --bk-border-focus: #F15A42;
    --bk-chip: #FCD5B5;
    --bk-chip-soft: #FDE7D6;
    --bk-chip-ink: #5A2A1A;
    --bk-radius-sm: 6px;
    --bk-radius: 12px;
    --bk-radius-lg: 20px;
    --bk-shadow-card: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(17,17,17,.06);
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.5;
}
a { color: var(--accent-600); }
a:hover { color: var(--accent-800); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s;
}
.btn-primary { background: var(--accent-600); color: #fff; }
.btn-primary:hover { background: var(--accent-700); }
.btn-danger { background: var(--red-500); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-outline { background: transparent; border: 2px solid var(--accent-200); color: var(--accent-600); }
.btn-outline:hover { border-color: var(--accent-600); background: var(--accent-50); }
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.8rem; }
.btn-lg { padding: 0.75rem 2rem; font-size: 1.1rem; }

/* Forms */
input, select, textarea {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--gray-800);
    background: #fff;
    width: 100%;
}
/* Checkboxes and radios should keep their intrinsic box size — the global
 * `width: 100%` rule above otherwise makes them stretch and collapse
 * adjacent flex siblings (e.g. label text) to zero width. */
input[type="checkbox"], input[type="radio"] {
    width: auto;
    padding: 0;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-500);
    box-shadow: 0 0 0 3px var(--accent-100);
}
label { display: block; margin-bottom: 0.25rem; font-weight: 500; color: var(--gray-700); font-size: 0.875rem; }
.form-group { margin-bottom: 1rem; }
.form-row { display: flex; gap: 0.75rem; align-items: end; flex-wrap: wrap; }
.form-row > * { flex: 1; min-width: 120px; }
.form-error { color: var(--red-500); font-size: 0.8rem; margin-top: 0.25rem; }
.addr-postal-row { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.addr-postal { flex: 0 0 8rem; }
.addr-city { flex: 1; min-width: 0; }

/* Messages */
.success-msg { color: var(--green-500); background: var(--green-50); padding: 0.5rem 0.75rem; border-radius: 6px; font-size: 0.875rem; margin-bottom: 0.75rem; }
.error-msg { color: var(--red-500); background: var(--red-50); padding: 0.5rem 0.75rem; border-radius: 6px; font-size: 0.875rem; margin-bottom: 0.75rem; }

/* Cards & items */
.card { background: #fff; border-radius: 8px; padding: 1.25rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.item-row { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--gray-100); }
.item-row:last-of-type { border-bottom: none; }

/* Admin layout — CSS Grid: sidebar + toolbar + content */
.admin-layout {
    display: grid;
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto 1fr;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.admin-sidebar {
    grid-column: 1;
    grid-row: 1 / -1;
    background: var(--accent-900);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0;
    gap: 0.25rem;
    z-index: 10;
}
.admin-sidebar .sidebar-logo { width: 32px; height: 32px; margin-bottom: 0.75rem; }
.admin-sidebar .sidebar-logo img { width: 100%; height: 100%; object-fit: contain; }
.sidebar-nav { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; flex: 1; }
.sidebar-nav-bottom { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding-top: 0.5rem; border-top: 1px solid var(--accent-700); width: 80%; }
.nav-icon {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 10px;
    color: var(--accent-400); text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.nav-icon:hover { background: var(--accent-800); color: #fff; }
.nav-icon.active { background: var(--accent-600); color: #fff; }
.nav-icon svg { width: 20px; height: 20px; }
.sidebar-user-section { position: relative; display: flex; flex-direction: column; align-items: center; margin-bottom: 0.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--accent-700); width: 80%; }
.sidebar-user-wrap { cursor: pointer; }
.sidebar-user {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--accent-700); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700;
}
.sidebar-user-photo { object-fit: cover; border: 2px solid var(--accent-500); }
.sidebar-dropdown {
    position: absolute; top: 0; left: 3.5rem;
    background: var(--accent-800); border: 1px solid var(--accent-600);
    border-radius: 8px; min-width: 200px; padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); z-index: 100;
}
.sidebar-dropdown-header { padding: 0.5rem 0.75rem; }
.sidebar-dropdown-name { display: block; color: #fff; font-size: 0.85rem; font-weight: 600; }
.sidebar-dropdown-email { display: block; color: var(--accent-400); font-size: 0.7rem; margin-top: 0.1rem; }
.sidebar-dropdown-divider { height: 1px; background: var(--accent-600); margin: 0.25rem 0; }
.sidebar-dropdown-item {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 0.75rem; color: var(--accent-200); font-size: 0.8rem;
    text-decoration: none; transition: background 0.15s;
}
.sidebar-dropdown-item:hover { background: var(--accent-700); color: #fff; }
.sidebar-dropdown-item svg { width: 16px; height: 16px; }
.sidebar-version { font-size: 0.5rem; color: var(--accent-500); opacity: 0.7; }
/* Mobile user avatar */
.mobile-user-wrap { position: relative; }
.mobile-user-avatar {
    width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--accent-500);
}
.mobile-user-initials {
    background: var(--accent-700); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.55rem; font-weight: 700;
}
.mobile-dropdown {
    position: absolute; bottom: 3.5rem; right: -0.5rem;
    background: var(--accent-800); border: 1px solid var(--accent-600);
    border-radius: 8px; min-width: 200px; padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); z-index: 100;
}

/* Toolbar */
.admin-toolbar {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    min-height: 48px;
    flex-wrap: wrap;
}
.toolbar-spacer { flex: 1; }
.toolbar-title {
    font-size: 0.9rem; font-weight: 600; color: var(--accent-900);
    white-space: nowrap;
}
.toolbar-group { display: flex; align-items: center; gap: 0.35rem; }

/* Pill buttons */
.pill {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.35rem 0.75rem; border-radius: 999px;
    border: 1px solid var(--gray-200); background: #fff;
    font-size: 0.8rem; color: var(--gray-700);
    cursor: pointer; text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap; line-height: 1.3;
}
.pill:hover { border-color: var(--accent-500); background: var(--accent-50); color: var(--accent-700); }
.pill.active { background: var(--accent-600); color: #fff; border-color: var(--accent-600); }
.pill.active:hover { background: var(--accent-700); border-color: var(--accent-700); }
.pill.pill-primary { background: var(--accent-600); color: #fff; border-color: var(--accent-600); }
.pill.pill-primary:hover { background: var(--accent-700); border-color: var(--accent-700); }
.pill svg { width: 14px; height: 14px; }
.pill-nav { padding: 0.35rem 0.5rem; } /* narrower for arrow-only pills */

/* Content area */
.admin-content {
    grid-column: 2;
    grid-row: 2;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}
.admin-content.full-width { padding: 0.5rem 1rem; }
.admin-content.setup-view { max-width: 1200px; }

/* Bottom nav (mobile only, hidden on desktop) */
.admin-bottom-nav {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    height: 56px; background: var(--accent-900);
    align-items: center; justify-content: space-around;
    z-index: 50;
    padding: 0 1rem;
}
.admin-bottom-nav .nav-icon { color: var(--accent-400); }

/* Section headers */
section { margin-bottom: 2rem; }
section h2 { color: var(--accent-900); border-bottom: 2px solid var(--accent-100); padding-bottom: 0.5rem; font-size: 1.25rem; }

/* Landing page */
.hero { background: linear-gradient(135deg, var(--accent-900) 0%, var(--accent-700) 100%); color: #fff; padding: 4rem 1.5rem; text-align: center; }
.hero .logo { height: 160px; margin-bottom: 1rem; }
.hero h1 { font-size: 2.5rem; margin: 0 0 1rem; }
.hero p { font-size: 1.2rem; color: var(--accent-200); max-width: 600px; margin: 0 auto 2rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-buttons .btn-cta { background: var(--accent-400); color: #fff; border: 2px solid var(--accent-400); }
.hero-buttons .btn-cta:hover { background: var(--accent-300); border-color: var(--accent-300); }
.hero-buttons .btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.hero-buttons .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

.features { max-width: 800px; margin: 3rem auto; padding: 0 1.5rem; }
.feature { margin-bottom: 2rem; padding: 1.25rem; background: #fff; border-radius: 8px; border-left: 4px solid var(--accent-500); box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.feature h3 { margin: 0 0 0.5rem; color: var(--accent-900); }
.feature p { color: var(--gray-600); margin: 0; }

.footer { text-align: center; padding: 2rem; color: var(--gray-400); font-size: 0.8rem; }

/* Auth pages */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--gray-100); }
.auth-card { background: #fff; border-radius: 12px; padding: 2.5rem; width: 100%; max-width: 400px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.auth-card .logo-header { text-align: center; margin-bottom: 2rem; }
.auth-card .logo-header img { height: 160px; }
.auth-card h1 { text-align: center; color: var(--accent-900); margin: 0.5rem 0 1.5rem; font-size: 1.5rem; }
.auth-card p a {
    display: inline-block; padding: 0.6rem 0.75rem;
    text-decoration: none; border-radius: 6px;
    min-height: 40px; line-height: 1.5;
}
.auth-card p a:hover { text-decoration: underline; background: var(--gray-100); }

/* Public booking — brand-aligned (see static/brand.css for the source palette) */
.booking-page {
    background: var(--bk-bg); min-height: 100vh; color: var(--bk-text);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}
.booking-header {
    background: #fff;
    border-bottom: 1px solid var(--bk-border);
    padding: 1rem 1.5rem;
}
@media (min-width: 768px) {
    .booking-header {
        position: sticky; top: 0; z-index: 10;
        backdrop-filter: saturate(1.05);
    }
}
.booking-header-inner {
    max-width: 760px; margin: 0 auto;
    display: flex; align-items: center; gap: 0.875rem;
}
.booking-header-icon {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bk-primary);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.booking-header-icon svg { width: 18px; height: 18px; color: #fff; }
.booking-header-text {
    display: flex; flex-direction: column; gap: 0.125rem; min-width: 0;
}
.booking-header-name {
    margin: 0; font-size: 1.05rem; font-weight: 600;
    letter-spacing: -0.01em; color: var(--bk-text);
}
.booking-header-meta {
    margin: 0; font-size: 0.85rem; color: var(--bk-text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.booking-container {
    max-width: 760px; margin: 1.5rem auto 0; padding: 0 1.25rem 2.5rem;
}
.booking-card-wrap {
    background: var(--bk-surface); border-radius: var(--bk-radius-lg);
    padding: 2.25rem 2.5rem 2.5rem;
    box-shadow: var(--bk-shadow-card);
    border: 1px solid var(--bk-border);
}
.booking-step-title {
    color: var(--bk-text); font-size: 1.4rem;
    margin: 0.25rem 0 1.5rem; font-weight: 600;
    letter-spacing: -0.01em;
}
.booking-empty { color: var(--bk-text-muted); }

/* Progress indicator */
.booking-progress {
    display: flex; align-items: center; justify-content: center;
    gap: 0; margin-bottom: 1.5rem; padding: 0.5rem;
}
.progress-step {
    display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
    flex-shrink: 0;
}
.progress-circle {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700;
    background: var(--bk-border); color: var(--bk-text-muted);
    transition: all 0.3s;
}
.progress-step.active .progress-circle {
    background: var(--bk-primary); color: #fff;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--bk-primary) 15%, transparent);
}
.progress-step.completed .progress-circle {
    background: var(--bk-primary); color: #fff; opacity: 0.75;
}
.progress-label {
    font-size: 0.7rem; color: var(--bk-text-muted); white-space: nowrap;
    transition: color 0.3s; text-transform: uppercase; letter-spacing: 0.03em;
}
.progress-step.active .progress-label { color: var(--bk-primary-dark); font-weight: 600; }
.progress-step.completed .progress-label { color: var(--bk-primary); }
.progress-line {
    flex: 1; height: 2px; min-width: 24px;
    background: var(--bk-border); margin: 0 0.4rem;
    margin-bottom: 1.25rem;
    transition: background 0.3s;
}
.progress-line.active { background: var(--bk-primary); }

/* Service cards */
.service-card {
    display: block; width: 100%; padding: 1.25rem 1.5rem; margin-bottom: 0.875rem;
    border: 2px solid var(--bk-border); border-left: 5px solid var(--bk-primary);
    border-radius: 14px; background: var(--bk-surface);
    cursor: pointer; text-align: left; font-size: 1rem;
    transition: all 0.2s ease;
}
.service-card:hover {
    border-left-color: var(--bk-primary-dark); background: var(--bk-primary-light);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.service-card .service-name { font-weight: 600; color: var(--bk-text); font-size: 1.05rem; }
.service-card .service-desc { color: var(--bk-text-muted); font-size: 0.875rem; margin-top: 0.25rem; }
.service-card .service-badges { display: flex; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap; }
.service-badge {
    display: inline-block; padding: 0.2rem 0.65rem; border-radius: 999px;
    font-size: 0.75rem; font-weight: 600;
}
.service-badge-duration { background: var(--bk-primary-light); color: var(--bk-primary); }
.service-badge-price { background: color-mix(in srgb, var(--bk-accent) 12%, white); color: var(--bk-accent); }
.service-card.anyone-option {
    border-left-style: dashed; border-left-color: var(--bk-text-muted);
    background: var(--bk-primary-light);
}
.service-card.anyone-option:hover {
    border-left-color: var(--bk-primary); background: var(--bk-border);
}

/* Service list — row-style overrides for the booking-page service picker.
   Wrapping the practitioner picker in .service-list will switch it to
   row-style — do not. */
.service-list {
    display: flex; flex-direction: column;
    margin: 0.25rem 0 0;
}
.service-list .service-card {
    display: flex; align-items: center; gap: 0.75rem;
    width: 100%; padding: 1rem 0.5rem; margin-bottom: 0;
    background: transparent; border: none;
    border-bottom: 1px solid var(--bk-border);
    border-radius: 0;
    cursor: pointer; text-align: left;
    transition: padding-left 0.15s ease;
}
.service-list .service-card:last-child { border-bottom: none; }
.service-list .service-card:hover {
    background: transparent; box-shadow: none; transform: none;
    padding-left: 0.75rem;
}
.service-row-main { flex: 1; min-width: 0; }
.service-row-name {
    font-weight: 600; color: var(--bk-text); font-size: 1rem;
    line-height: 1.3;
}
.service-row-desc {
    color: var(--bk-text-muted); font-size: 0.85rem;
    margin-top: 0.15rem; line-height: 1.4;
}
.service-row-meta {
    display: flex; gap: 0.6rem; align-items: center;
    color: var(--bk-text-muted); font-size: 0.78rem;
    margin-top: 0.45rem;
}
.service-row-tag {
    color: var(--bk-primary); font-weight: 600;
}
.service-row-price {
    font-weight: 600; color: var(--bk-text); font-size: 1rem;
    white-space: nowrap; margin-left: 0.5rem;
    transition: color 0.15s ease;
}
.service-row-arrow {
    color: var(--bk-border); font-size: 1.4rem; line-height: 1;
    margin-left: 0.25rem;
    transition: color 0.15s ease;
}
.service-list .service-card:hover .service-row-arrow,
.service-list .service-card:hover .service-row-price {
    color: var(--bk-primary);
}

/* Summary chip — collapsed view of a completed step */
.chip {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bk-chip-soft); border: 1px solid var(--bk-border);
    border-radius: var(--bk-radius); padding: 0.65rem 0.9rem;
    margin-bottom: 0.55rem;
}
.chip-body { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; flex: 1; }
.chip-label {
    font-size: 0.68rem; font-weight: 700; color: var(--bk-text-muted);
    text-transform: uppercase; letter-spacing: 0.08em;
}
.chip-value {
    font-size: 0.95rem; font-weight: 600; color: var(--bk-text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chip-meta { font-size: 0.78rem; color: var(--bk-text-muted); }
.chip-change {
    font-size: 0.85rem; font-weight: 600; color: var(--bk-primary);
    text-decoration: underline; cursor: pointer; flex-shrink: 0; margin-left: 0.75rem;
}
.chip-change:hover { color: var(--bk-primary-dark); }
#booking-summary:not(:empty) { margin-bottom: 1rem; }

/* "Senare" — load-more button for day picker */
.btn-later {
    display: block; width: 100%; margin-top: 0.75rem; padding: 0.75rem 1rem;
    border: 1px dashed var(--bk-primary); color: var(--bk-primary);
    background: transparent; border-radius: var(--bk-radius);
    font-weight: 600; font-size: 0.95rem; cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
}
.btn-later:hover { background: var(--bk-primary-light); color: var(--bk-primary-dark); }

/* Date & time grids */
.date-grid { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-bottom: 1.25rem; }
.time-grid { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-bottom: 1.75rem; }

/* Customer recognition */
.customer-section { margin-top: 2rem; }
.recognition-prompt { text-align: center; padding: 1.5rem 0; }
.recognition-question { font-size: 1.05rem; color: var(--bk-text); font-weight: 500; margin-bottom: 1rem; }
.recognition-buttons { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.recognition-buttons .btn { min-width: 160px; }
.welcome-back {
    background: var(--bk-primary-light); color: var(--bk-primary-dark);
    padding: 0.875rem 1.125rem; border-radius: 12px; margin-bottom: 1rem;
    font-weight: 500; border-left: 3px solid var(--bk-primary);
}
.form-optional { color: var(--bk-text-muted); font-weight: 400; font-size: 0.8rem; }
.btn-block { width: 100%; text-align: center; }
.btn-disabled { opacity: 0.5; cursor: not-allowed; }

/* Booking page form overrides */
.booking-page .form-group { margin-bottom: 1.25rem; }
.booking-page input,
.booking-page select,
.booking-page textarea {
    padding: 0.625rem 0.875rem; border-color: var(--bk-border); border-radius: 10px;
}
.booking-page input:focus,
.booking-page select:focus,
.booking-page textarea:focus {
    border-color: var(--bk-border-focus);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--bk-primary) 10%, transparent);
}
.booking-page label { color: var(--bk-text); }

/* Booking page button overrides */
.booking-page .btn-primary { background: var(--bk-primary); }
.booking-page .btn-primary:hover { background: var(--bk-primary-dark); }
.booking-page .btn-outline {
    border-color: var(--bk-border); color: var(--bk-text);
}
.booking-page .btn-outline:hover {
    border-color: var(--bk-primary); background: var(--bk-primary-light); color: var(--bk-primary-dark);
}

/* Booking day view */
.booking-card {
    background: #fff; border-left: 4px solid var(--accent-500); border-radius: 6px;
    padding: 1rem; margin-bottom: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.booking-card .time { font-size: 1.1rem; font-weight: 600; color: var(--accent-900); }
.booking-card .service { color: var(--gray-500); margin-left: 0.5rem; }
.booking-card .status-badge {
    padding: 0.15rem 0.5rem; border-radius: 4px;
    font-size: 0.75rem; font-weight: 500;
}
.initials-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.5rem; height: 1.5rem; border-radius: 50%;
    background: var(--accent-900); color: #fff;
    font-size: 0.65rem; font-weight: 700;
    margin-left: 0.35rem; vertical-align: middle;
}
/* Force taller time slots so business hours fill the viewport (scrollable 24h) */
.fc .fc-timegrid-slot { height: 2.5em; }

.fc-initials {
    display: inline-block; background: rgba(255,255,255,0.3);
    border-radius: 3px; padding: 0 0.25rem;
    font-size: 0.65rem; font-weight: 700;
    vertical-align: middle; margin-right: 0.2rem;
}
/* Booking-tile readability: larger text, bold time prefix */
.fc .fc-event,
.fc .fc-event .fc-event-title,
.fc-event-inner { font-size: 13.5px; line-height: 1.35; }
.fc-event-time { font-weight: 700; }
.fc-event-title { font-weight: 500; }
.fc-status-icon {
    display: inline-block; vertical-align: middle;
    margin-right: 0.2rem; flex-shrink: 0;
}
/* Blocked time background events in week view (partial-day, e.g. lunch) */
.fc-blocked {
    opacity: 0.35 !important;
    background-image: repeating-linear-gradient(
        135deg,
        transparent,
        transparent 3px,
        rgba(0,0,0,0.08) 3px,
        rgba(0,0,0,0.08) 6px
    ) !important;
}
.fc-blocked .fc-bg-event-title {
    color: var(--gray-700) !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    padding: 2px 4px !important;
}
/* Swedish holidays (röda dagar) — visual only, owners can still take bookings.
   The background tint comes from the API's backgroundColor. These selectors
   add the holiday name to the column header (week view) and a pill on list-day
   rows (mobile listWeek). */
.fc-holiday {
    opacity: 0.6 !important;
    pointer-events: none;
}
.fc-holiday-label {
    display: block;
    margin-top: 2px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #b91c1c;
    line-height: 1.1;
    letter-spacing: 0.01em;
}
.fc-list-holiday-pill {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 1px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #b91c1c;
    background: rgba(220, 38, 38, 0.08);
    border-radius: 999px;
}
/* Blocked time all-day events (vacation, full-day blocks) */
.fc-blocked-allday {
    opacity: 0.8 !important;
    border: none !important;
    font-size: 0.7rem !important;
    cursor: default !important;
    background-image: repeating-linear-gradient(
        135deg,
        transparent,
        transparent 3px,
        rgba(255,255,255,0.3) 3px,
        rgba(255,255,255,0.3) 6px
    ) !important;
}
/* ── Booking status treatments (shared between week + day view) ──────
   Principle: Bekräftad is the quiet default. Outliers announce themselves.
   Stripe direction is always 135° so Ej verifierad and Utebliven lean
   the same way on screen. */

/* Ej verifierad — diagonal white stripes + dashed border + clock icon.
   Target the FullCalendar inner frames too — FC paints the event's
   background-color on an inner element, so stripes on the outer are
   partially covered. */
.fc-status-verif,
.fc-status-verif .fc-event-main,
.fc-status-verif .fc-event-main-frame,
.day-grid-booking.is-verif {
    background-image: repeating-linear-gradient(135deg,
        rgba(255,255,255,0) 0 5px,
        rgba(255,255,255,0.7) 5px 10px) !important;
}
.fc-status-verif,
.day-grid-booking.is-verif {
    border: 2px dashed rgba(0,0,0,0.45) !important;
}

/* Avbokad — employee color dropped; gray + strikethrough */
.fc-status-avbokad,
.day-grid-booking.is-avbokad {
    background: #e5e7eb !important;
    background-color: #e5e7eb !important;
    color: #9ca3af !important;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}
.fc-status-avbokad .fc-initials,
.day-grid-booking.is-avbokad .fc-initials { background: rgba(0,0,0,0.08) !important; color: #9ca3af; }

/* Utebliven — red diagonal hatch overlay + red border + red alert icon.
   Same multi-selector trick as verif: FullCalendar paints the inner
   frame with the solid employee color, so we overlay the hatch on
   every level that can take it. */
.fc-status-utebliven,
.fc-status-utebliven .fc-event-main,
.fc-status-utebliven .fc-event-main-frame,
.day-grid-booking.is-utebliven {
    background-image: repeating-linear-gradient(135deg,
        rgba(220,38,38,0) 0 4px,
        rgba(220,38,38,0.75) 4px 8px) !important;
}
.fc-status-utebliven,
.day-grid-booking.is-utebliven {
    box-shadow: inset 0 0 0 2px #b91c1c !important;
}
.fc-status-utebliven .fc-event-time,
.day-grid-booking.is-utebliven .booking-time { color: #7f1d1d; }

/* ── Hjälp panel (calendar toolbar popover) ──────────────────────── */
.help-calendar-wrap { position: relative; display: inline-block; }
.help-calendar-trigger { display: inline-flex; align-items: center; gap: 0.35rem; }
.help-calendar-trigger i { width: 14px; height: 14px; }

.help-calendar-panel {
    position: absolute; top: calc(100% + 6px); right: 0; z-index: 50;
    width: 420px; max-width: calc(100vw - 32px);
    background: #fff; border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 10px; padding: 14px 16px;
    box-shadow: 0 10px 25px -10px rgba(0,0,0,0.18);
}
.help-calendar-header {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
    margin-bottom: 4px;
}
.help-calendar-title { font-size: 0.95rem; font-weight: 700; color: #111; }
.help-calendar-subtitle { font-size: 0.78rem; color: var(--gray-500, #64748b); margin-top: 2px; }
.help-calendar-close {
    background: transparent; border: none; font-size: 1.25rem; line-height: 1;
    color: var(--gray-400, #94a3b8); cursor: pointer; padding: 0 4px;
}
.help-calendar-close:hover { color: var(--gray-700, #334155); }
.help-calendar-section { padding: 10px 0; }
.help-calendar-section + .help-calendar-section { border-top: 1px solid var(--gray-100, #f1f5f9); }
.help-calendar-section h4 {
    margin: 0 0 8px 0; font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--gray-500, #64748b); font-weight: 700;
}
.help-calendar-section p { font-size: 0.8rem; color: var(--gray-600, #475569); line-height: 1.5; margin: 0; }
.help-calendar-hint { font-size: 0.72rem; color: var(--gray-400, #94a3b8); font-style: italic; margin-bottom: 8px; }
.help-calendar-row {
    display: grid; grid-template-columns: 130px 1fr; gap: 10px; align-items: start;
    margin-bottom: 8px;
}
.help-calendar-row:last-child { margin-bottom: 0; }
.help-calendar-label { font-size: 0.82rem; font-weight: 700; color: #111; }
.help-calendar-desc { font-size: 0.78rem; color: var(--gray-600, #475569); line-height: 1.45; }
.help-calendar-desc > div:last-child { margin-top: 2px; }
.help-calendar-tips { margin: 0; padding-left: 16px; font-size: 0.78rem; color: var(--gray-600, #475569); line-height: 1.6; }
.help-calendar-tips li + li { margin-top: 2px; }

/* Sample tiles inside the help panel — mirror live calendar treatments */
.help-tile {
    border-radius: 3px; padding: 5px 7px;
    font-size: 12px; line-height: 1.3; color: #111827;
    min-height: 32px; box-sizing: border-box;
    display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.help-tile-time { font-weight: 700; }
.help-tile-initials {
    background: rgba(255,255,255,0.5); border-radius: 2px;
    padding: 0 3px; font-size: 10px; font-weight: 700;
}
.help-tile-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.help-tile-icon { flex-shrink: 0; }
.help-tile-verif {
    background-image: repeating-linear-gradient(135deg,
        rgba(255,255,255,0) 0 5px, rgba(255,255,255,0.7) 5px 10px) !important;
    border: 2px dashed rgba(0,0,0,0.45);
}
.help-tile-avbokad {
    background: #e5e7eb; color: #9ca3af;
    text-decoration: line-through; text-decoration-thickness: 1.5px;
}
.help-tile-utebliven {
    background-image: repeating-linear-gradient(135deg,
        rgba(220,38,38,0) 0 4px, rgba(220,38,38,0.75) 4px 8px) !important;
    box-shadow: inset 0 0 0 2px #b91c1c;
}

.emp-circle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 3rem; height: 3rem; border-radius: 50%;
    color: #fff; font-size: 0.9rem; font-weight: 700;
    flex-shrink: 0;
}
.emp-photo {
    display: inline-block; width: 3rem; height: 3rem;
    border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.emp-photo-lg { width: 4.5rem; height: 4.5rem; }
.emp-circle-lg { width: 4.5rem; height: 4.5rem; font-size: 1.2rem; }
.emp-photo-md { width: 4rem; height: 4rem; }
.emp-circle-md { width: 4rem; height: 4rem; font-size: 1.05rem; }

/* Alpine x-cloak: hide elements until Alpine has initialized */
[x-cloak] { display: none !important; }

/* Password field with show/hide toggle */
.pw-field { position: relative; }
.pw-field > input { padding-right: 2.75rem !important; }
.pw-toggle {
    position: absolute; top: 0; right: 0;
    width: 40px; min-width: 40px; height: 100%; min-height: 40px;
    background: transparent; border: none; cursor: pointer;
    color: var(--gray-500, #6b7280);
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0; margin: 0;
}
.pw-toggle:hover { color: var(--gray-700, #374151); }
.pw-toggle:focus-visible {
    outline: 2px solid currentColor; outline-offset: -2px; border-radius: 4px;
}
.pw-toggle svg { width: 20px; height: 20px; }
@media (max-width: 768px) {
    .emp-photo-md { width: 3rem; height: 3rem; }
    .emp-circle-md { width: 3rem; height: 3rem; font-size: 0.9rem; }
}

/* Employee legend (calendar week view) */
.emp-legend { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.emp-legend-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--gray-600); transition: opacity 0.2s; position: relative; }
.emp-legend-dimmed { opacity: 0.35; }
.emp-legend-reset {
    font-size: 0.8rem; color: var(--accent-600); background: none;
    border: 1px solid var(--accent-200); border-radius: 1rem;
    padding: 0.2rem 0.75rem; cursor: pointer; align-self: center;
}
.emp-legend-reset:hover { background: var(--accent-50); }

/* Role badge */
.role-badge {
    display: inline-block; font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
    background: var(--accent-100); color: var(--accent-700); padding: 0.1rem 0.4rem;
    border-radius: 4px; vertical-align: middle; margin-left: 0.25rem;
}

/* Self-row badge "(du)" */
.emp-self-badge {
    display: inline-block; margin-left: 0.4rem; padding: 0.1rem 0.4rem;
    border-radius: 4px; background: var(--gray-100, #f3f4f6); color: var(--gray-500, #6b7280);
    font-size: 0.75rem; font-weight: 500; vertical-align: middle;
}

/* Employee-column day grid */
.day-grid-wrapper {
    overflow-x: auto; border: 1px solid var(--gray-200);
    border-radius: 8px; background: #fff;
}
.day-grid {
    display: grid; min-width: 100%; position: relative;
}
.day-grid-corner {
    grid-row: 1; grid-column: 1;
    border-bottom: 2px solid var(--gray-200); background: var(--gray-50);
}
.day-grid-header-emp {
    grid-row: 1; padding: 0.75rem 0.25rem; text-align: center;
    border-bottom: 2px solid var(--gray-200); background: var(--gray-50);
    display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
}
.emp-name { font-size: 0.75rem; color: var(--gray-600); font-weight: 500; white-space: nowrap; }
.day-grid-time {
    padding: 0.15rem 0.4rem; font-size: 0.7rem; color: var(--gray-400);
    border-right: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-100);
    display: flex; align-items: start;
}
.day-grid-cell {
    border-bottom: 1px solid var(--gray-100); border-right: 1px solid var(--gray-50);
    cursor: pointer; min-height: 40px;
}
.day-grid-cell:hover { background: var(--accent-50); }
.day-grid-booking {
    border-radius: 4px; padding: 0.25rem 0.5rem;
    color: #fff; font-size: 0.75rem; cursor: pointer;
    overflow: hidden; position: relative; margin: 1px 2px; z-index: 2;
}
.day-grid-booking .booking-time { font-weight: 600; font-size: 0.7rem; }
.day-grid-booking .booking-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.day-grid-booking .booking-customer { font-size: 0.65rem; opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-grid-blocked {
    border-radius: 4px; padding: 0.25rem 0.5rem;
    background: repeating-linear-gradient(
        135deg,
        var(--accent-100, #f1f5f9),
        var(--accent-100, #f1f5f9) 4px,
        var(--accent-200, #e2e8f0) 4px,
        var(--accent-200, #e2e8f0) 8px
    );
    color: var(--gray-500); font-size: 0.75rem;
    overflow: hidden; position: relative; margin: 1px 2px; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    opacity: 0.7;
}
.day-grid-booking .day-status-icon {
    position: absolute; top: 4px; right: 4px;
    display: inline-flex; pointer-events: none;
}

/* Calendar modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal-content { background: #fff; border-radius: 12px; padding: 1.5rem; max-width: 500px; width: 90%; max-height: 80vh; overflow-y: auto; box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.modal-close { float: right; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--gray-400); }
.modal-close:hover { color: var(--gray-700); }

/* Date/time pickers for booking */
.date-btn {
    padding: 0.875rem 1.125rem; border: 2px solid var(--bk-border); border-radius: 12px;
    background: var(--bk-surface); cursor: pointer; min-width: 88px; text-align: center;
    transition: all 0.2s; color: var(--bk-text);
}
.date-btn:hover:not(:disabled) { border-color: var(--bk-primary); background: var(--bk-primary-light); }
.date-btn:disabled { background: var(--bk-bg); color: var(--bk-text-muted); cursor: default; opacity: 0.35; border-color: transparent; }
.date-btn .day-name { font-weight: 600; }

.time-btn {
    padding: 0.75rem 1.25rem; border: 2px solid var(--bk-border); border-radius: 12px;
    cursor: pointer; text-align: center; min-width: 80px; transition: all 0.2s;
    background: var(--bk-surface); color: var(--bk-text); font-size: 0.95rem;
}
.time-btn:hover { border-color: var(--bk-primary); background: var(--bk-primary-light); }
.time-btn:has(input:checked) {
    border-color: var(--bk-primary); background: var(--bk-primary-light);
    font-weight: 600; color: var(--bk-primary-dark);
    box-shadow: 0 0 0 1px var(--bk-primary);
}

/* Confirmation */
.confirmation { text-align: center; padding: 2.5rem 0; }
.confirmation-icon {
    font-size: 2.5rem; color: var(--green-500);
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--green-50); display: inline-flex;
    align-items: center; justify-content: center; margin-bottom: 0.75rem;
}
.confirmation-title { color: var(--bk-text); font-size: 1.3rem; }
.confirmation-subtitle { color: var(--bk-text-muted); font-size: 0.95rem; margin-top: 0.25rem; }
.confirmation-details {
    background: var(--bk-bg); border-radius: 16px; padding: 1.5rem 1.75rem;
    margin: 1.25rem 0; text-align: left; border: 1px solid var(--bk-border);
}
.confirmation-details p { margin: 0.3rem 0; color: var(--bk-text-muted); }
.confirmation-details strong { color: var(--bk-primary-dark); }
.confirmation-note { color: var(--bk-text-muted); font-size: 0.875rem; margin-top: 0.75rem; }
.confirmation-error { color: var(--red-500); }

/* HTMX swap transitions */
#booking-step { transition: opacity 0.15s ease-in-out; }
.htmx-swapping #booking-step { opacity: 0; }

/* ── Today alerts strip (day view) ─────────────────────────────── */
.alerts-today {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 0.4rem; margin: 0 0 0.5rem 0; padding: 0.45rem 0.7rem;
    background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px;
    color: #78350f; font-size: 0.8rem;
}
.alerts-today-icon { display: inline-flex; color: #b45309; flex-shrink: 0; }
.alerts-today-chip {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.1rem 0.55rem; border-radius: 999px;
    background: #fef3c7; font-weight: 500; line-height: 1.4;
}
.alerts-today-chip .alerts-chip-count { font-weight: 700; }
.alerts-chip-utebliven { background: #fee2e2; color: #7f1d1d; }
.alerts-chip-avbokad {
    background: #e5e7eb; color: #4b5563;
    text-decoration: line-through; text-decoration-thickness: 1.5px;
}
.alerts-chip-verif { background: #fef3c7; color: #78350f; }
.alerts-chip-holiday { background: rgba(220,38,38,0.10); color: #b91c1c; font-weight: 600; }

/* ── Day swim lanes (owner view when 4+ active employees) ──────── */
.day-swimlanes {
    display: flex; flex-direction: column;
    border: 1px solid var(--gray-200); border-radius: 8px;
    background: #fff; overflow: hidden;
}
.day-swimlane-axis-row {
    display: grid; grid-template-columns: 72px 1fr;
    border-bottom: 1px solid var(--gray-200); background: var(--gray-50);
    min-height: 22px;
}
.day-swimlane-rail-spacer { background: var(--gray-50); }
.day-swimlane-axis { position: relative; height: 22px; }
.day-swimlane-tick {
    position: absolute; top: 0; bottom: 0;
    border-left: 1px solid var(--gray-200);
}
.day-swimlane-tick:first-child { border-left: none; }
.day-swimlane-tick-label {
    position: absolute; left: 2px; top: 4px;
    font-size: 0.58rem; color: var(--gray-500); font-weight: 600;
    letter-spacing: -0.02em;
}
.day-swimlane {
    display: grid; grid-template-columns: 72px 1fr;
    min-height: 56px; border-bottom: 1px solid var(--gray-100);
    text-decoration: none; color: inherit;
    transition: background 0.12s;
}
.day-swimlane:last-child { border-bottom: none; }
.day-swimlane:hover { background: var(--gray-50); }
.day-swimlane-rail {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; padding: 4px 6px; color: #fff;
}
.day-swimlane-photo {
    width: 28px; height: 28px; border-radius: 50%;
    object-fit: cover; border: 2px solid rgba(255,255,255,0.7);
}
.day-swimlane-initials {
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700;
}
.day-swimlane-name {
    font-size: 0.65rem; font-weight: 600;
    max-width: 64px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}
.day-swimlane-track { position: relative; min-height: 56px; background: #fff; }
.day-swimlane-blocked {
    position: absolute; top: 6px; bottom: 6px;
    background: repeating-linear-gradient(135deg,
        var(--gray-100) 0 4px, var(--gray-200) 4px 8px);
    border-radius: 3px; opacity: 0.7;
}
.day-swimlane-pill {
    position: absolute; top: 6px; bottom: 6px; min-width: 26px;
    padding: 3px 5px; border-radius: 4px;
    color: #fff; font-size: 0.62rem; line-height: 1.15;
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1px; cursor: pointer; overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
.day-swimlane-pill-time { font-weight: 700; }
.day-swimlane-pill-name {
    font-size: 0.58rem; opacity: 0.92;
    max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.day-swimlane-icon {
    position: absolute; top: 3px; right: 3px;
    display: inline-flex; color: currentColor; pointer-events: none;
}

/* Swim-lane status overlays — same 135° stripe/hatch language as tiles */
.day-swimlane-pill.is-verif {
    background-image: repeating-linear-gradient(135deg,
        rgba(255,255,255,0) 0 5px,
        rgba(255,255,255,0.7) 5px 10px) !important;
    border: 1.5px dashed rgba(0,0,0,0.5);
}
.day-swimlane-pill.is-utebliven {
    background-image: repeating-linear-gradient(135deg,
        rgba(220,38,38,0) 0 4px,
        rgba(220,38,38,0.75) 4px 8px) !important;
    box-shadow: inset 0 0 0 1.5px #b91c1c;
    color: #7f1d1d;
}

/* ── listWeek colored rail + full-row status treatments ───────── */
/* Rail: repurpose FullCalendar's per-event dot as a vertical color bar so
   the row visibly carries the employee color instead of a tiny speck. */
.fc-list-event .fc-list-event-dot {
    width: 6px !important;
    height: 22px !important;
    border-radius: 2px !important;
    border: none !important;
    background: var(--rail-color, #94a3b8) !important;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}
/* Non-default stripe patterns for list rows — white stripes would vanish
   against the white row background, so use darker tones here. */
.fc-list-event.fc-status-verif td {
    background-image: repeating-linear-gradient(135deg,
        rgba(180,83,9,0) 0 5px,
        rgba(180,83,9,0.16) 5px 10px) !important;
}
.fc-list-event.fc-status-verif .fc-list-event-time {
    color: #78350f; font-weight: 600;
}
.fc-list-event.fc-status-avbokad td {
    background: #f3f4f6 !important; color: #9ca3af !important;
    text-decoration: line-through; text-decoration-thickness: 1.5px;
}
.fc-list-event.fc-status-utebliven td {
    background-image: repeating-linear-gradient(135deg,
        rgba(220,38,38,0.04) 0 4px,
        rgba(220,38,38,0.32) 4px 8px) !important;
}
.fc-list-event.fc-status-utebliven .fc-list-event-time { color: #7f1d1d; font-weight: 600; }

/* Responsive — tablet (769px–1024px) */
@media (max-width: 1024px) {
    .admin-layout { grid-template-columns: 48px 1fr; }
    .admin-sidebar { padding: 0.5rem 0; }
    .admin-sidebar .sidebar-logo { width: 26px; height: 26px; margin-bottom: 0.5rem; }
    .sidebar-user { width: 36px; height: 36px; font-size: 0.65rem; }
    .nav-icon { width: 36px; height: 36px; border-radius: 8px; }
    .nav-icon svg { width: 18px; height: 18px; }
    .sidebar-version { display: none; }
    .admin-content { padding: 0.75rem 1rem; }
    .admin-content.full-width { padding: 0.25rem 0.5rem; }
    .admin-toolbar { padding: 0.4rem 0.75rem; gap: 0.35rem; }
    .toolbar-title { font-size: 0.8rem; }
    .pill { font-size: 0.75rem; padding: 0.3rem 0.6rem; }
    .emp-legend { gap: 0.5rem; }
    .emp-circle { width: 2rem; height: 2rem; font-size: 0.7rem; }
    .emp-photo { width: 2rem; height: 2rem; }
    .emp-legend-item { font-size: 0.8rem; gap: 0.3rem; }
    .emp-circle-lg { width: 3.5rem; height: 3.5rem; font-size: 1rem; }
    .emp-photo-lg { width: 3.5rem; height: 3.5rem; }
    .fc .fc-timegrid-slot { height: 2em; }
}

/* Responsive — mobile (≤768px) */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.75rem; }
    .booking-header { padding: 0.75rem 1rem; }
    .booking-header-name { font-size: 1rem; }
    .booking-header-icon { width: 32px; height: 32px; }
    .booking-header-icon svg { width: 16px; height: 16px; }
    .booking-header-meta { font-size: 0.78rem; }
    .booking-card-wrap { padding: 1.25rem 1rem; border-radius: var(--bk-radius-lg); }
    .booking-container { max-width: 100%; margin-top: 0.75rem; }
    .booking-progress { gap: 0; padding: 0.25rem 0; }
    .progress-label { font-size: 0.6rem; }
    .progress-circle { width: 30px; height: 30px; font-size: 0.7rem; }
    .progress-line { min-width: 16px; }
    .service-card { padding: 1rem 1.25rem; border-radius: 12px; }
    .service-list .service-card { padding: 0.875rem 0.25rem; }
    .service-row-name { font-size: 0.95rem; }
    .service-row-price { font-size: 0.95rem; }
    .chip { padding: 0.5rem 0.7rem; }
    .chip-value { font-size: 0.9rem; }
    .chip-meta { font-size: 0.72rem; }
    .recognition-buttons { flex-direction: column; align-items: stretch; }
    .recognition-buttons .btn { min-width: unset; }
    .admin-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .admin-sidebar { display: none; }
    .admin-bottom-nav { display: flex; }
    .admin-content { padding: 0.75rem; padding-bottom: 60px; grid-column: 1; }
    .admin-content.full-width { padding: 0.5rem; padding-bottom: 60px; }
    .admin-toolbar { grid-column: 1; overflow-x: auto; flex-wrap: nowrap; gap: 0.35rem; padding: 0.4rem 0.75rem; }
    .form-row { flex-direction: column; }
    .emp-legend { gap: 0.5rem; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.25rem; margin-bottom: 0.5rem; }
    .emp-legend-item { flex-shrink: 0; font-size: 0.8rem; gap: 0.25rem; }
    .emp-circle { width: 1.75rem; height: 1.75rem; font-size: 0.6rem; }
    .emp-photo { width: 1.75rem; height: 1.75rem; }
    .day-grid-header-emp .emp-name { display: none; }
    .day-grid-header-emp { padding: 0.5rem 0.15rem; }
    .day-grid-time { font-size: 0.6rem; padding: 0.1rem 0.2rem; }
    .day-grid-booking .booking-customer { display: none; }
    .day-grid-booking { padding: 0.15rem 0.3rem; font-size: 0.65rem; }
    .emp-circle-lg { width: 3rem; height: 3rem; font-size: 0.9rem; }
    .emp-photo-lg { width: 3rem; height: 3rem; }
    .pill { font-size: 0.75rem; padding: 0.3rem 0.6rem; }
    .modal-content { width: 95%; }
}

/* Responsive — small phone (≤480px) */
@media (max-width: 480px) {
    .admin-toolbar { padding: 0.3rem 0.5rem; gap: 0.25rem; }
    .toolbar-title { font-size: 0.75rem; }
    .pill { font-size: 0.7rem; padding: 0.25rem 0.5rem; }
    .emp-legend-item span:not(.emp-circle) { font-size: 0.7rem; }
    .day-swimlane, .day-swimlane-axis-row { grid-template-columns: 56px 1fr; }
    .day-swimlane-photo, .day-swimlane-initials { width: 24px; height: 24px; font-size: 0.62rem; }
    .day-swimlane-name { max-width: 48px; font-size: 0.58rem; }
    .alerts-today { font-size: 0.72rem; padding: 0.35rem 0.55rem; gap: 0.3rem; }
    .alerts-today-chip { padding: 0.05rem 0.45rem; }
}

/* ========== Onboarding Wizard ========== */

.onboarding-shell {
    max-width: 640px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    min-height: 100vh;
}
.onboarding-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.onboarding-logo { height: 32px; width: auto; }
.onboarding-skip {
    font-size: 0.8rem;
    color: var(--gray-400);
    text-decoration: none;
}
.onboarding-skip:hover { color: var(--gray-600); }
.onboarding-loading { text-align: center; padding: 3rem 0; color: var(--gray-400); }

/* Progress bar */
.progress-header {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}
.progress-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 2rem;
}
.progress-segment {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--gray-200);
    transition: background 0.3s;
}
.progress-segment.filled { background: var(--accent-600); }

/* Step content */
.onboarding-step h1 { font-size: 1.5rem; margin: 0 0 0.25rem; color: var(--gray-800); }
.onboarding-subtitle { color: var(--gray-500); margin: 0 0 1.5rem; font-size: 0.95rem; }
.onboarding-error {
    color: var(--red-500);
    background: var(--red-50);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
.form-hint { display: block; color: var(--gray-400); font-size: 0.8rem; margin-top: 0.25rem; }

/* Navigation */
.onboarding-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
}
.btn-link {
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.5rem;
}
.btn-link:hover { color: var(--gray-600); }

/* Category cards (step 1) */
.category-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 0.5rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    text-align: center;
    font-weight: 400;
    color: var(--gray-600);
    font-size: 0.8rem;
}
.category-card:hover { border-color: var(--gray-300); background: var(--gray-50); }
.category-card.selected { border-color: var(--accent-600); background: var(--accent-100); color: var(--accent-800); }
.category-card i { width: 24px; height: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
/* Service suggestions (step 2) */
.existing-services-notice {
    background: var(--green-50);
    color: var(--green-500);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
.suggestion-card {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: #fff;
}
.suggestion-check { padding-top: 0.35rem; }
.suggestion-check input[type="checkbox"] { width: 18px; height: 18px; }
.suggestion-fields { flex: 1; }
.suggestion-row { margin-bottom: 0.35rem; }
.suggestion-name { font-weight: 500; }
.suggestion-details { display: flex; gap: 0.5rem; align-items: end; }
.suggestion-details label { flex: 1; min-width: 0; }
.suggestion-label { display: block; font-size: 0.7rem; color: var(--gray-400); font-weight: 400; margin-bottom: 0.15rem; }
.suggestion-num { width: 100%; }
.add-service-btn { width: 100%; text-align: center; margin-top: 0.5rem; }

/* Hours grid (step 3) */
.hours-grid { margin-bottom: 1.5rem; }
.hours-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--gray-100);
}
.hours-day { width: 70px; font-weight: 500; font-size: 0.85rem; flex-shrink: 0; }
.hours-select { width: auto; flex: 0 0 auto; min-width: 80px; padding: 0.35rem 0.5rem; font-size: 0.85rem; }
.hours-dash { color: var(--gray-400); flex-shrink: 0; }
.hours-closed-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--gray-500);
    cursor: pointer;
    white-space: nowrap;
}
.hours-closed-label input { width: auto; }
.lunch-section { margin-top: 1rem; padding: 1rem; background: var(--gray-50); border-radius: 8px; }
.lunch-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}
.lunch-toggle input { width: auto; }
.lunch-times { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; }

/* Team toggle (step 4) */
.team-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.team-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    text-align: center;
    font-weight: 500;
    color: var(--gray-600);
}
.team-option:hover { border-color: var(--gray-300); }
.team-option.selected { border-color: var(--accent-600); background: var(--accent-100); color: var(--accent-800); }
.team-option i { width: 28px; height: 28px; }

/* Employee cards (step 4) */
.employee-section { margin-top: 0.5rem; }
.employee-card {
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #fff;
}
.employee-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}
.employee-fields .form-row { margin-bottom: 0.5rem; }
.btn-remove {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.25rem;
}
.btn-remove:hover { color: var(--red-500); }
.btn-remove i { width: 16px; height: 16px; }

/* Service matrix (step 4) */
.service-matrix { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--gray-100); }
.service-matrix-label { font-size: 0.8rem; color: var(--gray-500); margin-bottom: 0.5rem; }
.service-checkboxes { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.service-check {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--gray-600);
    cursor: pointer;
}
.service-check input { width: auto; }

/* Done page (step 5) */
.onboarding-done { text-align: center; }
.done-icon { margin-bottom: 1rem; }
.done-icon i { width: 48px; height: 48px; color: var(--green-500); }
.done-url-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    text-align: left;
}
.done-url-card label { font-size: 0.8rem; color: var(--gray-500); margin-bottom: 0.5rem; }
.done-url {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.done-url code {
    font-size: 0.9rem;
    color: var(--accent-600);
    word-break: break-all;
}
.btn-copy {
    background: none;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    color: var(--gray-500);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
}
.btn-copy:hover { border-color: var(--gray-400); color: var(--gray-700); }
.btn-copy i { width: 14px; height: 14px; }
.done-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin: 1.5rem 0;
}
.done-actions .btn { display: flex; align-items: center; gap: 0.35rem; }
.done-actions .btn i { width: 16px; height: 16px; }
.done-tips {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-top: 1rem;
}
.done-tips em { color: var(--gray-600); }

/* Onboarding responsive */
@media (max-width: 480px) {
    .onboarding-shell { padding: 1rem 0.75rem; }
    .onboarding-step h1 { font-size: 1.25rem; }
    .category-cards { grid-template-columns: repeat(2, 1fr); }
    .hours-row { flex-wrap: wrap; gap: 0.35rem; }
    .hours-day { width: 60px; font-size: 0.8rem; }
    .hours-select { min-width: 70px; font-size: 0.8rem; }
    .team-toggle { gap: 0.5rem; }
    .team-option { padding: 1rem 0.75rem; }
    .employee-fields .form-row { flex-direction: column; }
    .done-actions { flex-direction: column; }
    .done-actions .btn { justify-content: center; }
}

/* ---- Type 2 booking-request form ---------------------------------------- */
.booking-step-intro {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin: -0.5rem 0 1.5rem;
    line-height: 1.5;
}
.booking-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.request-form .form-section {
    border: none;
    padding: 0;
    margin: 0 0 1.5rem;
}
.request-form .form-section legend {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
    padding: 0;
}
.date-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.date-chip-row.is-disabled { opacity: 0.4; pointer-events: none; }
.date-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
    padding: 0.5rem 0.75rem;
    border: 1.5px solid var(--gray-300);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}
.date-chip:hover { border-color: var(--bk-accent, #F15A42); }
.date-chip.active {
    border-color: var(--bk-accent, #F15A42);
    background: var(--bk-accent-soft, #fee2dc);
    color: var(--bk-accent-deep, #b8431f);
}
.date-chip input { display: none; }
.date-chip-weekday { font-size: 0.7rem; text-transform: uppercase; opacity: 0.65; }
.date-chip-day { font-size: 0.95rem; font-weight: 600; margin-top: 0.15rem; }
.asap-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-700);
    cursor: pointer;
}
.radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.radio-row label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    cursor: pointer;
}
.privacy-row {
    margin: 1rem 0 1.5rem;
    font-size: 0.9rem;
    color: var(--gray-700);
}
.privacy-row label { display: flex; align-items: flex-start; gap: 0.5rem; cursor: pointer; }
.booking-submit {
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: var(--bk-accent, #F15A42);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.15s;
}
.booking-submit:hover { filter: brightness(1.05); }
.booking-submit-secondary {
    display: inline-block;
    padding: 0.65rem 1.1rem;
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}
.booking-submit-secondary:hover { border-color: var(--gray-400); }
.booking-submit-warn { color: #b91c1c; border-color: #fca5a5; }

.request-sla-line {
    margin-top: 0.5rem;
    color: var(--gray-600);
    font-size: 0.9rem;
    text-align: center;
}

.service-badge-request {
    background: var(--bk-accent-soft, #fee2dc);
    color: var(--bk-accent-deep, #b8431f);
}

.request-success {
    text-align: center;
    padding: 2rem 0.5rem 1rem;
}
.request-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: var(--bk-accent-soft, #fee2dc);
    color: var(--bk-accent, #F15A42);
    margin-bottom: 1rem;
}
.request-success-icon i { width: 32px; height: 32px; }
.request-success p { color: var(--gray-700); line-height: 1.55; margin: 0.5rem 0 1.25rem; }
.request-success-actions { margin-top: 1.5rem; display: flex; justify-content: center; }
.request-status-page { text-align: center; padding: 1rem 0.5rem; }
.request-status-page p { color: var(--gray-700); line-height: 1.55; }
.request-back-link { margin-top: 1.5rem; font-size: 0.85rem; }
.request-back-link a { color: var(--gray-500); text-decoration: none; }
.request-back-link a:hover { color: var(--bk-accent, #F15A42); }
.request-withdraw-form { margin-top: 1.25rem; }

.booking-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1rem;
}
.booking-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.7rem;
    background: var(--gray-100);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--gray-700);
}
.booking-chip-label { color: var(--gray-500); }
.booking-chip-value { font-weight: 500; }
.booking-chip-change {
    color: var(--bk-accent, #F15A42);
    text-decoration: none;
    font-size: 0.8rem;
    margin-left: 0.25rem;
}
.booking-chip-change:hover { text-decoration: underline; }

/* ---- Booking requests inbox -------------------------------------------- */
.requests-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 0.5rem;
}
.requests-chip i { width: 14px; height: 14px; }
.requests-chip:hover { background: #fde68a; }
.requests-chip-count {
    background: #f59e0b;
    color: white;
    border-radius: 999px;
    padding: 0 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.4;
}

.req-detail-panel { padding: 0; }
.req-flash {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}
.req-detail-summary {
    display: block;
}
.req-detail-h {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin: 1rem 0 0.35rem;
    font-weight: 600;
}
.req-detail-h:first-child { margin-top: 0; }
.req-detail-col p { margin: 0; line-height: 1.55; font-size: 0.88rem; }
.req-link { color: var(--accent-600, #4f46e5); text-decoration: none; }
.req-link:hover { text-decoration: underline; }
.req-pill {
    display: inline-block;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 999px;
    padding: 0.1rem 0.55rem;
    font-size: 0.75rem;
    color: var(--gray-700);
    margin-right: 0.25rem;
    margin-top: 0.2rem;
}
.req-pill-warn { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.req-pill-ok { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.req-quote {
    background: white;
    padding: 0.5rem 0.75rem;
    border-left: 2px solid var(--accent-300, #a5b4fc);
    border-radius: 0 4px 4px 0;
    font-style: italic;
    color: var(--gray-600);
}

.req-actions { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--gray-200); }
.req-action-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.req-confirm-form, .req-decline-form {
    background: white;
    padding: 0.85rem;
    border-radius: 6px;
    border: 1px solid var(--gray-200);
}
.req-confirm-form h4, .req-decline-form h4 { margin: 0 0 0.5rem; font-size: 0.95rem; }
.req-confirm-form .form-row, .req-decline-form .form-row { margin-bottom: 0.5rem; }
.req-confirm-form .form-row label, .req-decline-form .form-row label {
    display: block; font-size: 0.8rem; color: var(--gray-600); margin-bottom: 0.2rem;
}
.req-confirm-form .form-row input, .req-confirm-form .form-row select,
.req-decline-form .form-row textarea {
    width: 100%; padding: 0.4rem 0.6rem; border: 1px solid var(--gray-300);
    border-radius: 4px; font-size: 0.85rem;
}
.form-row-split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
}
.req-status-summary {
    margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--gray-200);
    font-size: 0.85rem; color: var(--gray-700);
}

/* Status chips on request rows + detail panel. Namespaced with req- to avoid
   colliding with the booking-page .chip used on the public surface. */
.req-chip {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.4rem;
    vertical-align: middle;
    white-space: nowrap;
}
.req-chip-asap { background: #fee2e2; color: #991b1b; }
.req-chip-area { background: #fef3c7; color: #92400e; }
.req-chip-distance { background: #e5e7eb; color: #374151; font-weight: 500; }
.req-detail-chips { margin-bottom: 0.75rem; }
.req-detail-chips .req-chip { margin-left: 0; margin-right: 0.4rem; }

/* ---- Request detail panel header (landing-screenshot redesign) ---- */
.req-detail-header {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin: 0 0 1.25rem 0;
}

.req-detail-name {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--gray-800);
}

.req-detail-meta {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gray-500);
    letter-spacing: 0.01em;
}

.req-detail-contact {
    margin: 0.35rem 0 0 0;
    font-size: 0.95rem;
    color: var(--gray-800);
}

.req-detail-contact a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
}

.req-detail-contact a:hover {
    border-bottom-style: solid;
}

/* ---- Single-pin location map under Adress ---- */
.req-location-map {
    width: 100%;
    height: 180px;
    border-radius: 0.6rem;
    overflow: hidden;
    margin-top: 0.5rem;
    background: var(--gray-100);
}

.req-location-caption {
    margin: 0.35rem 0 0 0;
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* Date radios inside the confirm form — visual replacement for <select> */
.req-date-radios { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.25rem; }
.req-date-radio {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--gray-300); border-radius: 999px;
    cursor: pointer; font-size: 0.85rem; background: white;
}
.req-date-radio input { margin: 0; accent-color: var(--accent-500, #6366f1); }
.req-date-radio:has(input:checked) {
    background: var(--accent-100, #eef2ff);
    border-color: var(--accent-400, #818cf8);
    color: var(--accent-700, #4338ca);
}

/* Ranked employee picker — radio-card list */
.req-emp-list { display: flex; flex-direction: column; gap: 0.4rem; }
.req-emp-empty { color: var(--gray-500); font-size: 0.85rem; margin: 0; }
.emp-pick-card {
    display: grid;
    grid-template-columns: auto 2.25rem 1fr;
    align-items: center; gap: 0.6rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--gray-200); border-radius: 8px;
    background: white; cursor: pointer;
    transition: border-color 0.1s, background 0.1s;
}
.emp-pick-card:has(input:checked) {
    border-color: var(--accent-500, #6366f1);
    background: var(--accent-100, #eef2ff);
}
.emp-pick-card.is-top:has(input:checked) {
    box-shadow: 0 0 0 2px var(--accent-200, #c7d2fe);
}
.emp-pick-card input[type="radio"] { margin: 0; accent-color: var(--accent-500, #6366f1); }
.emp-pick-avatar {
    width: 2.25rem; height: 2.25rem; border-radius: 50%;
    overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
    background: var(--gray-100);
}
.emp-pick-avatar img { width: 100%; height: 100%; object-fit: cover; }
.emp-pick-initials {
    width: 100%; height: 100%;
    display: inline-flex; align-items: center; justify-content: center;
    color: white; font-weight: 600; font-size: 0.85rem;
}
.emp-pick-body { display: flex; flex-direction: column; min-width: 0; gap: 0.1rem; }
.emp-pick-name { font-weight: 600; font-size: 0.88rem; color: var(--gray-800, #1f2937); }
.emp-pick-hint { font-size: 0.77rem; color: var(--gray-500); line-height: 1.3; }
.emp-pick-unassigned { border-style: dashed; }
.emp-pick-unassigned-dot {
    width: 2.25rem; height: 2.25rem; border-radius: 50%;
    background: var(--gray-200); color: var(--gray-500);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600;
}

/* Out-of-area rejection panel on the public booking surface */
.out-of-area-panel {
    background: white; padding: 1.25rem; border-radius: var(--bk-radius, 12px);
    border: 1px solid var(--bk-border, #e5e7eb);
}
.out-of-area-lede { font-size: 1rem; margin-bottom: 0.75rem; }
.out-of-area-skicka-anda {
    font-size: 0.9rem; color: var(--bk-text-muted, #6b7280);
    margin: 1.25rem 0 0.75rem;
}
.booking-submit.booking-submit-ghost {
    background: transparent; color: var(--bk-primary, #111);
    border: 1px solid var(--bk-primary, #111);
}
.booking-submit.booking-submit-ghost:hover {
    background: var(--bk-primary, #111); color: white;
}

@media (max-width: 768px) {
    .requests-chip-label { display: none; }
}

/* ---- static map thumbnails -------------------------------------------- */

.static-map {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--bk-border);
    background: var(--bk-sand);
}

.static-map-caption {
    font-size: 12px;
    color: var(--bk-text-muted);
    margin: 6px 0 0;
    text-align: center;
}

.static-map-attr {
    font-size: 11px;
    color: var(--bk-text-muted);
    margin: 4px 0 0;
}

.static-map-fallback {
    font-size: 13px;
    color: var(--bk-text-muted);
    margin: 8px 0 0;
}

/* ---- phase 2 interactive maps ---------------------------------------- */

.map-radius-editor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 1.25rem;
    align-items: start;
    margin-bottom: 1.25rem;
    max-width: 820px;
}

.map-radius-editor .mre-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.map-radius-editor .mre-slider {
    flex: 1 1 100%;
    margin-top: 0.5rem;
    accent-color: var(--accent, #F15A42);
}

.map-radius-editor .mre-map {
    width: 100%;
    height: 280px;
    border-radius: 8px;
    border: 1px solid var(--bk-border, #e5e7eb);
    background: var(--bk-sand, #f5f2ec);
    overflow: hidden;
}

.map-radius-editor .leaflet-container {
    border-radius: 8px;
    font-family: inherit;
}

.req-confirm-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.req-confirm-map-wrap {
    min-height: 240px;
}

.req-confirm-map {
    width: 100%;
    height: 260px;
    border-radius: 8px;
    border: 1px solid var(--bk-border, #e5e7eb);
    background: var(--bk-sand, #f5f2ec);
    overflow: hidden;
}

.req-confirm-map-label {
    margin: 0 0 0.4rem;
    font-size: 0.8rem;
    color: var(--gray-600, #4b5563);
    font-weight: 500;
}

.req-confirm-map .leaflet-container {
    border-radius: 8px;
    font-family: inherit;
}

.bk-pin {
    background: transparent;
    border: none;
}

.bk-pin svg {
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

@media (max-width: 768px) {
    .map-radius-editor {
        grid-template-columns: 1fr;
    }

    .map-radius-editor .mre-map {
        height: 240px;
    }

    .req-confirm-grid {
        grid-template-columns: 1fr;
    }

    .req-confirm-map {
        height: 220px;
    }
}

/* =========================================================================
   Day-view stops map (phase 3, Type 2 default at /admin/day)
   ========================================================================= */

.day-map-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding: 8px 16px;
  background: #fafaf7;
  border-bottom: 1px solid #e5e3d8;
  font-size: 0.78rem;
  color: var(--gray-600);
}
.day-map-legend .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.day-map-legend .legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.day-map-legend .legend-swatch.legend-tenant {
  background: #1f2937;
  border: 1px solid #fff;
}
.day-map-legend .legend-spacer {
  flex: 1;
}
.day-map-legend .legend-link {
  color: var(--gray-500);
  text-decoration: underline;
  font-size: 0.75rem;
}

.day-map-chip {
  margin: 8px 16px 0;
  padding: 4px 10px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  display: inline-block;
  font-size: 0.75rem;
  color: var(--gray-600);
}

.day-map-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.9rem;
}

#day-map.day-map {
  height: 360px;
  margin: 12px 16px 0;
  border-radius: 8px;
  overflow: hidden;
  background: #e8eced;
}
@media (max-width: 768px) {
  #day-map.day-map { height: 240px; margin: 8px 0 0; border-radius: 0; }
}

.day-map-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: #fff;
  border-top: 1px solid #e5e3d8;
  border-bottom: 1px solid #e5e3d8;
  font-size: 0.85rem;
}
.day-map-total strong { color: var(--coral, #F15A42); }

.day-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  padding: 8px 16px;
  background: #fafaf7;
  border-bottom: 1px solid #e5e3d8;
}
.day-chips .chip {
  --chip-color: var(--ink, #111827);
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  background: #fff;
  color: var(--gray-800);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.day-chips .chip:hover { border-color: var(--gray-500); }
.day-chips .chip .swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--chip-color);
}
.day-chips .chip.is-active {
  background: var(--chip-color);
  color: #fff;
  border-color: transparent;
}
.day-chips .chip.is-active .swatch { background: #fff; }
@media (max-width: 480px) {
  .day-chips { padding: 6px 8px; gap: 4px; }
  .day-chips .chip { padding: 3px 10px; font-size: 0.8rem; }
}

.day-map-wrapper { position: relative; }
.day-map-fs-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--gray-300);
  background: #fff;
  color: var(--gray-700);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.day-map-fs-btn:hover { color: var(--gray-900); }
.day-map-fs-btn .icon-collapse { display: none; }
.day-map-fs-btn .icon-expand { display: block; }
.day-map-wrapper.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #fff;
  margin: 0;
}
.day-map-wrapper.is-fullscreen #day-map.day-map {
  height: 100%;
  margin: 0;
  border-radius: 0;
}
.day-map-wrapper.is-fullscreen .day-map-fs-btn .icon-expand { display: none; }
.day-map-wrapper.is-fullscreen .day-map-fs-btn .icon-collapse { display: block; }

.day-stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  margin: 12px 16px 0;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  font-size: 0.9rem;
}
.day-stat-strip .strip-head {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-right: auto;
}
.day-stat-strip .strip-head strong {
  font-size: 1.05rem;
  color: var(--gray-900, #111827);
}
.day-stat-strip .strip-sub { color: var(--gray-500); font-size: 0.85rem; }
.day-stat-strip .strip-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: baseline;
}
.day-stat-strip .stat { display: inline-flex; flex-direction: column; gap: 2px; }
.day-stat-strip .stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gray-900, #111827);
  line-height: 1.1;
}
.day-stat-strip .stat-label { color: var(--gray-500); font-size: 0.78rem; }
.day-stat-strip .strip-verdict {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gray-50, #f9fafb);
  border: 1px solid var(--gray-200);
  font-size: 0.85rem;
  color: var(--gray-700);
}
.day-stat-strip .verdict-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.day-stat-strip .verdict-pct { font-weight: 700; color: var(--gray-900, #111827); }
.day-stat-strip.is-green  .verdict-dot { background: #16a34a; }
.day-stat-strip.is-amber  .verdict-dot { background: #d97706; }
.day-stat-strip.is-red    .verdict-dot { background: #dc2626; }
.day-stat-strip.is-red    .verdict-label { color: #dc2626; font-weight: 600; }
.day-stat-strip.is-amber  .verdict-label { color: #b45309; }

@media (max-width: 768px) {
  .day-stat-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
    margin: 10px 8px 0;
  }
  .day-stat-strip .strip-head { margin-right: 0; }
  .day-stat-strip .strip-stats { gap: 14px; }
  .day-stat-strip .stat-value { font-size: 1.2rem; }
  .day-stat-strip .strip-verdict { align-self: flex-start; }
}

.day-map-stops {
  list-style: none;
  margin: 0;
  padding: 0;
}
.day-stop {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f0eee5;
  align-items: flex-start;
}
.day-stop:last-child { border-bottom: none; }
.day-stop .num-circle {
  width: 28px;
  height: 38px;
  flex-shrink: 0;
  position: relative;
}
.day-stop .num-circle svg {
  width: 100%;
  height: 100%;
  display: block;
}
.day-stop .body { flex: 1; min-width: 0; }
.day-stop .top-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.day-stop .top-row .time { font-weight: 700; color: var(--gray-800); }
.day-stop .top-row .title { color: var(--gray-700); }
.day-stop .top-row .leg-hint {
  margin-left: auto;
  background: #fef3c7;
  color: #92400e;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.day-stop .top-row .leg-hint.is-commute {
  background: #f3f4f6;
  color: #6b7280;
  font-style: italic;
  font-weight: 500;
}
.day-stop .who {
  margin-top: 2px;
  color: var(--gray-600);
  font-size: 0.75rem;
}
.day-stop .address {
  margin-top: 2px;
  color: var(--gray-500);
  font-size: 0.78rem;
  line-height: 1.3;
}
.day-stop .actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.day-stop .btn {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.78rem;
  color: var(--gray-700);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.day-stop .btn.primary {
  background: var(--coral, #F15A42);
  color: #fff;
  border-color: var(--coral, #F15A42);
}

.day-stop.is-pending_verification {
  background: repeating-linear-gradient(
    135deg, #fff, #fff 8px, #f8f3e0 8px, #f8f3e0 16px
  );
}
.day-stop.is-no_show {
  background: repeating-linear-gradient(
    135deg, #fff, #fff 6px, #fde2e2 6px, #fde2e2 12px
  );
  border-left: 3px solid #b91c1c;
}

.day-legend-dash {
  display: inline-block;
  width: 22px;
  height: 0;
  border-top: 2px dashed currentColor;
  vertical-align: middle;
  margin-right: 0.25rem;
  opacity: 0.55;
}


/* Time picker selects in request confirm modal */
.time-picker-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.time-picker-row select {
    width: auto;
    min-width: 4rem;
}
.time-sep {
    font-weight: 600;
    color: var(--gray-700);
}

/* --- Request inbox: period rendering (task 16) --- */
.req-period {
    color: var(--gray-600);
    font-size: 0.85rem;
    margin-left: 0.3rem;
}
.req-date-more {
    color: var(--gray-500);
    font-size: 0.8rem;
}
.req-time-hint {
    margin: 0 0 0.5rem;
    padding: 0.4rem 0.6rem;
    background: var(--accent-bg, #fef3c7);
    color: var(--accent-fg, #92400e);
    border-radius: 4px;
    font-size: 0.9rem;
}
.req-detail-list dt {
    font-weight: 500;
    color: var(--gray-700);
}
.req-detail-list dd {
    margin: 0 0 0.5rem 0;
}

/* Billing banner — portal */
.billing-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  border: 1px solid;
}
.billing-banner--past-due {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}
.billing-banner--trial {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}
.billing-banner a {
  color: inherit;
  text-decoration: underline;
  font-weight: 600;
  margin-left: auto;
}
.billing-banner__dismiss {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0 0.5rem;
  color: inherit;
  line-height: 1;
}
.billing-banner__dismiss:hover { opacity: 0.7; }
.billing-banner--verify {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e40af;
}
.billing-banner__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}
/* Override .billing-banner a's margin-left:auto for grouped actions. */
.billing-banner__actions a,
.billing-banner__actions .billing-banner__btn {
  margin-left: 0;
}
.billing-banner__btn {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  font-weight: 600;
}
.billing-banner__btn:hover { opacity: 0.7; }

/* SMS preference radio cards (admin/setup) */
.sms-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.65rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color 120ms ease, background 120ms ease;
}
.sms-card:hover {
    border-color: var(--gray-400);
}
.sms-card--selected {
    border-color: var(--accent-500);
    background: var(--accent-50);
}
.sms-card input[type="radio"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
}
.sms-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}
.sms-card__title {
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sms-card__badge {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: var(--gray-100);
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.sms-card__price {
    color: var(--gray-700);
    font-size: 0.88rem;
}
.sms-card__estimate {
    color: var(--gray-500);
    font-size: 0.82rem;
    margin-top: 0.15rem;
}

/* =========================================================================
   Type 2 request form: date × period card grid (Layout B) + map preview
   ========================================================================= */

/* --- Type 2 request: date × period card grid (Layout B) --- */
.bk-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.6rem;
    margin: 0.8rem 0;
}

.bk-slot-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--bk-border, #d4d4d4);
    border-radius: 10px;
    background: var(--bk-card-bg, #fafaf7);
    overflow: hidden;
}

.bk-slot-date {
    text-align: center;
    padding: 0.45rem 0.3rem 0.3rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--bk-text, #1f1f1f);
    background: var(--bk-card-bg-emphasized, #fff);
    border-bottom: 1px solid var(--bk-border, #ececec);
}

.bk-slot-date small {
    display: block;
    font-weight: 400;
    color: var(--bk-text-subdued, #888);
    font-size: 0.7rem;
    margin-top: 2px;
}

.bk-slot-halves {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--bk-border, #ececec);
}

.bk-slot-half {
    text-align: center;
    padding: 0.5rem 0.3rem;
    background: var(--bk-card-bg, #fafaf7);
    cursor: pointer;
    font-size: 0.78rem;
    color: var(--bk-text-subdued, #555);
    user-select: none;
}

.bk-slot-half.is-on {
    background: var(--bk-accent, #F15A42);
    color: #fff;
    font-weight: 600;
}

/* --- Request form map preview --- */
.bk-request-map {
    height: 280px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--bk-border, #d4d4d4);
    margin-top: 0.5rem;
}

.bk-request-map-hint {
    font-size: 0.85rem;
    color: var(--bk-text-subdued, #666);
    margin-top: 0.4rem;
}

.bk-request-map-error {
    font-size: 0.85rem;
    color: var(--bk-warn, #c44);
    margin-top: 0.4rem;
}

/* --- Smart booking: skip-suggestions secondary CTA --- */
.btn-skip-suggestions {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    font: inherit;
    font-size: 0.92rem;
    color: #444;
    background: #fff;
    border: 1px solid #c8c8bf;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-skip-suggestions:hover,
.btn-skip-suggestions:focus-visible {
    background: #f3f3ee;
    border-color: #888;
    color: #111;
    outline: none;
}

/* --- Smart booking suggestion loader (HTMX hx-indicator target) --- */
.suggestion-loader {
    display: none;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    background: #f7f7f3;
    border: 1px solid #e5e5e0;
    border-radius: 8px;
    color: #555;
    font-size: 0.92rem;
    margin: 0.6rem 0;
}
.suggestion-loader.htmx-request {
    display: flex;
}
.bk-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #d4d4d0;
    border-top-color: #444;
    border-radius: 50%;
    animation: bk-spin 0.8s linear infinite;
    flex: 0 0 auto;
}
@keyframes bk-spin {
    to { transform: rotate(360deg); }
}
