﻿:root {
  --app-bg: #050b0c;
  --panel: #0b1113;
  --panel-soft: #11181a;
  --panel-hover: #182023;
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f7f7f4;
  --muted: #9ba3a3;
  --map-frame: #15191a;
  --map-shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
  --free: #65b736;
  --free-deep: #3f8e27;
  --occupied: #1d72f0;
  --occupied-deep: #0b55c4;
  --reserved: #ef3d34;
  --reserved-deep: #be201a;
  --closed: #70777a;
  --sheet-bg: #f4f4f2;
  --sheet-card: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 0%, rgba(54, 80, 78, 0.28), transparent 34%),
    linear-gradient(135deg, #030708 0%, #071011 46%, #030506 100%);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

button {
  font: inherit;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 18px 18px 20px;
}

.sidebar {
  display: flex;
  min-height: calc(100vh - 36px);
  flex-direction: column;
  padding: 12px 8px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.03);
}

.brand {
  padding: 0 8px;
}

.brand-mark {
  position: relative;
  width: max-content;
  color: #fff;
  font-size: 33px;
  font-weight: 650;
  letter-spacing: 3px;
  line-height: 1;
}

.brand-mark span {
  position: relative;
}

.brand-mark span::after {
  position: absolute;
  top: -4px;
  right: -8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--reserved);
  content: "";
}

.brand-subtitle {
  margin-top: 12px;
  padding-left: 22px;
  color: #fff;
  font-size: 12px;
  letter-spacing: 2px;
}

.nav-block {
  margin-top: 54px;
}

.sidebar-section {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.sidebar-label {
  margin: 0 8px 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item,
.outline-action {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #f4f5f2;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
}

.nav-item {
  padding: 8px;
}

.nav-item.active,
.nav-item:hover {
  background: var(--panel-soft);
}

.nav-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.legend-list {
  display: grid;
  gap: 14px;
  padding: 0 10px;
}

.legend-list span,
.mobile-legend span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f2f3f0;
  font-size: 13px;
  font-weight: 600;
}

.status-dot {
  display: inline-block;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border-radius: 50%;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.status-dot.free {
  background: linear-gradient(145deg, #7ccd44, var(--free));
}

.status-dot.occupied {
  background: linear-gradient(145deg, #2c83ff, var(--occupied));
}

.status-dot.held {
  background: linear-gradient(145deg, #a78bfa, #7c3aed);
}

.status-dot.booking_soon {
  background: linear-gradient(145deg, #ff9d3d, #e63227);
}

.status-dot.reserved {
  background: linear-gradient(145deg, #ff514a, var(--reserved));
}

.status-dot.closed {
  background: linear-gradient(145deg, #8b9295, #545b5d);
}

.quick-actions {
  display: grid;
  gap: 10px;
}

.outline-action {
  min-height: 42px;
  padding: 0 12px;
  border-color: var(--line);
  color: #fff;
}

.outline-action:hover {
  background: var(--panel-hover);
}

.sidebar-footer,
.mobile-menu-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 18px 8px 12px;
  color: #e8ece8;
  font-size: 13px;
}

.sidebar-footer strong,
.mobile-menu-footer strong {
  font-size: 16px;
}

.online-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--free);
}

.workspace {
  display: grid;
  min-width: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
}

.content-header {
  display: grid;
  gap: 10px;
}

.desktop-titlebar {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
}

.desktop-titlebar h1,
.mobile-titlebar h1 {
  margin: 0;
  color: #fff;
  font-size: 21px;
  font-weight: 750;
  line-height: 1.15;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.header-button,
.square-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 5, 6, 0.66);
  color: #fff;
  cursor: pointer;
}

.header-button {
  min-width: 152px;
  height: 38px;
  gap: 10px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
}

.square-button,
.icon-button {
  width: 42px;
  height: 38px;
}

.icon-button.light {
  border: 0;
  background: transparent;
  color: #111;
}

.mobile-titlebar,
.mobile-legend,
.bottom-nav,
.mobile-menu-panel {
  display: none;
}

.map-shell {
  min-height: 0;
  overflow: hidden;
  border: 7px solid var(--map-frame);
  border-radius: 3px;
  background: var(--map-frame);
  box-shadow: var(--map-shadow);
}

.map-scroll {
  width: 100%;
  height: 100%;
  overflow: auto;
  background: #eef0ee;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
  scrollbar-width: thin;
}

.map-stage {
  position: relative;
  width: 1402px;
  height: 1122px;
  transform-origin: top left;
}

.map-stage img {
  display: block;
  width: 1402px;
  height: 1122px;
  user-select: none;
  -webkit-user-drag: none;
}

.tables-layer {
  position: absolute;
  inset: 0;
}

.table-marker {
  position: absolute;
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.32);
  transform: translate(-50%, -50%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -6px 10px rgba(0, 0, 0, 0.18),
    0 4px 9px rgba(0, 0, 0, 0.28);
}

.table-marker.square {
  padding: 0 7px;
}

.table-marker.round {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.table-marker.free {
  background: linear-gradient(150deg, #75c747 0%, var(--free-deep) 100%);
}

.table-marker.occupied {
  background: linear-gradient(150deg, #2c83ff 0%, var(--occupied-deep) 100%);
}

.table-marker.reserved {
  background: linear-gradient(150deg, #ff514a 0%, var(--reserved-deep) 100%);
}

.table-marker:hover,
.table-marker:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.82);
  outline-offset: 2px;
}

.status-line {
  min-height: 18px;
  margin: 0;
  color: #b8bfbd;
  font-size: 12px;
}

.loading-card {
  display: grid;
  min-height: 420px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-weight: 700;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  align-items: end;
  background: rgba(0, 0, 0, 0.36);
}

.sheet-backdrop[hidden] {
  display: none;
}

.table-sheet {
  width: min(430px, calc(100vw - 28px));
  margin: 0 auto max(24px, env(safe-area-inset-bottom));
  padding: 8px 16px 18px;
  border-radius: 22px;
  background: var(--sheet-bg);
  color: #111;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
}

.sheet-handle {
  width: 42px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 99px;
  background: #d7d7d4;
}

.sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.sheet-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}

.sheet-header p {
  margin: 14px 0 0;
  color: #7d8382;
  font-size: 12px;
}

.current-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
  font-size: 16px;
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.status-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.status-action.free {
  background: linear-gradient(180deg, #67bd39, #4da02c);
}

.status-action.occupied {
  background: linear-gradient(180deg, #287cf7, #155fd1);
}

.status-action.reserved {
  background: linear-gradient(180deg, #ef3f37, #d82b24);
}

.status-action.closed {
  background: #e2e4e3;
  color: #171b1b;
}

.status-action.disabled {
  opacity: 0.72;
  cursor: default;
}

.comment-row {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #171b1b;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(19, 24, 24, 0.08);
}

.row-arrow {
  margin-left: auto;
  font-size: 26px;
  line-height: 1;
}

.mobile-menu-panel {
  position: fixed;
  inset: 0;
  z-index: 30;
  padding: 30px 22px max(26px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 20% 0%, rgba(62, 83, 80, 0.28), transparent 36%),
    #050b0c;
}

.mobile-menu-panel:not([hidden]) {
  display: flex;
  flex-direction: column;
}

.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.mobile-brand {
  align-self: center;
  padding-top: 4px;
}

.mobile-nav {
  margin-top: 56px;
}

@media (max-width:1180px) {
  body {
    background: #050b0c;
  }

  .app-shell {
    display: block;
    min-height: 100vh;
    padding: max(10px, env(safe-area-inset-top)) 12px 90px;
  }

  .sidebar,
  .desktop-titlebar {
    display: none;
  }

  .workspace {
    display: block;
  }

  .mobile-titlebar {
    display: grid;
    min-height: 44px;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
  }

  .mobile-titlebar h1 {
    text-align: center;
    font-size: 16px;
  }

  .mobile-legend {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 2px 12px;
    white-space: nowrap;
  }

  .mobile-legend span {
    gap: 6px;
    font-size: 11px;
  }

  .mobile-legend .status-dot {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
  }

  .map-shell {
    height: calc(100vh - 205px);
    min-height: 420px;
    border-width: 4px;
    border-radius: 14px;
  }

  .map-stage {
    transform: scale(0.58);
    transform-origin: top left;
    margin-right: -589px;
    margin-bottom: -471px;
  }

  .table-marker {
    min-width: 25px;
    height: 25px;
    border-radius: 4px;
    font-size: 10px;
  }

  .table-marker.round {
    width: 31px;
    height: 31px;
  }

  .bottom-nav {
    position: fixed;
    right: 12px;
    bottom: max(14px, env(safe-area-inset-bottom));
    left: 12px;
    z-index: 12;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0;
  }

  .bottom-nav button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(5, 11, 12, 0.92);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
  }

  .status-line {
    margin-top: 10px;
    padding: 0 4px;
  }

  .table-sheet {
    width: calc(100vw - 24px);
    margin-bottom: 10px;
  }
}

@media (max-width: 390px) {
  .app-shell {
    padding-inline: 8px;
  }

  .mobile-legend {
    gap: 9px;
  }

  .bottom-nav {
    right: 8px;
    left: 8px;
  }
}

/* UMAMI control-room theme */
:root { --app-bg:#050607; --panel:#0b0d10; --panel-soft:#111418; --panel-hover:#15191e; --line:rgba(255,255,255,.18); --line-soft:rgba(255,255,255,.08); --text:#fff; --muted:#8b9098; --map-frame:#15181c; --map-shadow:0 18px 55px rgba(0,0,0,.38); --free:#35b94a; --occupied:#2869e8; --reserved:#e63227; --closed:#555a60; }
body { background:#050607; }
.app-shell { grid-template-columns:260px minmax(0,1fr); gap:28px; padding:0 20px 16px 0; }
.sidebar { min-height:100vh; padding:24px 14px 16px; border-right:1px solid rgba(255,255,255,.12); background:linear-gradient(180deg,#070809 0%,#050607 100%); }
.brand { padding:10px 16px 0; }
.brand-mark { font-size:38px; font-weight:800; letter-spacing:2px; }
.brand-mark span::after { top:-6px; right:-7px; width:6px; height:6px; background:#e63227; box-shadow:0 0 12px rgba(230,50,39,.5); }
.brand-subtitle { margin-top:8px; padding-left:4px; color:#8b9098; font-size:10px; font-weight:700; letter-spacing:4px; }
.nav-block { margin-top:50px; }
.sidebar-label { color:#8b9098; font-size:11px; font-weight:700; letter-spacing:.08em; }
.nav-list { gap:6px; }
.nav-item,.outline-action { border-radius:6px; font-weight:500; }
.nav-item { min-height:52px; padding:7px 10px; color:#f5f6f7; }
.nav-item.active { border-color:#e63227; background:linear-gradient(90deg,rgba(230,50,39,.08),rgba(255,255,255,.025)); }
.nav-item:hover { background:#111418; }
.nav-icon { background:transparent; color:#777d85; }
.nav-item.active .nav-icon { color:#e63227; }
.sidebar-section { margin-top:22px; padding-top:20px; border-top-color:rgba(255,255,255,.1); }
.legend-list { gap:13px; }
.legend-list span,.mobile-legend span { font-weight:500; }
.status-dot { width:11px; height:11px; flex-basis:11px; border:1px solid rgba(255,255,255,.22); box-shadow:none; }
.status-dot.free { background:#35b94a; }
.status-dot.held { background:#8b5cf6; }
.status-dot.occupied { background:#2869e8; }
.status-dot.booking_soon { background:#f07835; }
.status-dot.reserved { background:#e63227; }
.status-dot.closed { background:#555a60; }
.outline-action { min-height:44px; border-color:rgba(255,255,255,.18); background:#090b0d; color:#f5f6f7; font-size:12px; }
.outline-action svg,.bottom-nav svg { color:#e63227; }
.outline-action:hover,.header-button:hover,.square-button:hover { border-color:rgba(230,50,39,.75); background:#111418; }
.sidebar-footer { border-top:1px solid rgba(255,255,255,.1); color:#8b9098; }
.sidebar-footer strong { color:#fff; }
.workspace { padding-top:22px; }
.desktop-titlebar { min-height:56px; }
.desktop-titlebar h1 { font-size:28px; font-weight:700; letter-spacing:-.02em; }
.header-button,.square-button,.icon-button { border-color:rgba(255,255,255,.28); border-radius:6px; background:#090b0d; }
.header-button { height:48px; }
.square-button { width:48px; height:48px; }
.map-shell { border-width:1px; border-color:rgba(255,255,255,.28); border-radius:3px; background:#0b0d10; }
.map-scroll { background:#080a0c; }
.map-stage img { filter:invert(1) brightness(.38) contrast(1.35) grayscale(1); opacity:.92; }
.table-marker { min-width:36px; height:36px; overflow:visible; border:1px solid rgba(255,255,255,.74); border-radius:3px; background:rgba(9,11,13,.94)!important; color:#fff; text-shadow:none; box-shadow:0 4px 10px rgba(0,0,0,.32); }
.table-marker::after { position:absolute; right:-4px; bottom:-4px; width:9px; height:9px; border:2px solid #080a0c; border-radius:50%; background:#35b94a; content:""; }
.table-marker.occupied::after { background:#2869e8; }
.table-marker.reserved::after { background:#e63227; }
.table-marker.closed::after { background:#555a60; }
.table-marker.round { width:44px; height:44px; }
.table-marker:hover,.table-marker:focus-visible { border-color:#e63227; outline:1px solid #e63227; outline-offset:3px; }
.status-line { color:#8b9098; }
.sheet-backdrop { background:rgba(0,0,0,.68); backdrop-filter:blur(4px); }
.table-sheet { border:1px solid rgba(255,255,255,.16); border-radius:12px; background:#111418; color:#fff; }
.sheet-handle { background:#555a60; }
.sheet-header p { color:#8b9098; }
.icon-button.light { color:#fff; }
.status-action { border-color:rgba(255,255,255,.16); background:#0b0d10!important; }
.status-action.free { color:#35b94a; }
.status-action.occupied { color:#6f9cff; }
.status-action.reserved { color:#ff665d; }
.status-action.closed { color:#8b9098; }
.status-action.active { border-color:currentColor; }
.comment-row { border:1px solid rgba(255,255,255,.14); background:#0b0d10; color:#fff; box-shadow:none; }
@media (max-width:1180px) {
  body { background:#050607; }
  .app-shell { min-height:100dvh; padding:max(8px,env(safe-area-inset-top)) 8px calc(74px + env(safe-area-inset-bottom)); }
  .workspace { padding-top:0; }
  .mobile-titlebar { min-height:48px; }
  .mobile-titlebar h1 { font-size:17px; }
  .mobile-legend { gap:16px; padding:8px 4px 12px; }
  .map-shell { height:calc(100dvh - 164px); min-height:360px; border-radius:6px; }
  .map-stage { transform:scale(.62); margin-right:-533px; margin-bottom:-426px; }
  .table-marker { min-width:30px; height:30px; font-size:11px; }
  .table-marker.round { width:36px; height:36px; }
  .table-marker::after { width:8px; height:8px; }
  .bottom-nav { right:8px; bottom:max(8px,env(safe-area-inset-bottom)); left:8px; }
  .bottom-nav button { min-height:48px; border-radius:6px; background:rgba(9,11,13,.96); }
  .mobile-menu-panel { background:#050607; }
}

/* Restaurant statistics dashboard */
.view-statistics .workspace { grid-template-rows:auto minmax(0,1fr) auto; }
.statistics-page { padding-bottom:30px; }
.period-switch { display:flex; gap:3px; padding:3px; border:1px solid var(--line); border-radius:7px; background:#090b0d; }.period-switch button { min-height:34px; padding:0 13px; border:0; border-radius:5px; background:transparent; color:#8b9098; cursor:pointer; font-size:10px; font-weight:700; }.period-switch button.active { background:#1a1d22; color:#fff; box-shadow:inset 0 -1px 0 #e63227; }
.statistics-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:12px; }.statistics-kpis article { display:grid; min-height:118px; align-content:center; gap:5px; padding:18px; border:1px solid var(--line); border-radius:9px; background:#0b0d10; }.statistics-kpis article>span { color:#8b9098; font-size:10px; }.statistics-kpis article>strong { color:#fff; font-size:30px; line-height:1; }.statistics-kpis article>small { color:#686e76; font-size:9px; }.statistics-kpis .red-mark { display:inline!important; margin-right:4px; color:#e63227; }
.statistics-layout { display:grid; grid-template-columns:1.15fr .85fr; gap:12px; }.statistics-panel { min-width:0; padding:18px; border:1px solid var(--line); border-radius:9px; background:#0b0d10; }.statistics-panel-head { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:18px; }.statistics-panel-head h2 { margin:4px 0 0; font-size:16px; }.statistics-panel-head>small { color:#686e76; font-size:9px; }
.hall-progress-list { display:grid; gap:17px; }.hall-progress-row { display:grid; gap:8px; }.hall-progress-row>div { display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:14px; }.hall-progress-row strong { font-size:11px; }.hall-progress-row span { color:#8b9098; font-size:9px; }.hall-progress-row b { color:#fff; font-size:10px; }.hall-progress-row progress { width:100%; height:5px; overflow:hidden; border:0; border-radius:99px; background:#24272c; accent-color:#e63227; }.hall-progress-row progress::-webkit-progress-bar { background:#24272c; }.hall-progress-row progress::-webkit-progress-value { background:#e63227; }.hall-progress-row progress::-moz-progress-bar { background:#e63227; }
.traffic-chart { display:grid; height:190px; grid-template-columns:repeat(6,1fr); align-items:end; gap:9px; padding-top:24px; border-bottom:1px solid #30343a; }.traffic-column { position:relative; display:grid; height:100%; grid-template-rows:1fr auto auto; align-items:end; justify-items:center; gap:7px; }.traffic-column>span { position:absolute; top:-18px; color:#8b9098; font-size:8px; opacity:0; }.traffic-column:hover>span { opacity:1; }.traffic-column i { width:min(24px,70%); min-height:3px; border-radius:3px 3px 0 0; background:#e63227; transition:filter 160ms ease; }.traffic-column:hover i { filter:brightness(1.25); }.traffic-column small { padding-bottom:7px; color:#8b9098; font-size:8px; }
.waiter-stat-list { display:grid; gap:1px; background:var(--line-soft); }.waiter-stat-list>div { display:grid; min-height:61px; grid-template-columns:36px 1fr auto auto; align-items:center; gap:12px; padding:9px 11px; background:#0b0d10; }.waiter-stat-list .avatar { width:36px; height:36px; font-size:11px; }.waiter-stat-list p,.waiter-stat-list>div>span { display:grid; gap:3px; margin:0; }.waiter-stat-list p strong { font-size:11px; }.waiter-stat-list small { color:#8b9098; font-size:8px; }.waiter-stat-list>div>span strong { text-align:right; font-size:12px; }
.top-table-list { display:grid; gap:1px; background:var(--line-soft); }.top-table-list>div { display:grid; min-height:51px; grid-template-columns:28px 1fr auto; align-items:center; gap:9px; padding:8px 10px; background:#0b0d10; }.top-table-list b { display:grid; width:24px; height:24px; place-items:center; border:1px solid #30343a; border-radius:50%; color:#e63227; font-size:9px; }.top-table-list span { font-size:11px; }.top-table-list strong { font-size:12px; }.top-table-list small { color:#8b9098; font-size:8px; font-weight:500; }

@media (max-width:1180px) {
  .statistics-page { max-height:calc(100dvh - 122px); }.statistics-kpis { grid-template-columns:1fr 1fr; }.statistics-layout { grid-template-columns:1fr; }.statistics-panel { padding:15px; }.traffic-chart { height:170px; }.app-tabs { grid-template-columns:repeat(5,1fr); }.app-tabs button { padding-inline:2px; }
}

@media (max-width:390px) {
  .statistics-kpis { gap:7px; }.statistics-kpis article { min-height:100px; padding:13px; }.statistics-kpis article>strong { font-size:25px; }.period-switch button { padding-inline:9px; }.waiter-stat-list>div { grid-template-columns:34px 1fr auto; }.waiter-stat-list>div>span:last-child { display:none; }
}

/* Stage 1: professional hall-map visuals */
.hall-map-view { display:grid; min-width:0; min-height:0; grid-template-rows:auto auto minmax(0,1fr); gap:10px; }
.map-control-strip { display:grid; min-height:56px; grid-template-columns:auto 1fr auto; align-items:center; gap:20px; padding:8px 12px; border:1px solid rgba(255,255,255,.14); border-radius:7px; background:#0b0d10; }
.map-today { display:grid; gap:2px; padding-right:18px; border-right:1px solid rgba(255,255,255,.1); }.map-today span { color:#8b9098; font-size:9px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }.map-today strong { color:#fff; font-size:13px; }
.map-kpis { display:flex; align-items:center; gap:22px; }.map-kpis>span { display:flex; align-items:center; gap:7px; color:#8b9098; font-size:10px; white-space:nowrap; }.map-kpis strong { color:#fff; font-size:13px; }.map-kpis .status-dot { width:8px; height:8px; flex-basis:8px; border:0; }
.map-view-modes { display:flex; gap:3px; padding:3px; border:1px solid rgba(255,255,255,.12); border-radius:6px; background:#080a0c; }.map-view-modes button { min-height:30px; padding:0 11px; border:0; border-radius:4px; background:transparent; color:#686e76; font-size:10px; font-weight:700; }.map-view-modes button.active { background:#171a1f; color:#fff; box-shadow:inset 0 -1px 0 #e63227; }.map-view-modes button:disabled { cursor:default; }
.hall-label { display:grid; min-width:94px; min-height:44px; grid-template-columns:1fr auto; align-items:center; gap:9px; padding:6px 10px; }.hall-label small { display:grid; min-width:29px; height:20px; place-items:center; border-left:1px solid rgba(255,255,255,.14); color:#8b9098; font-size:9px; font-weight:700; }
.table-marker { width:38px; min-width:38px; height:38px; padding:0!important; border:1px solid rgba(255,255,255,.62); border-radius:3px; background:#090b0d!important; box-shadow:none; font-size:13px; transition:border-color 170ms ease,filter 170ms ease,opacity 170ms ease,background-color 170ms ease; }
.table-marker>span { display:grid; width:100%; height:100%; place-items:center; }
.table-marker.round { width:46px; min-width:46px; height:46px; border-radius:50%; }
.table-marker.large { width:46px; min-width:46px; height:56px; border-radius:4px; }
.table-marker::after { right:50%; bottom:-6px; width:10px; height:10px; border:2px solid #080a0c; transform:translateX(50%); }
.table-marker:hover,.table-marker:focus-visible { border-color:#fff; outline:none; filter:brightness(1.22); }
.table-marker.selected { z-index:6; outline:2px solid rgba(255,255,255,.9); outline-offset:3px; filter:brightness(1.12); }
.map-stage.has-selection .table-marker:not(.selected) { opacity:.34; }
.map-stage.has-selection .hall-label { opacity:.48; }

@media (max-width:1180px) {
  .hall-map-view { gap:7px; }
  .map-control-strip { min-height:48px; grid-template-columns:auto 1fr; gap:10px; padding:6px 8px; overflow:hidden; }
  .map-today { padding-right:10px; }.map-today strong { font-size:11px; }.map-kpis { justify-content:space-around; gap:8px; }.map-kpis>span { gap:4px; font-size:0; }.map-kpis strong { font-size:11px; }.map-view-modes { display:none; }
  .view-map .map-shell { height:calc(100dvh - 214px); }
  .table-marker { width:32px; min-width:32px; height:32px; font-size:11px; }
  .table-marker.round { width:38px; min-width:38px; height:38px; }
  .table-marker.large { width:38px; min-width:38px; height:48px; }
  .table-marker::after { width:9px; height:9px; }
  .hall-label { min-width:102px; min-height:48px; }
}

/* Shift management dashboard */
.staff-page { display:block; }
.shift-summary { display:grid; grid-template-columns:1.1fr 2fr 1.35fr; gap:1px; margin-bottom:24px; border:1px solid var(--line); border-radius:10px; overflow:hidden; background:var(--line-soft); }
.shift-summary>div { min-height:108px; padding:18px; background:#0b0d10; }
.shift-summary-head { display:grid; align-content:center; gap:6px; }.shift-summary-head span,.hall-counts>span { color:#8b9098; font-size:11px; }.shift-summary-head strong { font-size:36px; line-height:1; }
.role-stats { display:grid; grid-template-columns:repeat(3,1fr); align-items:center; gap:10px; }.role-stats div { display:grid; gap:7px; }.role-stats span { color:#8b9098; font-size:10px; }.role-stats strong { font-size:24px; }
.hall-counts { display:grid; grid-template-columns:1fr 1fr; gap:8px 16px; align-content:center; }.hall-counts>span { grid-column:1/-1; }.hall-counts div { display:flex; align-items:center; justify-content:space-between; }.hall-counts strong { font-size:11px; }.hall-counts b { color:#e63227; font-size:13px; }
.hostess-shift-card { display:grid; gap:14px; margin:0 0 26px; padding:18px; border:1px solid var(--line); border-radius:10px; background:#0b0d10; color:#fff; }
.hostess-shift-head { display:flex; align-items:center; justify-content:space-between; gap:14px; padding-bottom:13px; border-bottom:1px solid var(--line-soft); }.hostess-shift-head h2 { margin:5px 0 0; font-size:19px; }.hostess-count { display:grid; width:32px; height:32px; flex:0 0 32px; place-items:center; border-radius:50%; background:rgba(230,50,39,.12); color:#ff6b63; font-size:12px; font-weight:800; }
.hostess-current { display:grid; gap:9px; }.hostess-current>span { color:#8b9098; font-size:10px; font-weight:700; }.hostess-current>p,.hostess-readonly,.hostess-empty { margin:0; color:#8b9098; font-size:11px; line-height:1.5; }
.hostess-chips { display:flex; flex-wrap:wrap; gap:7px; }.hostess-chips>span { display:flex; min-height:32px; align-items:center; gap:7px; padding:4px 10px 4px 5px; border:1px solid #30343a; border-radius:99px; background:#111418; color:#f3f4f5; font-size:11px; }.hostess-chips i { display:grid; width:22px; height:22px; place-items:center; border-radius:50%; background:rgba(230,50,39,.14); color:#fff; font-size:9px; font-style:normal; font-weight:800; }
.hostess-picker { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; max-height:224px; overflow-y:auto; padding:1px; overscroll-behavior:contain; scrollbar-color:#444 transparent; }.hostess-option { display:grid; min-width:0; min-height:54px; grid-template-columns:20px 34px 1fr; align-items:center; gap:9px; padding:8px 10px; border:1px solid #292d32; border-radius:7px; background:#111418; color:#fff; cursor:pointer; }.hostess-option:has(input:checked) { border-color:rgba(230,50,39,.72); background:rgba(230,50,39,.07); }.hostess-option input { width:18px; height:18px; margin:0; accent-color:#e63227; }.hostess-avatar { display:grid; width:34px; height:34px; place-items:center; border:1px solid #353a40; border-radius:50%; color:#fff; font-size:11px; font-weight:800; }.hostess-option>span:last-child { display:grid; min-width:0; gap:3px; }.hostess-option strong { overflow:hidden; color:#fff; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }.hostess-option small { color:#8b9098; font-size:9px; }
.hostess-save { min-height:44px; justify-self:start; padding:0 18px; border:1px solid #e63227; border-radius:6px; background:#e63227; color:#fff; cursor:pointer; font:inherit; font-size:11px; font-weight:800; }.hostess-save:disabled { cursor:not-allowed; opacity:.45; }.hostess-readonly { padding:10px 12px; border-left:2px solid #555a60; background:#111418; }
.hostess-dialog-note { margin:16px 0; color:#8b9098; font-size:11px; line-height:1.5; }
.staff-subheading { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin:4px 0 14px; }.staff-subheading h2 { margin:5px 0 0; font-size:19px; }.staff-subheading>span { color:#8b9098; font-size:10px; }.staff-list-heading { margin-top:28px; }
.hall-staff-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.hall-staff-card { position:relative; display:grid; min-height:168px; align-content:start; gap:14px; padding:16px; border:1px solid var(--line); border-radius:9px; background:#0b0d10; color:#fff; cursor:pointer; text-align:left; transition:border-color 150ms ease,background-color 150ms ease; }.hall-staff-card:hover { border-color:rgba(230,50,39,.65); background:#111418; }
.hall-card-head { display:grid; grid-template-columns:27px 1fr 24px; align-items:center; gap:8px; padding-bottom:12px; border-bottom:1px solid var(--line-soft); }.hall-home-icon { display:grid; width:27px; height:27px; place-items:center; border:1px solid rgba(230,50,39,.45); border-radius:6px; color:#e63227; font-size:17px; }.hall-card-head strong { font-size:14px; }.hall-card-head b { display:grid; width:24px; height:24px; place-items:center; border-radius:50%; background:rgba(230,50,39,.1); color:#e63227; font-size:10px; }
.hall-card-people { display:grid; gap:8px; }.hall-card-people span { display:flex; align-items:center; gap:8px; font-size:11px; }.hall-card-people i { display:grid; width:24px; height:24px; place-items:center; border:1px solid #303030; border-radius:50%; color:#fff; font-size:9px; font-style:normal; }
.hall-card-empty { display:grid; min-height:62px; place-items:center; align-content:center; gap:5px; color:#555a60; text-align:center; }.hall-card-empty>span { font-size:22px; }.hall-card-empty small { color:#8b9098; font-size:9px; }
.hall-card-arrow,.staff-card-arrow { position:absolute; right:13px; bottom:10px; color:#555a60; font-size:20px; }
.staff-card-button { position:relative; width:100%; color:#fff; font:inherit; text-align:left; cursor:pointer; }.staff-card-button:hover { border-color:rgba(230,50,39,.65); background:#111418; }.staff-card-button .shift-status { margin-right:22px; }.staff-empty { display:grid; gap:7px; }
.employee-dialog { width:min(460px,100%); }.employee-profile { display:flex; align-items:center; gap:15px; margin:20px 0; padding-bottom:18px; border-bottom:1px solid var(--line-soft); }.avatar.large { width:56px; height:56px; flex:0 0 56px; font-size:18px; }.employee-profile>div { display:grid; gap:8px; }.employee-assignment { display:grid; gap:7px; padding:14px; border:1px solid var(--line-soft); border-radius:7px; }.employee-assignment span { color:#8b9098; font-size:10px; }
.employee-role-field { display:grid; gap:7px; margin-top:12px; color:#8b9098; font-size:10px; font-weight:700; }.employee-role-field select { width:100%; min-height:44px; padding:9px 11px; border:1px solid var(--line); border-radius:6px; outline:0; background:#0b0d10; color:#fff; font:inherit; }.employee-role-field select:focus { border-color:#e63227; }
.role-badge { display:inline-flex!important; width:max-content; align-items:center; gap:6px!important; padding:3px 7px; border:1px solid #30343a; border-radius:99px; color:#dfe2e7!important; font-size:9px!important; font-weight:700; }.role-badge i { color:#fff; font-size:10px; font-style:normal; }.role-badge.waiter { border-color:rgba(230,50,39,.42); }.role-badge.hostess { border-color:rgba(40,105,232,.42); }.role-badge.manager { border-color:rgba(255,255,255,.24); }
.employee-assignment small { min-height:0; color:#8b9098; font-size:9px; }.employee-shift-toggle { display:flex; align-items:center; gap:11px; margin-top:12px; padding:12px; border:1px solid var(--line-soft); border-radius:7px; cursor:pointer; }.employee-shift-toggle input { width:18px; height:18px; accent-color:#35b94a; }.employee-shift-toggle>span { display:grid; gap:4px; }.employee-shift-toggle strong { color:#fff; font-size:11px; }.employee-shift-toggle small { color:#8b9098; font-size:9px; }

@media (max-width:1100px) and (min-width:901px) {
  .hall-staff-grid { grid-template-columns:1fr 1fr; }
  .shift-summary { grid-template-columns:1fr 2fr; }.hall-counts { grid-column:1/-1; }
}

@media (max-width:1180px) {
  .shift-summary { grid-template-columns:1fr; }.shift-summary>div { min-height:88px; }.role-stats { grid-template-columns:repeat(3,1fr); }.hall-staff-grid { grid-template-columns:1fr 1fr; }.hall-staff-card { min-height:150px; }.staff-subheading { align-items:center; }.staff-subheading>span { display:none; }
  .employee-dialog { width:100%; max-height:82dvh; }
}

@media (max-width:430px) {
  .staff-page { padding-bottom:calc(92px + var(--safe-bottom)); scroll-padding-bottom:calc(92px + var(--safe-bottom)); }
  .hostess-shift-card { gap:12px; padding:14px; }.hostess-picker { grid-template-columns:1fr; max-height:232px; }.hostess-save { width:100%; }
  .hall-staff-grid { grid-template-columns:1fr; }.hall-staff-card { min-height:132px; }.role-stats { gap:5px; }.role-stats strong { font-size:21px; }
}

/* Commercial-grade sidebar */
.sidebar { min-height:100vh; padding:24px 12px 16px; border-right:1px solid #242424; background:#090909; box-shadow:none; }
.brand { display:flex; min-height:124px; align-items:flex-start; justify-content:center; padding:0 8px; }
.brand-logo { display:block; width:160px; max-width:100%; height:auto; object-fit:contain; mix-blend-mode:screen; clip-path:inset(2px 0 0); }
.nav-block { margin-top:32px; }
.nav-list { gap:12px; }
.nav-item { position:relative; min-height:48px; padding:7px 12px; border:0; border-radius:12px; background:transparent; color:#fff; font-size:13px; font-weight:600; transition:background-color 150ms ease,color 150ms ease; }
.nav-item::before { position:absolute; top:10px; bottom:10px; left:0; width:3px; border-radius:0 3px 3px 0; background:#e63227; content:""; opacity:0; transition:opacity 150ms ease; }
.nav-item.active { border:0; background:rgba(230,50,39,.08); color:#fff; }
.nav-item.active::before { opacity:1; }
.nav-item:hover { background:#141414; color:#fff; }
.nav-icon { width:28px; height:28px; flex-basis:28px; border:0; border-radius:0; background:transparent; color:#fff; transition:color 150ms ease; }
.nav-icon svg { width:20px; height:20px; stroke-width:2; }
.nav-item.active .nav-icon,.nav-item:hover .nav-icon { color:#e63227; }
.sidebar-section { margin-top:24px; padding-top:22px; border-top:1px solid #242424; }
.sidebar-label { margin:0 8px 17px; color:#8b9098; font-size:10px; font-weight:700; letter-spacing:.09em; }
.legend-list { gap:15px; padding:0 12px; }
.legend-list span { gap:11px; color:#fff; font-size:12px; font-weight:500; }
.legend-list .status-dot { width:10px; height:10px; flex-basis:10px; border:0; box-shadow:none; }
.quick-actions { gap:10px; }
.quick-actions .sidebar-label { margin-bottom:3px; }
.outline-action { min-height:44px; padding:0 12px; border:1px solid #303030; border-radius:8px; background:#111; color:#fff; font-size:11px; font-weight:600; transition:background-color 150ms ease,border-color 150ms ease; }
.outline-action svg { width:18px; height:18px; color:#e63227; stroke-width:2; }
.outline-action:hover { border-color:#e63227; background:#171717; }
.sidebar-footer { display:grid; grid-template-columns:1fr auto; align-items:end; gap:14px; margin-top:auto; padding:22px 9px 6px; border-top:1px solid #242424; color:#8b9098; }
.footer-clock { display:grid; gap:5px; }
.footer-clock strong { color:#fff; font-size:24px; font-weight:700; letter-spacing:-.03em; line-height:1; }
.footer-clock span { font-size:10px; }
.footer-online { display:flex; align-items:center; gap:7px; padding-bottom:1px; color:#8b9098; font-size:10px; }
.online-dot { width:8px; height:8px; flex:0 0 8px; background:#35b94a; box-shadow:none; }
.mobile-brand { min-height:105px; padding-top:0; }

@media (max-width:1180px) {
  .sidebar { display:none!important; }
  .mobile-menu-panel { background:#090909; }
  .mobile-menu-panel .brand { display:flex; }
  .mobile-menu-panel .nav-list { gap:10px; }
}

/* Interactive hall labels and presentation-only hall card */
.hall-labels { position:absolute; inset:0; z-index:2; pointer-events:none; }
.hall-label { position:absolute; min-width:82px; min-height:38px; padding:6px 14px; border:1px solid transparent; border-radius:4px; background:#090b0d; color:#fff; cursor:pointer; font:700 17px/1 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; text-align:center; transform:translate(-50%,-50%); pointer-events:auto; transition:color 160ms ease,border-color 160ms ease,background-color 160ms ease; }
.hall-label::after { position:absolute; right:14px; bottom:5px; left:14px; height:1px; background:#e63227; content:""; opacity:0; transform:scaleX(.45); transition:opacity 160ms ease,transform 160ms ease; }
.hall-label:hover,.hall-label:focus-visible { border-color:rgba(230,50,39,.65); color:#ff6259; outline:none; }
.hall-label:hover::after,.hall-label:focus-visible::after { opacity:1; transform:scaleX(1); }
.tables-layer { z-index:3; pointer-events:none; }
.tables-layer .table-marker { pointer-events:auto; }
.hall-modal-backdrop { position:fixed; inset:0; z-index:50; display:grid; place-items:center; padding:20px; background:rgba(0,0,0,.76); }
.hall-modal { width:min(480px,100%); padding:24px; border:1px solid rgba(255,255,255,.2); border-radius:8px; background:#0b0d10; color:#fff; box-shadow:none; }
.hall-sheet-handle { display:none; }
.hall-modal-header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding-bottom:18px; border-bottom:1px solid rgba(255,255,255,.12); }
.hall-modal-header h2 { margin:5px 0 0; font-size:27px; letter-spacing:-.02em; }
.hall-modal-close { width:40px; height:40px; border:1px solid rgba(255,255,255,.18); border-radius:4px; background:#111418; color:#fff; cursor:pointer; font-size:25px; font-weight:300; line-height:1; }
.hall-modal-close:hover { border-color:#e63227; color:#ff6259; }
.hall-modal-section { padding:20px 0; }
.hall-section-title { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.hall-section-title h3 { margin:0; font-size:14px; font-weight:700; }
.hall-section-title>span { display:grid; width:25px; height:25px; place-items:center; border:1px solid rgba(255,255,255,.16); border-radius:50%; color:#8b9098; font-size:11px; }
.hall-waiter-list { display:grid; gap:1px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.12); }
.hall-waiter { display:flex; align-items:center; gap:12px; min-height:62px; padding:10px 12px; background:#0b0d10; }
.hall-avatar { display:grid; width:38px; height:38px; flex:0 0 38px; place-items:center; border:1px solid rgba(230,50,39,.55); border-radius:50%; color:#fff; font-size:13px; font-weight:800; }
.hall-waiter>div { display:grid; gap:4px; }.hall-waiter span { color:#8b9098; font-size:11px; }
.hall-remove-waiter { width:32px; height:32px; margin-left:auto; border:1px solid rgba(255,255,255,.14); border-radius:4px; background:transparent; color:#8b9098; cursor:pointer; font-size:18px; }
.hall-remove-waiter:hover { border-color:#e63227; color:#ff6259; }
.hall-empty { display:grid; min-height:160px; place-items:center; align-content:center; gap:7px; padding:24px; border:1px solid rgba(255,255,255,.12); color:#fff; text-align:center; }
.hall-empty-icon { display:grid; width:42px; height:42px; place-items:center; border:1px solid rgba(255,255,255,.2); border-radius:50%; color:#e63227; font-size:23px; }
.hall-empty p { max-width:240px; margin:0; color:#8b9098; font-size:12px; line-height:1.5; }
.hall-add-waiter { width:100%; min-height:46px; border:1px solid #e63227; border-radius:5px; background:transparent; color:#fff; cursor:pointer; font-weight:700; transition:background-color 160ms ease; }
.hall-add-waiter:hover,.hall-add-waiter:focus-visible { background:#541511; outline:none; }
.hall-picker { padding-top:18px; border-top:1px solid rgba(255,255,255,.12); }
.hall-picker-list { display:grid; gap:1px; max-height:250px; overflow:auto; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.12); }
.hall-picker-item { display:grid; min-height:58px; grid-template-columns:20px 38px 1fr; align-items:center; gap:11px; padding:9px 12px; background:#0b0d10; cursor:pointer; }
.hall-picker-item:hover { background:#111418; }
.hall-picker-item input { width:17px; height:17px; accent-color:#e63227; }
.hall-picker-item>span:last-child { display:grid; gap:3px; }.hall-picker-item small { color:#8b9098; font-size:10px; }
.hall-save-waiters { width:100%; min-height:46px; margin-top:12px; border:1px solid #e63227; border-radius:5px; background:#e63227; color:#fff; cursor:pointer; font-weight:700; }
.hall-save-waiters:hover { background:#c9271e; }
.hall-empty.compact { min-height:110px; }

@media (max-width:1180px) {
  .hall-label { min-width:88px; min-height:44px; font-size:19px; }
  .hall-modal-backdrop { align-items:end; padding:0; }
  .hall-modal { width:100%; max-height:82dvh; overflow:auto; padding:8px 16px calc(18px + env(safe-area-inset-bottom)); border-width:1px 0 0; border-radius:18px 18px 0 0; }
  .hall-sheet-handle { display:block; width:42px; height:4px; margin:0 auto 14px; border-radius:99px; background:#555a60; }
  .hall-add-waiter { min-height:50px; }
}

/* Mobile Telegram WebApp refinement */
@media (max-width:1180px) {
  html,body,#app { width:100%; max-width:100%; min-height:100%; overflow-x:hidden; overscroll-behavior:none; }
  body { min-height:100dvh; }
  .app-shell { width:100%; min-height:100dvh; padding:max(6px,env(safe-area-inset-top)) 8px calc(72px + env(safe-area-inset-bottom)); overflow:hidden; }
  .sidebar,.desktop-titlebar { display:none!important; }
  .workspace { width:100%; min-width:0; }
  .content-header { position:relative; z-index:8; gap:4px; background:#050607; }
  .mobile-titlebar { position:sticky; top:0; display:grid; min-height:46px; grid-template-columns:44px minmax(0,1fr) 44px; gap:6px; }
  .mobile-titlebar .icon-button { width:44px; height:44px; }
  .mobile-titlebar h1 { overflow:hidden; font-size:16px; text-overflow:ellipsis; white-space:nowrap; }
  .view-map .mobile-legend { min-height:36px; gap:14px; padding:5px 2px 9px; scrollbar-width:none; }
  .mobile-legend::-webkit-scrollbar { display:none; }
  .map-shell { width:100%; height:calc(100dvh - 164px); min-height:320px; overflow:hidden; border-radius:7px; }
  .map-scroll { width:100%; height:100%; overflow:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; touch-action:pan-x pan-y; cursor:grab; }
  .map-scroll:active { cursor:grabbing; }
  .map-stage { --touch-target-size:72px; transform:scale(.62); transform-origin:top left; will-change:transform; }
  .table-marker { min-width:30px; height:30px; touch-action:manipulation; }
  .table-marker::before { position:absolute; top:50%; left:50%; width:var(--touch-target-size); height:var(--touch-target-size); border-radius:10px; content:""; transform:translate(-50%,-50%); }
  .table-marker.round::before { border-radius:50%; }
  .table-marker.round { width:36px; height:36px; }
  .sheet-backdrop { align-items:end; padding:0; }
  .table-sheet { width:100%; max-width:none; max-height:88dvh; margin:0; padding:8px 16px calc(18px + env(safe-area-inset-bottom)); border-width:1px 0 0; border-radius:18px 18px 0 0; animation:mobile-sheet-in .22s ease-out; }
  .sheet-handle { position:sticky; top:0; z-index:2; margin-bottom:12px; }
  .status-action,.primary-action,.secondary-action,.danger-action,.form-submit { min-height:48px; }
  .section-page { width:100%; max-height:calc(100dvh - 116px); overflow-x:hidden; overflow-y:auto; -webkit-overflow-scrolling:touch; }
  .booking-card,.staff-card,.history-card,.status-table-card { max-width:100%; }
  .booking-card { min-height:78px; }
  .staff-card { grid-template-columns:44px minmax(0,1fr) auto; padding:14px; }
  .staff-card .avatar { width:44px; height:44px; }
  .history-card { grid-template-columns:60px 10px minmax(0,1fr); gap:10px; padding:14px 12px; }
  .status-transition { flex-wrap:wrap; gap:7px; }
  .bottom-nav.app-tabs { right:8px; bottom:max(6px,env(safe-area-inset-bottom)); left:8px; min-height:60px; }
  .app-tabs button { min-width:0; min-height:50px; touch-action:manipulation; }
  .form-backdrop { align-items:end; padding:0; }
  .booking-form { width:100%; max-height:92dvh; padding:18px 16px calc(18px + env(safe-area-inset-bottom)); border-width:1px 0 0; border-radius:18px 18px 0 0; }
}

@keyframes mobile-sheet-in { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }

@media (max-width:380px) {
  .app-shell { padding-inline:6px; }
  .metric-grid { gap:7px; }
  .metric-card { min-height:92px; padding:11px; }
  .table-status-grid { grid-template-columns:1fr; }
  .section-heading h1 { font-size:21px; }
  .primary-action { padding-inline:12px; }
}

/* Local booking and staff management */
.booking-card { width:100%; color:#fff; font:inherit; text-align:left; cursor:pointer; }
.booking-card:hover { border-color:rgba(230,50,39,.65); background:#111418; }
.booking-card small { max-width:520px; overflow:hidden; color:#8b9098; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.staff-card .card-actions { grid-column:2/4; display:flex; gap:8px; margin-top:6px; }
.card-actions button { min-height:34px; padding:0 11px; border:1px solid var(--line); border-radius:5px; background:#111418; color:#fff; cursor:pointer; font-size:11px; }
.card-actions button:hover { border-color:#e63227; }
.card-actions .danger-link { color:#ff746c; }
.detail-dialog { width:min(520px,100%); }
.detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:20px 0; }
.detail-grid>span { display:grid; gap:6px; padding:12px; border:1px solid var(--line-soft); border-radius:6px; color:#8b9098; font-size:10px; }
.detail-grid strong { color:#fff; font-size:13px; overflow-wrap:anywhere; }
.detail-wide { grid-column:1/-1; }
.compact-form { width:min(460px,100%); }
.shift-toggle { display:flex!important; min-height:42px; grid-template-columns:auto 1fr; align-items:center; gap:10px; }
.shift-toggle input { width:18px!important; min-height:18px!important; accent-color:#e63227; }

@media (max-width:1180px) {
  .staff-card .card-actions { grid-column:1/-1; }
  .card-actions button { min-height:44px; flex:1; }
  .detail-grid { grid-template-columns:1fr; }
  .detail-wide { grid-column:auto; }
}

/* Extended frontend sections */
.view-statuses .workspace,.view-bookings .workspace,.view-staff .workspace,.view-history .workspace { grid-template-rows:auto minmax(0,1fr) auto; }
.section-page { min-width:0; overflow:auto; padding:8px 2px 28px; }
.section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:24px; }
.section-heading h1 { margin:5px 0 0; font-size:30px; letter-spacing:-.03em; }
.eyebrow { color:#e63227; font-size:10px; font-weight:800; letter-spacing:.16em; }
.section-counter { padding:8px 12px; border:1px solid var(--line); border-radius:99px; color:var(--muted); font-size:12px; }
.metric-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.metric-card { position:relative; display:grid; min-height:128px; grid-template-columns:auto 1fr; align-content:center; gap:5px 12px; padding:20px; overflow:hidden; border:1px solid var(--line); border-radius:10px; background:#0b0d10; }
.metric-card::after { position:absolute; right:-25px; bottom:-35px; width:100px; height:100px; border-radius:50%; background:currentColor; content:""; filter:blur(40px); opacity:.14; }
.metric-card strong { grid-column:2; font-size:32px; line-height:1; }
.metric-card>span:last-child { grid-column:2; color:var(--muted); font-size:12px; }
.metric-card.free { color:#35b94a; }.metric-card.held { color:#a78bfa; }.metric-card.booking_soon { color:#f07835; }.metric-card.occupied { color:#2869e8; }.metric-card.reserved { color:#e63227; }.metric-card.closed { color:#555a60; }
.panel-card { border:1px solid var(--line); border-radius:10px; background:#0b0d10; }
.panel-card-title { display:flex; align-items:center; justify-content:space-between; padding:18px 20px; border-bottom:1px solid var(--line-soft); }
.panel-card-title h2 { margin:0; font-size:17px; }.panel-card-title span { color:var(--muted); font-size:11px; }
.table-status-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:1px; background:var(--line-soft); }
.status-table-card { position:relative; display:grid; grid-template-columns:auto 1fr; gap:3px 9px; min-height:76px; align-content:center; padding:14px; border:0; background:#0b0d10; color:#fff; cursor:pointer; text-align:left; }
.status-table-card:hover { background:#111418; }.status-table-card .status-dot { grid-row:1/3; align-self:center; }.status-table-card small { color:var(--muted); }.card-arrow { position:absolute; right:12px; top:25px; color:#555a60; font-size:22px; }
.status-table-card.has-reservation { min-height:98px; border-left:2px solid #e63227; background:linear-gradient(135deg,rgba(230,50,39,.12),#0b0d10 58%); }
.status-table-card.has-reservation .status-dot { grid-row:1/4; }
.status-booking-summary { display:grid; grid-column:2; gap:3px; min-width:0; padding-top:5px; border-top:1px solid rgba(230,50,39,.24); }
.status-booking-summary b { overflow:hidden; color:#fff; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.status-booking-summary span { color:#ffaaa5; font-size:9px; font-weight:700; }
.status-table-card.has-reservation .card-arrow { top:50%; transform:translateY(-50%); }
.primary-action,.secondary-action,.danger-action { min-height:44px; padding:0 18px; border:1px solid transparent; border-radius:6px; color:#fff; cursor:pointer; font-weight:700; }
.primary-action { background:#e63227; }.primary-action:hover { background:#fa4135; }
.secondary-action { border-color:var(--line); background:#0b0d10; }.danger-action { border-color:rgba(230,50,39,.55); background:transparent; color:#ff6a62; }
.primary-action:disabled,.secondary-action:disabled,.danger-action:disabled,.hall-save-waiters:disabled,button[aria-busy="true"] { cursor:wait; opacity:.62; }
.date-strip { display:flex; gap:10px; margin-bottom:16px; overflow:auto; }.date-chip { display:grid; min-width:150px; gap:3px; padding:13px 16px; border:1px solid var(--line); border-radius:8px; background:#0b0d10; color:#fff; text-align:left; }.date-chip span { color:var(--muted); font-size:11px; }.date-chip.active { border-color:#e63227; }
.date-picker { display:grid; min-width:190px; gap:4px; padding:8px 12px; border:1px solid var(--line); border-radius:8px; color:var(--muted); font-size:10px; }.date-picker input { border:0; outline:0; background:transparent; color:#fff; color-scheme:dark; font:inherit; }
.booking-list,.history-list { display:grid; gap:10px; }.booking-card { display:grid; grid-template-columns:70px 2px 1fr auto 14px; align-items:center; gap:18px; min-height:86px; padding:16px 20px; border:1px solid var(--line); border-radius:9px; background:#0b0d10; }.booking-card time { font-size:22px; font-weight:800; }.booking-line { width:2px; height:40px; background:#e63227; }.booking-card>div { display:grid; gap:4px; }.booking-card>div span { color:var(--muted); font-size:12px; }.booking-guests { text-align:right; }.booking-guests strong { font-size:20px; }.empty-state { padding:50px; border:1px dashed var(--line); color:var(--muted); text-align:center; }
.staff-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }.staff-card { display:grid; grid-template-columns:48px 1fr auto; align-items:center; gap:14px; padding:18px; border:1px solid var(--line); border-radius:9px; background:#0b0d10; }.avatar { display:grid; width:48px; height:48px; place-items:center; border:1px solid rgba(230,50,39,.45); border-radius:50%; background:rgba(230,50,39,.08); color:#fff; font-weight:800; }.staff-card>div { display:grid; gap:4px; }.staff-card>div span { color:var(--muted); font-size:12px; }.shift-status { color:var(--muted); font-size:11px; }.shift-status i { display:inline-block; width:7px; height:7px; margin-right:6px; border-radius:50%; background:#555a60; }.shift-status.active { color:#35b94a; }.shift-status.active i { background:#35b94a; }.info-banner { display:grid; gap:5px; margin-top:18px; padding:18px; border-left:2px solid #e63227; background:#0b0d10; }.info-banner span { color:var(--muted); font-size:12px; }
.staff-card small { color:#8b9098; font-size:10px; }
.history-card { display:grid; grid-template-columns:72px 12px 1fr; gap:16px; padding:18px; border:1px solid var(--line); border-radius:9px; background:#0b0d10; }.history-card time { display:grid; color:var(--muted); font-size:11px; }.history-card time strong { color:#fff; font-size:18px; }.history-rail { width:8px; height:8px; margin-top:6px; border:2px solid #e63227; border-radius:50%; box-shadow:0 0 0 5px rgba(230,50,39,.08); }.status-transition { display:flex; align-items:center; gap:12px; margin-top:10px; }.status-transition span { display:inline-flex; align-items:center; gap:7px; color:var(--muted); font-size:12px; }.status-transition b { color:#e63227; }
.form-backdrop { position:fixed; inset:0; z-index:40; display:grid; place-items:center; padding:18px; background:rgba(0,0,0,.76); backdrop-filter:blur(5px); }.booking-form { width:min(620px,100%); max-height:calc(100dvh - 32px); overflow:auto; padding:22px; border:1px solid var(--line); border-radius:12px; background:#111418; color:#fff; }.booking-form h2 { margin:5px 0 0; }.form-grid,.table-meta-grid { display:grid; grid-template-columns:1fr 1fr; gap:13px; margin-top:22px; }.form-grid label,.table-meta-grid label { display:grid; gap:7px; color:var(--muted); font-size:11px; font-weight:700; }.form-grid input,.form-grid select,.form-grid textarea,.table-meta-grid input,.table-meta-grid select,.table-meta-grid textarea { width:100%; min-height:42px; padding:9px 11px; border:1px solid var(--line); border-radius:6px; outline:0; background:#0b0d10; color:#fff; font:inherit; }.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,.table-meta-grid input:focus,.table-meta-grid select:focus,.table-meta-grid textarea:focus { border-color:#e63227; }.form-wide,.meta-wide { grid-column:1/-1; }.form-submit { width:100%; margin-top:18px; }.table-meta-grid { margin-top:16px; }.context-actions { display:grid; grid-template-columns:repeat(2,1fr); gap:9px; margin-top:14px; }.context-actions>:only-child { grid-column:1/-1; }
.table-sheet { max-height:calc(100dvh - 32px); overflow:auto; }
.reservation-fields { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:12px; }.reservation-fields label { display:grid; gap:6px; color:var(--muted); font-size:11px; }.reservation-fields input { min-height:42px; padding:9px 11px; border:1px solid var(--line); border-radius:6px; outline:0; background:#0b0d10; color:#fff; }.reservation-fields input:focus { border-color:#e63227; }

@media (max-width:1180px) {
  .content-header .mobile-legend { display:none; }.view-map .content-header .mobile-legend { display:flex; }
  .view-statuses .map-shell,.view-bookings .map-shell,.view-staff .map-shell,.view-history .map-shell { height:auto; }
  .section-page { max-height:calc(100dvh - 122px); padding:10px 1px 22px; }.section-heading { align-items:center; margin-bottom:17px; }.section-heading h1 { font-size:24px; }.section-heading .section-counter { display:none; }
  .metric-grid { grid-template-columns:1fr 1fr; }.metric-card { min-height:100px; padding:14px; }.metric-card strong { font-size:25px; }.table-status-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .staff-grid { grid-template-columns:1fr; }.booking-card { grid-template-columns:58px 2px 1fr 12px; gap:10px; padding:13px; }.booking-card time { font-size:18px; }.booking-guests { display:none!important; }
  .app-tabs { grid-template-columns:repeat(4,1fr); gap:2px; padding:5px; border:1px solid var(--line); border-radius:10px; background:rgba(5,6,7,.96); }.app-tabs button { display:grid; min-height:52px; gap:2px; padding:5px; border:0; background:transparent; color:#8b9098; font-size:10px; }.app-tabs button svg { width:19px; height:19px; margin:auto; color:currentColor; }.app-tabs button.active { background:#111418; color:#e63227; }
  .form-grid,.table-meta-grid,.reservation-fields { grid-template-columns:1fr; }.form-wide,.meta-wide { grid-column:auto; }.booking-form { padding:18px; }.context-actions { grid-template-columns:1fr; }
}

/* Keep hall load badges above legacy hall-label rules. */
.hall-label { display:grid; min-width:94px; min-height:44px; grid-template-columns:1fr auto; align-items:center; gap:9px; padding:6px 10px; }
.hall-label small { display:grid; min-width:29px; height:20px; place-items:center; border-left:1px solid rgba(255,255,255,.14); color:#8b9098; font-size:9px; font-weight:700; }
@media (max-width:1180px) { .hall-label { min-width:102px; min-height:48px; } }

@media (max-width:1180px) {
  .bottom-nav.app-tabs { grid-template-columns:repeat(5,minmax(0,1fr)); }
  .bottom-nav.app-tabs { z-index:24; }
  .bottom-nav.app-tabs button { min-width:0; padding-inline:2px; }
}

/* Stage 2: interactive table drawer */
.sheet-backdrop.visible { align-items:stretch; justify-items:end; background:rgba(0,0,0,.58); backdrop-filter:none; }
.table-drawer { width:min(390px,calc(100vw - 24px)); max-height:100dvh; height:100dvh; margin:0; padding:22px 20px 94px; border-width:0 0 0 1px; border-radius:0; background:#0b0d10; box-shadow:none; animation:drawer-in 180ms ease; }
.table-drawer.live-refresh { animation:none!important; }
.table-drawer .sheet-handle { display:none; }.table-drawer .sheet-header h2 { margin-top:5px; }.table-drawer .sheet-header { padding-bottom:16px; border-bottom:1px solid var(--line-soft); }
.drawer-status { display:flex; align-items:center; gap:12px; margin-top:18px; padding:14px; border:1px solid var(--line-soft); border-left:2px solid currentColor; border-radius:7px; background:#090b0d; }.drawer-status.free { color:#35b94a; }.drawer-status.held { color:#a78bfa; }.drawer-status.booking_soon { color:#f07835; }.drawer-status.occupied { color:#2869e8; }.drawer-status.reserved { color:#e63227; }.drawer-status.closed { color:#555a60; }.drawer-status>div { display:grid; gap:4px; }.drawer-status span { color:#8b9098; font-size:9px; }.drawer-status strong { color:#fff; font-size:14px; }
.drawer-facts { display:grid; grid-template-columns:1fr 1fr; gap:1px; margin-top:14px; border:1px solid var(--line-soft); background:var(--line-soft); }.drawer-facts>div { display:grid; min-height:62px; align-content:center; gap:5px; padding:10px 12px; background:#0b0d10; }.drawer-facts .wide { grid-column:1/-1; }.drawer-facts span { color:#8b9098; font-size:9px; }.drawer-facts strong { color:#fff; font-size:12px; overflow-wrap:anywhere; }
.drawer-section { margin-top:18px; }.drawer-section h3,.seat-guests-form h3 { margin:0 0 10px; font-size:12px; }.drawer-status-grid { gap:7px; }.drawer-status-grid .status-action { min-height:42px; font-size:11px; }
.drawer-actions { display:grid; gap:8px; margin-top:18px; }.drawer-actions button { min-height:46px; }
.seat-guests-form { display:grid; gap:12px; margin-top:18px; padding:15px; border:1px solid rgba(230,50,39,.38); border-radius:7px; background:#090b0d; }.drawer-section-title { display:flex; align-items:center; justify-content:space-between; }.drawer-section-title h3 { margin:0; }.drawer-section-title button { width:30px; height:30px; border:0; background:transparent; color:#8b9098; cursor:pointer; font-size:20px; }.seat-guests-form label { display:grid; gap:6px; color:#8b9098; font-size:10px; }.seat-guests-form input,.seat-guests-form textarea { width:100%; min-height:42px; padding:9px 11px; border:1px solid var(--line); border-radius:6px; outline:0; background:#111418; color:#fff; font:inherit; }.seat-guests-form input:focus,.seat-guests-form textarea:focus { border-color:#e63227; }
.table-quick-bar { position:fixed; right:410px; bottom:18px; left:280px; z-index:22; display:flex; min-height:54px; align-items:center; justify-content:center; gap:7px; padding:7px; border:1px solid rgba(255,255,255,.18); border-radius:8px; background:#0b0d10; }.table-quick-bar>span { margin-right:8px; color:#fff; font-size:11px; font-weight:800; }.table-quick-bar button { min-height:38px; padding:0 12px; border:1px solid #30343a; border-radius:5px; background:#111418; color:#fff; cursor:pointer; font-size:10px; font-weight:700; }.table-quick-bar button:first-of-type { border-color:#e63227; }.table-quick-bar button:hover { border-color:#e63227; background:#171a1f; }
.table-marker .table-extra { position:absolute; top:-18px; left:50%; display:flex; width:max-content; min-width:27px; height:15px; align-items:center; justify-content:center; padding:0 4px; border:1px solid #30343a; border-radius:4px; background:#0b0d10; color:#fff; font-size:8px; font-weight:800; line-height:1; transform:translateX(-50%); }
.table-marker.occupied .table-extra { border-color:rgba(40,105,232,.8); color:#8bb0ff; }
.table-marker.reserved .table-extra { border-color:rgba(230,50,39,.8); color:#ff8b84; }
.table-marker.has-future-booking .table-extra { border-color:rgba(53,185,74,.7); color:#c9ffd1; }
.table-marker.has-booking { z-index:4; }
.table-marker.has-booking:not(.occupied) { border:2px solid #f0443a; background:#1b0909!important; box-shadow:0 0 0 2px rgba(230,50,39,.32),0 0 15px rgba(230,50,39,.58); }
.table-marker.has-booking:not(.occupied)::after { background:#f0443a; box-shadow:0 0 7px rgba(255,72,62,.95); }
.table-marker.has-booking .table-extra { top:-24px; min-width:48px; height:20px; padding:0 7px; border:1px solid #ff746c; border-radius:5px; background:#d92d25; color:#fff; box-shadow:0 3px 9px rgba(0,0,0,.72),0 0 8px rgba(230,50,39,.5); font-size:10px; letter-spacing:.01em; }
.table-marker .booking-lock { position:absolute; right:-9px; bottom:-9px; display:grid; width:20px; height:20px; place-items:center; border:1px solid #ffaaa5; border-radius:50%; background:#390b09; box-shadow:0 2px 7px rgba(0,0,0,.7); font-size:10px; line-height:1; }
.table-marker.large .table-extra,.table-marker.round .table-extra { top:-18px; }
.table-marker.large.has-booking .table-extra,.table-marker.round.has-booking .table-extra { top:-24px; }
.table-marker.free:not(.has-booking) { border:2px solid #55d96a; background:linear-gradient(145deg,#209941,#0d5b20)!important; box-shadow:inset 0 1px 0 rgba(255,255,255,.19),0 3px 8px rgba(0,0,0,.38),0 0 0 2px rgba(53,185,74,.25),0 0 13px rgba(53,185,74,.4); }
.table-marker.occupied { border:2px solid #74a2ff; background:linear-gradient(145deg,#337df0,#1749a7)!important; box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 3px 8px rgba(0,0,0,.4),0 0 0 2px rgba(40,105,232,.28),0 0 14px rgba(40,105,232,.5); }
.table-marker.reserved { border:2px solid #ff746c; background:linear-gradient(145deg,#d23b32,#8e1c17)!important; box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 3px 8px rgba(0,0,0,.4),0 0 0 2px rgba(230,50,39,.28),0 0 14px rgba(230,50,39,.5); }
.table-marker.held { border:2px solid #a78bfa; background:linear-gradient(145deg,#7046c8,#3f237c)!important; box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 3px 8px rgba(0,0,0,.4),0 0 0 2px rgba(139,92,246,.25); }
.table-marker.closed { border-color:#6c727a; background:#2e3237!important; box-shadow:none; }
.table-marker.selected { outline-color:rgba(255,255,255,.9); }
@keyframes drawer-in { from { opacity:0; transform:translateX(28px); } to { opacity:1; transform:translateX(0); } }

@media (max-width:1180px) {
  .sheet-backdrop.visible { align-items:end; justify-items:stretch; }
  .table-drawer { width:100%; height:auto; max-height:84dvh; margin:0; padding:8px 16px calc(150px + env(safe-area-inset-bottom)); border-width:1px 0 0; border-radius:18px 18px 0 0; animation:mobile-sheet-in 180ms ease; }
  .table-drawer .sheet-handle { display:block; position:static; }
  .drawer-facts { grid-template-columns:1fr 1fr; }
  .table-quick-bar { right:8px; bottom:calc(72px + env(safe-area-inset-bottom)); left:8px; z-index:21; min-height:58px; overflow-x:auto; justify-content:flex-start; }.table-quick-bar>span { display:none; }.table-quick-bar button { min-width:max-content; min-height:44px; flex:1; }
  .table-marker .table-extra { top:-20px; min-width:31px; height:18px; padding-inline:5px; font-size:9px; }
  .table-marker.has-booking .table-extra { top:-27px; min-width:54px; height:22px; padding-inline:7px; font-size:11px; }
  .table-marker.large.has-booking .table-extra,.table-marker.round.has-booking .table-extra { top:-27px; }
}

/* Tablet is an intentional touch layout, not a compressed desktop sidebar. */
@media (min-width:901px) and (max-width:1180px) {
  .app-shell { padding-inline:16px; }
  .workspace { width:min(100%,1120px); margin-inline:auto; }
  .mobile-titlebar { width:100%; }
  .map-shell { min-height:calc(100dvh - 156px); }
  .map-scroll { padding:18px; }
  .table-sheet { width:min(680px,100%); margin-inline:auto; border-right:1px solid var(--line); border-left:1px solid var(--line); border-radius:18px 18px 0 0; }
  .form-backdrop { align-items:flex-end; }
  .booking-form { width:min(680px,calc(100% - 32px)); max-height:88dvh; margin:0 auto; border-radius:18px 18px 0 0; }
  .bottom-nav.app-tabs { width:min(720px,calc(100% - 32px)); margin-inline:auto; }
}

@media (max-width:430px) {
  .mobile-titlebar h1 { font-size:16px; }
  .bottom-nav.app-tabs button { min-height:52px; font-size:10px; }
  .table-sheet button,
  .booking-form button,
  .section-page button { min-height:44px; }
}

@media (max-width:320px) {
  .app-shell { padding-inline:6px; }
  .bottom-nav.app-tabs { right:4px; left:4px; }
  .bottom-nav.app-tabs button { padding-inline:1px; font-size:9px; }
  .table-sheet { padding-inline:12px; }
}

.storage-error { position:fixed; top:14px; left:50%; z-index:80; display:flex; width:min(560px,calc(100% - 28px)); min-height:52px; align-items:center; justify-content:space-between; gap:14px; padding:10px 12px 10px 16px; border:1px solid rgba(230,50,39,.55); border-radius:8px; background:#111418; color:#fff; transform:translateX(-50%); }
.storage-error span { font-size:12px; font-weight:700; }
.storage-error button { min-height:44px; padding:0 14px; border:1px solid #e63227; border-radius:6px; background:transparent; color:#fff; cursor:pointer; font-size:11px; }
.storage-error button:hover { background:rgba(230,50,39,.12); }
.status-action:disabled { cursor:not-allowed; opacity:.34; filter:none!important; }
.form-error { margin:12px 0 0; padding:10px 12px; border-left:2px solid #e63227; background:rgba(230,50,39,.08); color:#ff9b95; font-size:11px; }
.reservation-notice { display:grid; gap:5px; margin-top:12px; padding:12px 14px; border:1px solid rgba(59,130,246,.45); border-radius:8px; background:rgba(37,99,235,.09); color:#dbeafe; }
.reservation-notice.warning { border-color:rgba(245,158,11,.55); background:rgba(245,158,11,.10); color:#fde68a; }
.reservation-notice.danger { border-color:rgba(239,68,68,.6); background:rgba(239,68,68,.11); color:#fecaca; }
.reservation-notice strong { font-size:12px; }.reservation-notice span { font-size:11px; line-height:1.45; }
.seating-confirmation-backdrop { z-index:90; }.seating-confirmation-dialog { width:min(460px,100%); }
.seating-confirmation-dialog>p { margin:16px 0; color:#d5d7dc; font-size:13px; line-height:1.55; }
.booking-state { color:#8b9098; font-size:9px; font-weight:700; text-transform:uppercase; }
.booking-card.completed,.booking-card.cancelled { opacity:.62; }
.booking-detail-state { display:flex; min-height:44px; align-items:center; color:#8b9098; font-size:11px; font-weight:700; }
.responsible-waiters { display:flex!important; flex-wrap:wrap; gap:6px 12px!important; }
.responsible-waiters i { color:#fff; font-size:11px; font-style:normal; font-weight:600; }
.seat-guests-form select { width:100%; min-height:44px; padding:9px 11px; border:1px solid var(--line); border-radius:6px; outline:0; background:#111418; color:#fff; font:inherit; }
.seat-guests-form select:focus { border-color:#e63227; }
.history-toolbar { display:grid; grid-template-columns:auto auto minmax(220px,1fr); align-items:end; gap:12px; margin-bottom:16px; padding:12px; border:1px solid var(--line); border-radius:8px; background:#0b0d10; }
.history-filter-row { display:flex; gap:5px; }
.history-filter-row button { min-height:40px; padding:0 12px; border:1px solid #30343a; border-radius:6px; background:#111418; color:#8b9098; cursor:pointer; font-size:10px; font-weight:700; }
.history-filter-row button.active { border-color:#e63227; background:rgba(230,50,39,.08); color:#fff; }
.history-search { display:grid; min-width:0; gap:5px; color:#8b9098; font-size:9px; font-weight:700; }
.history-search input { width:100%; min-height:42px; padding:9px 11px; border:1px solid #30343a; border-radius:6px; outline:0; background:#111418; color:#fff; font:inherit; }
.history-search input:focus { border-color:#e63227; }
.history-event-body>strong { display:flex; align-items:center; gap:8px; color:#fff; }
.history-event-body>strong i { font-style:normal; }
.history-event-facts { display:flex; flex-wrap:wrap; gap:6px 14px; margin-top:8px; color:#8b9098; font-size:10px; }
.history-card.event-reservations .history-rail { background:#e63227; }
.history-card.event-staff .history-rail { background:#8b9098; }
.statistics-page .traffic-chart { grid-template-columns:repeat(12,minmax(12px,1fr)); gap:4px; }
@media (max-width:768px) { .history-toolbar { grid-template-columns:1fr; }.history-filter-row { overflow-x:auto; }.history-filter-row button { min-width:max-content; min-height:44px; }.history-search input { min-height:44px; } }
@media (max-width:430px) { .storage-error { top:8px; display:grid; }.storage-error button { width:100%; } }

/* Responsive map viewport; original floorplan coordinates are unchanged. */
:root { --safe-top:max(env(safe-area-inset-top,0px),var(--telegram-safe-top,0px)); --safe-bottom:max(env(safe-area-inset-bottom,0px),var(--telegram-safe-bottom,0px)); --safe-left:max(env(safe-area-inset-left,0px),var(--telegram-safe-left,0px)); --safe-right:max(env(safe-area-inset-right,0px),var(--telegram-safe-right,0px)); }
html,body,#app { width:100%; max-width:100%; overflow-x:clip; }
.app-shell.view-map { height:var(--app-height,100dvh); min-height:0; padding-top:var(--safe-top); padding-bottom:max(8px,var(--safe-bottom)); }
.view-map .workspace { min-height:0; width:100%; max-width:none; grid-template-rows:auto minmax(0,1fr) auto; gap:8px; }
.local-preview .view-map .workspace { grid-template-rows:auto auto minmax(0,1fr) auto; }
.preview-notice { font-size:11px; line-height:1.4; color:#edca87; padding:4px 8px; background:#241e12; border-radius:4px; }
.view-map .sidebar { min-height:0; overflow:auto; }
.view-map .map-shell { height:100%; min-height:0; border-width:2px; }
.map-scroll { padding:0; touch-action:none; overflow:auto; overscroll-behavior:contain; cursor:grab; }
.map-scroll:active { cursor:grabbing; }
.map-canvas { position:relative; overflow:hidden; }
.map-stage { position:absolute; top:0; left:0; width:1402px; height:1122px; max-width:none; margin:0!important; transform-origin:0 0; }
.map-stage img { width:1402px; height:1122px; max-width:none; }
.map-stage .table-marker { width:var(--marker-size,44px); min-width:var(--marker-size,44px); height:var(--marker-size,44px); font-size:var(--marker-font,16px); touch-action:none; }
.map-stage .table-marker::before { display:none; }
.map-stage .table-marker.large { height:calc(var(--marker-size,44px)*1.15); }
.map-stage .table-marker.group { width:calc(var(--marker-size,44px)*1.35); min-width:calc(var(--marker-size,44px)*1.35); height:calc(var(--marker-size,44px)*1.2); border-radius:5px; }
.map-stage .table-marker .table-extra { font-size:calc(var(--marker-font,16px)*.65); }
.map-stage .table-marker.has-booking:not(.occupied) { border-width:var(--booking-border-width,2px); outline:var(--booking-outline-width,1px) solid rgba(255,68,58,.72); outline-offset:var(--booking-outline-offset,2px); }
.map-stage .table-marker.has-booking .table-extra { top:calc(-1 * var(--booking-label-offset,24px)); min-width:var(--booking-label-min-width,38px); height:var(--booking-label-height,18px); padding:0 var(--booking-label-padding,4px); border-width:var(--booking-label-border,1px); border-radius:var(--booking-label-radius,4px); font-size:calc(var(--marker-font,16px)*.78); }
.map-stage .table-marker.has-booking.booking-lane-high .table-extra { top:calc(0px - var(--booking-label-offset,24px) - var(--booking-label-lane-gap,20px)); }
.map-stage.has-selection .table-marker:not(.selected),.map-stage.has-selection .hall-label { opacity:1; }
.map-stage .hall-label { min-height:calc(var(--marker-size,44px)); }
.map-control-strip { grid-template-columns:minmax(0,1fr) auto; gap:8px; }
.map-today { display:none; }
.map-kpis { flex-wrap:wrap; justify-content:start; gap:10px; }
.map-zoom { display:flex; align-items:center; gap:4px; }
.map-zoom button { min-width:44px; min-height:44px; border:1px solid var(--line); border-radius:6px; background:#171a1f; color:#fff; cursor:pointer; }
.map-zoom button:disabled { opacity:.4; cursor:default; }
.map-zoom output { min-width:44px; text-align:center; font-size:12px; }
button:focus-visible,.map-scroll:focus-visible { outline:2px solid #ff938c; outline-offset:2px; }
.icon-button,.hall-modal-close { min-width:44px; min-height:44px; }
.table-quick-bar { display:none; }
.table-drawer { padding-bottom:max(20px,var(--safe-bottom)); overflow:auto; overscroll-behavior:contain; }
.sheet-header { position:sticky; top:0; z-index:2; background:#0b0d10; }
.sheet-header .icon-button.light { color:#fff; }
.table-drawer button { min-height:44px; }
.table-drawer input,.table-drawer textarea,.table-drawer select,.booking-form input,.booking-form select { font-size:16px; }
.drawer-facts strong { overflow-wrap:anywhere; }
.drawer-facts .table-comment { white-space:pre-wrap; }
@media(min-width:901px) {
 .view-map.table-open .workspace { padding-right:370px; }
 .view-map .sheet-backdrop.visible { left:auto; width:360px; background:transparent; pointer-events:none; }
 .view-map .table-drawer { width:360px; pointer-events:auto; padding-top:max(16px,var(--safe-top)); height:var(--app-height,100dvh); max-height:var(--app-height,100dvh); }
}
@media(max-width:1180px) {
 html,body,#app { height:var(--app-height,100dvh); min-height:0; overflow:hidden; }
 .app-shell.view-map { padding: max(4px,var(--safe-top)) max(8px,var(--safe-right)) calc(72px + var(--safe-bottom)) max(8px,var(--safe-left)); }
 .view-map .mobile-legend { display:none; }
 .map-kpis>span { font-size:11px; }
 .bottom-nav.app-tabs { bottom:max(6px,var(--safe-bottom)); left:max(8px,var(--safe-left)); right:max(8px,var(--safe-right)); }
}
@media(max-width:900px) {
 .table-drawer { width:100%; max-height:calc(var(--app-height,100dvh) - var(--safe-top) - 16px); padding:8px 16px max(20px,var(--safe-bottom)); }
 .table-sheet { margin:0; }
 .form-backdrop,.hall-modal-backdrop { padding-top:var(--safe-top); }
}
@media(max-width:600px) {
 .map-control-strip { grid-template-columns:1fr; gap:4px; padding:4px 8px; }
 .map-kpis { justify-content:space-between; }
 .map-zoom { justify-content:center; }
 .hall-map-view { gap:4px; }
 .view-map .status-line { margin:0; font-size:10px; }
}
@media(max-height:500px) and (max-width:1180px) {
 .map-control-strip { grid-template-columns:minmax(0,1fr) auto; }
 .map-kpis { gap:4px; }
 .map-kpis>span { font-size:0; }
 .view-map .status-line { display:none; }
 .view-map .workspace { grid-template-rows:auto minmax(0,1fr); }
 .local-preview .view-map .workspace { grid-template-rows:auto auto minmax(0,1fr); }
 .mobile-titlebar { min-height:44px; }
}

/* Operational header and in-app realtime notifications. */
.desktop-heading,.mobile-heading { display:grid; gap:2px; }
.desktop-heading>span,.mobile-heading>span { color:#9ba1a8; font-size:10px; font-weight:700; text-transform:capitalize; }
.desktop-titlebar { gap:14px; }
.operational-summary,.mobile-operational-summary { display:flex; align-items:center; gap:6px; }
.operational-summary>span,.operational-summary>button,.mobile-operational-summary>span,.mobile-operational-summary>button { display:flex; min-height:38px; align-items:center; gap:8px; padding:0 11px; border:1px solid rgba(255,255,255,.1); border-radius:8px; background:rgba(255,255,255,.035); color:#fff; }
.operational-summary>button,.mobile-operational-summary>button { cursor:pointer; }
.operational-summary i,.operational-summary span>span,.operational-summary button>span,.mobile-operational-summary i,.mobile-operational-summary button>span { color:#9299a2; font-size:10px; font-style:normal; font-weight:700; }
.operational-summary strong,.mobile-operational-summary strong { font-size:15px; font-variant-numeric:tabular-nums; }
.notification-bell { position:relative; display:inline-grid; width:42px; min-width:42px; height:38px; place-items:center; border:1px solid var(--line); border-radius:8px; background:rgba(3,5,6,.66); color:#fff; cursor:pointer; }
.notification-bell b { position:absolute; top:-6px; right:-6px; display:grid; min-width:19px; height:19px; padding:0 5px; place-items:center; border:2px solid #090b0d; border-radius:10px; background:#e63227; color:#fff; font-size:9px; line-height:1; }
.notification-bell b[hidden] { display:none; }
.mobile-header-actions { display:flex; gap:6px; }
.mobile-operational-summary { display:none; }
.realtime-toast-region:empty { display:none; }
.realtime-toast-stack { display:grid; gap:6px; }
.realtime-toast { display:grid; min-height:56px; grid-template-columns:minmax(0,1fr) 42px; overflow:hidden; border:1px solid rgba(230,50,39,.38); border-left:3px solid #e63227; border-radius:9px; background:linear-gradient(90deg,rgba(72,21,19,.96),rgba(16,18,21,.98)); box-shadow:0 8px 24px rgba(0,0,0,.26); animation:toast-in 180ms ease-out; }
.realtime-toast-main { display:grid; min-width:0; gap:2px; padding:9px 12px; border:0; background:transparent; color:#fff; cursor:pointer; text-align:left; }
.realtime-toast-main strong { font-size:12px; }
.realtime-toast-main span { overflow:hidden; color:#e7e9ec; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.realtime-toast-main small { color:#aeb4bc; font-size:9px; }
.realtime-toast-close { border:0; border-left:1px solid rgba(255,255,255,.08); background:transparent; color:#b9bec5; cursor:pointer; font-size:20px; }
@keyframes toast-in { from { opacity:0; transform:translateY(-5px); } to { opacity:1; transform:translateY(0); } }
.notification-backdrop { position:fixed; inset:0; z-index:70; background:rgba(0,0,0,.16); }
.notification-center { position:absolute; top:max(64px,calc(var(--safe-top) + 54px)); right:max(16px,var(--safe-right)); display:grid; width:min(390px,calc(100vw - 24px)); max-height:min(620px,calc(100dvh - 86px)); grid-template-rows:auto auto minmax(0,1fr); overflow:hidden; border:1px solid rgba(255,255,255,.14); border-radius:14px; background:#0d1013; color:#fff; box-shadow:0 22px 60px rgba(0,0,0,.52); }
.notification-center>header { display:flex; align-items:center; justify-content:space-between; padding:15px 16px 10px; }
.notification-center h2 { margin:2px 0 0; font-size:19px; }
.notification-center .icon-button { font-size:22px; }
.notification-center-tools { display:flex; min-height:42px; align-items:center; justify-content:space-between; padding:0 16px; border-block:1px solid rgba(255,255,255,.08); color:#969da6; font-size:10px; }
.notification-center-tools button { min-height:36px; border:0; background:transparent; color:#ff8f88; cursor:pointer; font-size:10px; font-weight:800; }
.notification-list { overflow:auto; overscroll-behavior:contain; }
.notification-item { border-bottom:1px solid rgba(255,255,255,.065); }
.notification-item>button { display:grid; width:100%; min-height:70px; grid-template-columns:8px minmax(0,1fr) auto; align-items:start; gap:9px; padding:12px 14px; border:0; background:transparent; color:#fff; cursor:pointer; text-align:left; }
.notification-item>button:hover,.notification-item>button:focus-visible { background:rgba(255,255,255,.045); }
.notification-indicator { width:7px; height:7px; margin-top:5px; border-radius:50%; background:#555b63; }
.notification-item.unread .notification-indicator { background:#ef463d; box-shadow:0 0 0 4px rgba(230,50,39,.12); }
.notification-copy { display:grid; min-width:0; gap:3px; }
.notification-copy strong { font-size:12px; }
.notification-copy>span { color:#d5d8dc; font-size:11px; line-height:1.35; }
.notification-copy small { color:#9299a2; font-size:9px; }
.notification-item time { color:#858c95; font-size:9px; }
.notification-empty { padding:42px 18px; color:#8f969e; font-size:12px; text-align:center; }

@media(min-width:769px) {
  .view-map .workspace { grid-template-rows:auto auto minmax(0,1fr) auto; }
}

@media(max-width:900px) {
  .operational-summary { gap:4px; }
  .operational-summary>span,.operational-summary>button { padding-inline:7px; }
  .header-button { display:none; }
}

@media(max-width:768px) {
  .mobile-heading { min-width:0; }
  .mobile-heading h1 { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .mobile-operational-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
  .mobile-operational-summary>span,.mobile-operational-summary>button { min-width:0; min-height:44px; justify-content:center; padding:0 6px; }
  .mobile-operational-summary i,.mobile-operational-summary button>span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .notification-center { inset:auto 0 0; width:100%; max-height:min(74dvh,620px); border-width:1px 0 0; border-radius:18px 18px 0 0; padding-bottom:max(8px,var(--safe-bottom)); }
  .notification-backdrop { background:rgba(0,0,0,.5); }
  .realtime-toast { min-height:52px; }
  .realtime-toast-main { padding-block:8px; }
  .view-map .workspace { grid-template-rows:auto auto auto minmax(0,1fr) auto; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; } }
.view-map .workspace { display:grid; height:100%; }
.view-map .mobile-legend { display:none!important; }
.sheet-backdrop { z-index:35; }
@media(max-width:1180px) {
 .app-shell.view-staff { height:var(--app-height,100dvh); min-height:0; overflow:hidden; }
 .view-staff .workspace { display:grid; height:100%; min-height:0; grid-template-rows:auto minmax(0,1fr) auto; }
 .local-preview .view-staff .workspace { grid-template-rows:auto auto minmax(0,1fr) auto; }
 .view-staff .staff-page { height:100%; min-height:0; max-height:none; overflow-x:hidden; overflow-y:auto; padding-bottom:24px; }
}
/* Short landscape screens share a row for menu and map controls. */
@media(max-height:500px) and (max-width:1180px) {
 .view-map .workspace { position:relative; grid-template-rows:minmax(0,1fr); }
 .local-preview .view-map .workspace { grid-template-rows:auto minmax(0,1fr); }
 .view-map .content-header { position:absolute; left:0; top:4px; width:44px; }
 .local-preview .view-map .content-header { top:34px; }
 .view-map .mobile-titlebar { display:block; }
 .view-map .mobile-titlebar h1,.view-map .mobile-titlebar [data-action="fullscreen"] { display:none; }
 .view-map .map-control-strip { margin-left:52px; }
}

/* Responsive interaction pass: preserve the plan geometry while fitting its viewport. */
.map-canvas { min-width:100%; min-height:100%; }
.map-stage .hall-label { width:var(--hall-width,94px); min-width:var(--hall-width,94px); height:var(--hall-height,44px); min-height:var(--hall-height,44px); padding:0; box-sizing:border-box; font-size:var(--hall-font,17px); }
.map-stage .hall-label::before { position:absolute; left:50%; top:50%; width:var(--hall-target,44px); height:var(--hall-target,44px); content:""; transform:translate(-50%,-50%); }
.map-stage .hall-zones { position:absolute; inset:0; z-index:1; pointer-events:none; }
.map-stage .hall-zone { position:absolute; border:var(--zone-border,1px) solid rgba(192,203,211,.34); border-radius:8px; background:rgba(176,194,203,.025); box-shadow:inset 0 0 24px rgba(176,194,203,.025); }
.map-stage .hall-zone-1 { left:52px; top:56px; width:440px; height:462px; }
.map-stage .hall-zone-2 { left:506px; top:56px; width:413px; height:462px; }
.map-stage .hall-zone-3 { left:934px; top:56px; width:406px; height:462px; }
.map-stage .hall-zone-4 { left:934px; top:535px; width:406px; height:558px; }
.map-fit-button { width:auto!important; padding:0 10px; gap:6px; color:#dfffe5!important; border-color:rgba(53,185,74,.55)!important; }
.map-fit-button span { font-size:17px; line-height:1; }
.map-fit-button b { font-size:10px; white-space:nowrap; }
.mobile-menu-open { overflow:hidden; }
.mobile-menu-backdrop { position:fixed; inset:0; z-index:80; background:rgba(0,0,0,.7); backdrop-filter:blur(3px); }
.mobile-menu-backdrop[hidden] { display:none; }
.mobile-menu-backdrop:not([hidden]) { display:flex; }
.mobile-menu-panel {
  position:relative;
  inset:auto;
  display:grid;
  width:min(330px,88vw);
  height:var(--app-height,100dvh);
  grid-template-rows:auto minmax(0,1fr) auto;
  padding:max(8px,var(--safe-top)) 10px max(10px,var(--safe-bottom));
  overflow:hidden;
  border-right:1px solid rgba(255,255,255,.16);
  background:#090909;
  box-shadow:18px 0 50px rgba(0,0,0,.48);
}
.mobile-menu-header { display:grid; min-height:58px; grid-template-columns:minmax(0,1fr) 44px; align-items:center; gap:8px; padding:0 4px 7px; border-bottom:1px solid var(--line-soft); }
.mobile-menu-panel .mobile-brand { min-height:0; justify-content:flex-start; padding:0; }
.mobile-menu-panel .brand-logo { width:106px; height:46px; object-fit:contain; object-position:left center; }
.mobile-menu-panel .mobile-menu-close { position:static; width:44px; height:44px; }
.mobile-menu-panel .mobile-nav { display:grid; align-content:start; gap:4px; margin:0; padding:8px 2px; overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; touch-action:pan-y; }
.mobile-menu-panel .mobile-nav .nav-item { min-height:44px; padding:5px 9px; border-radius:8px; }
.mobile-menu-panel .mobile-menu-footer { min-height:42px; padding:7px 8px 0; border-top:1px solid var(--line-soft); }
.table-drawer,.table-sheet,.section-page,.booking-form,.hall-modal,.detail-dialog { overscroll-behavior:contain; -webkit-overflow-scrolling:touch; touch-action:pan-y; }
.staff-search { display:grid; gap:6px; margin:2px 0 12px; color:#a8adb5; font-size:11px; font-weight:700; }
.staff-search-control { position:relative; display:block; }
.staff-search-control input { width:100%; min-height:44px; padding:10px 46px 10px 12px; border:1px solid var(--line); border-radius:7px; outline:0; background:#111418; color:#fff; font:inherit; font-size:16px; }
.staff-search-control input:focus { border-color:#e63227; }
.staff-search-control button { position:absolute; top:0; right:0; width:44px; height:44px; border:0; background:transparent; color:#a8adb5; cursor:pointer; font-size:22px; }
.staff-search-empty { margin:12px 0; padding:18px; border:1px dashed var(--line); border-radius:7px; color:#a8adb5; text-align:center; }
[data-staff-search-item][hidden],.staff-search-empty[hidden] { display:none!important; }
.booking-comment-preview { display:grid; gap:3px; margin-top:7px; padding:8px 10px; border-left:3px solid #e63227; border-radius:4px; background:rgba(230,50,39,.12); color:#f1d5d2; font-size:11px; line-height:1.35; white-space:pre-wrap; }
.booking-comment-preview b { color:#fff; font-size:9px; letter-spacing:.06em; text-transform:uppercase; }
.reservation-guest-card { margin:12px 0; padding:13px; border:1px solid rgba(230,50,39,.42); border-radius:8px; background:rgba(230,50,39,.07); }
.reservation-guest-card>h3 { margin:0 0 10px; font-size:13px; }
.reservation-guest-card>summary { cursor:pointer; color:#fff; font-size:12px; font-weight:800; }
.reservation-guest-card[open]>summary { margin-bottom:10px; }
.reservation-guest-card>div { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.reservation-guest-card>div>span { display:grid; gap:3px; color:#979ca4; font-size:10px; }
.reservation-guest-card>div strong { color:#fff; font-size:12px; overflow-wrap:anywhere; }
.reservation-comment-block { margin-top:12px; padding:12px; border-left:4px solid #ff4b41; border-radius:5px; background:#241313; }
.reservation-comment-block>strong { display:block; color:#ffaaa5; font-size:10px; letter-spacing:.06em; text-transform:uppercase; }
.reservation-comment-block>p { margin:6px 0 0; color:#fff; font-size:14px; font-weight:650; line-height:1.45; overflow-wrap:anywhere; white-space:pre-wrap; }
@media(max-width:600px) {
  .map-fit-button b { display:none; }
  .map-fit-button { min-width:44px; padding:0!important; }
}

/* Small-height phones in landscape: reserve nearly all available height for the map. */
@media(max-height:500px) and (max-width:1180px) {
  .app-shell { padding:max(2px,var(--safe-top)) max(4px,var(--safe-right)) calc(46px + var(--safe-bottom)) max(4px,var(--safe-left)); }
  .app-shell.view-map { padding-bottom:calc(46px + var(--safe-bottom)); }
  .local-preview .view-map .workspace { grid-template-rows:auto minmax(0,1fr); gap:2px; }
  .preview-notice { min-height:20px; padding:2px 6px; overflow:hidden; font-size:9px; line-height:16px; text-overflow:ellipsis; white-space:nowrap; }
  .view-map .content-header { top:2px; width:40px; }
  .local-preview .view-map .content-header { top:22px; }
  .view-map .mobile-titlebar { min-height:38px; grid-template-columns:38px; }
  .view-map .mobile-titlebar .icon-button { width:38px; min-width:38px; height:38px; min-height:38px; }
  .view-map .map-control-strip { min-height:38px; margin-left:44px; padding:2px 4px; gap:4px; border-radius:5px; }
  .map-kpis { min-width:0; flex-wrap:nowrap; justify-content:flex-start; gap:5px; overflow:hidden; }
  .map-kpis>span { gap:3px; }
  .map-kpis .status-dot { width:7px; height:7px; flex-basis:7px; }
  .map-zoom { flex:0 0 auto; gap:2px; }
  .map-zoom button { min-width:36px; min-height:34px; height:34px; }
  .map-zoom output { min-width:38px; font-size:10px; }
  .map-fit-button { width:36px!important; min-width:36px; padding:0!important; }
  .map-fit-button b { display:none; }
  .view-map .hall-map-view { gap:2px; }
  .view-map .map-shell { height:100%; min-height:0; border-width:1px; border-radius:4px; }
  .bottom-nav.app-tabs { right:max(4px,var(--safe-right)); bottom:max(2px,var(--safe-bottom)); left:max(4px,var(--safe-left)); min-height:40px; gap:2px; border-radius:7px; }
  .app-tabs button { min-height:38px; padding:1px; gap:1px; font-size:8px; }
  .app-tabs button svg { width:17px; height:17px; }

  .mobile-menu-panel { width:min(300px,78vw); padding:max(4px,var(--safe-top)) 7px max(4px,var(--safe-bottom)); }
  .mobile-menu-header { min-height:42px; grid-template-columns:minmax(0,1fr) 38px; padding-bottom:3px; }
  .mobile-menu-panel .brand-logo { width:88px; height:34px; }
  .mobile-menu-panel .mobile-menu-close { width:36px; min-width:36px; height:36px; min-height:36px; }
  .mobile-menu-panel .mobile-nav { gap:1px; padding:4px 1px; }
  .mobile-menu-panel .mobile-nav .nav-item { min-height:38px; padding:3px 7px; font-size:11px; }
  .mobile-menu-panel .mobile-nav .nav-icon { width:25px; height:25px; flex-basis:25px; }
  .mobile-menu-panel .mobile-nav .nav-icon svg { width:17px; height:17px; }
  .mobile-menu-panel .mobile-menu-footer { min-height:28px; padding:4px 5px 0; font-size:9px; }
  .mobile-menu-panel .mobile-menu-footer strong { font-size:12px; }

  .section-page { max-height:calc(var(--app-height,100dvh) - 90px); padding:2px 1px 8px; }
  .section-heading { align-items:center; margin-bottom:8px; }
  .section-heading h1 { margin:2px 0 0; font-size:19px; }
  .metric-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; margin-bottom:7px; }
  .metric-card { min-height:72px; padding:8px; }
  .metric-card strong { font-size:21px; }
  .shift-summary { grid-template-columns:repeat(3,minmax(0,1fr)); margin-bottom:8px; }
  .shift-summary>div { min-height:66px; padding:8px; }
  .hall-staff-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
  .hall-staff-card { min-height:105px; padding:9px; gap:6px; }

  .sheet-backdrop,.form-backdrop,.hall-modal-backdrop { align-items:stretch; justify-items:end; padding:0; }
  .table-sheet,.table-drawer,.booking-form,.hall-modal,.detail-dialog {
    width:min(360px,92vw);
    height:var(--app-height,100dvh);
    max-height:var(--app-height,100dvh);
    margin:0;
    padding:6px 10px max(8px,var(--safe-bottom));
    overflow-y:auto;
    border-radius:0;
  }
  .sheet-handle,.hall-sheet-handle { display:none; }
  .sheet-header { min-height:42px; align-items:center; padding:0 0 5px; }
  .sheet-header h2,.hall-modal-header h2 { font-size:19px; }
  .sheet-header p { margin-top:3px; }
  .current-status { font-size:13px; }
  .drawer-facts { margin:6px 0; }
  .status-grid { gap:5px; margin-top:7px; }
  .status-action,.primary-action,.secondary-action,.danger-action,.form-submit { min-height:40px; }
  .comment-row { min-height:40px; margin-top:6px; }
  .hall-modal-header { padding-bottom:7px; }
  .hall-modal-section { padding:8px 0; }
}

/* Live drafts, keyboard-safe dialogs and deliberate tablet layouts. */
.assignment-error,.draft-conflict { margin:10px 0; padding:10px 12px; border:1px solid rgba(255,87,77,.55); border-radius:7px; background:rgba(230,50,39,.13); color:#ffaaa5; font-size:12px; line-height:1.4; }
.current-seating-card { margin:12px 0; padding:13px; border:1px solid rgba(40,105,232,.45); border-radius:8px; background:rgba(40,105,232,.08); }
.current-seating-card>h3 { margin:0 0 10px; font-size:13px; }
.current-seating-card>div { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.current-seating-card span { display:grid; gap:3px; color:#979ca4; font-size:10px; }
.current-seating-card strong { color:#fff; font-size:12px; }
.seating-comment-block { margin-top:12px; padding:12px; border-left:4px solid #2869e8; border-radius:5px; background:#111b2c; }
.seating-comment-block>strong { display:block; color:#9bbaff; font-size:10px; letter-spacing:.06em; text-transform:uppercase; }
.seating-comment-block>p { margin:6px 0 0; color:#fff; font-size:14px; font-weight:650; line-height:1.45; overflow-wrap:anywhere; white-space:pre-wrap; }
.reservation-guest-card .wide { grid-column:1/-1; }
.booking-arrival-action { border-color:#e63227!important; }
.seat-form-actions { position:sticky; bottom:calc(-15px + var(--safe-bottom)); z-index:3; display:grid; grid-template-columns:1fr 1.35fr; gap:8px; margin:3px -15px -15px; padding:12px 15px max(12px,var(--safe-bottom)); border-top:1px solid var(--line); background:#090b0d; }
.form-backdrop,.sheet-backdrop,.hall-modal-backdrop { top:var(--visible-top,0px); bottom:auto; height:var(--visible-height,100dvh); }
.table-drawer,.booking-form,.hall-modal,.detail-dialog { max-height:calc(var(--visible-height,100dvh) - var(--safe-top)); }
.booking-form textarea { font-size:16px; }
.hall-picker-list,.hostess-picker { overscroll-behavior:contain; }
.map-stage[data-focused-hall="1"] .table-marker[data-table-hall="1"]::before,
.map-stage[data-focused-hall="2"] .table-marker[data-table-hall="2"]::before,
.map-stage[data-focused-hall="3"] .table-marker[data-table-hall="3"]::before,
.map-stage[data-focused-hall="4"] .table-marker[data-table-hall="4"]::before { position:absolute; left:50%; top:50%; display:block; width:var(--hall-target,44px); height:var(--hall-target,44px); content:""; transform:translate(-50%,-50%); }
.hostess-booking-queue { margin-bottom:18px; }
.hostess-queue-card { cursor:default; }

/* Map-first booking assignment: compact context plus an explicit final action. */
.booking-assignment-active .workspace { position:relative; }
.booking-assignment-card { position:absolute; z-index:18; top:76px; left:18px; width:min(270px,calc(100% - 36px)); padding:12px 14px; border:1px solid rgba(255,255,255,.2); border-radius:12px; background:rgba(12,15,18,.94); color:#fff; box-shadow:0 12px 30px rgba(0,0,0,.34); backdrop-filter:blur(9px); pointer-events:none; }
.booking-assignment-card>div { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.booking-assignment-card>div span { color:#a9adb4; font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.booking-assignment-card>div strong { overflow:hidden; font-size:17px; text-overflow:ellipsis; white-space:nowrap; }
.booking-assignment-card p { margin:7px 0 0; font-size:13px; font-weight:700; line-height:1.45; }
.booking-assignment-card small { display:block; margin-top:5px; color:#d4d6da; font-size:11px; }
.booking-assignment-card blockquote { margin:8px 0 0; padding:7px 9px; border-left:3px solid #e63227; border-radius:4px; background:rgba(255,255,255,.055); font-size:11px; line-height:1.35; overflow-wrap:anywhere; }
.booking-assignment-card blockquote b { display:block; margin-bottom:2px; color:#a9adb4; font-size:9px; text-transform:uppercase; }
.booking-assignment-card em { display:inline-block; margin-top:8px; color:#ffaaa5; font-size:11px; font-style:normal; font-weight:800; }
.booking-assignment-error { margin-top:8px; padding:7px 8px; border-radius:6px; background:rgba(230,50,39,.2); color:#ffd0cd; font-size:11px; line-height:1.35; }
.booking-assignment-backdrop { position:fixed; inset:0; z-index:35; display:flex; align-items:flex-end; justify-content:center; padding:16px 16px max(78px,calc(16px + var(--safe-bottom))); background:linear-gradient(transparent 62%,rgba(0,0,0,.42)); pointer-events:none; }
.booking-assignment-panel { width:min(430px,100%); padding:16px; border:1px solid rgba(255,255,255,.2); border-radius:16px; background:#111418; color:#fff; box-shadow:0 20px 52px rgba(0,0,0,.5); pointer-events:auto; }
.booking-assignment-panel h2 { margin:4px 0 0; font-size:20px; }
.booking-assignment-panel p { margin:5px 0 12px; color:#c6c9ce; font-size:12px; }
.booking-assignment-panel>strong { display:block; color:#aeb2b8; font-size:10px; letter-spacing:.04em; text-transform:uppercase; }
.booking-assignment-tables { margin-top:5px; font-size:17px; font-weight:850; }

@media(max-width:767px) {
  .booking-assignment-card { top:max(8px,var(--safe-top)); left:8px; width:min(235px,calc(100% - 16px)); padding:9px 10px; border-radius:9px; }
  .booking-assignment-card>div strong { font-size:15px; }
  .booking-assignment-card p { margin-top:4px; font-size:11px; }
  .booking-assignment-card small { font-size:10px; }
  .booking-assignment-card blockquote { margin-top:5px; padding:5px 7px; }
  .booking-assignment-card em { margin-top:5px; }
  .booking-assignment-backdrop { padding:8px 8px max(72px,calc(8px + var(--safe-bottom))); }
  .booking-assignment-panel { padding:12px; border-radius:13px; }
  .booking-assignment-panel .context-actions { grid-template-columns:1fr; }
}

@media(min-width:768px) and (max-width:900px) and (min-height:600px) {
  .view-map.table-open .workspace { padding-right:350px; }
  .view-map .sheet-backdrop.visible { left:auto; width:340px; align-items:stretch; justify-items:end; background:transparent; pointer-events:none; }
  .view-map .table-drawer { width:340px; height:var(--visible-height,100dvh); max-height:var(--visible-height,100dvh); padding:12px 16px max(20px,var(--safe-bottom)); border-width:0 0 0 1px; border-radius:0; pointer-events:auto; }
  .view-map .table-drawer .sheet-handle { display:none; }
  .booking-form:not(.hostess-dialog) { width:min(700px,calc(100% - 40px)); }
  .booking-form .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hostess-dialog,.hall-modal { width:min(680px,calc(100% - 40px)); }
  .hall-picker-list,.hostess-picker { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
}

@media(max-height:500px) and (max-width:1180px) {
  .map-zoom button,.map-fit-button,.bottom-nav.app-tabs button,.status-action,.primary-action,.secondary-action,.danger-action,.form-submit { min-width:44px; min-height:44px; }
  .table-sheet,.table-drawer,.booking-form,.hall-modal,.detail-dialog { height:var(--visible-height,100dvh); max-height:var(--visible-height,100dvh); }
}

/* Calm map motion: state changes are noticeable without keeping the whole plan in motion. */
.map-stage .table-marker>span { position:relative; overflow:hidden; border-radius:inherit; font-size:calc(var(--marker-font,16px)*1.08); font-weight:850; letter-spacing:.01em; text-shadow:0 1px 2px rgba(0,0,0,.55); }
.map-stage .table-marker.state-transition>span::before { position:absolute; inset:0; border-radius:inherit; background:var(--previous-table-fill); content:""; pointer-events:none; animation:table-color-fade 420ms ease-out forwards; }
.map-stage .table-marker.recently-changed { animation:table-action-pulse 580ms cubic-bezier(.2,.8,.2,1); }
.map-stage .table-marker.occupied .table-extra { animation:guest-count-in 260ms ease-out; }
.map-stage .table-marker.booking-soon { outline:1px solid rgba(255,116,108,.68); outline-offset:3px; animation:booking-ring 2.4s ease-in-out infinite; }
.map-stage .table-marker.has-booking:not(.occupied) { border-color:#ff746c; background:linear-gradient(145deg,#d23b32,#8e1c17)!important; box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 3px 8px rgba(0,0,0,.4),0 0 0 2px rgba(230,50,39,.3),0 0 15px rgba(230,50,39,.58); }
.map-stage .table-marker::before { position:absolute; left:50%; top:50%; display:block; width:var(--table-target,var(--marker-size,44px)); height:var(--table-target,var(--marker-size,44px)); border:0; border-radius:9px; background:transparent; content:""; transform:translate(-50%,-50%); }
.map-stage .table-marker.round::before { border-radius:50%; }
.map-stage.has-selection .table-marker:not(.selected) { opacity:.42; filter:saturate(.62) brightness(.72); }
.map-stage.has-selection .hall-label { opacity:.46; }
@keyframes table-color-fade { from { opacity:1; } to { opacity:0; } }
@keyframes table-action-pulse { 0% { transform:scale(1); } 46% { transform:scale(1.13); filter:brightness(1.22); } 100% { transform:scale(1); } }
@keyframes guest-count-in { from { opacity:0; transform:translate(-50%,5px) scale(.9); } to { opacity:1; transform:translate(-50%,0) scale(1); } }
@keyframes booking-ring { 0%,100% { outline-color:rgba(255,116,108,.48); outline-offset:3px; } 50% { outline-color:rgba(255,116,108,.92); outline-offset:6px; } }

/* ========================================================================== 
   UMAMI MAP UI POLISH v2 — visual-only layer
   Scope: hall map, table markers, map controls, table drawer and mobile dock.
   Business logic, geometry, coordinates and interaction code stay untouched.
   ========================================================================== */
:root {
  --umami-accent: #e63227;
  --umami-accent-soft: rgba(230, 50, 39, 0.12);
  --umami-accent-ring: rgba(230, 50, 39, 0.28);
  --umami-bg-0: #050607;
  --umami-bg-1: #080a0c;
  --umami-bg-2: #0c0f12;
  --umami-bg-3: #12161a;
  --umami-surface-glass: rgba(12, 15, 18, 0.88);
  --umami-line: rgba(255, 255, 255, 0.105);
  --umami-line-strong: rgba(255, 255, 255, 0.18);
  --umami-highlight: rgba(255, 255, 255, 0.055);
  --umami-shadow-1: 0 10px 28px rgba(0, 0, 0, 0.24);
  --umami-shadow-2: 0 18px 52px rgba(0, 0, 0, 0.38);
  --umami-free-soft: rgba(53, 185, 74, 0.18);
  --umami-occupied-soft: rgba(40, 105, 232, 0.18);
  --umami-reserved-soft: rgba(230, 50, 39, 0.20);
}

body {
  background:
    radial-gradient(900px 480px at 58% -10%, rgba(230, 50, 39, 0.075), transparent 60%),
    radial-gradient(720px 420px at 92% 82%, rgba(255, 255, 255, 0.025), transparent 62%),
    linear-gradient(145deg, #040506 0%, #07090b 52%, #040506 100%);
}

/* Desktop shell stays restrained; depth comes from surfaces rather than glow. */
.view-map .sidebar {
  background:
    linear-gradient(180deg, rgba(12, 14, 17, 0.96) 0%, rgba(5, 6, 7, 0.98) 66%),
    #050607;
  border-right-color: rgba(255, 255, 255, 0.075);
}

.view-map .desktop-titlebar h1,
.view-map .mobile-titlebar h1 {
  letter-spacing: -0.025em;
}

/* Compact dashboard strip above the floor plan. */
.view-map .map-control-strip {
  border-color: var(--umami-line);
  background:
    linear-gradient(180deg, rgba(21, 25, 29, 0.96), rgba(10, 12, 15, 0.96));
  box-shadow:
    inset 0 1px 0 var(--umami-highlight),
    var(--umami-shadow-1);
}

.view-map .map-kpis > span {
  color: #969da6;
}

.view-map .map-kpis strong {
  color: #f7f8fa;
  font-weight: 760;
}

.view-map .map-kpis .status-dot {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.025);
}

.view-map .map-zoom button {
  border-color: rgba(255, 255, 255, 0.115);
  background:
    linear-gradient(180deg, rgba(29, 33, 38, 0.96), rgba(17, 20, 24, 0.96));
  color: #f5f6f7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transition: border-color 150ms ease, background-color 150ms ease, filter 150ms ease;
}

.view-map .map-zoom button:hover,
.view-map .map-zoom button:focus-visible {
  border-color: rgba(230, 50, 39, 0.58);
  background: #181c20;
  filter: brightness(1.08);
}

.view-map .map-zoom output {
  color: #d8dbe0;
  font-variant-numeric: tabular-nums;
}

.view-map .map-fit-button {
  color: #f2f4f6 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.view-map .map-fit-button:hover,
.view-map .map-fit-button:focus-visible {
  color: #fff !important;
  border-color: rgba(230, 50, 39, 0.62) !important;
}

/* The floor plan is the visual centre. */
.view-map .map-shell {
  position: relative;
  border-color: rgba(255, 255, 255, 0.135);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.025), transparent 50%),
    #07090b;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    inset 0 0 70px rgba(0, 0, 0, 0.24),
    var(--umami-shadow-2);
}

.view-map .map-scroll {
  background:
    radial-gradient(circle at 48% 32%, rgba(255, 255, 255, 0.022), transparent 45%),
    linear-gradient(180deg, #080a0c 0%, #060809 100%);
}

.view-map .map-stage img {
  opacity: 0.88;
  filter: invert(1) brightness(0.36) contrast(1.42) grayscale(1);
}

/* Hall labels behave like map annotations, not primary buttons. */
.view-map .map-stage .hall-label {
  border-color: rgba(255, 255, 255, 0.065);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(17, 20, 23, 0.96), rgba(8, 10, 12, 0.96));
  color: #f3f4f6;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 6px 18px rgba(0, 0, 0, 0.26);
}

.view-map .map-stage .hall-label::after {
  background: var(--umami-accent);
  opacity: 0.34;
  transform: scaleX(0.58);
}

.view-map .map-stage .hall-label:hover,
.view-map .map-stage .hall-label:focus-visible {
  border-color: rgba(230, 50, 39, 0.42);
  background: #101215;
  color: #fff;
}

.view-map .map-stage .hall-label:hover::after,
.view-map .map-stage .hall-label:focus-visible::after {
  opacity: 0.9;
  transform: scaleX(1);
}

/* Calm status markers: status remains obvious, permanent neon glow is removed. */
.view-map .map-stage .table-marker {
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.24);
  background: linear-gradient(180deg, rgba(18, 21, 24, 0.98), rgba(8, 10, 12, 0.98)) !important;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.075),
    0 5px 12px rgba(0, 0, 0, 0.34);
  transition:
    border-color 170ms ease,
    box-shadow 170ms ease,
    filter 170ms ease,
    opacity 170ms ease,
    background-color 220ms ease;
}

.view-map .map-stage .table-marker.free:not(.has-booking) {
  border-color: rgba(83, 211, 107, 0.58);
  background: linear-gradient(180deg, rgba(25, 55, 33, 0.96), rgba(9, 21, 13, 0.98)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 5px 12px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(53, 185, 74, 0.07);
}

.view-map .map-stage .table-marker.occupied {
  border-color: rgba(92, 139, 244, 0.66);
  background: linear-gradient(180deg, rgba(24, 49, 95, 0.97), rgba(10, 21, 46, 0.99)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.075),
    0 5px 12px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(40, 105, 232, 0.08);
}

.view-map .map-stage .table-marker.held,
.view-map .map-stage .table-marker.held.has-booking:not(.occupied) {
  border-color: rgba(167, 139, 250, 0.72);
  background: linear-gradient(180deg, rgba(62, 41, 105, 0.97), rgba(27, 16, 52, 0.99)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 5px 12px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(139, 92, 246, 0.1);
}

.view-map .map-stage .table-marker.reserved,
.view-map .map-stage .table-marker.has-booking:not(.occupied) {
  border-color: rgba(239, 91, 82, 0.72);
  background: linear-gradient(180deg, rgba(83, 27, 25, 0.97), rgba(38, 12, 12, 0.99)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.065),
    0 5px 12px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(230, 50, 39, 0.09);
}

.view-map .map-stage .table-marker.closed {
  border-color: rgba(141, 148, 156, 0.35);
  background: linear-gradient(180deg, #24282d, #15181c) !important;
  color: #aeb4bc;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.28);
}

.view-map .map-stage .table-marker::after {
  border-color: #07090b;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.18);
}

.view-map .map-stage .table-marker:hover,
.view-map .map-stage .table-marker:focus-visible {
  border-color: rgba(255, 255, 255, 0.9);
  outline: none;
  filter: brightness(1.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 8px 20px rgba(0, 0, 0, 0.42),
    0 0 0 3px rgba(255, 255, 255, 0.055);
}

.view-map .map-stage .table-marker.selected {
  z-index: 7;
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 3px;
  filter: brightness(1.13);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 8px 24px rgba(0, 0, 0, 0.46),
    0 0 0 4px rgba(255, 255, 255, 0.12);
}

.view-map .map-stage.has-selection .table-marker:not(.selected) {
  opacity: 0.58;
  filter: saturate(0.72) brightness(0.78);
}

.view-map .map-stage.has-selection .hall-label {
  opacity: 0.64;
}

.view-map .map-stage .table-marker .table-extra {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(8, 10, 12, 0.96);
  color: #f4f5f7;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.38);
}

.view-map .map-stage .table-marker.has-booking .table-extra {
  border-color: rgba(255, 116, 108, 0.62);
  background: rgba(128, 35, 30, 0.96);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.44);
}

.view-map .map-stage .table-marker.booking-soon {
  animation: umami-booking-ring 2.6s ease-in-out infinite;
}

@keyframes umami-booking-ring {
  0%, 100% {
    outline-color: rgba(255, 116, 108, 0.40);
    outline-offset: 3px;
  }
  50% {
    outline-color: rgba(255, 116, 108, 0.78);
    outline-offset: 5px;
  }
}

/* Drawer / card: higher visual layer, no heavy glass effect. */
.view-map .sheet-backdrop.visible {
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(4px);
}

.view-map .table-drawer,
.view-map .table-sheet {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, #0d1013 0%, #090b0d 100%);
  box-shadow: -18px 0 50px rgba(0, 0, 0, 0.38);
}

.view-map .table-drawer .sheet-header,
.view-map .table-sheet .sheet-header {
  background: linear-gradient(180deg, rgba(13, 16, 19, 0.995), rgba(13, 16, 19, 0.95));
}

.view-map .sheet-handle {
  background: #666d75;
}

.view-map .current-status,
.view-map .drawer-facts,
.view-map .comment-row {
  border-color: rgba(255, 255, 255, 0.095);
}

.view-map .drawer-facts {
  background: rgba(255, 255, 255, 0.065);
}

.view-map .drawer-facts > div {
  background: #0d1013;
}

.view-map .status-action {
  border-color: rgba(255, 255, 255, 0.10);
  border-radius: 9px;
  background: #0b0e11 !important;
  transition: border-color 150ms ease, background-color 150ms ease, filter 150ms ease;
}

.view-map .status-action:hover:not(:disabled),
.view-map .status-action:focus-visible:not(:disabled) {
  background: #12161a !important;
  filter: brightness(1.05);
}

.view-map .status-action.active {
  background: rgba(255, 255, 255, 0.035) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.view-map .primary-action,
.view-map .secondary-action,
.view-map .danger-action {
  border-radius: 9px;
  transition: border-color 150ms ease, background-color 150ms ease, filter 150ms ease;
}

.view-map .primary-action {
  background: linear-gradient(180deg, #ef3b31, #d92c24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 8px 18px rgba(230, 50, 39, 0.13);
}

.view-map .primary-action:hover,
.view-map .primary-action:focus-visible {
  background: linear-gradient(180deg, #fa463b, #e63227);
  filter: brightness(1.03);
}

.view-map .secondary-action {
  border-color: rgba(255, 255, 255, 0.13);
  background: #0c0f12;
}

/* Mobile navigation is a calm floating dock, not a solid red toolbar. */
@media (max-width: 1180px) {
  .view-map .bottom-nav.app-tabs {
    border-color: rgba(255, 255, 255, 0.10);
    background: rgba(8, 10, 12, 0.90);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.045),
      0 12px 34px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(14px);
  }

  .view-map .app-tabs button {
    border-radius: 7px;
    background: transparent;
    color: #8f959d;
    transition: background-color 150ms ease, color 150ms ease;
  }

  .view-map .app-tabs button.active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
    color: #ff4d43;
    box-shadow: inset 0 -2px 0 var(--umami-accent);
  }

  .view-map .mobile-titlebar .icon-button {
    border-color: rgba(255, 255, 255, 0.10);
    background: linear-gradient(180deg, rgba(20, 23, 27, 0.92), rgba(10, 12, 15, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }
}

@media (max-width: 600px) {
  .view-map .map-shell {
    border-radius: 8px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.03),
      inset 0 0 44px rgba(0, 0, 0, 0.22),
      0 10px 28px rgba(0, 0, 0, 0.32);
  }

  .view-map .map-control-strip {
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .view-map .table-drawer,
  .view-map .table-sheet {
    box-shadow: 0 -18px 46px rgba(0, 0, 0, 0.46);
  }
}

/* Keep the motion system functional but discreet. */

/* Hall shortcuts stay deliberately small and never scale with the floor plan. */
.view-map .hall-focus-nav {
  display: flex;
  width: min(100%, 220px);
  justify-self: center;
  gap: 2px;
  padding: 2px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 7px;
  background: rgba(8, 10, 12, 0.72);
}

.view-map .hall-focus-nav button {
  width: auto;
  min-width: 0;
  height: 24px;
  min-height: 24px;
  max-height: 24px;
  flex: 1 1 0;
  padding: 0 4px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #9ba1a9;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 750;
  line-height: 1;
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.view-map .hall-focus-nav button:hover,
.view-map .hall-focus-nav button:focus-visible {
  background: rgba(255, 255, 255, 0.045);
  color: #f4f5f7;
}

.view-map .hall-focus-nav button.active,
.view-map .hall-focus-nav button:active {
  background: linear-gradient(180deg, rgba(230, 50, 39, 0.16), rgba(230, 50, 39, 0.075));
  color: #fff;
  box-shadow: inset 0 -1px 0 var(--umami-accent);
}

@media (prefers-reduced-motion: reduce) {
  .view-map .map-stage .table-marker.booking-soon {
    animation: none !important;
  }
}

/* Stage 8.5: one mobile-first Booking workspace; recommendation UI stays absent. */
.bookings-workspace,
.bookings-workspace * { min-width:0; }
.bookings-workspace { width:100%; max-width:100%; overflow-x:hidden; padding-bottom:max(32px,calc(16px + var(--safe-bottom))); }
.bookings-toolbar { display:flex; justify-content:flex-end; margin-bottom:10px; }
.new-booking-action { width:auto; min-height:40px; padding-inline:14px; white-space:nowrap; }
.booking-filter-strip { display:flex; width:100%; max-width:100%; gap:7px; margin-bottom:10px; padding-bottom:2px; overflow-x:auto; overscroll-behavior-inline:contain; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.booking-filter-strip::-webkit-scrollbar { display:none; }
.booking-filter-chip { min-width:max-content; min-height:40px; flex:0 0 auto; padding:0 14px; border:1px solid var(--line); border-radius:999px; background:#0b0d10; color:#c9cdcf; cursor:pointer; font-size:12px; font-weight:750; }
.booking-filter-chip.active { border-color:#e63227; background:rgba(230,50,39,.16); color:#fff; box-shadow:inset 0 0 0 1px rgba(230,50,39,.18); }
.booking-date-row { display:flex; min-width:0; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; color:var(--muted); font-size:11px; }
.booking-date-action { position:relative; display:inline-flex; min-height:38px; max-width:100%; align-items:center; padding:0 12px; overflow:hidden; border:1px solid var(--line); border-radius:7px; background:#0b0d10; color:#fff; cursor:pointer; font-size:11px; font-weight:700; }
.booking-date-action.active { border-color:rgba(230,50,39,.75); }
.booking-date-action input { position:absolute; inset:0; width:100%; height:100%; cursor:pointer; opacity:0; }
.staff-booking-list { display:grid; width:100%; max-width:100%; gap:10px; }
.staff-booking-card { display:grid; width:100%; max-width:100%; grid-template-columns:minmax(72px,auto) minmax(0,1fr); gap:12px 16px; padding:16px; overflow:hidden; border:1px solid var(--line); border-radius:11px; background:#0b0d10; color:#fff; }
.staff-booking-card.booking-awaiting { border-left:3px solid #e63227; }
.staff-booking-time { display:grid; align-content:start; gap:5px; }
.staff-booking-time time { font-size:22px; font-weight:850; line-height:1; }
.staff-booking-time span { color:var(--muted); font-size:9px; line-height:1.35; overflow-wrap:anywhere; }
.staff-booking-main { display:grid; min-width:0; gap:10px; }
.staff-booking-name { max-width:100%; font-size:17px; line-height:1.25; overflow-wrap:anywhere; word-break:break-word; }
.staff-booking-facts { display:flex; min-width:0; flex-wrap:wrap; gap:6px 12px; color:#d8dbdc; font-size:12px; line-height:1.45; }
.staff-booking-facts span,.staff-booking-facts a,.staff-booking-facts b { max-width:100%; overflow-wrap:anywhere; word-break:break-word; }
.staff-booking-facts a { color:#fff; text-decoration:none; }
.staff-booking-facts b { color:#fff; }
.staff-booking-note,.staff-booking-call { display:grid; min-width:0; gap:4px; padding:10px 11px; border-radius:7px; background:#11171a; }
.staff-booking-note span,.staff-booking-call span { color:var(--muted); font-size:9px; font-weight:750; letter-spacing:.05em; text-transform:uppercase; }
.staff-booking-note p { margin:0; font-size:12px; line-height:1.5; overflow-wrap:anywhere; word-break:break-word; white-space:pre-wrap; }
.staff-booking-call strong { font-size:12px; }
.staff-booking-status { width:fit-content; max-width:100%; padding:6px 9px; border-radius:999px; background:rgba(255,255,255,.07); color:#eef0f1; font-size:11px; font-weight:750; line-height:1.3; overflow-wrap:anywhere; }
.booking-awaiting .staff-booking-status { background:rgba(230,50,39,.15); color:#ffb4af; }
.booking-approved .staff-booking-status { background:rgba(53,185,74,.13); color:#9beaab; }
.staff-booking-actions { grid-column:1/-1; display:grid; gap:8px; min-width:0; padding-top:2px; }
.staff-booking-actions button { width:100%; min-width:0; min-height:48px; white-space:normal; overflow-wrap:anywhere; }
.staff-booking-secondary-actions { display:flex; flex-wrap:wrap; gap:8px; }
.staff-booking-secondary-actions button { flex:1 1 120px; border:1px solid rgba(255,255,255,.18); border-radius:7px; background:#171a1e; color:#e9ebee; }
.booking-empty-state { padding:28px 16px; border:1px dashed var(--line); border-radius:10px; color:var(--muted); text-align:center; }

@media (max-width:767px) {
  .view-bookings .section-page { padding-right:1px; padding-bottom:max(82px,calc(70px + var(--safe-bottom))); padding-left:1px; }
  .bookings-toolbar { margin-bottom:8px; }
  .new-booking-action { min-height:38px; font-size:11px; }
  .booking-filter-strip { margin-bottom:8px; }
  .booking-filter-chip { min-height:38px; padding-inline:13px; }
  .booking-date-row { margin-bottom:9px; }
  .staff-booking-card { grid-template-columns:64px minmax(0,1fr); gap:10px 12px; padding:13px 12px; border-radius:9px; }
  .staff-booking-time time { font-size:19px; }
  .staff-booking-name { font-size:16px; }
}

@media (max-width:370px) {
  .staff-booking-card { grid-template-columns:56px minmax(0,1fr); gap:9px; padding:12px 10px; }
  .staff-booking-time time { font-size:17px; }
  .booking-date-row>span { display:none; }
}

/* The map owns the remaining workspace height, regardless of optional toast/preview rows. */
.view-map .workspace {
  display:flex;
  flex-direction:column;
  min-height:0;
  height:100%;
}
.view-map .workspace > .content-header,
.view-map .workspace > .realtime-toast-region,
.view-map .workspace > .preview-notice,
.view-map .workspace > .status-line { flex:0 0 auto; }
.view-map .hall-map-view {
  flex:1 1 0;
  min-height:0;
  width:100%;
}
.view-map .map-shell {
  height:auto;
  min-height:0;
}
.view-map .map-scroll { height:100%; min-height:0; }
.view-map .map-canvas { min-width:0; min-height:0; }

/* Hall Map must own the remaining workspace row even with a cached legacy layout. */
.view-map .workspace {
  display:flex;
  height:100%;
  min-height:0;
  flex-direction:column;
}
.view-map .hall-map-view {
  display:grid;
  width:100%;
  min-height:0;
  flex:1 1 0;
  grid-auto-flow:row;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:auto auto minmax(120px,1fr);
}
.view-map .map-control-strip { grid-column:1; grid-row:1; }
.view-map .hall-focus-nav { grid-column:1; grid-row:2; }
.view-map .map-shell {
  height:100%;
  min-height:120px;
  grid-column:1;
  grid-row:3;
}


/* UMAMI tablet fullscreen v2 */
/* Keep fullscreen next to the map controls, including compact native iPad windows. */
.view-map .content-header [data-action="fullscreen"] { display:none!important; }
.map-zoom .map-fullscreen-button {
  display:inline-flex!important; flex:0 0 auto; align-items:center; justify-content:center;
  width:auto!important; min-width:44px; min-height:44px; padding:0 10px;
  gap:6px; white-space:nowrap; border:1px solid #6b727e; border-radius:7px;
}
.map-fullscreen-button svg { width:18px; height:18px; flex:none; }
.map-fullscreen-button b { font-size:11px; }
.map-fullscreen-button[aria-pressed="true"] { border-color:#52b96b; }
.map-fullscreen-button:disabled { opacity:.55; }
.fullscreen-notice {
  position:fixed; z-index:110; left:50%; bottom:calc(90px + var(--safe-bottom,0px));
  transform:translateX(-50%); display:flex; align-items:center; gap:8px;
  width:calc(100% - 32px); max-width:520px; box-sizing:border-box;
  padding:10px 10px 10px 14px; border:1px solid #626872; border-radius:10px;
  background:#181b21; color:#fff; font:14px/1.4 system-ui,sans-serif;
  box-shadow:0 4px 20px #0008;
}
.fullscreen-notice button {
  flex:0 0 44px; width:44px; height:44px; border:0; border-radius:6px;
  background:#292e36; color:#fff; font-size:24px; cursor:pointer;
}
@media(max-width:600px) {
  .map-fullscreen-button b { display:none; }
  .map-zoom .map-fullscreen-button { padding:0; }
}
@media(max-height:500px) and (max-width:1180px) {
  .map-fullscreen-button b { display:none; }
  .map-zoom .map-fullscreen-button { min-width:40px; min-height:36px; height:36px; padding:0; }
  .fullscreen-notice { bottom:calc(54px + var(--safe-bottom,0px)); }
}
