:root {
  --brand: #245eea;
  --brand-2: #1945bb;
  --accent: #edf3ff;
  --text: #18273c;
  --muted: #748195;
  --line: #e7ebf1;
  --radius: 18px;
  --bg: #f6f8fb;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #7eacff;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
input,
select,
textarea {
  min-width: 0;
}
button {
  touch-action: manipulation;
}
h1,
h2,
h3 {
  letter-spacing: -0.035em;
}
.ops-layout {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
}
.ops-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
}
.ops-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 27px;
  font-weight: 850;
  letter-spacing: -1px;
}
.flow-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 38px;
  background: var(--brand);
  color: #fff;
  border-radius: 9px;
  font-size: 27px;
  box-shadow: 4px 4px 0 #e5edff;
}
.version {
  font-size: 11px;
  letter-spacing: 0;
  padding: 3px 6px;
  background: #f0f4fa;
  border-radius: 5px;
  color: var(--muted);
  margin-left: auto;
}
.business-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 26px 0 30px;
  font-size: 13px;
}
.business-chip small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.business-avatar {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.ops-sidebar nav {
  display: grid;
  gap: 5px;
}
.ops-sidebar nav button {
  border: 0;
  background: none;
  text-align: left;
  padding: 13px 14px;
  color: #778396;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
}
.ops-sidebar nav button.active {
  background: var(--accent);
  color: var(--brand);
}
.nav-symbol {
  display: inline-block;
  width: 24px;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 11px;
  color: #60738c;
}
.sidebar-bottom small {
  display: block;
  margin: 8px 14px;
  color: #92a0b1;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #20a17a;
  margin-right: 6px;
}
.ops-main {
  padding: 0 36px 50px;
  min-width: 0;
  max-width: 1700px;
  width: 100%;
  margin: 0 auto;
}
.ops-top {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.ops-top strong {
  display: block;
  font-size: 13px;
  margin-top: 6px;
}
.kicker {
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 750;
  color: #91a0b4;
}
.connection {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #edf8f3;
  color: #25785b;
  padding: 7px 11px;
  border-radius: 20px;
  font-size: 11px;
}
.connection::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.connection.offline {
  color: #a57128;
  background: #fff3df;
}
.icon-btn {
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  color: #65738a;
  font-size: 12px;
}
.ops-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 32px 0 26px;
}
.ops-heading h1 {
  font-size: 30px;
  line-height: 1.2;
  margin-top: 8px;
}
.ops-heading p {
  color: var(--muted);
  font-size: 13px;
  margin: 10px 0 0;
}
.ops-heading .btn {
  font-size: 12px;
  border-radius: 9px;
  padding: 12px 17px;
}
.ops-banner {
  border: 1px solid #dfe8fa;
  background: #edf3ff;
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 10px;
  color: #345686;
  font-size: 12px;
}
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}
.metric-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 14px;
}
.metric-card .label {
  font-size: 11px;
  color: #7a8798;
  font-weight: 600;
}
.metric-card strong {
  display: block;
  font-size: 28px;
  letter-spacing: -1px;
  margin: 9px 0 4px;
}
.metric-card small {
  font-size: 10px;
  color: var(--muted);
}
.metric-card.blue {
  background: #245eea;
  color: white;
  border-color: #245eea;
}
.metric-card.blue .label,
.metric-card.blue small {
  color: #d7e3ff;
}
.operation-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(285px, 1fr);
  gap: 24px;
}
.section-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.section-line h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
}
.section-line select {
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  max-width: 180px;
}
.table-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.table-tile {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  text-align: left;
  padding: 18px;
  min-height: 148px;
  color: var(--text);
  position: relative;
}
.table-tile.occupied {
  border-top: 3px solid #6690f4;
}
.table-tile.bill {
  border-top: 3px solid #e5ad51;
  background: #fffdf8;
}
.table-tile > strong {
  font-size: 16px;
  display: block;
  margin: 14px 0 5px;
}
.table-tile > small {
  display: block;
  color: #8b97a8;
  font-size: 10px;
}
.table-tile .table-sum {
  display: block;
  font-size: 17px;
  font-weight: 750;
  margin-top: 16px;
}
.status-pill {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 700;
  background: #eef3f8;
  color: #7c8b9d;
}
.status-pill.good {
  background: #eaf7ef;
  color: #3a8f63;
}
.status-pill.blue {
  background: #eaf0ff;
  color: #3c67c8;
}
.status-pill.amber {
  background: #fff0d5;
  color: #a87d2c;
}
.status-pill.red {
  background: #ffeded;
  color: #ae4c4c;
}
.task-list {
  display: grid;
  gap: 12px;
}
.task-card,
.order-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.task-card.overdue {
  border-left: 3px solid #e18c5a;
}
.task-card h3 {
  font-size: 15px;
  margin: 10px 0 6px;
}
.task-card p {
  font-size: 11px;
  color: var(--muted);
  margin: 7px 0 14px;
}
.task-card .btn {
  font-size: 11px;
  padding: 9px 12px;
  border-radius: 7px;
}
.task-card .task-time {
  font-size: 10px;
  color: #929db0;
}
.task-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.empty-state {
  border: 1px dashed #dbe3ed;
  border-radius: 14px;
  padding: 30px 22px;
  text-align: center;
  color: #8d9aad;
  font-size: 12px;
  line-height: 1.8;
}
.empty-state strong {
  display: block;
  color: #526883;
  font-size: 14px;
}
.queue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.queue-column > h2 {
  font-size: 14px;
  margin-bottom: 14px;
}
.queue-column {
  min-width: 0;
}
.queue-column .order-tile {
  margin-bottom: 12px;
}
.order-tile h3 {
  font-size: 15px;
}
.order-tile ul {
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.8;
  color: #53647b;
}
.order-tile .btn {
  font-size: 11px;
  border-radius: 8px;
  padding: 10px 14px;
}
.order-note {
  color: #957233;
  font-size: 11px;
}
.flow-dialog {
  width: min(560px, calc(100% - 24px));
  border: 0;
  border-radius: 20px;
  padding: 26px;
  color: var(--text);
  box-shadow: 0 25px 90px #11234235;
  max-height: 90dvh;
  overflow: auto;
}
.flow-dialog::backdrop {
  background: #15223875;
  backdrop-filter: blur(4px);
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
}
.dialog-top h2 {
  font-size: 24px;
}
.bill-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.bill-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0;
  font-size: 16px;
}
.bill-total strong {
  font-size: 27px;
  letter-spacing: -1px;
}
.form-label {
  display: grid;
  gap: 9px;
  margin: 16px 0;
  font-size: 12px;
  font-weight: 650;
}
.form-label input,
.form-label select,
.form-label textarea,
.form-grid input,
.form-grid select {
  padding: 12px;
  border: 1px solid #dce3ec;
  border-radius: 9px;
  width: 100%;
  background: #fff;
  font-size: 14px;
}
.form-label textarea {
  min-height: 85px;
  resize: vertical;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.panel-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 15px;
  margin-bottom: 20px;
}
.panel-card h2 {
  font-size: 20px;
  margin-bottom: 16px;
}
.panel-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.clean-table td,
.clean-table th {
  text-align: left;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
}
.clean-table th {
  font-size: 10px;
  color: #8290a3;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.table-scroll {
  overflow-x: auto;
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.error-text {
  color: #b34f4f;
  font-size: 12px;
}
.skeleton-card {
  padding: 40px;
  background: linear-gradient(110deg, #edf1f6, #fff, #edf1f6);
  border-radius: 16px;
  color: #91a0b4;
}
.meter {
  height: 7px;
  border-radius: 5px;
  background: #edf1f7;
  overflow: hidden;
  margin: 10px 0;
}
.meter span {
  display: block;
  height: 100%;
  background: #5883eb;
}
.chart-row {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  margin: 12px 0;
}
.chart-row .meter {
  flex: 1;
}
.chart-row > span {
  width: 90px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: #182b45;
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: 0 6px 24px #14294c33;
  font-size: 13px;
  max-width: calc(100% - 32px);
  width: max-content;
}
.customer-shell {
  background: #f8f9fc;
}
.customer-header {
  width: min(820px, calc(100% - 40px));
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.customer-header .ops-brand {
  font-size: 17px;
  letter-spacing: -0.4px;
}
.table-badge {
  padding: 8px 11px;
  background: #eaf0ff;
  color: #3f64b9;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.customer-main {
  width: min(760px, calc(100% - 40px));
  margin: 32px auto 120px;
}
.customer-intro h1 {
  font-size: clamp(32px, 5vw, 43px);
  line-height: 1.1;
  margin: 12px 0;
}
.customer-intro p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.customer-notice {
  font-size: 11px;
  border-left: 2px solid #e4c884;
  color: #88713b;
  padding: 7px 12px;
  margin: 20px 0;
}
.customer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0;
}
.customer-actions button {
  background: #fff;
  text-align: left;
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 14px;
  color: var(--text);
}
.customer-actions button > span {
  font-size: 21px;
  color: var(--brand);
  display: block;
  margin-bottom: 12px;
}
.customer-actions strong {
  font-size: 13px;
  display: block;
}
.customer-actions small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.visit-status {
  background: #edf3ff;
  border-radius: 14px;
  padding: 16px;
  margin: 16px 0;
  font-size: 12px;
  color: #4d689a;
  line-height: 1.8;
}
.visit-status:empty {
  display: none;
}
.visit-order {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #dce5f7;
  padding-top: 10px;
  margin-top: 10px;
}
.menu-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 30px 0 20px;
}
.menu-toolbar h2 {
  font-size: 23px;
}
.menu-toolbar input {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 12px;
  width: 180px;
  background: #fff;
}
.category-tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  margin-bottom: 20px;
  padding-bottom: 4px;
}
.category-tabs button {
  border: 1px solid var(--line);
  background: #fff;
  color: #76869a;
  padding: 9px 15px;
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
}
.category-tabs button.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.product-list {
  display: grid;
  gap: 12px;
}
.product-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.product-card h3 {
  font-size: 16px;
}
.product-card p {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  margin: 8px 0 12px;
  max-width: 460px;
}
.product-card .price {
  font-size: 15px;
  color: #243959;
}
.product-card .add {
  align-self: end;
  width: 40px;
  height: 40px;
  border: 1px solid #d6e2fc;
  border-radius: 11px;
  background: #eef4ff;
  color: var(--brand);
  font-size: 23px;
}
.product-card .add:disabled {
  opacity: 0.3;
  cursor: default;
}
.customer-footer {
  text-align: center;
  font-size: 11px;
  color: #9aa7ba;
  margin: 35px 0;
}
.customer-cart {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(740px, calc(100% - 28px));
  background: #1e304d;
  color: white;
  border-radius: 17px;
  box-shadow: 0 8px 28px #162b4c30;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.customer-cart strong {
  font-size: 13px;
}
.customer-cart small {
  font-size: 10px;
  display: block;
  color: #9cadc7;
  margin-top: 5px;
}
.customer-cart button {
  border: 0;
  border-radius: 9px;
  background: #4777ee;
  color: white;
  font-size: 12px;
  padding: 12px 16px;
  font-weight: 700;
}
.option-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  font-size: 13px;
}
.option-label input {
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
}
@media (min-width: 1500px) {
  .table-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1150px) {
  .operation-columns {
    grid-template-columns: 1fr;
  }
  .table-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ops-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .ops-main {
    padding: 0 24px 40px;
  }
  .metrics-row {
    gap: 9px;
  }
  .metric-card {
    padding: 15px;
  }
  .metric-card strong {
    font-size: 23px;
  }
  .queue-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .ops-layout {
    display: block;
  }
  .ops-sidebar {
    position: static;
    height: auto;
    padding: 18px 18px 0;
    border-right: 0;
  }
  .ops-sidebar .ops-brand {
    font-size: 24px;
  }
  .business-chip,
  .sidebar-bottom {
    display: none;
  }
  .ops-sidebar nav {
    display: flex;
    overflow-x: auto;
    margin-top: 18px;
    gap: 0;
  }
  .ops-sidebar nav button {
    white-space: nowrap;
    font-size: 12px;
    border-radius: 8px 8px 0 0;
    padding: 12px;
  }
  .ops-main {
    padding: 0 18px 36px;
  }
  .ops-top {
    height: 76px;
  }
  .ops-top .kicker {
    font-size: 8px;
  }
  .ops-top .row {
    gap: 6px;
  }
  .connection {
    font-size: 10px;
    padding: 6px 8px;
  }
  .icon-btn {
    font-size: 11px;
    padding: 8px;
  }
  .ops-heading {
    margin: 24px 0;
  }
  .ops-heading h1 {
    font-size: 26px;
  }
  .ops-heading p {
    font-size: 12px;
    line-height: 1.6;
  }
  .ops-heading .btn {
    font-size: 10px;
    padding: 10px;
    max-width: 110px;
  }
  .metrics-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .metric-card strong {
    font-size: 26px;
  }
  .metric-card {
    padding: 16px;
  }
  .table-cards {
    grid-template-columns: 1fr 1fr;
  }
  .table-tile {
    min-height: 144px;
    padding: 16px;
  }
  .queue-grid {
    grid-template-columns: 1fr;
  }
  .task-card {
    padding: 20px;
  }
  .task-card .btn {
    padding: 12px 16px;
    font-size: 13px;
    min-height: 44px;
  }
  .task-card h3 {
    font-size: 18px;
  }
  .task-card p {
    font-size: 12px;
  }
  .form-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .panel-card {
    padding: 18px;
  }
  .flow-dialog {
    padding: 22px 20px;
  }
  .customer-header {
    width: calc(100% - 36px);
    padding: 22px 0;
  }
  .customer-main {
    width: calc(100% - 36px);
    margin-top: 28px;
  }
  .customer-actions button {
    padding: 16px;
  }
  .menu-toolbar {
    align-items: start;
    flex-direction: column;
    gap: 15px;
  }
  .menu-toolbar input {
    width: 100%;
    font-size: 16px;
  }
  .customer-cart {
    padding: 14px;
  }
  .customer-cart button {
    padding: 12px;
    font-size: 11px;
  }
  .customer-cart small {
    display: none;
  }
  .product-card {
    padding: 20px;
  }
  .form-label input,
  .form-label select,
  .form-label textarea,
  .form-grid input,
  .form-grid select {
    font-size: 16px;
  }
  .flow-dialog {
    max-height: 88dvh;
  }
  .nav-symbol {
    width: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 760px) {
  .task-card .btn {
    width: 100%;
    min-height: 48px;
  }
  .product-card .add {
    width: 44px;
    height: 44px;
  }
  .customer-actions strong {
    font-size: 14px;
  }
}

.customer-push-button {
  width: 100%;
  margin: 12px 0 4px;
  border: 1px solid #d7e5df;
  background: #f7fbf9;
  color: #16483d;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.customer-push-button.enabled {
  background: #eaf7f2;
  border-color: #a9d9c8;
}
