@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

/* Sitora Design System */
:root {
  color-scheme: light;
  font: 16px/1.45 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-heading: 'Manrope', var(--font-body);
  --brand-50: #eef3ff; --brand-100: #dce7ff; --brand-200: #bfd0ff;
  --brand-500: #3d6ae8; --brand-600: #2859e8; --brand-700: #1f46c7; --brand-800: #193aa4;
  --canvas: #f2f5fa; --surface: #fff; --surface-soft: #f8fafd; --surface-raised: #fbfcff;
  --surface-control: #edf1f7; --surface-neutral: #e9edf3; --surface-table: #e6edf8;
  --border: #dde5ef; --border-strong: #c6d2e1;
  --text: #18253a; --text-soft: #34445b; --text-muted: #5b6b80; --text-disabled: #7f8da0;
  --warm-surface: #f7f1e8;
  --success: #2f7d63; --success-bg: #e8f5ef;
  --warning: #7b5a16; --warning-bg: #fff3d6;
  --danger: #a94747; --danger-hover: #963a3a; --danger-soft: #c45a5a; --danger-bg: #fceaea;
  --info: var(--brand-700); --info-bg: var(--brand-50);
  --table-free: #f2f5fa; --table-pending: #fbe7a8; --table-confirmed: #bfe7d3;
  --table-seated: #bfd2f7; --table-cancelled: #f3c4c4; --table-finished: #d9dee7;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px;
  --radius-sm: 6px; --radius-control: 8px; --radius-card: 12px;
  --radius-panel: 16px; --radius-dialog: 16px; --radius-feature: 20px; --radius-round: 999px;
  --shadow-control: 0 1px 2px rgb(24 37 58 / 5%), 0 4px 10px -6px rgb(24 37 58 / 20%);
  --shadow-card: 0 3px 7px rgb(26 48 87 / 4%), 0 14px 32px -16px rgb(26 48 87 / 22%);
  --shadow-dialog: 0 12px 30px rgb(14 35 67 / 18%), 0 40px 100px rgb(14 35 67 / 28%);
  --focus-ring: 0 0 0 4px rgb(40 89 232 / 16%);
  --control-height: 44px; --sidebar-width: 238px; --transition-fast: 160ms ease;
}

[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--text); background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { border: 0; color: inherit; background: none; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .52; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--text); font-family: var(--font-heading); }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.muted { color: var(--text-muted); font-size: 14px; }
.empty { padding: var(--space-7) var(--space-5); color: var(--text-muted); text-align: center; white-space: normal; }
:where(button,a,input,select,textarea):focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; box-shadow: var(--focus-ring); }

/* App shell */
.app-shell { min-height: 100vh; min-height: 100dvh; }
.sidebar { position: fixed; z-index: 10; inset: 0 auto 0 0; width: var(--sidebar-width); height: 100vh; height: 100dvh; max-height: 100dvh; padding: 30px 20px 24px; display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; background: var(--surface); border-right: 1px solid var(--border); box-shadow: 6px 0 28px -18px rgb(30 56 101 / 24%); }
.sidebar::-webkit-scrollbar { width: 7px; }.sidebar::-webkit-scrollbar-thumb { background: var(--border-strong); border: 2px solid var(--surface); border-radius: var(--radius-round); }.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::after { content: ''; position: absolute; pointer-events: none; top: 0; right: -24px; width: 24px; height: 100%; background: linear-gradient(90deg,rgb(47 88 180 / 10%),transparent); }
.brand { display: block; padding: 0 8px; }
.brand .sitora-logo { position: relative; display: block; width: 100%; aspect-ratio: 2.65; overflow: hidden; }
.brand .sitora-logo img { position: absolute; top: -49%; left: -24%; display: block; width: 145%; max-width: none; height: auto; }
.venue { margin: 30px 0 26px; padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: var(--space-2); color: var(--text); font-size: 14px; font-weight: 700; text-align: center; background: linear-gradient(135deg,var(--surface),var(--surface-soft)); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-control); }
.venue-icon { width: 84px; height: 84px; display: grid; place-items: center; overflow: hidden; color: var(--text-soft); background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%),0 2px 4px rgb(49 77 114 / 6%); }
.venue-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.venue-copy { width: 100%; line-height: 1.35; }
.venue small, .profile small { display: block; margin-top: var(--space-1); color: var(--text-muted); font-size: 12px; font-weight: 400; }
.nav-label { margin: 0 12px 12px; color: var(--text-muted); font-size: 11px; font-weight: 600; letter-spacing: 1.6px; }
nav { display: grid; gap: var(--space-2); }
nav button, nav a { min-height: var(--control-height); padding: 10px 14px; display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 14px; font-weight: 500; text-align: left; border-radius: var(--radius-control); transition: color var(--transition-fast),background var(--transition-fast),box-shadow var(--transition-fast); }
nav button:hover, nav a:hover { color: var(--text-soft); background: var(--surface-soft); }
nav button.active, nav a.active { color: var(--brand-700); font-weight: 700; background: var(--brand-50); box-shadow: inset 3px 0 0 var(--brand-600); }
.role-staff [data-admin-only], .role-reservation_manager [data-admin-only], .role-staff [data-reservation-manage] { display: none !important; }
.role-staff [data-edit-res], .role-staff [data-res], .role-staff #table-book { display: none !important; }
.nav-icon { width: 20px; display: inline-grid; place-items: center; font-size: 20px; }
.side-bottom { margin-top: auto; }
.pilot { padding: 18px 14px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius-card); }
.pilot > span { color: var(--brand-700); font-size: 10px; font-weight: 700; letter-spacing: 1.4px; }
.pilot p { margin: 12px 0; font-size: 14px; font-weight: 700; }
.pilot small { color: var(--text-muted); font-size: 12px; }
.profile { margin-top: var(--space-5); display: flex; align-items: center; gap: 10px; font-size: 13px; }
.avatar { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; color: var(--text-soft); background: var(--brand-50); border-radius: var(--radius-round); font-size: 12px; font-weight: 700; }
.avatar.small { width: 32px; height: 32px; }
.app-main { min-height: 100vh; min-height: 100dvh; margin-left: var(--sidebar-width); background: radial-gradient(ellipse at 95% 0,rgb(74 122 242 / 7%),transparent 42%),var(--canvas); }
.app-header { height: 81px; padding: 0 38px; display: flex; align-items: center; justify-content: space-between; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 3px 14px -9px rgb(24 46 82 / 22%); }
.breadcrumb { color: var(--text-muted); font-size: 14px; }
.breadcrumb span { margin: 0 16px; color: var(--border-strong); }
.breadcrumb strong { color: var(--text-soft); font-weight: 600; }
.header-right { display: flex; align-items: center; gap: 18px; }
.demo { padding: 6px 9px; color: var(--text-muted); font-size: 10px; font-weight: 600; letter-spacing: 1.3px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.content { width: 100%; max-width: 1600px; margin: auto; padding: 34px 38px 26px; }
.page-heading { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.eyebrow { margin-bottom: var(--space-2); color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: 1.6px; }
h1 { margin: 0 0 var(--space-2); font-size: 30px; font-weight: 800; letter-spacing: -1px; }
.page-heading p { margin: 0; color: var(--text-muted); font-size: 14px; }
.notice { margin-bottom: var(--space-5); color: var(--text-muted); font-size: 12px; line-height: 1.6; }
.notice.saving { color: var(--info); }.notice.saved { color: var(--success); }.notice.unsaved { color: var(--danger); font-weight: 600; }
.app-footer { padding: 8px 38px 25px; display: flex; gap: 12px; color: var(--text-muted); font-size: 11px; letter-spacing: .8px; }
.app-footer span { letter-spacing: 0; }.app-footer span:last-child { margin-left: auto; }

/* Components */
.primary, .secondary, .tertiary, .danger-button { min-height: 40px; padding: 9px 15px; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); border: 1px solid transparent; border-radius: var(--radius-control); font-size: 14px; font-weight: 700; line-height: 1.2; transition: transform var(--transition-fast),border-color var(--transition-fast),color var(--transition-fast),background var(--transition-fast),box-shadow var(--transition-fast); }
.primary { color: var(--surface); background: linear-gradient(180deg,var(--brand-500),var(--brand-600)); border-color: var(--brand-700); box-shadow: inset 0 1px 0 rgb(255 255 255 / 22%),0 8px 16px -7px rgb(40 89 232 / 55%); }
.primary:hover:not(:disabled) { background: linear-gradient(180deg,var(--brand-500),var(--brand-700)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 22%),0 10px 20px -8px rgb(40 89 232 / 62%); transform: translateY(-1px); }
.primary:active:not(:disabled) { transform: translateY(0); }
.secondary { color: var(--text-soft); background: linear-gradient(var(--surface),var(--surface-soft)); border-color: var(--border); box-shadow: var(--shadow-control); }
.secondary:hover:not(:disabled) { color: var(--brand-700); border-color: var(--brand-200); background: var(--brand-50); }
.tertiary { color: var(--brand-700); background: transparent; }.tertiary:hover:not(:disabled) { background: var(--brand-50); }
.danger-button { color: var(--surface); background: linear-gradient(var(--danger-soft),var(--danger)); border-color: var(--danger); box-shadow: 0 7px 14px -8px rgb(169 71 71 / 70%); }
.danger-button:hover:not(:disabled) { background: linear-gradient(var(--danger-soft),var(--danger-hover)); }
.danger-text { color: var(--danger); }
.small-button { min-height: 34px; padding: 7px 10px; font-size: 12px; }
.icon-button { min-width: 40px; min-height: 40px; padding: var(--space-2); display: inline-grid; place-items: center; border-radius: var(--radius-control); font-size: 22px; line-height: 1; }
.icon-button:hover { color: var(--brand-700); background: var(--brand-50); }
label { display: flex; flex-direction: column; gap: var(--space-2); color: var(--text-soft); font-size: 14px; font-weight: 500; }
input, select, textarea { width: 100%; min-width: 0; min-height: var(--control-height); padding: 10px 12px; color: var(--text-soft); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-control); box-shadow: inset 0 1px 2px rgb(37 62 101 / 6%); transition: border-color var(--transition-fast),box-shadow var(--transition-fast),background var(--transition-fast); }
input:hover, select:hover, textarea:hover { border-color: var(--border-strong); }
input:focus, select:focus, textarea:focus { border-color: var(--brand-500); outline: 2px solid var(--brand-500); outline-offset: 1px; box-shadow: var(--focus-ring); }
input:disabled, select:disabled, textarea:disabled { color: var(--text-disabled); background: var(--surface-soft); }
textarea { min-height: 84px; resize: vertical; }
input[type='checkbox'], input[type='radio'] { width: 18px; min-height: 18px; height: 18px; padding: 0; accent-color: var(--brand-600); box-shadow: none; }
.checkbox-field { min-height: 36px; flex-direction: row; align-items: center; gap: 10px; }
.disclosure-toggle { margin-top: var(--space-1); padding: 8px 10px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius-control); cursor: pointer; }.disclosure-field { margin-top: calc(var(--space-2) * -1); padding: 12px; color: var(--text-muted); background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius-control); font-size: 12px; line-height: 1.5; }.disclosure-field textarea { min-height: 64px; color: var(--text-soft); background: var(--surface); font-size: 14px; }.client-data { min-width: 0; }.client-name { display: block; }.reservation-meta { display: flex !important; align-items: center; gap: 0; flex-wrap: wrap; white-space: normal; }.reservation-meta span + span::before { content: '·'; margin-inline: 6px; color: var(--border-strong); }.reservation-room { color: var(--text-soft); }.reservation-indicators { max-width: 500px; margin-top: 7px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; white-space: normal; }.reservation-chip { max-width: 250px; padding: 3px 7px; display: inline-flex; align-items: center; overflow: hidden; color: var(--text-soft); background: var(--surface-neutral); border: 1px solid var(--border); border-radius: var(--radius-round); font-size: 10px; font-weight: 700; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }.reservation-chip.highchair,.reservation-chip.stroller { color: var(--brand-700); background: var(--brand-50); border-color: var(--brand-100); }.reservation-chip.accessibility { color: var(--success); background: var(--success-bg); border-color: color-mix(in srgb,var(--success),transparent 78%); }.reservation-chip.allergies { color: var(--warning); background: var(--warning-bg); border-color: color-mix(in srgb,var(--warning),transparent 76%); }.reservation-chip.note { color: var(--text-soft); background: var(--surface-neutral); }.room-online-toggle { max-width: 220px; padding: 4px 6px; align-self: center; font-size: 12px; }
.field-hint, .customer-lookup-hint { display: block; color: var(--text-muted); font-size: 12px; font-weight: 400; line-height: 1.45; }
.error { min-height: 0; color: var(--danger); font-size: 13px; line-height: 1.5; }.error:empty { display: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }.wide { grid-column: 1 / -1; }
.panel, .metric { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.panel { overflow: hidden; border-radius: var(--radius-panel); }
.toolbar { min-height: 72px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; background: linear-gradient(180deg,var(--surface),var(--surface-raised)); border-bottom: 1px solid var(--border); }
.toolbar h3 { margin: 0; }.toolbar p { margin: 6px 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.metrics { margin-bottom: 26px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: var(--space-4); }
.metric { position: relative; overflow: hidden; padding: 20px 21px; border-radius: var(--radius-card); background: linear-gradient(145deg,var(--surface) 65%,var(--surface-soft)); }
.metric::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg,var(--brand-200),var(--brand-50)); }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--text-muted); font-size: 13px; }
.metric-icon { padding: 6px 9px; color: var(--brand-700); background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius-control); }
.metric strong { margin: 6px 0; display: block; color: var(--text); font: 700 31px var(--font-heading); letter-spacing: -1px; }
.metric-total { color: var(--text-disabled); font-size: 15px; font-weight: 400; }
.metric small { color: var(--text-muted); font-size: 12px; }.metric small.blue { color: var(--brand-700); }
.date-control { display: flex; align-items: center; gap: 7px; }.date-control input { width: auto; border-color: transparent; background: var(--surface-soft); }
.segments, .config-tabs { padding: var(--space-1); display: flex; gap: 2px; overflow-x: auto; background: var(--surface-control); border-radius: var(--radius-control); box-shadow: inset 0 1px 3px rgb(35 61 101 / 7%); }
.segments button, .config-tabs button { min-height: 34px; padding: 7px 13px; flex: 0 0 auto; color: var(--text-muted); font-size: 13px; border-radius: var(--radius-sm); }
.segments button:hover, .config-tabs button:hover { color: var(--text-soft); }.segments .active, .config-tabs .active { color: var(--brand-700); font-weight: 700; background: var(--surface); box-shadow: var(--shadow-control); }
.filterbar { padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }.filter-actions { display: flex; align-items: center; gap: 10px; }.search { width: 100%; max-width: 320px; }
.table-scroll { overflow-x: auto; }table { width: 100%; border-collapse: collapse; color: var(--text); font-size: 14px; text-align: left; white-space: nowrap; }
caption { padding: 0; }th { padding: 13px 20px; color: var(--text-muted); background: var(--surface-soft); border-block: 1px solid var(--border); font-size: 11px; font-weight: 700; letter-spacing: .7px; }td { padding: 16px 20px; border-bottom: 1px solid var(--border); }
tbody tr { transition: background var(--transition-fast); }tbody tr:hover { background: var(--brand-50); }
.client-cell { display: flex; align-items: center; gap: 11px; }.client-cell .avatar { border-radius: var(--radius-control); }.client-cell small, .time small { display: block; margin-top: var(--space-1); color: var(--text-muted); font-size: 12px; font-weight: 500; }.time { color: var(--text-soft); font-weight: 700; }
.badge { padding: 5px 8px; display: inline-flex; align-items: center; gap: 6px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; box-shadow: inset 0 0 0 1px rgb(36 61 100 / 6%); }.badge::before { content: ''; width: 6px; height: 6px; flex: 0 0 auto; background: currentColor; border-radius: var(--radius-round); }
.confirmada { color: var(--success); background: var(--success-bg); }.sentada { color: var(--brand-700); background: var(--brand-50); }.pendiente { color: var(--warning); background: var(--warning-bg); }.cancelada { color: var(--danger); background: var(--danger-bg); }.finalizada { color: var(--text-muted); background: var(--surface-neutral); }
.status-select { width: auto; min-height: 36px; padding: 6px 9px; font-size: 13px; }
dialog { width: 560px; max-width: calc(100% - 24px); max-height: 92vh; padding: 0; overflow: auto; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-dialog); box-shadow: var(--shadow-dialog); }
dialog::backdrop { background: rgb(18 33 57 / 48%); backdrop-filter: blur(4px); }dialog > form { padding: 26px; }
.dialog-top { margin: -26px -26px var(--space-5); padding: 22px 26px 16px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); background: var(--surface); border-bottom: 1px solid var(--border); }.dialog-top h2 { margin: 0; font-size: 23px; }
.dialog-actions { position: sticky; bottom: -26px; margin: var(--space-5) -26px -26px; padding: 16px 26px; display: flex; justify-content: flex-end; gap: 10px; background: rgb(255 255 255 / 96%); border-top: 1px solid var(--border); backdrop-filter: blur(8px); }
.config-dialog-body { margin: var(--space-5) 0; line-height: 1.7; }.confirm-copy { margin: 0; color: var(--text-muted); line-height: 1.65; }
.success { padding: 18px; color: var(--success); background: var(--success-bg); border: 1px solid color-mix(in srgb,var(--success),transparent 70%); border-radius: var(--radius-card); }
#toast { position: fixed; z-index: 100; left: 50%; bottom: 25px; max-width: min(520px,calc(100% - 24px)); padding: 13px 18px; display: none; color: var(--surface); background: var(--text); border-radius: var(--radius-control); box-shadow: var(--shadow-dialog); font-size: 14px; transform: translateX(-50%); }
#toast.success { display: block; color: var(--surface); background: var(--success); border: 0; }#toast.warning { display: block; color: var(--text); background: var(--warning-bg); border: 1px solid color-mix(in srgb,var(--warning),transparent 68%); }#toast.error { display: block; color: var(--surface); background: var(--danger); border: 0; }

/* Reservations, public booking and floor */
.print-heading { display: none; }.floor-wrap { display: grid; grid-template-columns: minmax(0,1fr) 290px; }.floor-wrap > div, .editor-layout > div { min-width: 0; }
.floor-detail { padding: var(--space-5); background: linear-gradient(110deg,var(--surface-soft),var(--surface) 28%); border-left: 1px solid var(--border); }.floor-detail h3 { margin: 0 0 var(--space-2); }.floor-detail p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }.floor-detail .primary { width: 100%; margin-top: 15px; }.detail-res { padding: 15px 0; color: var(--text-soft); border-bottom: 1px solid var(--border); font-size: 14px; line-height: 1.8; }
.zone-tabs { display: flex; gap: var(--space-2); flex-wrap: wrap; }.zone-tabs button { min-height: 40px; padding: 9px 15px; color: var(--text-muted); background: var(--surface-control); border-radius: var(--radius-control); font-size: 14px; }.zone-tabs button:hover { color: var(--text-soft); background: var(--brand-50); }.zone-tabs .chosen { color: var(--brand-700); font-weight: 700; background: var(--brand-50); box-shadow: var(--shadow-control); }.zone-tabs span { margin-left: 8px; padding: 1px 6px; display: inline-block; background: rgb(255 255 255 / 72%); border-radius: var(--radius-sm); font-size: 12px; }
.map-scroll { width: 100%; max-width: 100%; overflow: auto; background: radial-gradient(ellipse at center,var(--surface),var(--canvas)); box-shadow: inset 0 2px 10px rgb(45 78 124 / 4%); }.room-map { position: relative; width: max(var(--room-min-width,700px),calc(100% - 32px)); height: 510px; box-sizing: content-box; background-color: var(--surface-soft); background-image: radial-gradient(var(--border-strong) 1px,transparent 1px); background-size: 20px 20px; border: 16px solid transparent; background-clip: padding-box; }
.room-label { position: absolute; top: 5px; left: 15px; color: var(--text-muted); font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.map-table { position: absolute; padding: 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; overflow: hidden; color: var(--text-soft); background: linear-gradient(145deg,var(--surface),var(--surface-table)); border: 2px solid var(--border-strong); border-radius: var(--radius-card); box-shadow: inset 0 2px 0 var(--surface),0 5px 0 var(--border),0 13px 16px -9px rgb(45 80 125 / 36%); }.map-table strong { max-width: 100%; overflow-wrap: anywhere; font-size: 14px; line-height: 1.15; }.map-table span { font-size: 11px; }.map-table.round { border-radius: 50%; }.map-table.rectangle, .map-table.rectangle-horizontal { border-radius: var(--radius-control); }
.map-table.selected { z-index: 2; outline: 3px solid var(--brand-600); outline-offset: 4px; box-shadow: inset 0 2px 0 var(--surface),0 5px 0 var(--brand-100),0 15px 22px -9px rgb(40 89 232 / 45%); }.map-table.state-colored { color: var(--table-text); background: var(--table-bg); border-color: color-mix(in srgb,var(--table-border),var(--text) 18%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 48%),0 5px 0 color-mix(in srgb,var(--table-bg),var(--text) 17%),0 13px 18px -10px rgb(24 37 58 / 35%); transition: background var(--transition-fast),border-color var(--transition-fast),color var(--transition-fast); }.map-table.state-colored.selected { color: var(--table-text); background: var(--table-bg); }
.map-booking { max-width: 100%; display: flex; flex-direction: column; align-items: center; line-height: 1.15; }.map-booking b { display: -webkit-box; max-width: 100%; overflow: hidden; line-height: 1.12; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }.map-booking small { font-size: 11px; font-weight: 800; }.map-table.movable, .map-text-label.movable { cursor: grab; touch-action: none; user-select: none; }.map-table.movable:active, .map-text-label.movable:active { cursor: grabbing; }
.map-text-label { position: absolute; z-index: 1; max-width: 220px; padding: 5px 9px; color: var(--text-soft); background: rgb(255 255 255 / 72%); border-radius: var(--radius-sm); box-shadow: 0 1px 4px rgb(24 52 90 / 10%); font-size: 13px; font-weight: 700; line-height: 1.3; text-align: left; }.map-text-label.selected { outline: 3px solid var(--brand-600); outline-offset: 2px; }
.map-decoration { position: absolute; z-index: 0; padding: 2px; display: grid; place-items: center; overflow: visible; color: var(--text-muted); background: transparent; border: 0; border-radius: 6px; box-shadow: none; transform-origin: center; appearance: none; }.map-decoration svg { width: 100%; height: 100%; display: block; overflow: visible; }.map-decoration.movable { cursor: grab; touch-action: none; user-select: none; }.map-decoration.movable:active { cursor: grabbing; }.map-decoration.selected { z-index: 3; outline: 2px dashed var(--brand-600); outline-offset: 4px; background: transparent; box-shadow: 0 0 0 7px color-mix(in srgb,var(--brand-100),transparent 38%); }
.map-decoration .decor-main,.decoration-editor-preview .decor-main { fill: var(--decor-color); stroke: color-mix(in srgb,var(--decor-color),var(--text) 24%); stroke-width: 2; }.map-decoration .decor-soft,.decoration-editor-preview .decor-soft { fill: color-mix(in srgb,var(--decor-color),var(--surface) 52%); stroke: color-mix(in srgb,var(--decor-color),var(--text) 18%); stroke-width: 2; }.map-decoration .decor-accent,.decoration-editor-preview .decor-accent { fill: color-mix(in srgb,var(--decor-color),var(--text) 18%); stroke: color-mix(in srgb,var(--decor-color),var(--text) 30%); stroke-width: 1.5; }.map-decoration .decor-line,.decoration-editor-preview .decor-line { fill: none; stroke: color-mix(in srgb,var(--decor-color),var(--text) 34%); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }.map-decoration .decor-wall,.decoration-editor-preview .decor-wall { stroke-width: 4; }
.map-hint { padding: 16px 20px; color: var(--text-muted); border-top: 1px solid var(--border); font-size: 13px; line-height: 1.6; }.map-legend { padding: 12px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--text-muted); background: var(--surface-soft); border-top: 1px solid var(--border); font-size: 12px; }.map-legend span { display: inline-flex; align-items: center; gap: 6px; }.map-legend i { width: 10px; height: 10px; border: 1px solid rgb(24 37 58 / 12%); border-radius: var(--radius-round); }

/* Configuration */
.config-navigation { margin-bottom: var(--space-5); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }.config-section-intro { margin-bottom: var(--space-5); }.config-section-intro h2 { margin: 0 0 6px; font-size: 22px; }.config-section-intro p { margin: 0; color: var(--text-muted); font-size: 14px; }
.service-panel { margin-bottom: var(--space-5); }.service-panel h3 { margin: 0; font-size: 19px; }.service-list { padding: 14px 18px 18px; display: grid; gap: 10px; }.service-card { overflow: hidden; background: linear-gradient(120deg,var(--surface),var(--surface-soft)); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: 0 5px 16px -12px rgb(43 77 124 / 45%); }
.service-header { padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }.service-main strong { display: block; color: var(--text-soft); }.service-main span { display: block; margin-top: 2px; color: var(--text-muted); font-size: 13px; }.service-edit-link { margin: 7px 12px 9px auto; padding: 5px; display: block; color: var(--brand-700); font-size: 12px; }.service-edit-link:hover { text-decoration: underline; }
.slot-day-row { padding: 14px 18px; display: flex; align-items: end; justify-content: space-between; gap: var(--space-4); border-bottom: 1px solid var(--border); }.slot-day-row label { max-width: 250px; }.slot-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); border-top: 1px solid var(--border); }.slot-row { padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }.slot-toggle { flex-direction: row; align-items: center; gap: 9px; color: var(--text-soft); }.empty-slots { padding: 13px; color: var(--text-muted); font-size: 13px; }
.turn-form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }.rules-form { padding: 18px; }
.status-color-grid { padding: 20px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--space-3); }.status-color-option { padding: 13px; display: grid; grid-template-columns: 42px minmax(0,1fr) 48px; align-items: center; gap: var(--space-3); background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius-control); cursor: pointer; }.status-color-option > span:nth-child(2) { color: var(--text-soft); font-weight: 700; }.status-color-option small { display: block; margin-top: var(--space-1); color: var(--text-muted); font-size: 11px; font-weight: 500; }.status-color-option input[type='color'] { width: 48px; height: 38px; min-height: 38px; padding: 3px; cursor: pointer; }.status-color-swatch { width: 38px; height: 38px; border: 1px solid rgb(24 52 90 / 13%); border-radius: var(--radius-control); box-shadow: inset 0 0 0 2px rgb(255 255 255 / 45%); }.status-color-note { margin: 0; padding: 0 20px 20px; color: var(--text-muted); font-size: 12px; line-height: 1.6; }
.business-logo-settings { padding: 20px; display: flex; align-items: center; gap: 22px; }.business-logo-preview { width: 92px; height: 92px; flex: 0 0 92px; display: grid; place-items: center; overflow: hidden; color: var(--text-muted); background: var(--surface-soft); border: 1px dashed var(--border-strong); border-radius: var(--radius-card); font-weight: 800; }.business-logo-preview img { width: 100%; height: 100%; object-fit: contain; }.business-logo-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }.business-logo-actions small, .business-logo-actions .error { flex-basis: 100%; }.logo-upload { display: inline-flex; cursor: pointer; }
.config-summary { margin: 0 0 var(--space-5); padding: 16px 20px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; color: var(--text-muted); background: rgb(255 255 255 / 82%); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-control); font-size: 14px; }.config-summary strong { margin-right: 6px; color: var(--text-soft); font-size: 25px; }
.room-tools { display: flex; align-items: end; gap: 9px; flex-wrap: wrap; }.room-tools label { gap: var(--space-1); font-size: 12px; }.room-tools input[type='color'] { width: 70px; height: 38px; min-height: 38px; padding: 3px; }.editor-layout { display: grid; grid-template-columns: minmax(0,1fr) 275px; }.table-editor { padding: var(--space-5); background: linear-gradient(110deg,var(--surface-soft),var(--surface) 28%); border-left: 1px solid var(--border); }.table-editor h3 { margin: var(--space-2) 0 22px; overflow-wrap: anywhere; font-size: 23px; } .decoration-editor-heading { margin: var(--space-3) 0 var(--space-5); display: grid; grid-template-columns: 68px minmax(0,1fr); align-items: center; gap: var(--space-3); }.decoration-editor-heading h3 { margin: 0 0 4px; font-size: 18px; }.decoration-editor-heading p { margin: 0; font-size: 11px; line-height: 1.45; }.decoration-editor-preview { width: 64px; height: 64px; padding: 6px; display: grid; place-items: center; background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius-control); transform-origin: center; }.decoration-editor-preview svg { width: 100%; height: 100%; overflow: visible; }.decor-color-field { min-width: 0; margin: 0; padding: 0; display: grid; gap: var(--space-3); border: 0; }.decor-color-field legend { margin-bottom: var(--space-2); color: var(--text-soft); font-size: 13px; font-weight: 700; }.decor-color-presets { display: flex; gap: 9px; flex-wrap: wrap; }.decor-color-swatch { width: 34px; height: 34px; flex: 0 0 34px; padding: 0; background: var(--swatch); border: 2px solid var(--surface); border-radius: 50%; box-shadow: 0 0 0 1px var(--border-strong); }.decor-color-swatch:hover { transform: translateY(-1px); }.decor-color-swatch.active { box-shadow: 0 0 0 3px var(--brand-600); }.decor-color-field label { font-size: 12px; }.decor-color-field input[type='color'] { width: 100%; height: 42px; padding: 3px; }.rotation-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }.rotation-actions .secondary { min-width: 0; }.table-editor output { float: right; color: var(--brand-700); font-weight: 800; }.table-editor form { display: grid; gap: var(--space-4); }.table-editor .primary, .table-editor .secondary { width: 100%; }.position-fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }.editor-note { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.7; }.label-transparent { flex-direction: row; align-items: center; }

/* Customer combobox */
.customer-lookup-field { position: relative; }.customer-lookup-list { position: absolute; z-index: 50; top: calc(100% - 2px); left: 0; right: 0; max-height: 280px; padding: 6px; overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-dialog); }.customer-phone-field .customer-lookup-list { right: auto; width: calc(200% + 18px); }
.customer-lookup-option { width: 100%; min-height: 44px; padding: 10px 12px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 18px; color: var(--text); text-align: left; border-radius: var(--radius-control); }.customer-lookup-option:hover, .customer-lookup-option[aria-selected='true'] { background: var(--brand-50); }.customer-lookup-main { min-width: 0; display: grid; grid-template-columns: minmax(140px,1fr) auto; align-items: center; gap: 18px; }.customer-lookup-main strong { color: var(--text-soft); font-size: 14px; overflow-wrap: anywhere; }.customer-lookup-main span { color: var(--text-muted); font-size: 13px; white-space: nowrap; }.customer-lookup-option small { color: var(--text-muted); font-size: 12px; text-align: right; white-space: nowrap; }

/* Authentication */
.auth-shell { min-height: 100vh; padding: var(--space-5); display: grid; place-items: center; background: radial-gradient(circle at 85% 10%,var(--brand-100),transparent 30%),radial-gradient(circle at 5% 90%,var(--warm-surface),transparent 32%),var(--canvas); }.auth-layout { width: min(900px,100%); min-height: 560px; display: grid; grid-template-columns: minmax(0,.9fr) minmax(360px,1fr); overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-feature); box-shadow: var(--shadow-dialog); }.auth-aside { padding: 46px; display: flex; flex-direction: column; justify-content: space-between; color: var(--surface); background: linear-gradient(150deg,var(--brand-700),var(--brand-800)); }.auth-aside .auth-logo { width: 210px; filter: brightness(0) invert(1); }.auth-aside h1 { max-width: 350px; color: var(--surface); font-size: 34px; line-height: 1.15; }.auth-aside p { max-width: 360px; color: rgb(255 255 255 / 78%); line-height: 1.7; }.auth-aside small { color: rgb(255 255 255 / 70%); }.auth-main { padding: 52px; display: flex; flex-direction: column; justify-content: center; }.auth-main .auth-mobile-logo { display: none; width: 190px; margin-bottom: var(--space-6); }.auth-main h2 { margin: 0 0 var(--space-2); font-size: 28px; }.auth-main > p { margin: 0 0 var(--space-6); color: var(--text-muted); }.auth-main form { display: grid; gap: var(--space-4); }.auth-main .primary { width: 100%; min-height: var(--control-height); margin-top: var(--space-2); }

@media (min-width:1450px) { .content { padding-top: 42px; }.metric { padding: 24px; }td { padding-block: 19px; } }
@media (max-width:1100px) {
  :root { --sidebar-width: 205px; }.sidebar { padding-inline: 14px; }.content, .app-header { padding-inline: 22px; }.metric { padding: 15px; }.metric-top { font-size: 12px; }.floor-wrap, .editor-layout { grid-template-columns: minmax(0,1fr); }.floor-detail, .table-editor { border-top: 1px solid var(--border); border-left: 0; }.table-editor form { grid-template-columns: 1fr 1fr; }.table-editor .error, .table-editor .primary, .table-editor .secondary, .editor-note { grid-column: 1/-1; }td, th { padding-inline: 14px; }.status-color-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:760px) {
  .sidebar { position: static; width: 100%; height: auto; max-height: none; padding: 14px 16px; overflow: visible; overscroll-behavior: auto; border-right: 0; border-bottom: 1px solid var(--border); box-shadow: 0 5px 18px -14px rgb(36 69 117 / 34%); }.sidebar::after { display: none; }.brand { width: 190px; padding: 0; }.venue, .nav-label, .side-bottom { display: none; }nav { margin-top: 12px; display: flex; gap: 5px; overflow-x: auto; scrollbar-width: thin; }nav button, nav a { min-height: 40px; flex: 0 0 auto; padding: 8px 10px; gap: 6px; font-size: 12px; white-space: nowrap; }nav button.active, nav a.active { box-shadow: inset 0 -3px 0 var(--brand-600); }.nav-icon { width: 17px; font-size: 17px; }.app-main { margin: 0; }.app-header { height: 55px; padding: 0 16px; }.header-right .avatar { display: none; }.breadcrumb { font-size: 12px; }.demo { font-size: 9px; }.content { padding: 24px 16px; }.eyebrow { font-size: 10px; }h1 { font-size: 25px; }.page-heading { align-items: flex-start; }.page-heading p { max-width: 220px; font-size: 12px; line-height: 1.6; }.page-heading .primary { margin-top: 18px; padding-inline: 11px; font-size: 12px; white-space: nowrap; }.metrics { grid-template-columns: 1fr 1fr; gap: 10px; }.metric strong { font-size: 27px; }.toolbar { min-height: 0; padding: 13px; gap: 12px; }.date-control { width: 100%; }.date-control input { flex: 1; max-width: 180px; }.segments { width: 100%; }.segments button { flex: 1; }.filterbar { padding: 13px; align-items: stretch; flex-direction: column; }.search { max-width: none; }.filter-actions { width: 100%; justify-content: space-between; }.filter-actions select { min-width: 0; flex: 1; }.app-footer { padding: 10px 16px 25px; flex-wrap: wrap; }.app-footer span:last-child { width: 100%; margin: 0; }.config-navigation { align-items: stretch; flex-direction: column; }.config-tabs { width: 100%; }.config-tabs button { flex: 1; }.status-color-grid { grid-template-columns: 1fr; padding: 14px; }.status-color-note { padding: 0 14px 16px; }.business-logo-settings { align-items: flex-start; }.slot-day-row { align-items: stretch; flex-direction: column; }.slot-list { grid-template-columns: 1fr; }.service-header { align-items: flex-start; }.room-tools { width: 100%; }.table-editor { padding: 20px; }.map-scroll { max-height: 540px; }.map-hint { font-size: 12px; }.customer-phone-field .customer-lookup-list { width: calc(200% + 14px); }.customer-lookup-option { grid-template-columns: 1fr; gap: 5px; }.customer-lookup-option small { text-align: left; }.auth-layout { grid-template-columns: 1fr; min-height: 0; }.auth-aside { display: none; }.auth-main { padding: 36px 28px; }.auth-main .auth-mobile-logo { display: block; }
}
@media (max-width:560px) {
  .form-grid, .turn-form, .table-editor form { grid-template-columns: 1fr; }.wide, .table-editor .error, .table-editor .primary, .table-editor .secondary, .editor-note { grid-column: auto; }dialog > form { padding: 22px 18px; }.dialog-top { margin: -22px -18px var(--space-4); padding: 18px; }.dialog-top h2 { font-size: 21px; }.dialog-actions { bottom: -22px; margin: var(--space-5) -18px -22px; padding: 14px 18px; }.customer-phone-field .customer-lookup-list { width: 100%; }.customer-lookup-main { grid-template-columns: 1fr; gap: 2px; }.customer-lookup-main span { white-space: normal; }.business-logo-settings { flex-direction: column; }
}
@media (max-width:420px) { .metrics { grid-template-columns: 1fr; }.page-heading { flex-direction: column; }.page-heading .primary { width: 100%; margin-top: 0; }.config-tabs button { flex: 0 0 auto; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
@media print {
  body { background: var(--surface); }.sidebar, .app-header, .page-heading, .notice, .metrics, .app-footer, .agenda-panel > .toolbar, .filterbar, .agenda-panel th:last-child, .agenda-panel td:last-child, #toast { display: none !important; }.app-main { margin: 0; background: var(--surface); }.content { max-width: none; padding: 0; }.panel { overflow: visible; border: 0; box-shadow: none; }.print-heading { display: block; margin: 0 0 20px; }.print-heading h2 { margin: 0 0 6px; font-size: 24px; }.print-heading p { margin: 0; color: var(--text-muted); text-transform: capitalize; }.table-scroll { overflow: visible; }table { font-size: 12px; white-space: normal; }th,td { padding: 9px 10px; }.avatar { display: none; }.badge { color: var(--text) !important; background: var(--surface) !important; border: 1px solid currentColor; }@page { size: A4 portrait; margin: 14mm; }
}

.online-booking-settings{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:end}.online-booking-settings .wide{grid-column:1/-1}.copy-field{display:flex;gap:10px}.copy-field input{min-width:0;flex:1}.booking-code{display:block;margin-top:7px;padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface-soft);color:var(--ink);overflow-wrap:anywhere;font-size:.86rem}@media(max-width:720px){.online-booking-settings{grid-template-columns:1fr}.copy-field{align-items:stretch;flex-direction:column}}
.public-booking-share{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:end}.booking-qr-card{padding:14px;display:flex;align-items:center;gap:14px;background:var(--surface-soft);border:1px solid var(--border);border-radius:var(--radius-card)}.booking-qr-preview{width:132px;height:132px;flex:0 0 132px;padding:6px;background:#fff;border:1px solid var(--border);border-radius:var(--radius-control)}.booking-qr-preview svg{width:100%;height:100%;display:block}.booking-qr-card strong,.booking-qr-card small{display:block}.booking-qr-card small{max-width:260px;margin-top:5px;color:var(--text-muted);line-height:1.45}.booking-qr-actions{margin-top:12px;display:flex;gap:8px;flex-wrap:wrap}@media(max-width:900px){.public-booking-share{grid-template-columns:1fr}.booking-qr-card{align-items:flex-start}}@media(max-width:560px){.booking-qr-card{flex-direction:column}.booking-qr-preview{width:148px;height:148px}.booking-qr-actions .secondary{width:100%}}

.reservation-chip.email-pending{background:var(--table-pending,#fbe7a8);color:#5f4b12;border-color:color-mix(in srgb,var(--table-pending,#fbe7a8),#8b6c15 28%)}
