* {
  box-sizing: border-box;
}

body {
  background: #f5f1eb;
  color: #2b211b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  text-align: center;
}

button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.login-screen {
  align-items: center;
  background: #2b211b;
  bottom: 0;
  display: none;
  justify-content: center;
  left: 0;
  padding: 24px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.login-screen.active {
  display: flex;
}

.login-card {
  background: #fff;
  border-radius: 8px;
  max-width: 380px;
  padding: 28px;
  width: 100%;
}

.login-brand {
  color: #2b211b;
  margin-bottom: 22px;
}

.login-card label {
  color: #6d5e52;
  display: block;
  font-size: 13px;
  margin-bottom: 14px;
}

.login-card input {
  border: 1px solid #ded1c3;
  border-radius: 8px;
  margin-top: 6px;
  padding: 11px;
  width: 100%;
}

.login-card .primary {
  width: 100%;
}

.login-error {
  color: #c02626;
  font-size: 13px;
  margin-top: 12px;
  min-height: 20px;
}

.shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #2b211b;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 24px;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.brand-mark {
  align-items: center;
  background: #d97706;
  border-radius: 8px;
  display: flex;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.brand-sub {
  color: #d8c9bb;
  font-size: 13px;
  margin-top: 4px;
}

.current-admin {
  background: #1f1713;
  border: 1px solid #5b4639;
  border-radius: 8px;
  margin-bottom: 24px;
  padding: 12px 14px;
}

.current-admin-label,
.current-admin-role {
  color: #d8c9bb;
  font-size: 13px;
}

.current-admin-name {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  margin: 4px 0;
  overflow-wrap: anywhere;
}

.nav {
  background: transparent;
  color: #f0e2d3;
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
  padding: 12px 14px;
  text-align: center;
  width: 100%;
}

.nav.active {
  background: #45352c;
  color: #fff;
}

.server-box {
  border-top: 1px solid #5b4639;
  margin-top: 28px;
  padding-top: 22px;
}

.shop-context-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.36), rgba(250, 204, 21, 0.18));
  border: 1px solid rgba(253, 224, 71, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 24px rgba(16, 10, 5, 0.22);
  border-radius: 14px;
  margin-bottom: 12px;
  padding: 12px 14px;
}

.current-shop-label {
  color: #fff4cf;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 1px rgba(28, 18, 9, 0.28);
}

.current-shop-headline {
  color: #fffdf6;
  font-size: 18px;
  font-weight: 800;
  margin: 4px 0 6px;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 6px rgba(49, 28, 8, 0.22);
}

.shop-context-card .muted {
  color: #fff7e6;
  font-weight: 700;
}

.shop-switcher {
  background: #fff7eb;
  border: 1px solid #efcf9f;
  color: #6b3f0b;
  font-weight: 700;
  margin-bottom: 12px;
  width: 100%;
}

.server-box label {
  color: #d8c9bb;
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}

.server-box input {
  background: #1f1713;
  border: 1px solid #5b4639;
  border-radius: 8px;
  color: #fff;
  padding: 10px;
  width: 100%;
}

.server-box button {
  background: #d97706;
  color: #fff;
  margin-top: 10px;
  padding: 10px 14px;
  width: 100%;
}

.server-hint {
  margin-top: 8px;
}

.server-box .logout {
  background: #45352c;
}

.main {
  padding: 28px;
}

.page-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
}

.page-head-shop {
  color: #8b6f57;
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
}

.skeleton-card,
.skeleton-stat,
.skeleton-qrcode,
.skeleton-customer-detail {
  overflow: hidden;
  position: relative;
}

.skeleton-card::after,
.skeleton-stat::after,
.skeleton-qrcode::after,
.skeleton-customer-detail::after {
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0));
  content: "";
  inset: 0;
  position: absolute;
  transform: translateX(-100%);
}

.skeleton-card {
  background: #fffaf4;
  border: 1px solid #eadfd2;
  border-radius: 14px;
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 16px;
}

.skeleton-line,
.skeleton-pill,
.skeleton-block {
  background: linear-gradient(180deg, #efe4d7, #e8dbcd);
  border-radius: 999px;
  display: block;
}

.skeleton-line {
  height: 12px;
}

.skeleton-pill {
  height: 28px;
}

.skeleton-block {
  border-radius: 12px;
  height: 88px;
}

.skeleton-stat-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.skeleton-stat {
  background: #fffaf4;
  border: 1px solid #eadfd2;
  border-radius: 14px;
  display: grid;
  gap: 10px;
  min-height: 90px;
  padding: 14px;
}

.skeleton-qrcode-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.skeleton-qrcode {
  background: #fffaf4;
  border: 1px solid #eadfd2;
  border-radius: 14px;
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 16px;
}

.skeleton-qrcode-box {
  background: linear-gradient(180deg, #efe4d7, #e8dbcd);
  border-radius: 14px;
  height: 124px;
  width: 124px;
}

.skeleton-customer-detail {
  background: #fffaf4;
  border: 1px solid #eadfd2;
  border-radius: 14px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

@keyframes skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

.merchant-entry-head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.merchant-entry-head h2 {
  margin-bottom: 6px;
}

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

.merchant-entry-preview {
  align-items: center;
  background: #fbf8f3;
  border: 1px dashed #d7c8b8;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  margin-top: 14px;
  min-height: 240px;
  padding: 18px;
  text-align: center;
}

.merchant-entry-preview-card {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.merchant-entry-preview-card img {
  background: #fff;
  border: 1px solid #e6d9ca;
  border-radius: 16px;
  max-width: 280px;
  padding: 12px;
  width: 100%;
}

.entry-link-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.entry-link-card {
  background: #fffdf9;
  border: 1px solid #eadfce;
  border-radius: 14px;
  padding: 16px;
}

.entry-link-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.entry-link-head h3 {
  margin: 0 0 6px;
}

.entry-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.entry-link-form {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0 10px;
}

.entry-link-preview {
  align-items: center;
  background: #fbf8f3;
  border: 1px dashed #d7c8b8;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  margin-top: 10px;
  min-height: 96px;
  padding: 14px;
  text-align: center;
}

.entry-link-preview-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.entry-link-preview-card a {
  color: #1d5d4c;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-all;
}

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

  .entry-link-form {
    grid-template-columns: 1fr;
  }

  .entry-link-head {
    flex-direction: column;
  }

  .entry-link-actions {
    justify-content: flex-start;
  }
}

h1 {
  font-size: 28px;
  margin: 0;
}

p {
  color: #817267;
  margin: 6px 0 0;
}

.primary {
  background: #2b211b;
  color: #fff;
  padding: 11px 18px;
}

.stats {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  margin-bottom: 18px;
}

.stat {
  background: #fff;
  border: 1px solid #e6dacd;
  border-radius: 8px;
  padding: 18px;
}

.stat strong {
  display: block;
  font-size: 24px;
}

.stat span {
  color: #817267;
  display: block;
  margin-top: 6px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.chip {
  background: #fff;
  border: 1px solid #e6dacd;
  color: #6d5e52;
  padding: 10px 14px;
}

.chip.active {
  background: #2b211b;
  color: #fff;
}

.report-toolbar {
  align-items: center;
}

.report-date,
.toolbar-input,
.toolbar-select {
  background: #fff;
  border: 1px solid #e6dacd;
  border-radius: 8px;
  color: #4b3c31;
  min-height: 40px;
  padding: 9px 12px;
}

.toolbar-input {
  width: 120px;
}

.table-quick-tags {
  display: grid;
  gap: 8px;
  margin: -6px 0 16px;
}

.table-quick-section {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-quick-tag {
  min-height: 34px;
  padding: 7px 11px;
}

.report-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(320px, 420px) 1fr;
}

.report-panel {
  background: #fff;
  border: 1px solid #e6dacd;
  border-radius: 8px;
  padding: 18px;
}

.report-panel h2 {
  font-size: 18px;
  margin: 0 0 14px;
}

.report-list {
  display: grid;
  gap: 10px;
}

.report-row {
  align-items: center;
  border-bottom: 1px solid #f0e5da;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto auto;
  padding: 10px 0;
}

.report-row:last-child {
  border-bottom: 0;
}

.report-row em {
  color: #817267;
  font-style: normal;
  min-width: 52px;
  text-align: right;
}

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

.report-table th,
.report-table td {
  border-bottom: 1px solid #f0e5da;
  padding: 11px 8px;
  text-align: left;
}

.report-table th {
  color: #817267;
  font-size: 13px;
  font-weight: 700;
}

.report-table td:nth-child(3),
.report-table td:nth-child(4) {
  font-weight: 800;
}

.funnel-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.funnel-row {
  display: grid;
  gap: 8px;
}

.funnel-row-head {
  align-items: baseline;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.funnel-row-title {
  color: #1f3632;
  font-weight: 700;
}

.funnel-row-metrics {
  color: #5a716d;
  font-size: 12px;
}

.funnel-bar {
  background: #eef5ee;
  border: 1px solid #dbe7d8;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.funnel-bar-fill {
  background: linear-gradient(90deg, #2b8a7c, #da8a2a);
  display: block;
  height: 100%;
  min-width: 0;
}

.kitchen-board {
  margin-bottom: 14px;
}

.kitchen-board-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.kitchen-head-actions {
  display: flex;
  gap: 8px;
}

.kitchen-board-head h2 {
  font-size: 18px;
  margin: 0;
}

.kitchen-board-head p {
  color: #817267;
  font-size: 13px;
  margin: 4px 0 0;
}

.kitchen-tickets {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.kitchen-ticket.ok {
  border-left: 4px solid #0e9f6e;
}

.kitchen-ticket.warn {
  border-left: 4px solid #f59e0b;
}

.kitchen-ticket.danger {
  border-left: 4px solid #dc2626;
}

#kitchenBoardSection:fullscreen {
  background: #0f1f1c;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: auto;
  padding: 14px;
}

#kitchenBoardSection:fullscreen .kitchen-board-head h2,
#kitchenBoardSection:fullscreen .kitchen-board-head p,
#kitchenBoardSection:fullscreen #kitchenSummary,
#kitchenBoardSection:fullscreen .muted {
  color: #d9ece7;
}

#kitchenBoardSection:fullscreen .kitchen-tickets {
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

.orders-list,
.dishes-list {
  display: grid;
  gap: 14px;
}

.order-filter-summary {
  background: #fcf8f2;
  border: 1px solid #e8dccc;
  border-radius: 8px;
  color: #6f5f4f;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 10px 0 14px;
  padding: 10px 12px;
}

.order-filter-summary strong {
  color: #2f241d;
  font-weight: 700;
}

.order-summary-action {
  align-items: center;
  background: #fffdf9;
  border: 1px solid #e8dccc;
  border-radius: 999px;
  color: #6f5f4f;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  gap: 4px;
  line-height: 1.2;
  padding: 6px 10px;
}

.order-summary-action:hover {
  background: #fff6e8;
  border-color: #e3c59e;
}

.order-summary-action.active {
  background: #2b211b;
  border-color: #2b211b;
  color: #ffffff;
}

.order-summary-action.active strong {
  color: #ffffff;
}

.qrcode-panel {
  margin-bottom: 14px;
}

.qrcode-panel-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.qrcode-input {
  border: 1px solid #e6dacd;
  border-radius: 8px;
  color: #4b3c31;
  min-height: 76px;
  padding: 10px 12px;
  resize: vertical;
  width: 100%;
}

.qrcode-config-item {
  align-items: center;
  color: #7a6554;
  display: inline-flex;
  font-size: 13px;
  gap: 8px;
  white-space: nowrap;
}

.qrcode-config-input {
  min-width: 82px;
  width: 92px;
}

.qrcode-batch-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.qrcode-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  margin-top: 12px;
}

.qrcode-item {
  background: #fcf8f2;
  border: 1px solid #eee4d9;
  border-radius: 8px;
  padding: 10px;
}

.qrcode-item img {
  background: #fff;
  border: 1px solid #eee4d9;
  border-radius: 6px;
  display: block;
  height: auto;
  margin-top: 8px;
  width: 100%;
}

.qrcode-download {
  background: #d97706;
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  text-decoration: none;
  white-space: nowrap;
}

.qrcode-actions {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 8px;
  width: 100%;
}

.qrcode-delete-all,
.qrcode-delete {
  background: #fff5f5;
  border-color: #f4c6c6;
  color: #b42318;
  white-space: nowrap;
}

.qrcode-actions .qrcode-delete,
.qrcode-actions .qrcode-download {
  flex: 1 1 0;
  min-width: 0;
}

.qrcode-actions .qrcode-delete {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  text-align: center;
}

.qrcode-download-all {
  background: #d97706;
  font-weight: 800;
}

.qrcode-item-error {
  color: #b42318;
  font-size: 13px;
  margin-top: 6px;
}

.session-group {
  background: #fff;
  border: 1px solid #e6dacd;
  border-radius: 8px;
  padding: 16px;
}

.session-group-head {
  align-items: center;
  border-bottom: 1px solid #eee4d9;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.session-group-title {
  font-size: 16px;
  font-weight: 800;
}

.session-orders {
  display: grid;
  gap: 12px;
}

.session-people {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.session-person-card {
  align-items: center;
  background: #fcf8f2;
  border: 1px solid #eee4d9;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
}

.order-card,
.dish-card,
.dish-form {
  background: #fff;
  border: 1px solid #e6dacd;
  border-radius: 8px;
  padding: 18px;
}

.card-head,
.card-foot {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.head-right {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-head.payment-unpaid {
  background: #fff1f1;
  border: 1px solid #f7b8b8;
  border-radius: 8px;
  margin: -8px -8px 0;
  padding: 8px;
}

.muted {
  color: #817267;
  font-size: 13px;
}

.status {
  background: #fff0db;
  border-radius: 8px;
  color: #9a5b20;
  font-weight: 700;
  padding: 6px 10px;
}

.items {
  border-top: 1px solid #eee4d9;
  margin-top: 14px;
  padding-top: 10px;
}

.order-card-focus .items {
  margin-top: 10px;
  padding-top: 8px;
}

.order-card-head-main {
  min-width: 0;
}

.order-card-title {
  display: block;
}

.order-card-head-main-focus {
  display: grid;
  gap: 4px;
  min-height: 52px;
}

.order-card-head-main-focus .muted {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-items-overflow {
  margin-top: 6px;
}

.order-amount-main {
  color: #21433d;
}

.line {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.actions.actions-focus {
  align-items: flex-end;
  display: grid;
  justify-items: end;
  margin-top: 10px;
}

.order-card-focus .card-foot {
  align-items: flex-end;
}

.order-card-failed-highlight {
  animation: failed-card-pulse 1.4s ease 2;
  border-color: #e56b6f;
  box-shadow: 0 0 0 2px rgba(229, 107, 111, 0.22);
}

.actions-focus-primary {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.order-actions-more {
  margin-top: 4px;
}

.order-actions-more summary {
  color: #5e736d;
  cursor: pointer;
  font-size: 12px;
  list-style: none;
}

.order-actions-more summary::-webkit-details-marker {
  display: none;
}

.order-actions-hints {
  display: grid;
  gap: 4px;
  justify-items: end;
  margin-top: 6px;
}

.order-actions-hint {
  color: #6c7f7a;
  font-size: 11px;
  line-height: 1.35;
  max-width: 260px;
  text-align: right;
}

.order-actions-more-list {
  display: grid;
  gap: 6px;
  justify-items: end;
  margin-top: 6px;
}

.order-actions-risk-divider {
  border-top: 1px dashed #f0c8c0;
  margin: 2px 0 0;
  width: 100%;
}

.order-actions-risk-label {
  color: #b42318;
  font-size: 11px;
  font-weight: 700;
  justify-self: start;
}

.order-actions-risk-list {
  display: grid;
  gap: 6px;
  justify-items: end;
  width: 100%;
}

.actions button {
  background: #fff8ef;
  border: 1px solid #e3c59e;
  color: #805530;
  padding: 8px 12px;
}

.order-detail-fold {
  margin-top: 10px;
}

.order-detail-fold summary {
  color: #4f655f;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

.order-detail-fold summary::-webkit-details-marker {
  display: none;
}

.order-detail-fold[open] summary {
  margin-bottom: 8px;
}

.actions button:disabled {
  background: #f2ede7;
  border-color: #e5d9cd;
  color: #b3a69b;
  cursor: not-allowed;
}

.actions button.disabled-action {
  background: #f2ede7;
  border-color: #e5d9cd;
  color: #b3a69b;
}

.actions select {
  border: 1px solid #e3c59e;
  border-radius: 8px;
  color: #805530;
  padding: 8px 10px;
}

.actions .danger {
  background: #fff1f1;
  border-color: #ffc7c7;
  color: #c02626;
}

.actions .danger:disabled {
  background: #f2ede7;
  border-color: #e5d9cd;
  color: #b3a69b;
}

.order-lane {
  border: 1px solid var(--line-200);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 12px;
}

.order-focus-lane-summary {
  align-items: center;
  backdrop-filter: blur(3px);
  background: rgba(245, 251, 248, 0.95);
  border: 1px solid var(--line-200);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px;
  position: sticky;
  top: 8px;
  z-index: 5;
}

#ordersView.order-focus-mode .toolbar .order-filter {
  display: none;
}

.order-focus-lane-summary .chip {
  min-height: 34px;
  padding: 6px 12px;
}

.order-focus-batch-actions {
  display: flex;
  flex-basis: 100%;
  flex-wrap: wrap;
  gap: 8px;
}

.order-focus-batch-actions .chip {
  background: #fff6e8;
  border-color: #e6cfad;
  color: #7d5227;
}

.order-focus-batch-actions .chip:disabled {
  background: #f3efe8;
  border-color: #e2dbd1;
  color: #aea396;
  cursor: not-allowed;
}

.order-focus-batch-actions .order-focus-batch-retry {
  background: #fff1f1;
  border-color: #f2c7c7;
  color: #b42318;
}

.order-focus-batch-actions .order-focus-batch-failed {
  background: #f4fbff;
  border-color: #b8d9ee;
  color: #16557f;
}

.order-focus-batch-actions .order-focus-batch-clear {
  background: #f8f6f3;
  border-color: #d8d2c9;
  color: #655d53;
}

.order-lane-head {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.order-lane-urgent .order-lane-head strong {
  color: #b42318;
}

.order-lane-urgent {
  background: #fff7f5;
  border-color: #f3d0cb;
}

.order-lane-active .order-lane-head strong {
  color: #145f53;
}

.order-lane-active {
  background: #f6fbf8;
  border-color: #d5e7df;
}

.order-lane-list {
  display: grid;
  gap: 14px;
}

.order-lane-other {
  background: #f8fbf7;
  border: 1px solid var(--line-200);
  border-radius: 12px;
  padding: 10px 12px;
}

.order-lane-other > summary {
  color: #4f655f;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

.order-lane-other > summary::-webkit-details-marker {
  display: none;
}

.order-lane-other[open] > summary {
  margin-bottom: 8px;
}

.order-focus-empty {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.order-focus-empty .chip {
  min-height: 32px;
  padding: 6px 10px;
}

.pay-confirm {
  background: #b42318;
  border: 1px solid #b42318;
  color: #fff;
  padding: 7px 11px;
}

.dish-layout,
.account-layout,
.category-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(360px, 440px) 1fr;
}

.customer-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(320px, 420px) 1fr;
}

.account-layout {
  grid-template-columns: minmax(280px, 360px) 1fr;
}

.shop-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(360px, 760px);
}

.shops-settings-layout {
  display: grid;
  gap: 18px;
}

.shop-create-panel {
  max-width: 520px;
}

.shop-coordinate-help {
  background: #fcf8f2;
  border: 1px solid #eadfd2;
  border-radius: 12px;
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 14px;
}

.shop-coordinate-help h3 {
  font-size: 16px;
  margin: 0;
}

.dish-form h2 {
  font-size: 18px;
  margin: 0 0 16px;
}

.menu-ops-board {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 14px;
}

.menu-ops-card {
  background: #ffffff;
  border: 1px solid var(--line-200);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  color: #244d47;
  display: grid;
  gap: 5px;
  justify-items: center;
  min-height: 104px;
  padding: 14px;
  text-align: center;
}

button.menu-ops-card {
  cursor: pointer;
}

.menu-ops-card span {
  color: #5a716d;
  font-size: 13px;
  font-weight: 700;
}

.menu-ops-card strong {
  color: #173f39;
  font-size: 28px;
  line-height: 1;
}

.menu-ops-card em {
  color: #6b7d78;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.menu-ops-card.ok {
  background: #f5fbf7;
  border-color: #cfe6dc;
}

.menu-ops-card.warn {
  background: #fff8ec;
  border-color: #edd2a8;
}

.menu-ops-card.active {
  border-color: #1d6359;
  box-shadow: 0 0 0 2px rgba(29, 99, 89, 0.12), var(--shadow-card);
}

.menu-filter-toolbar {
  background: #f7fbf5;
  border: 1px solid var(--line-200);
  border-radius: 12px;
  padding: 8px;
}

.dish-form label {
  color: #6d5e52;
  display: block;
  font-size: 13px;
}

.dish-form input,
.dish-form select,
.dish-form textarea {
  border: 1px solid #ded1c3;
  border-radius: 8px;
  margin-top: 6px;
  padding: 10px;
  width: 100%;
}

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

.switches {
  display: flex;
  gap: 18px;
  margin: 14px 0;
}

.switches input {
  margin-right: 6px;
  width: auto;
}

.upload-row {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-top: 14px;
}

.upload {
  background: #fff8ef;
  border: 1px dashed #d5b88f;
  border-radius: 8px;
  color: #805530;
  padding: 16px;
}

.upload input {
  display: none;
}

.preview-thumb,
.dish-thumb {
  background: #f1e6da;
  border-radius: 8px;
  height: 84px;
  width: 112px;
}

.dish-thumb {
  height: 96px;
  position: relative;
  width: 96px;
}

.preview-thumb {
  align-items: center;
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

#imagePreview,
.dish-thumb-image {
  display: none;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.preview-thumb.has-image #imagePreview,
.dish-thumb.has-image .dish-thumb-image {
  display: block;
}

.preview-thumb.image-failed #imagePreview,
.dish-thumb.image-failed .dish-thumb-image {
  display: none;
}

.dish-thumb-fallback {
  align-items: center;
  color: #805530;
  display: flex;
  font-size: 36px;
  font-weight: 700;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.dish-thumb.has-image .dish-thumb-fallback {
  display: none;
}

.dish-thumb.image-failed .dish-thumb-fallback,
.preview-thumb.image-failed .dish-thumb-fallback,
.preview-thumb:not(.has-image) .dish-thumb-fallback {
  display: flex;
}

.preview-thumb.has-image .dish-thumb-fallback {
  display: none;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.form-actions button:last-child {
  background: #eee4d9;
  color: #5d4f43;
  padding: 11px 18px;
}

.dish-card,
.account-card {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 112px 1fr auto;
}

.dish-card {
  align-items: stretch;
  grid-template-columns: 96px minmax(0, 1fr) auto;
}

.dish-actions {
  display: grid;
  gap: 8px;
}

.dish-title-row,
.category-card-title {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 4px;
}

.menu-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.menu-badge {
  background: #eef5ee;
  border: 1px solid #d8e7d7;
  border-radius: 999px;
  color: #50645f;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  padding: 4px 8px;
}

.menu-badge.ok {
  background: #e8f7ef;
  border-color: #b9e4cc;
  color: #267a4e;
}

.menu-badge.warn {
  background: #fff3de;
  border-color: #f2cb95;
  color: #9a5b20;
}

.menu-badge.off {
  background: #f4ecea;
  border-color: #dfc7c0;
  color: #8a5143;
}

.menu-badge.recommend {
  background: #edf7ff;
  border-color: #c6dff2;
  color: #225a88;
}

.account-card {
  grid-template-columns: 1fr auto;
}

.account-main {
  min-width: 0;
}

.shop-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.shop-badge {
  background: #fff3d6;
  border: 1px solid #ecd3a3;
  border-radius: 999px;
  color: #8a5a17;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
}

.account-actions {
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  margin-top: 0;
}

.account-actions select {
  min-width: 136px;
}

.account-actions .reset-password {
  white-space: nowrap;
}

.accounts-panel {
  display: grid;
  gap: 14px;
}

.shop-scope-grid,
.shop-scope-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shop-scope-grid {
  margin-top: 8px;
}

.shop-scope-inline {
  align-items: center;
  margin-top: 12px;
}

.shop-scope-option {
  align-items: center;
  background: #fff7eb;
  border: 1px solid #ead8c4;
  border-radius: 10px;
  color: #5f4a39;
  display: inline-flex;
  gap: 8px;
  padding: 8px 10px;
}

.field-label {
  color: #5d4f43;
  font-size: 14px;
  font-weight: 700;
}

.shop-card-current {
  border: 2px solid #d97706;
  box-shadow: 0 14px 32px rgba(217, 119, 6, 0.14);
}

.shops-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.shop-card {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
}

.shop-card-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.shop-edit-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 12px 0 10px;
}

.shop-inline-input {
  margin-top: 6px;
  width: 100%;
}

.shop-card-actions {
  border-top: 1px solid #eadfd2;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 12px;
  width: 100%;
}

.shop-card-actions .chip {
  min-width: 120px;
}

.role-permissions-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.role-permissions-head h2 {
  margin-bottom: 6px;
}

.role-permissions-head .muted {
  margin: 0;
}

.role-permissions-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.role-permission-card {
  background: #fffaf4;
  border: 1px solid #ead8c4;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(86, 62, 44, 0.06);
  display: grid;
  gap: 10px;
  padding: 16px;
}

.role-permission-title {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.role-permission-title strong {
  color: #473326;
  font-size: 16px;
}

.role-permission-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.role-permission-items {
  color: #5d4f43;
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.role-permission-items li {
  line-height: 1.5;
}

.category-card {
  grid-template-columns: 1fr auto;
}

.audit-list {
  display: grid;
  gap: 14px;
}

.audit-card {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.audit-main {
  min-width: 0;
}

.audit-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.audit-detail span {
  background: #f8f0e7;
  border: 1px solid #ead9c6;
  border-radius: 8px;
  color: #5d4f43;
  font-size: 13px;
  padding: 6px 9px;
}

.audit-detail b {
  color: #8a5a2b;
  font-weight: 800;
  margin-right: 6px;
}

.audit-target {
  flex-shrink: 0;
  max-width: 220px;
  overflow-wrap: anywhere;
  text-align: center;
}

.customer-list,
.customer-orders {
  display: grid;
  gap: 12px;
}

.customer-card {
  cursor: pointer;
  text-align: center;
  width: 100%;
}

.customer-card.active {
  border-color: #d97706;
  box-shadow: 0 0 0 1px #d97706 inset;
}

.customer-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.customer-detail-head {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.customer-detail-head h2 {
  font-size: 22px;
  margin: 0 0 6px;
}

.customer-stats {
  margin-bottom: 14px;
}

.customer-status-toolbar {
  justify-content: flex-end;
  margin: 0;
}

.customer-keyword {
  min-width: 220px;
  width: 260px;
}

.dish-title {
  font-weight: 800;
}

.dish-meta {
  color: #817267;
  margin-top: 6px;
}

.hidden {
  display: none;
}

@media (max-width: 980px) {
  .shell,
  .dish-layout,
  .report-layout,
  .category-layout,
  .account-layout,
  .customer-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .audit-card {
    display: grid;
  }

  .customer-status-toolbar {
    justify-content: flex-start;
  }

  .audit-target {
    justify-self: start;
    max-width: 100%;
  }

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

  .account-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .shop-card-actions .chip {
    flex: 1 1 160px;
  }

  .dish-card {
    grid-template-columns: 80px 1fr;
  }

  .dish-card .dish-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .dish-thumb {
    height: 80px;
    width: 80px;
  }
}

/* 2026 refresh theme */
:root {
  --bg-app: #f1f5ef;
  --bg-elevated: #ffffff;
  --bg-soft: #f7fbf5;
  --brand-900: #123e38;
  --brand-700: #1d6359;
  --brand-500: #2b8a7c;
  --accent-500: #da8a2a;
  --accent-100: #fff4e4;
  --text-900: #1f3632;
  --text-600: #5a716d;
  --line-200: #dbe7d8;
  --danger-500: #bd3e35;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 12px 28px rgba(29, 69, 60, 0.08);
  --shell-padding: 16px;
  --sidebar-width: 276px;
  --sidebar-offset: 16px;
  --main-offset-left: calc(var(--sidebar-width) + var(--sidebar-offset) + 18px);
}

body {
  background: linear-gradient(180deg, #f4f7f1 0%, var(--bg-app) 44%, #eef4ec 100%);
  color: var(--text-900);
}

.login-screen {
  background: linear-gradient(130deg, #0f2f2a, #1d6359);
}

.login-card {
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 50px rgba(8, 28, 25, 0.25);
}

.shell {
  gap: 18px;
  grid-template-columns: 1fr;
  padding: var(--shell-padding);
}

.sidebar {
  background: linear-gradient(165deg, #113631, #1f6359 72%, #225f56 100%);
  border-radius: 22px;
  box-shadow: 0 18px 36px rgba(15, 50, 45, 0.2);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 32px);
  left: var(--sidebar-offset);
  overflow: hidden;
  padding: 20px;
  position: fixed;
  z-index: 10;
  top: var(--sidebar-offset);
  width: var(--sidebar-width);
}

.main {
  margin-left: var(--main-offset-left);
}

.brand {
  margin-bottom: 22px;
}

.brand-mark {
  background: linear-gradient(140deg, #ec9d3f, #d57e1f);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.brand-sub,
.current-admin-label,
.current-admin-role,
.server-box label {
  color: rgba(232, 245, 241, 0.78);
}

.current-admin {
  background: rgba(8, 23, 20, 0.28);
  border: 1px solid rgba(223, 244, 238, 0.24);
  border-radius: 12px;
  margin-bottom: 16px;
  text-align: center;
}

.sidebar nav {
  overflow: auto;
  padding-right: 4px;
}

.nav-groups {
  align-items: center;
  display: grid;
  flex: 1 1 auto;
  gap: 8px;
  min-height: 0;
}

.nav-group {
  display: grid;
  border-bottom: 1px solid rgba(232, 245, 241, 0.14);
  gap: 4px;
  justify-items: center;
  padding-bottom: 4px;
  width: 100%;
}

.nav-group-single {
  align-content: center;
  display: flex;
  justify-content: center;
  justify-items: center;
  min-height: 56px;
  padding-bottom: 0;
  padding-top: 0;
}

.nav-group-single .nav {
  margin-bottom: 0;
  max-width: calc(100% - 28px);
  min-width: 148px;
  width: auto;
}

.nav-group:last-child {
  border-bottom: 0;
}

.nav {
  border-radius: 10px;
  margin-left: auto;
  margin-right: auto;
  max-width: 200px;
  transition: background-color 0.2s ease, color 0.2s ease;
  width: 100%;
}

.nav:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav.active {
  background: #f3faf7;
  color: #173f39;
  font-weight: 700;
}

.server-box {
  justify-items: center;
  border-top: 1px solid rgba(232, 245, 241, 0.22);
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.server-box input {
  background: rgba(11, 30, 26, 0.3);
  border: 1px solid rgba(211, 234, 228, 0.24);
}

.server-box button {
  border-radius: 10px;
  font-weight: 700;
}

.server-box button:not(.logout) {
  background: linear-gradient(135deg, #de9537, #c9781f);
}

.server-box .logout {
  background: rgba(4, 20, 17, 0.4);
  border: 1px solid rgba(211, 234, 228, 0.2);
  margin-top: 0;
}

.main {
  padding: 8px 12px 12px 2px;
}

.view {
  animation: view-fade-in 0.24s ease;
}

.view + .view {
  margin-top: 18px;
}

.page-head h1 {
  color: #193f39;
  font-size: 30px;
}

.workbench-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.workbench-btn {
  min-width: 92px;
}

.workbench-hint {
  margin: 0 0 12px;
}

.workbench-switch .workbench-btn.active {
  background: #173f39;
  border-color: #173f39;
  color: #ffffff;
}

#ordersView > .toolbar[data-workbench-target="SERVICE BOSS"] {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line-200);
  border-radius: 14px;
  padding: 10px;
}

#orderRealtimeStatus {
  background: #f6fbf8;
  border: 1px solid var(--line-200);
  border-radius: 10px;
  display: inline-flex;
  margin: -6px 0 12px;
  padding: 6px 10px;
}

.order-utility-panel {
  background: #ffffff;
  border: 1px solid var(--line-200);
  border-radius: 12px;
  margin: 0 0 12px;
  padding: 0;
}

.order-utility-panel > summary {
  color: #335c55;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  list-style: none;
  padding: 10px 12px;
}

.order-utility-panel > summary::-webkit-details-marker {
  display: none;
}

.order-utility-panel[open] > summary {
  border-bottom: 1px solid var(--line-200);
}

.order-utility-panel .toolbar {
  margin: 0;
  padding: 12px;
}

.order-ops-board {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(340px, 1.35fr) minmax(260px, 0.95fr);
  margin: 0 0 14px;
}

.order-ops-main,
.order-ops-side,
.order-ops-tables {
  background: #ffffff;
  border: 1px solid var(--line-200);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 14px;
}

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

.order-ops-title,
.order-ops-subtitle {
  align-items: center;
  color: #1c4640;
  display: flex;
  font-weight: 800;
  justify-content: space-between;
}

.order-ops-title strong {
  color: #5a716d;
  font-size: 13px;
  font-weight: 700;
}

.order-priority-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
}

.order-priority-card {
  align-items: center;
  background: #f8fbf7;
  border: 1px solid var(--line-200);
  border-radius: 12px;
  color: #244d47;
  display: flex;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px;
  text-align: center;
}

.order-priority-card strong {
  font-size: 28px;
  line-height: 1;
}

.order-priority-card.danger {
  background: #fff5f3;
  border-color: #efc8c2;
  color: #a43129;
}

.order-priority-card.warn {
  background: #fff8ec;
  border-color: #edd2a8;
  color: #8a551b;
}

.order-priority-card.ok {
  background: #f3fbf7;
  border-color: #cfe6dc;
  color: #166455;
}

.order-ops-side {
  display: grid;
  gap: 8px;
}

.order-ops-kpi {
  align-items: baseline;
  background: #f7fbf5;
  border: 1px solid #e2ece0;
  border-radius: 12px;
  display: grid;
  gap: 3px;
  grid-template-columns: 1fr auto;
  padding: 10px 12px;
}

.order-ops-kpi span {
  color: #5a716d;
  font-size: 13px;
}

.order-ops-kpi strong {
  color: #173f39;
  font-size: 20px;
}

.order-ops-kpi em {
  color: #6b7d78;
  font-size: 12px;
  font-style: normal;
  grid-column: 1 / -1;
}

.order-ops-tables {
  grid-column: 1 / -1;
}

.order-table-hotspots {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
}

.order-table-hotspot {
  background: #f8fbf7;
  border: 1px solid #dfeadf;
  border-radius: 12px;
  color: #244d47;
  display: grid;
  gap: 4px;
  min-height: 66px;
  padding: 10px;
  text-align: center;
}

.order-table-hotspot strong {
  font-size: 18px;
}

.order-table-hotspot span {
  color: #5a716d;
  font-size: 12px;
  line-height: 1.35;
}

.page-head p,
p,
.muted {
  color: var(--text-600);
}

.primary {
  background: linear-gradient(135deg, var(--brand-700), #1b554d);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(20, 67, 59, 0.2);
  font-weight: 700;
}

.primary:hover {
  filter: brightness(1.05);
}

.stats {
  gap: 14px;
}

body[data-active-nav-view="menuCenter"] #categoriesView .page-head h1,
body[data-active-nav-view="crm"] #customersView .page-head h1,
body[data-active-nav-view="crm"] #reviewsView .page-head h1,
body[data-active-nav-view="crm"] #growthView .page-head h1,
body[data-active-nav-view="settings"] #shopView .page-head h1,
body[data-active-nav-view="settings"] #accountsView .page-head h1,
body[data-active-nav-view="settings"] #auditView .page-head h1 {
  font-size: 24px;
}

#ordersView .order-advanced {
  display: none;
}

#ordersView.show-order-advanced .order-advanced {
  display: inline-flex;
}

#ordersView.show-order-advanced .order-advanced.report-date,
#ordersView.show-order-advanced .order-advanced.toolbar-input,
#ordersView.show-order-advanced .order-advanced.toolbar-select {
  display: inline-block;
}

body[data-active-nav-view="kitchen"] #toggleOrderAdvanced {
  display: none;
}

#ordersView.order-focus-mode #orderTableQuickTags {
  display: none;
}

#ordersView.order-focus-mode .order-summary-secondary {
  display: none;
}

#ordersView.order-focus-mode #orderFilterSummary {
  gap: 8px 12px;
}

#ordersView.order-focus-mode .order-summary-primary {
  flex-basis: 100%;
}

.subview-switch {
  backdrop-filter: blur(3px);
  background: transparent;
  border: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
  position: sticky;
  top: 8px;
  z-index: 5;
}

.subview-switch .toolbar {
  background: rgba(245, 251, 247, 0.96);
  border: 1px solid var(--line-200);
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 8px;
}

.subview-switch .chip {
  min-width: 108px;
}

.subview-overview {
  background: transparent;
  border: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

.subview-overview .page-head {
  margin-bottom: 10px;
}

body[data-active-nav-view="crm"] #customersView > .page-head > .primary,
body[data-active-nav-view="crm"] #reviewsView > .page-head > .primary,
body[data-active-nav-view="crm"] #growthView > .page-head > .primary,
body[data-active-nav-view="settings"] #shopView > .page-head > .primary,
body[data-active-nav-view="settings"] #accountsView > .page-head > .primary,
body[data-active-nav-view="settings"] #auditView > .page-head > .primary {
  display: none;
}

body[data-active-nav-view="insights"] #reportsView #refreshReport {
  display: none;
}

#ordersView.workbench-kitchen .kitchen-board {
  border: 2px solid #1d6359;
  box-shadow: 0 14px 34px rgba(22, 74, 66, 0.18);
}

#ordersView.workbench-boss .kitchen-board {
  display: none;
}

#ordersView.workbench-kitchen .stats[data-workbench-target="SERVICE BOSS"],
#ordersView.workbench-kitchen .toolbar[data-workbench-target="SERVICE BOSS"],
#ordersView.workbench-kitchen #orderTableQuickTags,
#ordersView.workbench-kitchen #orderFilterSummary {
  display: none;
}

.stat,
.order-card,
.dish-card,
.dish-form,
.report-panel,
.session-group,
.qrcode-item {
  background: var(--bg-elevated);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.stat strong {
  color: #18423b;
}

.stat span {
  color: #6f8580;
}

.toolbar {
  gap: 8px;
}

#kitchenStationFilters {
  align-items: center;
  border-top: 1px dashed var(--line-200);
  margin-top: -6px;
  padding-top: 10px;
}

#kitchenStationFilters .chip {
  min-height: 34px;
  padding: 6px 12px;
}

.report-date,
.toolbar-input,
.toolbar-select,
.dish-form input,
.dish-form select,
.dish-form textarea,
.login-card input,
.qrcode-input {
  background: var(--bg-soft);
  border: 1px solid var(--line-200);
  border-radius: 10px;
}

.chip {
  background: #f9fcf8;
  border: 1px solid var(--line-200);
  border-radius: 999px;
  color: #49635d;
  padding: 9px 14px;
  white-space: nowrap;
}

.chip:hover {
  background: #f1f7f1;
}

.chip.active {
  background: #173f39;
  border-color: #173f39;
  color: #ffffff;
}

.status {
  background: var(--accent-100);
  border: 1px solid #f0ce9f;
  border-radius: 999px;
  color: #8f571c;
  font-size: 13px;
}

.status.status-pending {
  background: #fff3de;
  border-color: #f2cb95;
  color: #a05c12;
}

.status.status-cooking {
  background: #eaf3ff;
  border-color: #b8d4f6;
  color: #2f5f9a;
}

.status.status-completed {
  background: #e8f7ef;
  border-color: #b9e4cc;
  color: #267a4e;
}

.status.status-cancelled {
  background: #f4ecea;
  border-color: #dfc7c0;
  color: #8a5143;
}

.pay-status {
  background: #f3f6f4;
  border: 1px solid #dbe7d8;
  border-radius: 999px;
  color: #60736f;
  font-size: 12px;
  padding: 5px 12px;
}

.pay-status-warning {
  background: #fff2e8;
  border-color: #f1c8be;
  color: #b24334;
  font-weight: 700;
}

.card-head.payment-unpaid {
  background: #fff4f1;
  border-color: #f1c8be;
}

.actions button {
  border-radius: 10px;
}

.actions .danger,
.qrcode-delete,
.qrcode-delete-all {
  background: #fff2f0;
  border-color: #f1c4bd;
  color: var(--danger-500);
}

.pay-confirm,
.reorder-btn,
.qrcode-download,
.qrcode-download-all {
  background: linear-gradient(135deg, #e19a3f, #d07b1d);
  border: 0;
  color: #ffffff;
}

.order-filter-summary {
  background: #f8fbf7;
  border: 1px solid var(--line-200);
  border-radius: 14px;
}

.unpaid-store-panel {
  background: #fff6f2;
  border: 1px solid #efc8ba;
  border-radius: 14px;
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px 14px;
}

.unpaid-store-head {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  justify-content: space-between;
}

.unpaid-store-title {
  color: #9a2f18;
  font-size: 15px;
  font-weight: 800;
}

.unpaid-store-stats {
  color: #8a5644;
  font-size: 13px;
  font-weight: 600;
}

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

.unpaid-store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.unpaid-store-item {
  align-items: center;
  background: #fffdfb;
  border: 1px solid #f2d7cc;
  border-radius: 10px;
  color: #7f4d3f;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 8px 10px;
}

.unpaid-store-checkbox {
  accent-color: #c56a22;
  cursor: pointer;
  flex: 0 0 auto;
  height: 16px;
  width: 16px;
}

.unpaid-store-item.warn {
  background: #fff9f1;
  border-color: #f2d29f;
}

.unpaid-store-item.danger {
  background: #fff3f1;
  border-color: #efb8ad;
}

.unpaid-store-item-right {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.unpaid-store-item strong {
  color: #9a2f18;
}

.pay-confirm-mini {
  font-size: 12px;
  padding: 5px 8px;
}

.refund-request {
  background: #e9f7f3;
  border: 1px solid #b7e1d6;
  border-radius: 10px;
  color: #1e6a5c;
  font-size: 13px;
  font-weight: 700;
  margin-top: 10px;
  padding: 8px 10px;
}

.reviews-pager {
  align-items: center;
  justify-content: flex-end;
}

#tableOpsSummary {
  margin-bottom: 8px;
}

#tableOpsList {
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.table-ops-card {
  border: 1px solid var(--line-200);
  border-radius: 12px;
  padding: 10px 12px;
}

.table-ops-card strong {
  color: #173f39;
}

.table-ops-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.table-ops-tag {
  background: #f6fbf8;
  border: 1px solid var(--line-200);
  border-radius: 999px;
  color: #49635d;
  font-size: 12px;
  padding: 2px 8px;
}

.review-card {
  display: grid;
  gap: 10px;
}

.review-score {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.review-metrics span {
  background: #fff8ef;
  border: 1px solid #eed7bb;
  border-radius: 999px;
  color: #845730;
  font-size: 12px;
  padding: 4px 10px;
}

.review-content {
  background: #fffdf9;
  border: 1px solid #f0e2cf;
  border-radius: 10px;
  color: #5f4332;
  line-height: 1.55;
  min-height: 40px;
  padding: 10px 12px;
}

.cancel-reason {
  background: #fff2f0;
  border: 1px solid #f1c6bc;
  border-radius: 10px;
  color: #9a2f18;
  font-size: 13px;
  font-weight: 700;
  margin-top: 10px;
  padding: 8px 10px;
}

.order-summary-action {
  border-radius: 999px;
}

#couponCampaignHistory {
  margin: 10px 0 6px;
}

#couponCampaignHistory .order-card {
  background: #f8fcf6;
}

#bossInsightCards .report-row {
  background: #fbfff7;
  border: 1px solid #e3efdb;
  border-radius: 12px;
  padding: 10px 12px;
}

.customer-card.active {
  border-color: var(--brand-500);
  box-shadow: inset 0 0 0 1px var(--brand-500);
}

.form-actions button:last-child {
  background: #e6efdf;
}

.audit-detail span {
  background: #f6fbf4;
  border: 1px solid #d9e6d5;
}

.hidden {
  display: none !important;
}

.dialog-mask {
  align-items: center;
  background: rgba(28, 20, 15, 0.38);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 16px;
  position: fixed;
  z-index: 1200;
}

.dialog-card {
  background: #fffdfb;
  border: 1px solid #eadfd2;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(56, 37, 24, 0.16);
  display: grid;
  gap: 10px;
  max-width: 560px;
  padding: 14px;
  width: min(560px, 100%);
}

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

.dialog-head h3 {
  color: #30241b;
  font-size: 18px;
  margin: 0;
}

.dialog-close {
  background: #fff4ef;
  border: 1px solid #f0d2c9;
  border-radius: 10px;
  color: #9d5845;
  padding: 6px 10px;
}

.dialog-desc {
  color: #7a6557;
  font-size: 13px;
  margin: 0;
}

.dialog-quick-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#cancelReasonInput {
  background: #fff;
  border: 1px solid #eadfd2;
  border-radius: 10px;
  color: #3a2b20;
  min-height: 96px;
  padding: 10px;
  resize: vertical;
}

#cancelReasonInput:focus {
  border-color: #d99a74;
  outline: none;
}

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

.dialog-actions {
  display: flex;
  gap: 8px;
}

.dialog-actions button {
  border-radius: 10px;
  padding: 8px 12px;
}

.dialog-actions .danger {
  background: #fff2f0;
  border-color: #f1c4bd;
  color: var(--danger-500);
}

.action-dialog-card {
  max-width: 480px;
}

#actionDialogInputWrap {
  display: block;
}

#actionDialogInput {
  background: #fff;
  border: 1px solid #eadfd2;
  border-radius: 10px;
  color: #3a2b20;
  font-size: 14px;
  padding: 10px;
  width: 100%;
}

#actionDialogInput:focus {
  border-color: #d99a74;
  outline: none;
}

.dialog-actions-right {
  margin-left: auto;
}

.dialog-error {
  background: #fff3f1;
  border: 1px solid #efb8ad;
  border-radius: 10px;
  color: #9a2f18;
  font-size: 13px;
  padding: 8px 10px;
}

.global-toast {
  background: rgba(23, 63, 57, 0.95);
  border-radius: 12px;
  bottom: 16px;
  color: #ffffff;
  left: 50%;
  max-width: min(560px, calc(100vw - 24px));
  padding: 10px 14px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 1400;
}

.global-toast.error {
  background: rgba(173, 49, 39, 0.95);
}

.global-toast.success {
  background: rgba(20, 111, 74, 0.95);
}

body.dialog-open {
  overflow: hidden;
}

@keyframes view-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes failed-card-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(229, 107, 111, 0.32);
  }

  60% {
    box-shadow: 0 0 0 6px rgba(229, 107, 111, 0.14);
  }

  100% {
    box-shadow: 0 0 0 2px rgba(229, 107, 111, 0.22);
  }
}

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

  .sidebar {
    height: auto;
    position: static;
    width: auto;
  }

  .main {
    margin-left: 0;
    padding: 0;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .toolbar-input,
  .customer-keyword {
    width: 100%;
  }

  .workbench-switch .workbench-btn {
    flex: 1;
  }

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

  .order-ops-tables {
    grid-column: auto;
  }

  .order-priority-grid,
  .order-table-hotspots {
    grid-template-columns: 1fr;
  }

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

  .dish-card,
  .category-card {
    grid-template-columns: 1fr;
  }

  .dish-card .dish-actions,
  .category-card .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  #ordersView.order-focus-mode .order-focus-lane-summary {
    flex-wrap: nowrap;
    gap: 6px;
    margin-bottom: 8px;
    overflow-x: auto;
    padding: 6px;
    top: 4px;
  }

  #ordersView.order-focus-mode .order-focus-lane-summary .chip {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 6px 10px;
  }

  #ordersView.order-focus-mode .order-focus-batch-actions {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-top: 2px;
  }

  #ordersView.order-focus-mode .order-lane {
    margin-bottom: 10px;
    padding: 8px 10px;
  }

  #ordersView.order-focus-mode .order-lane-list {
    gap: 10px;
  }

  .qrcode-batch-actions {
    margin-left: 0;
    width: 100%;
  }

  .dialog-card {
    border-radius: 12px;
    padding: 12px;
  }

  .dialog-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .dialog-actions {
    justify-content: flex-end;
    width: 100%;
  }
}
