/* ============================================================
   SHNI v2.0 — Enterprise POS Design System
   Философия: Zero-Friction UX + Zero-Cost Storage
   Дизайн: Graphite / Matte / Tabular numbers / No emojis
   ============================================================ */

/* ═══════════════════════════════════════════════════════════
   1. DESIGN TOKENS
   ═══════════════════════════════════════════════════════════ */
:root {
  /* Graphite palette */
  --ink:          #1B2026;
  --ink-2:        #292F36;
  --ink-3:        #414A54;
  --ink-4:        #69737E;
  --ink-5:        #87919B;

  --bg:           #F4F5F6;
  --surface:      #FFFFFF;
  --surface-2:    #F9FAFB;
  --surface-3:    #F1F3F4;
  --border:       #E3E6E8;
  --border-2:     #CDD2D6;
  --border-3:     #1B2026;

  --accent:       #C63D35;
  --accent-2:     #A92F29;
  --accent-soft:  #FCEFED;

  /* Semantic */
  --success:      #16A34A;
  --success-soft: #F0FDF4;
  --warning:      #EA580C;
  --warning-soft: #FFF7ED;
  --danger:       #DC2626;
  --danger-soft:  #FEF2F2;
  --info:         #2563EB;
  --info-soft:    #EFF6FF;
  --purple:       #7C3AED;
  --purple-soft:  #F5F3FF;
  --kaspi:        #E30611;

  /* Shadows — sharp, subtle */
  --shadow-xs: 0 1px 2px rgba(27,32,38,.04);
  --shadow-sm: 0 2px 5px rgba(27,32,38,.06), 0 1px 2px rgba(27,32,38,.04);
  --shadow-md: 0 8px 20px rgba(27,32,38,.08), 0 2px 5px rgba(27,32,38,.04);
  --shadow-lg: 0 16px 36px rgba(27,32,38,.12), 0 4px 10px rgba(27,32,38,.05);
  --shadow-xl: 0 24px 56px rgba(27,32,38,.16), 0 8px 16px rgba(27,32,38,.06);
  --shadow-focus: 0 0 0 3px rgba(198,61,53,.16);

  --r-xs: 6px;
  --r-sm: 9px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-full: 9999px;

  /* Spacing — 4px baseline */
  --s-1: 4px; --s-2: 8px; --s-3: 12px;
  --s-4: 16px; --s-5: 20px; --s-6: 24px;

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Transitions */
  --tr: 180ms cubic-bezier(.2,.8,.2,1);
  --tr-slow: 320ms cubic-bezier(.2,.8,.2,1);

  /* Safe area */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ═══════════════════════════════════════════════════════════
   2. RESET + BASE
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { height: 100%; overscroll-behavior-y: none; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02","cv03","cv04","cv11","ss01","ss03";
  -webkit-tap-highlight-color: transparent;
}

/* Сандар — tabular (интерфейс секірмеуі үшін) */
.num, .money, .timer, .clock, [data-num] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; -webkit-tap-highlight-color: transparent; }
input, select, textarea { background: none; border: none; outline: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--ink); color: #fff; }

.hidden { display: none !important; }
.no-select { user-select: none; -webkit-user-select: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }

/* ═══════════════════════════════════════════════════════════
   3. TYPOGRAPHY
   ═══════════════════════════════════════════════════════════ */
.h-1 { font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.h-2 { font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
.h-3 { font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.h-4 { font-size: 14px; font-weight: 600; line-height: 1.4; }
.body { font-size: 14px; font-weight: 500; line-height: 1.5; }
.small { font-size: 12px; font-weight: 500; line-height: 1.45; }
.tiny { font-size: 11px; font-weight: 500; line-height: 1.4; }
.micro { font-size: 10px; font-weight: 600; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.05em; }

.muted { color: var(--ink-4); }
.muted-2 { color: var(--ink-5); }
.bold { font-weight: 700; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ═══════════════════════════════════════════════════════════
   4. BOOT LOADER
   ═══════════════════════════════════════════════════════════ */
#boot-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--ink); color: #fff;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 20px; transition: opacity .35s;
}
.boot-logo { width: 72px; height: 72px; object-fit: contain; opacity: .92; }
.boot-spinner {
  width: 28px; height: 28px;
  border: 2px solid rgba(255,255,255,.15);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.boot-text {
  font-size: 12px; color: rgba(255,255,255,.5);
  font-weight: 500; letter-spacing: 0.05em;
  text-transform: uppercase;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════
   5. TOAST — subtle
   ═══════════════════════════════════════════════════════════ */
#toast-root {
  position: fixed;
  top: calc(var(--safe-top) + 12px);
  right: 12px; left: 12px;
  z-index: 9998;
  display: flex; flex-direction: column;
  gap: 8px; pointer-events: none;
  align-items: flex-end;
}
.toast {
  pointer-events: auto;
  min-width: 240px; max-width: 92vw;
  padding: 12px 14px;
  background: var(--ink); color: #fff;
  border-radius: var(--r-md);
  font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-xl);
  animation: toastIn 200ms var(--tr-slow);
  border-left: 3px solid var(--ink-4);
}
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--danger); }
.toast.warn    { border-left-color: var(--warning); }
.toast.info    { border-left-color: var(--info); }
.toast i { font-size: 15px; flex-shrink: 0; }
.toast.success i { color: #4ADE80; }
.toast.error i   { color: #F87171; }
.toast.warn i    { color: #FB923C; }
.toast.info i    { color: #60A5FA; }
@keyframes toastIn {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════
   6. MODAL
   ═══════════════════════════════════════════════════════════ */
.modal {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(24,24,27,.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; overflow-y: auto;
  animation: fadeIn 150ms ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
  width: 100%; max-width: 440px;
  max-height: 92dvh;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: modalUp 200ms var(--tr-slow);
}
.modal-content.sm { max-width: 380px; }
.modal-content.lg { max-width: 720px; }
.modal-content.xl { max-width: 1000px; }
.modal-content.xxl { max-width: 1280px; }
.modal-content.full { max-width: 100%; max-height: 100dvh; border-radius: 0; }

@keyframes modalUp {
  from { transform: translateY(16px) scale(.98); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-title {
  font-size: 16px; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.modal-title i { color: var(--ink-4); font-size: 15px; }
.modal-body {
  padding: 20px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
}
.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex; gap: 8px;
  flex-shrink: 0;
}
.modal-footer > * { flex: 1; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-4); font-size: 14px;
  transition: all var(--tr);
}
.modal-close:hover { background: var(--surface-3); color: var(--ink); }
.modal-close:active { transform: scale(.92); }

/* ═══════════════════════════════════════════════════════════
   7. BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-md);
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
  transition: all var(--tr);
  user-select: none; -webkit-user-select: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.3;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; pointer-events: none; }
.btn i { font-size: 14px; }

.btn-primary {
  background: var(--ink); color: #fff;
}
.btn-primary:hover:not(:disabled) { background: var(--ink-2); }

.btn-accent {
  background: var(--accent); color: #fff;
}
.btn-accent:hover:not(:disabled) { background: var(--accent-2); }

.btn-success { background: var(--success); color: #fff; }
.btn-danger  { background: var(--danger); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }

.btn-ghost {
  background: var(--surface-3); color: var(--ink);
}
.btn-ghost:hover:not(:disabled) { background: var(--border); }

.btn-outline {
  background: transparent;
  border-color: var(--border-2);
  color: var(--ink);
}
.btn-outline:hover:not(:disabled) { border-color: var(--ink); }

.btn-block { width: 100%; }
.btn-lg { padding: 14px 20px; font-size: 14px; border-radius: var(--r-lg); }
.btn-sm { padding: 7px 12px; font-size: 12px; border-radius: var(--r-sm); }
.btn-icon-only { padding: 8px; width: 36px; height: 36px; }

.btn-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--ink-3);
  border: 1px solid var(--border);
  font-size: 14px;
  transition: all var(--tr);
  flex-shrink: 0;
}
.btn-icon:hover { background: var(--surface-3); color: var(--ink); }
.btn-icon:active { transform: scale(.92); }
.btn-icon.danger { color: var(--danger); border-color: var(--danger-soft); }
.btn-icon.danger:hover { background: var(--danger-soft); }
.btn-icon.success { color: var(--success); border-color: var(--success-soft); }
.btn-icon.success:hover { background: var(--success-soft); }
.btn-icon.info { color: var(--info); border-color: var(--info-soft); }
.btn-icon.info:hover { background: var(--info-soft); }
.btn-icon.warn { color: var(--warning); border-color: var(--warning-soft); }
.btn-icon.warn:hover { background: var(--warning-soft); }
.btn-icon.purple { color: var(--purple); border-color: var(--purple-soft); }
.btn-icon.purple:hover { background: var(--purple-soft); }
.btn-icon.ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-icon.ink:hover { background: var(--ink-2); }

/* FAB */
.fab {
  position: fixed;
  bottom: calc(var(--safe-bottom) + 20px);
  right: 20px; z-index: 200;
  display: flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  background: var(--ink); color: #fff;
  border-radius: var(--r-xl);
  font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-xl);
  transition: all var(--tr);
}
.fab:hover { background: var(--ink-2); }
.fab:active { transform: scale(.96); }
.fab i { font-size: 15px; }

/* ═══════════════════════════════════════════════════════════
   8. FORMS
   ═══════════════════════════════════════════════════════════ */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 11px; font-weight: 600;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 6px;
}
.form-label .req { color: var(--accent); }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 14px; font-weight: 500;
  color: var(--ink);
  transition: all var(--tr);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--border-3);
  box-shadow: var(--shadow-focus);
}
.form-input::placeholder { color: var(--ink-5); font-weight: 500; }
.form-input.mono { font-family: var(--font-mono); }
.form-input.center { text-align: center; }
.form-input.lg { padding: 14px 16px; font-size: 16px; border-radius: var(--r-lg); }
.form-textarea { resize: vertical; min-height: 72px; line-height: 1.5; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2371717A' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.form-file {
  width: 100%; padding: 12px;
  background: var(--surface-3);
  border: 1px dashed var(--border-2);
  border-radius: var(--r-md);
  font-size: 12px; font-weight: 500; color: var(--ink-3);
  cursor: pointer;
  transition: all var(--tr);
}
.form-file:hover { border-color: var(--ink-4); background: var(--surface); }

.form-color {
  width: 100%; height: 40px; padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
}

.form-checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; font-weight: 500; color: var(--ink-3);
  cursor: pointer; line-height: 1.45;
}
.form-checkbox input[type=checkbox] {
  width: 16px; height: 16px;
  margin-top: 2px; flex-shrink: 0;
  accent-color: var(--ink);
  cursor: pointer;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* Toggle — professional */
.toggle {
  position: relative; display: inline-block;
  width: 40px; height: 22px; flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute; inset: 0;
  background: var(--border-2);
  border-radius: 22px;
  transition: background var(--tr);
  cursor: pointer;
}
.toggle-track::before {
  content: ''; position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--tr);
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.toggle input:checked + .toggle-track { background: var(--ink); }
.toggle input:checked + .toggle-track::before { transform: translateX(18px); }

/* ═══════════════════════════════════════════════════════════
   9. BADGES
   ═══════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  border: 1px solid transparent;
}
.badge.success { background: var(--success-soft); color: var(--success); border-color: var(--success-soft); }
.badge.warn    { background: var(--warning-soft); color: var(--warning); border-color: var(--warning-soft); }
.badge.danger  { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-soft); }
.badge.info    { background: var(--info-soft); color: var(--info); border-color: var(--info-soft); }
.badge.purple  { background: var(--purple-soft); color: var(--purple); border-color: var(--purple-soft); }
.badge.ink     { background: var(--ink); color: #fff; }
.badge.ghost   { background: var(--surface-3); color: var(--ink-3); }
.badge.dot::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
}

/* ═══════════════════════════════════════════════════════════
   10. EMPTY / LOADING / ERROR STATES
   ═══════════════════════════════════════════════════════════ */
.state-empty, .state-loading, .state-error {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 48px 24px; text-align: center;
  color: var(--ink-4);
}
.state-empty i, .state-error i { font-size: 32px; color: var(--border-2); margin-bottom: 12px; }
.state-error i { color: var(--danger); }
.state-empty h4 { font-size: 14px; font-weight: 600; color: var(--ink-3); margin-bottom: 4px; }
.state-empty p, .state-error p { font-size: 12px; color: var(--ink-5); }

.spinner {
  width: 24px; height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin-bottom: 12px;
}

/* ═══════════════════════════════════════════════════════════
   11. OVERLAY LOADER
   ═══════════════════════════════════════════════════════════ */
#loader-root .modal {
  background: rgba(24,24,27,.6);
  z-index: 9997;
}
.overlay-loader {
  display: flex; flex-direction: column;
  align-items: center; gap: 14px; color: #fff;
}
.overlay-loader .spinner {
  border-color: rgba(255,255,255,.2);
  border-top-color: #fff;
  width: 32px; height: 32px;
}
.overlay-loader p { font-size: 13px; font-weight: 500; }

/* ═══════════════════════════════════════════════════════════
   12. LOGIN SCREEN
   ═══════════════════════════════════════════════════════════ */
.login-screen {
  min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: var(--bg);
}
.login-card { width: 100%; max-width: 400px; text-align: center; }
.login-logo {
  width: 64px; height: 64px;
  object-fit: contain;
  margin: 0 auto 24px;
}
.login-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.login-sub { font-size: 13px; color: var(--ink-4); margin-bottom: 32px; }

.login-options { display: flex; flex-direction: column; gap: 8px; }
.login-option {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-align: left;
  transition: all var(--tr);
}
.login-option:hover { border-color: var(--ink-4); }
.login-option:active { transform: scale(.985); }
.login-option-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.login-option-icon.boss { background: var(--warning); }
.login-option-body { flex: 1; }
.login-option-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.login-option-sub { font-size: 12px; color: var(--ink-4); font-weight: 500; }
.login-option-arrow { color: var(--ink-5); font-size: 12px; }

.login-back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px; padding: 10px 16px;
  font-size: 13px; font-weight: 500; color: var(--ink-4);
  border-radius: var(--r-md);
  transition: all var(--tr);
}
.login-back:hover { background: var(--surface-3); color: var(--ink); }

/* ═══════════════════════════════════════════════════════════
   13. PASSCODE SCREEN
   ═══════════════════════════════════════════════════════════ */
.passcode-screen {
  min-height: 100dvh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px;
  padding-top: calc(var(--safe-top) + 24px);
  padding-bottom: calc(var(--safe-bottom) + 24px);
  background: var(--bg);
}
.passcode-logo { width: 56px; height: 56px; object-fit: contain; margin-bottom: 24px; }
.passcode-title { font-size: 17px; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.01em; }
.passcode-sub { font-size: 13px; color: var(--ink-4); margin-bottom: 32px; }

.passcode-cells {
  position: relative;
  display: flex; gap: 10px; margin-bottom: 20px;
}
.passcode-cells.shake { animation: shakeAnim 400ms ease-in-out; }
@keyframes shakeAnim {
  0%,100% { transform: translateX(0); }
  20%,60% { transform: translateX(-8px); }
  40%,80% { transform: translateX(8px); }
}

.passcode-cell {
  width: 44px; height: 52px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 600; color: var(--ink);
  transition: all var(--tr);
}
.passcode-cell.filled { border-color: var(--ink); }
.passcode-cell.focus {
  border-color: var(--ink);
  box-shadow: var(--shadow-focus);
}
.passcode-cell.success { border-color: var(--success); background: var(--success-soft); color: var(--success); }
.passcode-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  font-size: 16px;
  opacity: .01;
  z-index: 2;
  cursor: text;
  caret-color: transparent;
}

.passcode-hint {
  font-size: 12px; color: var(--ink-4);
  min-height: 18px; margin-bottom: 24px;
  font-weight: 500;
}
.passcode-hint.error { color: var(--danger); font-weight: 600; }

.passcode-keypad {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; width: 100%; max-width: 280px;
}
.passcode-key {
  aspect-ratio: 1.3;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 20px; font-weight: 600;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--tr);
}
.passcode-key:hover { background: var(--surface-3); }
.passcode-key:active {
  transform: scale(.94);
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.passcode-key.util { font-size: 14px; color: var(--ink-4); }

/* ═══════════════════════════════════════════════════════════
   14. STAFF HEADER (ортақ)
   ═══════════════════════════════════════════════════════════ */
.staff-page {
  min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--bg);
}

.staff-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  padding-top: calc(var(--safe-top) + 10px);
  display: flex; align-items: center; gap: 12px;
}
.staff-header-logo {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--surface-3);
}
.staff-header-info { flex: 1; min-width: 0; }
.staff-header-title {
  font-size: 10px; font-weight: 600; color: var(--ink-5);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.staff-header-name {
  font-size: 14px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.staff-header-actions { display: flex; align-items: center; gap: 6px; }

.staff-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border-radius: var(--r-md);
  background: var(--surface-3);
  font-size: 12px; font-weight: 600;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.staff-chip i { font-size: 12px; }
.staff-chip.success { background: var(--success-soft); color: var(--success); }
.staff-chip.danger  { background: var(--danger-soft); color: var(--danger); }
.staff-chip.info    { background: var(--info-soft); color: var(--info); }
.staff-chip.warn    { background: var(--warning-soft); color: var(--warning); }

.staff-content { flex: 1; padding: 16px; padding-bottom: 100px; }
.staff-container { max-width: 1200px; margin: 0 auto; width: 100%; }

/* ═══════════════════════════════════════════════════════════
   15. TIMER BAR
   ═══════════════════════════════════════════════════════════ */
.timer-bar {
  background: var(--ink);
  color: #fff;
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.timer-bar-left { display: flex; align-items: center; gap: 12px; }
.timer-bar-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.timer-bar-label {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.05em; font-weight: 600;
  color: rgba(255,255,255,.6);
}
.timer-bar-time {
  font-family: var(--font-mono);
  font-size: 20px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.timer-bar-btn {
  padding: 9px 16px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 12px; font-weight: 600;
  transition: all var(--tr);
}
.timer-bar-btn:hover { background: rgba(255,255,255,.2); }
.timer-bar-btn:active { transform: scale(.95); }

/* ═══════════════════════════════════════════════════════════
   16. ORDER CARD
   ═══════════════════════════════════════════════════════════ */
.order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all var(--tr);
  position: relative;
  overflow: hidden;
}
.order-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; bottom: 0; width: 3px;
  background: var(--ink-4);
}
.order-card.green::before  { background: var(--success); }
.order-card.yellow::before { background: var(--warning); }
.order-card.red::before    { background: var(--danger); }
.order-card.purple::before { background: var(--purple); }
.order-card.info::before   { background: var(--info); }

.order-card:hover { border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.order-card:active { transform: scale(.995); }

.order-card-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; margin-bottom: 10px;
}
.order-card-no {
  font-size: 18px; font-weight: 700;
  line-height: 1; font-variant-numeric: tabular-nums;
}
.order-card-no small {
  display: block; font-size: 10px; font-weight: 600;
  color: var(--ink-5); text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 2px;
}
.order-card-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.order-card-age {
  font-size: 11px; font-weight: 600;
  color: var(--ink-4); font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}
.order-card-items {
  font-size: 12px; color: var(--ink-3);
  line-height: 1.5; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.order-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding-top: 10px;
  border-top: 1px solid var(--border);
}
.order-card-total {
  font-size: 15px; font-weight: 700;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.order-card-actions { display: flex; gap: 6px; }

/* ═══════════════════════════════════════════════════════════
   17. TABLE GRID (Zero-friction үстел таңдау)
   ═══════════════════════════════════════════════════════════ */
.table-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.table-btn {
  aspect-ratio: 1;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 16px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--tr);
  position: relative;
}
.table-btn:hover { border-color: var(--ink-4); }
.table-btn:active { transform: scale(.94); }
.table-btn.selected { background: var(--ink); color: #fff; border-color: var(--ink); }
.table-btn.busy {
  background: var(--warning-soft);
  border-color: var(--warning);
  color: var(--warning);
}
.table-btn.busy::after {
  content: ''; position: absolute;
  top: 4px; right: 4px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--warning);
}

/* ═══════════════════════════════════════════════════════════
   18. SPLIT-SCREEN POS
   ═══════════════════════════════════════════════════════════ */
.pos-split {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  height: calc(100dvh - 60px);
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.pos-left {
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  padding: 16px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
}
.pos-right {
  display: flex; flex-direction: column;
  overflow: hidden;
}
.pos-right-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; gap: 8px;
}
.pos-right-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.pos-right-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

@media (max-width: 900px) {
  .pos-split { grid-template-columns: 1fr; height: auto; }
  .pos-left { border-right: none; border-bottom: 1px solid var(--border); }
}

/* ═══════════════════════════════════════════════════════════
   19. MENU PICKER
   ═══════════════════════════════════════════════════════════ */
.menu-tabs {
  display: flex; gap: 4px;
  background: var(--surface-3);
  padding: 4px; border-radius: var(--r-md);
  overflow-x: auto; margin-bottom: 12px;
  scrollbar-width: none;
}
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tab {
  flex: 1; padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 12px; font-weight: 600;
  color: var(--ink-4);
  white-space: nowrap;
  transition: all var(--tr);
}
.menu-tab.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.menu-search {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: var(--surface-3);
  border-radius: var(--r-md);
  margin-bottom: 12px;
}
.menu-search i { color: var(--ink-5); font-size: 13px; }
.menu-search input { flex: 1; font-size: 13px; font-weight: 500; }
.menu-search input::placeholder { color: var(--ink-5); }

.menu-list { display: flex; flex-direction: column; gap: 2px; }

/* Zero-friction: бүкіл қатарды басу +1 */
.menu-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--tr);
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}
.menu-row:hover { background: var(--surface-2); }
.menu-row:active { background: var(--surface-3); transform: scale(.995); }

.menu-row-image {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--surface-3);
  overflow: hidden;
  flex-shrink: 0;
}
.menu-row-image img { width: 100%; height: 100%; object-fit: cover; }
.menu-row-info { flex: 1; min-width: 0; }
.menu-row-name {
  font-size: 13px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.menu-row-price {
  font-size: 12px; font-weight: 600;
  color: var(--ink-4); font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

/* Саны badge — 0-ден жоғары болғанда көрсетіледі */
.menu-row-count {
  display: none;
  min-width: 26px; height: 26px;
  padding: 0 8px;
  border-radius: var(--r-sm);
  background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.menu-row.has-count .menu-row-count { display: flex; }
.menu-row.has-count { background: var(--surface-2); }

/* Минус батырма — тек саны бар болса */
.menu-row-minus {
  display: none;
  width: 26px; height: 26px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-3);
  font-size: 12px;
  align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--tr);
}
.menu-row.has-count .menu-row-minus { display: flex; }
.menu-row-minus:hover { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-soft); }
.menu-row-minus:active { transform: scale(.9); }

/* ═══════════════════════════════════════════════════════════
   20. CART SUMMARY
   ═══════════════════════════════════════════════════════════ */
.cart-summary {
  padding: 12px 0;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}
.cart-row {
  display: flex; justify-content: space-between;
  font-size: 13px; padding: 5px 0;
  color: var(--ink-3);
}
.cart-row.discount { color: var(--success); font-weight: 600; }
.cart-row.total {
  border-top: 1.5px solid var(--border);
  margin-top: 8px; padding-top: 10px;
  font-size: 14px; font-weight: 700;
  color: var(--ink);
}
.cart-row.total span:last-child {
  font-size: 18px; font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════════
   21. CLIENT — HEADER
   ═══════════════════════════════════════════════════════════ */
.client-page { min-height: 100dvh; padding-bottom: 90px; }

.client-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px 8px;
  padding-top: calc(var(--safe-top) + 10px);
}
.client-header-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 8px;
}

.header-icon-btn {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  transition: all var(--tr);
  flex-shrink: 0;
  font-size: 16px;
}
.header-icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.header-icon-btn:active { transform: scale(.92); }

.logo-area {
  position: relative; flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px; padding: 8px 16px;
  border-radius: var(--r-lg);
  min-height: 72px;
  cursor: pointer; user-select: none;
  background-size: cover; background-position: center;
  overflow: hidden;
}
.logo-area::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(4px);
  z-index: 0;
}
.logo-area > * { position: relative; z-index: 1; }

.site-logo {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  object-fit: cover;
  background: #fff;
}
.brand-name {
  font-size: 16px; font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: center;
}

.welcome-block { text-align: center; padding-top: 4px; }
.welcome-msg { font-size: 13px; font-weight: 600; color: var(--ink); }
.welcome-address {
  font-size: 11px; color: var(--ink-4);
  margin-top: 2px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.welcome-address i { font-size: 10px; }

/* Language switcher */
.lang-switch {
  display: flex; gap: 4px;
  padding: 8px 14px 6px;
  justify-content: flex-end;
}
.lang-btn {
  padding: 5px 12px;
  border-radius: var(--r-sm);
  font-size: 11px; font-weight: 600;
  background: var(--surface-3); color: var(--ink-4);
  transition: all var(--tr);
  letter-spacing: 0.05em;
}
.lang-btn.active { background: var(--ink); color: #fff; }
.lang-btn:active { transform: scale(.94); }

/* Contacts panel */
.contacts-panel {
  position: fixed;
  top: calc(var(--safe-top) + 70px);
  right: 12px;
  z-index: 200;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  min-width: 190px;
  animation: slideDown 150ms var(--tr-slow);
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.contact-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  font-size: 13px; font-weight: 500;
  color: var(--ink-3);
  transition: all var(--tr);
}
.contact-item:hover { background: var(--surface-3); color: var(--ink); }
.contact-item i { width: 16px; text-align: center; font-size: 14px; }

/* ═══════════════════════════════════════════════════════════
   22. CLIENT — SEARCH
   ═══════════════════════════════════════════════════════════ */
.client-search {
  padding: 4px 14px 8px;
}
.client-search-box {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--tr);
}
.client-search-box:focus-within {
  border-color: var(--ink);
  box-shadow: var(--shadow-focus);
}
.client-search-box i { color: var(--ink-5); font-size: 14px; }
.client-search-box input {
  flex: 1; font-size: 13px; font-weight: 500;
}
.client-search-box input::placeholder { color: var(--ink-5); }

/* ═══════════════════════════════════════════════════════════
   23. CLIENT — CATEGORIES
   ═══════════════════════════════════════════════════════════ */
.category-bar {
  position: sticky; top: 116px; z-index: 90;
  background: var(--bg);
  padding: 10px 14px;
  overflow-x: auto; white-space: nowrap;
  scrollbar-width: none;
}
.category-bar::-webkit-scrollbar { display: none; }
.category-chips { display: inline-flex; gap: 6px; }

.cat-chip {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px; font-weight: 600;
  color: var(--ink-3);
  transition: all var(--tr);
}
.cat-chip:hover { border-color: var(--ink-4); }
.cat-chip:active { transform: scale(.95); }
.cat-chip.active {
  background: var(--ink); color: #fff;
  border-color: var(--ink);
}

/* ═══════════════════════════════════════════════════════════
   24. CLIENT — PRODUCTS GRID
   ═══════════════════════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 4px 14px 24px;
}

.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: all var(--tr);
}
.product-card:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-card:active { transform: scale(.985); }

.product-image {
  width: 100%; aspect-ratio: 1/1;
  background: var(--surface-3);
  position: relative; overflow: hidden;
}
.product-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 250ms var(--tr-slow);
}
.product-card:hover .product-image img { transform: scale(1.04); }
.product-image .placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--border-2); font-size: 32px;
}

.product-badge {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  background: var(--ink); color: #fff;
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.product-badge.hit { background: var(--accent); }
.product-badge.new { background: var(--success); }
.product-badge.vip { background: var(--warning); }
.product-badge.top { background: var(--purple); }

.product-body {
  padding: 10px 12px 12px;
  display: flex; flex-direction: column; gap: 6px; flex: 1;
}
.product-name {
  font-size: 13px; font-weight: 600;
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.7em;
}
.product-desc {
  font-size: 11px; color: var(--ink-4);
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: auto; padding-top: 6px;
}
.product-price {
  font-size: 14px; font-weight: 700;
  color: var(--ink); font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.product-add-btn {
  width: 32px; height: 32px;
  border-radius: var(--r-md);
  background: var(--ink); color: #fff;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--tr);
  flex-shrink: 0;
}
.product-add-btn:hover { background: var(--ink-2); }
.product-add-btn:active { transform: scale(.85); }

/* Fly +1 */
.fly-plus {
  position: fixed; z-index: 9999;
  font-size: 16px; font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  animation: flyUp 700ms cubic-bezier(.4,0,.6,1) forwards;
}
@keyframes flyUp {
  0%   { opacity: 1; transform: translate(-50%, 0) scale(.6); }
  100% { opacity: 0; transform: translate(-50%, -80px) scale(1.4); }
}

/* ═══════════════════════════════════════════════════════════
   25. CLIENT — CART BAR
   ═══════════════════════════════════════════════════════════ */
.cart-bar {
  position: fixed;
  bottom: calc(var(--safe-bottom) + 16px);
  left: 50%; transform: translateX(-50%);
  z-index: 150;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  border-radius: var(--r-xl);
  background: var(--ink); color: #fff;
  font-weight: 600; font-size: 13px;
  box-shadow: var(--shadow-xl);
  max-width: calc(100vw - 32px);
  animation: cartPop 250ms var(--tr-slow);
  white-space: nowrap;
}
@keyframes cartPop {
  from { opacity: 0; transform: translateX(-50%) translateY(24px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.cart-bar.bump { animation: cartBump 400ms ease-out; }
@keyframes cartBump {
  0%,100% { transform: translateX(-50%) scale(1); }
  50%     { transform: translateX(-50%) scale(1.06); }
}
.cart-bar-icon {
  position: relative; font-size: 16px;
}
.cart-bar-count {
  position: absolute; top: -6px; right: -8px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: var(--r-full);
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  display: flex; align-items: center; justify-content: center;
}
.cart-bar-info { display: flex; flex-direction: column; gap: 1px; }
.cart-bar-info small {
  font-size: 10px; font-weight: 500;
  color: rgba(255,255,255,.5);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.cart-bar-info b {
  font-size: 14px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════════
   26. PRODUCT DETAIL MODAL
   ═══════════════════════════════════════════════════════════ */
.product-detail { padding: 0; }
.product-detail-image {
  width: 100%; aspect-ratio: 16/10;
  background: var(--surface-3);
  position: relative; overflow: hidden;
}
.product-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-image .placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--border-2); font-size: 48px;
}
.product-detail-close {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow-md);
}
.product-detail-body {
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.product-detail-name {
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.25;
}
.product-detail-section-title {
  font-size: 10px; font-weight: 600;
  color: var(--ink-5); text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 4px;
}
.product-detail-desc {
  font-size: 13px; color: var(--ink-3);
  line-height: 1.55;
}
.product-detail-qty {
  display: flex; align-items: center; gap: 4px;
  background: var(--surface-3);
  padding: 4px; border-radius: var(--r-md);
  align-self: flex-start;
}
.product-detail-qty button {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  transition: all var(--tr);
}
.product-detail-qty button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.product-detail-qty button:active { transform: scale(.9); }
.product-detail-qty span {
  min-width: 32px; text-align: center;
  font-size: 15px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════════
   27. QR MODAL
   ═══════════════════════════════════════════════════════════ */
.qr-body {
  display: flex; flex-direction: column;
  align-items: center; gap: 16px; text-align: center;
}
.qr-order-no {
  font-size: 11px; font-weight: 600;
  color: var(--ink-5); text-transform: uppercase;
  letter-spacing: 0.05em;
}
.qr-order-no b {
  display: block; font-size: 28px;
  color: var(--ink); font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em; margin-top: 2px;
}
.qr-canvas-wrap {
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.qr-hint {
  font-size: 12px; color: var(--ink-4);
  max-width: 260px; line-height: 1.5;
}
.qr-receipt {
  width: 100%; text-align: left;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.qr-receipt-row {
  display: flex; justify-content: space-between;
  font-size: 12px; padding: 3px 0;
  font-variant-numeric: tabular-nums;
}
.qr-receipt-row.total {
  border-top: 1px solid var(--border);
  margin-top: 6px; padding-top: 8px;
  font-weight: 700; font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════
   28. RECEPTION — 4 COLUMN GRID
   ═══════════════════════════════════════════════════════════ */
.reception-layout {
  display: flex;
  min-height: calc(100dvh - 60px);
  height: calc(100dvh - 60px);
}
.reception-main { flex: 1; overflow: hidden; }
.reception-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 12px;
  height: 100%;
  overflow: hidden;
}
.reception-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.reception-col-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.reception-col-icon {
  width: 30px; height: 30px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  background: var(--surface-3); color: var(--ink-3);
}
.reception-col-icon.info { background: var(--info-soft); color: var(--info); }
.reception-col-icon.success { background: var(--success-soft); color: var(--success); }
.reception-col-icon.warn { background: var(--warning-soft); color: var(--warning); }
.reception-col-icon.purple { background: var(--purple-soft); color: var(--purple); }
.reception-col-title {
  flex: 1; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.reception-col-count {
  font-size: 11px; font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-sm);
  background: var(--surface-3);
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.reception-col-body {
  flex: 1; overflow-y: auto; padding: 10px;
  display: flex; flex-direction: column; gap: 8px;
}

/* ─── Sidebar ─── */
.reception-sidebar {
  width: 220px; flex-shrink: 0;
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 12px 10px;
  overflow-y: auto;
}
.sidebar-section {
  font-size: 10px; font-weight: 700;
  color: var(--ink-5); text-transform: uppercase;
  letter-spacing: 0.05em; padding: 8px 10px 6px;
}
.sidebar-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 10px;
  border-radius: var(--r-md);
  font-size: 13px; font-weight: 500;
  color: var(--ink-3); text-align: left;
  transition: all var(--tr);
  margin-bottom: 1px;
}
.sidebar-item:hover { background: var(--surface-3); color: var(--ink); }
.sidebar-item:active { transform: scale(.98); }
.sidebar-item i:first-child {
  width: 16px; text-align: center;
  color: var(--ink-5); font-size: 13px;
}
.sidebar-item .sidebar-arrow {
  margin-left: auto; font-size: 10px; color: var(--ink-5);
}
.sidebar-divider {
  height: 1px; background: var(--border);
  margin: 6px 4px;
}

/* Mobile drawer */
.sidebar-drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(24,24,27,.4);
  z-index: 399;
  opacity: 0; pointer-events: none;
  transition: opacity var(--tr-slow);
}
.sidebar-drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.sidebar-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 260px; max-width: 85vw;
  background: var(--surface);
  box-shadow: var(--shadow-xl);
  z-index: 400;
  transform: translateX(100%);
  transition: transform var(--tr-slow);
  display: flex; flex-direction: column;
}
.sidebar-drawer.open { transform: none; }
.sidebar-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-drawer-title { font-size: 14px; font-weight: 600; }
.sidebar-drawer-body { flex: 1; overflow-y: auto; padding: 10px; }

/* ═══════════════════════════════════════════════════════════
   29. WAREHOUSE — INLINE EDIT
   ═══════════════════════════════════════════════════════════ */
.warehouse-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--tr);
}
.warehouse-row:hover { border-color: var(--border-2); }
.warehouse-row.locked { background: var(--surface-2); }

.warehouse-info { min-width: 0; }
.warehouse-name {
  font-size: 13px; font-weight: 600;
  margin-bottom: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.warehouse-meta {
  display: flex; gap: 10px; flex-wrap: wrap;
  font-size: 11px; color: var(--ink-4);
}
.warehouse-meta b {
  color: var(--ink-3); font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.warehouse-meta .lock-icon {
  color: var(--ink-5); font-size: 10px;
  display: inline-flex; align-items: center; gap: 3px;
}

.warehouse-input {
  width: 70px;
  padding: 7px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.warehouse-input:focus {
  border-color: var(--ink);
  box-shadow: var(--shadow-focus);
}

.warehouse-btn {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  transition: all var(--tr);
  border: 1px solid transparent;
}
.warehouse-btn.in {
  background: var(--success-soft); color: var(--success);
}
.warehouse-btn.in:hover { background: var(--success); color: #fff; }
.warehouse-btn.out {
  background: var(--danger-soft); color: var(--danger);
}
.warehouse-btn.out:hover { background: var(--danger); color: #fff; }
.warehouse-btn:active { transform: scale(.9); }

/* ═══════════════════════════════════════════════════════════
   30. EDITOR
   ═══════════════════════════════════════════════════════════ */
.editor-tabs {
  display: flex; gap: 4px;
  background: var(--surface-3);
  padding: 4px; border-radius: var(--r-md);
  margin-bottom: 14px;
  overflow-x: auto;
}
.editor-tabs::-webkit-scrollbar { display: none; }
.editor-tab {
  flex: 1; padding: 9px 14px;
  border-radius: var(--r-sm);
  font-size: 12px; font-weight: 600;
  color: var(--ink-4); white-space: nowrap;
  transition: all var(--tr);
}
.editor-tab.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.editor-list { display: flex; flex-direction: column; gap: 8px; max-height: 55vh; overflow-y: auto; }
.editor-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--tr);
}
.editor-item.stopped { opacity: .6; background: var(--surface-3); }
.editor-item-image {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--surface-3);
  overflow: hidden; flex-shrink: 0;
}
.editor-item-image img { width: 100%; height: 100%; object-fit: cover; }
.editor-item-info { flex: 1; min-width: 0; }
.editor-item-name {
  font-size: 13px; font-weight: 600;
  margin-bottom: 3px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.editor-item-meta {
  font-size: 11px; color: var(--ink-4);
  display: flex; align-items: center; gap: 8px;
}
.editor-item-actions { display: flex; gap: 3px; }

.pending-banner {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  background: var(--warning-soft);
  color: var(--warning);
  border-radius: var(--r-md);
  font-size: 12px; font-weight: 500;
  margin-bottom: 14px;
  line-height: 1.45;
}
.pending-banner i { font-size: 14px; flex-shrink: 0; }

/* Category */
.category-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 13px;
}
.category-row strong { font-weight: 600; }
.category-row span { color: var(--ink-4); margin-left: 6px; font-weight: 500; }

/* Branding preview */
.branding-preview {
  padding: 20px;
  background: var(--surface-2);
  border: 1px dashed var(--border-2);
  border-radius: var(--r-lg);
  text-align: center;
  margin-bottom: 16px;
}
.branding-preview-logo {
  width: 56px; height: 56px;
  margin: 0 auto 10px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  background-size: cover; background-position: center;
}
.branding-preview-name {
  font-size: 15px; font-weight: 700;
  letter-spacing: -0.01em;
}

/* ═══════════════════════════════════════════════════════════
   31. SCHEDULE — CALENDAR
   ═══════════════════════════════════════════════════════════ */
.calendar-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.calendar-month {
  font-size: 14px; font-weight: 700;
  letter-spacing: -0.01em;
}
.calendar-nav {
  width: 32px; height: 32px;
  border-radius: var(--r-md);
  background: var(--surface-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  transition: all var(--tr);
}
.calendar-nav:hover { background: var(--border); }
.calendar-nav:active { transform: scale(.92); }

.calendar-wrap { overflow-x: auto; }
.calendar-table {
  width: 100%; font-size: 11px;
  border-collapse: separate;
  border-spacing: 2px;
}
.calendar-table th {
  font-size: 10px; font-weight: 600;
  color: var(--ink-5); text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center; padding: 6px 2px;
  min-width: 32px;
}
.calendar-table th:first-child {
  text-align: left; min-width: 130px;
}
.calendar-table td {
  text-align: center; padding: 2px;
  min-width: 32px;
}
.calendar-table td:first-child {
  text-align: left; padding: 4px 8px;
  font-size: 12px; font-weight: 600;
}
.calendar-cell {
  width: 28px; height: 28px;
  border-radius: var(--r-sm);
  background: var(--surface-3);
  font-size: 10px; font-weight: 600;
  color: var(--ink-4);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  cursor: pointer;
  transition: all var(--tr);
}
.calendar-cell:hover { background: var(--border); }
.calendar-cell.planned { background: var(--warning-soft); color: var(--warning); }
.calendar-cell.approved { background: var(--success-soft); color: var(--success); }
.calendar-cell.done { background: var(--info-soft); color: var(--info); }

.calendar-legend {
  display: flex; gap: 14px; margin-top: 12px;
  padding-top: 12px; border-top: 1px solid var(--border);
  font-size: 11px; color: var(--ink-4);
  flex-wrap: wrap;
}
.calendar-legend > div { display: flex; align-items: center; gap: 6px; }
.calendar-legend .dot {
  width: 14px; height: 14px; border-radius: var(--r-xs);
}

/* ═══════════════════════════════════════════════════════════
   32. BOSS — TABS + CONTENT
   ═══════════════════════════════════════════════════════════ */
.boss-tabs {
  display: flex; gap: 4px;
  padding: 8px 16px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 60px; z-index: 50;
  overflow-x: auto;
}
.boss-tabs::-webkit-scrollbar { display: none; }
.boss-tab {
  flex: 1; min-width: 110px;
  padding: 9px 14px;
  border-radius: var(--r-md);
  font-size: 12px; font-weight: 600;
  color: var(--ink-4);
  white-space: nowrap;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all var(--tr);
}
.boss-tab:hover { background: var(--surface-3); color: var(--ink); }
.boss-tab.active { background: var(--ink); color: #fff; }

.boss-content {
  padding: 20px; max-width: 1280px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 14px;
}

/* Panel */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
}
.panel-title {
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.panel-title i { color: var(--ink-4); font-size: 14px; }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
}
.stat-label {
  font-size: 10px; font-weight: 600;
  color: var(--ink-5); text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.stat-value {
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat-sub {
  font-size: 11px; color: var(--ink-4);
  margin-top: 6px; font-weight: 500;
  display: flex; align-items: center; gap: 4px;
}
.stat-sub.up { color: var(--success); font-weight: 600; }
.stat-sub.down { color: var(--danger); font-weight: 600; }
.stat-icon {
  width: 32px; height: 32px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px; font-size: 14px;
  background: var(--surface-3); color: var(--ink-3);
}

/* 7-day chart */
.chart-7d {
  display: flex; align-items: flex-end; gap: 8px;
  height: 140px; padding: 10px 0;
}
.chart-bar-wrap {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; height: 100%;
}
.chart-bar-outer {
  flex: 1; display: flex; align-items: flex-end;
  width: 100%;
}
.chart-bar {
  width: 100%; min-height: 3px;
  background: var(--ink-4);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  transition: all 250ms;
  position: relative;
}
.chart-bar.today { background: var(--ink); }
.chart-bar-label {
  font-size: 10px; font-weight: 600;
  color: var(--ink-5);
  font-variant-numeric: tabular-nums;
}
.chart-bar-label.today { color: var(--ink); }

/* Top products */
.top-list { display: flex; flex-direction: column; gap: 6px; }
.top-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  font-size: 12px;
}
.top-row:hover { background: var(--surface-3); }
.top-rank {
  width: 22px; height: 22px;
  border-radius: var(--r-sm);
  background: var(--surface-3);
  color: var(--ink-3);
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.top-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-qty {
  font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* Boss table */
.boss-table {
  width: 100%; font-size: 13px;
  border-collapse: collapse;
}
.boss-table thead th {
  text-align: left; padding: 10px 8px;
  font-size: 10px; font-weight: 600;
  color: var(--ink-5); text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
.boss-table tbody td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}
.boss-table tbody tr:hover { background: var(--surface-2); }
.boss-table td.right { text-align: right; font-variant-numeric: tabular-nums; }
.boss-table td.bold { font-weight: 600; }

/* Approval card */
.approval {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--warning);
  border-radius: var(--r-lg);
  padding: 14px;
  margin-bottom: 10px;
}
.approval-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.approval-author {
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 12px;
}
.approval-author i { color: var(--ink-5); font-size: 12px; }
.diff-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-bottom: 12px;
}
.diff-box {
  padding: 10px; border-radius: var(--r-md);
  font-size: 11px;
}
.diff-box.before { background: var(--danger-soft); color: var(--danger); }
.diff-box.after  { background: var(--success-soft); color: var(--success); }
.diff-box-title {
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; font-size: 10px;
  margin-bottom: 6px; display: flex; align-items: center; gap: 5px;
}
.diff-box pre {
  font-family: var(--font-mono);
  font-size: 10px; line-height: 1.4;
  max-height: 100px; overflow-y: auto;
  white-space: pre-wrap; word-break: break-all;
}
.approval-actions { display: flex; gap: 8px; }

/* Cashbox hero */
.cash-hero {
  background: var(--ink); color: #fff;
  border-radius: var(--r-xl);
  padding: 24px;
  position: relative; overflow: hidden;
}
.cash-hero::before {
  content: ''; position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}
.cash-hero-label {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: rgba(255,255,255,.6);
}
.cash-hero-value {
  font-size: 32px; font-weight: 700;
  letter-spacing: -0.03em; margin-top: 6px;
  font-variant-numeric: tabular-nums;
  position: relative; z-index: 1;
}

/* ═══════════════════════════════════════════════════════════
   33. KDS — DARK THEME (қайта жазылған)
   ═══════════════════════════════════════════════════════════ */
body.kds-body {
  background: var(--ink);
  color: #fff;
}
.kds-page {
  min-height: 100dvh;
  background: var(--ink);
  display: flex; flex-direction: column;
}
.kds-header {
  background: var(--ink-2);
  border-bottom: 1px solid var(--ink-3);
  padding: 14px 20px;
  display: flex; align-items: center; gap: 16px;
  position: sticky; top: 0; z-index: 50;
  flex-wrap: wrap;
}
.kds-header-logo {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
  flex-shrink: 0;
}
.kds-header-title {
  font-size: 16px; font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.kds-header-sub {
  font-size: 10px; font-weight: 600;
  color: var(--ink-5); text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1px;
}
.kds-header-stats {
  margin-left: auto;
  display: flex; gap: 20px; align-items: center;
}
.kds-stat { text-align: right; }
.kds-stat-label {
  font-size: 10px; font-weight: 600;
  color: var(--ink-5); text-transform: uppercase;
  letter-spacing: 0.05em;
}
.kds-stat-value {
  font-family: var(--font-mono);
  font-size: 22px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

.kds-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  padding: 18px;
  align-content: start;
}

.kds-card {
  background: var(--ink-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--ink-3);
  transition: all var(--tr);
}
.kds-card.green  { border-color: var(--success); }
.kds-card.yellow { border-color: var(--warning); }
.kds-card.red    { border-color: var(--danger); }
/* ⚠️ ЕСКЕРТУ: pulse animation ЖОҚ (көзге зиян) */

.kds-card-head {
  padding: 12px 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.kds-card-head.green  { background: rgba(22,163,74,.15); }
.kds-card-head.yellow { background: rgba(234,88,12,.15); }
.kds-card-head.red    { background: var(--danger); } /* нақты қызыл фон */
.kds-order-no {
  font-size: 22px; font-weight: 700;
  line-height: 1; color: #fff;
  font-variant-numeric: tabular-nums;
}
.kds-order-no small {
  display: block; font-size: 10px;
  color: rgba(255,255,255,.6);
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 3px;
}
.kds-age {
  font-family: var(--font-mono);
  font-size: 24px; font-weight: 700;
  line-height: 1; font-variant-numeric: tabular-nums;
}
.kds-age.green  { color: #4ADE80; }
.kds-age.yellow { color: #FB923C; }
.kds-age.red    { color: #fff; }
.kds-age-label {
  font-size: 10px; color: rgba(255,255,255,.6);
  text-align: right; text-transform: uppercase;
  letter-spacing: 0.05em; margin-top: 3px; font-weight: 600;
}
.kds-items { padding: 12px 16px; }
.kds-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 7px 0;
  border-bottom: 1px solid var(--ink-3);
  font-size: 13px; color: #E4E4E7;
}
.kds-item:last-child { border-bottom: none; }
.kds-qty {
  width: 28px; height: 28px;
  border-radius: var(--r-sm);
  background: var(--ink-3);
  color: #fff; font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.kds-item-name { flex: 1; padding-top: 4px; font-weight: 500; }

.kds-ready-btn {
  width: 100%; padding: 14px;
  background: var(--success); color: #fff;
  font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all var(--tr);
}
.kds-ready-btn:hover { background: #15803D; }
.kds-ready-btn:active { background: #166534; }

.kds-empty {
  grid-column: 1/-1;
  padding: 80px 24px;
  text-align: center;
  color: var(--ink-4);
}
.kds-empty i {
  font-size: 48px; opacity: .3;
  display: block; margin-bottom: 16px;
}
.kds-empty p { font-size: 14px; font-weight: 500; }

/* ═══════════════════════════════════════════════════════════
   34. INCIDENT (АҚАУ) MODAL
   ═══════════════════════════════════════════════════════════ */
.incident-category {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.incident-cat-btn {
  padding: 12px 10px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12px; font-weight: 600;
  color: var(--ink-3);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: all var(--tr);
}
.incident-cat-btn i { font-size: 16px; color: var(--ink-4); }
.incident-cat-btn:hover { border-color: var(--border-2); }
.incident-cat-btn.active {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.incident-cat-btn.active i { color: #fff; }

.incident-photo {
  aspect-ratio: 1.3;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 2px dashed var(--border-2);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: all var(--tr);
}
.incident-photo:hover { border-color: var(--ink-4); }
.incident-photo i { font-size: 28px; color: var(--ink-5); }
.incident-photo p { font-size: 11px; color: var(--ink-5); font-weight: 500; }
.incident-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}

/* ═══════════════════════════════════════════════════════════
   35. TOGGLE GROUP / SETTINGS
   ═══════════════════════════════════════════════════════════ */
.setting-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px;
  background: var(--surface-2);
  border-radius: var(--r-md);
  margin-bottom: 6px;
}
.setting-row-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500;
}
.setting-row-label i {
  width: 18px; text-align: center;
  color: var(--ink-4); font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════
   36. PRINT STYLES (80mm + 58mm чек принтер)
   ═══════════════════════════════════════════════════════════ */
#print-root { display: none; }

@media print {
  /* Барлық негізгі мазмұнды жасыру */
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block !important; }

  @page {
    margin: 0;
    size: 80mm auto;
  }

  html, body {
    background: #fff !important;
    color: #000 !important;
    font-family: "Courier New", Courier, monospace !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Чек шаблон */
.receipt {
  width: 76mm;
  margin: 0 auto;
  padding: 4mm 2mm;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  color: #000;
  background: #fff;
  line-height: 1.35;
}
.receipt.center { text-align: center; }
.receipt.right { text-align: right; }
.receipt-logo {
  max-width: 120px;
  max-height: 60px;
  margin: 0 auto 6px;
  display: block;
  filter: grayscale(1);
}
.receipt-cafe {
  font-size: 15px; font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.receipt-title {
  font-size: 12px; font-weight: 700;
  text-align: center;
  margin: 4px 0;
}
.receipt-divider {
  border-top: 1px dashed #000;
  margin: 6px 0;
}
.receipt-row {
  display: flex; justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  padding: 2px 0;
  font-variant-numeric: tabular-nums;
}
.receipt-row.total {
  font-size: 14px; font-weight: 700;
  border-top: 1px solid #000;
  padding-top: 6px;
  margin-top: 6px;
}
.receipt-row.discount { font-style: italic; }
.receipt-meta {
  display: flex; justify-content: space-between;
  font-size: 10px;
  padding: 1px 0;
}
.receipt-footer {
  text-align: center;
  font-size: 10px;
  margin-top: 10px;
}
.receipt-qr {
  display: block;
  margin: 8px auto;
  max-width: 120px;
}

/* 58mm принтер үшін */
@media print and (max-width: 58mm) {
  @page { size: 58mm auto; }
  .receipt { width: 54mm; font-size: 11px; }
}

/* ═══════════════════════════════════════════════════════════
   37. ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.fade-up { animation: fadeUp 250ms var(--tr-slow) backwards; }

@keyframes pulse-soft {
  0%,100% { opacity: 1; }
  50%     { opacity: .6; }
}
.pulse-soft { animation: pulse-soft 2s ease-in-out infinite; }


/* ═══════════════════════════════════════════════════════════
   39. UTILITIES
   ═══════════════════════════════════════════════════════════ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — БАРЛЫҚ ҚҰРЫЛҒЫЛАРҒА ИКЕМДЕЛУ
   Mobile-first түзету (320px → 4K)
   ═══════════════════════════════════════════════════════════ */

/* ═══ 1. БАЗАЛЫҚ ТҮЗЕТУЛЕР (барлық экрандар) ═══ */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  min-height: -webkit-fill-available;
}

/* Touch targets — минимум 44px */
@media (hover: none) and (pointer: coarse) {
  button, .btn, .btn-icon, .tab, .sidebar-item,
  input, select, textarea {
    min-height: 44px;
  }
  .btn-icon { min-width: 44px; }
  .btn-icon.sm { min-height: 36px; min-width: 36px; }
  .header-icon-btn { min-width: 44px; min-height: 44px; }
}

/* Safe-area (iPhone notch / Android) */
.staff-header {
  padding-top: calc(var(--safe-top) + 10px);
}
.staff-content {
  padding-bottom: calc(var(--safe-bottom) + 100px);
}
.client-page {
  padding-bottom: calc(var(--safe-bottom) + 90px);
}
.cart-bar {
  bottom: calc(var(--safe-bottom) + 16px);
}
.fab {
  bottom: calc(var(--safe-bottom) + 20px);
}
.sidebar-drawer {
  padding-bottom: var(--safe-bottom);
}

/* Overflow prevention */
* {
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.modal-content,
.staff-page,
.client-page {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Scrollbars — mobile */
@media (max-width: 900px) {
  ::-webkit-scrollbar { width: 4px; height: 4px; }
}


/* ═══════════════════════════════════════════════════════════
   2. XL DESKTOP (1440px+) — ең үлкен экрандар
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 1440px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
    max-width: 1400px;
    gap: 14px;
  }
  .staff-container,
  .boss-content {
    max-width: 1400px;
  }
  .reception-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
  .kds-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
  .stats-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}


/* ═══════════════════════════════════════════════════════════
   3. DESKTOP (1280px-1439px) — стандарт
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 1280px) and (max-width: 1439px) {
  .reception-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ═══════════════════════════════════════════════════════════
   4. LAPTOP (1024px-1279px)
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 1024px) and (max-width: 1279px) {
  .reception-sidebar {
    width: 200px;
    padding: 10px 8px;
  }
  .reception-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
  }
  .reception-col {
    max-height: none;
  }
  .reception-col-body {
    max-height: 400px;
  }
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1100px;
  }
  .kds-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    padding: 14px;
  }
  .staff-container {
    max-width: 1000px;
  }
  .pos-split {
    grid-template-columns: 280px 1fr;
  }
}


/* ═══════════════════════════════════════════════════════════
   5. TABLET (768px-1023px)
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Reception — 2 баған */
  .reception-layout {
    flex-direction: column;
    height: auto;
    min-height: auto;
  }
  .reception-main {
    overflow: visible;
  }
  .reception-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
    height: auto;
  }
  .reception-col {
    max-height: 500px;
  }
  .reception-sidebar {
    display: none;
  }
  .reception-col-body {
    max-height: 400px;
  }
  .reception-col-header {
    padding: 10px 12px;
  }
  .reception-col-title {
    font-size: 11px;
  }

  /* Products grid */
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
    gap: 12px;
  }

  /* KDS */
  .kds-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px;
  }
  .kds-header {
    padding: 12px 16px;
    flex-wrap: wrap;
  }
  .kds-header-stats {
    gap: 14px;
  }
  .kds-stat-value {
    font-size: 18px;
  }
  .kds-header-title {
    font-size: 15px;
  }

  /* Split-screen POS — tablet-те тік */
  .pos-split {
    grid-template-columns: 1fr;
    height: auto;
    max-height: 90dvh;
    overflow-y: auto;
  }
  .pos-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 50dvh;
  }
  .pos-right {
    min-height: 400px;
  }
  .pos-right-content {
    max-height: 50dvh;
  }

  /* Boss */
  .boss-tabs {
    top: 58px;
    padding: 8px 12px;
  }
  .boss-content {
    padding: 14px;
  }
  .stats-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
  }
  .stat-value {
    font-size: 18px;
  }

  /* Modal — 90% width */
  .modal {
    padding: 12px;
  }
  .modal-content {
    max-width: 90vw;
  }
  .modal-content.xl,
  .modal-content.xxl {
    max-width: 95vw;
  }

  /* Menu picker */
  .menu-picker-list {
    max-height: 50vh;
  }

  /* Timer bar */
  .timer-bar {
    padding: 12px 14px;
  }
  .timer-bar-time {
    font-size: 18px;
  }

  /* Table grid */
  .table-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
  }
  .table-btn {
    font-size: 14px;
  }

  /* Work orders */
  .staff-content {
    padding: 14px;
    padding-bottom: 90px;
  }
}


/* ═══════════════════════════════════════════════════════════
   6. MOBILE LARGE (480px-767px) — үлкен телефоны
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  /* Base font-size */
  body {
    font-size: 14px;
  }

  /* Reception — 1 баған */
  .reception-layout {
    flex-direction: column;
    height: auto;
  }
  .reception-main {
    overflow: visible;
  }
  .reception-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
    height: auto;
  }
  .reception-col {
    max-height: none;
    min-height: auto;
  }
  .reception-col-body {
    max-height: 350px;
  }
  .reception-sidebar {
    display: none;
  }
  .reception-col-header {
    padding: 10px 12px;
  }
  .reception-col-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .reception-col-title {
    font-size: 11px;
    letter-spacing: 0.02em;
  }

  /* Products grid */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 4px 12px 100px;
  }
  .product-image {
    aspect-ratio: 1/1;
  }
  .product-body {
    padding: 10px 10px 12px;
  }
  .product-name {
    font-size: 13px;
  }
  .product-desc {
    font-size: 11px;
    min-height: 26px;
  }
  .product-price {
    font-size: 14px;
  }
  .product-add-btn {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  /* Header */
  .client-header {
    padding: 10px 12px 8px;
  }
  .logo-area {
    padding: 6px 12px;
    min-height: 64px;
  }
  .site-logo {
    width: 40px;
    height: 40px;
  }
  .brand-name {
    font-size: 15px;
  }
  .welcome-msg {
    font-size: 12px;
  }
  .welcome-address {
    font-size: 10px;
  }
  .header-icon-btn {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  /* Categories */
  .category-bar {
    top: 108px;
    padding: 8px 12px;
  }
  .cat-chip {
    padding: 7px 14px;
    font-size: 12px;
  }

  /* Search */
  .client-search {
    padding: 4px 12px 6px;
  }
  .client-search-box {
    padding: 9px 12px;
  }

  /* Cart bar */
  .cart-bar {
    padding: 11px 16px;
    border-radius: var(--r-lg);
    max-width: calc(100vw - 24px);
    gap: 10px;
  }
  .cart-bar-info b {
    font-size: 13px;
  }

  /* Staff page */
  .staff-header {
    padding: 8px 12px;
    padding-top: calc(var(--safe-top) + 8px);
    gap: 10px;
  }
  .staff-header-logo {
    width: 34px;
    height: 34px;
  }
  .staff-header-title {
    font-size: 9px;
  }
  .staff-header-name {
    font-size: 13px;
  }
  .staff-header-actions {
    gap: 4px;
  }
  .staff-header-actions .btn-icon {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
  .staff-chip {
    padding: 5px 9px;
    font-size: 11px;
  }
  .staff-chip i {
    font-size: 11px;
  }

  .staff-content {
    padding: 12px;
    padding-bottom: calc(var(--safe-bottom) + 90px);
  }

  /* Timer bar */
  .timer-bar {
    padding: 12px 14px;
  }
  .timer-bar-icon {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  .timer-bar-time {
    font-size: 17px;
  }
  .timer-bar-btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  /* Order card */
  .order-card {
    padding: 12px;
    border-radius: var(--r-md);
    margin-bottom: 8px;
  }
  .order-card-no {
    font-size: 16px;
  }
  .order-card-no small {
    font-size: 9px;
  }
  .order-card-age {
    font-size: 10px;
  }
  .order-card-items {
    font-size: 11px;
    margin-bottom: 8px;
  }
  .order-card-total {
    font-size: 14px;
  }
  .mini-btn {
    padding: 6px 10px;
    font-size: 11px;
  }
  .btn-sm {
    padding: 6px 10px;
    font-size: 11px;
  }

  /* FAB */
  .fab {
    padding: 12px 18px;
    font-size: 13px;
    bottom: calc(var(--safe-bottom) + 16px);
    right: 14px;
  }

  /* Menu picker */
  .menu-tabs {
    padding: 3px;
  }
  .menu-tab {
    padding: 8px 12px;
    font-size: 11px;
  }
  .menu-row {
    padding: 8px 10px;
    gap: 10px;
  }
  .menu-row-image {
    width: 40px;
    height: 40px;
  }
  .menu-row-name {
    font-size: 12px;
  }
  .menu-row-price {
    font-size: 11px;
  }
  .menu-row-count {
    min-width: 24px;
    height: 24px;
    font-size: 12px;
  }
  .menu-row-minus {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
  .menu-picker-list {
    max-height: 45vh;
  }

  /* Table grid */
  .table-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }
  .table-btn {
    font-size: 13px;
    aspect-ratio: 1;
  }

  /* Modal */
  .modal {
    padding: 8px;
    align-items: flex-end;
  }
  .modal-content {
    max-width: 100%;
    max-height: 95dvh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    padding: 16px;
    animation: modalUpMobile 250ms var(--tr-slow);
  }
  .modal-content.sm,
  .modal-content.lg,
  .modal-content.xl,
  .modal-content.xxl {
    max-width: 100%;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    padding: 16px;
  }
  .modal-content.full {
    border-radius: 0;
    max-height: 100dvh;
  }
  @keyframes modalUpMobile {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  .modal-header {
    padding: 12px 16px;
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 2;
    margin: -16px -16px 0;
  }
  .modal-title {
    font-size: 15px;
  }
  .modal-body {
    padding: 14px 0;
  }
  .modal-footer {
    padding: 12px 0 0;
    position: sticky;
    bottom: 0;
    background: var(--surface);
    margin: 14px -16px -16px;
    padding: 12px 16px calc(var(--safe-bottom) + 12px);
  }

  /* Forms */
  .form-input,
  .form-select,
  .form-textarea {
    padding: 11px 12px;
    font-size: 14px; /* iOS zoom prevention — min 16px кейде керек */
  }
  .form-input.lg {
    font-size: 16px;
    padding: 12px 14px;
  }
  .form-label {
    font-size: 10px;
  }
  .form-row,
  .form-row-3 {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Buttons */
  .btn {
    padding: 10px 14px;
    font-size: 13px;
  }
  .btn-lg {
    padding: 12px 16px;
    font-size: 14px;
  }
  .btn-icon {
    width: 36px;
    height: 36px;
  }

  /* Login */
  .login-screen {
    padding: 16px;
  }
  .login-card {
    max-width: 100%;
  }
  .login-logo {
    width: 56px;
    height: 56px;
  }
  .login-title {
    font-size: 20px;
  }
  .login-option {
    padding: 14px;
    gap: 12px;
  }
  .login-option-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .login-option-title {
    font-size: 13px;
  }
  .login-option-sub {
    font-size: 11px;
  }

  /* Passcode */
  .passcode-screen {
    padding: 16px;
  }
  .passcode-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
  }
  .passcode-title {
    font-size: 16px;
  }
  .passcode-sub {
    font-size: 12px;
    margin-bottom: 24px;
  }
  .passcode-cells {
    gap: 8px;
    margin-bottom: 16px;
  }
  .passcode-cell {
    width: 40px;
    height: 48px;
    font-size: 18px;
  }
  .passcode-keypad {
    gap: 8px;
    max-width: 260px;
  }
  .passcode-key {
    font-size: 18px;
  }

  /* KDS — mobile */
  .kds-page {
    min-height: 100dvh;
  }
  .kds-header {
    padding: 10px 12px;
    padding-top: calc(var(--safe-top) + 10px);
    flex-wrap: wrap;
    gap: 10px;
  }
  .kds-header-logo {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
  .kds-header-title {
    font-size: 14px;
  }
  .kds-header-sub {
    font-size: 9px;
  }
  .kds-header-stats {
    width: 100%;
    gap: 12px;
    justify-content: space-between;
    margin-top: 4px;
  }
  .kds-stat-value {
    font-size: 16px;
  }
  .kds-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
    padding-bottom: calc(var(--safe-bottom) + 10px);
  }
  .kds-card {
    border-radius: var(--r-md);
  }
  .kds-card-head {
    padding: 10px 12px;
  }
  .kds-order-no {
    font-size: 18px;
  }
  .kds-order-no small {
    font-size: 9px;
  }
  .kds-age {
    font-size: 20px;
  }
  .kds-age-label {
    font-size: 9px;
  }
  .kds-items {
    padding: 10px 12px;
  }
  .kds-item {
    font-size: 12px;
    padding: 6px 0;
  }
  .kds-qty {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }
  .kds-ready-btn {
    padding: 12px;
    font-size: 13px;
  }

  /* Boss */
  .boss-tabs {
    top: 56px;
    padding: 6px 10px;
    gap: 3px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .boss-tabs::-webkit-scrollbar { display: none; }
  .boss-tab {
    min-width: 90px;
    padding: 8px 10px;
    font-size: 11px;
    flex-shrink: 0;
    gap: 4px;
  }
  .boss-tab i {
    font-size: 12px;
  }
  .boss-content {
    padding: 12px;
    gap: 10px;
  }
  .panel {
    padding: 14px;
    border-radius: var(--r-md);
  }
  .panel-title {
    font-size: 13px;
    margin-bottom: 12px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .stat {
    padding: 12px;
  }
  .stat-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
    margin-bottom: 8px;
  }
  .stat-label {
    font-size: 9px;
  }
  .stat-value {
    font-size: 15px;
  }
  .stat-sub {
    font-size: 10px;
  }

  /* 7-day chart */
  .chart-7d {
    height: 110px;
    gap: 4px;
    padding: 6px 0;
  }
  .chart-bar-label {
    font-size: 9px;
  }

  /* Top list */
  .top-row {
    padding: 6px 8px;
    font-size: 11px;
    gap: 8px;
  }
  .top-rank {
    width: 20px;
    height: 20px;
    font-size: 9px;
  }

  /* Boss table */
  .boss-table {
    font-size: 11px;
  }
  .boss-table thead th {
    padding: 8px 4px;
    font-size: 9px;
  }
  .boss-table tbody td {
    padding: 8px 4px;
  }

  /* Approval */
  .approval {
    padding: 12px;
  }
  .approval-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .diff-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .diff-box {
    padding: 8px;
  }
  .approval-actions {
    flex-direction: column;
  }
  .approval-actions .btn {
    width: 100%;
  }

  /* Cash hero */
  .cash-hero {
    padding: 18px;
    border-radius: var(--r-lg);
  }
  .cash-hero-value {
    font-size: 24px;
  }
  .cash-hero-label {
    font-size: 9px;
  }

  /* Editor */
  .editor-tabs {
    padding: 3px;
    gap: 3px;
    overflow-x: auto;
  }
  .editor-tab {
    padding: 8px 10px;
    font-size: 11px;
    flex-shrink: 0;
  }
  .editor-item {
    padding: 8px 10px;
    gap: 10px;
  }
  .editor-item-image {
    width: 40px;
    height: 40px;
  }
  .editor-item-name {
    font-size: 12px;
  }
  .editor-item-meta {
    font-size: 10px;
  }
  .editor-item-actions {
    gap: 2px;
  }
  .editor-item-actions .btn-icon {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  /* Warehouse */
  .warehouse-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }
  .warehouse-info {
    width: 100%;
  }
  .warehouse-input {
    width: 100%;
    max-width: 100%;
  }
  .warehouse-btn {
    width: 100%;
    height: 36px;
  }

  /* Sidebar drawer */
  .sidebar-drawer {
    width: 280px;
    max-width: 85vw;
  }

  /* Schedule */
  .calendar-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .calendar-table {
    font-size: 10px;
    min-width: 600px;
  }
  .calendar-table th {
    font-size: 9px;
    padding: 4px 2px;
    min-width: 28px;
  }
  .calendar-table td:first-child {
    min-width: 100px;
    font-size: 11px;
  }
  .calendar-cell {
    width: 24px;
    height: 24px;
    font-size: 9px;
  }
  .calendar-header {
    margin-bottom: 10px;
  }
  .calendar-month {
    font-size: 13px;
  }

  /* Incident modal */
  .incident-category {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .incident-cat-btn {
    padding: 10px 8px;
    font-size: 11px;
  }
  .incident-cat-btn i {
    font-size: 14px;
  }

  /* Toast */
  #toast-root {
    left: 10px;
    right: 10px;
    top: calc(var(--safe-top) + 10px);
  }
  .toast {
    min-width: unset;
    width: 100%;
    max-width: 100%;
    padding: 11px 14px;
    font-size: 12px;
  }

  /* Split-screen POS — mobile-да тік */
  .pos-split {
    grid-template-columns: 1fr;
    height: auto;
    max-height: 90dvh;
    border-radius: var(--r-md);
  }
  .pos-left {
    padding: 12px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 42dvh;
    overflow-y: auto;
  }
  .pos-right {
    max-height: 48dvh;
  }
  .pos-right-header {
    padding: 10px 12px;
  }
  .pos-right-content {
    padding: 12px;
  }
  .pos-right-footer {
    padding: 10px 12px;
  }

  /* Print styles */
  @media print {
    .receipt {
      width: 76mm !important;
    }
  }
}


/* ═══════════════════════════════════════════════════════════
   7. MOBILE SMALL (360px-479px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 479px) {
  body {
    font-size: 13px;
  }

  /* Reception */
  .reception-grid {
    padding: 8px;
    gap: 8px;
  }
  .reception-col-header {
    padding: 9px 10px;
  }

  /* Products */
  .products-grid {
    gap: 8px;
    padding: 4px 10px 100px;
  }
  .product-body {
    padding: 8px 9px 10px;
  }
  .product-name {
    font-size: 12px;
    min-height: 2.6em;
  }
  .product-desc {
    font-size: 10px;
    min-height: 24px;
  }
  .product-price {
    font-size: 13px;
  }
  .product-add-btn {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  .product-badge {
    font-size: 8px;
    padding: 2px 6px;
  }

  /* Header */
  .client-header-top {
    gap: 6px;
  }
  .logo-area {
    padding: 5px 10px;
    min-height: 58px;
  }
  .site-logo {
    width: 36px;
    height: 36px;
  }
  .brand-name {
    font-size: 14px;
  }

  /* Category */
  .cat-chip {
    padding: 6px 12px;
    font-size: 11px;
  }

  /* Cart bar */
  .cart-bar {
    padding: 10px 14px;
    font-size: 12px;
  }
  .cart-bar-info small {
    font-size: 9px;
  }
  .cart-bar-info b {
    font-size: 12px;
  }

  /* Modal */
  .modal-content {
    padding: 14px;
  }
  .modal-title {
    font-size: 14px;
  }
  .modal-footer {
    padding: 10px 14px calc(var(--safe-bottom) + 10px);
    margin: 12px -14px -14px;
  }

  /* Boss */
  .stat-value {
    font-size: 14px;
  }
  .boss-tab {
    min-width: 80px;
    padding: 7px 8px;
    font-size: 10px;
  }

  /* KDS */
  .kds-order-no {
    font-size: 16px;
  }
  .kds-age {
    font-size: 18px;
  }

  /* Timer */
  .timer-bar-time {
    font-size: 15px;
  }
  .timer-bar-btn {
    padding: 7px 12px;
    font-size: 11px;
  }

  /* Table grid */
  .table-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .table-btn {
    font-size: 12px;
  }

  /* Order card */
  .order-card-no {
    font-size: 15px;
  }
  .mini-btn {
    padding: 5px 8px;
    font-size: 10px;
  }
}


/* ═══════════════════════════════════════════════════════════
   8. MOBILE XS (320px-359px) — өте кішкентай
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 359px) {
  body {
    font-size: 12px;
  }

  /* Products — 1 баған */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .product-image {
    aspect-ratio: 16/10;
  }

  /* Modal */
  .modal {
    padding: 4px;
  }
  .modal-content {
    padding: 12px;
    border-radius: var(--r-md) var(--r-md) 0 0;
  }

  /* Passcode */
  .passcode-cell {
    width: 36px;
    height: 44px;
    font-size: 16px;
  }
  .passcode-cells {
    gap: 6px;
  }
  .passcode-keypad {
    gap: 6px;
  }
  .passcode-key {
    font-size: 16px;
  }

  /* Table grid */
  .table-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Menu row */
  .menu-row-image {
    width: 36px;
    height: 36px;
  }
  .menu-row-name {
    font-size: 11px;
  }

  /* Boss tabs */
  .boss-tab {
    min-width: 70px;
    font-size: 9px;
  }
  .boss-tab span {
    display: none;
  }
  .boss-tab i {
    font-size: 14px;
  }
}


/* ═══════════════════════════════════════════════════════════
   9. LANDSCAPE MOBILE (телефонды көлденең)
   ═══════════════════════════════════════════════════════════ */
@media (max-height: 500px) and (orientation: landscape) {
  .passcode-screen {
    padding: 12px;
    flex-direction: row;
    gap: 20px;
  }
  .passcode-logo {
    display: none;
  }
  .passcode-keypad {
    max-width: 220px;
  }
  .passcode-cell {
    width: 36px;
    height: 42px;
  }

  .login-screen {
    padding: 12px;
  }
  .login-logo {
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
  }

  .kds-header {
    padding: 6px 12px;
  }
  .kds-grid {
    padding: 8px;
    gap: 8px;
  }
  .kds-card {
    min-height: auto;
  }
}


/* ═══════════════════════════════════════════════════════════
   10. PRINT (80mm / 58mm чек принтер)
   ═══════════════════════════════════════════════════════════ */
@media print {
  @page {
    margin: 0;
    size: 80mm auto;
  }
  html, body {
    width: 80mm;
    background: #fff !important;
    color: #000 !important;
  }
  .receipt {
    width: 76mm;
    padding: 2mm 1mm;
    font-size: 11pt;
    line-height: 1.4;
  }
}

@media print and (max-width: 58mm) {
  @page { size: 58mm auto; }
  .receipt {
    width: 54mm;
    font-size: 10pt;
  }
}


/* ═══════════════════════════════════════════════════════════
   11. ACCESSIBILITY — prefers-reduced-motion
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ═══════════════════════════════════════════════════════════
   12. DARK MODE (optional — system preference)
   ═══════════════════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
  /* Тек KDS үшін емес — жалпы (опционально) */
  /* Ескерту: auto-dark-mode өшіру үшін осы блокты алып тастаңыз */
  /* body:not(.kds-body) { --bg: #0F0F10; ... } */
}


/* ═══════════════════════════════════════════════════════════
   13. TOUCH UX ENHANCEMENTS
   ═══════════════════════════════════════════════════════════ */
@media (hover: none) {
  /* Hover эффекттерін өшіру (mobile-да) */
  .product-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
  .product-card:hover .product-image img {
    transform: none;
  }
  .btn:hover:not(:disabled) {
    background: inherit;
  }
  .sidebar-item:hover {
    background: transparent;
  }
}

/* Active states — touch */
@media (hover: none) and (pointer: coarse) {
  .btn:active:not(:disabled) { transform: scale(0.96); }
  .product-card:active { transform: scale(0.98); }
  .order-card:active { transform: scale(0.99); }
  .menu-row:active { background: var(--surface-3); }
}


/* ═══════════════════════════════════════════════════════════
   14. STICKY HEADERS — түзету
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .client-header {
    position: sticky;
    top: 0;
  }
  .category-bar {
    position: sticky;
    top: 108px;
  }
  .staff-header {
    position: sticky;
    top: 0;
  }
  .kds-header {
    position: sticky;
    top: 0;
  }
  .boss-tabs {
    position: sticky;
    top: 56px;
  }
}


/* ═══════════════════════════════════════════════════════════
   15. SCROLL BEHAVIOR
   ═══════════════════════════════════════════════════════════ */
.reception-col-body,
.menu-picker-list,
.editor-list,
.modal-body,
.pos-right-content,
.pos-left,
.kds-grid {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
/* ═══════════════════════════════════════════════════════════
   FIX: Stats grid — карточкалар бір бағанға жиналып қалмауы үшін
   ═══════════════════════════════════════════════════════════ */
.stats-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
}

/* 7-day chart + finance balance да толық ен болсын */
.chart-7d {
  width: 100%;
}

/* Boss content — толық ен */
.boss-content {
  max-width: 1400px;
  width: 100%;
}

/* Reception аналитика да толық ен */
.reception-col-body .top-list {
  width: 100%;
}
/* ═══════════════════════════════════════════════════════════
   FIX: Desktop-та контент толық ен болсын
   ═══════════════════════════════════════════════════════════ */

/* Desktop (1024px+) — бәрі кең */
@media (min-width: 1024px) {
  .boss-content {
    max-width: none !important;
    width: 100% !important;
    padding: 24px 32px !important;
  }
  .stats-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 14px !important;
  }
  .panel {
    width: 100% !important;
  }
  .staff-content {
    max-width: none !important;
    width: 100% !important;
  }
  .staff-container {
    max-width: 1400px !important;
  }
}

/* Өте үлкен экрандар (1440px+) */
@media (min-width: 1440px) {
  .stats-grid {
    grid-template-columns: repeat(6, 1fr) !important;
  }
  .boss-content {
    padding: 28px 40px !important;
  }
}
.report-btn {
  padding: 14px 12px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all var(--tr);
}
.report-btn:hover { border-color: var(--ink-4); background: var(--surface-3); }
.report-btn i { font-size: 18px; color: var(--ink-3); }

.code-badge {
  display: inline-block;
  font-family: var(--font-mono);
  background: var(--surface-3);
  padding: 2px 8px;
  border-radius: var(--r-xs);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}
/* ═══════════════════════════════════════════════════════════
   Receipt and menu refinements
   ═══════════════════════════════════════════════════════════ */

/* ─── #1 ЧЕК: барлық мәтін BOLD ─── */
.receipt,
.receipt * {
  font-weight: 700 !important;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.receipt-row.total,
.receipt-row.total span,
.receipt-cafe {
  font-weight: 900 !important;
  letter-spacing: 0.02em !important;
}
@media print {
  .receipt, .receipt * { font-weight: 700 !important; }
  .receipt-row.total, .receipt-row.total span { font-weight: 900 !important; }
}

/* ─── #2 РЕСЕПШЕН МЕНЮ: КВАДРАТ КАРТОЧКАЛАР ─── */
.menu-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)) !important;
  gap: 8px !important;
}
.menu-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  aspect-ratio: 1 / 1 !important;
  padding: 6px !important;
  gap: 4px !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r-md) !important;
  background: var(--surface) !important;
  position: relative !important;
  overflow: hidden !important;
  cursor: pointer !important;
}
.menu-row:active { transform: scale(0.96) !important; }
.menu-row.has-count { border-color: var(--accent) !important; }
.menu-row-image {
  width: 100% !important;
  height: 58% !important;
  flex-shrink: 0 !important;
  border-radius: var(--r-sm) !important;
}
.menu-row-info {
  flex: 1 !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 2px 2px 0 !important;
}
.menu-row-name {
  font-size: 11px !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  white-space: normal !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  min-height: 26px !important;
}
.menu-row-price {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: var(--accent) !important;
}
.menu-row-count {
  position: absolute !important;
  top: 5px !important;
  right: 5px !important;
  min-width: 20px !important;
  height: 20px !important;
  font-size: 10px !important;
  padding: 0 5px !important;
  z-index: 3 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25) !important;
  border: 2px solid #fff !important;
}
.menu-row.has-count .menu-row-count { display: flex !important; }
.menu-row-minus {
  position: absolute !important;
  top: 5px !important;
  right: 5px !important;
  width: 22px !important;
  height: 22px !important;
  font-size: 10px !important;
  z-index: 4 !important;
  background: rgba(255,255,255,0.96) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2) !important;
  border-radius: 50% !important;
  display: none;
}
.menu-row.has-count .menu-row-minus { display: flex !important; }
.menu-row.has-count .menu-row-count { display: none !important; }
.menu-row [data-half-btn] {
  position: absolute !important;
  bottom: 4px !important;
  right: 4px !important;
  z-index: 2 !important;
  padding: 2px 5px !important;
  font-size: 9px !important;
}

/* ─── #18 РЕСЕПШЕН БАҒАНДАРЫ: КАРТОЧКАЛАР КІШІРЕЙМЕУ ─── */
.reception-layout {
  height: calc(100dvh - 60px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
.reception-main { min-height: 0 !important; overflow: hidden !important; }
.reception-grid {
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
.reception-col {
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}
.reception-col-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin !important;
  padding: 8px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}
.reception-col-body > .order-card,
.reception-col-body > div {
  flex: 0 0 auto !important;
  min-height: auto !important;
  max-height: none !important;
  height: auto !important;
}
.reception-col-body::-webkit-scrollbar { width: 5px; }
.reception-col-body::-webkit-scrollbar-thumb {
  background: var(--border-2);
  border-radius: 3px;
}

/* WhatsApp түс */
.btn-wa { background: #25D366 !important; color: #fff !important; }

/* ═══════════════════════════════════════════════════════════
   SHNI tactile design refresh
   ═══════════════════════════════════════════════════════════ */
button, .btn, .btn-icon, .panel, .product-card, .order-card, .kds-card,
.boss-tab, .editor-tab, .contact-item, .lang-btn {
  transition:
    transform 220ms cubic-bezier(.2,.8,.2,1),
    box-shadow 220ms cubic-bezier(.2,.8,.2,1),
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

button:active:not(:disabled), .btn:active:not(:disabled), .btn-icon:active:not(:disabled) {
  transform: scale(.975);
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.staff-page, .client-page, .kds-page {
  animation: shni-page-in 360ms cubic-bezier(.16,1,.3,1) both;
}

.panel, .product-card, .order-card, .kds-card {
  border-radius: var(--r-lg);
}

.staff-header {
  position: sticky;
  isolation: isolate;
}

.staff-brand-mark {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  color: var(--ink-4);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
  pointer-events: none;
}

.staff-header-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  opacity: .76;
}

.staff-brand-mark span { display: none; }
.staff-brand-mark.is-unavailable .staff-header-logo { display: none; }
.staff-brand-mark.is-unavailable span { display: block; }
.kds-header-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.kds-header-logo span { display: none; }
.kds-header-logo.is-unavailable span { display: block; }
.kds-header-logo.is-unavailable img { display: none; }

.client-page {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  background-color: var(--bg);
}

.client-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--client-bg-image, none) center / cover no-repeat;
  opacity: var(--client-bg-opacity, 1);
}

.client-page > :not(.client-background-video) {
  position: relative;
  z-index: 1;
}

.client-background-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: var(--client-bg-opacity, 1);
  pointer-events: none;
}

.client-brand-mark {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin: 8px 0 2px;
  color: var(--ink-5);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
}

.client-brand-mark img {
  width: 42px;
  height: 30px;
  object-fit: contain;
}

.client-brand-mark.is-unavailable img { display: none; }

.branding-opacity-control {
  display: flex;
  align-items: center;
  gap: 14px;
}

.branding-opacity-control input { flex: 1; accent-color: var(--accent); }
.branding-opacity-control output {
  min-width: 42px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  text-align: right;
}

.kiik-widget {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(max(18px, env(safe-area-inset-bottom)) + 8px);
  z-index: 8000;
}

.kiik-trigger {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, #f0e6dc);
  box-shadow: 0 8px 24px rgba(27,32,38,.2), inset 0 1px 0 #fff;
  animation: none;
}

.kiik-trigger svg { width: 58px; height: 58px; overflow: visible; }
.kiik-trigger:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.kiik-chat {
  position: absolute;
  right: 0;
  bottom: 80px;
  display: flex;
  width: min(360px, calc(100vw - 28px));
  height: min(500px, calc(100dvh - 130px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 22px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 20px 60px rgba(27,32,38,.24);
  backdrop-filter: blur(20px);
  transform-origin: bottom right;
  animation: shni-modal-in 280ms cubic-bezier(.16,1,.3,1) both;
}

.kiik-chat[hidden] { display: none; }
.kiik-wizard-presets[hidden], .kiik-upload-control[hidden],
[data-kiik-endpoint-group][hidden] { display: none !important; }
.kiik-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
}

.kiik-chat-title { font-size: 14px; font-weight: 750; }
.kiik-chat-subtitle { margin-top: 2px; color: var(--ink-4); font-size: 11px; }
.kiik-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  overscroll-behavior: contain;
}

.kiik-message {
  width: fit-content;
  max-width: 88%;
  margin: 0 0 9px;
  padding: 10px 12px;
  border-radius: 15px 15px 15px 5px;
  background: var(--surface-3);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.kiik-message.user {
  margin-left: auto;
  border-radius: 15px 15px 5px 15px;
  background: var(--ink);
  color: #fff;
}

.kiik-chat-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--border);
}

.kiik-chat-input {
  min-width: 0;
  flex: 1;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-2);
}

.kiik-chat-send {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--accent);
  color: #fff;
}

.kiik-wizard-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 14px 10px;
}

.kiik-wizard-presets button {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-3);
  font-size: 11px;
}

.kiik-upload-control {
  padding: 0 14px 10px;
}

.kiik-upload-control input { width: 100%; font-size: 12px; }

@keyframes shni-page-in {
  from { opacity: 0; transform: translateY(8px) scale(.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes shni-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 600px) {
  .staff-brand-mark { width: 24px; height: 24px; opacity: .58; }
  .kiik-trigger { width: 60px; height: 60px; }
  .kiik-trigger svg { width: 52px; height: 52px; }
  .kiik-chat { bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Quiet glass refresh */
:root {
  --bg: #EEF1F2;
  --surface: #FFFFFF;
  --surface-2: #F7F9F9;
  --surface-3: #EDF1F2;
  --border: #E0E5E6;
  --border-2: #CDD5D7;
  --shadow-sm: 0 3px 10px rgba(27,32,38,.045), 0 1px 2px rgba(27,32,38,.035);
  --shadow-md: 0 10px 28px rgba(27,32,38,.075), 0 2px 6px rgba(27,32,38,.035);
  --shadow-lg: 0 18px 42px rgba(27,32,38,.11), 0 4px 12px rgba(27,32,38,.045);
}

body {
  background:
    radial-gradient(ellipse at 8% 0%, rgba(255,255,255,.92), transparent 42%),
    radial-gradient(ellipse at 96% 20%, rgba(209,220,221,.32), transparent 36%),
    var(--bg);
}

.staff-page,
.client-page { background: transparent; }

.staff-header,
.client-header,
.boss-tabs {
  background: rgba(248,250,250,.62);
  border-color: rgba(255,255,255,.78);
  box-shadow: 0 6px 22px rgba(27,32,38,.055), inset 0 1px 0 rgba(255,255,255,.42);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
}

.panel,
.product-card,
.order-card,
.kds-card,
.reception-col,
.reception-sidebar,
.editor-item,
.category-row,
.approval,
.stat-card,
.metric-card {
  background: rgba(255,255,255,.54);
  border-color: rgba(255,255,255,.68);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.62);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
}

.product-card {
  transition:
    transform 240ms cubic-bezier(.2,.8,.2,1),
    box-shadow 240ms cubic-bezier(.2,.8,.2,1),
    border-color 180ms ease;
}

.product-card:hover {
  border-color: rgba(205,213,215,.9);
  box-shadow: 0 12px 28px rgba(27,32,38,.09), inset 0 1px 0 rgba(255,255,255,.86);
  transform: translateY(-2px);
}

.editor-item:hover,
.order-card:hover,
.kds-card:hover {
  border-color: rgba(205,213,215,.9);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.86);
}

.boss-tab.active {
  background: rgba(27,32,38,.92);
  box-shadow: 0 4px 12px rgba(27,32,38,.14), inset 0 1px 0 rgba(255,255,255,.12);
}

.modal-content,
.sidebar-drawer,
.kiik-chat {
  background: rgba(250,252,252,.66);
  border-color: rgba(255,255,255,.8);
  box-shadow: 0 20px 56px rgba(27,32,38,.18), inset 0 1px 0 rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(26px) saturate(145%);
  backdrop-filter: blur(26px) saturate(145%);
}

.cart-bar {
  background: rgba(34,40,46,.9);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 12px 32px rgba(27,32,38,.2), inset 0 1px 0 rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
}

.form-input,
.form-select,
.form-textarea,
.client-search-box {
  background: rgba(255,255,255,.72);
  border-color: rgba(205,213,215,.8);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.client-search-box:focus-within {
  background: rgba(255,255,255,.96);
  border-color: color-mix(in srgb, var(--accent) 44%, white);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

button,
.btn,
.btn-icon {
  transition:
    transform 220ms cubic-bezier(.2,.8,.2,1),
    box-shadow 220ms cubic-bezier(.2,.8,.2,1),
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.btn:not(:disabled):hover,
.btn-icon:not(:disabled):hover {
  box-shadow: 0 5px 14px rgba(27,32,38,.09);
}

.editor-direct-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(22,163,74,.18);
  border-radius: var(--r-md);
  background: rgba(240,253,244,.78);
  color: #16733B;
  font-size: 12px;
  font-weight: 600;
}

.editor-direct-banner i { font-size: 14px; }

.kiik-trigger {
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255,255,255,.82);
  background: rgba(249,247,243,.88);
  box-shadow: 0 8px 24px rgba(27,32,38,.16), inset 0 1px 0 rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
  animation: none;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms ease;
}

.kiik-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(27,32,38,.19), inset 0 1px 0 rgba(255,255,255,.96);
}

.kiik-trigger:active { transform: scale(.97); }
.kiik-trigger svg { width: 44px; height: 44px; }

/* Round marks and clearer glass surfaces */
.staff-header-logo,
.site-logo,
.boot-logo,
.passcode-logo,
.login-logo,
.client-brand-mark img {
  border-radius: 50%;
}

.staff-header-logo,
.site-logo,
.boot-logo,
.passcode-logo,
.login-logo {
  overflow: hidden;
  background: rgba(255,255,255,.92);
  box-shadow: 0 3px 12px rgba(27,32,38,.1), inset 0 1px 0 rgba(255,255,255,.74);
}

.staff-brand-mark {
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 50%;
  background: rgba(255,255,255,.42);
  box-shadow: 0 3px 12px rgba(27,32,38,.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.reception-sidebar {
  background: rgba(246,249,249,.56);
  border-color: rgba(255,255,255,.62);
  box-shadow: inset 1px 0 0 rgba(255,255,255,.42);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
}

.sidebar-drawer {
  background: rgba(248,250,250,.58);
}

.sidebar-drawer-header {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.55);
}

.sidebar-item {
  border: 1px solid transparent;
  transition: background-color 200ms ease, border-color 200ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.sidebar-item:hover {
  background: rgba(255,255,255,.48);
  border-color: rgba(255,255,255,.56);
  box-shadow: 0 4px 12px rgba(27,32,38,.055);
}

.contacts-panel {
  background: rgba(249,251,251,.58);
  border-color: rgba(255,255,255,.78);
  box-shadow: 0 16px 40px rgba(27,32,38,.15), inset 0 1px 0 rgba(255,255,255,.68);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
}

.contact-item {
  border: 1px solid transparent;
}

.contact-item:hover {
  background: rgba(255,255,255,.54);
  border-color: rgba(255,255,255,.58);
}

.client-brand-mark img {
  width: 34px;
  height: 34px;
  padding: 3px;
  background: rgba(255,255,255,.56);
  box-shadow: 0 3px 12px rgba(27,32,38,.09);
}

/* Expanded, readable client masthead */
.client-header {
  position: sticky;
  min-height: 204px;
  padding: calc(var(--safe-top) + 12px) 14px 15px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(231,237,238,.58);
}

.client-page > header.client-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.client-page > .contacts-panel {
  position: fixed;
  z-index: 200;
}

.client-header::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;
  background-color: rgba(231,237,238,.92);
  background-image:
    linear-gradient(115deg, rgba(255,255,255,.76), rgba(255,255,255,.48)),
    var(--client-header-image, none);
  background-position: center, center 52%;
  background-size: cover;
  transform: scale(1.035);
  animation: client-header-drift 24s ease-in-out infinite alternate;
}

.client-header-top {
  position: relative;
  min-height: 134px;
  flex: 1;
  align-items: stretch;
  margin-bottom: 7px;
}

.logo-area {
  position: absolute;
  inset: 0;
  min-height: 0;
  padding: 34px 54px 22px;
  gap: 8px;
  border-radius: 22px;
  background: rgba(255,255,255,.08);
}

.logo-area::before {
  background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.04));
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.client-header-top > .header-icon-btn {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin-top: 4px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 4px 14px rgba(27,32,38,.08), inset 0 1px 0 rgba(255,255,255,.74);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.client-header-top > .header-icon-btn:hover {
  background: rgba(255,255,255,.82);
  transform: translateY(-1px);
}

.site-logo {
  width: 54px;
  height: 54px;
  padding: 3px;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,.74);
}

.brand-name {
  max-width: 100%;
  color: #22282d;
  font-size: clamp(19px, 5vw, 24px);
  font-weight: 760;
  line-height: 1.2;
  text-shadow: 0 1px 12px rgba(255,255,255,.9);
  overflow-wrap: anywhere;
}

.welcome-block {
  position: relative;
  z-index: 1;
  padding: 7px 12px 0;
  border-top: 1px solid rgba(255,255,255,.54);
  text-shadow: 0 1px 8px rgba(255,255,255,.85);
}

.welcome-msg {
  color: #252c30;
  font-size: 14px;
  font-weight: 700;
}

.welcome-address {
  color: #424c50;
  font-size: 12px;
  font-weight: 600;
}

.client-header .client-header-top > .logo-area,
.client-header .welcome-block {
  z-index: 1;
}

.client-header .client-header-top > .header-icon-btn { z-index: 2; }

.client-page > .category-bar {
  position: sticky;
  top: 196px;
  z-index: 90;
}

.client-page .header-icon-btn,
.client-page .lang-btn,
.client-page .cat-chip,
.client-page .product-add-btn,
.client-page .cart-bar,
.client-page .btn {
  transition:
    transform 220ms cubic-bezier(.2,.8,.2,1),
    box-shadow 220ms cubic-bezier(.2,.8,.2,1),
    background-color 180ms ease,
    border-color 180ms ease;
}

.client-page .lang-btn {
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  box-shadow: 0 3px 10px rgba(27,32,38,.05);
}

.client-page .lang-btn.active {
  background: rgba(35,42,47,.92);
  color: #fff;
}

.client-page .cat-chip {
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  border-color: rgba(255,255,255,.76);
  box-shadow: 0 3px 10px rgba(27,32,38,.045), inset 0 1px 0 rgba(255,255,255,.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.client-page .cat-chip.active {
  background: rgba(35,42,47,.92);
  border-color: rgba(255,255,255,.2);
  color: #fff;
}

.client-page .product-add-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(35,42,47,.94);
  box-shadow: 0 5px 14px rgba(27,32,38,.16), inset 0 1px 0 rgba(255,255,255,.16);
}

.client-page .product-add-btn:hover {
  background: var(--accent);
  transform: translateY(-1px) scale(1.04);
}

.client-page .cart-bar {
  min-height: 58px;
  padding: 12px 20px;
  border-radius: 999px;
}

.demo-catalog-note {
  margin: 0 14px 8px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.48);
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: 0 3px 12px rgba(27,32,38,.04), inset 0 1px 0 rgba(255,255,255,.58);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
}

.passcode-cells { cursor: text; }
.passcode-input:focus-visible { outline: none; box-shadow: none; }

@media (hover: none) and (pointer: coarse) {
  .passcode-keypad { display: none; }
}

@keyframes client-header-drift {
  from { transform: scale(1.035) translate3d(-.4%, 0, 0); }
  to { transform: scale(1.09) translate3d(.4%, -1%, 0); }
}

@media (max-width: 767px) {
  .client-header { min-height: 196px; }
  .client-header-top { min-height: 126px; }
  .client-page > .category-bar { top: 196px; }
  .logo-area { padding: 32px 48px 20px; }
}

@media (max-width: 380px) {
  .client-header { min-height: 188px; }
  .client-header-top { min-height: 120px; }
  .client-page > .category-bar { top: 188px; }
  .site-logo { width: 48px; height: 48px; }
  .welcome-block { padding-right: 6px; padding-left: 6px; }
}

.boss-observe-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  color: var(--info);
  background: var(--info-soft);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 650;
}

.boss-tab-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.boss-tab {
  transition: background-color 180ms ease, color 180ms ease, box-shadow 220ms ease,
    transform 200ms cubic-bezier(.2,.8,.2,1);
}

.boss-tab:hover { transform: translateY(-1px); }
.boss-tab.active:hover { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   SHNI POS — OFFICIAL ENTERPRISE TERMINAL THEME (STAFF, RECEPTION, KDS, BOSS)
   Клиент панелі (.client-page) өзгеріссіз сақталады.
   Барлық қызметкер және басшы панельдері ресми коммерциялық POS стилінде.
   ═══════════════════════════════════════════════════════════════════════════ */

/* 1. Жұмыс кеңістігінің фоны (Клиент панелінен басқа) */
.staff-page {
  background: #F1F5F9 !important;
  color: #0F172A;
}

/* 2. Ақ жоғарғы панель */
.staff-header {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border-bottom: 1px solid #E4E4E7 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  min-height: 58px;
  padding: calc(var(--safe-top) + 8px) 16px 8px !important;
  gap: 12px;
}

/* Ортада қалқып тұратын кішкентай дөңгелек логотипті ресми сол жақ блокқа ауыстыру */
.staff-header .staff-brand-mark {
  position: static !important;
  transform: none !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 8px !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
  padding: 3px !important;
  flex-shrink: 0;
  pointer-events: auto;
}

.staff-header .staff-header-logo {
  border-radius: 6px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.staff-header-title {
  color: #0F172A !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}

.staff-header-name {
  color: #64748B !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

/* 3. Жоғарғы панельдегі чиптер мен батырмалар */
.staff-header .staff-chip {
  background: #F1F5F9 !important;
  border: 1px solid #E2E8F0 !important;
  color: #0F172A !important;
  border-radius: 8px !important;
  height: 34px !important;
  padding: 0 11px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.staff-header .staff-chip i {
  color: #64748B !important;
}

.staff-header .staff-chip.success {
  background: #ECFDF5 !important;
  border-color: #A7F3D0 !important;
  color: #047857 !important;
}

.staff-header .staff-chip.success i {
  color: #10B981 !important;
}

.staff-header .btn-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 8px !important;
  background: #F1F5F9 !important;
  border: 1px solid #E2E8F0 !important;
  color: #0F172A !important;
  box-shadow: none !important;
}

.staff-header .btn-icon:hover {
  background: #E2E8F0 !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

.staff-header .btn-icon.warn {
  background: #F1F5F9 !important;
  border-color: #E2E8F0 !important;
  color: #B45309 !important;
}

.staff-header .btn-icon.danger {
  background: #F1F5F9 !important;
  border-color: #E2E8F0 !important;
  color: #DC2626 !important;
}

.staff-header .btn-icon.info {
  background: #F1F5F9 !important;
  border-color: #E2E8F0 !important;
  color: #2563EB !important;
}

/* Таймер жолағы (Официант / Курьер / Редактор) */
.timer-bar {
  background: #FFFFFF !important;
  border-bottom: 1px solid #CBD5E1 !important;
  padding: 8px 16px !important;
  font-size: 12px !important;
  color: #334155 !important;
}

/* 4. Панельдер, Карточкалар, Ресепшен бағандары (Тұтас ақ, айқын шекаралы) */
.staff-page .panel,
.staff-page .order-card,
.staff-page .reception-col,
.staff-page .editor-item,
.staff-page .category-row,
.staff-page .approval,
.staff-page .stat,
.staff-page .stat-card,
.staff-page .metric-card,
.modal-content .panel,
.modal-content .order-card,
.modal-content .editor-item,
.modal-content .category-row,
.modal-content .stat {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.staff-page .panel-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  letter-spacing: -0.01em;
}

/* 5. Ресепшен бағандары мен бүйірлік мәзір */
.reception-grid {
  gap: 12px !important;
  padding: 12px !important;
}

.reception-col {
  overflow: hidden;
}

.reception-col-header {
  background: #F8FAFC !important;
  border-bottom: 1px solid #E2E8F0 !important;
  padding: 11px 14px !important;
}

.reception-col-title {
  font-size: 12.5px !important;
  font-weight: 800 !important;
  color: #0F172A !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.reception-col-icon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 7px !important;
  font-size: 13px !important;
}

.reception-col-count {
  background: #0F172A !important;
  color: #FFFFFF !important;
  border-radius: 6px !important;
  padding: 2px 8px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

.reception-sidebar {
  background: #FFFFFF !important;
  border-left: 1px solid #CBD5E1 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  padding: 14px 10px !important;
}

.sidebar-section {
  color: #64748B !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  padding: 4px 10px 8px !important;
}

.sidebar-item {
  border-radius: 8px !important;
  padding: 9px 11px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #1E293B !important;
  border: 1px solid transparent !important;
}

.sidebar-item i:first-child {
  color: #475569 !important;
  width: 18px;
  text-align: center;
}

.sidebar-item:hover {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
  box-shadow: none !important;
}

.sidebar-item:hover i:first-child {
  color: #0F172A !important;
}

/* 6. Тапсырыс карточкалары (.order-card) — 3 түсті индикатор жолағымен */
.staff-page .order-card {
  padding: 12px 14px !important;
  transition: border-color 140ms ease, box-shadow 140ms ease !important;
}

.staff-page .order-card:hover {
  border-color: #94A3B8 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

.staff-page .order-card.green {
  border-left: 4px solid #16A34A !important;
}

.staff-page .order-card.yellow {
  border-left: 4px solid #D97706 !important;
}

.staff-page .order-card.red {
  border-left: 4px solid #DC2626 !important;
  background: #FFFDFD !important;
}

.order-card-no {
  font-weight: 800 !important;
  color: #0F172A !important;
  font-variant-numeric: tabular-nums;
}

.order-card-total {
  font-weight: 800 !important;
  color: #0F172A !important;
  font-variant-numeric: tabular-nums;
}

/* 7. АС ҮЙ ЭКРАНЫ (KDS) — Қараңғы кәсіби терминал контрастын қалпына келтіру */
.kds-body,
.kds-page {
  background: #0B1120 !important;
  color: #F8FAFC !important;
}

.kds-header {
  background: #0F172A !important;
  border-bottom: 1px solid #1E293B !important;
  padding: 12px 18px !important;
}

.kds-stat {
  background: #1E293B !important;
  border: 1px solid #334155 !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
}

.kds-card {
  background: #1E293B !important;
  border: 1px solid #334155 !important;
  border-radius: 10px !important;
  color: #F8FAFC !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.kds-card.green {
  border-top: 4px solid #22C55E !important;
}

.kds-card.yellow {
  border-top: 4px solid #F59E0B !important;
}

.kds-card.red {
  border-top: 4px solid #EF4444 !important;
  background: #28151B !important;
}

.kds-card-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* 8. БОСС ПАНЕЛЬ — Навигация, Кестелер, Метрикалар */
.boss-tabs {
  background: #FFFFFF !important;
  border-bottom: 1px solid #CBD5E1 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  padding: 8px 16px !important;
  gap: 6px !important;
}

.boss-tab {
  border-radius: 8px !important;
  padding: 8px 13px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  border: 1px solid transparent !important;
  background: transparent !important;
}

.boss-tab:hover {
  background: #F1F5F9 !important;
  color: #0F172A !important;
  transform: none !important;
}

.boss-tab.active {
  background: #0F172A !important;
  color: #FFFFFF !important;
  border-color: #0F172A !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2) !important;
}

.boss-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.boss-table th {
  background: #F8FAFC !important;
  color: #475569 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 12px !important;
  border-bottom: 1px solid #CBD5E1 !important;
}

.boss-table td {
  padding: 10px 12px !important;
  border-bottom: 1px solid #E2E8F0 !important;
  color: #0F172A !important;
  font-size: 13px !important;
  font-variant-numeric: tabular-nums;
}

.boss-table tr:hover td {
  background: #F8FAFC !important;
}

/* Статистика карточкалары */
.staff-page .stat-label {
  color: #64748B !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.staff-page .stat-value {
  color: #0F172A !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums;
}

/* 9. МОДАЛЬДІ ТЕРЕЗЕЛЕР МЕН ФОРМАЛАР */
.modal-backdrop {
  background: rgba(15, 23, 42, 0.6) !important;
  -webkit-backdrop-filter: blur(3px) !important;
  backdrop-filter: blur(3px) !important;
}

.modal-content,
.sidebar-drawer {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.modal-header,
.sidebar-drawer-header {
  background: #F8FAFC !important;
  border-bottom: 1px solid #E2E8F0 !important;
  padding: 14px 18px !important;
}

.modal-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0F172A !important;
}

.modal-footer {
  background: #F8FAFC !important;
  border-top: 1px solid #E2E8F0 !important;
  padding: 12px 18px !important;
}

.staff-page .form-input,
.staff-page .form-select,
.staff-page .form-textarea,
.modal-content .form-input,
.modal-content .form-select,
.modal-content .form-textarea,
.login-card .form-input {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 8px !important;
  color: #0F172A !important;
  font-size: 13.5px !important;
}

.staff-page .form-input:focus,
.staff-page .form-select:focus,
.staff-page .form-textarea:focus,
.modal-content .form-input:focus,
.modal-content .form-select:focus,
.modal-content .form-textarea:focus,
.login-card .form-input:focus {
  border-color: #0F172A !important;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08) !important;
}

/* 10. ҮСТЕЛ БАТЫРМАЛАРЫ (.table-btn) */
.table-grid {
  gap: 8px !important;
}

.table-btn {
  border-radius: 10px !important;
  border: 1.5px solid #CBD5E1 !important;
  background: #FFFFFF !important;
  color: #0F172A !important;
  font-weight: 700 !important;
  min-height: 60px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 4px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.table-btn:hover {
  border-color: #0F172A !important;
  background: #F8FAFC !important;
}

.table-btn.busy {
  background: #FEF2F2 !important;
  border-color: #DC2626 !important;
  color: #991B1B !important;
}

.table-btn.locked {
  background: #F1F5F9 !important;
  border: 1.5px dashed #64748B !important;
  color: #475569 !important;
  cursor: not-allowed !important;
}

.table-btn.selected {
  background: #0F172A !important;
  border-color: #0F172A !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.18) !important;
}

/* 11. КІРУ ЭКРАНДАРЫ (Passcode & Boss Login & Shift Start) */
.passcode-screen,
.login-screen,
.reception-start {
  background: #0F172A !important;
  color: #F8FAFC !important;
}

.login-card,
.reception-start-card {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 14px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35) !important;
}

.passcode-title {
  color: #FFFFFF !important;
  font-weight: 700 !important;
}

.passcode-sub {
  color: #94A3B8 !important;
}

.passcode-cell {
  background: #1E293B !important;
  border: 1.5px solid #334155 !important;
  color: #FFFFFF !important;
  border-radius: 10px !important;
}

.passcode-cell.active {
  border-color: #38BDF8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
}

.passcode-key {
  background: #1E293B !important;
  border: 1px solid #334155 !important;
  color: #F8FAFC !important;
  border-radius: 10px !important;
}

.passcode-key:hover {
  background: #334155 !important;
}
