:root {
  --onepos-bg: #f5f7fb;
  --onepos-ink: #172033;
  --onepos-muted: #687386;
  --onepos-line: #dde3ee;
  --onepos-primary: #1167d8;
  --onepos-accent: #0d9488;
  --onepos-warm: #f97316;
  --onepos-purple: #7e22ce;
  --onepos-success: #22a447;
}

.theme-chef-warm {
  --onepos-bg: #f6f1eb;
  --onepos-ink: #1f1a17;
  --onepos-muted: #746b63;
  --onepos-line: #eaded2;
  --onepos-primary: #e84d1c;
  --onepos-accent: #ff9700;
}

.theme-onepos-blue {
  --onepos-bg: #f5f7fb;
  --onepos-ink: #172033;
  --onepos-muted: #687386;
  --onepos-line: #dde3ee;
  --onepos-primary: #1167d8;
  --onepos-accent: #0d9488;
}

.theme-fresh-green {
  --onepos-bg: #f1f8f3;
  --onepos-ink: #14251b;
  --onepos-muted: #637269;
  --onepos-line: #d9eadf;
  --onepos-primary: #22a447;
  --onepos-accent: #f59e0b;
}

.theme-dark-kitchen {
  --onepos-bg: #151515;
  --onepos-ink: #f7f7f7;
  --onepos-muted: #aaa;
  --onepos-line: #303030;
  --onepos-primary: #ff6a00;
  --onepos-accent: #7e22ce;
}

body {
  background: var(--onepos-bg);
  color: var(--onepos-ink);
  overflow-x: hidden;
}

.onepos-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
}

.onepos-sidebar {
  background: #171717;
  color: #e5eaf3;
  padding: 1.35rem;
}

.mobile-admin-bar,
.sidebar-backdrop,
.sidebar-close {
  display: none;
}

.sidebar-brand-row {
  display: block;
}

.brand {
  display: flex;
  gap: .75rem;
  align-items: center;
  color: #fff;
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.brand span {
  width: 42px;
  height: 42px;
  border-radius: .5rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--onepos-primary), var(--onepos-accent));
  font-weight: 900;
}

.onepos-sidebar .nav-link {
  color: #cbd5e1;
  border-radius: .5rem;
  padding: .75rem .85rem;
}

.onepos-sidebar .nav-link:hover {
  color: #fff;
  background: color-mix(in srgb, var(--onepos-primary) 22%, transparent);
}

.sidebar-user {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.12);
}

.sidebar-user strong,
.sidebar-user span {
  display: block;
}

.sidebar-user span {
  color: #cbd5e1;
  font-size: .85rem;
}

.sidebar-user-role {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.sidebar-user-role svg {
  width: 15px;
  height: 15px;
}

.onepos-main {
  padding: 1.75rem;
}

.onepos-main > header .btn {
  white-space: nowrap;
}

.stat-card {
  min-height: 118px;
  padding: 1.15rem;
  border-radius: .5rem;
  background: #fff;
  box-shadow: 0 16px 38px rgba(23, 32, 51, .09);
}

.stat-card span {
  display: block;
  color: var(--onepos-muted);
  font-weight: 700;
  margin-bottom: .5rem;
}

.stat-card strong {
  font-size: 1.65rem;
}

.order-card,
.qr-card,
.ticket,
.menu-row,
.menu-product-card,
.customer-cart {
  border: 1px solid var(--onepos-line);
  border-radius: .5rem;
  background: #fff;
  padding: .9rem;
}

.status-new { border-left: 4px solid #f59e0b; }
.status-preparing { border-left: 4px solid var(--onepos-primary); }
.status-ready,
.status-served { border-left: 4px solid #16a34a; }

.feature-list {
  display: grid;
  gap: .7rem;
  color: var(--onepos-muted);
}

.qr-card {
  display: flex;
  gap: .85rem;
  align-items: center;
}

.qr-card img {
  width: 118px;
  height: 118px;
  border: 1px solid var(--onepos-line);
  border-radius: .5rem;
}

.qr-card span,
.menu-row span {
  display: block;
  color: var(--onepos-muted);
  font-size: .82rem;
}

.service-type-icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.service-type-icon-row span,
.service-type-chip {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  color: var(--onepos-muted);
}

.service-type-icon-row span {
  border: 1px solid var(--onepos-line);
  border-radius: 999px;
  background: #fff;
  padding: 5px 8px;
  font-size: .78rem;
  font-weight: 800;
}

.service-type-icon-row svg,
.service-type-chip svg,
.service-badge svg {
  width: 15px;
  height: 15px;
}

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

.kitchen-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(280px, 1fr));
  gap: .75rem;
  overflow-x: auto;
}

.kds-shell {
  display: grid;
  gap: 1rem;
}

.kds-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.kds-search {
  flex: 1;
  max-width: 460px;
  border: 1px solid var(--onepos-line);
  background: #fff;
  border-radius: 999px;
  padding: .9rem 1.1rem;
  color: var(--onepos-muted);
}

.kds-live {
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: .7rem 1rem;
  font-weight: 900;
}

.kds-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 1rem;
}

.kds-stat {
  background: #fff;
  border: 1px solid var(--onepos-line);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 14px 32px rgba(23,32,51,.08);
}

.kds-stat span {
  display: block;
  color: var(--onepos-muted);
  font-weight: 900;
}

.kds-stat strong {
  display: block;
  font-size: 2rem;
}

.kds-new { border-right: 6px solid #e84d1c; }
.kds-prep { border-right: 6px solid #ff9700; }
.kds-ready { border-right: 6px solid #22a447; }
.kds-done { border-right: 6px solid #7e22ce; }

.kds-filters {
  display: flex;
  gap: .65rem;
  overflow-x: auto;
}

.kds-filters button {
  border: 1px solid var(--onepos-line);
  background: #fff;
  border-radius: 999px;
  padding: .7rem 1rem;
  font-weight: 900;
  color: var(--onepos-ink);
}

.kds-filters button.active {
  color: var(--onepos-primary);
  border-color: var(--onepos-primary);
  background: color-mix(in srgb, var(--onepos-primary) 10%, #fff);
}

.kds-board {
  grid-template-columns: repeat(3, minmax(280px, 1fr));
}

.kds-col {
  background: #fff;
  padding: 0;
  overflow: hidden;
}

.kds-col h3 {
  margin: 0;
  padding: .9rem 1rem;
  color: #fff;
  font-size: 1.1rem;
}

.kds-col-new h3 { background: #7e22ce; }
.kds-col-preparing h3 { background: #ff9700; }
.kds-col-ready h3 { background: #22a447; }
.kds-col .ticket-list {
  padding: .85rem;
}

.kds-ticket {
  border-radius: .85rem;
  box-shadow: 0 12px 24px rgba(23,32,51,.08);
}

.kds-tags {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: .7rem 0;
}

.kds-tags span {
  border-radius: 999px;
  background: #22a447;
  color: #fff;
  padding: .25rem .55rem;
  font-size: .78rem;
  font-weight: 900;
}

.kds-tags small {
  border-radius: 999px;
  background: #fff3df;
  color: #d97706;
  padding: .2rem .5rem;
  font-weight: 900;
}

.kitchen-col {
  min-height: 360px;
  border: 1px solid var(--onepos-line);
  border-radius: .5rem;
  background: #f8fafc;
  padding: .75rem;
}

.kitchen-col h3 {
  font-size: .9rem;
  margin-bottom: .75rem;
}

.ticket {
  margin-bottom: .75rem;
  overflow: hidden;
}

.ticket-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .65rem;
  align-items: start;
}

.ticket-top strong,
.ticket-top span,
.ticket-top b {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ticket-top span,
.ticket-note {
  color: var(--onepos-muted);
  font-size: .82rem;
}

.ticket-items {
  margin: .65rem 0;
  padding-left: 1rem;
  color: var(--onepos-muted);
  font-size: .9rem;
}

.column-count {
  float: right;
  min-width: 28px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #e8f1ff;
  color: var(--onepos-primary);
}

.product-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: .5rem;
  border: 1px solid var(--onepos-line);
}

.product-thumb-empty {
  display: inline-grid;
  place-items: center;
  background: #f8fafc;
  color: var(--onepos-muted);
  font-size: .68rem;
  font-weight: 800;
}

.menu-items-stack {
  display: grid;
  gap: 16px;
}

.menu-product-create-card .card-body {
  padding-bottom: 14px;
}

.product-create-form {
  display: grid;
  grid-template-columns: minmax(150px, 1.15fr) minmax(180px, 1.35fr) repeat(6, minmax(92px, .8fr)) minmax(220px, 1.4fr) minmax(150px, .9fr);
  gap: 12px;
  align-items: end;
}

.product-create-form .form-label {
  margin-bottom: 5px;
  font-size: .82rem;
  font-weight: 800;
}

.product-create-form .form-control,
.product-create-form .form-select {
  min-height: 42px;
}

.product-create-images {
  min-width: 0;
}

.product-create-images .image-upload-box {
  min-height: 42px;
  padding: 8px 10px;
}

.product-create-images .image-upload-box small {
  display: none;
}

.product-create-images .image-preview-grid {
  max-height: 74px;
  overflow-y: auto;
}

.product-create-submit {
  align-self: end;
}

.modal-row {
  display: contents;
}

.modal-row > td {
  padding: 0 !important;
  border: 0 !important;
}

.modal-dialog-scrollable {
  height: calc(100vh - 24px);
}

.modal-dialog-scrollable .modal-content {
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
}

.modal-dialog-scrollable .modal-content > form {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.modal-dialog-scrollable .modal-body,
.modal-dialog-scrollable .modal-content > form .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 28px;
}

.modal-dialog-scrollable .modal-footer,
.modal-dialog-scrollable .modal-content > form .modal-footer {
  z-index: 3;
  flex: 0 0 auto;
  background: #fff;
  border-top: 1px solid var(--onepos-line);
}

.product-edit-dialog {
  height: calc(100dvh - 20px);
  max-width: min(1180px, calc(100vw - 18px));
  margin-top: 10px;
  margin-bottom: 10px;
}

.product-edit-dialog .modal-content {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.product-edit-form {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.product-edit-dialog .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 24px;
}

.product-edit-dialog .modal-footer {
  flex: 0 0 auto;
}

.image-upload-box {
  min-height: 132px;
  border: 2px dashed #9cc2f8;
  border-radius: .75rem;
  background: #f4f8ff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  cursor: pointer;
}

.image-upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.image-upload-box span {
  color: var(--onepos-primary);
  font-weight: 900;
}

.image-upload-box small {
  display: block;
  color: var(--onepos-muted);
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: .5rem;
}

.image-preview-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--onepos-line);
  border-radius: .5rem;
}

.admin-image-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.admin-image-tile {
  position: relative;
  border: 1px solid var(--onepos-line);
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  cursor: pointer;
}

.admin-image-tile input {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  width: 18px;
  height: 18px;
  accent-color: var(--onepos-primary);
}

.admin-image-tile img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
}

.admin-image-tile span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  border-radius: 999px;
  background: rgba(17,17,17,.82);
  color: #fff;
  padding: 4px 8px;
  font-size: .72rem;
  font-weight: 900;
}

.admin-image-tile.selected,
.admin-image-tile:has(input:checked) {
  border-color: var(--onepos-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--onepos-primary) 18%, transparent);
}

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

.category-admin-row {
  border: 1px solid var(--onepos-line);
  border-radius: 8px;
  background: #fff;
  padding: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-admin-row.sortable-dragging,
.menu-admin-table tr.sortable-dragging {
  opacity: .55;
}

.category-admin-row.sortable-over,
.menu-admin-table tr.sortable-over {
  outline: 2px solid var(--onepos-primary);
  outline-offset: 2px;
}

.category-admin-icon,
.category-icon-preview {
  width: 42px;
  height: 42px;
  border: 1px solid var(--onepos-line);
  border-radius: 10px;
  background: #f8fafc;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--onepos-muted);
}

.category-admin-icon img,
.category-icon-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-admin-main {
  min-width: 0;
  flex: 1;
}

.category-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.category-admin-row strong,
.category-admin-row small {
  display: block;
}

.category-admin-row small {
  color: var(--onepos-muted);
  font-size: .76rem;
}

.drag-handle {
  width: 34px;
  height: 34px;
  border: 1px solid var(--onepos-line);
  border-radius: 8px;
  background: #fff;
  color: var(--onepos-muted);
  display: grid;
  place-items: center;
  cursor: grab;
  flex: 0 0 auto;
}

.drag-handle:active {
  cursor: grabbing;
}

.menu-item-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 190px;
}

.status-list {
  display: grid;
  gap: .65rem;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: center;
  padding: .75rem;
  border: 1px solid var(--onepos-line);
  border-radius: .5rem;
  background: #fff;
}

.status-row span,
.service-chip small {
  display: block;
  color: var(--onepos-muted);
  font-size: .78rem;
}

.live-update-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 3000;
  max-width: min(360px, calc(100vw - 36px));
  border-radius: 10px;
  background: #111;
  color: #fff;
  padding: 12px 14px;
  font-weight: 900;
  box-shadow: 0 18px 46px rgba(24,24,24,.24);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.live-update-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.service-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.service-chip {
  border: 1px solid var(--onepos-line);
  border-radius: 999px;
  padding: .5rem .75rem;
  background: #fff;
  font-weight: 800;
}

.role-badge,
.role-select-head {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--onepos-line);
  border-radius: 999px;
  background: #fff;
  padding: 6px 9px;
  font-weight: 900;
  color: var(--onepos-ink);
}

.role-badge svg,
.role-select-head svg {
  width: 16px;
  height: 16px;
}

.role-select-head {
  width: fit-content;
  margin-bottom: 7px;
  background: #f8fafc;
}

.orders-workspace {
  display: grid;
  gap: 1rem;
}

.waiter-tables-workspace {
  display: grid;
  gap: 16px;
}

.waiter-table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.waiter-table-card {
  min-height: 170px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--onepos-line);
  border-radius: 8px;
  background: #fff;
  color: var(--onepos-text);
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(24,24,24,.07);
}

.waiter-table-card:hover {
  border-color: color-mix(in srgb, var(--onepos-primary) 40%, var(--onepos-line));
  color: var(--onepos-text);
  transform: translateY(-1px);
}

.waiter-table-card strong {
  display: block;
  font-size: 1.35rem;
  overflow-wrap: anywhere;
}

.waiter-table-card small {
  color: var(--onepos-muted);
  font-weight: 800;
}

.waiter-table-card b {
  min-height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #111;
  color: #fff;
  padding: 8px 12px;
  font-size: .9rem;
}

.waiter-table-card b svg {
  width: 17px;
  height: 17px;
}

.orders-toolbar {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--onepos-line);
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
  box-shadow: 0 12px 28px rgba(23, 32, 51, .07);
}

.orders-toolbar strong,
.orders-toolbar span {
  display: block;
}

.orders-toolbar span {
  color: var(--onepos-muted);
  font-size: .86rem;
}

.orders-point-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 14px;
}

.orders-point-card {
  min-height: 250px;
  border: 1px solid var(--onepos-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(23, 32, 51, .07);
}

.orders-point-card > header {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--onepos-line);
  background: color-mix(in srgb, var(--onepos-primary) 8%, #fff);
}

.orders-point-card header span,
.orders-card-top span,
.orders-card-foot,
.orders-empty,
.orders-vehicle {
  color: var(--onepos-muted);
  font-size: .82rem;
}

.orders-point-card header strong {
  display: block;
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}

.orders-point-card header b {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #111;
  color: #fff;
}

.orders-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.orders-card {
  border: 1px solid var(--onepos-line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.orders-card-top,
.orders-card-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.orders-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.orders-cancel-request {
  margin: 8px 0 0;
  color: #b42318;
  font-size: .82rem;
}

.orders-card-top strong,
.orders-card-top span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.orders-status {
  border-radius: 999px;
  background: #eef5ff;
  color: var(--onepos-primary) !important;
  padding: 4px 8px;
  font-weight: 900;
}

.orders-vehicle {
  margin: 8px 0 0;
}

.orders-card ul {
  margin: 9px 0;
  padding-left: 18px;
  color: var(--onepos-muted);
  font-size: .88rem;
}

.orders-history {
  margin-top: 10px;
  border-top: 1px solid var(--onepos-line);
  padding-top: 9px;
}

.orders-history > button {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--onepos-line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--onepos-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: .82rem;
  font-weight: 900;
}

.orders-history > button svg {
  width: 16px;
  height: 16px;
}

.orders-history-list {
  display: none;
  gap: 7px;
  padding-top: 8px;
}

.orders-history.open .orders-history-list {
  display: grid;
}

.orders-history-list div {
  border: 1px solid var(--onepos-line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.orders-history-list strong,
.orders-history-list span {
  display: block;
}

.orders-history-list span {
  color: var(--onepos-muted);
  font-size: .78rem;
}

.orders-empty,
.orders-empty-panel {
  margin: 0;
  border: 1px dashed var(--onepos-line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}

.orders-empty-panel strong,
.orders-empty-panel span {
  display: block;
}

.orders-empty-panel span {
  color: var(--onepos-muted);
}

.orders-served-panel {
  border: 1px solid var(--onepos-line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 12px 28px rgba(23, 32, 51, .07);
}

.orders-served-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.orders-served-head strong,
.orders-served-head span {
  display: block;
}

.orders-served-head span {
  color: var(--onepos-muted);
  font-size: .86rem;
}

.orders-history-filter {
  display: grid;
  grid-template-columns: minmax(120px, 150px) 150px 150px auto;
  gap: 8px;
}

.orders-served-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.served-order-card {
  border: 1px solid var(--onepos-line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.served-order-top,
.served-order-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.served-order-top strong,
.served-order-top span {
  display: block;
  overflow-wrap: anywhere;
}

.served-order-top span,
.served-order-card p,
.served-order-foot span {
  color: var(--onepos-muted);
  font-size: .82rem;
}

.served-order-top b {
  border-radius: 999px;
  background: #eef5ff;
  color: var(--onepos-primary);
  padding: 4px 8px;
  font-size: .78rem;
}

.served-order-card p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
}

.served-order-card p svg {
  width: 15px;
  height: 15px;
}

.served-order-foot {
  margin-top: 10px;
  border-top: 1px solid var(--onepos-line);
  padding-top: 9px;
}

.customer-screen {
  background: #f4f7fb;
}

.installer-screen {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(17, 103, 216, .18), transparent 34%),
    linear-gradient(135deg, #f6f9ff, #eef7f4);
}

.installer-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.installer-card {
  width: min(760px, 100%);
  background: rgba(255,255,255,.94);
  border: 1px solid var(--onepos-line);
  border-radius: .5rem;
  box-shadow: 0 16px 38px rgba(23, 32, 51, .09);
  padding: 1.5rem;
}

.installer-card .brand {
  color: var(--onepos-ink);
}

.check-row {
  border: 1px solid var(--onepos-line);
  border-radius: .5rem;
  background: #fff;
  padding: .7rem;
  font-weight: 700;
}

.check-row span {
  display: inline-block;
  min-width: 46px;
  margin-right: .35rem;
  font-size: .75rem;
  font-weight: 900;
}

.check-row.ok span { color: #15803d; }
.check-row.bad span { color: #b91c1c; }

.customer-hero {
  background:
    linear-gradient(135deg, rgba(17, 24, 39, .94), rgba(13, 148, 136, .82)),
    url("../img/menu-placeholder.svg");
  background-size: cover;
  color: #fff;
  padding: .95rem;
}

.waiter-order-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.waiter-order-bar a,
.waiter-order-bar span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 900;
}

.waiter-order-bar a {
  background: rgba(255,255,255,.92);
  color: #111;
}

.waiter-order-bar span {
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
}

.waiter-order-bar svg {
  width: 17px;
  height: 17px;
}

.customer-brand-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .8rem;
  align-items: center;
}

.customer-logo {
  width: 58px;
  height: 58px;
  border-radius: 1rem;
  background: rgba(255,255,255,.14);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-weight: 900;
}

.customer-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.customer-brand-row p {
  color: #a7f3d0;
  font-weight: 900;
}

.customer-brand-row h1 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.customer-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.service-badge {
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.12);
  min-height: 38px;
  padding: .45rem .7rem;
  border-radius: 999px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  line-height: 1;
}

.customer-description {
  max-width: 760px;
  margin: .65rem 0 .65rem;
  color: #e6fffb;
}

.customer-contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.customer-contact-strip span {
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  padding: .35rem .6rem;
  font-size: .82rem;
}

.customer-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-bottom: 0;
}

.customer-contact-actions a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #fff;
  padding: 8px 13px;
  text-decoration: none;
  font-weight: 900;
}

.customer-contact-actions a svg,
.customer-socials a svg {
  width: 17px;
  height: 17px;
}

.customer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 1rem;
  padding: 1rem;
  max-width: 1440px;
  margin: 0 auto;
  align-items: start;
}

.category-tabs {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: nowrap;
  gap: .5rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  padding: .45rem 0 .8rem;
  background: #f4f7fb;
}

.category-tabs a {
  flex: 0 0 auto;
  color: var(--onepos-ink);
  text-decoration: none;
  border: 1px solid var(--onepos-line);
  background: #fff;
  border-radius: 999px;
  padding: .55rem .85rem;
  font-weight: 900;
}

.menu-category {
  margin-bottom: 1.25rem;
}

.menu-category-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin: .75rem 0;
}

.menu-category-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.menu-category-head span {
  color: var(--onepos-muted);
  font-weight: 700;
}

.customer-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.menu-product-card {
  padding: 0;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(23, 32, 51, .07);
  transition: transform .16s ease, box-shadow .16s ease;
}

.menu-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(23, 32, 51, .12);
}

.product-gallery {
  position: relative;
  background: #eef5ff;
  cursor: zoom-in;
}

.product-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef5ff;
  display: none;
}

.product-gallery img.active {
  display: block;
}

.gallery-dots {
  position: absolute;
  left: .75rem;
  bottom: .65rem;
  display: flex;
  gap: .35rem;
}

.gallery-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.72);
  padding: 0;
}

.gallery-dots button.active {
  background: var(--onepos-primary);
}

.menu-gallery-open {
  overflow: hidden;
}

.menu-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
}

.menu-gallery-modal.show {
  display: block;
}

.menu-gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, .58);
  backdrop-filter: blur(8px);
}

.menu-gallery-dialog {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 58px clamp(12px, 4vw, 72px);
}

.menu-gallery-dialog figure {
  width: min(920px, 100%);
  margin: 0;
  display: grid;
  gap: 10px;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.menu-gallery-dialog img {
  width: 100%;
  max-height: calc(100vh - 178px);
  object-fit: contain;
  background: transparent;
  padding: 0;
}

.menu-gallery-dialog figcaption {
  color: #fff;
  text-align: center;
  padding: 0;
  background: transparent;
  border-top: 0;
}

.menu-gallery-dialog figcaption strong,
.menu-gallery-dialog figcaption span {
  display: block;
}

.menu-gallery-dialog figcaption span {
  color: rgba(255,255,255,.78);
  font-size: .86rem;
}

.menu-gallery-close,
.menu-gallery-nav {
  position: absolute;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.menu-gallery-close {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
}

.menu-gallery-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
}

.menu-gallery-nav.prev {
  left: 16px;
}

.menu-gallery-nav.next {
  right: 16px;
}

.menu-gallery-close svg,
.menu-gallery-nav svg {
  width: 24px;
  height: 24px;
}

.menu-product-body {
  padding: .9rem;
  display: grid;
  gap: .55rem;
}

.menu-product-body strong {
  font-size: 1rem;
}

.menu-product-body span {
  color: var(--onepos-muted);
  font-size: .82rem;
}

.menu-row {
  margin-bottom: .65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.customer-cart {
  position: sticky;
  top: 18px;
  align-self: start;
  box-shadow: 0 16px 38px rgba(23, 32, 51, .09);
}

.customer-footer {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px clamp(16px, 4vw, 46px) 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  color: #4d463f;
}

.customer-footer strong,
.customer-footer span {
  display: block;
}

.customer-footer span {
  color: var(--onepos-muted);
  font-size: .86rem;
}

.customer-footer a {
  color: var(--onepos-muted);
  font-weight: 400;
  text-decoration: none;
}

.customer-footer-links {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.customer-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.customer-socials a {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--onepos-muted);
  padding: 3px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 500;
  box-shadow: none;
}

.customer-socials a i {
  width: 16px;
  min-width: 16px;
  text-align: center;
  font-size: .95rem;
  line-height: 1;
}

.developer-credit,
.developer-credit a {
  color: var(--onepos-muted);
  font-weight: 400;
}

.cart-title {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .75rem;
}

.cart-title span {
  display: block;
  color: var(--onepos-muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cart-title h2 {
  margin: 0;
  font-size: 1.25rem;
}

.cart-title b {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: .75rem;
  background: #eef5ff;
  color: var(--onepos-primary);
}

.cart-row {
  padding: .55rem 0;
  border-bottom: 1px solid var(--onepos-line);
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: center;
}

.cart-row small {
  display: block;
  color: var(--onepos-muted);
  font-size: .78rem;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.qty-control b {
  min-width: 24px;
  text-align: center;
}

.cart-total,
.bill-grand-row {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding-top: .7rem;
  margin-top: .4rem;
  border-top: 1px solid var(--onepos-line);
  font-weight: 900;
}

.active-bill-box {
  border: 1px solid #bbf7d0;
  border-radius: .65rem;
  background: #f0fdf4;
  padding: .85rem;
  margin-bottom: .8rem;
}

.active-bill-box span {
  display: block;
  color: #15803d;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.active-bill-box strong {
  display: block;
  font-size: 1.45rem;
}

.active-bill-box small {
  color: var(--onepos-muted);
}

.customer-bill-items {
  margin-top: .9rem;
}

.customer-bill-items h3 {
  font-size: 1rem;
  margin-bottom: .6rem;
}

.bill-item-row {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--onepos-line);
}

.bill-item-row small {
  display: block;
  color: var(--onepos-muted);
  font-size: .78rem;
}

.order-status-box {
  border: 1px solid #bfdbfe;
  border-radius: .5rem;
  background: linear-gradient(180deg, #eff6ff, #fff);
  padding: .85rem;
  margin: .85rem 0;
}

.order-status-box p {
  margin: .25rem 0 .65rem;
  color: var(--onepos-muted);
  font-size: .9rem;
}

.order-status-box ul {
  margin: .65rem 0 0;
  padding-left: 1rem;
  color: var(--onepos-muted);
  font-size: .86rem;
}

.order-steps {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.order-steps span {
  border-radius: 999px;
  border: 1px solid var(--onepos-line);
  background: #fff;
  color: var(--onepos-muted);
  padding: .35rem .55rem;
  font-size: .75rem;
  font-weight: 800;
}

.order-steps span.active {
  border-color: var(--onepos-primary);
  background: var(--onepos-primary);
  color: #fff;
}

.settings-preview {
  position: sticky;
  top: 1rem;
  border: 1px solid var(--onepos-line);
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 16px 38px rgba(23, 32, 51, .09);
  padding: 1.2rem;
}

.settings-logo {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: .75rem;
  background: #eef5ff;
  overflow: hidden;
  margin-bottom: 1rem;
}

.settings-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.settings-preview p,
.settings-preview li {
  color: var(--onepos-muted);
}

.settings-preview ul {
  margin: 0;
  padding-left: 1rem;
}

.settings-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.settings-form-stack {
  display: grid;
  gap: 16px;
}

.settings-panel,
.settings-business-preview {
  border: 1px solid var(--onepos-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(23, 32, 51, .07);
  padding: 18px;
}

.settings-qr-preview {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.settings-qr-preview span {
  color: var(--onepos-muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.settings-qr-preview img {
  width: 108px;
  height: 108px;
  object-fit: contain;
  border: 1px solid var(--onepos-line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.settings-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--onepos-line);
}

.settings-panel-head span,
.settings-business-preview > span {
  display: block;
  color: var(--onepos-muted);
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.settings-panel-head h2,
.settings-business-preview h2 {
  margin: 3px 0 0;
  font-size: 1.08rem;
  font-weight: 900;
}

.settings-panel-head > svg {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--onepos-primary) 12%, #fff);
  color: var(--onepos-primary);
}

.settings-business-preview {
  position: sticky;
  top: 18px;
}

.settings-business-preview p,
.settings-business-preview li {
  color: var(--onepos-muted);
}

.settings-business-preview ul {
  margin: 12px 0 0;
  padding-left: 1rem;
}

.settings-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}

.settings-preview-actions b {
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 7px 10px;
  font-size: .78rem;
}

.settings-panel .input-group-text svg {
  width: 16px;
  height: 16px;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .5rem;
}

.permission-grid label {
  border: 1px solid var(--onepos-line);
  border-radius: .5rem;
  background: #fff;
  padding: .55rem .65rem;
  font-weight: 700;
}

.menu-admin-table td,
.menu-admin-table th {
  vertical-align: middle;
}

.menu-admin-table {
  table-layout: auto;
  width: 100%;
}

.menu-admin-table .text-nowrap {
  white-space: normal !important;
}

.menu-admin-table td:last-child {
  min-width: 150px;
}

.bill-page {
  background: #eef2f7;
  padding: 24px;
}

.bill-sheet {
  width: min(760px, 100%);
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  color: #172033;
  box-shadow: 0 18px 45px rgba(23,32,51,.12);
}

.bill-head {
  display: flex;
  gap: 16px;
  border-bottom: 2px solid #172033;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.bill-head img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

.bill-head h1 {
  margin: 0 0 6px;
  font-size: 28px;
}

.bill-head p {
  margin: 2px 0;
  color: #5e6a7d;
}

.bill-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: #f4f8ff;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 18px;
}

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

.bill-table th,
.bill-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #dde3ee;
  text-align: left;
}

.bill-totals {
  margin-left: auto;
  width: min(320px, 100%);
  padding-top: 16px;
}

.bill-totals div {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.bill-totals .grand {
  border-top: 2px solid #172033;
  font-size: 20px;
}

.bill-company-qr {
  margin: 18px auto 6px;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #475569;
  font-size: .78rem;
  font-weight: 800;
}

.bill-company-qr img {
  width: 116px;
  height: 116px;
  object-fit: contain;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

.bill-thanks {
  text-align: center;
  margin: 24px 0 0;
  font-weight: 800;
}

.bill-actions {
  text-align: center;
  margin-top: 20px;
}

.bill-actions button {
  border: 0;
  border-radius: 8px;
  background: var(--onepos-primary);
  color: #fff;
  padding: 10px 20px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.bill-actions button svg {
  width: 17px;
  height: 17px;
}

.bill-thermal .bill-sheet {
  width: 360px;
  border-radius: 0;
  box-shadow: none;
  font-size: 13px;
}

.bill-thermal .bill-head {
  display: block;
  text-align: center;
  border-bottom: 1px dashed #172033;
}

.bill-thermal .bill-head img {
  width: 52px;
  height: 52px;
}

.bill-modern .bill-sheet {
  border-top: 8px solid var(--onepos-accent);
}

.bill-modern .bill-head {
  border: 0;
  background: #111827;
  color: #fff;
  border-radius: 12px;
  padding: 18px;
}

.bill-modern .bill-head p {
  color: #cbd5e1;
}

/* Compact enterprise shell and icon buttons */
.onepos-shell {
  grid-template-columns: 220px minmax(0, 1fr);
}

.onepos-sidebar {
  padding: 18px 16px;
}

.brand {
  gap: 10px;
  margin-bottom: 24px;
}

.brand span {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.brand strong {
  font-size: .98rem;
  line-height: 1.2;
}

.onepos-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: .94rem;
}

.onepos-sidebar .nav-link svg,
.icon-btn svg,
.btn svg,
.status-btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  stroke-width: 2.2;
}

.icon-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.sidebar-user {
  font-size: .92rem;
}

.onepos-main {
  padding: 24px;
  min-width: 0;
  overflow-x: clip;
}

.onepos-main > * {
  min-width: 0;
}

.admin-page-header > div:first-child {
  min-width: 0;
}

.admin-page-header h1 {
  overflow-wrap: anywhere;
}

.admin-header-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.card,
.stat-card,
.order-card,
.status-row,
.qr-card,
.settings-panel,
.settings-business-preview {
  min-width: 0;
}

.admin-tabs {
  gap: 8px;
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
}

.admin-tabs .nav-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--onepos-line);
  border-radius: 999px;
  background: #fff;
  color: var(--onepos-ink);
  white-space: nowrap;
  font-weight: 700;
}

.admin-tabs .nav-link.active {
  border-color: var(--onepos-primary);
  background: var(--onepos-primary);
  color: #fff;
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.health-check {
  border: 1px solid var(--onepos-line);
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 4px;
  flex-wrap: wrap;
}

.health-check span,
.health-check small,
.audit-row span,
.audit-row small {
  color: var(--onepos-muted);
}

.health-check strong {
  font-size: .95rem;
}

.health-check.ok {
  border-left: 4px solid #22a447;
}

.health-check.bad {
  border-left: 4px solid #dc2626;
}

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

.audit-row {
  border: 1px solid var(--onepos-line);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 2px;
}

.audit-row strong,
.audit-row span,
.audit-row small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.log-box {
  max-height: 430px;
  overflow: auto;
  display: grid;
  gap: 6px;
  border-radius: 10px;
  background: #111827;
  padding: 12px;
}

.log-box code {
  color: #e5e7eb;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: .78rem;
}

.onepos-toast-tray {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 3000;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 24px));
  pointer-events: none;
}

.onepos-toast {
  transform: translateY(-8px);
  opacity: 0;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  padding: 11px 13px;
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
  font-weight: 700;
  transition: opacity .18s ease, transform .18s ease;
}

.onepos-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.onepos-toast.error {
  background: #991b1b;
}

.onepos-toast.warning {
  background: #92400e;
}

/* Pro kitchen display */
.kds-shell {
  --kds-panel: #ffffff;
  --kds-soft: #f7f5f1;
  --kds-text: #181818;
  --kds-muted: #6f6b66;
  --kds-orange: #ef5b2a;
  --kds-amber: #f59e0b;
  --kds-green: #36a852;
  --kds-purple: #7c2bbd;
  background: #f2eee9;
  border-radius: 16px;
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.kds-top {
  display: grid;
  grid-template-columns: minmax(220px, 520px) auto;
  align-items: center;
  gap: 12px;
}

.kds-search {
  max-width: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  box-shadow: 0 10px 24px rgba(24,24,24,.07);
  color: var(--kds-muted);
  font-size: .92rem;
}

.kds-live {
  justify-self: end;
  background: #181818;
  border-radius: 999px;
  padding: 10px 14px;
  color: #fff;
  font-weight: 900;
  font-size: .9rem;
}

.kds-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}

.kds-stat {
  position: relative;
  min-height: 92px;
  border: 0;
  border-radius: 16px;
  background: var(--kds-panel);
  padding: 16px;
  box-shadow: 0 10px 24px rgba(24,24,24,.07);
}

.kds-stat::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--onepos-primary) 16%, #fff);
}

.kds-new::after { background: #ffe5db; }
.kds-prep::after { background: #fff0c7; }
.kds-ready::after { background: #dcfce7; }
.kds-done::after { background: #f3e8ff; }

.kds-stat span {
  color: var(--kds-muted);
  font-size: .78rem;
  font-weight: 900;
}

.kds-stat strong {
  margin-top: 8px;
  color: #111;
  font-size: 1.8rem;
  line-height: 1;
}

.kds-new,
.kds-prep,
.kds-ready,
.kds-done {
  border-right: 0;
}

.kds-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kds-filters button {
  border: 1px solid #eaded2;
  background: #fff;
  color: #26221e;
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(24,24,24,.05);
  font-size: .9rem;
}

.kds-filters button.active {
  border-color: var(--kds-orange);
  background: #fff4ef;
  color: var(--kds-orange);
}

.kds-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  overflow-x: visible;
  padding-bottom: 0;
}

.kds-col {
  min-height: 440px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  padding: 0;
  box-shadow: 0 12px 28px rgba(24,24,24,.07);
}

.kds-col h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 13px 14px;
  color: #fff;
  font-size: .96rem;
  font-weight: 900;
}

.kds-col-new h3 { background: linear-gradient(135deg, var(--kds-purple), #9333ea); }
.kds-col-preparing h3 { background: linear-gradient(135deg, var(--kds-amber), #f97316); }
.kds-col-ready h3 { background: linear-gradient(135deg, var(--kds-green), #22c55e); }
.kds-col-served h3 { background: linear-gradient(135deg, #111, #3f3f46); }

.kds-col .column-count {
  float: none;
  background: rgba(255,255,255,.18);
  color: #fff;
}

.kds-col .ticket-list {
  padding: 12px;
}

.kds-ticket {
  border: 1px solid #eee6dc;
  border-radius: 12px;
  padding: 13px;
  box-shadow: none;
  font-size: .9rem;
}

.kds-ticket .ticket-top strong {
  color: #111;
}

.kds-ticket .ticket-top b {
  color: #111;
  text-align: right;
}

.kds-ticket .status-btn {
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 6px 10px;
  font-weight: 900;
  font-size: .78rem;
}

.kds-ticket .ticket-items {
  font-size: .86rem;
  margin: 10px 0;
}

.kds-ticket .ticket-note {
  font-size: .82rem;
  margin-bottom: 10px;
}

.kds-tags span,
.kds-tags small {
  font-size: .72rem;
}

/* Customer QR menu polish */
.customer-screen {
  background: #f6f1eb;
  color: #1d1b18;
}

.customer-hero {
  min-height: 168px;
  display: grid;
  align-content: end;
  background:
    linear-gradient(120deg, rgba(24,24,24,.92), rgba(40,130,116,.88)),
    url("../img/menu-placeholder.svg");
  background-size: cover;
  background-position: center;
  padding: 18px clamp(16px, 4vw, 46px);
}

.customer-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  padding: 22px clamp(16px, 4vw, 46px);
}

.category-tabs {
  top: 0;
  margin: -4px 0 18px;
  padding: 8px 0 14px;
  background: #f6f1eb;
}

.category-tabs button {
  flex: 0 0 auto;
  border: 1px solid #eaded2;
  border-radius: 999px;
  background: #fff;
  padding: 8px 13px;
  color: #1d1b18;
  box-shadow: 0 8px 22px rgba(24,24,24,.06);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .9rem;
  font-weight: 800;
  white-space: nowrap;
}

.category-tabs button img {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: cover;
}

.category-tabs button span {
  display: block;
  white-space: nowrap;
}

.category-tabs button:hover,
.category-tabs button.active {
  border-color: var(--onepos-primary);
  color: var(--onepos-primary);
  background: color-mix(in srgb, var(--onepos-primary) 9%, #fff);
}

.menu-category {
  margin-bottom: 34px;
  display: none;
}

.menu-category.active {
  display: block;
}

.menu-category-head {
  margin: 0 0 14px;
}

.menu-category-head h2 {
  font-size: 1.45rem;
  font-weight: 950;
}

.customer-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.menu-product-card {
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(24,24,24,.07);
}

.product-gallery {
  background: #f2eee9;
}

.product-gallery img {
  aspect-ratio: 4 / 3;
}

.product-gallery-empty {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: #f8fafc;
  color: var(--onepos-muted);
  padding: 16px;
  text-align: center;
  font-weight: 900;
}

.menu-product-body {
  padding: 13px;
  gap: 8px;
}

.menu-product-body strong {
  font-size: .98rem;
  font-weight: 950;
}

.menu-product-body span {
  font-size: .76rem;
}

.menu-product-body .item-add {
  border: 0;
  border-radius: 999px;
  background: #111;
  padding: 9px 12px;
  font-weight: 900;
  font-size: .86rem;
}

.customer-cart {
  top: 18px;
  border: 0;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 18px 46px rgba(24,24,24,.12);
}

@media (min-width: 993px) {
  .customer-grid {
    display: block;
    padding-right: calc(360px + clamp(16px, 4vw, 46px) + 22px);
  }

  .customer-cart {
    position: fixed !important;
    top: 18px;
    right: max(clamp(16px, 4vw, 46px), calc((100vw - 1440px) / 2 + 46px));
    z-index: 50;
    width: 360px;
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 1399px) {
  .product-create-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .product-create-images {
    grid-column: span 3;
  }
}

@media (max-width: 991px) {
  .product-create-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-create-images,
  .product-create-submit {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575px) {
  .product-create-form {
    grid-template-columns: 1fr;
  }
}

.customer-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.customer-action-row .btn-outline-danger {
  grid-column: 1 / -1;
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 500;
  font-size: .82rem;
  white-space: nowrap;
}

.fulfillment-toggle {
  display: grid;
  gap: 8px;
}

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

.fulfillment-toggle.has-delivery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.fulfillment-toggle label {
  margin: 0;
}

.fulfillment-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fulfillment-toggle span {
  min-height: 48px;
  border: 1px solid var(--onepos-line);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  font-weight: 800;
  font-size: .8rem;
  cursor: pointer;
  text-align: center;
  line-height: 1.05;
  padding: 6px 4px;
  overflow: visible;
}

.fulfillment-toggle span small {
  display: block;
  width: 100%;
  font-size: .58rem;
  font-weight: 700;
  color: currentColor;
  opacity: .75;
  white-space: nowrap;
}

.fulfillment-toggle svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.fulfillment-toggle.has-delivery span {
  font-size: .74rem;
}

.fulfillment-toggle.has-delivery span small {
  font-size: .5rem;
}

.fulfillment-toggle input:checked + span {
  background: #111;
  border-color: #111;
  color: #fff;
}

.customer-cart .btn-primary {
  border: 0;
  border-radius: 999px;
  background: var(--onepos-primary);
  padding: 8px 10px;
  font-weight: 500;
  font-size: .82rem;
  white-space: nowrap;
}

.customer-cart .btn-dark {
  border: 0;
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 500;
  font-size: .82rem;
  white-space: nowrap;
}

.cart-total.muted,
.bill-grand-row.muted {
  color: var(--onepos-muted);
  font-size: .9rem;
}

.order-panel-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.order-panel-tabs button {
  border: 1px solid #eaded2;
  background: #fff;
  border-radius: 999px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #4d463f;
  font-size: .84rem;
  font-weight: 700;
}

.order-panel-tabs button.active {
  background: #111;
  border-color: #111;
  color: #fff;
}

.order-tab-panel {
  display: none;
}

.order-tab-panel.active {
  display: block;
}

.order-status-box {
  margin-top: 0;
}

.order-steps span {
  padding: .28rem .5rem;
  font-size: .7rem;
}

.report-filter .form-label {
  font-size: .78rem;
  font-weight: 800;
  color: var(--onepos-muted);
}

.report-card {
  overflow: hidden;
}

.report-bars {
  min-height: 250px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(58px, 1fr);
  align-items: end;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 4px 0;
}

.report-bar {
  min-height: 230px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 7px;
  align-items: end;
  text-align: center;
}

.report-bar span {
  color: var(--onepos-muted);
  font-size: .72rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.report-bar b {
  width: 100%;
  height: var(--bar-height);
  min-height: 8px;
  align-self: end;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--onepos-primary), var(--onepos-accent));
}

.report-bar small {
  min-height: 34px;
  display: grid;
  place-items: start center;
  color: var(--onepos-muted);
  font-size: .72rem;
  font-weight: 800;
}

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

.report-meter {
  display: grid;
  gap: 7px;
}

.report-meter div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: end;
}

.report-meter strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.report-meter span {
  grid-column: 1;
  color: var(--onepos-muted);
  font-size: .78rem;
}

.report-meter b {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: #111;
  white-space: nowrap;
}

.report-meter > i {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--onepos-primary), var(--onepos-warm));
}

.report-meter.compact b {
  font-size: .88rem;
}

.report-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.report-status-pill {
  border: 1px solid var(--onepos-line);
  border-radius: 10px;
  background: #fff;
  padding: 12px;
}

.report-status-pill span,
.report-status-pill small {
  display: block;
  color: var(--onepos-muted);
  font-size: .78rem;
  font-weight: 800;
}

.report-status-pill strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1.1;
}

.report-print-head {
  display: none;
}

@media (max-width: 1320px) {
  .kds-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .customer-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media print {
  body:has(.report-print-area) {
    background: #fff !important;
  }

  body:has(.report-print-area) .onepos-shell {
    display: block !important;
  }

  body:has(.report-print-area) .onepos-sidebar,
  body:has(.report-print-area) .onepos-main > header,
  body:has(.report-print-area) .no-print,
  body:has(.report-print-area) .report-filter,
  body:has(.report-print-area) .btn,
  body:has(.report-print-area) .live-update-toast {
    display: none !important;
  }

  body:has(.report-print-area) .onepos-main {
    padding: 0 !important;
  }

  body:has(.report-print-area) .report-print-area {
    display: block !important;
    color: #111 !important;
    background: #fff !important;
  }

  body:has(.report-print-area) .report-print-head {
    display: block;
    margin-bottom: 14px;
    border-bottom: 2px solid #111;
    padding-bottom: 8px;
  }

  body:has(.report-print-area) .report-print-head h1 {
    margin: 0 0 4px;
    font-size: 22px;
  }

  body:has(.report-print-area) .report-print-head p {
    margin: 0;
    color: #444;
    font-size: 12px;
  }

  body:has(.report-print-area) .card,
  body:has(.report-print-area) .stat-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    break-inside: avoid;
  }

  body:has(.report-print-area) .report-bars {
    min-height: 170px;
    overflow: visible;
  }

  body:has(.report-print-area) .report-bar {
    min-height: 155px;
  }

  body:has(.report-print-area) .table-responsive {
    overflow: visible !important;
  }

  body:has(.report-print-area) table {
    font-size: 11px;
  }

  body:has(.report-print-area) a[href]::after {
    content: "";
  }

  body.bill-page {
    background: #fff;
    padding: 0;
  }

  .bill-sheet {
    box-shadow: none;
    width: 100%;
  }

  .bill-actions {
    display: none;
  }
}

@media (max-width: 992px) {
  .customer-screen {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .customer-screen .customer-hero,
  .customer-screen .customer-grid,
  .customer-screen .customer-footer {
    width: 100%;
    max-width: 100vw;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  .customer-screen .customer-grid {
    display: grid;
    padding: 14px;
    gap: 16px;
  }

  .customer-screen .customer-grid > section,
  .customer-screen .customer-cart {
    min-width: 0;
    width: 100%;
  }

  .customer-screen .customer-cart {
    position: static !important;
    inset: auto !important;
    max-height: none;
    overflow: visible;
  }

  .onepos-shell,
  .customer-grid,
  .settings-workspace {
    grid-template-columns: 1fr;
  }

  .onepos-shell {
    display: block;
  }

  body.sidebar-drawer-open {
    overflow: hidden;
  }

  .mobile-admin-bar {
    position: sticky;
    top: 0;
    z-index: 1040;
    min-height: 62px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #fff;
    border-bottom: 1px solid var(--onepos-line);
    box-shadow: 0 8px 20px rgba(23,32,51,.06);
  }

  .mobile-brand {
    min-width: 0;
  }

  .mobile-brand strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-menu-toggle,
  .sidebar-close {
    width: 42px;
    height: 42px;
    border: 1px solid var(--onepos-line);
    border-radius: 10px;
    background: #fff;
    color: var(--onepos-ink);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
  }

  .mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--onepos-ink);
    text-decoration: none;
    font-weight: 900;
  }

  .mobile-brand span {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: var(--onepos-primary);
    color: #fff;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: block;
    background: rgba(0,0,0,.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
  }

  body.sidebar-drawer-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .onepos-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1060;
    width: min(310px, 86vw);
    max-width: 86vw;
    transform: translateX(-100%);
    transition: transform .22s ease;
    overflow-y: auto;
    padding: 16px;
    box-shadow: 18px 0 44px rgba(0,0,0,.24);
  }

  body.sidebar-drawer-open .onepos-sidebar {
    transform: translateX(0);
  }

  .sidebar-brand-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }

  .onepos-sidebar .brand {
    margin-bottom: 0;
  }

  .onepos-sidebar .nav-link {
    min-height: 46px;
  }

  .sidebar-user {
    margin-top: 18px;
    padding-bottom: 18px;
  }

  .onepos-main {
    width: 100%;
    padding: 14px;
    overflow-x: hidden;
  }

  .onepos-main > header {
    display: grid !important;
    align-items: start !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
  }

  .admin-page-kicker {
    font-size: .68rem;
    letter-spacing: .04em;
  }

  .admin-header-actions,
  .onepos-main > header .d-flex.gap-2 {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px !important;
  }

  .onepos-main > header .btn {
    width: 100%;
    min-height: 42px;
    font-size: .88rem;
    padding: 9px 10px;
    white-space: normal;
    line-height: 1.15;
  }

  .onepos-main h1,
  .onepos-main .h3 {
    font-size: 1.45rem;
  }

  .table-responsive {
    border-radius: 10px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table {
    min-width: 680px;
    font-size: .9rem;
  }

  .table th,
  .table td {
    padding: 10px;
    vertical-align: middle;
  }

  .table .btn,
  .menu-admin-table .btn {
    min-height: 34px;
    padding: 6px 8px;
    font-size: .82rem;
  }

  .card-header,
  .card-body {
    padding: 14px;
  }

  .card-header {
    display: grid !important;
    align-items: start !important;
    gap: 8px !important;
  }

  .card-header > .d-flex,
  .card-header form,
  .card-header .row {
    min-width: 0;
  }

  .dashboard-live .stat-card {
    min-height: 92px;
    padding: 14px;
  }

  .stat-card strong {
    font-size: 1.45rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .order-card .d-flex,
  .status-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
  }

  .status-row b,
  .order-card span,
  .order-card strong {
    overflow-wrap: anywhere;
  }

  .service-chip-wrap {
    gap: 8px;
  }

  .service-chip {
    max-width: 100%;
  }

  .btn {
    white-space: normal;
  }

  .text-nowrap {
    white-space: normal !important;
  }

  .kitchen-board,
  .kds-board {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

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

  .kds-shell {
    padding: 12px;
    border-radius: 12px;
  }

  .kds-top {
    grid-template-columns: 1fr;
  }

  .kds-live {
    justify-self: start;
  }

  .customer-cart {
    position: static;
  }

  .customer-hero {
    min-height: 0;
    padding: 14px 16px 16px;
  }

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

  .customer-brand-row > div:not(.customer-logo) {
    min-width: 0;
  }

  .customer-brand-row h1 {
    display: block;
    font-size: 1.35rem;
  }

  .customer-description {
    font-size: .95rem;
    margin: .55rem 0;
  }

  .customer-contact-actions {
    gap: 7px;
    flex-wrap: wrap;
  }

  .customer-contact-actions a {
    min-height: 34px;
    padding: 6px 10px;
    font-size: .84rem;
    gap: 6px;
  }

  .customer-contact-actions a svg {
    width: 15px;
    height: 15px;
  }

  .category-tabs {
    width: 100%;
    max-width: 100%;
    gap: 8px;
    padding: 8px 0 12px;
    margin: 0 0 18px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .category-tabs button {
    min-width: max-content;
    white-space: nowrap;
    padding: 8px 13px;
    font-size: .9rem;
  }

  .settings-business-preview {
    position: static;
  }

  .customer-product-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }

  .menu-product-card {
    width: 100%;
    max-width: 100%;
  }

  .product-gallery img,
  .product-gallery-empty {
    width: 100%;
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
  }

  .menu-product-body .item-add {
    width: 100%;
  }

  .permission-grid,
  .service-chip-wrap,
  .report-status-grid {
    grid-template-columns: 1fr;
  }

  .orders-served-head,
  .orders-history-filter {
    grid-template-columns: 1fr;
  }

  .qr-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }

  .qr-card img {
    width: 96px;
    height: 96px;
  }

  .qr-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .qr-actions .btn {
    width: 100%;
  }

  .category-admin-row {
    display: grid;
    grid-template-columns: 34px 44px minmax(0, 1fr);
    align-items: center;
  }

  .category-admin-actions {
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }

  .category-admin-actions .btn {
    width: 100%;
  }

  .category-admin-main strong,
  .category-admin-main small {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .menu-item-cell {
    min-width: 160px;
  }

  .settings-panel,
  .settings-business-preview {
    padding: 14px;
    border-radius: 10px;
  }

  .settings-panel-head {
    align-items: center;
  }

  .settings-panel-head > svg {
    width: 32px;
    height: 32px;
  }

  .modal-dialog {
    max-width: calc(100vw - 8px);
    margin: 4px auto;
  }

  .modal-content {
    border-radius: 10px;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 14px;
  }

  .modal-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .admin-image-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-brand-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .service-badge {
    width: fit-content;
  }

  .customer-footer {
    display: grid;
  }

  .customer-footer-links {
    justify-items: start;
  }

  .customer-socials {
    justify-content: flex-start;
  }

  .product-edit-dialog {
    height: calc(100dvh - 8px);
    max-width: calc(100vw - 8px);
    margin: 4px auto;
  }

  .menu-gallery-dialog {
    padding: 62px 12px 24px;
  }

  .menu-gallery-dialog figure {
    border-radius: 14px;
  }

  .menu-gallery-dialog img {
    max-height: calc(100vh - 176px);
    padding: 4px;
  }

  .menu-gallery-nav {
    width: 44px;
    height: 44px;
    background: #fff;
  }

  .menu-gallery-nav.prev {
    left: 8px;
  }

  .menu-gallery-nav.next {
    right: 8px;
  }
}

@media (max-width: 420px) {
  .customer-screen .customer-grid {
    padding: 10px;
  }

  .customer-hero {
    padding: 12px;
  }

  .customer-logo {
    width: 48px;
    height: 48px;
  }

  .customer-brand-row p {
    font-size: .92rem;
    overflow-wrap: anywhere;
  }

  .customer-description {
    font-size: .86rem;
    line-height: 1.45;
  }

  .customer-contact-actions a {
    min-height: 31px;
    padding: 5px 8px;
    font-size: .76rem;
  }

  .menu-category-head h2 {
    font-size: 1.25rem;
  }

  .product-gallery img,
  .product-gallery-empty {
    max-height: 300px;
  }

  .onepos-main {
    padding: 10px;
  }

  .mobile-admin-bar {
    min-height: 56px;
    padding: 8px 10px;
  }

  .mobile-menu-toggle,
  .sidebar-close {
    width: 38px;
    height: 38px;
  }

  .mobile-brand span {
    width: 32px;
    height: 32px;
    font-size: .86rem;
  }

  .admin-header-actions,
  .onepos-main > header .d-flex.gap-2 {
    grid-template-columns: 1fr;
  }

  .mobile-brand strong {
    font-size: .95rem;
  }

  .stat-card strong {
    font-size: 1.35rem;
  }

  .dashboard-live {
    --bs-gutter-x: .65rem;
    --bs-gutter-y: .65rem;
  }

  .card-header,
  .card-body {
    padding: 12px;
  }

  .table {
    min-width: 620px;
    font-size: .84rem;
  }

  .qr-card {
    grid-template-columns: 78px minmax(0, 1fr);
    padding: 10px;
  }

  .qr-card img {
    width: 78px;
    height: 78px;
  }

  .order-card .d-flex,
  .status-row {
    grid-template-columns: 1fr;
  }

  .kds-stats {
    grid-template-columns: 1fr;
  }

  .category-tabs button {
    font-size: .84rem;
    padding: 7px 11px;
  }
}
