:root {
  --bg: #fcf9f7;
  --bg-alt: #f4ece8;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: #ffffff;
  --line: rgba(95, 59, 53, 0.14);
  --line-strong: rgba(78, 45, 42, 0.22);
  --text: #4e2d2a;
  --muted: #7f5449;
  --primary: #6f473e;
  --primary-deep: #4e2d2a;
  --primary-soft: rgba(111, 71, 62, 0.12);
  --success: #7f5449;
  --warning: #9f756a;
  --danger: #8c5d50;
  --shadow: 0 24px 70px rgba(78, 45, 42, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

.service-call-alerts{position:fixed;z-index:99999;top:18px;left:18px;width:min(390px,calc(100vw - 36px));padding:14px;border:2px solid #efb638;border-radius:20px;background:#fff8df;box-shadow:0 20px 60px rgba(66,42,15,.3);direction:rtl;animation:serviceCallPulse 1.2s ease-in-out infinite alternate}.service-call-alert-head{display:flex;align-items:center;gap:9px;margin-bottom:10px;color:#5b3905;font-size:18px}.service-call-alert-head span{font-size:28px}.service-call-alert-head b{margin-right:auto;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#d83b32;color:#fff}.service-call-alert-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px;margin-top:8px;border-radius:14px;background:#fff}.service-call-alert-row div{display:flex;flex-direction:column;gap:3px}.service-call-alert-row strong{font-size:17px;color:#241814}.service-call-alert-row small{color:#6e625b}.service-call-alert-row button{border:0;border-radius:10px;padding:9px 12px;background:#31564c;color:#fff;font:700 13px/1.5 inherit;cursor:pointer}.service-call-alert-row button:disabled{opacity:.55}@keyframes serviceCallPulse{from{box-shadow:0 14px 40px rgba(66,42,15,.22)}to{box-shadow:0 18px 65px rgba(239,182,56,.55)}}@media(max-width:650px){.service-call-alerts{top:10px;left:10px;width:calc(100vw - 20px)}}

* {
  box-sizing: border-box;
}

html {
  background:
    radial-gradient(circle at top right, rgba(111, 71, 62, 0.08), transparent 28%),
    linear-gradient(180deg, #fffefe 0%, #f7f1ee 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Vazirmatn", sans-serif;
  color: var(--text);
  background: transparent;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

#app {
  min-height: 100vh;
}

.login-page,
.app-shell {
  min-height: 100vh;
}

.app-shell.app-font-small {
  font-size: 0.92rem;
}

.app-shell.app-font-normal {
  font-size: 1rem;
}

.app-shell.app-font-large {
  font-size: 1.12rem;
}

.app-shell {
  --custom-panel-color: #f6ebe7;
  --custom-secondary-color: var(--primary-deep);
  --panel: color-mix(in srgb, var(--custom-panel-color) 18%, white 82%);
  --panel-strong: color-mix(in srgb, var(--custom-panel-color) 30%, white 70%);
  --panel-soft: color-mix(in srgb, var(--custom-panel-color) 12%, white 88%);
  --line: color-mix(in srgb, var(--custom-secondary-color) 16%, transparent);
  --line-strong: color-mix(in srgb, var(--custom-secondary-color) 28%, transparent);
  --muted: color-mix(in srgb, var(--custom-secondary-color) 78%, #ffffff 22%);
  --primary-soft: color-mix(in srgb, var(--primary) 14%, transparent);
  --danger: color-mix(in srgb, var(--custom-secondary-color) 48%, #d84e5f 52%);
  --shadow: 0 24px 70px color-mix(in srgb, var(--custom-secondary-color) 14%, transparent);
  --input-bg: #fff;
}

.app-shell.app-theme-dark {
  --bg: #201715;
  --bg-alt: #2c201d;
  --panel: color-mix(in srgb, var(--custom-panel-color) 10%, #30231f 90%);
  --panel-strong: color-mix(in srgb, var(--custom-panel-color) 14%, #3a2925 86%);
  --panel-soft: color-mix(in srgb, var(--custom-panel-color) 8%, #241a18 92%);
  --input-bg: #241a18;
  --line: rgba(228, 206, 199, 0.16);
  --line-strong: rgba(228, 206, 199, 0.28);
  --text: #f6ebe7;
  --muted: #ccaea7;
  --primary: #ccaea7;
  --primary-deep: #f6ebe7;
  --primary-soft: rgba(228, 206, 199, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  background: linear-gradient(180deg, #201715, #2c201d);
  color: var(--text);
}

.app-shell.app-theme-dark .sidebar,
.app-shell.app-theme-dark .sidebar-card,
.app-shell.app-theme-dark .panel,
.app-shell.app-theme-dark .summary-card,
.app-shell.app-theme-dark .task-card,
.app-shell.app-theme-dark .info-card,
.app-shell.app-theme-dark .empty-card {
  background: var(--panel);
  color: var(--text);
}

.app-shell.app-theme-dark input,
.app-shell.app-theme-dark select,
.app-shell.app-theme-dark textarea,
.app-shell.app-theme-dark .secondary-btn,
.app-shell.app-theme-dark .tab-btn,
.app-shell.app-theme-dark .status-btn {
  background: #241a18;
  color: var(--text);
  border-color: var(--line);
}

.app-shell.app-theme-dark .meta-text,
.app-shell.app-theme-dark .section-subtitle,
.app-shell.app-theme-dark .inline-note {
  color: var(--muted);
}

.app-shell.app-theme-dark .sidebar-nav__icon img {
  filter: brightness(0) saturate(100%) invert(91%) sepia(12%) saturate(544%) hue-rotate(327deg) brightness(101%) contrast(93%);
}

.app-shell.app-theme-dark .clock-box,
.app-shell.app-theme-dark .overview-focus-card,
.app-shell.app-theme-dark .overview-mini-card,
.app-shell.app-theme-dark .overview-stats .summary-card,
.app-shell.app-theme-dark .overview-progress-item,
.app-shell.app-theme-dark .overview-service-pill,
.app-shell.app-theme-dark .sales-rank-card,
.app-shell.app-theme-dark .sales-customer-card,
.app-shell.app-theme-dark .sales-product-kpis div,
.app-shell.app-theme-dark .sales-product-focus,
.app-shell.app-theme-dark .search-result-card,
.app-shell.app-theme-dark .modal-card,
.app-shell.app-theme-dark .payment-title,
.app-shell.app-theme-dark .discount-box,
.app-shell.app-theme-dark .pos-table-wrap,
.app-shell.app-theme-dark .pos-option,
.app-shell.app-theme-dark .pos-category-tab.active,
.app-shell.app-theme-dark .pos-product-btn,
.app-shell.app-theme-dark .product-image-preview,
.app-shell.app-theme-dark .product-thumb,
.app-shell.app-theme-dark .mini-btn,
.app-shell.app-theme-dark .pos-addon-chip {
  background: var(--panel-soft);
  color: var(--text);
  border-color: var(--line);
}

.app-shell.app-theme-dark .pos-shell,
.app-shell.app-theme-dark .pos-order-panel,
.app-shell.app-theme-dark .pos-queue-panel,
.app-shell.app-theme-dark .pos-products-panel,
.app-shell.app-theme-dark .table-control-card,
.app-shell.app-theme-dark .table-layout-board {
  background: var(--panel);
  color: var(--text);
  border-color: var(--line);
}

.app-shell.app-theme-dark .pos-product-btn.tone-0,
.app-shell.app-theme-dark .pos-product-btn.tone-1,
.app-shell.app-theme-dark .pos-product-btn.tone-2,
.app-shell.app-theme-dark .pos-product-btn.tone-3,
.app-shell.app-theme-dark .pos-product-btn.tone-4,
.app-shell.app-theme-dark .pos-product-btn.tone-5,
.app-shell.app-theme-dark .numpad-key,
.app-shell.app-theme-dark .pos-category-tab,
.app-shell.app-theme-dark .discount-panel,
.app-shell.app-theme-dark .payment-choice {
  background: color-mix(in srgb, var(--custom-panel-color) 12%, #241a18 88%);
  color: var(--text);
  border-color: var(--line);
}

.app-shell.app-theme-dark .overview-donut,
.app-shell.app-theme-dark .sales-product-donut {
  background:
    radial-gradient(circle, var(--panel) 0 53%, transparent 54%),
    conic-gradient(var(--primary) calc(var(--value, 0) * 1%), rgba(228, 206, 199, 0.16) 0);
}

.app-shell.app-theme-dark .sales-product-donut-split {
  background:
    radial-gradient(circle, var(--panel) 0 53%, transparent 54%),
    var(--donut);
}

.app-shell.app-theme-dark table,
.app-shell.app-theme-dark td,
.app-shell.app-theme-dark .empty-row {
  color: var(--text);
}

.danger-panel {
  border-color: rgba(216, 78, 95, 0.28);
  box-shadow: 0 24px 70px rgba(216, 78, 95, 0.08);
}

.login-page {
  display: grid;
  place-items: center;
  padding: 32px;
}

.login-card,
.panel,
.summary-card,
.task-card,
.info-card,
.empty-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-card {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.8fr);
  border-radius: 32px;
  overflow: hidden;
}

.login-hero {
  padding: 44px;
  background:
    linear-gradient(140deg, rgba(78, 45, 42, 0.96), rgba(111, 71, 62, 0.84)),
    linear-gradient(180deg, #6f473e, #4e2d2a);
  color: #fff;
  position: relative;
  isolation: isolate;
}

.login-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./F261.jpg") right center / cover no-repeat;
  opacity: 0.3;
  pointer-events: none;
}

.login-hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(6px);
}

.login-hero > * {
  position: relative;
  z-index: 1;
}

.login-form-wrap {
  padding: 44px 36px;
  background: rgba(255, 255, 255, 0.96);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
}

.login-hero .eyebrow,
.login-hero .muted-text,
.login-hero .list-note {
  color: rgba(255, 255, 255, 0.82);
}

h1,
h2,
h3,
h4,
h5,
p {
  margin-top: 0;
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.brand-mark {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.5);
  overflow: hidden;
  padding: 4px;
  box-shadow: 0 18px 34px rgba(7, 45, 118, 0.16);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 24px;
}

.table-layout-board {
  position: relative;
  min-height: 420px;
  border-radius: 24px;
  border: 1px dashed var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 241, 237, 0.96)),
    repeating-linear-gradient(90deg, rgba(95, 59, 53, 0.05) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(180deg, rgba(95, 59, 53, 0.05) 0 1px, transparent 1px 48px);
  overflow: hidden;
}

.table-editor-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 280px;
  gap: 16px;
  align-items: start;
}

.table-editor-shell-wide {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.table-layout-board-large {
  min-height: 640px;
}

.table-layout-controls {
  display: grid;
  gap: 12px;
}

.table-control-card {
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(178, 142, 132, 0.55);
}

.table-control-title {
  font-weight: 800;
  color: #5f3b35;
  margin-bottom: 10px;
}

.table-status-grid,
.table-nudge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.table-nudge-grid.compact {
  margin-top: 8px;
}

.table-status-btn.active,
.table-nudge-grid .secondary-btn.active {
  background: #8c5d50;
  color: #fff;
  border-color: #8c5d50;
}

.layout-table {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px;
  border-radius: 22px;
  border: 1px solid rgba(29, 111, 242, 0.18);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 30px rgba(22, 50, 79, 0.08);
  cursor: grab;
  z-index: 2;
  transition:
    box-shadow 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease;
}

.layout-table.round {
  border-radius: 999px;
}

.layout-table.selected {
  border: 2px solid #5f3b35;
  box-shadow:
    0 0 0 3px rgba(140, 93, 80, 0.14),
    0 18px 34px rgba(95, 59, 53, 0.12);
  transform: scale(1.01);
}

.layout-table:active {
  cursor: grabbing;
}

.layout-table small {
  margin-top: 4px;
  font-size: 0.75rem;
  color: rgba(78, 45, 42, 0.76);
}

.layout-table.available {
  background: rgba(31, 157, 112, 0.14);
}

.layout-table.occupied {
  background: rgba(216, 78, 95, 0.14);
}

.layout-table.reserved {
  background: rgba(245, 158, 11, 0.16);
}

.layout-table.cleaning {
  background: rgba(29, 111, 242, 0.12);
}

.layout-element {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px dashed rgba(95, 59, 53, 0.45);
  background: rgba(95, 59, 53, 0.14);
  color: #5f3b35;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: grab;
  z-index: 1;
}

.layout-element.selected {
  border: 2px solid #5f3b35;
  box-shadow: 0 0 0 3px rgba(140, 93, 80, 0.14);
}

.layout-element:active {
  cursor: grabbing;
}

.task-card-selected {
  border: 2px solid rgba(95, 59, 53, 0.48);
  box-shadow: 0 18px 32px rgba(95, 59, 53, 0.08);
}

.brand-mark-light {
  background: #fff;
  border-color: rgba(29, 111, 242, 0.12);
}

.hero-points,
.hero-credentials,
.stat-grid,
.grid,
.stack,
.sidebar-nav,
.employee-metrics {
  display: grid;
  gap: 16px;
}

.hero-points {
  margin-top: 28px;
}

.list-note,
.muted-text,
.field-note,
.meta-text,
.section-subtitle,
.inline-note {
  color: var(--muted);
  line-height: 1.8;
}

.hero-credentials {
  margin-top: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.credential-card {
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.login-form-wrap h2 {
  margin-bottom: 10px;
}

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

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

.field,
.field.full {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--text);
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(29, 111, 242, 0.12);
}

textarea {
  resize: vertical;
  min-height: 112px;
}

.primary-btn,
.secondary-btn,
.danger-btn,
.tab-btn,
.status-btn {
  border: 0;
  border-radius: 14px;
  padding: 13px 16px;
  font-weight: 700;
}

button:disabled {
  cursor: wait;
  opacity: 0.78;
}

.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-loader {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-left-color: transparent;
  animation: btn-spin 0.7s linear infinite;
  flex: 0 0 18px;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: 0 12px 24px rgba(29, 111, 242, 0.24);
}

.pos-invoice-no,
.pos-total-box,
.payment-total {
  background: var(--primary-deep);
  border-color: var(--primary);
}

.pos-invoice-table th {
  background: var(--primary-deep);
}

.pos-tool.primary,
.payment-choice.active,
.table-status-btn.active,
.table-nudge-grid .secondary-btn.active {
  background: linear-gradient(180deg, var(--primary), var(--primary-deep));
  border-color: var(--primary);
}

.pos-submit-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
}

.secondary-btn,
.tab-btn,
.status-btn {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
}

.danger-btn {
  color: #fff;
  background: linear-gradient(135deg, #f05d68, #d84e5f);
}

.task-card-warning {
  border: 2px solid rgba(216, 78, 95, 0.72);
  box-shadow: 0 18px 34px rgba(216, 78, 95, 0.08);
  outline: 2px solid rgba(216, 78, 95, 0.18);
  outline-offset: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 34, 64, 0.4);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 40;
}

.modal-card {
  width: min(520px, 100%);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 22px 48px rgba(10, 43, 101, 0.18);
  padding: 24px;
}

.tab-btn.active,
.status-btn.active {
  background: var(--primary-soft);
  border-color: #8c5d50;
  color: var(--primary-deep);
  box-shadow: inset 0 0 0 1px rgba(140, 93, 80, 0.18);
}

.sidebar-nav .tab-btn-pos.active {
  border: 2px solid #6f473e;
  background: rgba(111, 71, 62, 0.12);
  color: #4e2d2a;
  box-shadow:
    inset 0 0 0 1px rgba(111, 71, 62, 0.16),
    0 8px 18px rgba(95, 59, 53, 0.1);
}

.login-actions,
.actions-row,
.card-actions,
.status-row,
.topbar-actions,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.sidebar {
  padding: 28px 22px;
  border-left: 1px solid rgba(78, 45, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  padding: 20px;
  border-radius: 24px;
  background: rgba(246, 235, 231, 0.92);
  border: 1px solid var(--line);
}

.sidebar-nav button {
  text-align: right;
}

.sidebar-nav .tab-btn {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  direction: ltr;
}

.sidebar-nav__label {
  flex: 0 1 auto;
  text-align: right;
}

.sidebar-nav__icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-nav__icon img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.main {
  padding: 28px;
}

.main.pos-main {
  padding: 8px;
  min-height: 100vh;
  height: auto;
  overflow: visible;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.topbar h2 {
  margin-bottom: 8px;
}

.clock-box {
  min-width: 220px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  text-align: center;
}

.panel {
  border-radius: var(--radius-xl);
  padding: 24px;
}

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

.section-title {
  margin-bottom: 8px;
}

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

.summary-card,
.info-card,
.task-card,
.empty-card {
  border-radius: 22px;
  padding: 20px;
}

.summary-card strong,
.summary-card span.big-number {
  display: block;
}

.big-number {
  font-size: 2rem;
  margin: 10px 0 6px;
  color: var(--primary-deep);
}

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

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

.overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(180px, 0.75fr));
  gap: 16px;
  margin-bottom: 22px;
}

.overview-focus-card,
.overview-mini-card {
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #ffffff, #f6efec);
  box-shadow: var(--shadow);
}

.overview-focus-card {
  min-height: 190px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.overview-focus-card strong {
  display: block;
  margin: 8px 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  color: var(--primary-deep);
}

.overview-focus-card span,
.overview-mini-card small {
  color: var(--muted);
  line-height: 1.8;
}

.overview-mini-card {
  min-height: 190px;
  padding: 22px;
  display: grid;
  align-content: center;
  gap: 8px;
}

.overview-mini-card span {
  color: var(--muted);
  font-weight: 800;
}

.overview-mini-card strong {
  font-size: 2.6rem;
  color: var(--primary-deep);
}

.overview-donut {
  --value: 0;
  width: 148px;
  height: 148px;
  flex: 0 0 148px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background:
    radial-gradient(circle, #fff 0 54%, transparent 55%),
    conic-gradient(var(--primary) calc(var(--value) * 1%), rgba(95, 59, 53, 0.14) 0);
}

.overview-donut b,
.overview-donut small {
  grid-area: 1 / 1;
}

.overview-donut b {
  transform: translateY(-8px);
  font-size: 1.6rem;
  color: var(--primary-deep);
}

.overview-donut small {
  transform: translateY(22px);
  color: var(--muted);
  font-weight: 800;
  font-size: 0.8rem;
}

.overview-stats .summary-card {
  background: #fff;
}

.overview-bar-chart,
.overview-progress-list,
.overview-alert-list,
.overview-service-grid {
  display: grid;
  gap: 12px;
}

.overview-bar-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 120px;
  gap: 12px;
  align-items: center;
}

.overview-bar-row span,
.overview-progress-item span {
  color: var(--muted);
  font-weight: 700;
}

.overview-bar-row strong {
  text-align: left;
  color: var(--primary-deep);
}

.overview-bar-track {
  height: 18px;
  border-radius: 999px;
  background: rgba(95, 59, 53, 0.1);
  overflow: hidden;
}

.overview-bar-track i,
.overview-service-pill i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9f756a, #5f3b35);
}

.overview-progress-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(246, 239, 236, 0.78);
  border: 1px solid rgba(178, 142, 132, 0.32);
}

.overview-progress-item div:first-child {
  display: grid;
  gap: 4px;
}

.overview-progress-item b {
  color: var(--primary-deep);
  text-align: left;
}

.overview-progress-list.compact .overview-progress-item {
  grid-template-columns: 94px minmax(0, 1fr) 42px;
}

.overview-alert {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(95, 59, 53, 0.08);
  border: 1px solid rgba(95, 59, 53, 0.14);
  color: var(--primary-deep);
  font-weight: 800;
  line-height: 1.8;
}

.overview-alert.danger {
  background: rgba(216, 78, 95, 0.1);
  border-color: rgba(216, 78, 95, 0.24);
  color: #9f2f41;
}

.overview-service-pill {
  position: relative;
  overflow: hidden;
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  gap: 4px;
}

.overview-service-pill strong,
.overview-service-pill span {
  position: relative;
  z-index: 1;
}

.overview-service-pill span {
  color: var(--muted);
}

.overview-service-pill i {
  position: absolute;
  inset: auto 0 0 auto;
  height: 5px;
  min-width: 8px;
}

.sales-report-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(190px, 0.78fr));
  gap: 16px;
  margin-bottom: 22px;
}

.sales-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.sales-rank-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(78, 45, 42, 0.04);
}

.sales-rank-card > span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(95, 59, 53, 0.1);
  color: var(--primary-deep);
  font-weight: 900;
}

.sales-rank-card div {
  display: grid;
  gap: 4px;
}

.sales-rank-card small {
  color: var(--muted);
  font-weight: 700;
}

.sales-rank-card b {
  color: var(--primary-deep);
  white-space: nowrap;
}

.sales-product-focus {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px;
  margin-bottom: 14px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(95, 59, 53, 0.08), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(178, 142, 132, 0.34);
}

.sales-product-focus strong {
  display: block;
  font-size: 1.3rem;
  color: var(--primary-deep);
}

.sales-product-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.sales-product-kpis div {
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  gap: 5px;
}

.sales-product-kpis span,
.sales-product-kpis small {
  color: var(--muted);
  font-weight: 700;
}

.sales-product-kpis strong {
  color: var(--primary-deep);
  font-size: 1.05rem;
}

.sales-product-donut {
  --value: 0;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, #fff 0 53%, transparent 54%),
    conic-gradient(#5f3b35 calc(var(--value) * 1%), rgba(95, 59, 53, 0.13) 0);
}

.sales-product-donut-split {
  background:
    radial-gradient(circle, #fff 0 53%, transparent 54%),
    var(--donut);
}

.sales-product-donut b,
.sales-product-donut small {
  grid-area: 1 / 1;
}

.sales-product-donut b {
  transform: translateY(-8px);
  font-size: 1.35rem;
  color: var(--primary-deep);
}

.sales-product-donut small {
  width: 70px;
  transform: translateY(22px);
  text-align: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.5;
}

.sales-product-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.sales-product-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(95, 59, 53, 0.08);
  color: var(--primary-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.sales-product-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.sales-product-legend .tone-0 { background: #5f3b35; }
.sales-product-legend .tone-1 { background: #8c5d50; }
.sales-product-legend .tone-2 { background: #b28e84; }
.sales-product-legend .tone-3 { background: #ccaea7; }
.sales-product-legend .tone-4 { background: #e4cec7; }

.sales-rank-card-rich {
  grid-template-columns: 42px minmax(0, 1fr) 110px;
}

.sales-rank-meter {
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(95, 59, 53, 0.1);
}

.sales-rank-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b28e84, #5f3b35);
}

.sales-customer-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 128px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(78, 45, 42, 0.04);
}

.sales-customer-card > span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(31, 157, 112, 0.12);
  color: #1f6b31;
  font-weight: 900;
}

.sales-customer-card div {
  display: grid;
  gap: 4px;
}

.sales-customer-card small,
.sales-customer-money small {
  color: var(--muted);
  font-weight: 700;
}

.sales-customer-money {
  text-align: left;
}

.sales-customer-money b {
  color: var(--primary-deep);
  white-space: nowrap;
}

.chip-row,
.badge-row,
.file-list,
.inline-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip,
.badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.chip,
.badge {
  background: rgba(29, 111, 242, 0.09);
  color: var(--primary-deep);
}

.badge-success {
  background: rgba(46, 160, 67, 0.14);
  border-color: rgba(46, 160, 67, 0.32);
  color: #1f6b31;
}

.employee-score-axis-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  margin-top: 12px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid rgba(111, 71, 62, 0.16);
  box-shadow: 0 18px 44px rgba(111, 71, 62, 0.12);
}

.employee-score-selected-value {
  color: var(--secondary-color);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.employee-score-selected-hint {
  color: rgba(111, 71, 62, 0.75);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.employee-score-counter-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.employee-score-ctrl-btn {
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 18px;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  transition: 0.22s ease;
}

.employee-score-ctrl-btn.plus {
  background: linear-gradient(135deg, #2f855a, #48bb78);
}

.employee-score-ctrl-btn.minus {
  background: linear-gradient(135deg, #e53e3e, #f56565);
}

.employee-score-ctrl-btn:hover {
  transform: translateY(-2px);
}

.employee-score-number-input {
  flex: 1;
  min-width: 0;
  height: 56px;
  border: 1px solid rgba(111, 71, 62, 0.16);
  outline: none;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  font-size: 30px;
  font-weight: 900;
  color: var(--secondary-color);
  font-family: inherit;
}

.employee-score-number-input:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(111, 71, 62, 0.12);
}

.employee-score-axis-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 8px;
}

.employee-score-axis-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(31, 16px);
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 620px;
  padding: 16px 0 12px;
}

.employee-score-axis-rail {
  position: absolute;
  inset-inline: 0;
  top: 50%;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(111, 71, 62, 0.16);
}

.employee-score-axis-point {
  position: relative;
  width: 16px;
  height: 16px;
  justify-self: center;
  border: 0;
  border-radius: 999px;
  background: rgba(111, 71, 62, 0.26);
  cursor: pointer;
  z-index: 2;
  transition: 0.25s ease;
}

.employee-score-axis-point:hover {
  transform: scale(1.35);
  background: #9f756a;
}

.employee-score-axis-point.active {
  background: var(--secondary-color);
  transform: scale(1.6);
  box-shadow: 0 0 14px rgba(111, 71, 62, 0.34);
}

.employee-score-axis-tooltip {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: all 0.22s ease;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 8px;
  background: var(--secondary-color);
  white-space: nowrap;
  pointer-events: none;
}

.employee-score-axis-point:hover .employee-score-axis-tooltip,
.employee-score-axis-point.active .employee-score-axis-tooltip {
  opacity: 1;
}

.employee-score-axis-card input[type="number"]::-webkit-outer-spin-button,
.employee-score-axis-card input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.employee-score-axis-card input[type="number"] {
  -moz-appearance: textfield;
}

.badge-danger {
  background: rgba(216, 78, 95, 0.14);
  border-color: rgba(216, 78, 95, 0.3);
  color: #a33445;
}

.badge-info {
  background: rgba(95, 59, 53, 0.12);
  border-color: rgba(95, 59, 53, 0.24);
  color: #6f473e;
}

.status-badge {
  background: rgba(29, 111, 242, 0.1);
  color: var(--primary-deep);
}

.status-badge.status-done {
  background: rgba(31, 157, 112, 0.12);
  color: var(--success);
}

.status-badge.status-progress {
  background: rgba(245, 158, 11, 0.12);
  color: #b7791f;
}

.status-badge.status-photo {
  background: rgba(126, 78, 255, 0.12);
  color: #6d4ee6;
}

.task-progress {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(29, 111, 242, 0.06);
  border: 1px solid rgba(29, 111, 242, 0.12);
}

.task-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--text);
}

.task-progress-head span,
.task-progress-label {
  color: var(--muted);
  font-size: 0.92rem;
}

.task-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(29, 111, 242, 0.12);
  overflow: hidden;
}

.task-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7fb6ff, #1d6ff2);
  box-shadow: 0 8px 18px rgba(29, 111, 242, 0.18);
  transition: width 220ms ease;
}

.task-progress-label {
  margin-top: 8px;
}

.table-wrap {
  overflow-x: auto;
}

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

th,
td {
  padding: 14px 10px;
  border-bottom: 1px solid rgba(29, 111, 242, 0.08);
  text-align: right;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.92rem;
}

.task-list {
  display: grid;
  gap: 16px;
}

.task-card {
  border: 1px solid var(--line);
}

.task-head,
.split-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.used-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 92px;
  gap: 12px;
  align-items: center;
}

.inventory-picker-trigger {
  width: 100%;
  min-height: 58px;
  justify-content: flex-start;
  text-align: right;
  white-space: normal;
}

.inventory-control-picker-trigger {
  min-height: 64px;
}

.inventory-picker-modal {
  width: min(680px, 100%);
}

.inventory-picker-results {
  max-height: 420px;
  overflow-y: auto;
}

.inventory-picker-result {
  width: 100%;
  text-align: right;
}

.inventory-picker-result strong,
.inventory-picker-result span {
  display: block;
}

.customer-date-row {
  grid-template-columns: minmax(260px, 1fr) minmax(360px, 420px) 110px;
  align-items: start;
}

.date-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 10px;
  align-items: center;
}

.structured-date-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}

.structured-date-select {
  min-width: 0;
}

.structured-date-wrap .field-note {
  grid-column: 1 / -1;
  margin-top: 2px;
  text-align: right;
}

.date-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 28, 56, 0.32);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 40;
}

.date-modal {
  width: min(760px, 100%);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 22px;
}

.persian-weekdays,
.persian-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.persian-weekdays {
  margin: 18px 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.persian-day {
  min-height: 82px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 8px;
  align-content: start;
  text-align: right;
}

.persian-day strong,
.persian-day span {
  pointer-events: none;
}

.persian-day span {
  color: var(--muted);
  font-size: 0.8rem;
}

.persian-day.selected-day {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(29, 111, 242, 0.12);
  background: rgba(29, 111, 242, 0.08);
}

.persian-day.today-day {
  background: rgba(29, 111, 242, 0.06);
}

.persian-day.muted-day {
  opacity: 0.45;
}

.rating-form {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.empty-card {
  text-align: center;
  color: var(--muted);
}

.file-list a {
  text-decoration: none;
}

.login-message,
.page-message {
  min-height: 24px;
  font-size: 0.95rem;
  font-weight: 600;
}

.page-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-height: auto;
  min-width: min(320px, calc(100vw - 32px));
  max-width: min(92vw, 560px);
  padding: 14px 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  color: var(--text);
  box-shadow: 0 20px 44px rgba(72, 43, 32, 0.18);
  text-align: center;
  z-index: 120;
  pointer-events: none;
}

.page-message:empty {
  opacity: 0;
}

.page-message.error,
.login-message.error {
  color: var(--danger);
}

.page-message.success,
.login-message.success {
  color: var(--success);
}

.page-message.error {
  background: rgba(255, 246, 247, 0.98);
  border-color: rgba(234, 95, 110, 0.24);
}

.page-message.success {
  background: rgba(244, 252, 247, 0.98);
  border-color: rgba(52, 179, 107, 0.2);
}

.page-message.toast {
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #34b36b, #249556);
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 16px 30px rgba(36, 149, 86, 0.28);
  font-size: 0.92rem;
  animation: toast-pop 0.18s ease-out;
}

.page-message.toast::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(36, 149, 86, 0.28);
  backdrop-filter: blur(1px);
  pointer-events: none;
  z-index: -1;
  animation: toast-flash 1s ease-out forwards;
}

@keyframes toast-pop {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 6px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes toast-flash {
  from {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.inventory-alert {
  border-right: 4px solid var(--warning);
}

.status-select {
  min-width: 180px;
}

.restaurant-home {
  min-height: 100vh;
  padding: 16px 18px 24px;
  background:
    linear-gradient(rgba(58, 34, 20, 0.18), rgba(58, 34, 20, 0.18)),
    url("./F261.jpg") center/cover no-repeat;
}

.restaurant-home__header,
.restaurant-home__footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  font-weight: 600;
}

.restaurant-home__header {
  min-height: 42px;
  align-items: center;
}

.restaurant-home__body {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr 0.95fr;
  gap: 28px;
  align-items: start;
  margin-top: 14px;
}

.restaurant-home__hero {
  min-height: 78vh;
  position: relative;
}

.upgrade-banner {
  width: min(100%, 520px);
  margin-top: 48px;
  background: #e64a2f;
  color: #fff;
  padding: 22px 28px;
  font-size: 2.1rem;
  font-weight: 800;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.12);
}

.restaurant-home__center,
.restaurant-home__right {
  display: grid;
  gap: 22px;
}

.home-menu-card {
  min-height: 118px;
  background: linear-gradient(180deg, #fefefe, #edf8ff);
  border: 3px solid #7ac9e8;
  color: #1a2430;
  font-size: 1.9rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.16);
}

.home-menu-card.center {
  border-color: #23ace0;
  background: linear-gradient(180deg, #9cefff, #dfffff);
}

.home-menu-card.side {
  background: linear-gradient(180deg, #f6ebe7, #e4cec7);
}

.pos-shell {
  min-height: 0;
  min-height: calc(100vh - 16px);
  height: auto;
  padding: 8px;
  display: grid;
  grid-template-rows: auto auto;
  gap: 8px;
  background: linear-gradient(180deg, #fffefe 0%, #f6efec 100%);
  border-radius: 28px;
  overflow: visible;
}

.pos-topline {
  margin-bottom: 0;
}

.pos-toolbar {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 4px;
}

.pos-tool {
  min-height: 56px;
  border: 1px solid #b99289;
  border-radius: 18px;
  background: linear-gradient(180deg, #f6ebe7, #e4cec7);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 8px 18px rgba(95, 59, 53, 0.12);
}

.pos-tool.primary {
  background: linear-gradient(180deg, #8c5d50, #6f473e);
  color: #fff7f4;
}

.pos-tool.accent {
  background: linear-gradient(180deg, #ccaea7, #b28e84);
}

.pos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 10px;
  align-items: start;
  min-height: 0;
  height: auto;
  direction: ltr;
}

.pos-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(420px, 1fr);
  gap: 10px;
  min-height: 0;
  align-items: start;
  direction: ltr;
}

.pos-order-panel,
.pos-queue-panel,
.pos-products-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 241, 237, 0.98));
  border: 1px solid rgba(178, 142, 132, 0.55);
  border-radius: 28px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.32),
    0 18px 40px rgba(78, 45, 42, 0.08);
  min-height: 0;
  direction: rtl;
}

.pos-order-panel {
  padding: 10px;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  height: 100%;
  overflow: hidden;
}

.pos-queue-panel {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pos-queue-panel-bottom {
  min-height: 380px;
  max-height: none;
}

.pos-queue-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 280px));
  grid-auto-rows: 332px;
  gap: 12px;
  overflow: auto;
  min-height: 0;
  max-height: none;
  align-content: start;
  justify-content: start;
}

.pos-queue-card {
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(178, 142, 132, 0.34);
  padding: 12px;
  box-shadow: 0 10px 24px rgba(78, 45, 42, 0.06);
  min-height: 332px;
  height: 332px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pos-queue-card-done {
  border: 2px solid rgba(46, 160, 67, 0.88);
  box-shadow:
    0 0 0 1px rgba(46, 160, 67, 0.12),
    0 18px 34px rgba(46, 160, 67, 0.08);
}

.pos-queue-action {
  min-height: 38px;
  padding: 7px 8px;
  font-size: 0.83rem;
  border-radius: 12px;
  white-space: nowrap;
}

.pos-queue-card .task-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
}

.pos-queue-card .task-head h4 {
  margin: 0;
  font-size: 1.18rem;
}

.pos-queue-card .meta-text {
  display: block;
  margin-top: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.5;
}

.pos-queue-meta-line {
  margin-top: 6px;
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 32px;
}

.pos-queue-card .badge-row {
  gap: 6px;
}

.pos-queue-card .card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: auto;
}

.pos-queue-card .task-head .badge {
  min-width: 116px;
  min-height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 12px;
  line-height: 1.5;
  font-weight: 800;
}

.pos-floor-overview {
  margin-top: 18px;
}

.pos-floor-status-card {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(178, 142, 132, 0.34);
  background: rgba(255, 255, 255, 0.9);
}

.pos-floor-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pos-floor-status-grid {
  margin-top: 12px;
}

.pos-floor-board {
  min-height: clamp(320px, 42vh, 520px);
  height: clamp(320px, 42vh, 520px);
  margin-top: 12px;
  aspect-ratio: var(--pos-floor-ratio, 16 / 8);
}

.pos-layout-element-static,
.pos-layout-table-static {
  cursor: default;
}

.pos-layout-table-static {
  box-sizing: border-box;
  padding: clamp(4px, 0.6vw, 10px);
  border-width: 2px;
  box-shadow: 0 14px 28px rgba(78, 45, 42, 0.14);
  min-width: 72px;
  min-height: 72px;
  max-width: min(18vw, 180px);
  max-height: min(16vw, 132px);
  overflow: hidden;
}

.pos-layout-table-static strong {
  font-size: clamp(0.72rem, 0.85vw, 1rem);
  line-height: 1.2;
  word-break: break-word;
}

.pos-layout-table-static span,
.pos-layout-table-static small {
  font-weight: 800;
  font-size: clamp(0.58rem, 0.72vw, 0.86rem);
  line-height: 1.2;
}

.pos-layout-table-static.available {
  background: #d7f3e5;
  border-color: #149764;
  color: #0e5a3b;
}

.pos-layout-table-static.occupied {
  background: #ffd6dd;
  border-color: #d8485f;
  color: #8d2034;
}

.pos-layout-table-static.reserved {
  background: #ffe7ba;
  border-color: #e6a319;
  color: #8b5a00;
}

.pos-layout-table-static.cleaning {
  background: #d9e9ff;
  border-color: #2d78f2;
  color: #174d9b;
}

.pos-layout-element-static {
  box-sizing: border-box;
  border-width: 2px;
  background: rgba(95, 59, 53, 0.2);
  max-width: min(26vw, 240px);
  max-height: 44px;
  padding-inline: 8px;
  overflow: hidden;
  font-size: clamp(0.58rem, 0.72vw, 0.82rem);
}

.pos-layout-element-static:active,
.pos-layout-table-static:active {
  cursor: default;
}

.pos-floor-table-note {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: rgba(78, 45, 42, 0.72);
}

.pos-order-head,
.pos-customer-row {
  display: grid;
  grid-template-columns: 120px 180px 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.pos-order-head label,
.pos-customer-row label {
  font-weight: 700;
}

.pos-invoice-no {
  min-height: 54px;
  display: grid;
  place-items: center;
  background: #4e2d2a;
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  border-radius: 16px;
}

.pos-customer-row {
  grid-template-columns: 1fr 250px;
}

.pos-customer-actions {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.pos-customer-picker-btn {
  min-height: 54px;
  border-radius: 14px;
  font-weight: 800;
}

.pos-customer-add-btn {
  padding: 0;
  font-size: 1.5rem;
  display: grid;
  place-items: center;
}

.pos-notes-input {
  margin-bottom: 8px;
  min-height: 54px;
}

.pos-table-wrap {
  background: #f6ebe7;
  border: 1px solid #d3b5ad;
  border-radius: 22px;
  min-height: 0;
  overflow: auto;
  max-height: 100%;
}

.pos-invoice-table {
  min-width: 100%;
}

.pos-invoice-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.pos-invoice-table th {
  background: #5f3b35;
  color: #fff;
  font-size: 1.15rem;
}

.pos-invoice-table td {
  font-size: 1rem;
}

.pos-line-name {
  font-weight: 700;
}

.pos-line-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pos-line-thumb {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(95, 59, 53, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

.pos-line-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  text-align: center;
  font-size: 11px;
  color: #8c5d50;
}

.pos-addon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.pos-addon-chip {
  border: 1px solid #ccb0a8;
  border-radius: 999px;
  background: #efe0db;
  color: #6f473e;
  padding: 4px 10px;
  font-size: 0.85rem;
}

.pos-addon-chip span {
  font-weight: 800;
  color: #8c5d50;
}

.pos-invoice-table tbody tr {
  cursor: pointer;
}

.pos-line-selected td {
  background: rgba(95, 59, 53, 0.12);
}

.pos-row-actions {
  display: flex;
  gap: 4px;
}

.mini-btn {
  border: 1px solid #ccb0a8;
  border-radius: 10px;
  background: #efe0db;
  min-width: 30px;
  min-height: 30px;
}

.mini-btn.danger {
  color: #c03737;
}

.empty-row {
  text-align: center;
  color: #7d8d9a;
  padding: 28px 0;
}

.pos-bottom {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr 170px;
  grid-template-rows: auto 1fr;
  gap: 10px;
  margin-top: 10px;
}

.pos-inline-settlement {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.pos-inline-settlement .field {
  margin: 0;
  color: #7f5449;
  font-weight: 800;
  text-shadow: none;
}

.pos-inline-settlement .field input,
.pos-inline-settlement .field select,
.inline-input-with-suffix {
  min-height: 46px;
}

.inline-input-with-suffix {
  display: grid;
  grid-template-columns: 1fr 34px;
  align-items: center;
  gap: 6px;
}

.inline-input-with-suffix span {
  display: grid;
  place-items: center;
  min-height: 46px;
  border-radius: 14px;
  background: #f6ebe7;
  color: #6f473e;
  font-weight: 800;
}

.pos-quick-actions {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
  max-height: 128px;
  overflow: auto;
}

.pos-option {
  min-height: 32px;
  width: auto;
  border: 1px solid #ccb0a8;
  border-radius: 999px;
  background: #f6ebe7;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.pos-numpad {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.numpad-key {
  min-height: 52px;
  background: linear-gradient(180deg, #e4cec7, #ccaea7);
  border: 1px solid #b99289;
  border-radius: 16px;
  font-size: 1.35rem;
  font-weight: 700;
}

.pos-total-box {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px;
  background: #5f3b35;
  color: #fff;
  border: 1px solid #8c5d50;
  border-radius: 20px;
}

.pos-total-box strong {
  font-size: 1.45rem;
}

.pos-total-box small {
  font-size: 0.9rem;
  color: rgba(255, 247, 244, 0.82);
}

.pos-submit-strip {
  margin-top: 10px;
  display: flex;
  justify-content: flex-start;
}

.pos-submit-btn {
  min-width: 220px;
  min-height: 58px;
  border-radius: 20px;
  font-size: 1.15rem;
  box-shadow: 0 14px 28px rgba(78, 45, 42, 0.15);
}

.pos-submit-btn.is-loading {
  min-width: 220px;
  padding-inline: 20px;
  gap: 10px;
  flex-direction: row-reverse;
}

.pos-submit-btn.is-loading .btn-loader {
  border-width: 3px;
}

.pos-products-panel {
  padding: 6px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.pos-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.pos-category-tab {
  min-height: 48px;
  padding: 8px 14px;
  background: #ccaea7;
  border: 1px solid #b28e84;
  border-radius: 14px 14px 0 0;
  font-weight: 700;
  color: #4e2d2a;
}

.pos-category-tab.active {
  background: #f6ebe7;
}

.pos-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  max-height: none;
  min-height: 0;
  flex: 1;
  overflow: auto;
  align-content: start;
  grid-auto-rows: min-content;
}

.pos-product-btn {
  height: 138px;
  min-height: 138px;
  border: 1px solid #ccb0a8;
  border-radius: 18px;
  background: #f6ebe7;
  display: grid;
  grid-template-rows: 104px 34px;
  align-content: stretch;
  justify-items: stretch;
  text-align: center;
  gap: 0;
  padding: 0;
  overflow: hidden;
  font-size: 0.88rem;
  font-weight: 700;
}

.pos-product-media {
  min-height: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  background: rgba(95, 59, 53, 0.18);
  overflow: hidden;
}

.pos-product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}

.pos-product-no-image {
  color: rgba(78, 45, 42, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.pos-product-name {
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 4px 6px;
  background: #fff;
  color: #1f1a18;
  line-height: 1.25;
  font-size: 0.82rem;
}

.pos-product-btn.tone-0,
.pos-product-btn.tone-4 {
  background: #e4cec7;
}

.pos-product-btn.tone-1,
.pos-product-btn.tone-5 {
  background: #ccaea7;
}

.pos-product-btn.tone-2 {
  background: #b28e84;
}

.pos-product-btn.tone-3 {
  background: #9f756a;
  color: #fff7f4;
}

.payment-box {
  padding: 6px;
}

.payment-title {
  min-height: 44px;
  padding: 8px 12px;
  background: #f6ebe7;
  border: 1px solid #d3b5ad;
  border-radius: 16px;
  font-size: 1.08rem;
}

.payment-choice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-top: 7px;
}

.payment-choice-grid.split,
.payment-method-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

.payment-choice {
  min-height: 44px;
  border: 1px solid #d3b5ad;
  border-radius: 14px;
  background: #f6ebe7;
  color: #6f473e;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(78, 45, 42, 0.06);
}

.payment-choice.active {
  background: linear-gradient(180deg, #8c5d50, #6f473e);
  border-color: #8c5d50;
  color: #fff7f4;
}

.pay-field {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  font-weight: 700;
}

.pay-field.green {
  color: #6f473e;
}

.discount-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin-top: 8px;
  padding: 8px;
  background: #e4cec7;
  border-radius: 18px;
}

.discount-panel label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px;
  color: #6f473e;
  font-weight: 800;
}

.discount-box {
  min-height: 58px;
  padding: 7px 10px;
  background: rgba(246, 235, 231, 0.74);
  border: 1px solid #d3b5ad;
  border-radius: 18px;
}

.discount-box input {
  min-height: 40px;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
}

.danger-text {
  color: #8c5d50;
  font-weight: 700;
  margin: 6px 0 0;
  line-height: 1.5;
}

.checkout-credit-note {
  display: block;
  margin-top: 5px;
  line-height: 1.45;
  font-size: 0.88rem;
}

.payment-total {
  margin-top: 10px;
  min-height: 50px;
  display: grid;
  place-items: center;
  background: #5f3b35;
  color: #fff7f4;
  border: 1px solid #8c5d50;
  border-radius: 15px;
  font-size: 1.45rem;
  font-weight: 800;
}

.pos-modal {
  max-width: 720px;
}

.pos-checkout-modal {
  max-width: 760px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 18px;
}

.pos-checkout-modal .section-head {
  margin-bottom: 8px;
}

.pos-checkout-modal .section-title {
  margin-bottom: 2px;
}

.pos-search-results {
  max-height: 420px;
  overflow: auto;
}

.search-result-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f6ebe7;
  text-align: right;
  box-shadow: 0 10px 24px rgba(78, 45, 42, 0.06);
}

.search-result-card-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.product-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid #d3b5ad;
  background: #f6ebe7;
}

.product-thumb-placeholder {
  display: grid;
  place-items: center;
  color: #8c5d50;
  font-size: 0.8rem;
}

.product-image-preview {
  min-height: 160px;
  border: 1px dashed #d3b5ad;
  border-radius: 20px;
  background: rgba(246, 235, 231, 0.78);
  display: grid;
  place-items: center;
  color: #8c5d50;
}

.product-image-preview__img {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 18px;
}

.payment-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.pos-customer-modal {
  width: min(680px, 100%);
}

.pos-customer-results {
  max-height: min(56vh, 520px);
  overflow: auto;
}

.pos-customer-result {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(110px, 0.7fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-align: right;
}

.pos-customer-result span:last-child {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .pos-invoice-no,
.app-shell .pos-total-box,
.app-shell .payment-total,
.app-shell .pos-invoice-table th {
  background: var(--primary-deep);
  border-color: var(--primary);
}

.app-shell .pos-tool.primary,
.app-shell .payment-choice.active,
.app-shell .table-status-btn.active,
.app-shell .table-nudge-grid .secondary-btn.active,
.app-shell .pos-submit-btn {
  background: linear-gradient(180deg, var(--primary), var(--primary-deep));
  border-color: var(--primary);
}

.app-shell .sidebar-nav .tab-btn-pos.active,
.app-shell .tab-btn.active,
.app-shell .status-btn.active {
  border-color: var(--primary);
  color: var(--primary-deep);
  background: var(--primary-soft);
}

.app-shell.app-theme-dark .sidebar-nav__icon img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.app-shell.app-theme-dark .sidebar-nav__label,
.app-shell.app-theme-dark .panel h2,
.app-shell.app-theme-dark .panel h3,
.app-shell.app-theme-dark .panel h4,
.app-shell.app-theme-dark label,
.app-shell.app-theme-dark th,
.app-shell.app-theme-dark .big-number,
.app-shell.app-theme-dark .sales-customer-money b {
  color: #fff8f4;
}

.app-shell.app-theme-dark .chip,
.app-shell.app-theme-dark .badge,
.app-shell.app-theme-dark .status-badge,
.app-shell.app-theme-dark .badge-info,
.app-shell.app-theme-dark .product-card .badge,
.app-shell.app-theme-dark .personnel-card .badge,
.app-shell.app-theme-dark .pos-queue-card .badge {
  background: rgba(246, 235, 231, 0.13);
  border-color: rgba(246, 235, 231, 0.2);
  color: #fff8f4;
}

.app-shell.app-theme-dark .badge-success,
.app-shell.app-theme-dark .status-badge.status-done {
  background: rgba(46, 160, 67, 0.2);
  border-color: rgba(70, 190, 112, 0.46);
  color: #9ef0b5;
}

.app-shell.app-theme-dark .badge-danger {
  background: rgba(216, 78, 95, 0.22);
  border-color: rgba(255, 130, 146, 0.46);
  color: #ffb6c0;
}

.app-shell.app-theme-dark .status-badge.status-progress {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(255, 193, 86, 0.42);
  color: #ffd58c;
}

.app-shell.app-theme-dark .pos-tool {
  background: linear-gradient(180deg, rgba(246, 235, 231, 0.17), rgba(246, 235, 231, 0.09));
  border-color: rgba(246, 235, 231, 0.3);
  color: #fff8f4;
  box-shadow: none;
}

.app-shell.app-theme-dark .pos-tool.primary,
.app-shell.app-theme-dark .pos-submit-btn,
.app-shell.app-theme-dark .payment-choice.active,
.app-shell.app-theme-dark .table-status-btn.active,
.app-shell.app-theme-dark .table-nudge-grid .secondary-btn.active {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--primary) 62%, #201715 38%),
    color-mix(in srgb, var(--custom-secondary-color) 54%, #201715 46%)
  );
  border-color: rgba(246, 235, 231, 0.28);
  color: #fff8f4;
}

.app-shell.app-theme-dark .pos-tool.accent,
.app-shell.app-theme-dark .pos-category-tab,
.app-shell.app-theme-dark .numpad-key,
.app-shell.app-theme-dark .payment-choice,
.app-shell.app-theme-dark .pos-option,
.app-shell.app-theme-dark .mini-btn,
.app-shell.app-theme-dark .pos-addon-chip {
  background: rgba(246, 235, 231, 0.1);
  border-color: rgba(246, 235, 231, 0.2);
  color: #fff8f4;
}

.app-shell.app-theme-dark .pos-category-tab.active,
.app-shell.app-theme-dark .tab-btn.active,
.app-shell.app-theme-dark .status-btn.active,
.app-shell.app-theme-dark .sidebar-nav .tab-btn-pos.active {
  background: rgba(246, 235, 231, 0.16);
  border-color: rgba(246, 235, 231, 0.38);
  color: #fff8f4;
}

.app-shell.app-theme-dark .pos-table-wrap,
.app-shell.app-theme-dark .pos-inline-settlement,
.app-shell.app-theme-dark .pos-order-panel,
.app-shell.app-theme-dark .pos-products-panel,
.app-shell.app-theme-dark .pos-queue-panel,
.app-shell.app-theme-dark .pos-queue-card,
.app-shell.app-theme-dark .product-card,
.app-shell.app-theme-dark .personnel-card,
.app-shell.app-theme-dark .table-control-card,
.app-shell.app-theme-dark .table-layout-board {
  background: rgba(246, 235, 231, 0.07);
  border-color: rgba(246, 235, 231, 0.18);
  color: #fff8f4;
}

.app-shell.app-theme-dark .pos-product-btn,
.app-shell.app-theme-dark .pos-product-btn.tone-0,
.app-shell.app-theme-dark .pos-product-btn.tone-1,
.app-shell.app-theme-dark .pos-product-btn.tone-2,
.app-shell.app-theme-dark .pos-product-btn.tone-3,
.app-shell.app-theme-dark .pos-product-btn.tone-4,
.app-shell.app-theme-dark .pos-product-btn.tone-5 {
  background: linear-gradient(180deg, rgba(246, 235, 231, 0.12), rgba(246, 235, 231, 0.07));
  border-color: rgba(246, 235, 231, 0.18);
  color: #fff8f4;
}

.app-shell.app-theme-dark .pos-product-media {
  background: rgba(246, 235, 231, 0.12);
}

.app-shell.app-theme-dark .pos-product-name {
  background: #fff8f4;
  color: #201715;
}

.app-shell.app-theme-dark .pos-product-no-image {
  color: rgba(255, 248, 244, 0.78);
}

.app-shell.app-theme-dark .pos-product-thumb,
.app-shell.app-theme-dark .product-image-preview,
.app-shell.app-theme-dark .product-thumb,
.app-shell.app-theme-dark .product-thumb-placeholder {
  background: rgba(246, 235, 231, 0.1);
  border-color: rgba(246, 235, 231, 0.2);
  color: #fff8f4;
}

.app-shell.app-theme-dark .pos-invoice-no,
.app-shell.app-theme-dark .pos-total-box,
.app-shell.app-theme-dark .payment-total,
.app-shell.app-theme-dark .pos-invoice-table th {
  background: color-mix(in srgb, var(--custom-secondary-color) 56%, #201715 44%);
  border-color: rgba(246, 235, 231, 0.22);
  color: #fff8f4;
}

.app-shell.app-theme-dark .pos-line-selected td {
  background: rgba(246, 235, 231, 0.13);
  color: #fff8f4;
}

.app-shell.app-theme-dark .overview-alert {
  background: rgba(246, 235, 231, 0.12);
  border-color: rgba(246, 235, 231, 0.22);
  color: #fff8f4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.app-shell.app-theme-dark .overview-alert.danger {
  background: rgba(216, 78, 95, 0.2);
  border-color: rgba(255, 130, 146, 0.5);
  color: #ffd6dc;
}

.app-shell.app-theme-dark .overview-alert-list {
  color: #fff8f4;
}

.app-shell.app-theme-dark .overview-bar-row span,
.app-shell.app-theme-dark .overview-progress-item span,
.app-shell.app-theme-dark .overview-bar-row strong,
.app-shell.app-theme-dark .overview-progress-item b {
  color: #fff8f4;
}

.app-shell.app-theme-dark .overview-bar-track,
.app-shell.app-theme-dark .task-progress-track {
  background: rgba(246, 235, 231, 0.13);
}

.app-shell.app-theme-dark .layout-table {
  background: rgba(246, 235, 231, 0.14);
  border-color: rgba(246, 235, 231, 0.3);
  color: #fff8f4;
}

.app-shell.app-theme-dark .pos-layout-table-static.available {
  background: rgba(20, 151, 100, 0.38);
  border-color: #47d89c;
  color: #effff8;
}

.app-shell.app-theme-dark .pos-layout-table-static.occupied {
  background: rgba(216, 72, 95, 0.42);
  border-color: #ff8ea0;
  color: #fff4f6;
}

.app-shell.app-theme-dark .pos-layout-table-static.reserved {
  background: rgba(230, 163, 25, 0.42);
  border-color: #ffd26d;
  color: #fff9eb;
}

.app-shell.app-theme-dark .pos-layout-table-static.cleaning {
  background: rgba(45, 120, 242, 0.42);
  border-color: #98c0ff;
  color: #f4f8ff;
}

.app-shell.app-theme-dark .layout-table small,
.app-shell.app-theme-dark .table-control-title,
.app-shell.app-theme-dark .layout-element {
  color: #fff8f4;
}

.app-shell.app-theme-dark .layout-element {
  background: rgba(246, 235, 231, 0.16);
  border-color: rgba(246, 235, 231, 0.42);
}

.app-shell.app-theme-dark .layout-element.selected {
  border-color: #fff8f4;
  box-shadow: 0 0 0 3px rgba(246, 235, 231, 0.14);
}

@media (max-width: 1100px) {
  .table-editor-shell {
    grid-template-columns: 1fr;
  }

  .login-card,
  .app-shell,
  .grid.two,
  .grid.three,
  .stat-grid,
  .overview-hero,
  .sales-report-hero,
  .sales-split-grid {
    grid-template-columns: 1fr;
  }

  .overview-bar-row,
  .overview-progress-item,
  .overview-progress-list.compact .overview-progress-item,
  .sales-rank-card,
  .sales-rank-card-rich,
  .sales-customer-card,
  .sales-product-focus,
  .sales-product-kpis {
    grid-template-columns: 1fr;
  }

  .overview-bar-row strong,
  .overview-progress-item b,
  .sales-customer-money {
    text-align: right;
  }

  .restaurant-home__body,
  .pos-layout,
  .pos-bottom {
    grid-template-columns: 1fr;
  }

  .pos-toolbar,
  .pos-product-grid,
  .payment-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-choice-grid,
  .payment-method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pos-floor-board {
    min-height: 300px;
    height: 300px;
  }

  .pos-layout-table-static {
    max-width: 124px;
    max-height: 96px;
    min-width: 62px;
    min-height: 62px;
  }

  .pos-layout-element-static {
    max-width: 180px;
  }

  .sidebar {
    order: 2;
  }

  .main {
    order: 1;
  }
}

@media (max-width: 720px) {
  .login-page,
  .main {
    padding: 16px;
  }

  .login-hero,
  .login-form-wrap,
  .sidebar,
  .panel,
  .summary-card,
  .task-card {
    padding: 20px;
  }

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

  .topbar,
  .section-head,
  .task-head,
  .split-header {
    flex-direction: column;
    align-items: stretch;
  }

  .used-item-row {
    grid-template-columns: 1fr;
  }

  .customer-date-row {
    grid-template-columns: 1fr;
  }

  .date-input-wrap {
    grid-template-columns: 1fr;
  }

  .structured-date-wrap {
    grid-template-columns: 1fr;
  }

  .persian-weekdays,
  .persian-calendar-grid {
    gap: 6px;
  }

  .persian-day {
    min-height: 66px;
    padding: 8px;
  }

  .upgrade-banner {
    font-size: 1.3rem;
    width: 100%;
  }

  .restaurant-home__header,
  .restaurant-home__footer,
  .pos-order-head,
  .pos-customer-row,
  .discount-panel {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .pos-customer-actions {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .pos-floor-board {
    min-height: 250px;
    height: 250px;
  }

  .pos-layout-table-static {
    max-width: 96px;
    max-height: 78px;
    min-width: 54px;
    min-height: 54px;
    border-radius: 14px;
  }

  .pos-layout-table-static.round {
    border-radius: 999px;
  }

  .pos-layout-element-static {
    max-width: 132px;
    max-height: 32px;
    padding-inline: 6px;
  }
}
