/* Панель управления — вход и дашборд. Отдельный файл, styles.css не затронут. */

/* Шрифты кабинета — Inter (текст, кириллица + az) и Outfit (цифры/заголовки), как в шаблоне NexStore.
   Алиасы Regular/DemiBold/Bold сохранены, т.к. на них завязаны все правила ниже. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Inter-400-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Regular'; font-style: normal; font-weight: 1 1000; font-display: swap; src: url("../fonts/Inter-400-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Inter-400-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Regular'; font-style: normal; font-weight: 1 1000; font-display: swap; src: url("../fonts/Inter-400-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Inter-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Regular'; font-style: normal; font-weight: 1 1000; font-display: swap; src: url("../fonts/Inter-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Inter-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Regular'; font-style: normal; font-weight: 1 1000; font-display: swap; src: url("../fonts/Inter-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Inter-500-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Inter-500-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Inter-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Inter-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Inter-600-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'DemiBold'; font-style: normal; font-weight: 1 1000; font-display: swap; src: url("../fonts/Inter-600-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Inter-600-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'DemiBold'; font-style: normal; font-weight: 1 1000; font-display: swap; src: url("../fonts/Inter-600-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Inter-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DemiBold'; font-style: normal; font-weight: 1 1000; font-display: swap; src: url("../fonts/Inter-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Inter-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DemiBold'; font-style: normal; font-weight: 1 1000; font-display: swap; src: url("../fonts/Inter-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/Inter-700-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Bold'; font-style: normal; font-weight: 1 1000; font-display: swap; src: url("../fonts/Inter-700-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/Inter-700-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Bold'; font-style: normal; font-weight: 1 1000; font-display: swap; src: url("../fonts/Inter-700-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/Inter-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bold'; font-style: normal; font-weight: 1 1000; font-display: swap; src: url("../fonts/Inter-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/Inter-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bold'; font-style: normal; font-weight: 1 1000; font-display: swap; src: url("../fonts/Inter-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Outfit-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Outfit-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/Outfit-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/Outfit-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.auth-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #7ccdcb 0%, #4f9d9b 100%);
  overflow: hidden; }
  .auth-page:before {
    content: "";
    position: absolute;
    width: 60vw;
    height: 60vw;
    max-width: 700px;
    max-height: 700px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: -20vw;
    right: -20vw; }
  .auth-page:after {
    content: "";
    position: absolute;
    width: 40vw;
    height: 40vw;
    max-width: 500px;
    max-height: 500px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 50%;
    bottom: -15vw;
    left: -15vw; }

.auth-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center; }
  .auth-wrap .auth-logo-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    margin-bottom: 1.75rem; }
  .auth-wrap .auth-logo {
    height: 40px; }
  .auth-wrap .auth-logo-text {
    font-family: Regular;
    font-size: 2.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff; }

.auth-card {
  width: 100%;
  background: var(--nq-surface,#fff);
  border-radius: 1rem;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.25);
  padding: 2.5rem 2rem;
  text-align: center; }
  .auth-card h1 {
    font-family: Bold;
    font-size: 1.6rem;
    color: #14806e;
    margin-bottom: .25rem; }
  .auth-card .auth-subtitle {
    font-family: Regular;
    color: var(--nq-muted,#6b7280);
    font-size: .9rem;
    margin-bottom: 1.75rem; }
  .auth-card form {
    text-align: left; }
  .auth-card label {
    font-family: Regular;
    font-size: .875rem;
    margin-bottom: .4rem;
    display: block; }
  .auth-card .form-control {
    font-family: Regular;
    border-radius: .5rem; }
    .auth-card .form-control:focus {
      border-color: #7ccdcb;
      box-shadow: 0 0 0 0.2rem rgba(20, 128, 110, 0.3); }
  .auth-card .auth-error {
    font-family: Regular;
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border-radius: .5rem;
    padding: .6rem 1rem;
    font-size: .875rem;
    margin-bottom: 1.25rem; }
  .auth-card button[type="submit"] {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #14806e;
    color: #FFFFFF;
    border: none;
    font-family: Bold;
    font-size: 1rem;
    padding: .65rem .75rem;
    border-radius: .5rem;
    margin-top: .5rem;
    transition: all .3s; }
    .auth-card button[type="submit"]:hover {
      opacity: .85; }
  .auth-card .auth-note {
    font-family: Regular;
    color: var(--nq-muted,#6b7280);
    font-size: .8rem;
    margin-top: 1.5rem; }
  .auth-card .auth-back {
    display: inline-block;
    margin-top: 1rem;
    font-family: Regular;
    font-size: .85rem;
    color: #7ccdcb;
    text-decoration: none; }
    .auth-card .auth-back:hover {
      color: #14806e; }

/* ---------------------------------------------------------------- */
/* Чекбоксы (кастомный вид взамен браузерного/Bootstrap-синего)      */
/* ---------------------------------------------------------------- */

.form-check {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding-left: 0; }

.form-check .form-check-input {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid #DADFE3;
  border-radius: .3rem;
  background: var(--nq-surface,#fff);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  float: none;
  margin: 0;
  outline: none;
  box-shadow: none;
  transition: all .2s; }
  .form-check .form-check-input:hover {
    border-color: #7ccdcb; }
  .form-check .form-check-input:checked {
    background-color: #14806e;
    border-color: #14806e;
    outline: none;
    box-shadow: none; }
    .form-check .form-check-input:checked::after {
      content: '';
      position: absolute;
      left: 5px;
      top: 1px;
      width: 4px;
      height: 8px;
      border: solid #FFFFFF;
      border-width: 0 2px 2px 0;
      transform: rotate(45deg); }
  .form-check .form-check-input:focus,
  .form-check .form-check-input:focus-visible {
    outline: none;
    box-shadow: none; }

.form-check .form-check-label {
  font-family: Regular;
  font-size: .875rem;
  color: var(--nq-text,#111827);
  cursor: pointer;
  margin: 0; }

/* ---------------------------------------------------------------- */
/* Панель управления (дашборд)                                       */
/* ---------------------------------------------------------------- */

.panel-page {
  min-height: 100vh;
  background: var(--nq-subtle,#f3f4f6); }

.panel-header {
  background: var(--nq-surface,#fff);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  padding: 1rem 0; }
  .panel-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between; }
  .panel-header .panel-logo-link {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none; }
  .panel-header img.panel-logo {
    height: 30px; }
  .panel-header .panel-logo-text {
    font-family: Regular;
    font-size: 2.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--nq-text,#111827); }
  .panel-header .panel-user {
    display: flex;
    align-items: center;
    gap: 1rem; }
    .panel-header .panel-user span {
      font-family: Regular;
      color: var(--nq-muted,#6b7280);
      font-size: .9rem; }
    .panel-header .panel-user a {
      font-family: DemiBold;
      color: #14806e;
      text-decoration: none;
      border: 1px solid #14806e;
      border-radius: .5rem;
      padding: .4rem .9rem;
      font-size: .85rem;
      transition: all .3s; }
      .panel-header .panel-user a:hover {
        background-color: #14806e;
        color: #FFFFFF; }
    .panel-header .panel-user .timeclock-toggle-btn {
      font-family: DemiBold;
      font-size: .85rem;
      color: #0f6b5c;
      background: var(--nq-surface,#fff);
      border: 1px solid #0f6b5c;
      border-radius: .5rem;
      padding: .4rem .9rem;
      cursor: pointer;
      transition: all .3s; }
      .panel-header .panel-user .timeclock-toggle-btn:hover {
        background-color: #0f6b5c;
        color: #FFFFFF; }
      .panel-header .panel-user .timeclock-toggle-btn.is-active {
        color: #FFFFFF;
        background-color: #dc2626;
        border-color: #dc2626; }
        .panel-header .panel-user .timeclock-toggle-btn.is-active:hover {
          opacity: .85; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: .35rem; }
  .lang-switch a {
    font-family: Regular;
    font-size: .8rem;
    color: var(--nq-muted,#6b7280);
    text-decoration: none;
    padding: .25rem .5rem;
    border-radius: .4rem;
    transition: all .3s; }
    .lang-switch a.active {
      font-family: Bold;
      color: #FFFFFF;
      background-color: #7ccdcb; }
    .lang-switch a:hover {
      color: #7ccdcb; }

.panel-header .panel-user .lang-switch a {
  border: none;
  padding: .25rem .5rem; }
  .panel-header .panel-user .lang-switch a:hover {
    background-color: transparent;
    color: #7ccdcb; }
  .panel-header .panel-user .lang-switch a.active {
    background-color: #7ccdcb;
    color: #FFFFFF; }

.auth-card .lang-switch {
  justify-content: center;
  margin-bottom: 1rem; }

.panel-body {
  padding: 2.5rem 0 4rem; }
  .panel-body h1 {
    font-family: Bold;
    font-size: 1.8rem;
    color: var(--nq-text, #000000);
    margin-bottom: .25rem; }
  .panel-body .panel-lead {
    font-family: Regular;
    color: var(--nq-muted,#6b7280);
    margin-bottom: 2rem; }

.panel-card {
  background: var(--nq-surface,#fff);
  border-radius: 1rem;
  box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, 0.06);
  padding: 1.75rem;
  margin-bottom: 1.5rem; }
  .panel-card h2 {
    font-family: DemiBold;
    font-size: 1.15rem;
    color: var(--nq-text, #000000);
    margin-bottom: 1.25rem; }

.panel-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 15px; }

.panel-layout {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem; }

.panel-sidebar {
  flex: 0 0 230px;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  position: sticky;
  top: 1.5rem; }

.panel-nav-label {
  font-family: Bold;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--nq-faint,#9ca3af);
  padding: .25rem .75rem .1rem; }
  .panel-nav-label-spaced {
    margin-top: .6rem; }

.panel-nav-divider {
  height: 1px;
  background: var(--nq-border,#e5e7eb);
  margin: .6rem .75rem .5rem; }

.panel-nav-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .75rem;
  border-radius: .55rem;
  font-family: DemiBold;
  font-size: .85rem;
  color: var(--nq-text,#111827);
  text-decoration: none;
  transition: all .2s; }
  .panel-nav-item:hover {
    background: var(--nq-subtle,#f3f4f6);
    text-decoration: none;
    color: var(--nq-text,#111827); }
  .panel-nav-item.active {
    background: #0f6b5c;
    color: #FFFFFF; }
    .panel-nav-item.active .panel-nav-icon {
      opacity: 1; }

.panel-nav-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  opacity: .55; }

.panel-nav-item.soon {
  color: var(--nq-faint,#9ca3af);
  cursor: default;
  pointer-events: none; }
  .panel-nav-item.soon .panel-nav-icon {
    opacity: .35; }
  .panel-nav-item.soon:hover {
    background: none; }

.panel-nav-soon-badge {
  margin-left: auto;
  font-family: Bold;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--nq-muted,#6b7280);
  background: var(--nq-subtle,#f3f4f6);
  border-radius: 100px;
  padding: .15rem .4rem; }

.panel-nav-group {
  display: flex;
  flex-direction: column; }

.panel-nav-sublist {
  display: none;
  flex-direction: column;
  gap: .1rem;
  padding: .3rem 0 .3rem .9rem;
  margin-left: .5rem;
  border-left: 2px solid var(--nq-border,#e5e7eb); }
  .panel-nav-sublist.open {
    display: flex; }

.panel-nav-subitem {
  display: block;
  padding: .45rem .75rem;
  border-radius: .5rem;
  font-family: Regular;
  font-size: .82rem;
  color: var(--nq-text-2,#374151);
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; }
  .panel-nav-subitem:hover {
    background: var(--nq-subtle,#f3f4f6);
    text-decoration: none;
    color: var(--nq-text,#111827); }
  .panel-nav-subitem.active {
    background: #14806e;
    color: #FFFFFF; }

.branch-back-link {
  display: inline-block;
  font-family: Regular;
  font-size: .85rem;
  color: #0f6b5c;
  text-decoration: none;
  margin-bottom: 1rem; }
  .branch-back-link:hover {
    text-decoration: underline; }

.panel-content {
  flex: 1;
  min-width: 0; }

.panel-section {
  display: none; }
  .panel-section.active {
    display: block; }

@media (max-width: 900px) {
  .panel-layout {
    flex-direction: column;
    gap: 1rem; }
  .panel-sidebar {
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    position: static;
    padding-bottom: .3rem; }
  .panel-nav-item {
    flex: 0 0 auto;
    white-space: nowrap; }
}

.branch-item {
  border: 1px solid var(--nq-border,#e5e7eb);
  border-radius: .75rem;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem; }
  .branch-item:last-child {
    margin-bottom: 0; }

.branch-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem; }
  .branch-header .branch-info p {
    margin: 0;
    font-family: Regular; }
  .branch-header .branch-info p.branch-title {
    font-family: DemiBold;
    color: var(--nq-text, #000000);
    font-size: 1.05rem;
    margin-bottom: .25rem; }
  .branch-header .branch-info p.branch-meta {
    color: var(--nq-muted,#6b7280);
    font-size: .875rem; }
  .branch-header .branch-info p.branch-login-status {
    color: #7ccdcb;
    font-size: .8rem;
    margin-top: .25rem; }

.branch-overflow {
  position: relative;
  flex: 0 0 auto; }
  .branch-overflow-toggle {
    width: 36px;
    height: 36px;
    border-radius: .5rem;
    border: 1px solid var(--nq-border,#e5e7eb);
    background: var(--nq-surface,#fff);
    color: var(--nq-text-2,#374151);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s; }
    .branch-overflow-toggle:hover {
      background: var(--nq-subtle,#f3f4f6); }
  .branch-overflow-menu {
    display: none;
    position: absolute;
    top: 44px;
    right: 0;
    width: 190px;
    background: var(--nq-surface,#fff);
    border: 1px solid var(--nq-border,#e5e7eb);
    border-radius: .625rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
    padding: .375rem;
    z-index: 5; }
    .branch-overflow-menu.open {
      display: block; }
    .branch-overflow-menu button {
      display: flex;
      align-items: center;
      gap: .625rem;
      width: 100%;
      border: none;
      background: none;
      border-radius: .4375rem;
      padding: .5625rem .625rem;
      font-family: Regular;
      font-size: .84375rem;
      font-weight: 500;
      color: var(--nq-text,#111827);
      text-align: left;
      transition: background .2s; }
      .branch-overflow-menu button:hover {
        background: var(--nq-subtle,#f3f4f6); }
  .branch-overflow-divider {
    height: 1px;
    background: var(--nq-border,#e5e7eb);
    margin: .3125rem .25rem; }
  .branch-overflow-danger {
    color: #dc2626 !important; }

.branch-tabs {
  display: flex;
  gap: .25rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--nq-border,#e5e7eb);
  margin-bottom: 1.375rem; }
  .branch-tab {
    padding: .625rem 1rem;
    margin-bottom: -1px;
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    font-family: Regular;
    font-size: .875rem;
    font-weight: 500;
    color: var(--nq-text-2,#374151);
    transition: color .2s; }
    .branch-tab:hover {
      color: var(--nq-text,#111827); }
    .branch-tab:focus {
      outline: none; }
    .branch-tab.active {
      font-family: DemiBold;
      color: #14806e;
      border-bottom-color: #14806e; }

/*
 * The branch list has two modes, toggled on #branchList by index.php's own
 * script: "overview" (all branches at once — just identity + the ⋮ menu)
 * and "detail" (one branch, opened from the sidebar sub-list — its tabs and
 * their panels, no ⋮ menu). !important is required here because it must
 * win over activateBranchTab()'s own inline display:block/none on
 * .branch-tab-panel.
 */
#branchList.branch-overview-mode .branch-tabs,
#branchList.branch-overview-mode .branch-tab-panel {
  display: none !important; }

#branchList.branch-detail-mode .branch-overflow {
  display: none !important; }

.branch-edit-row .branch-save,
.branch-edit-row .branch-cancel {
  border: 1px solid var(--nq-border,#e5e7eb);
  font-family: Bold;
  font-size: .85rem;
  border-radius: .5rem;
  padding: .55rem 1.2rem;
  transition: all .3s; }
.branch-edit-row .branch-save {
  background-color: #14806e;
  color: #FFFFFF; }
  .branch-edit-row .branch-save:hover {
    opacity: .85; }
.branch-edit-row .branch-cancel {
  background: var(--nq-surface,#fff);
  color: var(--nq-text-2,#374151);
  font-family: Regular;
  border: 1px solid var(--nq-border,#e5e7eb);}
  .branch-edit-row .branch-cancel:hover {
    background: var(--nq-subtle,#f3f4f6);
    color: var(--nq-text,#111827); }

.panel-empty {
  font-family: Regular;
  color: var(--nq-muted,#6b7280);
  text-align: center;
  padding: 1.5rem 0; }

/* ---------------------------------------------------------------- */
/* Меню филиала (внутри карточки филиала)                            */
/* ---------------------------------------------------------------- */

.branch-menu-section,
.branch-staff-section,
.branch-login-form,
.branch-guest-form {
  flex-basis: 100%;
  width: 100%;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--nq-border,#e5e7eb); }

.branch-login-form,
.branch-guest-form {
  background: var(--nq-bg,#f9fafb);
  border-radius: .75rem;
  padding: 1rem;
  border-top: none;
  margin-top: 1rem; }
  .branch-login-form .form-label-sm,
  .branch-guest-form .form-label-sm {
    font-family: Regular;
    font-size: .8rem;
    color: var(--nq-muted,#6b7280);
    margin-bottom: .3rem;
    display: block; }
  .branch-login-form .lang-hint,
  .branch-guest-form .lang-hint {
    margin-top: .5rem; }
  .branch-login-form button[type="submit"],
  .branch-guest-form button[type="submit"] {
    background-color: #7ccdcb;
    color: #FFFFFF;
    border: none;
    font-family: DemiBold;
    font-size: .85rem;
    padding: .5rem 1.1rem;
    border-radius: .5rem;
    transition: all .3s; }
    .branch-login-form button[type="submit"]:hover,
    .branch-guest-form button[type="submit"]:hover {
      opacity: .85; }
  .branch-login-form .branch-login-remove,
  .staff-login-form .staff-login-remove {
    border: none;
    background: var(--nq-subtle,#f3f4f6);
    color: #dc2626;
    font-family: Regular;
    font-size: .85rem;
    padding: .5rem 1.1rem;
    border-radius: .5rem;
    transition: all .3s; }
    .branch-login-form .branch-login-remove:hover,
    .staff-login-form .staff-login-remove:hover {
      background: #dc2626;
      color: #FFFFFF; }

.menu-items,
.staff-items {
  margin-bottom: 1rem; }

.menu-item,
.staff-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--nq-subtle,#f3f4f6); }
  .menu-item:last-child,
  .staff-item:last-child {
    border-bottom: none; }

.menu-thumb {
  width: 56px;
  height: 56px;
  border-radius: .5rem;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--nq-subtle,#f3f4f6); }

.menu-thumb-empty {
  width: 56px;
  height: 56px;
  border-radius: .5rem;
  flex-shrink: 0;
  background: var(--nq-subtle,#f3f4f6);
  color: #c7c9ca;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Regular;
  font-size: .65rem;
  text-align: center; }

.menu-info,
.staff-info {
  flex: 1;
  min-width: 0; }
  .menu-info p,
  .staff-info p {
    margin: 0; }
  .menu-info p.menu-title,
  .staff-info p.staff-name {
    font-family: DemiBold;
    color: var(--nq-text, #000000); }
  .menu-info p.menu-title + p.menu-title {
    margin-top: 6px; }
  .menu-info p.menu-comp,
  .staff-info p.staff-position {
    font-family: Regular;
    color: var(--nq-muted,#6b7280);
    font-size: .8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; }

.staff-info p.staff-role-tag {
  display: inline-block;
  font-family: DemiBold;
  font-size: .75rem;
  color: #15803d;
  background: rgba(20, 128, 110, 0.15);
  border-radius: .35rem;
  padding: .15rem .5rem;
  margin: .3rem .3rem 0 0; }

.menu-price {
  font-family: Bold;
  color: #14806e;
  white-space: nowrap;
  font-size: .95rem; }
  .menu-price span {
    display: block;
    font-family: Regular;
    color: var(--nq-muted,#6b7280);
    font-size: .7rem;
    text-align: right; }

.staff-phone {
  font-family: Regular;
  color: var(--nq-muted,#6b7280);
  font-size: .85rem;
  white-space: nowrap; }

.shift-items {
  margin-bottom: 1rem; }

.shift-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--nq-subtle,#f3f4f6); }
  .shift-item:last-child {
    border-bottom: none; }

.shift-info {
  flex: 1;
  min-width: 0; }
  .shift-info p {
    margin: 0; }
  .shift-info p.shift-date {
    font-family: DemiBold;
    color: var(--nq-text, #000000);
    font-size: .85rem; }
  .shift-info p.shift-employee {
    font-family: Regular;
    color: var(--nq-muted,#6b7280);
    font-size: .8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; }

.shift-time {
  font-family: Bold;
  color: #0f6b5c;
  white-space: nowrap;
  font-size: .9rem; }

.techcard-editor {
  padding: .85rem 0;
  border-bottom: 1px solid var(--nq-subtle,#f3f4f6); }

.techcard-lines {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: .75rem; }

.techcard-line {
  display: flex;
  gap: .5rem;
  align-items: center; }
  .techcard-line select {
    flex: 2;
    font-family: Regular;
    font-size: .85rem;
    padding: .4rem .5rem;
    border: 1px solid var(--nq-border,#e5e7eb);
    border-radius: .45rem; }
  .techcard-line input {
    flex: 1;
    font-family: Regular;
    font-size: .85rem;
    padding: .4rem .5rem;
    border: 1px solid var(--nq-border,#e5e7eb);
    border-radius: .45rem; }
  .techcard-line-remove {
    flex-shrink: 0;
    border: none;
    background: var(--nq-subtle,#f3f4f6);
    color: var(--nq-muted,#6b7280);
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1; }
    .techcard-line-remove:hover {
      background: #dc2626;
      color: #FFFFFF; }

.techcard-editor .techcard-add-line {
  border: 1px solid var(--nq-border,#e5e7eb);
  background: var(--nq-subtle,#f3f4f6);
  color: var(--nq-text,#111827);
  font-family: Regular;
  font-size: .8rem;
  border-radius: .45rem;
  padding: .4rem .8rem;
  cursor: pointer;
  margin-bottom: .75rem; }
  .techcard-editor .techcard-add-line:hover {
    background: var(--nq-border,#e5e7eb); }

.techcard-actions {
  display: flex;
  gap: .5rem; }

/*
 * Specificity note: plain `.menu-stock-badge { display: none }` (1 class)
 * ties with `.status-pill { display: inline-flex }` (also 1 class, defined
 * later in this file) — the later rule would silently win and the badge
 * would never hide. `span.menu-stock-badge` (class + tag) breaks the tie
 * unambiguously, the same fix as the header-branch-switch-menu links above.
 */
span.menu-stock-badge {
  display: none;
  flex-shrink: 0; }
  .menu-item.out-of-stock span.menu-stock-badge {
    display: inline-flex; }
  .menu-item.out-of-stock .menu-thumb,
  .menu-item.out-of-stock .menu-thumb-empty {
    opacity: .45; }
  .menu-item.out-of-stock .menu-info p.menu-title {
    color: var(--nq-muted,#6b7280); }

.menu-item .branch-actions,
.staff-item .branch-actions,
.shift-item .branch-actions {
  flex-shrink: 0; }
  .menu-item .branch-actions button.menu-stock-toggle.is-stopped {
    background: #e8f5f3;
    color: #0B4C41; }
    .menu-item .branch-actions button.menu-stock-toggle.is-stopped:hover {
      background: #0f6b5c;
      color: #FFFFFF; }
  .menu-item .branch-actions button,
  .staff-item .branch-actions button,
  .shift-item .branch-actions button {
    border: 1px solid var(--nq-border,#e5e7eb);
    background: var(--nq-surface,#fff);
    color: var(--nq-text-2,#374151);
    font-family: Regular;
    font-size: .8rem;
    border-radius: .5rem;
    padding: .45rem .9rem;
    transition: all .3s; }
    .menu-item .branch-actions button:hover,
    .staff-item .branch-actions button:hover,
    .shift-item .branch-actions button:hover {
      background: var(--nq-subtle,#f3f4f6);
      color: var(--nq-text,#111827); }
    .menu-item .branch-actions button.menu-delete:hover,
    .staff-item .branch-actions button.staff-delete:hover,
    .shift-item .branch-actions button.shift-delete:hover {
      background: #dc2626; }

.menu-edit-form .menu-cancel,
.staff-edit-form .staff-cancel,
.combo-edit-form .combo-cancel,
.promo-edit-form .promo-cancel,
.staff-login-form .staff-login-cancel,
.ingredient-cancel,
.supplier-cancel,
.stock-form-cancel {
  border: 1px solid var(--nq-border,#e5e7eb);
  background: var(--nq-surface,#fff);
  color: var(--nq-text-2,#374151);
  font-family: Regular;
  font-size: .85rem;
  border-radius: .5rem;
  padding: .55rem 1.2rem;
  transition: all .3s; }
  .menu-edit-form .menu-cancel:hover,
  .staff-edit-form .staff-cancel:hover,
  .combo-edit-form .combo-cancel:hover,
  .promo-edit-form .promo-cancel:hover,
  .staff-login-form .staff-login-cancel:hover,
  .ingredient-cancel:hover,
  .supplier-cancel:hover,
  .stock-form-cancel:hover {
    background: var(--nq-subtle,#f3f4f6);
    color: var(--nq-text,#111827); }

.combo-items-picker {
  max-height: 160px;
  overflow-y: auto;
  border: 1px solid var(--nq-border,#e5e7eb);
  border-radius: .5rem;
  padding: .6rem .75rem;
  background: var(--nq-surface,#fff); }

.combo-item-check {
  display: block;
  font-family: Regular;
  font-size: .85rem;
  color: var(--nq-text,#111827);
  padding: .25rem 0;
  cursor: pointer; }
  .combo-item-check input {
    margin-right: .4rem; }

.menu-add-form,
.menu-edit-form,
.staff-add-form,
.staff-edit-form {
  background: var(--nq-bg,#f9fafb);
  border-radius: .75rem;
  padding: 1rem; }
  .menu-add-form .form-label-sm,
  .menu-edit-form .form-label-sm,
  .staff-add-form .form-label-sm,
  .staff-edit-form .form-label-sm {
    font-family: Regular;
    font-size: .8rem;
    color: var(--nq-muted,#6b7280);
    margin-bottom: .3rem;
    display: block; }
  .menu-add-form input[type="file"],
  .menu-edit-form input[type="file"],
  .staff-add-form input[type="file"],
  .staff-edit-form input[type="file"] {
    font-family: Regular;
    font-size: .85rem; }

.menu-edit-form,
.staff-edit-form {
  margin-top: .65rem;
  width: 100%; }

.menu-lang-group {
  margin-bottom: .75rem; }

.lang-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem; }
  .lang-row:last-of-type {
    margin-bottom: 0; }
  .lang-row input {
    flex: 1;
    min-width: 0; }

.lang-badge {
  display: inline-block;
  flex-shrink: 0;
  width: 2.2rem;
  text-align: center;
  font-family: Bold;
  font-size: .7rem;
  color: #FFFFFF;
  background: #7ccdcb;
  border-radius: .35rem;
  padding: .3rem 0;
  margin-right: .4rem; }

.menu-info p.menu-category-tag {
  display: inline-block;
  font-family: DemiBold;
  font-size: .75rem;
  color: #15803d;
  background: rgba(20, 128, 110, 0.15);
  border-radius: .35rem;
  padding: .15rem .5rem;
  margin: 0 .3rem .5rem 0; }

.menu-info p.menu-department-tag {
  display: inline-block;
  font-family: DemiBold;
  font-size: .75rem;
  color: #7a5b00;
  background: rgba(230, 178, 0, 0.15);
  border-radius: .35rem;
  padding: .15rem .5rem;
  margin: 0 .3rem .5rem 0; }

.menu-info p.menu-nocomplimentary-tag {
  display: inline-block;
  font-family: DemiBold;
  font-size: .75rem;
  color: #8a2f2f;
  background: rgba(200, 60, 60, 0.12);
  border-radius: .35rem;
  padding: .15rem .5rem;
  margin: 0 0 .5rem; }

.lang-hint {
  font-family: Regular;
  font-size: .75rem;
  color: var(--nq-muted,#6b7280);
  margin: .25rem 0 0; }

.menu-title .lang-badge {
  margin-right: .5rem;
  vertical-align: middle; }

@media (max-width: 767.98px) {
  .lang-row {
    flex-wrap: wrap; }
  .lang-row input {
    flex-basis: 100%; }
  .menu-item,
  .staff-item,
  .shift-item {
    flex-wrap: wrap; }
  .menu-info,
  .staff-info,
  .shift-info {
    min-width: 60%; }
}

.panel-card .form-control {
  border-radius: .5rem;
  font-family: Regular; }
  .panel-card .form-control:focus {
    border-color: #7ccdcb;
    box-shadow: 0 0 0 0.2rem rgba(20, 128, 110, 0.3); }

.panel-card label,
.panel-card p.form-label-sm {
  font-family: Regular;
  font-size: .875rem;
  margin-bottom: .4rem;
  display: block; }

.panel-card button[type="submit"] {
  background-color: #14806e;
  color: #FFFFFF;
  border: none;
  font-family: Bold;
  font-size: .95rem;
  padding: .55rem 1.5rem;
  border-radius: .5rem;
  transition: all .3s; }
  .panel-card button[type="submit"]:hover {
    opacity: .85; }

.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  max-width: calc(100vw - 3rem); }

.toast {
  pointer-events: auto;
  cursor: pointer;
  background: var(--nq-surface,#fff);
  color: var(--nq-text,#111827);
  font-family: Regular;
  font-size: .875rem;
  line-height: 1.4;
  padding: .8rem 1.1rem;
  border-radius: .6rem;
  border-left: 3px solid #6B7679;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
  max-width: 340px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease; }
  .toast.show {
    opacity: 1;
    transform: translateY(0); }
  .toast.hide {
    opacity: 0;
    transform: translateY(6px); }
  .toast.success {
    border-left-color: #0f6b5c; }
  .toast.error {
    border-left-color: #14806e; }

@media (max-width: 767.98px) {
  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem; }
  .toast {
    max-width: none; }
}

@media (max-width: 767.98px) {
  .panel-header .container {
    flex-direction: column;
    gap: .75rem; }
  .branch-header {
    flex-direction: column;
    align-items: flex-start; }
  .branch-overflow {
    align-self: flex-end; }
}

/* ---------------------------------------------------------------- */
/* Карта лояльности (Apple Wallet)                                   */
/* ---------------------------------------------------------------- */

.loyalty-card .loyalty-note {
  font-family: Regular;
  font-size: .85rem;
  color: var(--nq-muted,#6b7280);
  background: rgba(20, 128, 110, 0.15);
  border-radius: .5rem;
  padding: .6rem 1rem;
  margin-bottom: 1.25rem; }

.loyalty-logo-preview {
  display: block;
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  border-radius: .5rem;
  border: 1px solid var(--nq-border,#e5e7eb);
  margin-bottom: .5rem; }

.loyalty-color-input {
  width: 4.5rem;
  height: 2.4rem;
  padding: .2rem;
  cursor: pointer; }

.loyalty-card-preview {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: .75rem;
  padding: 1rem 1.25rem;
  border-radius: .9rem;
  border: 1px solid transparent;
  max-width: 320px;
  transition: background-color .2s; }

.loyalty-preview-logo {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  border-radius: .35rem;
  flex-shrink: 0; }

.loyalty-preview-title {
  font-family: Bold;
  font-size: 1rem;
  transition: color .2s; }
  .loyalty-preview-title.is-placeholder {
    font-family: Regular;
    font-style: italic;
    opacity: .7; }

.loyalty-summary-title {
  font-family: DemiBold;
  font-size: 1.1rem;
  color: var(--nq-text, #000000);
  margin: 0 0 .25rem; }

.loyalty-summary-meta {
  font-family: Regular;
  color: var(--nq-muted,#6b7280);
  font-size: .9rem;
  margin: 0 0 1rem; }

/* «Loyalty Only» switch under the card summary (owner 2026-10-26) */
.loyalty-only {
  margin-top: 1.1rem;
  padding: .9rem 1rem;
  border: 1px solid var(--nq-border,#e5e7eb);
  border-radius: .6rem;
  background: var(--nq-surface-2,#f9fafb); }
  .loyalty-only .form-check-label {
    font-family: DemiBold; }
  .loyalty-only-hint {
    margin: .35rem 0 0 1.6rem;
    font-size: .85rem;
    color: var(--nq-muted,#6b7280); }
  .loyalty-only-open {
    display: inline-block;
    margin: .6rem 0 0 1.6rem;
    font-family: DemiBold;
    font-size: .9rem;
    color: var(--nq-primary,#0f6b5c);
    text-decoration: none; }
  .loyalty-only-open[hidden] {
    display: none; }

.loyalty-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap; }

.loyalty-download,
.loyalty-download-google {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: DemiBold;
  font-size: .9rem;
  text-decoration: none;
  padding: .6rem 1.25rem;
  border-radius: .6rem;
  transition: all .3s; }
  .loyalty-download svg,
  .loyalty-download-google svg {
    flex-shrink: 0;
    display: block; }

.loyalty-download {
  background-color: #000000;
  color: #FFFFFF; }
  .loyalty-download:hover {
    opacity: .8;
    color: #FFFFFF; }

.loyalty-download-google {
  background-color: var(--nq-surface,#fff);
  color: #3c4043;
  border: 1px solid #dadce0; }
  .loyalty-download-google:hover {
    background-color: #f8f9fa;
    color: #3c4043;
    border-color: var(--nq-border-strong,#d1d5db); }

#loyaltyEditBtn,
#loyaltyCancelBtn {
  border: 1px solid var(--nq-border,#e5e7eb);
  background: var(--nq-surface,#fff);
  color: var(--nq-text-2,#374151);
  font-family: Regular;
  font-size: .85rem;
  border-radius: .5rem;
  padding: .55rem 1rem;
  transition: all .3s; }
  #loyaltyEditBtn:hover,
  #loyaltyCancelBtn:hover {
    background: var(--nq-subtle,#f3f4f6);
    color: var(--nq-text,#111827); }

.loyalty-campaign {
  border-top: 1px solid var(--nq-border,#e5e7eb);
  margin-top: 1.25rem;
  padding-top: 1.25rem; }
  .loyalty-campaign h3 {
    font-family: DemiBold;
    font-size: .95rem;
    color: var(--nq-text,#111827);
    margin: 0 0 .3rem; }
  .loyalty-campaign .lang-hint {
    margin-bottom: .75rem; }
  .loyalty-campaign-last {
    font-family: Regular;
    font-size: .8rem;
    color: var(--nq-muted,#6b7280);
    background: var(--nq-subtle,#f3f4f6);
    border-radius: .5rem;
    padding: .55rem .75rem;
    margin: 0 0 .75rem; }

#loyaltyCampaignForm textarea {
  resize: vertical;
  min-height: 3.5rem; }

.loyalty-campaign-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .5rem; }
  .loyalty-campaign-count {
    font-family: Regular;
    font-size: .75rem;
    color: var(--nq-faint,#9ca3af); }
  .loyalty-campaign-foot button {
    border: none;
    background: #14806e;
    color: #FFFFFF;
    font-family: Bold;
    font-size: .85rem;
    border-radius: .5rem;
    padding: .55rem 1.3rem;
    transition: all .3s; }
    .loyalty-campaign-foot button:hover {
      opacity: .85; }

.loyalty-type-select {
  display: flex;
  gap: .75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap; }

.loyalty-type-option {
  display: flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid var(--nq-border,#e5e7eb);
  border-radius: .6rem;
  padding: .6rem 1rem;
  cursor: pointer;
  font-family: Regular;
  font-size: .9rem;
  transition: all .3s; }
  .loyalty-type-option:has(input:checked) {
    border-color: #7ccdcb;
    background: rgba(20, 128, 110, 0.12); }
  .loyalty-type-option input {
    margin: 0; }

.loyalty-fields {
  background: var(--nq-bg,#f9fafb);
  border-radius: .75rem;
  padding: 1rem;
  margin-bottom: 1rem; }

/* ---------------------------------------------------------------- */
/* Свой субдомен                                                     */
/* ---------------------------------------------------------------- */

.subdomain-card .subdomain-lead {
  font-family: Regular;
  font-size: .85rem;
  color: var(--nq-muted,#6b7280);
  background: rgba(20, 128, 110, 0.15);
  border-radius: .5rem;
  padding: .6rem 1rem;
  margin-bottom: 1.25rem; }

.subdomain-input-group {
  display: flex;
  align-items: center;
  gap: .5rem; }
  .subdomain-input-group input {
    flex: 1; }
  .subdomain-input-group .subdomain-suffix {
    font-family: Regular;
    color: var(--nq-muted,#6b7280);
    font-size: .9rem;
    white-space: nowrap; }

.subdomain-status-name {
  font-family: DemiBold;
  font-size: 1.1rem;
  color: var(--nq-text, #000000);
  margin: 0 0 .5rem; }

.subdomain-status-badge {
  display: inline-block;
  font-family: DemiBold;
  font-size: .8rem;
  border-radius: .5rem;
  padding: .3rem .7rem;
  margin: 0 0 .5rem; }

.subdomain-badge-pending {
  background: rgba(20, 128, 110, 0.12);
  color: #14806e; }

.subdomain-badge-live {
  background: rgba(20, 128, 110, 0.2);
  color: #15803d; }

.subdomain-status-note {
  font-family: Regular;
  font-size: .85rem;
  color: var(--nq-muted,#6b7280);
  margin: 0; }

.subdomain-visit-link {
  display: block;
  font-family: Regular;
  font-size: .9rem;
  color: #0f6b5c;
  text-decoration: none; }
  .subdomain-visit-link:hover {
    text-decoration: underline; }

.subdomain-style-form {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--nq-border,#e5e7eb); }

.subdomain-style-select {
  display: flex;
  flex-wrap: nowrap;
  gap: 30px;
  margin: .5rem 0 1rem;
  overflow-x: auto; }

.subdomain-style-option {
  position: relative;
  flex: 1 1 0;
  display: block;
  height: 100px;
  padding: .15rem;
  border: 2px solid var(--nq-border,#e5e7eb);
  border-radius: .5rem;
  cursor: pointer;
  transition: all .3s; }
  .subdomain-style-option img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: .3rem;
    object-fit: cover; }
  .subdomain-style-option:has(input:checked) {
    border-color: #7ccdcb; }
  .subdomain-style-option:hover {
    border-color: #c9d3d3; }
  .subdomain-style-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none; }

/* ---------------------------------------------------------------- */
/* Категории меню                                                     */
/* ---------------------------------------------------------------- */

.category-list .category-item {
  border: 1px solid var(--nq-border,#e5e7eb);
  border-radius: .75rem;
  padding: .85rem 1.1rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap; }
  .category-list .category-item:last-child {
    margin-bottom: 0; }
  .category-list .category-item .category-item-names {
    font-family: Regular;
    font-size: .9rem;
    line-height: 1.6; }
    .category-list .category-item .category-item-names .lang-badge {
      margin-bottom: .35rem; }
  .category-list .category-item .branch-actions {
    display: flex;
    gap: .5rem; }
    .category-list .category-item .branch-actions button {
      border: 1px solid var(--nq-border,#e5e7eb);
      background: var(--nq-surface,#fff);
      color: var(--nq-text-2,#374151);
      font-family: Regular;
      font-size: .8rem;
      border-radius: .5rem;
      padding: .45rem .9rem;
      transition: all .3s; }
      .category-list .category-item .branch-actions button:hover {
        background: var(--nq-subtle,#f3f4f6);
        color: var(--nq-text,#111827); }
      .category-list .category-item .branch-actions button.category-delete:hover {
        background: #dc2626; }

.review-list .review-item {
  border: 1px solid var(--nq-border,#e5e7eb);
  border-radius: .75rem;
  padding: .85rem 1.1rem;
  margin-bottom: 1.25rem; }
  .review-list .review-item:last-child {
    margin-bottom: 0; }
  .review-list .review-item .review-item-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .75rem;
    margin-bottom: .35rem;
    flex-wrap: wrap; }
  .review-list .review-item .review-item-name {
    font-family: Bold;
    font-size: .9rem; }
  .review-list .review-item .review-item-date {
    font-family: Regular;
    font-size: .78rem;
    color: var(--nq-muted,#6b7280);
    white-space: nowrap; }
  .review-list .review-item .review-item-text {
    font-family: Regular;
    font-size: .88rem;
    line-height: 1.55;
    color: var(--nq-text,#111827);
    margin: 0 0 .6rem; }
  .review-list .review-item .review-delete {
    border: 1px solid var(--nq-border,#e5e7eb);
    background: var(--nq-surface,#fff);
    color: var(--nq-text-2,#374151);
    font-family: Regular;
    font-size: .8rem;
    border-radius: .5rem;
    padding: .45rem .9rem;
    transition: all .3s; }
    .review-list .review-item .review-delete:hover {
      background: #dc2626;
      color: var(--nq-text,#111827); }

.branch-kitchen-link,
.branch-hall-link {
  display: inline-flex;
  align-items: center;
  background-color: #14806e;
  color: #FFFFFF;
  border: none;
  font-family: DemiBold;
  font-size: .85rem;
  cursor: pointer;
  padding: .5rem 1rem;
  border-radius: .5rem;
  margin: .75rem .5rem 1.25rem 0;
  transition: all .3s; }
  .branch-kitchen-link:hover,
  .branch-hall-link:hover {
    background-color: #0f6b5c;
    color: #FFFFFF; }

.panel-card button[type="submit"]:disabled {
  background-color: #cfd3d4;
  cursor: default; }
  .panel-card button[type="submit"]:disabled:hover {
    opacity: 1; }

.new-order-add-btn {
  background-color: #14806e;
  color: #FFFFFF;
  border: none;
  font-family: DemiBold;
  font-size: .85rem;
  cursor: pointer;
  padding: .45rem 1.1rem;
  border-radius: .5rem;
  transition: all .3s; }
  .new-order-add-btn:hover {
    background-color: #0f6b5c; }

.new-order-cart {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem; }

.new-order-cart-line {
  display: flex;
  align-items: center;
  gap: .75rem;
  border: 1px solid var(--nq-border,#e5e7eb);
  border-radius: .6rem;
  padding: .5rem .75rem; }

.new-order-cart-title {
  flex: 1;
  font-family: Regular;
  font-size: .875rem;
  color: var(--nq-text,#111827); }

.new-order-cart-qty {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: DemiBold;
  font-size: .85rem; }
  .new-order-cart-qty button {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: .4rem;
    border: 1px solid var(--nq-border,#e5e7eb);
    background: var(--nq-subtle,#f3f4f6);
    cursor: pointer;
    line-height: 1;
    transition: all .2s; }
    .new-order-cart-qty button:hover {
      background: #7ccdcb;
      color: #FFFFFF; }

.new-order-cart-price {
  font-family: DemiBold;
  font-size: .85rem;
  color: var(--nq-text,#111827);
  min-width: 4.5rem;
  text-align: right; }

.new-order-cart-remove {
  border: none;
  background: none;
  color: var(--nq-muted,#6b7280);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: .2rem .4rem;
  transition: color .2s; }
  .new-order-cart-remove:hover {
    color: #dc2626; }

.new-order-table-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .5rem; }

.new-order-table-chip {
  display: inline-flex;
  align-items: center;
  background: var(--nq-subtle,#f3f4f6);
  border-radius: .5rem;
  overflow: hidden; }
  .new-order-table-chip button {
    border: none;
    background: none;
    font-family: Regular;
    font-size: .8rem;
    padding: .35rem .6rem;
    cursor: pointer;
    transition: all .2s; }
  .new-order-table-chip button:first-child:hover {
    background: #0f6b5c;
    color: #FFFFFF; }
  .new-order-table-chip-remove {
    color: var(--nq-muted,#6b7280);
    padding-left: 0 !important; }
    .new-order-table-chip-remove:hover {
      color: #dc2626; }
  .new-order-table-qr {
    display: inline-flex;
    align-items: center;
    font-size: .85rem;
    padding: .35rem .5rem;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s; }
    .new-order-table-qr:hover {
      background: #0f6b5c; }

.new-order-table-add-row {
  display: flex;
  gap: .4rem;
  margin-bottom: 1rem;
  max-width: 320px; }
  .new-order-table-add-row input {
    flex: 1;
    font-family: Regular;
    font-size: .8rem;
    padding: .4rem .6rem;
    border: 1px solid var(--nq-border,#e5e7eb);
    border-radius: .45rem; }
  .new-order-table-add-btn {
    border: none;
    background: #14806e;
    color: #FFFFFF;
    font-family: DemiBold;
    font-size: .8rem;
    border-radius: .45rem;
    padding: .4rem .9rem;
    cursor: pointer;
    transition: all .2s; }
    .new-order-table-add-btn:hover {
      background: #0f6b5c; }

.new-order-total {
  font-family: Bold;
  font-size: 1rem;
  color: var(--nq-text,#111827);
  margin: .75rem 0; }

.order-items .order-item {
  border: 1px solid var(--nq-border,#e5e7eb);
  border-radius: .75rem;
  margin-bottom: 1rem;
  overflow: hidden; }
  .order-items .order-item:last-child {
    margin-bottom: 0; }
  .order-items .order-item .order-item-header {
    display: flex;
    align-items: center;
    gap: .9rem;
    width: 100%;
    border: none;
    background: var(--nq-surface,#fff);
    padding: .85rem 1.1rem;
    cursor: pointer;
    text-align: left;
    flex-wrap: wrap; }
    .order-items .order-item .order-item-header:hover {
      background: var(--nq-bg,#f9fafb); }
  .order-items .order-item .order-item-branch {
    font-family: Bold;
    font-size: .85rem; }
  .order-items .order-item .order-item-customer {
    font-family: Regular;
    font-size: .85rem;
    color: var(--nq-text,#111827); }
  .order-items .order-item .order-item-date {
    font-family: Regular;
    font-size: .78rem;
    color: var(--nq-muted,#6b7280);
    white-space: nowrap; }
  .order-items .order-item .order-item-total-mini {
    font-family: Bold;
    font-size: .85rem;
    color: #14806e;
    margin-left: auto; }
  .order-items .order-item .order-item-status-badge {
    font-family: Regular;
    font-size: .72rem;
    font-weight: 700;
    padding: .25rem .6rem;
    border-radius: 999px;
    white-space: nowrap;
    background: var(--nq-border,#e5e7eb);
    color: var(--nq-text,#111827); }
    .order-items .order-item .order-item-status-badge.order-status-new {
      background: #E0F2FE;
      color: #075985; }
    .order-items .order-item .order-item-status-badge.order-status-preparing {
      background: #FEF3C7;
      color: #92400E; }
    .order-items .order-item .order-item-status-badge.order-status-done {
      background: #DCFCE7;
      color: #166534; }
  .order-items .order-item .order-item-payment-badge {
    font-family: Regular;
    font-size: .72rem;
    font-weight: 700;
    padding: .25rem .6rem;
    border-radius: 999px;
    white-space: nowrap; }
    .order-items .order-item .order-item-payment-badge.is-paid {
      background: #DCFCE7;
      color: #166534; }
    .order-items .order-item .order-item-payment-badge.is-unpaid {
      background: #e8f5f3;
      color: #c2410c; }
  .order-items .order-item .order-item-type-badge {
    font-family: Regular;
    font-size: .72rem;
    font-weight: 700;
    padding: .25rem .6rem;
    border-radius: 999px;
    white-space: nowrap; }
    .order-items .order-item .order-item-type-badge.is-pickup {
      background: #E0F2FE;
      color: #075985; }
    .order-items .order-item .order-item-type-badge.is-delivery {
      background: #FEF3C7;
      color: #92400E; }
    .order-items .order-item .order-item-type-badge.is-play {
      background: #F3E8FF;
      color: #6B21A8; }
  .order-items .order-item .order-item-address {
    font-family: Regular;
    font-size: .85rem;
    color: var(--nq-text,#111827);
    background: #FEF3C7;
    border-radius: .5rem;
    padding: .6rem .8rem;
    margin-bottom: .75rem; }
  .order-items .order-item .order-item-chevron {
    flex-shrink: 0;
    color: var(--nq-muted,#6b7280);
    transition: transform .2s; }
  .order-items .order-item.open .order-item-chevron {
    transform: rotate(180deg); }
  .order-items .order-item .order-item-body {
    display: none;
    padding: 0 1.1rem 1rem; }
  .order-items .order-item.open .order-item-body {
    display: block; }
  .order-items .order-item .order-item-list {
    list-style: none;
    margin: 0 0 .5rem;
    padding: 0;
    font-family: Regular;
    font-size: .85rem;
    color: var(--nq-text,#111827);
    line-height: 1.6; }
  .order-items .order-item .order-item-total {
    font-family: Bold;
    font-size: .88rem;
    color: #14806e;
    margin-bottom: .6rem; }
  .order-items .order-item .order-payment-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: .6rem; }
  .order-items .order-item .order-payment-btn {
    border: 1px solid var(--nq-border,#e5e7eb);
    background: var(--nq-surface,#fff);
    color: var(--nq-text,#111827);
    font-family: Regular;
    font-size: .8rem;
    border-radius: .5rem;
    padding: .4rem .85rem;
    transition: all .3s; }
    .order-items .order-item .order-payment-btn:hover {
      background: #0f6b5c;
      border-color: #0f6b5c;
      color: #FFFFFF; }
    .order-items .order-item .order-payment-btn.order-payment-undo:hover {
      background: #dc2626;
      border-color: #dc2626; }
  .order-items .order-item .order-item-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap; }
  .order-items .order-item .order-status-btn {
    border: none;
    background: #0f6b5c;
    color: #FFFFFF;
    font-family: Regular;
    font-size: .8rem;
    border-radius: .5rem;
    padding: .45rem .9rem;
    transition: all .3s; }
    .order-items .order-item .order-status-btn:hover {
      background: #0F6154; }
  .order-items .order-item .order-print-btn,
  .order-items .order-item .order-delete {
    border: 1px solid var(--nq-border,#e5e7eb);
    background: var(--nq-surface,#fff);
    color: var(--nq-text-2,#374151);
    font-family: Regular;
    font-size: .8rem;
    border-radius: .5rem;
    padding: .45rem .9rem;
    transition: all .3s; }
    .order-items .order-item .order-print-btn:hover {
      background: var(--nq-subtle,#f3f4f6);
      color: var(--nq-text,#111827); }
    .order-items .order-item .order-delete:hover {
      background: #dc2626;
      border-color: #dc2626;
      color: #FFFFFF; }

.po-new-btn {
  border: 1px solid var(--nq-border,#e5e7eb);
  background: var(--nq-subtle,#f3f4f6);
  color: var(--nq-text,#111827);
  font-family: Regular;
  font-size: .8rem;
  border-radius: .45rem;
  padding: .45rem .9rem;
  cursor: pointer;
  margin-bottom: .85rem; }
  .po-new-btn:hover {
    background: var(--nq-border,#e5e7eb); }

.po-items .po-item {
  border: 1px solid var(--nq-border,#e5e7eb);
  border-radius: .75rem;
  margin-bottom: 1rem;
  overflow: hidden; }
  .po-items .po-item:last-child {
    margin-bottom: 0; }
  .po-items .po-item .po-item-header {
    display: flex;
    align-items: center;
    gap: .9rem;
    width: 100%;
    border: none;
    background: var(--nq-surface,#fff);
    padding: .85rem 1.1rem;
    cursor: pointer;
    text-align: left;
    flex-wrap: wrap; }
    .po-items .po-item .po-item-header:hover {
      background: var(--nq-bg,#f9fafb); }
  .po-items .po-item .po-item-supplier {
    font-family: Bold;
    font-size: .85rem; }
  .po-items .po-item .po-item-date {
    font-family: Regular;
    font-size: .78rem;
    color: var(--nq-muted,#6b7280);
    white-space: nowrap; }
  .po-items .po-item .po-item-total-mini {
    font-family: Bold;
    font-size: .85rem;
    color: #14806e;
    margin-left: auto; }
  .po-items .po-item .po-item-status-badge {
    font-family: Regular;
    font-size: .72rem;
    font-weight: 700;
    padding: .25rem .6rem;
    border-radius: 999px;
    white-space: nowrap;
    background: var(--nq-border,#e5e7eb);
    color: var(--nq-text,#111827); }
    .po-items .po-item .po-item-status-badge.po-status-draft {
      background: var(--nq-border,#e5e7eb);
      color: var(--nq-text,#111827); }
    .po-items .po-item .po-item-status-badge.po-status-sent {
      background: #E0F2FE;
      color: #075985; }
    .po-items .po-item .po-item-status-badge.po-status-received {
      background: #DCFCE7;
      color: #166534; }
    .po-items .po-item .po-item-status-badge.po-status-cancelled {
      background: #e8f5f3;
      color: #c2410c; }
  .po-items .po-item .po-item-chevron {
    flex-shrink: 0;
    color: var(--nq-muted,#6b7280);
    transition: transform .2s; }
  .po-items .po-item.open .po-item-chevron {
    transform: rotate(180deg); }
  .po-items .po-item .po-item-body {
    display: none;
    padding: 0 1.1rem 1rem; }
  .po-items .po-item.open .po-item-body {
    display: block; }
  .po-items .po-item .po-item-list {
    list-style: none;
    margin: 0 0 .5rem;
    padding: 0;
    font-family: Regular;
    font-size: .85rem;
    color: var(--nq-text,#111827);
    line-height: 1.6; }
  .po-items .po-item .po-item-total {
    font-family: Bold;
    font-size: .88rem;
    color: #14806e;
    margin-bottom: .4rem; }
  .po-items .po-item .po-item-note {
    font-family: Regular;
    font-size: .82rem;
    color: var(--nq-muted,#6b7280);
    margin-bottom: .6rem; }
  .po-items .po-item .po-item-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap; }
  .po-items .po-item .po-action-btn {
    border: none;
    background: #0f6b5c;
    color: #FFFFFF;
    font-family: Regular;
    font-size: .8rem;
    border-radius: .5rem;
    padding: .45rem .9rem;
    transition: all .3s; }
    .po-items .po-item .po-action-btn:hover {
      background: #0F6154; }
    .po-items .po-item .po-action-btn.is-danger {
      background: var(--nq-surface,#fff);
      color: var(--nq-text-2,#374151);
  border: 1px solid var(--nq-border,#e5e7eb);}
      .po-items .po-item .po-action-btn.is-danger:hover {
        background: #dc2626;
        color: var(--nq-text,#111827); }

.po-form .po-form-supplier,
.po-form .po-form-note {
  display: block;
  width: 100%;
  margin-bottom: .6rem; }
.po-form .po-form-note {
  min-height: 3.5rem;
  resize: vertical; }

.po-receive-line {
  align-items: center; }
  .po-receive-line-name {
    flex: 2;
    font-family: Regular;
    font-size: .85rem; }

.po-receive-hint {
  font-size: .8rem;
  color: var(--nq-muted,#6b7280);
  margin: 0 0 .75rem; }

.category-edit-form .category-cancel {
  border: 1px solid var(--nq-border,#e5e7eb);
  background: var(--nq-surface,#fff);
  color: var(--nq-text-2,#374151);
  font-family: Regular;
  font-size: .85rem;
  border-radius: .5rem;
  padding: .55rem 1.2rem;
  transition: all .3s; }
  .category-edit-form .category-cancel:hover {
    background: var(--nq-subtle,#f3f4f6);
    color: var(--nq-text,#111827); }

/* ---------------------------------------------------------------- */
/* Гости / CRM                                                       */
/* ---------------------------------------------------------------- */

.guests-back-link {
  display: inline-block;
  margin-bottom: .75rem;
  font-family: Regular;
  font-size: .85rem;
  color: #7ccdcb;
  text-decoration: none; }
  .guests-back-link:hover {
    color: #14806e; }

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

.guests-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Regular;
  font-size: .875rem; }
  .guests-table th {
    text-align: center;
    font-family: DemiBold;
    color: var(--nq-muted,#6b7280);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .02em;
    padding: .6rem .6rem;
    border-bottom: 2px solid var(--nq-border,#e5e7eb);
    white-space: nowrap; }
  .guests-table td {
    padding: .65rem .6rem;
    border-bottom: 1px solid var(--nq-subtle,#f3f4f6);
    color: var(--nq-text, #000000);
    text-align: center;
    white-space: nowrap; }
  .guests-table tr:last-child td {
    border-bottom: none; }

.guest-cell-name-main {
  font-family: DemiBold; }

.guest-debt-pay {
  display: block;
  margin-top: 6px;
  border: 1px solid #14806E;
  background: #E8F5F3;
  color: #14806E;
  border-radius: 8px;
  padding: 3px 10px;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer; }
  .guest-debt-pay:hover {
    background: #14806E;
    color: #fff; }

.guest-cell-birthday {
  font-size: .78rem;
  color: var(--nq-muted,#6b7280);
  margin-top: .1rem; }
  .guest-cell-birthday.d-none {
    display: none; }

.guest-pass-link {
  margin: .75rem 0 0; }

.guests-table td.guests-wallet-cell {
  white-space: normal; }

.wallet-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem; }

.wallet-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .85rem;
  border-radius: .6rem;
  font-family: DemiBold;
  font-size: .78rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all .3s; }
  .wallet-btn svg {
    flex-shrink: 0;
    display: block; }

.wallet-btn-apple {
  background-color: #000000;
  color: #FFFFFF; }
  .wallet-btn-apple:hover {
    opacity: .8;
    color: #FFFFFF; }

.wallet-btn-google {
  background-color: var(--nq-surface,#fff);
  color: #3c4043;
  border: 1px solid #dadce0; }
  .wallet-btn-google:hover {
    background-color: #f8f9fa;
    color: #3c4043;
    border-color: var(--nq-border-strong,#d1d5db); }

.guests-export-btn {
  display: inline-flex;
  align-items: center;
  background-color: var(--nq-surface,#fff);
  color: var(--nq-text-2,#374151);
  font-family: DemiBold;
  font-size: .85rem;
  text-decoration: none;
  padding: .5rem 1rem;
  border-radius: .5rem;
  margin-bottom: 1rem;
  transition: all .3s; }
  .guests-export-btn:hover {
    background-color: var(--nq-subtle,#f3f4f6);
    color: var(--nq-text,#111827); }

.guests-segment-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1.1rem; }
  .guests-segment-filter-btn {
    border: 1px solid var(--nq-border,#e5e7eb);
    background: var(--nq-surface,#fff);
    color: var(--nq-text-2,#374151);
    font-family: DemiBold;
    font-size: .8rem;
    padding: .45rem .9rem;
    border-radius: 100px;
    transition: all .2s; }
    .guests-segment-filter-btn:hover {
      background: var(--nq-subtle,#f3f4f6); }
    .guests-segment-filter-btn.active {
      background: #0f6b5c;
      border-color: #0f6b5c;
      color: #FFFFFF; }

.guest-segment-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .3rem; }

.guests-table td.guests-actions-cell {
  white-space: normal; }

.guest-row-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: .4rem; }

.guest-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--nq-border,#e5e7eb);
  background: var(--nq-surface,#fff);
  color: var(--nq-text-2,#374151);
  border-radius: .5rem;
  padding: 0;
  transition: all .3s; }
  .guest-action-btn svg {
    display: block; }
  .guest-action-btn:hover {
    background: var(--nq-subtle,#f3f4f6);
    color: var(--nq-text,#111827); }
  .guest-action-btn.guest-delete-btn:hover {
    background: #dc2626; }

.guest-history-row td,
.guest-edit-row td {
  background: var(--nq-bg,#f9fafb);
  white-space: normal;
  padding: 1rem .75rem; }

.guest-history-empty {
  font-family: Regular;
  color: var(--nq-muted,#6b7280);
  font-size: .85rem;
  margin: 0; }

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

.guest-history-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Regular;
  font-size: .82rem; }
  .guest-history-table th {
    text-align: left;
    font-family: DemiBold;
    color: var(--nq-muted,#6b7280);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .02em;
    padding: .4rem .6rem;
    border-bottom: 1px solid var(--nq-border,#e5e7eb);
    white-space: nowrap; }
  .guest-history-table td {
    padding: .4rem .6rem;
    border-bottom: 1px solid var(--nq-border,#e5e7eb);
    color: var(--nq-text, #000000); }
  .guest-history-table tr:last-child td {
    border-bottom: none; }

.guest-edit-form .guest-edit-actions {
  display: flex;
  gap: .5rem;
  margin-top: .75rem; }
  .guest-edit-form button[type="submit"] {
    background-color: #7ccdcb;
    color: #FFFFFF;
    border: none;
    font-family: DemiBold;
    font-size: .85rem;
    padding: .5rem 1.1rem;
    border-radius: .5rem;
    transition: all .3s; }
    .guest-edit-form button[type="submit"]:hover {
      opacity: .85; }
  .guest-edit-form .guest-edit-cancel {
    border: 1px solid var(--nq-border,#e5e7eb);
    background: var(--nq-surface,#fff);
    color: var(--nq-text-2,#374151);
    font-family: Regular;
    font-size: .85rem;
    padding: .5rem 1.1rem;
    border-radius: .5rem;
    transition: all .3s; }
    .guest-edit-form .guest-edit-cancel:hover {
      background: #dc2626;
      color: var(--nq-text,#111827); }

/* ---------------------------------------------------------------- */
/* Кроппер фото товара                                                */
/* ---------------------------------------------------------------- */

.photo-crop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 33, 31, .65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem; }

.photo-crop-modal {
  background: var(--nq-surface,#fff);
  border-radius: 1rem;
  padding: 1.25rem;
  width: 360px;
  max-width: 100%;
  text-align: center; }

.photo-crop-title {
  font-family: DemiBold;
  font-size: 1rem;
  margin: 0 0 .85rem;
  color: var(--nq-text,#111827); }

.photo-crop-viewport {
  width: min(320px, 78vw);
  height: min(320px, 78vw);
  margin: 0 auto;
  overflow: hidden;
  border-radius: .75rem;
  background: var(--nq-border,#e5e7eb);
  position: relative;
  cursor: grab;
  touch-action: none; }
  .photo-crop-viewport:active {
    cursor: grabbing; }

.photo-crop-image {
  position: absolute;
  top: 0;
  left: 0;
  user-select: none;
  pointer-events: none; }

.photo-crop-zoom {
  width: 100%;
  margin: .9rem 0 0; }

.photo-crop-actions {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: .9rem; }
  .photo-crop-actions .photo-crop-apply {
    border: none;
    background: #14806e;
    color: #FFFFFF;
    font-family: Bold;
    font-size: .85rem;
    border-radius: .5rem;
    padding: .6rem 1.4rem;
    transition: all .3s; }
    .photo-crop-actions .photo-crop-apply:hover {
      opacity: .85; }
  .photo-crop-actions .photo-crop-cancel {
    border: 1px solid var(--nq-border,#e5e7eb);
    background: var(--nq-surface,#fff);
    color: var(--nq-text-2,#374151);
    font-family: Regular;
    font-size: .85rem;
    border-radius: .5rem;
    padding: .6rem 1.4rem;
    transition: all .3s; }
    .photo-crop-actions .photo-crop-cancel:hover {
      background: var(--nq-subtle,#f3f4f6);
      color: var(--nq-text,#111827); }

/* ---------------------------------------------------------------- */
/* Обзор сети — KPI-карточки, статус-пилюли, сравнение точек          */
/* ---------------------------------------------------------------- */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: Bold;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .01em;
  padding: .3rem .6rem;
  border-radius: 100px;
  white-space: nowrap; }
  .status-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex: 0 0 auto; }
  .status-pill.ok {
    color: #0B4C41;
    background: #e8f5f3; }
    .status-pill.ok::before { background: #0f6b5c; }
  .status-pill.warn {
    color: #93650B;
    background: #FBF2DE; }
    .status-pill.warn::before { background: #C79A2E; }
  .status-pill.danger {
    color: #A8402C;
    background: #FAEAE6; }
    .status-pill.danger::before { background: #dc2626; }
  .status-pill.muted {
    color: var(--nq-muted,#6b7280);
    background: var(--nq-subtle,#f3f4f6); }
    .status-pill.muted::before { background: var(--nq-faint,#9ca3af); }
  .status-pill.accent {
    color: #c2410c;
    background: #FDECE2; }
    .status-pill.accent::before { background: #14806e; }

.overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem; }
  .overview-head h2 {
    margin: 0; }

.overview-controls {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap; }
  .overview-controls select {
    max-width: 220px; }

.period-toggle {
  display: inline-flex;
  border: 1px solid var(--nq-border,#e5e7eb);
  border-radius: .55rem;
  padding: .15rem; }
  .period-btn {
    border: none;
    background: none;
    font-family: DemiBold;
    font-size: .8rem;
    color: var(--nq-text-2,#374151);
    padding: .4rem .8rem;
    border-radius: .4rem;
    transition: all .2s; }
    .period-btn.active {
      background: #0f6b5c;
      color: #FFFFFF; }

.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem; }
  .kpi-row.small {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    margin-bottom: 0; }

.kpi-card {
  border: 1px solid var(--nq-border,#e5e7eb);
  border-radius: .85rem;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .3rem; }
  .kpi-card .kpi-value {
    font-family: Bold;
    font-size: 1.6rem;
    color: var(--nq-text,#111827); }
  .kpi-card .kpi-label {
    font-family: Regular;
    font-size: .8rem;
    color: var(--nq-muted,#6b7280); }

.overview-profit-hint {
  margin-top: 1rem;
  margin-bottom: 1.75rem; }

.overview-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-auto-flow: row;
  gap: 1.5rem; }
  @media (max-width: 900px) {
    .overview-grid {
      grid-template-columns: 1fr; }
  }

/* ---------------------------------------------------------------- */
/* Аналитика — SVG-графики трендов (без сторонних библиотек)          */
/* ---------------------------------------------------------------- */

.analytics-charts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem; }
  @media (max-width: 1200px) {
    .analytics-charts {
      grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 900px) {
    .analytics-charts {
      grid-template-columns: 1fr; }
  }

.analytics-chart-card h3 {
  font-family: DemiBold;
  font-size: 1rem;
  color: var(--nq-text,#111827);
  margin: 0 0 .85rem; }

.chart-wrap {
  position: relative; }

.trend-chart {
  display: block;
  width: 100%;
  height: auto; }

.trend-grid {
  stroke: var(--nq-border,#e5e7eb);
  stroke-width: 1; }

.trend-axis-label {
  font-family: Regular;
  font-size: 10px;
  fill: var(--nq-faint,#9ca3af); }

.trend-area {
  stroke: none;
  opacity: .1; }

.trend-line {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round; }

.trend-end-dot {
  stroke: #FFFFFF;
  stroke-width: 2; }

.trend-end-label {
  font-family: Bold;
  font-size: 12px; }

.trend-crosshair {
  stroke: var(--nq-faint,#9ca3af);
  stroke-width: 1; }

.trend-hit {
  fill: transparent;
  cursor: crosshair; }

.trend-tooltip {
  display: none;
  position: absolute;
  top: 4px;
  background: var(--nq-text,#111827);
  color: #FFFFFF;
  border-radius: .5rem;
  padding: .5rem .65rem;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
  .trend-tooltip.open {
    display: block; }
  .trend-tooltip-value {
    font-family: Bold;
    font-size: .85rem;
    color: #FFFFFF; }
  .trend-tooltip-date {
    font-family: Regular;
    font-size: .7rem;
    color: var(--nq-faint,#9ca3af);
    margin-top: .1rem; }

.overview-block h3 {
  font-family: DemiBold;
  font-size: 1rem;
  color: var(--nq-text,#111827);
  margin: 0 0 .85rem; }

.timesheet-heading {
  font-family: DemiBold;
  font-size: 1rem;
  color: var(--nq-text,#111827);
  margin: 1.5rem 0 .85rem; }

table.overview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem; }
  table.overview-table th {
    text-align: left;
    font-family: Bold;
    font-size: .7rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--nq-muted,#6b7280);
    padding: .5rem .6rem;
    border-bottom: 1px solid var(--nq-border,#e5e7eb); }
  table.overview-table td {
    padding: .6rem;
    border-bottom: 1px solid var(--nq-subtle,#f3f4f6);
    font-family: Regular;
    color: var(--nq-text,#111827); }
  table.overview-table tr:last-child td {
    border-bottom: none; }

.overview-top-items {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem; }
  .overview-top-items li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .55rem .7rem;
    border-radius: .6rem;
    background: var(--nq-subtle,#f3f4f6);
    font-size: .85rem; }
  .overview-top-items .item-name {
    font-family: DemiBold;
    color: var(--nq-text,#111827); }
  .overview-top-items .item-qty {
    font-family: Bold;
    color: #0f6b5c;
    white-space: nowrap; }

/* Header branch quick-switcher */
.header-branch-switch {
  position: relative; }
  .header-branch-switch-toggle {
    display: flex;
    align-items: center;
    gap: .4rem;
    border: 1px solid var(--nq-border,#e5e7eb);
    background: var(--nq-surface,#fff);
    border-radius: .55rem;
    padding: .45rem .75rem;
    font-family: DemiBold;
    font-size: .82rem;
    color: var(--nq-text,#111827);
    max-width: 200px; }
    .header-branch-switch-toggle span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap; }
  .header-branch-switch-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 220px;
    max-height: 320px;
    overflow-y: auto;
    background: var(--nq-surface,#fff);
    border: 1px solid var(--nq-border,#e5e7eb);
    border-radius: .65rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
    padding: .35rem;
    z-index: 30; }
    .header-branch-switch-menu.open {
      display: block; }
    /*
     * Specificity note: these links sit inside .panel-header .panel-user,
     * whose own `.panel-header .panel-user a` rule (orange pill-button
     * style for Guests/Sign Out) has higher specificity (2 classes + tag)
     * than a plain `.header-branch-switch-menu a` (1 class + tag) would —
     * it would silently win and paint every dropdown item like a button.
     * Qualifying with both ancestor classes here (3 classes + tag) is a
     * deliberate, unambiguous win over that rule regardless of source order.
     */
    .panel-header .panel-user .header-branch-switch-menu a {
      display: block;
      padding: .5rem .6rem;
      border-radius: .45rem;
      font-family: Regular;
      font-size: .82rem;
      color: var(--nq-text,#111827);
      border: none;
      text-decoration: none;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis; }
      .panel-header .panel-user .header-branch-switch-menu a:hover {
        background: var(--nq-subtle,#f3f4f6);
        color: var(--nq-text,#111827);
        text-decoration: none; }
      .panel-header .panel-user .header-branch-switch-menu a.active {
        color: #0f6b5c;
        font-family: DemiBold; }


/* ---- AI assistant chat (owner) ---- */
.agent-subtitle {
  margin: .35rem 0 0;
  font-size: .85rem;
  color: var(--nq-text-2,#374151); }

.agent-clear-btn {
  border: 1px solid var(--nq-border,#e5e7eb);
  background: var(--nq-surface,#fff); }
  .agent-clear-btn:hover {
    background: #f4f6f6; }

.agent-messages {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  min-height: 260px;
  max-height: 55vh;
  overflow-y: auto;
  padding: .25rem .1rem 1rem; }

.agent-msg {
  max-width: 82%;
  padding: .65rem .9rem;
  border-radius: .9rem;
  font-size: .92rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-wrap: break-word; }

.agent-msg-user {
  align-self: flex-end;
  background: #0f6b5c;
  color: #FFFFFF;
  border-bottom-right-radius: .3rem; }

.agent-msg-assistant {
  align-self: flex-start;
  background: #f1f5f4;
  color: var(--nq-text,#111827);
  border-bottom-left-radius: .3rem; }

.agent-msg-pending {
  color: var(--nq-text-2,#374151);
  font-style: italic; }

.agent-msg-error {
  background: #fdecea;
  color: #b3261e; }

.agent-examples {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .25rem 0 1rem; }

.agent-example {
  border: 1px solid var(--nq-border,#e5e7eb);
  background: var(--nq-surface,#fff);
  color: #0f6b5c;
  font-family: DemiBold;
  font-size: .82rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  transition: all .2s; }
  .agent-example:hover {
    background: #0f6b5c;
    color: #FFFFFF; }

.agent-form {
  display: flex;
  align-items: flex-end;
  gap: .6rem;
  margin-top: .5rem; }

.agent-input {
  flex: 1;
  resize: none;
  max-height: 140px;
  min-height: 42px; }

.agent-card .agent-send {
  flex: 0 0 auto;
  height: 42px;
  padding: 0 1.2rem; }

@media (max-width: 767.98px) {
  .agent-msg {
    max-width: 94%; }
  .agent-messages {
    max-height: 50vh; } }

/* Онлайн-оплата (Azericard): кнопки копирования в настройках филиала,
   «QR для оплаты» и «Вернуть на карту» в заказах — в тон order-payment-btn. */
.payment-copy-btn,
.order-items .order-item .order-pay-qr-btn,
.order-items .order-item .order-online-refund-btn {
  border: 1px solid var(--nq-border,#e5e7eb);
  background: var(--nq-surface,#fff);
  color: var(--nq-text,#111827);
  font-family: Regular;
  font-size: .8rem;
  border-radius: .5rem;
  padding: .4rem .85rem;
  margin-top: .35rem;
  cursor: pointer;
  transition: all .3s; }
  .payment-copy-btn:hover,
  .order-items .order-item .order-pay-qr-btn:hover {
    background: #0f6b5c;
    border-color: #0f6b5c;
    color: #FFFFFF; }
  .order-items .order-item .order-online-refund-btn:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #FFFFFF; }
.payment-config-form .payment-status-line {
  margin-bottom: .75rem; }

/* ---------------------------------------------------------------- */
/* Брони столиков (вкладка филиала "Reservations")                   */
/* ---------------------------------------------------------------- */

.branch-reservations-section {
  font-family: Regular;
  color: var(--nq-text,#111827); }
  .branch-reservations-section button {
    border: none;
    border-radius: .5rem;
    padding: .45rem .9rem;
    font-family: Regular;
    font-size: .82rem;
    background: var(--nq-subtle,#f3f4f6);
    color: var(--nq-text,#111827);
    transition: background .2s, color .2s; }
    .branch-reservations-section button:hover {
      background: var(--nq-border,#e5e7eb); }
  .branch-reservations-section .form-label-sm {
    font-size: .78rem;
    color: var(--nq-muted,#6b7280);
    display: block;
    margin-bottom: .3rem; }
  .branch-reservations-section .form-label-sm .form-control {
    margin-top: .2rem; }

.res-toolbar {
  display: flex;
  gap: .4rem;
  margin-bottom: 1rem; }
  .res-toolbar .res-view-btn.active {
    background: #14806e;
    color: #FFFFFF; }

.res-board-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .9rem; }
  .res-board-head .res-date {
    width: auto;
    min-width: 9.5rem; }
  .res-board-head .res-nav {
    font-size: 1.1rem;
    line-height: 1;
    padding: .4rem .75rem; }
  .res-board-head .res-day-count {
    font-size: .82rem;
    color: var(--nq-text-2,#374151);
    margin-left: .3rem; }
  .res-board-head .res-new-btn {
    margin-left: auto;
    background: #14806e;
    color: #FFFFFF;
    font-family: Bold; }
    .res-board-head .res-new-btn:hover {
      background: #dc2626; }

.res-note {
  background: #FEF3C7;
  color: #92400E;
  border-radius: .6rem;
  padding: .6rem .9rem;
  font-size: .85rem;
  margin-bottom: .9rem; }

.res-section-title {
  font-family: Bold;
  font-size: .9rem;
  margin: .2rem 0 .6rem; }

.res-pending {
  background: #FFF7ED;
  border-radius: .8rem;
  padding: .8rem;
  margin-bottom: 1rem; }

.res-new-form {
  background: var(--nq-bg,#f9fafb);
  border-radius: .8rem;
  padding: 1rem;
  margin-bottom: 1rem; }
  .res-new-form .res-find-btn,
  .res-new-form .res-create-btn {
    background: #14806e;
    color: #FFFFFF; }
  .res-new-form .res-create-btn {
    background: #14806e;
    font-family: Bold;
    margin-top: .4rem; }

.res-slot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: .8rem 0; }

.branch-reservations-section .res-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: var(--nq-surface,#fff);
  border: 1px solid var(--nq-border,#e5e7eb);
  font-size: .82rem; }
  .branch-reservations-section .res-chip.active {
    background: #14806e;
    border-color: #14806e;
    color: #FFFFFF; }
  .branch-reservations-section .res-chip b {
    cursor: pointer;
    color: var(--nq-muted,#6b7280); }

/* timeline */
.res-tl-wrap {
  overflow-x: auto;
  margin-bottom: 1.2rem;
  border: 1px solid var(--nq-border,#e5e7eb);
  border-radius: .8rem; }

.res-tl {
  min-width: 760px;
  padding: .4rem 0; }

.res-tl-row {
  display: flex;
  align-items: stretch;
  min-height: 2.3rem;
  border-bottom: 1px solid #f3f4f4; }
  .res-tl-row:last-child {
    border-bottom: none; }

.res-tl-label {
  flex: 0 0 8.5rem;
  padding: .3rem .7rem;
  font-size: .8rem;
  font-family: DemiBold;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; }
  .res-tl-label small {
    display: block;
    font-family: Regular;
    color: var(--nq-muted,#6b7280);
    font-size: .7rem; }

.res-tl-track {
  position: relative;
  flex: 1;
  margin-right: .7rem; }

.res-tl-head {
  min-height: 1.4rem; }
  .res-tl-head .res-tl-track {
    border-bottom: none; }

.res-tl-hour {
  position: absolute;
  top: .1rem;
  font-size: .7rem;
  color: var(--nq-muted,#6b7280);
  transform: translateX(-50%); }

.res-tl-now {
  position: absolute;
  top: 0;
  width: 2px;
  height: 100vh;
  max-height: 1200px;
  background: #14806e;
  opacity: .5;
  pointer-events: none;
  z-index: 2; }

.res-tl .res-tl-block {
  position: absolute;
  top: .3rem;
  bottom: .3rem;
  padding: 0 .4rem;
  border-radius: .4rem;
  font-size: .72rem;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  color: var(--nq-text,#111827);
  background: #DCFCE7;
  border-left: 3px solid #16A34A;
  z-index: 1; }
  .res-tl .res-tl-block span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis; }
  .res-tl .res-tl-block.is-pending {
    background: #FEF3C7;
    border-left-color: #D97706; }
  .res-tl .res-tl-block.is-hold {
    background: var(--nq-subtle,#f3f4f6);
    border-left-color: var(--nq-faint,#9ca3af); }
  .res-tl .res-tl-block.is-seated {
    background: #DBEAFE;
    border-left-color: #2563EB; }
  .res-tl .res-tl-block.is-done {
    background: var(--nq-subtle,#f3f4f6);
    border-left-color: var(--nq-muted,#6b7280);
    color: var(--nq-muted,#6b7280); }
  .res-tl .res-tl-block.is-noshow {
    background: #FEE2E2;
    border-left-color: #DC2626; }

.res-tl-buffer {
  position: absolute;
  top: .55rem;
  bottom: .55rem;
  background: repeating-linear-gradient(45deg, var(--nq-border,#e5e7eb), var(--nq-border,#e5e7eb) 3px, transparent 3px, transparent 6px);
  border-radius: 0 .3rem .3rem 0; }

/* cards */
.res-card {
  display: flex;
  gap: .9rem;
  background: var(--nq-surface,#fff);
  border: 1px solid var(--nq-border,#e5e7eb);
  border-left: 4px solid #16A34A;
  border-radius: .7rem;
  padding: .7rem .9rem;
  margin-bottom: .55rem;
  transition: box-shadow .3s; }
  .res-card.is-pending { border-left-color: #D97706; }
  .res-card.is-hold { border-left-color: var(--nq-faint,#9ca3af); }
  .res-card.is-seated { border-left-color: #2563EB; }
  .res-card.is-done { border-left-color: var(--nq-muted,#6b7280); opacity: .8; }
  .res-card.is-noshow { border-left-color: #DC2626; }
  .res-card.is-off { border-left-color: var(--nq-border-strong,#d1d5db); opacity: .6; }
  .res-card.res-flash { box-shadow: 0 0 0 3px rgba(20, 128, 110, 0.35); }

.res-card-time {
  flex: 0 0 3.6rem;
  font-family: Bold;
  font-size: 1rem;
  line-height: 1.15; }
  .res-card-time small {
    display: block;
    font-family: Regular;
    font-size: .72rem;
    color: var(--nq-muted,#6b7280); }

.res-card-body {
  flex: 1;
  min-width: 0;
  font-size: .85rem; }
  .res-card-body a {
    color: var(--nq-text,#111827); }

.res-card-comment {
  color: var(--nq-text-2,#374151);
  font-style: italic;
  margin-top: .15rem; }

.res-card-note {
  color: #c2410c;
  font-size: .78rem;
  margin-top: .2rem; }

.res-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .35rem; }

.res-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: .18rem .55rem;
  border-radius: 999px;
  background: var(--nq-border,#e5e7eb); }

.res-badge-status {
  background: #14806e;
  color: #FFFFFF; }

.res-badge-money {
  background: #E0F2FE;
  color: #075985; }

.res-deadline {
  font-size: .72rem;
  color: #c2410c;
  font-weight: 700;
  align-self: center; }

.res-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .55rem; }
  .res-card-actions .res-act-confirm,
  .res-card-actions .res-act-seat {
    background: #16A34A;
    color: #FFFFFF; }
  .res-card-actions .res-act-decline,
  .res-card-actions .res-act-cancel,
  .res-card-actions .res-act-no_show {
    background: #FEE2E2;
    color: #B91C1C; }

.res-move {
  display: flex;
  gap: .4rem;
  margin-top: .5rem;
  max-width: 24rem; }

/* settings */
.res-set {
  border: 1px solid var(--nq-border,#e5e7eb);
  border-radius: .8rem;
  padding: .9rem 1rem 1rem;
  margin-bottom: 1rem; }
  .res-set legend {
    float: none;
    width: auto;
    font-family: Bold;
    font-size: .95rem;
    padding: 0 .4rem;
    margin: 0; }
  .res-set .lang-hint {
    margin: .2rem 0 .7rem; }

.res-mt {
  margin-top: .8rem; }

.branch-reservations-section label.res-radio {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .45rem .2rem;
  cursor: pointer; }
  .branch-reservations-section label.res-radio input {
    flex: 0 0 auto;
    margin-top: .2rem; }
  .res-radio small {
    display: block;
    color: var(--nq-text-2,#374151);
    font-size: .78rem;
    margin-top: .1rem; }

.res-check {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .85rem;
  margin-right: .9rem; }

.res-switch {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem; }

.res-checks {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 0;
  margin: .4rem 0 .6rem; }

.res-hours-row {
  display: grid;
  grid-template-columns: 9rem 7rem 1rem 7rem;
  align-items: center;
  gap: .4rem;
  margin-bottom: .35rem; }

.res-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .4rem 0;
  font-size: .85rem; }
  .res-inline .form-control {
    width: auto;
    max-width: 12rem; }
  .res-rule .form-control {
    width: 5rem; }

.res-closed-list {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: .3rem 0; }

.res-table-head,
.res-table-row {
  display: grid;
  grid-template-columns: minmax(7rem, 1.5fr) 4.5rem 4.5rem minmax(6rem, 1fr) 4rem 3.5rem 7rem;
  gap: .4rem;
  align-items: center;
  margin-bottom: .35rem; }

.res-table-head {
  font-size: .72rem;
  color: var(--nq-muted,#6b7280); }

.res-warn-text {
  color: #c2410c !important; }

.branch-reservations-section .res-save-btn {
  background: #14806e;
  color: #FFFFFF;
  font-family: Bold;
  padding: .6rem 1.4rem; }
  .branch-reservations-section .res-save-btn:hover {
    background: #dc2626; }

@media (max-width: 640px) {
  .res-hours-row {
    grid-template-columns: 1fr 1fr; }
    .res-hours-row span {
      display: none; }
    .res-hours-row .res-check {
      grid-column: 1 / -1; }
  .res-table-head {
    display: none; }
  .res-table-row {
    grid-template-columns: 1fr 1fr;
    padding-bottom: .5rem;
    border-bottom: 1px dashed var(--nq-border,#e5e7eb); }
  .res-card {
    flex-direction: column;
    gap: .3rem; }
  .res-board-head .res-new-btn {
    margin-left: 0;
    width: 100%; } }

/*
 * Sidebar has two menus (index.php): #navAccount (whole account) and
 * #navBranch (only the branch picked in the header switch). In branch mode
 * the sidebar replaces the card's own tab strip.
 */
.panel-nav-mode {
  display: flex;
  flex-direction: column;
  gap: .3rem; }
  .panel-nav-mode[hidden] {
    display: none; }

.panel-nav-back {
  display: block;
  padding: .35rem .75rem;
  font-family: Regular;
  font-size: .8rem;
  color: #0f6b5c;
  text-decoration: none; }
  .panel-nav-back:hover {
    text-decoration: underline;
    color: #0f6b5c; }

.panel-nav-branch-title {
  padding: .2rem .75rem .5rem;
  font-family: Bold;
  font-size: 1rem;
  color: var(--nq-text,#111827);
  border-bottom: 1px solid var(--nq-border,#e5e7eb);
  margin-bottom: .25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; }

.panel-section.branch-mode > .panel-card > h2,
.panel-section.branch-mode #branchBackLink,
#branchList.branch-detail-mode .branch-tabs {
  display: none !important; }

@media (max-width: 900px) {
  .panel-nav-mode {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: .3rem; }
  .panel-nav-mode .panel-nav-label,
  .panel-nav-mode .panel-nav-divider {
    display: none; }
  .panel-nav-branch-title {
    border-bottom: none;
    margin: 0;
    padding: .55rem .75rem;
    flex: 0 0 auto; }
  .panel-nav-back {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: .55rem .75rem; }
}

/* Loyalty card editor: form + live Wallet pass preview (2026-10-17). */
.loyalty-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.5rem;
  align-items: start; }
  @media (max-width: 991px) {
    .loyalty-editor {
      grid-template-columns: minmax(0, 1fr); } }
.loyalty-editor-aside {
  position: sticky;
  top: 1rem; }
.loyalty-summary-line {
  display: block; }
.lp-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .6rem;
  flex-wrap: wrap; }
.lp-heading {
  font-family: DemiBold;
  font-size: .95rem;
  color: var(--nq-text, #111827); }
.lp-switch {
  display: inline-flex;
  background: var(--nq-bg, #f3f4f6);
  border-radius: .5rem;
  padding: 2px; }
  .lp-switch button {
    border: 0;
    background: transparent;
    font-size: .75rem;
    padding: .3rem .6rem;
    border-radius: .4rem;
    color: var(--nq-muted, #6b7280);
    cursor: pointer; }
    .lp-switch button.is-on {
      background: var(--nq-card, #fff);
      color: var(--nq-text, #111827);
      box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.lp-card {
  border-radius: 14px;
  padding: 14px 16px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  transition: background-color .2s, color .2s; }
.lp-top {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 34px; }
.lp-logo {
  height: 46px;
  max-width: 146px;
  object-fit: contain;
  object-position: left center; }
  .lp-logo.is-round {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    object-position: center;
    padding: 5px;
    background: #fff; }
  .lp-logo.is-wide {
    height: 40px;
    max-width: 100%; }
.lp-header {
  margin-left: auto;
  text-align: right;
  min-width: 0; }
  .lp-header .lp-val {
    font-size: 1.05rem; }
.lp-strip {
  margin: 12px -16px 4px;
  height: 104px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 24px 0; }
  .lp-strip img {
    max-width: 100%;
    max-height: 84px;
    object-fit: contain; }
.lp-card.is-center .lp-secondary {
  margin-top: 6px; }
.lp-title {
  font-family: DemiBold;
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; }
.lp-lbl {
  font-size: .62rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .8; }
.lp-val {
  font-size: .95rem;
  font-family: DemiBold;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; }
.lp-primary {
  margin: 18px 0 14px; }
  .lp-primary .lp-val {
    font-size: 2rem;
    line-height: 1.1;
    font-family: Regular; }
.lp-secondary,
.lp-gpoints {
  display: flex;
  gap: 14px;
  flex-wrap: wrap; }
  .lp-secondary .lp-field,
  .lp-gpoints .lp-field {
    min-width: 0;
    flex: 1 1 40%; }
.lp-qr {
  margin: auto auto 0;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px; }
  .lp-qr svg {
    width: 104px;
    height: 104px;
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    fill: #111; }
  .lp-qr span {
    font-size: .6rem;
    opacity: .75;
    letter-spacing: .05em; }
/* Google Wallet: program name on top, two point blocks side by side, a text row. */
.lp-card.is-google .lp-top {
  padding-bottom: 10px;
  border-bottom: 1px solid currentColor;
  border-bottom-color: rgba(127, 127, 127, .35); }
.lp-card.is-google .lp-gpoints {
  margin-top: 16px; }
  .lp-card.is-google .lp-gpoints .lp-val {
    font-size: 1.4rem;
    font-family: Regular; }
.lp-card.is-google .lp-gtext {
  margin-top: 10px; }
.lp-card.is-google .lp-lbl {
  text-transform: none;
  letter-spacing: 0;
  font-size: .72rem; }

.loyalty-layout-options {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .6rem; }
.loyalty-layout-option {
  display: flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid var(--nq-border, #e5e7eb);
  border-radius: .6rem;
  padding: .5rem .8rem;
  cursor: pointer;
  font-size: .85rem;
  color: var(--nq-text, #111827); }
  .loyalty-layout-option:has(input:checked) {
    border-color: #14806E;
    background: rgba(20, 128, 110, 0.12); }
  .loyalty-layout-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none; }
  .loyalty-layout-option svg {
    color: var(--nq-muted, #6b7280);
    flex-shrink: 0; }
  .loyalty-layout-option:has(input:checked) svg {
    color: #14806E; }
/* Stamps as pictures on the card (LoyaltyStamps): style tiles + colour row + preview grid. */
.loyalty-stamp-styles {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .5rem; }
.loyalty-stamp-style {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  width: 96px;
  border: 1px solid var(--nq-border, #e5e7eb);
  border-radius: .6rem;
  padding: .55rem .4rem .5rem;
  cursor: pointer;
  font-size: .78rem;
  text-align: center;
  color: var(--nq-text, #111827); }
  .loyalty-stamp-style:has(input:checked) {
    border-color: #14806E;
    background: rgba(20, 128, 110, 0.12); }
  .loyalty-stamp-style input {
    position: absolute;
    opacity: 0;
    pointer-events: none; }
  .loyalty-stamp-style .lss-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: DemiBold;
    font-size: .8rem;
    color: var(--nq-muted, #6b7280); }
    .loyalty-stamp-style .lss-icon svg {
      width: 26px;
      height: 26px; }
    .loyalty-stamp-style .lss-icon i {
      display: block;
      width: 28px;
      height: 28px;
      background: currentColor;
      -webkit-mask-size: contain;
      mask-size: contain;
      -webkit-mask-repeat: no-repeat;
      mask-repeat: no-repeat;
      -webkit-mask-position: center;
      mask-position: center; }
  .loyalty-stamp-style:has(input:checked) .lss-icon {
    color: #14806E; }
  .loyalty-stamp-style .lss-name {
    line-height: 1.15; }
/* A general label rule wins over the flex column above — pin the tile layout. */
.loyalty-stamp-styles > label.loyalty-stamp-style {
  display: flex;
  align-items: center;
  margin: 0; }
  .loyalty-stamp-styles > label.loyalty-stamp-style .lss-icon {
    margin: 0 auto; }
  .loyalty-stamp-styles > label.loyalty-stamp-style .lss-name {
    width: 100%;
    text-align: center; }
  .loyalty-stamp-styles > label.loyalty-stamp-style[data-style="text"] .lss-icon {
    width: auto;
    padding: 0 6px;
    border: 1.5px solid currentColor;
    border-radius: 6px;
    height: 24px;
    margin-top: 3px;
    margin-bottom: 3px; }
.loyalty-stamp-color {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .35rem; }
  .loyalty-stamp-color .loyalty-color-input {
    width: 56px; }
  .loyalty-stamp-color .loyalty-color-input:disabled {
    opacity: .4; }
/* Logo stamp = white disc + black logo (LoyaltyStamps::logoDisc). */
.lp-stamp .lp-stamp-disc {
  width: 86%;
  height: 86%;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center; }
  .lp-stamp .lp-stamp-disc img {
    width: 66%;
    height: 66%;
    object-fit: contain;
    filter: brightness(0); }
/* «Логотип белым»: the white logo itself is made in JS (shownLogo); Google's round slot shows the card colour. */
.lp-card.logo-white .lp-logo.is-round {
  background: transparent; }
.lp-strip.has-stamps {
  height: auto;
  min-height: 92px;
  padding: 10px 16px;
  align-items: center; }
.lp-stamps,
.lp-hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px; }
.lp-hero {
  margin: 14px -16px -16px;
  width: auto;
  padding: 12px 16px;
  border-radius: 0 0 14px 14px; }
.lp-stamp-row {
  display: flex;
  justify-content: center;
  width: 100%; }
.lp-stamp {
  width: calc(100% / var(--cols, 6));
  max-width: 52px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center; }
  .lp-stamp i,
  .lp-stamp img {
    display: block;
    width: 80%;
    height: 80%;
    object-fit: contain;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center; }
.loyalty-logo-right {
  max-width: 360px; }

.lp-secondary + .lp-secondary {
  margin-top: 12px; }

/* «+ Добавить блюдо» above the dish list (2026-10-17). */
.menu-add-toggle {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  margin: 0 0 1rem;
  border: 0;
  border-radius: 8px;
  background: var(--nq-accent, #ea580c);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s; }
  .menu-add-toggle:hover {
    background: var(--nq-accent-dark, #c2410c); }
  .menu-add-toggle.is-open {
    background: var(--nq-bg, #f3f4f6);
    color: var(--nq-text, #111827);
    box-shadow: inset 0 0 0 1px var(--nq-border, #e5e7eb); }
.menu-add-form[hidden] {
  display: none !important; }
.menu-add-form:not([hidden]) {
  margin-bottom: 1.25rem; }

.branch-menu-section .menu-add-toggle {
  margin: 0 0 18px !important; }
.branch-menu-section .menu-add-form:not([hidden]) {
  margin-bottom: 22px; }

/* QR code of the storefront (QR-витрина card, 2026-10-17). */
.subdomain-qr {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--nq-border, #e5e7eb);
  flex-wrap: wrap; }
.subdomain-qr-preview {
  width: 168px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--nq-border, #e5e7eb);
  border-radius: 12px;
  padding: 6px; }
  .subdomain-qr-preview svg {
    display: block;
    width: 100%;
    height: auto; }
.subdomain-qr-side {
  flex: 1 1 260px;
  min-width: 0; }
.subdomain-qr-title {
  font-family: DemiBold;
  font-size: 1rem;
  margin: 0 0 4px;
  color: var(--nq-text, #111827); }
.subdomain-qr-url {
  font-size: .85rem;
  color: var(--nq-muted, #6b7280);
  margin: 0 0 8px;
  word-break: break-all; }
.subdomain-qr-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px; }
.subdomain-card .subdomain-qr-btn {
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--nq-border, #e5e7eb);
  background: var(--nq-card, #fff);
  color: var(--nq-text, #111827);
  font-weight: 600;
  font-size: .875rem;
  cursor: pointer;
  margin: 0; }
  .subdomain-card .subdomain-qr-btn.is-primary {
    background: var(--nq-accent, #ea580c);
    border-color: var(--nq-accent, #ea580c);
    color: #fff; }
  .subdomain-card .subdomain-qr-btn.is-primary:hover {
    background: var(--nq-accent-dark, #c2410c); }

/* VIP 1 storefront tile + editor link (2026-10-18, components/Vip1.php) */
.subdomain-style-option.is-vip { border-color: #E6B450; background: #0D0D0F; }
.subdomain-style-option.is-vip:has(input:checked) { border-color: #E6B450; box-shadow: 0 0 0 3px rgba(230,180,80,.35); }
.subdomain-style-vip-badge {
  position: absolute; left: 8px; top: 8px;
  background: #E6B450; color: #0D0D0F;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  padding: 2px 8px; border-radius: 999px; line-height: 18px; }
.subdomain-style-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.subdomain-style-actions .lang-hint { flex: 1 1 220px; }
.subdomain-vip-edit {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px;
  border-radius: 8px; background: #0D0D0F; color: #E6B450 !important; border: 1px solid #E6B450;
  font-weight: 600; font-size: 14px; text-decoration: none; }
.subdomain-vip-edit:hover { background: #1F1F24; }
.subdomain-style-option.is-vip2 { border-color: #C9A962; background: #0A0A0A; }
.subdomain-style-option.is-vip2:has(input:checked) { border-color: #C9A962; box-shadow: 0 0 0 3px rgba(201,169,98,.38); }
.subdomain-style-option.is-vip2 .subdomain-style-vip-badge { background: #C9A962; color: #0A0A0A; }
.subdomain-vip-edit.is-vip2 { background: #0A0A0A; color: #C9A962 !important; border-color: #C9A962; }
/* GREENGARDEN145 (VIP 3, components/Vip3.php): Green Garden's green + cream */
.subdomain-style-option.is-vip3 { border-color: #1F5C46; background: #F7F1E6; }
.subdomain-style-option.is-vip3:has(input:checked) { border-color: #1F5C46; box-shadow: 0 0 0 3px rgba(31,92,70,.35); }
.subdomain-style-option.is-vip3 .subdomain-style-vip-badge { background: #1F5C46; color: #F7F1E6; font-size: 9.5px; letter-spacing: .04em; padding: 2px 7px; }
.subdomain-vip-edit.is-vip3 { background: #1F5C46; color: #F7F1E6 !important; border-color: #1F5C46; }
.subdomain-vip-edit.is-vip3:hover { background: #17483A; }
.subdomain-style-option.is-vip4 { border-color: #E8342B; background: #FFFBEF; }
.subdomain-style-option.is-vip4:has(input:checked) { border-color: #E8342B; box-shadow: 0 0 0 3px rgba(232,52,43,.3); }
.subdomain-style-option.is-vip4 .subdomain-style-vip-badge { background: #E8342B; color: #fff; font-size: 9.5px; letter-spacing: .04em; padding: 2px 7px; }
.subdomain-vip-edit.is-vip4 { background: #E8342B; color: #fff !important; border-color: #E8342B; }
.subdomain-vip-edit.is-vip4:hover { background: #C92A22; }
/* İLYASIN KAFESİ (VIP 5, components/Vip5.php): charcoal + duct orange */
.subdomain-style-option.is-vip5 { border-color: #E8651A; background: #17130F; }
.subdomain-style-option.is-vip5:has(input:checked) { border-color: #E8651A; box-shadow: 0 0 0 3px rgba(232,101,26,.35); }
.subdomain-style-option.is-vip5 .subdomain-style-vip-badge { background: #E8651A; color: #fff; font-size: 9px; letter-spacing: .03em; padding: 2px 6px; }
.subdomain-vip-edit.is-vip5 { background: #17130F; color: #F7EEE3 !important; border-color: #E8651A; }
.subdomain-vip-edit.is-vip5:hover { background: #2A221B; }

/* Loyalty Only scan link stays hidden while the mode is off */
.panel-nav-item[hidden] {
  display: none !important; }
/* QR menu: waiter-call Telegram row */
.nq-wcall-tg { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; font-size: 14px; }
/* Bill discount on the new-order form */
.new-order-disc { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; margin: 10px 0 4px; }
.new-order-disc label { display: flex; flex-direction: column; gap: 3px; margin: 0; }
.new-order-disc-row { display: flex; gap: 6px; }
.new-order-disc-value { width: 100px; }
.new-order-disc-kind { width: 64px; }
.new-order-disc-reason-wrap { flex: 1 1 200px; }
.new-order-card-chip { display: inline-block; margin: 0 0 8px; padding: 5px 12px; border-radius: 999px; background: rgba(20,128,110,.12); color: #14806E; font-size: 13.5px; font-weight: 700; }

/* ASMƏT (VIP 6, components/Vip6.php): warm black + gold */
.subdomain-style-option.is-vip6 { border-color: #C9A84C; background: #0B0A08; }
.subdomain-style-option.is-vip6:has(input:checked) { border-color: #C9A84C; box-shadow: 0 0 0 3px rgba(201,168,76,.35); }
.subdomain-style-option.is-vip6 .subdomain-style-vip-badge { background: #C9A84C; color: #0B0A08; font-size: 9px; letter-spacing: .06em; padding: 2px 6px; }
.subdomain-vip-edit.is-vip6 { background: #0B0A08; color: #E8C97A !important; border-color: #C9A84C; }
.subdomain-vip-edit.is-vip6:hover { background: #1A1A12; }
/* VILLAGE (VIP 7, components/Vip7.php): forest green + cream */
.subdomain-style-option.is-vip7 { border-color: #2E6B3C; background: #F7F2E8; }
.subdomain-style-option.is-vip7:has(input:checked) { border-color: #2E6B3C; box-shadow: 0 0 0 3px rgba(46,107,60,.32); }
.subdomain-style-option.is-vip7 .subdomain-style-vip-badge { background: #2E6B3C; color: #FFFFFF; font-size: 9px; letter-spacing: .06em; padding: 2px 6px; }
.subdomain-vip-edit.is-vip7 { background: #2E6B3C; color: #FFFFFF !important; border-color: #2E6B3C; }
.subdomain-vip-edit.is-vip7:hover { background: #24552F; }
/* DƏYIRMAN (VIP 8, components/Vip8.php): dark chocolate + gold */
.subdomain-style-option.is-vip8 { border-color: #B8893B; background: #1E1611; }
.subdomain-style-option.is-vip8:has(input:checked) { border-color: #D8B56A; box-shadow: 0 0 0 3px rgba(184,137,59,.4); }
.subdomain-style-option.is-vip8 .subdomain-style-vip-badge { background: #B8893B; color: #1E1611; font-size: 9px; letter-spacing: .06em; padding: 2px 6px; }
.subdomain-vip-edit.is-vip8 { background: #1E1611; color: #E8CD8E !important; border-color: #B8893B; }
.subdomain-vip-edit.is-vip8:hover { background: #2E2219; }
/* CLOUD (VIP 9, components/Vip9.php): cream + aqua cloud + terracotta */
.subdomain-style-option.is-vip9 { border-color: #8CD3D0; background: #F7EFE4; }
.subdomain-style-option.is-vip9:has(input:checked) { border-color: #C65B34; box-shadow: 0 0 0 3px rgba(198,91,52,.32); }
.subdomain-style-option.is-vip9 .subdomain-style-vip-badge { background: #C65B34; color: #FFFFFF; font-size: 9px; letter-spacing: .06em; padding: 2px 6px; }
.subdomain-vip-edit.is-vip9 { background: #F7EFE4; color: #21403F !important; border-color: #8CD3D0; }
.subdomain-vip-edit.is-vip9:hover { background: #E3F3F1; }
.subdomain-style-option.is-vip10 { border-color: #C9A35C; background: #1F3A2E; }
.subdomain-style-option.is-vip10:has(input:checked) { border-color: #C9A35C; box-shadow: 0 0 0 3px rgba(201,163,92,.4); }
.subdomain-style-option.is-vip10 .subdomain-style-vip-badge { background: #C9A35C; color: #1F3A2E; font-size: 9px; letter-spacing: .06em; padding: 2px 6px; }
.subdomain-vip-edit.is-vip10 { background: #1F3A2E; color: #F6F0E4 !important; border-color: #C9A35C; }
.subdomain-vip-edit.is-vip10:hover { background: #28493B; }
.subdomain-style-option.is-vip11 { border-color: #1F9D5C; background: #1E2420; }
.subdomain-style-option.is-vip11:has(input:checked) { border-color: #1F9D5C; box-shadow: 0 0 0 3px rgba(31,157,92,.4); }
.subdomain-style-option.is-vip11 .subdomain-style-vip-badge { background: #1F9D5C; color: #FFFFFF; font-size: 9px; letter-spacing: .06em; padding: 2px 6px; }
.subdomain-vip-edit.is-vip11 { background: #1E2420; color: #FFFFFF !important; border-color: #1F9D5C; }
.subdomain-vip-edit.is-vip11:hover { background: #1F9D5C; }
.subdomain-style-option.is-vip12 { border-color: #C9A24A; background: #0E0D0B; }
.subdomain-style-option.is-vip12:has(input:checked) { border-color: #C9A24A; box-shadow: 0 0 0 3px rgba(201,162,74,.45); }
.subdomain-style-option.is-vip12 .subdomain-style-vip-badge { background: #C9A24A; color: #0E0D0B; font-size: 9px; letter-spacing: .06em; padding: 2px 6px; }
.subdomain-vip-edit.is-vip12 { background: #0E0D0B; color: #E9C77A !important; border-color: #C9A24A; }
.subdomain-vip-edit.is-vip12:hover { background: #C9A24A; color: #0E0D0B !important; }
.subdomain-style-option.is-vip13 { border-color: #F2C200; background: #FBF8F1; }
.subdomain-style-option.is-vip13:has(input:checked) { border-color: #F2C200; box-shadow: 0 0 0 3px rgba(242,194,0,.45); }
.subdomain-style-option.is-vip13 .subdomain-style-vip-badge { background: #1E272E; color: #F2C200; font-size: 9px; letter-spacing: .06em; padding: 2px 6px; }
.subdomain-vip-edit.is-vip13 { background: #1E272E; color: #F2C200 !important; border-color: #1E272E; }
.subdomain-vip-edit.is-vip13:hover { background: #F2C200; color: #1E272E !important; border-color: #F2C200; }
