:root {
  --bg: #121019;
  --surface: #17141f;
  --panel: #282531;
  --panel-2: #332f3d;
  --line: #3d3847;
  --text: #f8f6fb;
  --muted: #b9b2c5;
  --soft: #e6e1eb;
  --accent: #3c9663;
  --accent-2: #e3b93d;
  --danger: #d75c62;
  --focus: #7fd4aa;
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

body:not(.is-authenticated) .app-shell,
body:not(.show-app) .app-shell,
body:not(.is-authenticated) dialog {
  display: none;
}

body.is-authenticated .login-screen {
  display: none;
}

body.show-app .premises-screen {
  display: none;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(18,16,25,.82), rgba(18,16,25,.92)),
    radial-gradient(circle at 24% 18%, rgba(60,150,99,.18), transparent 30%),
    #121019;
}

.login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 18px;
  padding: 34px;
  border: 1px solid #4a4454;
  border-radius: 8px;
  background: #282531;
  box-shadow: 0 28px 80px rgba(0,0,0,.42);
}

.login-mark {
  color: #fff;
  font-size: 38px;
  font-weight: 300;
  letter-spacing: 0;
}

.login-mark::first-letter {
  color: #f0bd2e;
}

.login-card h1 {
  font-size: 26px;
}

.login-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
}

.login-card input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #4a4454;
  border-radius: 6px;
  background: #17141f;
  color: #fff;
  padding: 0 12px;
}

.login-card p {
  color: var(--muted);
  font-size: 13px;
}

.premises-screen {
  min-height: 100vh;
  background: #17131e;
  color: #fff;
  padding: 0;
}

.premises-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 34px;
  padding: 8px 15px 72px;
}

.premises-page h1 {
  font-size: 52px;
  font-weight: 300;
}

.premises-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 24px;
  align-content: start;
}

.premise-card {
  min-height: 216px;
  border: 0;
  border-radius: 6px;
  background: #2b2733;
  color: #fff;
  padding: 28px 16px 18px;
  display: grid;
  align-content: space-between;
  justify-items: start;
  text-align: left;
  box-shadow: 0 2px 0 rgba(0,0,0,.25);
}

.premise-card:hover {
  background: #34303b;
}

.premise-card strong {
  font-size: 24px;
  font-weight: 500;
}

.premise-card small {
  font-size: 16px;
  color: #fff;
}

.store-icon {
  justify-self: center;
  width: 64px;
  height: 52px;
  position: relative;
  margin: 10px auto 44px;
}

.store-icon::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  height: 10px;
  background: #dedde1;
  box-shadow: 0 10px 0 #dedde1;
}

.store-icon::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 28px;
  border: 7px solid #dedde1;
  border-top: 0;
  box-shadow: inset 16px 0 0 -10px transparent;
}

.add-premise-card {
  justify-items: center;
  text-align: center;
}

.plus-mark {
  font-size: 74px;
  color: #dedde1;
  font-weight: 200;
  margin: 12px 0 40px;
}

.premises-footer {
  min-height: 120px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: rgba(255,255,255,.28);
  font-size: 15px;
}

.footer-logo {
  justify-self: center;
  font-size: 34px;
  font-weight: 300;
}

.footer-logo::first-letter {
  color: #c9a526;
}

.premises-footer div:nth-child(2) {
  text-align: center;
}

.premises-footer button {
  justify-self: center;
  min-width: 96px;
  min-height: 36px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
  background: transparent;
  color: rgba(255,255,255,.42);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  height: 100vh;
  min-height: 640px;
  transition: grid-template-columns .18s ease;
}

.sidebar {
  background: #15131c;
  border-right: 1px solid #1f1c27;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 66px);
  margin-top: 66px;
  min-width: 0;
}

.brand {
  height: 66px;
  padding: 14px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  background: #2b2338;
  position: fixed;
  left: 0;
  top: 0;
  width: 248px;
  z-index: 130;
}

.brand strong {
  display: block;
  font-size: 22px;
  font-weight: 500;
  white-space: nowrap;
}

.brand span {
  display: none;
}

.brand div {
  position: fixed;
  left: 64px;
  top: 15px;
  color: var(--text);
  pointer-events: none;
}

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

.nav-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 0 12px;
}

.nav-symbol {
  position: relative;
  width: 24px;
  height: 24px;
  display: inline-block;
  color: var(--soft);
}

.nav-symbol::before,
.nav-symbol::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.icon-dashboard::before {
  inset: 3px;
  background:
    linear-gradient(#fff 0 0) left top / 8px 8px no-repeat,
    linear-gradient(#fff 0 0) right top / 8px 8px no-repeat,
    linear-gradient(#fff 0 0) left bottom / 8px 8px no-repeat,
    linear-gradient(#fff 0 0) right bottom / 8px 8px no-repeat;
}

.icon-calendar::before {
  inset: 4px 3px 3px;
  border: 2px solid #fff;
  border-radius: 3px;
}

.icon-calendar::after {
  left: 6px;
  right: 6px;
  top: 8px;
  height: 2px;
  background: #fff;
  box-shadow: -1px -5px 0 -1px #fff, 9px -5px 0 -1px #fff;
}

.icon-schedule::before {
  inset: 5px 4px;
  background:
    linear-gradient(#fff 0 0) left / 4px 14px no-repeat,
    linear-gradient(#fff 0 0) center / 4px 14px no-repeat,
    linear-gradient(#fff 0 0) right / 4px 14px no-repeat;
}

.icon-list::before {
  left: 4px;
  right: 3px;
  top: 5px;
  height: 3px;
  background: #fff;
  box-shadow: 0 6px 0 #fff, 0 12px 0 #fff;
}

.icon-floor::before {
  left: 5px;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 9px 0 0 #fff, 4px 10px 0 #fff;
}

.icon-customers::before {
  left: 4px;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 8px 1px 0 -1px #fff;
}

.icon-customers::after {
  left: 2px;
  right: 2px;
  bottom: 4px;
  height: 8px;
  border-radius: 999px 999px 2px 2px;
  background: #fff;
}

.icon-reports::before {
  left: 5px;
  bottom: 4px;
  width: 4px;
  height: 8px;
  background: #fff;
  box-shadow: 6px -5px 0 #fff, 12px 2px 0 #fff;
}

.icon-settings::before {
  inset: 4px;
  border: 4px solid #fff;
  border-radius: 50%;
}

.icon-settings::after {
  left: 10px;
  top: 1px;
  width: 4px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px #15131c;
  transform: rotate(45deg);
}

.nav-item b {
  font-weight: 600;
}

.nav-item:hover,
.nav-item.active {
  background: #3a3546;
}

.restaurant-switcher {
  margin-top: auto;
  padding: 14px;
  border-top: 1px solid #272331;
}

.restaurant-switcher label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}

.restaurant-switcher select,
.toolbar select,
.date-tools input {
  width: 100%;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 38px;
  padding: 0 10px;
}

.compact-restaurant-switcher {
  display: none;
  position: relative;
  margin-top: auto;
  padding: 12px 10px;
  border-top: 1px solid #272331;
}

.compact-restaurant-button {
  width: 52px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #211d2a;
  color: #fff;
  display: grid;
  place-items: center;
}

.compact-restaurant-button:hover,
.compact-restaurant-button.active {
  border-color: #f2c12e;
  background: #302a3a;
}

.compact-store-icon {
  width: 25px;
  height: 22px;
  position: relative;
  display: block;
}

.compact-store-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 2px;
  height: 5px;
  background: #fff;
  box-shadow: 0 6px 0 #fff;
}

.compact-store-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 0;
  height: 11px;
  border: 3px solid #fff;
  border-top: 0;
}

.compact-restaurant-menu {
  position: absolute;
  left: 64px;
  bottom: 12px;
  z-index: 120;
  width: 230px;
  border: 1px solid #4a4454;
  border-radius: 7px;
  background: #282531;
  box-shadow: 0 18px 45px rgba(0,0,0,.4);
  padding: 6px;
}

.compact-restaurant-menu button {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #fff;
  text-align: left;
  padding: 0 10px;
}

.compact-restaurant-menu button:hover,
.compact-restaurant-menu button.active {
  background: #3a3546;
}

.toolbar select {
  min-width: 150px;
}

.customer-search-shell {
  width: min(320px, 32vw);
  height: 38px;
  border: 1px solid #514a5c;
  border-radius: 6px;
  background: #17141f;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
}

.customer-search-icon {
  width: 15px;
  height: 15px;
  border: 2px solid #d9d5df;
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
  opacity: .9;
}

.customer-search-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: #d9d5df;
  transform: rotate(45deg);
  right: -6px;
  bottom: -3px;
}

.customer-search-shell:focus-within {
  border-color: #6d657b;
  background: #1d1826;
}

.customer-search-shell input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.customer-search-shell input::placeholder {
  color: #8f8799;
}

.toolbar-search {
  min-width: min(280px, 36vw);
  height: 38px;
  border: 1px solid #514a5c;
  border-radius: 6px;
  background: #17141f;
  color: var(--text);
  padding: 0 12px;
}

.toolbar-search::placeholder {
  color: #8f8799;
}

.workspace {
  height: 100vh;
  overflow-y: auto;
  background: #12101a;
  padding-top: 66px;
}

body.nav-collapsed .app-shell,
body[data-view="schedule"]:not(.nav-expanded) .app-shell {
  grid-template-columns: 72px minmax(0, 1fr);
}

body.nav-collapsed .brand,
body[data-view="schedule"]:not(.nav-expanded) .brand {
  justify-content: flex-start;
  padding: 0;
  width: 248px;
  background: #2b2338;
}

body.nav-collapsed .sidebar,
body[data-view="schedule"]:not(.nav-expanded) .sidebar {
  height: calc(100vh - 66px);
  margin-top: 66px;
}

body.nav-collapsed .nav-item b,
body.nav-collapsed .restaurant-switcher,
body[data-view="schedule"]:not(.nav-expanded) .nav-item b,
body[data-view="schedule"]:not(.nav-expanded) .restaurant-switcher {
  display: none;
}

body.nav-collapsed .compact-restaurant-switcher,
body[data-view="schedule"]:not(.nav-expanded) .compact-restaurant-switcher {
  display: block;
}

body.nav-collapsed #collapseNav,
body[data-view="schedule"]:not(.nav-expanded) #collapseNav {
  width: 72px;
  height: 66px;
  min-width: 72px;
  border: 0;
  border-radius: 0;
  color: transparent;
  background: transparent;
  font-size: 0;
}

body.nav-collapsed #collapseNav::before,
body[data-view="schedule"]:not(.nav-expanded) #collapseNav::before,
#collapseNav::before {
  content: "";
  display: block;
  width: 20px;
  height: 14px;
  margin: 0 auto;
  border-top: 3px solid #f2c12e;
  border-bottom: 3px solid #f2c12e;
  color: #f2c12e;
  box-shadow: inset 0 5px 0 -2px #f2c12e;
}

body:not(.nav-collapsed):not([data-view="schedule"]) #collapseNav,
body[data-view="schedule"].nav-expanded #collapseNav {
  color: transparent;
  font-size: 0;
}

body.nav-collapsed .nav-item,
body[data-view="schedule"]:not(.nav-expanded) .nav-item {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 0;
  min-height: 46px;
  border-radius: 7px;
}

body[data-view="schedule"] .topbar {
  grid-template-columns: 1fr auto 1fr;
  box-shadow: 0 2px 12px rgba(0,0,0,.24);
}

body[data-view="schedule"] .top-actions .primary-button {
  background: transparent;
  border-color: #625b6d;
  color: var(--text);
}

body[data-view="schedule"] .top-actions .primary-button::before {
  content: "";
  width: 14px;
  height: 14px;
  display: inline-block;
  margin-right: 8px;
  border: 2px solid #fff;
  border-radius: 3px;
  vertical-align: -2px;
}

body[data-view="schedule"] .top-actions .soft-button {
  background: transparent;
  border-color: #625b6d;
}

body[data-view="schedule"] #searchButton,
body[data-view="schedule"] .top-actions > .icon-button {
  display: none;
}

.topbar {
  height: 66px;
  background: #2b2338;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 24px 0 224px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
}

.date-tools,
.top-actions,
.toolbar,
.segmented,
.live-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gantt-search-button {
  width: 39px;
  height: 39px;
  border: 1px solid #4c4658;
  border-radius: 7px;
  background: #241f2d;
  color: var(--text);
  position: relative;
}

.gantt-search-button::before {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
  left: 10px;
  top: 9px;
}

.gantt-search-button::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
  left: 22px;
  top: 24px;
}

.gantt-search-button:hover,
.gantt-search-button.active {
  border-color: #6d657b;
  background: #302a3b;
}

.date-tools {
  grid-column: 2;
  justify-self: center;
}

.top-actions {
  grid-column: 3;
  justify-self: end;
}

.add-action-shell {
  position: relative;
}

.add-action-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 40;
  display: none;
  width: 250px;
  padding: 14px;
  border: 1px solid #383342;
  border-radius: 7px;
  background: #302c39;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .5);
}

.add-action-menu.open {
  display: grid;
  gap: 8px;
}

.add-action-menu button {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  text-align: left;
  padding: 0 10px;
}

.add-action-menu button:hover {
  background: #45404d;
}

.add-action-menu span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #6f6a74;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.segmented button {
  min-height: 34px;
  border: 1px solid var(--line);
  background: #221f2a;
  color: var(--text);
  border-radius: 6px;
  padding: 0 10px;
}

.segmented button.active {
  background: var(--soft);
  color: #16131d;
}

.date-tools input {
  width: 152px;
}

.top-date-shell {
  position: relative;
}

.top-date-display {
  min-height: 36px;
  min-width: 118px;
  border: 0;
  border-bottom: 1px solid #c2bdc9;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  padding: 0 6px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.icon-button,
.soft-button,
.primary-button,
.plain-link {
  border-radius: 7px;
  min-height: 38px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 0 13px;
}

.icon-button {
  min-width: 38px;
  padding: 0;
  font-size: 20px;
}

.calendar-button {
  position: relative;
  font-size: 0;
}

.calendar-button::before {
  content: "";
  position: absolute;
  inset: 9px 10px 8px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.calendar-button::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  top: 14px;
  height: 2px;
  background: currentColor;
}

.soft-button {
  background: #332e3d;
}

.primary-button {
  background: var(--accent);
  border-color: #39c080;
  color: #06140d;
  font-weight: 700;
}

.plain-link {
  border: 0;
  color: var(--focus);
  padding: 0;
  min-height: auto;
}

.view {
  display: none;
  padding: 26px;
}

body[data-view="schedule"] .view {
  padding: 14px 0 0 24px;
}

.view.active {
  display: block;
}

body[data-view="schedule"] .workspace {
  overflow: hidden;
}

body[data-view="schedule"] #scheduleView.active {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 66px);
  min-height: 0;
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

body[data-view="schedule"] .page-heading {
  margin: 0 0 26px;
  padding-left: 0;
}

body[data-view="schedule"] .page-heading p {
  display: none;
}

body[data-view="schedule"] .segmented {
  display: flex;
  margin-right: 22px;
}

#scheduleView {
  position: relative;
}

body[data-view="schedule"] h1 {
  font-size: 28px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 14px;
}

.schedule-open-pill {
  height: 24px;
  padding: 0 10px;
  font-size: 13px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 32px;
  font-weight: 650;
}

h2 {
  font-size: 18px;
}

.page-heading p,
.metric-card span,
.metric-card small,
.panel-title span {
  color: var(--muted);
}

.status-pill,
.badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #19492f;
  color: #a8f0c8;
}

.status-pill.noshow {
  background: #4b3b19;
  color: #f2d781;
}

.badge.requested {
  background: #4b3b19;
  color: #f2d781;
}

.badge.request,
.slot-booked.request {
  border-left-color: var(--accent-2);
}

.badge.accepted,
.badge.arrived,
.badge.seated,
.badge.has-left {
  background: #19492f;
  color: #a8f0c8;
}

.badge.cancelled,
.badge.no-show,
.badge.deleted,
.badge.closed {
  background: #55262d;
  color: #ffb3ba;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 16px;
}

.metric-card,
.panel,
.table-card,
.report-card {
  background: var(--panel);
  border: 1px solid #302c3b;
  border-radius: 7px;
}

.metric-card {
  padding: 18px;
}

.metric-card strong {
  display: block;
  font-size: 44px;
  margin-top: 8px;
  line-height: 1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.3fr) minmax(280px, .7fr);
  gap: 18px;
  margin-top: 18px;
}

.panel {
  padding: 18px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.booking-stack {
  display: grid;
  gap: 10px;
}

.booking-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: #1f1c29;
  border: 1px solid #393444;
  border-left: 4px solid var(--accent);
  padding: 12px;
  border-radius: 7px;
  width: 100%;
  color: var(--text);
  text-align: left;
}

.booking-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-card small,
.empty {
  color: var(--muted);
}

.booking-card small {
  display: block;
  margin-top: 3px;
}

.shortcut-grid,
.report-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.shortcut-grid button,
.settings-card {
  min-height: 76px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-weight: 700;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  border: 1px solid var(--line);
  background: var(--line);
  gap: 1px;
}

.weekday,
.day-cell {
  background: var(--surface);
}

.weekday {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.day-cell {
  min-height: 132px;
  padding: 10px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.day-cell.outside {
  color: #777081;
}

.day-cell.selected {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.day-number {
  font-size: 22px;
  color: var(--soft);
}

.pill-line {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  background: #22583c;
  color: #b5f0cf;
}

.pill-line.people {
  background: #4a4651;
  color: #e3ddea;
}

.pill-line.warning {
  background: #65383d;
  color: #ffc3c7;
}

.timeline-wrap {
  border: 0;
  border-radius: 0;
  overflow: auto;
  background: #17141f;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  position: relative;
}

.gantt-search-panel {
  position: absolute;
  top: 58px;
  right: 22px;
  z-index: 70;
  width: min(430px, calc(100vw - 120px));
  max-height: min(620px, calc(100vh - 178px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid #514b5c;
  border-radius: 7px;
  background: #292531;
  box-shadow: 0 22px 52px rgba(0,0,0,.5);
}

.gantt-search-panel[hidden] {
  display: none;
}

.gantt-search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #d8d1df;
  font-weight: 700;
}

.gantt-search-head button {
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  border-color: #575162;
}

#ganttSearchInput {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-bottom: 1px solid #aaa4b1;
  background: #17141f;
  color: var(--text);
  padding: 0 11px;
  font: inherit;
}

#ganttSearchInput:focus {
  outline: 1px solid #e2b526;
  outline-offset: 1px;
}

.gantt-search-results {
  display: grid;
  gap: 4px;
  overflow: auto;
  padding-right: 2px;
}

.gantt-search-result {
  display: grid;
  grid-template-columns: 1.15fr 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border: 0;
  border-radius: 5px;
  background: #342f3c;
  color: var(--text);
  text-align: left;
  padding: 8px 10px;
}

.gantt-search-result:hover {
  background: #46404e;
}

.gantt-search-result span {
  min-width: 0;
}

.gantt-search-result b,
.gantt-search-result strong,
.gantt-search-result small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gantt-search-result small,
.gantt-search-result em {
  color: #b6afbf;
  font-size: 12px;
  font-style: normal;
}

.timeline-header,
.timeline-row {
  display: grid;
  grid-template-columns: 136px repeat(var(--slot-count, 56), 30px);
  grid-template-rows: 39px;
  grid-auto-rows: 39px;
  height: 39px;
  overflow: visible;
  min-height: 39px;
}

.timeline-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #282531;
  min-width: max-content;
  border-bottom: 1px solid #383242;
  grid-template-rows: 84px 34px;
  height: 118px;
  min-height: 118px;
}

.timeline-body {
  position: relative;
  min-width: max-content;
}

.current-time-line {
  position: absolute;
  width: 2px;
  background: #e5b62a;
  box-shadow: 0 0 0 1px rgba(229, 182, 42, .16);
  pointer-events: none;
}

.current-time-line.body {
  top: 0;
  bottom: 0;
  z-index: 9;
}

.timeline-header div,
.timeline-row > div {
  min-height: 39px;
  border-right: 1px solid #373241;
  border-bottom: 1px solid #373241;
  display: flex;
  align-items: center;
  padding: 0 6px;
}

.corner-cell {
  position: sticky;
  left: 0;
  z-index: 41;
  background: #282531;
  font-weight: 700;
}

.capacity-cell {
  grid-row: 2;
  color: var(--muted);
}

.time-cell {
  height: 84px;
  align-items: flex-start;
  justify-content: center;
  color: #a69ead;
  font-size: 12px;
}

.time-cell span {
  display: block;
  transform: rotate(-90deg);
  transform-origin: center;
  white-space: nowrap;
}

.time-cell.hour,
.load-cell.hour {
  border-left: 1px solid #766f7f;
}

.load-cell {
  grid-row: 2;
  min-height: 34px !important;
  align-items: center;
  justify-content: center;
  color: #817989;
  font-size: 11px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-variant-numeric: tabular-nums;
}

.timeline-group {
  min-width: max-content;
}

.timeline-group h2 {
  position: sticky;
  left: 0;
  z-index: 3;
  width: max(136px, 100vw);
  height: 54px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 22px;
  background: #17141f;
  border-bottom: 1px solid #373241;
  font-size: 25px;
  font-weight: 500;
}

.timeline-row .table-label {
  position: sticky;
  left: 0;
  grid-column: 1;
  grid-row: 1;
  background: #1d1a25;
  z-index: 12;
  justify-content: space-between;
  font-size: 14px;
}

.timeline-row {
  position: relative;
  background: #1f1c27;
}

.timeline-row::before {
  content: "";
  position: absolute;
  left: 136px;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
  background:
    repeating-linear-gradient(90deg, transparent 0 29px, rgba(255,255,255,.045) 29px 30px),
    repeating-linear-gradient(90deg, transparent 0 59px, rgba(255,255,255,.16) 59px 60px),
    repeating-linear-gradient(90deg, transparent 0 119px, #686170 119px 120px);
}

.timeline-row::after {
  content: "";
  position: absolute;
  left: 136px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255,255,255,.075);
  pointer-events: none;
  z-index: 2;
}

.timeline-row .timeline-cell {
  border-bottom: 0;
}

.timeline-row .table-label small {
  min-width: 42px;
  text-align: center;
  border-radius: 999px;
  background: #36313e;
  color: var(--muted);
  font-size: 12px;
  padding: 3px 7px;
}

.timeline-row.no-table-row .table-label {
  justify-content: flex-start;
  background: #1f1c27;
}

.no-table-chip {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffd438;
  color: #15131c;
  font-size: 14px;
  font-weight: 500;
}

.timeline-cell {
  border: 0;
  padding: 0;
  cursor: crosshair;
  background: transparent;
  border-left: 0;
}

.timeline-cell:nth-child(2n + 2) {
  border-left: 0;
}

.timeline-cell.half-hour {
  border-left: 0;
}

.timeline-cell.hour {
  border-left: 0;
}

.timeline-cell:hover {
  background: #2a5d42;
}

.slot-booked {
  grid-row-start: 1;
  grid-row-end: 2;
  align-self: center;
  justify-self: stretch;
  height: 36px;
  margin: 0 2px;
  border: 1px solid #5f5a64;
  --bar-bg: #4c4c4a;
  --bar-tools-bg: #686764;
  --bar-strip: #36c37a;
  background: var(--bar-bg);
  color: #fff;
  border-radius: 6px;
  padding: 0 0 0 10px;
  font-size: 14px;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  z-index: 6;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 1px 3px rgba(0,0,0,.35);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.slot-booked:active {
  cursor: grabbing;
}

body.is-dragging-booking,
body.is-dragging-booking * {
  cursor: grabbing !important;
  user-select: none;
}

.slot-booked .bar-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
  font-weight: 700;
}

.bar-tools {
  height: 100%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 7px;
  background: var(--bar-tools-bg);
  pointer-events: auto;
}

.bar-tools:hover {
  filter: brightness(1.12);
}

.bar-meta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bar-risk-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ff2f2f;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset;
}

.bar-count {
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}

.bar-status-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.bar-status-icon .booking-option-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.slot-booked.confirmed {
  border-left: 4px solid var(--bar-strip);
}

.slot-booked.accepted {
  --bar-bg: #464642;
  --bar-tools-bg: #5e5e59;
  --bar-strip: #36c37a;
  border-left: 4px solid var(--bar-strip);
}

.slot-booked.request {
  --bar-bg: #464642;
  --bar-tools-bg: #5e5e59;
  --bar-strip: #f0bd2e;
  border-left: 4px solid var(--bar-strip);
}

.slot-booked.arrived {
  --bar-bg: #f43a32;
  --bar-tools-bg: #ff433b;
  --bar-strip: #f43a32;
  border-color: #5f5a64;
  border-left: 4px solid var(--bar-strip);
}

.slot-booked.seated {
  --bar-bg: #bf1919;
  --bar-tools-bg: #d11d1d;
  --bar-strip: #bf1919;
  border-color: #5f5a64;
  border-left: 4px solid var(--bar-strip);
}

.slot-booked.has-left {
  --bar-bg: #4a3569;
  --bar-tools-bg: #563d78;
  --bar-strip: #4a3569;
  border-color: #5f5a64;
  border-left: 4px solid var(--bar-strip);
}

.slot-booked.cancelled {
  --bar-bg: #6b4248;
  --bar-tools-bg: #80515a;
  --bar-strip: #e0666b;
  border-color: #5f5a64;
  border-left: 4px solid var(--bar-strip);
}

.slot-booked.no-show {
  --bar-bg: #5d4a57;
  --bar-tools-bg: #725b6d;
  --bar-strip: #d5d0dc;
  border-color: #5f5a64;
  border-left: 4px solid var(--bar-strip);
}

.slot-booked.deleted {
  --bar-bg: #5f4141;
  --bar-tools-bg: #765050;
  --bar-strip: #e0666b;
  border-color: #5f5a64;
  border-left: 4px solid var(--bar-strip);
}

.slot-booked.closed {
  --bar-bg: #3f3d43;
  --bar-tools-bg: #54515a;
  --bar-strip: #d5d0dc;
  color: #d7d1db;
  border-color: #5f5a64;
  border-left: 4px solid var(--bar-strip);
}

.slot-booked.closed .bar-tools {
  min-width: 32px;
}

.slot-booked.dragging {
  opacity: .62;
  pointer-events: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0,0,0,.52);
}

.drag-drop-preview {
  position: relative;
  grid-row: 1 / 2;
  align-self: center;
  justify-self: stretch;
  height: 34px;
  margin: 0 2px;
  border: 2px dashed rgba(255,255,255,.85);
  border-radius: 5px;
  background: rgba(255,255,255,.04);
  z-index: 8;
  pointer-events: none;
  min-width: 0;
}

.drag-drop-preview span {
  position: absolute;
  left: 8px;
  top: -32px;
  min-width: max-content;
  border-radius: 5px;
  background: #8a858d;
  color: #fff;
  padding: 5px 9px;
  font-size: 14px;
  box-shadow: 0 10px 22px rgba(0,0,0,.35);
}

.bar-status-menu {
  position: fixed;
  z-index: 1200;
  display: grid;
  padding: 0;
  border-radius: 0 0 5px 5px;
  background: #2d2935;
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
  overflow: hidden;
}

.bar-status-menu button {
  min-height: 39px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  background: transparent;
  color: #fff;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 0 14px;
  font-size: 16px;
}

.bar-status-menu button:hover,
.bar-status-menu button.selected {
  background: #56525b;
}

.bar-status-menu .booking-option-icon {
  width: 23px;
  height: 23px;
}

.floating-add {
  position: fixed;
  right: 26px;
  bottom: 24px;
  z-index: 25;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  box-shadow: 0 16px 45px rgba(0,0,0,.42);
}

.table-card {
  overflow: auto;
}

.customer-row {
  cursor: pointer;
}

.customer-row:hover {
  background: #302b3a;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 15px 16px;
}

th {
  color: var(--muted);
  font-weight: 600;
}

.customer-flag-reason {
  display: block;
  max-width: 420px;
  margin-top: 5px;
  color: #c9c2d0;
  line-height: 1.35;
}

.customer-detail-card {
  width: min(1280px, 86vw);
  min-height: min(640px, 78vh);
  padding: 0;
  overflow: hidden;
}

.customer-detail-heading {
  height: 72px;
  border-bottom: 1px solid #3d3748;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.customer-detail-heading h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
}

.customer-detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.customer-detail-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 568px;
}

.customer-detail-profile {
  padding: 28px 24px;
  border-right: 1px solid #3d3748;
}

.customer-avatar {
  width: 150px;
  height: 150px;
  border-radius: 999px;
  margin-bottom: 26px;
  background: radial-gradient(circle at center, #d2e86c 0 45%, #eef5bf 46% 53%, #d2e86c 54% 100%);
  color: #2d2935;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  font-weight: 800;
}

.customer-detail-profile dl {
  margin: 0;
}

.customer-detail-profile dt {
  margin-top: 18px;
  color: #b9b1c2;
  font-size: 12px;
  font-weight: 700;
}

.customer-detail-profile dd {
  margin: 5px 0 0;
  color: #fff;
}

.customer-detail-main {
  padding: 28px 32px 34px;
  overflow: auto;
}

.customer-detail-section + .customer-detail-section {
  margin-top: 34px;
}

.customer-detail-section h3,
.customer-booking-title h3 {
  margin: 0;
  font-size: 23px;
}

.customer-detail-tags {
  min-height: 42px;
  border-bottom: 1px solid #bdb6c7;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
  margin-top: 18px;
}

.customer-detail-note {
  margin: 10px 0 0;
  color: #7fd29a;
  font-size: 13px;
}

.customer-booking-title {
  border-bottom: 1px solid #3d3748;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
}

.customer-booking-title span,
.empty-inline {
  color: #b9b1c2;
  font-size: 13px;
}

.customer-booking-history {
  display: grid;
}

.customer-booking-row {
  min-height: 76px;
  border: 0;
  border-bottom: 1px solid #3d3748;
  background: transparent;
  color: #fff;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  align-items: center;
  gap: 18px;
  text-align: left;
  padding: 10px 0;
}

.customer-booking-row:hover {
  background: rgba(255,255,255,.035);
}

.customer-booking-row span {
  display: grid;
  gap: 5px;
}

.customer-booking-row small {
  color: #c9c2d0;
}

.customer-booking-row .status-button {
  justify-self: end;
}

.booking-list-row {
  background: #282531;
}

.booking-list-row:hover {
  background: #332f3d;
}

.booking-list-row td {
  vertical-align: middle;
}

.booking-list-row td span,
.booking-list-row small {
  color: #aaa3b2;
}

.list-source {
  width: 42px;
  color: #fff;
  background: #44414b;
  text-align: center;
  font-size: 12px;
}

.list-timing {
  color: #63cb8c;
  font-size: 13px;
}

.people-dot {
  width: 25px;
  height: 25px;
  border: 1px solid #87818e;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
}

.table-list-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  background: #5a5661;
  color: #fff !important;
}

.history-panel {
  margin-top: 16px;
}

.history-panel .panel-title span {
  color: var(--muted);
  font-size: 13px;
}

.history-list {
  display: grid;
  gap: 7px;
}

.history-item {
  border: 1px solid #3a3444;
  border-radius: 6px;
  background: #211d2a;
  color: var(--text);
  text-align: left;
  padding: 9px 12px;
  display: grid;
  gap: 4px;
}

.history-item:hover {
  background: #302b38;
}

.history-item small {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.history-item strong {
  font-size: 13px;
}

.history-item > span {
  color: #aaa3b2;
  font-size: 12px;
}

.status-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid #5c5665;
  border-radius: 7px;
  padding: 0 18px;
  color: #fff;
  font-weight: 700;
}

.floor-layout {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) 330px;
  gap: 0;
}

.floor-map {
  min-height: 590px;
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.floor-side {
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: #14111b;
}

.floor-side-filters {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 18px;
}

.floor-side-filters button {
  min-height: 32px;
  border: 0;
  border-bottom: 1px solid #8b8493;
  background: transparent;
  color: #fff;
  padding: 0 8px;
}

.floor-empty {
  text-align: center;
  margin-top: 36px;
}

.table-shape {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2e955e;
  border: 1px solid #51b87d;
  color: white;
  border-radius: 6px;
  font-weight: 800;
  box-shadow: 0 0 0 9px rgba(255,255,255,.13);
}

.table-shape.busy {
  background: #b38230;
  border-color: #e3b93d;
}

.table-shape.blocked {
  background: #6f3540;
  border-color: #d75c62;
}

.floor-side {
  min-height: 590px;
  overflow: auto;
}

.report-grid {
  grid-template-columns: repeat(4, minmax(170px, 1fr));
}

.report-card {
  min-height: 210px;
  padding: 24px;
  display: grid;
  gap: 14px;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.report-card span {
  font-size: 54px;
}

.settings-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.settings-tabs button {
  min-height: 46px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
}

.settings-tabs button.active {
  border-bottom-color: var(--accent);
  color: var(--text);
}

.settings-card {
  padding: 24px;
  text-align: center;
  min-height: 215px;
  display: grid;
  align-content: center;
  justify-items: center;
}

.settings-card span {
  display: block;
  font-size: 58px;
  margin-bottom: 16px;
}

.settings-card small {
  display: block;
  color: var(--muted);
  margin-top: 7px;
  line-height: 1.4;
}

.settings-users-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  max-width: 920px;
}

.settings-user-card,
.invite-user-form,
.settings-user-list {
  background: #24202c;
  border: 1px solid #3f3949;
  border-radius: 8px;
  padding: 16px;
}

.settings-user-card span,
.settings-user-card small,
.settings-user-row small {
  display: block;
  color: var(--muted);
}

.invite-user-form {
  display: grid;
  grid-template-columns: 1.4fr 1fr 180px auto;
  align-items: end;
  gap: 12px;
}

.invite-user-form label {
  color: var(--muted);
  font-size: 13px;
}

.invite-user-form input,
.invite-user-form select,
.invite-user-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 0;
  border-bottom: 1px solid #aaa4b1;
  background: #17141f;
  color: var(--text);
}

.invite-user-form input,
.invite-user-form select {
  min-height: 40px;
  padding: 0 10px;
}

.invite-user-form textarea {
  min-height: 92px;
  resize: vertical;
  border: 1px solid #4c4558;
  border-radius: 7px;
  background: linear-gradient(180deg, #211d2a 0%, #181420 100%);
  padding: 12px 13px;
  line-height: 1.45;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.invite-user-form input:focus,
.invite-user-form select:focus,
.invite-user-form textarea:focus {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(62, 166, 113, .18);
}

.invite-user-form textarea::placeholder {
  color: rgba(218, 213, 225, .42);
}

.sms-content-form {
  grid-template-columns: 1fr 1fr auto;
  align-items: start;
}

.sms-content-form label {
  font-size: 14px;
}

.sms-content-form .primary-button {
  align-self: end;
  min-height: 42px;
}

.invite-user-form p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.settings-user-list {
  display: grid;
  gap: 6px;
}

.settings-user-row {
  display: grid;
  grid-template-columns: 1fr 140px 120px;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #302b39;
}

dialog {
  border: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  max-width: none;
  max-height: none;
}

#bookingDialog[open] {
  width: fit-content;
  height: fit-content;
  max-width: 85vw;
  max-height: 85vh;
  margin: auto;
  inset: 0;
}

.booking-editor {
  width: 85vw;
  height: 85vh;
}

.booking-editor-grid {
  display: grid;
  grid-template-columns: minmax(760px, 2fr) minmax(390px, 1fr);
  gap: 0;
  min-height: 0;
  overflow: auto;
}

.booking-editor-main,
.booking-editor-side {
  display: grid;
  gap: 16px 22px;
  align-content: start;
}

.booking-editor-main {
  grid-template-columns: minmax(360px, 1.15fr) minmax(260px, .85fr);
  padding: 22px 24px 28px 22px;
}

.booking-editor-side {
  padding: 28px 20px 28px 24px;
  border-left: 1px solid #3e3848;
}

.booking-editor-side label {
  display: grid;
  gap: 6px;
}

.booking-editor.editing .booking-editor-side {
  grid-template-rows: auto auto;
  align-content: start;
  gap: 4px;
}

.booking-top-row,
.booking-table-row {
  grid-column: 1 / -1;
}

.booking-editor-main > label:not(.notification-row) {
  grid-column: 1;
}

.contact-fields,
.customer-suggestions,
.notification-row {
  grid-column: 1;
}

.booking-details-box {
  grid-column: 2;
  grid-row: 3 / span 5;
  display: grid;
  gap: 16px;
  align-content: start;
}

.detail-fields,
.status-fields {
  display: grid;
  gap: 16px;
}

.resos-field {
  position: relative;
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.resos-field > span {
  font-size: 13px;
}

.resos-field-line,
.resos-stepper {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  gap: 6px;
  align-items: center;
}

.field-value,
.mini-icon {
  min-height: 40px;
  border: 0;
  border-bottom: 1px solid #c2bdc9;
  border-radius: 0;
  background: transparent;
  color: var(--text);
}

.field-value {
  width: 100%;
  text-align: left;
  padding: 0 4px;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-icon {
  width: 28px;
  color: var(--soft);
  font-size: 18px;
}

.field-value[data-picker] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mini-icon:hover,
.field-value:hover {
  background: #34303d;
}

.table-chip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  border: 1px solid transparent;
  border-bottom-color: #c2bdc9;
}

.table-control-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 7px;
  align-items: end;
}

.date-control-line,
.time-control-line,
.people-control-line,
.duration-control-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px 28px;
  gap: 7px;
  align-items: end;
}

.table-clear,
.table-lock,
.date-step,
.time-step,
.people-step,
.duration-step {
  width: 34px;
  min-height: 34px;
  border: 1px solid #4e4857;
  border-radius: 999px;
  color: #ddd8e3;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.duration-step {
  width: 28px;
  min-height: 28px;
  align-self: center;
  border-color: #c2bdc9;
  font-size: 18px;
}

.table-lock.locked {
  border-color: var(--accent);
  color: #fff;
  background: #23593e;
}

.table-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  border-radius: 999px;
  background: #5b5861;
  color: #fff;
  padding: 0 12px;
}

.table-chip b {
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #ded9e5;
  padding: 2px 7px;
  font-size: 12px;
}

.table-chip-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: -3px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #d8d3dd;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.table-chip-clear:hover {
  background: rgba(255,255,255,.24);
  color: #fff;
}

.table-chip-row em {
  flex: 0 0 auto;
}

.table-placeholder {
  min-height: 32px;
  display: inline-block;
}

.icon-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.selected-option,
.icon-menu-option {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.selected-option {
  overflow: hidden;
}

.booking-option-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-value::after,
.field-value[data-picker="time"]::after,
.field-value[data-picker="people"]::after,
.field-value[data-picker="duration"]::after {
  content: "";
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #f0edf4;
  transform: translateY(1px);
}

.chevron-down {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #f0edf4;
  transform: translateY(1px);
}

.resos-stepper .mini-icon {
  align-self: center;
  width: 24px;
  min-height: 24px;
  border: 1px solid #c2bdc9;
  border-radius: 999px;
  font-size: 15px;
}

.top-date-menu {
  min-width: 310px;
}

.picker-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 30;
  display: none;
  min-width: 100%;
  max-height: 260px;
  overflow-x: hidden;
  overflow-y: auto;
  background: #2c2835;
  border: 1px solid #4c4658;
  border-radius: 7px;
  box-shadow: 0 18px 45px rgba(0,0,0,.45);
  padding: 6px;
}

.picker-menu::-webkit-scrollbar,
.timeline-wrap::-webkit-scrollbar,
.workspace::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.picker-menu::-webkit-scrollbar-track,
.timeline-wrap::-webkit-scrollbar-track,
.workspace::-webkit-scrollbar-track {
  background: #17141f;
}

.picker-menu::-webkit-scrollbar-thumb,
.timeline-wrap::-webkit-scrollbar-thumb,
.workspace::-webkit-scrollbar-thumb {
  background: #5b5565;
  border-radius: 999px;
}

.picker-menu.open {
  display: grid;
  gap: 4px;
}

.picker-menu.floating-picker {
  position: fixed;
  z-index: 1000;
  overflow-y: auto;
}

.grid-picker {
  grid-template-columns: 1fr;
  min-width: 310px;
  max-height: none;
  overflow: visible;
}

.compact-picker {
  min-width: 220px;
}

.table-picker-menu {
  grid-template-columns: 1fr;
  min-width: min(780px, 82vw);
  max-height: 300px;
  padding: 0;
}

.picker-menu button {
  min-height: 36px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 8px 10px;
}

.picker-menu button.icon-menu-option {
  min-height: 39px;
  width: 100%;
  justify-content: flex-start;
  font-size: 16px;
}

.picker-menu button:hover,
.picker-menu button.selected {
  background: #4b4653;
}

.date-picker-menu {
  min-width: 310px;
  max-height: none;
  padding: 0;
  overflow: visible;
}

.date-calendar {
  display: grid;
  width: 310px;
  background: #2d2935;
}

.date-calendar-year {
  padding: 18px 18px 4px;
  color: #aaa3b2;
}

.date-calendar-title {
  padding: 0 18px 18px;
  font-size: 28px;
  font-weight: 700;
  background: #17141f;
}

.date-calendar-month {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.date-calendar-weekdays,
.date-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0 14px;
}

.date-calendar-weekdays span {
  text-align: center;
  color: #aaa3b2;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 0;
}

.date-calendar-days button {
  min-height: 38px;
  padding: 0;
  text-align: center;
  border-radius: 999px;
}

.date-calendar-days button.muted {
  color: #797280;
}

.date-calendar-days button.today {
  color: #ffd438;
  font-weight: 800;
}

.date-calendar-days button.selected {
  background: var(--accent);
  color: #fff;
}

.date-calendar-days button.selected.today {
  color: #fff;
}

.date-calendar-actions {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px 16px;
}

.date-calendar-actions button {
  color: #4fc27e;
}

.table-picker-menu button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-radius: 0;
  min-height: 36px;
  padding: 8px 16px;
}

.table-picker-menu button span {
  display: inline-flex;
  gap: 8px;
}

.table-picker-menu b {
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 1px 7px;
  background: #5a5661;
  color: #ddd7e4;
}

.table-picker-menu small {
  color: var(--muted);
}

.clock-picker {
  width: 300px;
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: 7px;
}

.clock-value {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #17141f;
  color: #f8f6fb;
  font-size: 58px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.clock-value em {
  color: #8e8797;
  font-style: normal;
}

.clock-face {
  position: relative;
  height: 285px;
  background: #2d2935;
}

.clock-face::before {
  content: "";
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  background: #292532;
}

.clock-face i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
}

.clock-face button {
  position: absolute;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d7d0de;
  z-index: 1;
}

.clock-face button.minute {
  width: 32px;
  height: 32px;
  min-height: 32px;
  font-size: 12px;
  color: #aaa3b2;
}

.clock-face button.selected {
  background: var(--accent);
  color: #fff;
}

.clock-actions {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #2d2935;
  padding: 0 18px;
}

.clock-actions button {
  min-height: 34px;
  color: #4fc27e;
  padding: 0 8px;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.toggle-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.toggle-row input {
  width: 18px;
  height: 18px;
  min-height: 18px;
}

.activity-panel {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: grid;
  gap: 6px;
}

.activity-panel[hidden] {
  display: none;
}

.booking-editor.editing .activity-panel {
  order: 1;
  border-top: 0;
  padding-top: 0;
  align-content: start;
  min-height: 0;
  overflow-y: auto;
  gap: 2px;
}

.booking-editor.editing .side-message-field,
.booking-editor.editing .side-note-field {
  order: 2;
}

.booking-editor.editing .side-message-field {
  display: none;
}

.booking-editor.editing[data-compact-entry="message"] .side-note-field {
  display: none;
}

.booking-editor.editing[data-compact-entry="message"] .side-message-field {
  display: grid;
}

.edit-side-status {
  min-height: 28px;
  border-bottom: 1px solid #3e3848;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #75c990;
  font-size: 12px;
}

.edit-side-status b {
  color: #fff;
  font-size: 12px;
}

.compact-entry-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 5px;
}

.compact-entry-tabs button {
  min-height: 30px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #c7c0ce;
  font-size: 12px;
}

.compact-entry-tabs button.active {
  border-bottom-color: #35ad70;
  color: #fff;
}

.activity-item {
  border-radius: 6px;
  background: transparent;
  border: 0;
  padding: 3px 0;
  display: grid;
  gap: 3px;
  text-align: center;
  font-size: 12px;
}

.activity-item small {
  color: var(--muted);
  display: inline-flex;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  line-height: 14px;
}

.activity-item small b {
  color: #eeeaf2;
  font-weight: 700;
}

.activity-item > span {
  display: block;
  width: 88%;
  justify-self: center;
  border-radius: 6px;
  background: #3b3742;
  padding: 5px 10px;
  color: #fff;
  font-weight: 700;
  line-height: 13px;
}

.activity-item.note-entry > span {
  background: #207bd4;
}

.activity-item.message-entry > span {
  background: #68666a;
}

.activity-item.warning-entry small {
  color: #f3c348;
}

.activity-item.warning-entry > span {
  background: #3b3742;
  color: #fff;
  border-left: 0;
  position: relative;
}

.activity-item.warning-entry > span::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-right: 8px;
  border-radius: 999px;
  background: #e83a3a;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.booking-editor.editing textarea {
  min-height: 50px;
  height: 50px;
  border-radius: 7px;
  border: 0;
  resize: none;
}

.booking-editor.editing .side-note-field textarea {
  background: #79c8f2 !important;
  color: #132230;
}

.booking-editor.editing .side-note-field textarea::placeholder {
  color: #315264;
}

.booking-editor.editing .side-message-field textarea {
  background: #68666a !important;
  color: #fff;
}

.booking-editor.editing .side-message-field textarea::placeholder {
  color: #ddd9df;
}

.booking-editor.editing .side-message-field,
.booking-editor.editing .side-note-field {
  color: transparent;
  font-size: 0;
  line-height: 0;
  gap: 0;
  position: relative;
}

.booking-editor.editing .side-message-field textarea,
.booking-editor.editing .side-note-field textarea {
  font-size: 15px;
  line-height: 20px;
  padding-right: 54px;
}

.entry-send-button {
  display: none;
}

.booking-editor.editing .entry-send-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.booking-editor.editing .side-note-field .entry-send-button {
  color: #132230;
}

.danger-button {
  border-radius: 7px;
  min-height: 38px;
  border: 1px solid #8c4249;
  background: #5b252c;
  color: #ffd4d7;
  padding: 0 13px;
  margin-right: auto;
}

.booking-warning {
  min-height: 52px;
  border-radius: 7px;
  background: #fb8217;
  color: #fff;
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  font-weight: 600;
}

.booking-warning.risk-warning {
  background: #c83434;
}

.booking-warning[hidden] {
  display: none;
}

.booking-warning strong {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.22);
}

.booking-warning button {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
}

.confirm-card {
  width: min(560px, calc(100vw - 30px));
}

.confirm-card p {
  color: var(--muted);
  line-height: 1.45;
}

dialog::backdrop {
  background: rgba(0,0,0,.58);
}

.dialog-card {
  width: min(520px, calc(100vw - 30px));
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 18px;
  border-radius: 8px;
  display: grid;
  gap: 13px;
}

.dialog-card.booking-editor {
  width: 85vw;
  height: 85vh;
  max-height: 85vh;
  padding: 0;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 0;
  background: #282531;
  border: 1px solid #4a4454;
  border-radius: 8px;
}

.dialog-card.confirm-card {
  width: min(560px, calc(100vw - 30px));
}

.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.booking-editor .dialog-heading {
  min-height: 70px;
  padding: 0 22px;
  border-bottom: 1px solid #211e28;
}

.booking-editor .dialog-heading h2 {
  font-size: 24px;
  font-weight: 700;
}

.booking-editor .dialog-heading h2 small {
  color: #9f99a8;
  font-size: 20px;
  font-weight: 700;
}

.booking-editor .dialog-heading .dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 60;
  border-color: #4e4858;
  background: #2b2733;
}

.dialog-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  min-width: 0;
}

.booking-editor .customer-name-field {
  gap: 4px;
  line-height: 16px;
}

.dialog-card input,
.dialog-card select,
.dialog-card textarea {
  background: #171521;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 38px;
  padding: 8px 10px;
}

.booking-editor-grid {
  padding: 0;
}

.booking-editor .dialog-card input,
.booking-editor .dialog-card select,
.booking-editor .dialog-card textarea {
  min-width: 0;
}

.booking-editor input,
.booking-editor select,
.booking-editor textarea {
  font-size: 15px;
}

.booking-editor input:not([type="checkbox"]),
.booking-editor select {
  border: 0;
  border-bottom: 1px solid #c2bdc9;
  border-radius: 0;
  background: transparent;
  padding: 8px 4px;
}

.booking-editor .customer-name-field input {
  min-height: 20px;
  height: 27px;
  padding-top: 0;
  padding-bottom: 2px;
  line-height: 20px;
}

.booking-editor textarea {
  min-height: 126px;
  resize: vertical;
  background: #181521;
  border-color: #474151;
  border-radius: 5px;
}

.booking-editor input:focus,
.booking-editor select:focus,
.booking-editor textarea:focus,
.field-value:focus,
.mini-icon:focus {
  outline: 2px solid #f0bb25;
  outline-offset: 1px;
}

.phone-combo {
  display: grid;
  grid-template-columns: minmax(164px, .55fr) minmax(0, 1fr);
  gap: 10px;
}

.phone-combo select,
.phone-combo input {
  width: 100%;
}

.customer-match-summary {
  display: block;
  min-height: 14px;
  margin: 4px 0 0;
  color: #b7b1bf;
  font-size: 13px;
  line-height: 14px;
}

.customer-match-summary[hidden] {
  display: none;
}

.customer-match-icon {
  color: #58b479;
  font-weight: 800;
}

.customer-suggestions {
  margin-top: -14px;
  border-top: 1px solid #3f3947;
  border-bottom: 1px solid #3f3947;
  background: #302c38;
  max-height: 134px;
  overflow-y: auto;
}

.customer-suggestions button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid #3f3947;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 8px 12px;
}

.customer-suggestions button:hover {
  background: #403b49;
}

.new-customer-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
}

.new-customer-row span {
  font-size: 22px;
  line-height: 1;
}

.customer-suggestion-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
}

.customer-suggestion-row strong,
.customer-suggestion-row small {
  grid-column: 1;
}

.customer-suggestion-row small {
  color: #d9d3df;
}

.customer-suggestion-row em {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: #75c990;
  font-style: normal;
  font-size: 13px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

menu {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 8px 0 0;
}

.booking-editor menu {
  min-height: 72px;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 14px;
  background: #282531;
  border-top: 1px solid #211e28;
}

.booking-editor .booking-warning {
  margin: 0 20px 12px;
}

.booking-editor .danger-button {
  margin-right: 0;
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .app-shell {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  body.nav-expanded .app-shell {
    grid-template-columns: 248px minmax(0, 1fr);
  }

  .nav-item b,
  .restaurant-switcher {
    display: none;
  }

  body.nav-expanded .nav-item b,
  body.nav-expanded .restaurant-switcher {
    display: block;
  }

  body:not(.nav-expanded) .compact-restaurant-switcher {
    display: block;
  }

  body.nav-expanded .compact-restaurant-switcher {
    display: none;
  }

  body.nav-expanded .nav-item {
    grid-template-columns: 36px 1fr;
    justify-items: stretch;
    padding: 0 12px;
  }

  body[data-view="schedule"] .brand div {
    display: block;
  }

  .topbar,
  .page-heading,
  .floor-layout,
  .dashboard-grid {
    display: grid;
  }

  .metric-grid,
  .report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-grid {
    grid-template-columns: repeat(7, minmax(84px, 1fr));
  }

  .day-cell {
    min-height: 110px;
  }

  .booking-editor,
  .dialog-card.booking-editor {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    overflow: hidden;
  }

  .booking-editor-grid {
    grid-template-columns: 1fr;
    padding: 0 18px;
  }

  .booking-editor .booking-editor-grid {
    grid-template-columns: minmax(760px, 2fr) minmax(390px, 1fr);
    min-width: 1150px;
    padding: 0;
  }

  .booking-editor-main,
  .booking-editor-side {
    padding: 0 0 18px;
  }

  .booking-editor .booking-editor-main {
    grid-template-columns: minmax(360px, 1.15fr) minmax(260px, .85fr);
    padding: 22px 24px 28px 22px;
  }

  .booking-editor-side {
    border-left: 0;
    border-top: 1px solid #3e3848;
    padding-top: 18px;
  }

  .booking-editor .booking-editor-side {
    border-left: 1px solid #3e3848;
    border-top: 0;
    padding: 28px 20px 28px 24px;
  }

  .three-col,
  .two-col {
    grid-template-columns: 1fr;
  }

  .booking-editor .three-col {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }

  .phone-combo {
    grid-template-columns: 1fr;
  }

  .booking-editor .phone-combo {
    grid-template-columns: minmax(164px, .55fr) minmax(0, 1fr);
  }

  menu {
    position: sticky;
    bottom: 0;
    background: var(--panel);
    padding-top: 12px;
  }
}
