/* ============================================================
   НЕОН CRM — дизайн-система макета
   Тема: тёмная, неон циан + фиолет (по мотивам neon-bar86.ru)
   ============================================================ */

:root {
  --bg: #0a0a0f;
  --bg-soft: #0e0e16;
  --panel: #12121c;
  --panel-2: #171724;
  --panel-3: #1c1c2c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --text: #f2f3f8;
  --muted: #9aa0b4;
  --muted-2: #6b7186;

  --cyan: #00f0ff;
  --cyan-dim: rgba(0, 240, 255, 0.14);
  --purple: #b44dff;
  --purple-dim: rgba(180, 77, 255, 0.16);
  --green: #2ee6a8;
  --green-dim: rgba(46, 230, 168, 0.14);
  --red: #ff4d6d;
  --red-dim: rgba(255, 77, 109, 0.14);
  --amber: #ffc857;

  --radius: 16px;
  --radius-sm: 10px;

  --font-head: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --shadow-neon-cyan: 0 0 24px rgba(0, 240, 255, 0.35);
  --shadow-neon-purple: 0 0 24px rgba(180, 77, 255, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(180, 77, 255, 0.10), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(0, 240, 255, 0.08), transparent 60%);
  z-index: 0;
}

.hidden { display: none !important; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; letter-spacing: 0.01em; }
em { font-style: normal; }

button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }

/* ----------------------------------------------------------
   Логотип
---------------------------------------------------------- */
.logo-neon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.45);
  box-shadow: var(--shadow-neon-cyan), inset 0 0 14px rgba(0, 240, 255, 0.18);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

/* ----------------------------------------------------------
   Экран входа
---------------------------------------------------------- */
.login {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 24px;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
}
.glow-cyan {
  width: 420px;
  height: 420px;
  background: rgba(0, 240, 255, 0.22);
  top: -120px;
  left: -100px;
  animation: drift 9s ease-in-out infinite alternate;
}
.glow-purple {
  width: 480px;
  height: 480px;
  background: rgba(180, 77, 255, 0.22);
  bottom: -160px;
  right: -120px;
  animation: drift 11s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(50px, 35px) scale(1.12); }
}

.login-card {
  position: relative;
  width: min(440px, 100%);
  background: linear-gradient(160deg, rgba(23, 23, 36, 0.92), rgba(14, 14, 22, 0.94));
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 34px 32px 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.login-logo {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 26px;
}
.login-logo .logo-neon { width: 54px; height: 54px; font-size: 26px; border-radius: 14px; }
.login-logo h1 { font-size: 24px; line-height: 1.2; }
.login-logo h1 em { color: var(--cyan); text-shadow: 0 0 14px rgba(0, 240, 255, 0.55); }
.login-logo p { color: var(--muted); font-size: 13px; margin-top: 4px; }

.role-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 20px;
}
.role-pill {
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px;
  border-radius: 9px;
  transition: all 0.2s;
}
.role-pill.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.16), rgba(180, 77, 255, 0.16));
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.35);
}

.field { display: block; margin-bottom: 14px; }
.field span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 7px;
}
.field input {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus {
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.12);
}

.login-foot { color: var(--muted-2); font-size: 12.5px; position: relative; }

.login-demo {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
  text-align: center;
}
.login-demo > span { display: block; color: var(--muted-2); font-size: 12.5px; margin-bottom: 10px; }
.login-demo-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ----------------------------------------------------------
   Каркас приложения
---------------------------------------------------------- */
.app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 264px 1fr;
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 18px;
  background: rgba(14, 14, 22, 0.7);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand { display: flex; align-items: center; gap: 12px; padding: 0 6px 20px; }
.brand-txt strong { font-family: var(--font-head); font-size: 16px; display: block; }
.brand-txt strong em { color: var(--cyan); }
.brand-txt small { color: var(--muted); font-size: 12px; }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  padding: 11px 12px;
  border-radius: 12px;
  transition: all 0.18s;
  text-align: left;
}
.nav-item .ico { font-size: 17px; width: 22px; text-align: center; }
.nav-item:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-item.active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.12), rgba(180, 77, 255, 0.10));
  border-color: rgba(0, 240, 255, 0.3);
}
.nav-item .nav-badge {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--red-dim);
  color: var(--red);
  font-size: 11.5px;
  font-weight: 800;
  border: 1px solid rgba(255, 77, 109, 0.35);
}

.side-bottom { display: flex; flex-direction: column; gap: 10px; }
.user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
}
.user-card strong { display: block; font-size: 14px; }
.user-card small { color: var(--muted); font-size: 12px; }
.user-card .icon-btn { margin-left: auto; }
.avatar {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  background: var(--purple-dim);
  color: var(--purple);
  border: 1px solid rgba(180, 77, 255, 0.4);
}

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px 28px 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.topbar h2 { font-size: 21px; }
.topbar h2::after {
  content: '';
  display: block;
  width: 46px;
  height: 3px;
  border-radius: 3px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}
.topbar p { color: var(--muted); font-size: 13.5px; margin-top: 2px; }

.topbar-right { display: flex; align-items: center; gap: 12px; }
.shift {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  background: var(--panel);
}
.clock {
  font-family: var(--font-head);
  font-size: 17px;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.55);
  min-width: 64px;
  text-align: right;
}
.icon-btn {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  font-size: 15px;
  transition: all 0.2s;
}
.icon-btn:hover { border-color: var(--line-strong); background: var(--panel-2); }
.bell { font-size: 16px; }
.bell-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(255, 77, 109, 0.7);
}
.bell.has-new { border-color: rgba(255, 77, 109, 0.5); box-shadow: 0 0 14px rgba(255, 77, 109, 0.25); }

/* ----------------------------------------------------------
   Кнопки
---------------------------------------------------------- */
.btn {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 18px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn:active { transform: scale(0.98); }

.btn-neon {
  background: linear-gradient(135deg, var(--cyan), #6a7bff);
  color: #051018;
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.28);
}
.btn-neon:hover { box-shadow: 0 6px 26px rgba(0, 240, 255, 0.45); }

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--muted);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(0, 240, 255, 0.45); }

.btn-danger {
  background: var(--red-dim);
  color: var(--red);
  border-color: rgba(255, 77, 109, 0.35);
}
.btn-danger:hover { background: rgba(255, 77, 109, 0.22); }

.btn-green {
  background: var(--green-dim);
  color: var(--green);
  border-color: rgba(46, 230, 168, 0.35);
}
.btn-green:hover { background: rgba(46, 230, 168, 0.22); }

.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ----------------------------------------------------------
   Панели, сетки, статистика
---------------------------------------------------------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.panel-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.panel-title small { font-family: var(--font-body); color: var(--muted-2); font-weight: 500; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.stat::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}
.stat.c-cyan::after { background: linear-gradient(90deg, var(--cyan), transparent); }
.stat.c-purple::after { background: linear-gradient(90deg, var(--purple), transparent); }
.stat.c-green::after { background: linear-gradient(90deg, var(--green), transparent); }
.stat.c-red::after { background: linear-gradient(90deg, var(--red), transparent); }

.stat .num {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
}
.stat.c-cyan .num { color: var(--cyan); text-shadow: 0 0 16px rgba(0, 240, 255, 0.45); }
.stat.c-purple .num { color: var(--purple); text-shadow: 0 0 16px rgba(180, 77, 255, 0.45); }
.stat.c-green .num { color: var(--green); text-shadow: 0 0 16px rgba(46, 230, 168, 0.45); }
.stat.c-red .num { color: var(--red); text-shadow: 0 0 16px rgba(255, 77, 109, 0.45); }
.stat .lbl { color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 4px; }
.stat .sub { color: var(--muted-2); font-size: 12px; margin-top: 8px; }

.dash-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  align-items: start;
}

/* ----------------------------------------------------------
   Чипсы-фильтры, поиск
---------------------------------------------------------- */
.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 0.18s;
}
.chip:hover { color: var(--text); }
.chip.active {
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.5);
  background: var(--cyan-dim);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}
.chip .cnt { opacity: 0.65; font-weight: 600; margin-left: 4px; }

.search {
  flex: 1;
  min-width: 200px;
  max-width: 340px;
  position: relative;
}
.search::before {
  content: '⌕';
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-56%);
  font-size: 18px;
  color: var(--muted-2);
}
.search input {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  padding: 9px 16px 9px 36px;
  outline: none;
  transition: border-color 0.2s;
}
.search input:focus { border-color: rgba(0, 240, 255, 0.5); }
.search input::placeholder { color: var(--muted-2); }

/* ----------------------------------------------------------
   Бейджи
---------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 11px;
  border: 1px solid;
  white-space: nowrap;
}
.b-new { background: var(--cyan-dim); color: var(--cyan); border-color: rgba(0, 240, 255, 0.4); }
.b-active { background: var(--purple-dim); color: var(--purple); border-color: rgba(180, 77, 255, 0.4); }
.b-done { background: var(--green-dim); color: var(--green); border-color: rgba(46, 230, 168, 0.4); }
.b-stop { background: var(--red-dim); color: var(--red); border-color: rgba(255, 77, 109, 0.4); }
.b-mut { background: rgba(255,255,255,0.05); color: var(--muted); border-color: var(--line-strong); }
.b-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

/* ----------------------------------------------------------
   Список меню (админ)
---------------------------------------------------------- */
.menu-list { display: flex; flex-direction: column; gap: 8px; }

.menu-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 16px;
  transition: all 0.2s;
}
.menu-row:hover { border-color: var(--line-strong); }
.menu-row .m-name { font-weight: 700; font-size: 14.5px; }
.menu-row .m-cat { color: var(--muted-2); font-size: 12.5px; margin-top: 2px; }
.menu-row .m-price { font-weight: 800; font-size: 14.5px; color: var(--text); white-space: nowrap; }
.menu-row.stopped {
  background: linear-gradient(90deg, rgba(255, 77, 109, 0.09), var(--panel) 55%);
  border-color: rgba(255, 77, 109, 0.35);
}
.menu-row.stopped .m-name { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 77, 109, 0.6); }

/* ----------------------------------------------------------
   Тумблер стоп-листа
---------------------------------------------------------- */
.switch { position: relative; display: inline-block; width: 48px; height: 27px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--green-dim);
  border: 1px solid rgba(46, 230, 168, 0.45);
  transition: all 0.22s;
}
.switch .track::before {
  content: '';
  position: absolute;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  top: 3px;
  left: 4px;
  background: var(--green);
  box-shadow: 0 0 10px rgba(46, 230, 168, 0.7);
  transition: all 0.22s;
}
.switch input:checked + .track {
  background: var(--red-dim);
  border-color: rgba(255, 77, 109, 0.55);
}
.switch input:checked + .track::before {
  left: 24px;
  background: var(--red);
  box-shadow: 0 0 10px rgba(255, 77, 109, 0.7);
}
.switch-label { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }

/* ----------------------------------------------------------
   Сетка табаков
---------------------------------------------------------- */
.tobacco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.tob-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s;
}
.tob-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.tob-card .t-brand { font-family: var(--font-head); font-size: 15px; font-weight: 600; }
.tob-card .t-line { color: var(--muted); font-size: 13px; margin-top: 4px; }
.tob-card .t-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.tob-card.stopped {
  background: linear-gradient(160deg, rgba(255, 77, 109, 0.10), var(--panel) 70%);
  border-color: rgba(255, 77, 109, 0.4);
}
.tob-card.stopped .t-brand { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 77, 109, 0.6); }

/* ----------------------------------------------------------
   Заказы — канбан (официант) и таблица (админ)
---------------------------------------------------------- */
.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}
.kan-col {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  min-height: 220px;
}
.kan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px 12px;
  font-weight: 800;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.kan-head .cnt {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid;
}
.kan-new .kan-head { color: var(--cyan); }
.kan-new .cnt { background: var(--cyan-dim); border-color: rgba(0, 240, 255, 0.4); }
.kan-active .kan-head { color: var(--purple); }
.kan-active .cnt { background: var(--purple-dim); border-color: rgba(180, 77, 255, 0.4); }
.kan-done .kan-head { color: var(--green); }
.kan-done .cnt { background: var(--green-dim); border-color: rgba(46, 230, 168, 0.4); }

.kan-col .stack { display: flex; flex-direction: column; gap: 12px; }
.kan-empty {
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted-2);
  font-size: 13px;
  text-align: center;
  padding: 26px 10px;
}

.order-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  transition: all 0.2s;
}
.order-card:hover { border-color: var(--line-strong); }
.order-card.is-new { border-color: rgba(0, 240, 255, 0.35); box-shadow: 0 0 18px rgba(0, 240, 255, 0.07); }
.order-card.is-new .o-num::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  margin-right: 8px;
  animation: pulse 1.6s ease-in-out infinite;
  vertical-align: 1px;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.o-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.o-num { font-family: var(--font-head); font-weight: 700; font-size: 14px; }
.o-table {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 3px 9px;
  border-radius: 999px;
}
.o-time { margin-left: auto; color: var(--muted-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }

.o-items { list-style: none; margin: 0 0 12px; display: flex; flex-direction: column; gap: 5px; }
.o-items li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
}
.o-items .q {
  color: var(--text);
  font-weight: 700;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0 6px;
  font-size: 12px;
  margin-right: 8px;
  display: inline-block;
}
.o-items .p { white-space: nowrap; color: var(--muted-2); }

.o-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px dashed var(--line);
  padding-top: 11px;
}
.o-total { font-weight: 800; font-size: 15px; }
.o-waiter { color: var(--muted-2); font-size: 12.5px; }
.o-foot .btn { margin-left: auto; }
.o-foot .btn.btn-sm { padding: 9px 14px; }

/* Таблица заказов (админ) */
.order-table { display: flex; flex-direction: column; gap: 8px; }
.ot-row {
  display: grid;
  grid-template-columns: 70px 80px 1fr 100px 90px 130px 130px;
  gap: 12px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
}
.ot-row.head {
  background: transparent;
  border: none;
  color: var(--muted-2);
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0 16px;
}
.ot-row:not(.head):hover { border-color: var(--line-strong); }
.ot-num { font-family: var(--font-head); font-weight: 700; }
.ot-time-cell { color: var(--muted); font-weight: 600; }
.ot-items-cell { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ot-total-cell { font-weight: 800; }
.ot-waiter-cell { color: var(--muted); }
.ot-dur-cell { color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; }

/* Выпадающий статус (админ) */
.status-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line-strong);
  background-color: var(--panel-2);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 8px 30px 8px 14px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239aa0b4' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: all 0.2s;
  white-space: nowrap;
}
.status-select:hover { border-color: rgba(0, 240, 255, 0.5); }
.status-select:focus { outline: none; box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.12); }
.status-select option { background: var(--panel-2); color: var(--text); }
.status-select.s-new { color: var(--cyan); border-color: rgba(0, 240, 255, 0.4); background-color: var(--cyan-dim); }
.status-select.s-active { color: var(--purple); border-color: rgba(180, 77, 255, 0.4); background-color: var(--purple-dim); }
.status-select.s-done { color: var(--green); border-color: rgba(46, 230, 168, 0.4); background-color: var(--green-dim); }

/* Длительность выполнения в карточке заказа */
.o-dur { color: var(--green); font-size: 12px; font-weight: 700; margin-top: 3px; }

/* ----------------------------------------------------------
   Виджеты дашборда
---------------------------------------------------------- */
.hall-list { display: flex; flex-direction: column; gap: 8px; }
.hall {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
}
.hall .h-name { font-weight: 700; font-size: 14px; }
.hall .h-sub { color: var(--muted-2); font-size: 12px; margin-top: 1px; }
.hall .badge { margin-left: auto; }

.mini-orders { display: flex; flex-direction: column; gap: 8px; }
.mini-order {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13.5px;
}
.mini-order .mo-num { font-weight: 800; white-space: nowrap; }
.mini-order .mo-info { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-order .badge { margin-left: auto; }

.stop-now { display: flex; flex-direction: column; gap: 8px; }
.stop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 77, 109, 0.06);
  border: 1px solid rgba(255, 77, 109, 0.25);
  border-radius: 12px;
  padding: 10px 13px;
  font-size: 13.5px;
  font-weight: 600;
}
.stop-item .si-ico { font-size: 15px; }
.stop-item .si-type { color: var(--muted-2); font-size: 12px; font-weight: 600; margin-left: auto; padding-right: 8px; }
.stop-item .btn { padding: 6px 11px; font-size: 12px; }
.stop-empty {
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted-2);
  font-size: 13px;
  text-align: center;
  padding: 20px 10px;
}

.note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.note b { color: var(--text); }
.note .n-ico { font-size: 15px; }

/* ----------------------------------------------------------
   Тосты
---------------------------------------------------------- */
.toast-wrap {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 50;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--cyan);
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  animation: toast-in 0.25s ease;
  max-width: 360px;
}
.toast.t-red { border-left-color: var(--red); }
.toast.t-green { border-left-color: var(--green); }
.toast.out { opacity: 0; transform: translateX(20px); transition: all 0.3s; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------------
   Адаптив
---------------------------------------------------------- */
@media (max-width: 1100px) {
  .kanban { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .ot-row { grid-template-columns: 60px 90px 1fr 90px 120px; }
  .ot-row .ot-waiter-cell, .ot-row .ot-dur-cell,
  .ot-row.head .h-waiter, .ot-row.head .h-dur { display: none; }
}

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
    padding: 12px 16px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .brand { padding: 0; }
  .brand-txt small, .side-bottom .btn { display: none; }
  .nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .nav-item { padding: 8px 12px; font-size: 13px; width: auto; }
  .nav-item .ico { width: auto; }
  .side-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; flex: 1 1 100%; }
  .side-bottom { flex: 1 1 auto; justify-content: flex-end; }
  .user-card { padding: 6px 10px; gap: 8px; }
  .user-card > div { display: none; }
  .user-card .icon-btn { margin-left: 0; }
  .main { padding: 18px 16px 32px; }
  .menu-row { grid-template-columns: 1fr auto; row-gap: 10px; }
  .menu-row .m-price { order: 3; }
  .menu-row .m-stopcell { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
  .menu-row .badge { grid-column: 1 / -1; justify-self: start; }
  .clock { display: none; }
  .shift { display: none; }
  #simOrderBtn { display: none; }
  .ot-row { grid-template-columns: 56px 1fr 90px 118px; }
  .ot-row .ot-time-cell, .ot-row .ot-waiter-cell, .ot-row .ot-dur-cell,
  .ot-row.head .h-waiter, .ot-row.head .h-dur, .ot-row.head span:nth-child(2) { display: none; }
}

/* ---- продакшн-дополнения: ошибка входа и кнопка переподключения ---- */
.login-error {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 82, 82, 0.4);
  background: rgba(255, 82, 82, 0.08);
  color: #ff8a8a;
  font-size: 13px;
  line-height: 1.4;
}
.login-error.hidden { display: none; }
.offline-retry { color: #ffb14d; border-color: rgba(255, 177, 77, 0.4); }
