:root {
  --bg: #f4f7fb;
  --bg-soft: #edf2f8;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-soft: #f7f9fc;
  --line: rgba(99, 118, 143, 0.16);
  --line-strong: rgba(54, 118, 255, 0.22);
  --text: #172334;
  --muted: #66758b;
  --accent: #2f6fed;
  --accent-2: #67a4ff;
  --warm: #f7b955;
  --danger: #d85c5c;
  --warning: #d78b24;
  --ok: #2c9b67;
  --mono: "IBM Plex Mono", monospace;
  --sans: "Sora", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(103, 164, 255, 0.14), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(247, 185, 85, 0.12), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%);
}

a {
  color: inherit;
}

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

.ops-shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
  transition: grid-template-columns 180ms ease;
}

.ops-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 16px 10px 14px;
  border-right: 1px solid var(--line);
  background: linear-gradient(185deg, #f8fbff 0%, #eef3f9 60%, #e8eef7 100%);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 180ms ease, opacity 180ms ease;
  overflow-y: auto;
  scrollbar-width: thin;
}

.ops-sidebar-handle {
  position: fixed;
  top: 16px;
  left: 216px;
  z-index: 50;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  padding: 0;
  box-shadow: 0 2px 8px rgba(29, 45, 70, 0.12);
  transition: left 180ms ease, top 180ms ease;
  display: inline-grid;
  place-items: center;
  gap: 3px;
  font-size: 0;
  background: white;
  border: 1px solid var(--line);
}

.ops-sidebar-handle span {
  display: block;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  opacity: 0.78;
}

body.ops-sidebar-collapsed .ops-shell {
  grid-template-columns: 1fr;
}

body.ops-sidebar-collapsed .ops-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  transform: translateX(-110%);
  opacity: 0;
  pointer-events: none;
}

body.ops-sidebar-collapsed .ops-main {
  min-width: 0;
}

body.ops-sidebar-collapsed .ops-sidebar-handle {
  left: 12px;
}

.ops-brand {
  padding: 2px 6px 6px;
  max-width: 195px;
}
.ops-brand h1 {
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ops-brand .ops-overline {
  font-size: 9px;
  margin-bottom: 2px;
}

.ops-brand p {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.45;
  max-width: 200px;
  display: none;
}

.ops-brand h1,
.ops-topbar h2,
.ops-section-head h3,
.ops-card strong {
  margin: 0;
}

.ops-brand p,
.ops-topbar p,
.ops-card span,
.ops-note,
.ops-muted,
.ops-kpi-label,
.ops-table td,
.ops-table th,
.ops-form label span,
.ops-badge,
.ops-list-meta,
.ops-pill {
  color: var(--muted);
}

.ops-overline {
  font: 600 10px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.ops-nav {
  display: grid;
  gap: 2px;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
}

.ops-nav-section-label {
  font: 600 11px var(--mono);
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 4px 0 8px;
}

.ops-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  background: transparent;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.ops-nav-link .nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
  background: rgba(47, 111, 237, 0.08);
}

.ops-nav-link strong {
  font-size: 12px;
  line-height: 1.3;
  color: var(--text);
  font-weight: 500;
}

.ops-nav-link span.nav-desc {
  display: none;
}

/* group label separator in sidebar */
.ops-nav-group-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted, #9ca3af);
  padding: 12px 10px 3px;
  opacity: 0.7;
}

/* source indicator dot on each nav item */
.nav-source-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: auto;
  opacity: 0.7;
}

.ops-nav-link:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
}

.ops-nav-link.active {
  background: #ffffff;
  border-color: var(--line-strong);
  box-shadow: 0 4px 12px rgba(33, 53, 85, 0.06);
}

.ops-nav-link.active .nav-icon {
  background: var(--accent);
  color: white;
}

.ops-nav-link.external {
  display: flex;
  font-size: 11px;
  padding: 6px 10px;
  opacity: 0.7;
}

.ops-nav-link.external:hover {
  opacity: 1;
}

.ops-nav-footer {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 2px;
  flex-shrink: 0;
}

.ops-clover-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 6px;
}
@media (max-width: 700px) {
  .ops-clover-kpis { grid-template-columns: repeat(2, 1fr); }
}
body[data-ops-module="clover"] .ops-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 700px) {
  body[data-ops-module="clover"] .ops-grid.two {
    grid-template-columns: 1fr;
  }
}

.ops-main {
  display: grid;
  grid-template-rows: auto auto 1fr;
}

.ops-topbar {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 253, 255, 0.86);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.ops-topbar h2 {
  font-size: 22px;
  line-height: 1.15;
}

.ops-topbar p {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  max-width: 680px;
}

.ops-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ops-select-shell {
  display: inline-grid;
  gap: 4px;
  min-width: 180px;
}

.ops-select-shell span {
  font: 600 11px var(--mono);
  color: var(--muted);
}

.ops-select-shell select,
.ops-input,
.ops-select,
.ops-textarea {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  padding: 10px 12px;
  font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.ops-textarea {
  min-height: 104px;
  resize: vertical;
  line-height: 1.55;
}

.ops-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  padding: 10px 15px;
  cursor: pointer;
  font: 600 11px var(--mono);
}

.ops-btn.primary {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.ops-btn.warm {
  border: 0;
  color: #2b1c00;
  background: linear-gradient(135deg, var(--warm), #ffb86b);
}

.ops-btn.danger {
  border-color: rgba(255, 123, 123, 0.34);
  color: #ffc8c8;
}

.ops-btn.ghost {
  background: #f8fafc;
}

.ops-alerts {
  padding: 0 28px;
}

.ops-toast {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  font: 500 11px var(--mono);
}

.ops-toast.ok {
  border-color: rgba(122, 240, 184, 0.34);
}

.ops-toast.error {
  border-color: rgba(255, 123, 123, 0.34);
}

.ops-content {
  padding: 20px 22px 34px;
  display: grid;
  gap: 18px;
}

.ops-grid {
  display: grid;
  gap: 18px;
}

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

.ops-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ops-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ops-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 16px 36px rgba(29, 45, 70, 0.08);
}

.ops-card.tight {
  padding: 14px;
}

.ops-card-header,
.ops-section-head,
.ops-row,
.ops-inline,
.ops-stat-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.ops-section-head {
  margin-bottom: 12px;
}

.ops-section-head h3 {
  font-size: 16px;
  line-height: 1.3;
}

.ops-inline.wrap {
  flex-wrap: wrap;
}

.ops-kpi-value {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
}

.ops-kpi-label {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.5;
}

.ops-kpi-grid {
  align-items: stretch;
}

.ops-kpi-card {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 253, 0.96) 100%);
}

.ops-kpi-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.ops-badge,
.ops-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font: 500 10px var(--mono);
  background: rgba(255, 255, 255, 0.72);
}

.ops-badge.ok,
.ops-pill.ok {
  color: var(--ok);
}

.ops-badge.warn,
.ops-pill.warn {
  color: var(--warning);
}

.ops-badge.danger,
.ops-pill.danger {
  color: var(--danger);
}

.ops-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.ops-list-item {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.ops-list-item strong {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
}

.ops-list-meta {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  line-height: 1.6;
}

.ops-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

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

.ops-table th,
.ops-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 10px;
  text-align: left;
  font-size: 12px;
  vertical-align: top;
  line-height: 1.55;
}

.ops-table th {
  font: 600 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fbff;
}

.ops-table tbody tr:nth-child(odd) {
  background: rgba(247, 250, 253, 0.7);
}

.ops-table tbody td:first-child {
  font-weight: 600;
  color: var(--text);
}

.ops-form {
  display: grid;
  gap: 12px;
}

.ops-form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ops-form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ops-form-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ops-form label {
  display: grid;
  gap: 7px;
}

.ops-form label span {
  font: 500 10px var(--mono);
}

.ops-form-toggle {
  justify-self: start;
}

.ops-form-toggle strong {
  font: 600 10px var(--mono);
  color: var(--accent);
}

.ops-form-advanced {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px dashed rgba(99, 118, 143, 0.26);
  border-radius: 14px;
  background: rgba(247, 250, 253, 0.72);
}

.ops-module-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.ops-overview-hero {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 16px;
}

.ops-overview-banner {
  background:
    radial-gradient(circle at 0% 0%, rgba(103, 164, 255, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 253, 0.96) 100%);
}

.ops-overview-lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ops-overview-lane {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(247, 250, 253, 0.88);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.ops-overview-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.ops-overview-row strong {
  display: block;
  font-size: 12px;
}

.ops-overview-value {
  font: 700 16px var(--sans);
  color: var(--text);
  white-space: nowrap;
}

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

.ops-overview-action {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(247, 250, 253, 0.82);
  text-decoration: none;
}

.ops-overview-action strong {
  font-size: 13px;
}

.ops-overview-action span {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}

.ops-mini-floor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ops-mini-table {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(247, 250, 253, 0.8);
  display: grid;
  gap: 4px;
}

.ops-mini-table strong {
  font-size: 12px;
}

.ops-mini-table span,
.ops-mini-table em {
  font-size: 10px;
  color: var(--muted);
  font-style: normal;
}

.ops-mini-table.active {
  border-color: rgba(47, 111, 237, 0.24);
  background: rgba(103, 164, 255, 0.08);
}

.ops-surface {
  display: grid;
  gap: 16px;
}

.ops-floor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.ops-floor-canvas {
  position: relative;
  overflow-x: auto;
  padding: 4px 2px 2px;
}

.ops-floor-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 47%, rgba(206, 214, 226, 0.36) 47%, rgba(206, 214, 226, 0.36) 53%, rgba(255,255,255,0) 53%, rgba(255,255,255,0) 100%);
  border-radius: 14px;
}

.ops-floor-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 16px;
}

.ops-floor-shell,
.ops-floor-detail,
.ops-floor-order-entry {
  overflow: hidden;
}

.ops-floor-toolbar {
  display: grid;
  gap: 14px;
}

.ops-floor-topbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.ops-floor-zones,
.ops-floor-secondary-zones,
.ops-category-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ops-floor-mode-switch {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ops-zone-pill,
.ops-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.ops-zone-pill.active,
.ops-chip.active {
  border-color: var(--line-strong);
  color: var(--accent);
  box-shadow: 0 0 0 2px rgba(47, 111, 237, 0.08);
}

.ops-zone-pill-meta,
.ops-zone-pill-live {
  font: 600 10px var(--mono);
  border-radius: 999px;
  padding: 2px 6px;
  background: var(--panel-soft);
  color: var(--muted);
}

.ops-zone-pill-live {
  color: #9a6700;
  background: #fff7db;
}

.ops-search-inline {
  display: grid;
  gap: 6px;
  min-width: 240px;
}

.ops-search-inline span {
  font: 600 10px var(--mono);
  color: var(--muted);
  text-transform: uppercase;
}

.ops-zone-stage {
  min-height: 560px;
}

.ops-floor-workspace {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 16px;
  align-items: start;
  scroll-margin-top: 96px;
}

.ops-floor-composer {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  margin-top: 14px;
}

.ops-legacy-entry-shell {
  display: grid;
  gap: 16px;
}

.ops-legacy-entry-stack {
  display: grid;
  gap: 16px;
}

.ops-legacy-entry-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: start;
}

.ops-legacy-pane {
  display: grid;
  gap: 14px;
  align-content: start;
}

.ops-legacy-table-groups {
  display: grid;
  gap: 14px;
  max-height: 920px;
  overflow: auto;
  padding-right: 4px;
}

.ops-legacy-area-group {
  display: grid;
  gap: 8px;
}

.ops-legacy-area-title {
  font: 700 11px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ops-legacy-table-list,
.ops-legacy-chain-box,
.ops-legacy-chain-items {
  display: grid;
  gap: 8px;
}

.ops-legacy-table-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 4px;
  text-align: left;
  cursor: pointer;
}

.ops-legacy-table-btn.active {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 2px rgba(47, 111, 237, 0.08);
}

.ops-legacy-table-btn strong {
  font-size: 13px;
}

.ops-legacy-table-btn span {
  font: 600 10px var(--mono);
  color: var(--muted);
}

.ops-legacy-chain-round,
.ops-legacy-mod-box {
  border: 1px solid var(--line);
  background: var(--panel-soft);
  border-radius: 14px;
  padding: 12px;
}

.ops-legacy-chain-items span {
  display: inline-block;
  margin-right: 8px;
  font: 600 11px var(--mono);
  color: var(--muted);
}

.ops-legacy-qtybar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ops-legacy-menu-grid {
  max-height: 720px;
}

.ops-floor-table-stage {
  display: grid;
  gap: 16px;
  scroll-margin-top: 96px;
}

.ops-floor-table-interior-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: start;
}

.ops-floor-pay-stage,
.ops-floor-pay-grid {
  display: grid;
  gap: 16px;
}

.ops-floor-pay-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.ops-floor-pay-calculator {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.ops-floor-paypad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ops-floor-table-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ops-floor-top-categories {
  margin-top: -2px;
  margin-bottom: 2px;
}

.ops-floor-interior-menu,
.ops-floor-interior-side,
.ops-floor-punched-card,
.ops-floor-action-boxes {
  display: grid;
  gap: 14px;
  align-content: start;
}

.ops-floor-interior-side {
  grid-template-rows: minmax(0, 1fr) minmax(0, auto);
}

.ops-floor-interior-menu-grid {
  max-height: 720px;
}

.ops-floor-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ops-legacy-qtybar .ops-chip {
  min-width: 88px;
  justify-content: center;
}

.ops-floor-receipt-card,
.ops-legacy-receipt-items {
  display: grid;
  gap: 10px;
}

.ops-focus-flash {
  box-shadow: 0 0 0 2px rgba(47, 111, 237, 0.18), 0 20px 48px rgba(47, 111, 237, 0.12);
  transition: box-shadow 180ms ease;
}

.ops-legacy-cart-list {
  max-height: 520px;
}

.ops-legacy-cart-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ops-legacy-note-input {
  margin-top: 8px;
}

.ops-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.ops-menu-item {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  min-height: 88px;
  display: grid;
  align-content: space-between;
  text-align: left;
  cursor: pointer;
}

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

.ops-menu-item span {
  font: 600 11px var(--mono);
  color: var(--accent);
}

.ops-cart-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-soft);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.ops-cart-head,
.ops-cart-summary > div,
.ops-cart-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ops-cart-head span,
.ops-cart-row span {
  font: 600 10px var(--mono);
  color: var(--muted);
}

.ops-cart-list {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
}

.ops-cart-row {
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}

.ops-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.ops-cart-summary {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.ops-zone-plan {
  display: grid;
  gap: 14px;
}

.ops-zone-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(247, 250, 253, 0.82);
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.ops-zone-walkway {
  height: 10px;
  border-radius: 999px;
  margin: 0 4px 12px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(140, 152, 170, 0.14) 0 16px,
      rgba(255, 255, 255, 0.96) 16px 28px
    );
}

.ops-zone-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 111, 237, 0.06) 0%, rgba(47, 111, 237, 0) 70%);
  pointer-events: none;
}

.ops-zone-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ops-zone-head strong {
  display: block;
  font-size: 13px;
}

.ops-zone-meta {
  font: 600 10px var(--mono);
  color: var(--muted);
}

.ops-grid.four .ops-card {
  padding: 16px;
}

.ops-floor-table {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 6px;
  cursor: pointer;
  grid-column: var(--col, auto) / span var(--w, 1);
  grid-row: var(--row, auto) / span var(--h, 1);
  align-content: space-between;
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 0;
}

.ops-floor-card-core {
  height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.ops-floor-server {
  font: 600 10px var(--mono);
  color: rgba(15, 23, 42, 0.76);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-floor-table.tone-empty {
  background: #ffffff;
  border-color: rgba(203, 213, 225, 0.92);
}

.ops-floor-table.tone-occupied {
  background: #dcfce7;
  border-color: #4ade80;
}

.ops-floor-table.tone-split {
  background: #dbeafe;
  border-color: #60a5fa;
}

.ops-floor-table.tone-checkout {
  background: #fee2e2;
  border-color: #f87171;
}

.ops-floor-table.shape-round {
  border-radius: 999px;
  padding: 12px 10px;
}

.ops-floor-table.shape-square {
  border-radius: 18px;
}

.ops-floor-table.shape-rect {
  border-radius: 14px;
}

.ops-floor-table.shape-bar {
  border-radius: 999px;
  padding-left: 14px;
  padding-right: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(236,244,255,0.96) 100%);
}

.ops-floor-table.shape-outdoor {
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(251,255,248,0.96) 0%, rgba(238,248,239,0.96) 100%);
}

.ops-floor-table.shape-vip {
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,251,245,0.98) 0%, rgba(252,242,224,0.98) 100%);
}

.ops-zone-card.zone-hall {
  background:
    linear-gradient(180deg, rgba(249, 251, 255, 0.98) 0%, rgba(243, 247, 252, 0.98) 100%);
}

.ops-zone-card.zone-hall .ops-floor-grid {
  grid-template-columns: repeat(14, minmax(54px, 1fr));
  grid-auto-rows: 74px;
}

.ops-zone-card.zone-hall .ops-zone-walkway {
  height: 12px;
}

.ops-zone-card.zone-hall .ops-floor-canvas::before {
  background:
    linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 43.5%, rgba(204, 213, 225, 0.46) 43.5%, rgba(204, 213, 225, 0.46) 56.5%, rgba(255,255,255,0) 56.5%, rgba(255,255,255,0) 100%),
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 47%, rgba(204, 213, 225, 0.24) 47%, rgba(204, 213, 225, 0.24) 53%, rgba(255,255,255,0) 53%, rgba(255,255,255,0) 100%);
}

.ops-zone-card.zone-upstairs {
  background:
    linear-gradient(180deg, rgba(251, 252, 255, 0.98) 0%, rgba(245, 247, 252, 0.98) 100%);
}

.ops-zone-card.zone-upstairs .ops-floor-grid {
  grid-template-columns: repeat(10, minmax(54px, 1fr));
  grid-auto-rows: 72px;
}

.ops-zone-card.zone-upstairs .ops-floor-canvas::before {
  background:
    linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 78%, rgba(204, 213, 225, 0.42) 78%, rgba(204, 213, 225, 0.42) 86%, rgba(255,255,255,0) 86%, rgba(255,255,255,0) 100%),
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 19%, rgba(204, 213, 225, 0.22) 19%, rgba(204, 213, 225, 0.22) 25%, rgba(255,255,255,0) 25%, rgba(255,255,255,0) 100%);
}

.ops-zone-card.zone-garden {
  background:
    linear-gradient(180deg, rgba(249, 255, 248, 0.98) 0%, rgba(239, 248, 241, 0.98) 100%);
}

.ops-zone-card.zone-garden .ops-floor-grid {
  grid-template-columns: repeat(10, minmax(54px, 1fr));
  grid-auto-rows: 74px;
}

.ops-zone-card.zone-garden .ops-zone-walkway {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(131, 168, 114, 0.12) 0 18px,
      rgba(255, 255, 255, 0.94) 18px 30px
    );
}

.ops-zone-card.zone-garden .ops-floor-canvas::before {
  background:
    linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 44%, rgba(189, 215, 184, 0.34) 44%, rgba(189, 215, 184, 0.34) 56%, rgba(255,255,255,0) 56%, rgba(255,255,255,0) 100%),
    radial-gradient(circle at 18% 22%, rgba(114, 163, 101, 0.08) 0, rgba(114, 163, 101, 0.08) 34px, transparent 35px),
    radial-gradient(circle at 82% 72%, rgba(114, 163, 101, 0.08) 0, rgba(114, 163, 101, 0.08) 42px, transparent 43px);
}

.ops-zone-card.zone-bar {
  background:
    linear-gradient(180deg, rgba(247, 249, 253, 0.98) 0%, rgba(237, 242, 248, 0.98) 100%);
}

.ops-zone-card.zone-bar .ops-floor-grid {
  grid-template-columns: repeat(6, minmax(54px, 1fr));
  grid-auto-rows: 68px;
}

.ops-zone-card.zone-bar .ops-floor-table {
  min-height: 0;
}

.ops-zone-card.zone-vip {
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.98) 0%, rgba(252, 244, 230, 0.98) 100%);
}

.ops-zone-card.zone-vip .ops-floor-grid {
  grid-template-columns: repeat(6, minmax(54px, 1fr));
  grid-auto-rows: 76px;
}

.ops-zone-card.zone-online .ops-floor-grid {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  grid-auto-rows: 78px;
}

.ops-floor-table.edit-mode {
  box-shadow: inset 0 0 0 2px rgba(47, 111, 237, 0.16);
}

.ops-floor-layout-editor {
  margin-top: 12px;
}

.ops-edit-shell {
  margin-top: 14px;
  border: 1px solid #d8e1ef;
  border-radius: 18px;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.ops-edit-shell h3,
.ops-edit-shell h4,
.ops-edit-shell p,
.ops-edit-shell label span {
  color: #0f172a;
}

.ops-edit-shell p {
  margin-top: 4px;
  font-size: 12px;
  color: #475569;
}

.ops-edit-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 12px;
}

.ops-edit-grid-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.ops-edit-stage {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: 14px;
  align-items: start;
}

.ops-edit-canvas {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-columns: repeat(var(--edit-cols), minmax(28px, 1fr));
  grid-auto-rows: 40px;
  gap: 2px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid #d8e1ef;
  background:
    linear-gradient(0deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    #f8fbff;
  background-size: calc(100% / var(--edit-cols)) calc(100% / var(--edit-rows));
}

.ops-edit-table {
  grid-column: var(--col, auto) / span var(--w, 1);
  grid-row: var(--row, auto) / span var(--h, 1);
  border: 1px solid #c7d4e7;
  background: #ffffff;
  border-radius: 8px;
  padding: 2px;
  width: 100%;
  height: 100%;
  display: grid;
  align-content: stretch;
  justify-items: center;
  place-items: center;
  gap: 1px;
  text-align: center;
  cursor: grab;
  color: #0f172a;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.ops-edit-table:active {
  cursor: grabbing;
}

.ops-edit-table.dragging {
  opacity: 0.82;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.16), 0 10px 24px rgba(37, 99, 235, 0.14);
}

.ops-edit-table strong {
  font-size: 11px;
  line-height: 1.1;
}

.ops-edit-table span,
.ops-edit-table em {
  font: 600 8px var(--mono);
  color: #64748b;
  font-style: normal;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ops-edit-table.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14), 0 6px 12px rgba(15, 23, 42, 0.08);
}

.ops-edit-sidecard {
  border: 1px solid #d8e1ef;
  border-radius: 16px;
  padding: 14px;
  background: #f8fbff;
  display: grid;
  gap: 12px;
}

.ops-edit-hidden-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #d8e1ef;
  max-height: 220px;
  overflow: auto;
}

.ops-hidden-table-btn {
  justify-content: flex-start;
}

.ops-edit-sidecard h4 {
  margin: 0;
}

.ops-table-setup-card {
  margin-top: 4px;
}

.ops-table-setup-grid {
  gap: 8px;
}

.ops-table-setup-card .ops-input,
.ops-table-setup-card .ops-select {
  min-height: 34px;
  padding: 8px 10px;
  font-size: 12px;
}

.ops-zone-card.zone-online .ops-zone-walkway {
  opacity: 0.55;
}

.ops-zone-card.zone-online .ops-floor-canvas::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 48%, rgba(204, 213, 225, 0.28) 48%, rgba(204, 213, 225, 0.28) 52%, rgba(255,255,255,0) 52%, rgba(255,255,255,0) 100%);
}

.ops-floor-table.active {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.08), inset 0 0 0 1px rgba(47, 111, 237, 0.12);
}

.ops-floor-table .ops-table-title {
  font: 800 16px var(--sans);
  color: #0f172a;
}

.ops-customer-link {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ops-subnav {
  margin: 10px 0 16px;
}

.ops-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font: 700 11px var(--mono);
}

.ops-link-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.ops-link-btn:hover {
  text-decoration: underline;
}

.ops-stack {
  display: grid;
  gap: 14px;
}

.ops-status-card .ops-section-head {
  align-items: center;
}

.ops-status-toggle {
  min-width: 40px;
  padding: 0 12px;
  font: 700 18px/1 var(--mono);
}

.ops-code {
  font: 500 10px var(--mono);
  color: var(--accent);
}

.ops-dialog {
  border: 0;
  padding: 0;
  background: transparent;
}

.ops-dialog::backdrop {
  background: rgba(4, 8, 12, 0.72);
}

.ops-dialog-card {
  width: min(860px, calc(100vw - 32px));
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  padding: 22px;
}

.ops-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 16px;
}

.legacy-card {
  text-decoration: none;
}

.legacy-card span {
  display: block;
  margin-top: 8px;
  font: 500 11px var(--mono);
}

.ops-card,
.ops-list-item,
.ops-floor-table,
.ops-input,
.ops-select,
.ops-textarea,
.ops-btn,
.ops-nav-link {
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.ops-input:focus,
.ops-select:focus,
.ops-textarea:focus {
  outline: none;
  border-color: rgba(47, 111, 237, 0.34);
  box-shadow: 0 0 0 4px rgba(47, 111, 237, 0.08);
}

.ops-btn:hover,
.ops-nav-link:hover,
.ops-floor-table:hover,
.ops-list-item:hover {
  border-color: rgba(47, 111, 237, 0.18);
}

body[data-ops-module="orders"] .ops-table th,
body[data-ops-module="orders"] .ops-table td,
body[data-ops-module="invoices"] .ops-table th,
body[data-ops-module="invoices"] .ops-table td,
body[data-ops-module="bookings"] .ops-table th,
body[data-ops-module="bookings"] .ops-table td {
  padding: 9px 8px;
  font-size: 11px;
}

body[data-ops-module="orders"] .ops-list-item,
body[data-ops-module="invoices"] .ops-list-item,
body[data-ops-module="analytics"] .ops-list-item {
  padding: 11px 12px;
}

body[data-ops-module="inventory"] .ops-form,
body[data-ops-module="campaigns"] .ops-form,
body[data-ops-module="settings"] .ops-form {
  gap: 10px;
}

body[data-ops-module="inventory"] .ops-form-grid,
body[data-ops-module="campaigns"] .ops-form-grid,
body[data-ops-module="settings"] .ops-form-grid {
  gap: 10px;
}

body[data-ops-module="inventory"] .ops-list-item strong,
body[data-ops-module="campaigns"] .ops-list-item strong,
body[data-ops-module="analytics"] .ops-list-item strong {
  font-size: 12px;
}

body[data-ops-module="service-floor"] .ops-floor-table {
  padding: 12px;
}

body[data-ops-module="service-floor"] .ops-floor-table .ops-table-title {
  font-size: 14px;
}

body[data-ops-module="voice-agent"] .ops-card,
body[data-ops-module="campaigns"] .ops-card {
  padding: 16px;
}

@media (min-width: 981px) {
  .ops-content {
    max-width: 1440px;
  }
}

@media (max-width: 1280px) {
  .ops-grid.four,
  .ops-floor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-module-hero,
  .ops-overview-hero,
  .ops-floor-layout,
  .ops-floor-workspace,
  .ops-floor-composer,
  .ops-grid.three {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 980px) {
  .ops-shell {
    grid-template-columns: 1fr;
  }

  .ops-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px 18px;
  }

  .ops-grid.two,
  .ops-form-grid,
  .ops-form-grid.three,
  .ops-form-grid.four,
  .ops-floor-grid,
  .ops-mini-floor,
  .ops-overview-lanes {
    grid-template-columns: 1fr;
  }

  .ops-menu-grid {
    grid-template-columns: 1fr;
  }

  .ops-zone-stage {
    min-height: 0;
  }

  .ops-topbar {
    flex-direction: column;
    align-items: start;
  }

  .ops-topbar h2 {
    font-size: 22px;
  }

  .ops-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .ops-content,
  .ops-topbar,
  .ops-alerts {
    padding-left: 18px;
    padding-right: 18px;
  }

  .ops-card {
    padding: 16px;
  }
}
