:root {
  /* ── Основная палитра (navy/blue дизайн-система) ── */
  --color-primary:       #4053D4;   /* индиго — основной акцент */
  --color-primary-light: #eaecf9;   /* светло-индиго фон */
  --color-primary-dark:  #2D3A94;   /* тёмный индиго — тёмный акцент */

  --color-secondary:      #1a2a4a;  /* очень тёмный navy — вторичный текст/элементы */
  --color-secondary-dark: #12294f;  /* ещё темнее — для hover тёмных элементов */

  --color-accent:       #4053D4;
  --color-accent-light: #eaecf9;

  /* Градиенты */
  --color-gradient:    linear-gradient(180deg, #4053D4 0%, #2D3A94 100%);
  --gradient-primary:  linear-gradient(180deg, #4053D4 0%, #2D3A94 100%);
  --gradient-secondary:linear-gradient(180deg, #5B6EDD 0%, #3645BE 100%);

  /* Цвета карточек и фонов */
  --color-bg:      #eaecf9;   /* фон страницы */
  --color-bg-alt:  #ffffff;
  --color-bg-light:#ffffff;
  --color-bg-card: #ffffff;   /* фон белых карточек */

  /* Текст */
  --color-text:      #1a2a4a;
  --color-text-light: #6b7a94;
  --color-text-muted: #6b7a94;
  --color-text-dark:  #1a2a4a;

  /* Статусные цвета — без изменений */
  --color-success:       #598bd3;
  --color-success-light: #e6f6e2;
  --color-success-dark:  #2d7a31;
  --color-warning:       #ffc107;
  --color-warning-light: #fff3cd;
  --color-warning-dark:  #856404;
  --color-danger:        #dc3545;
  --color-danger-light:  #f8d7da;
  --color-danger-dark:   #bd2130;
  --color-info:          #17a2b8;
  --color-info-light:    #e9f7fe;
  --color-info-dark:     #117a8b;

  /* Прочие цвета */
  --color-orange:       #f0820f;
  --color-orange-light: #fff3cd;
  --color-red:          #dc3545;
  --color-purple:       #8e44ad;
  --color-purple-light: #6c5ce7;
  --color-teal:         #17a2b8;
  --color-yellow:       #ffc107;

  /* Серые */
  --color-gray-light:   #e9ecef;
  --color-gray:         #6b7a94;
  --color-gray-dark:    #4a5568;

  /* Рамки */
  --color-border-light: #d0d8e8;
  --color-border:       #d0d8e8;
  --color-shadow:       rgba(64, 83, 212, 0.08);

  /* Статусы очереди */
  --color-status-new:       #3498db;
  --color-status-inservice: #4053D4;
  --color-status-completed: #95a5a6;
  --color-status-missed:    #dc3545;
  --color-status-delayed:   #8e44ad;
  --color-status-wait:      #f0820f;

  /* Интерактивные состояния */
  --color-checkbox: #4053D4;
  --color-hover:    rgba(64, 83, 212, 0.08);
  --color-focus:    rgba(64, 83, 212, 0.25);
  --color-active:   rgba(64, 83, 212, 0.15);

  /* Border radius */
  --border-radius-sm: 0.375rem;
  --border-radius:    0.75rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.25rem;

  /* Тени */
  --box-shadow:      0 2px 18px rgba(64, 83, 212, 0.12), 0 1px 4px rgba(0, 0, 0, 0.05);
  --box-shadow-hover:0 6px 28px rgba(64, 83, 212, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
  --box-shadow-lg:   0 10px 30px rgba(64, 83, 212, 0.15);
  --box-shadow-xl:   0 15px 35px rgba(64, 83, 212, 0.2);

  /* Переходы */
  --transition:      0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: 0.2s ease;
  --transition-slow: 0.5s ease;
}

* {
  margin: 0;
  padding: 0;
}

body {
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-weight: 400;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}

.main-content {
  flex: 1;
  padding: 20px 0;
}

.card {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 15px;
  border: none;
  transition: var(--transition);
  background-color: var(--color-bg);
}

.card:hover {
  box-shadow: var(--box-shadow-hover);
}

.card-header {
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 15px 20px;
  border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h5 {
  
  margin-bottom: 0;
  color: var(--color-secondary);
  display: flex;
  align-items: center;
}

.card-header h5 i {
  margin-right: 10px;
  color: var(--color-primary);
}

.card-body {
  padding: 20px;
}

.btn {
  border-radius: var(--border-radius);
  padding: 8px 16px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-primary:hover, 
.btn-primary:focus, 
.btn-primary:active {
  background-color: var(--color-primary-dark) !important;
  border-color: var(--color-primary-dark) !important;
}

.btn-outline-primary {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline-primary:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.85rem;
}

.btn-outline-secondary {
  color: var(--color-text-light);
  border-color: var(--color-border);
}

.btn-outline-secondary:hover {
  background-color: var(--color-bg-alt);
  border-color: var(--color-gray-light);
  color: var(--color-text);
}

.btn i {
  margin-right: 8px;
}

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--color-text-light);
  background-color: transparent;
  border: 1px solid transparent;
}

.btn-icon:hover {
  background-color: var(--color-gray-light);
  color: var(--color-secondary);
}

.navbar {
  background-color: var(--color-bg);
  box-shadow: var(--box-shadow);
  margin-bottom: 20px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.navbar-brand {
  
  color: var(--color-primary);
  display: flex;
  align-items: center;
}

.navbar-brand i {
  color: var(--color-primary);
  margin-right: 10px;
}

.nav-link {
  color: var(--color-text-light);
  border-radius: var(--border-radius-sm);
  padding: 8px 12px;
  transition: var(--transition);
  font-weight: 500;
}

.nav-link:hover, 
.nav-link.active {
  background-color: var(--color-hover);
  color: var(--color-primary);
}

.navbar .dropdown-menu {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-hover);
  border: 1px solid var(--color-border);
  margin-top: 10px !important;
}

#alertContainer {
  position: fixed;
  top: 20px;
  right: 20px;
  max-width: 350px;
  z-index: 1050;
}

.alert {
  display: flex;
  align-items: center;
  border: none;
  border-radius: var(--border-radius);
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: var(--box-shadow-xl);
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.alert.show {
  opacity: 1;
  transform: translateX(0);
}

.alert-icon {
  font-size: 1.25rem;
  margin-right: 15px;
}

.alert-message {
  flex-grow: 1;
}

.alert-danger {
  background-color: var(--color-danger-light);
  color: var(--color-danger);
}

.alert-success {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

.alert-warning {
  background-color: var(--color-warning-light);
  color: var(--color-warning-dark);
}

.alert-info {
  background-color: var(--color-info-light);
  color: var(--color-info);
}

#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--color-primary-light);
  border-radius: 50%;
  border-top-color: var(--color-primary);
  animation: spin 1s ease-in-out infinite;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-text-muted);
}



.empty-state h4 {
  
  margin-bottom: 10px;
}

.main-footer,
.footer {
  text-align: center;
  padding: 1rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  background-color: transparent;
  flex-shrink: 0;
}

.main-footer p {
  margin: 0;
}

.form-label {
  font-weight: 500;
  color: var(--color-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.form-label i {
  color: var(--color-primary);
  margin-right: 8px;
}

.text-muted {
  color: var(--color-text-muted) !important;
}

.text-primary {
  color: var(--color-primary) !important;
}

.text-secondary {
  color: var(--color-secondary) !important;
}

.bg-primary-light {
  background-color: var(--color-primary-light);
}

.border-primary {
  border-color: var(--color-primary) !important;
}

.small {
  font-size: 0.875rem;
}

.shadow-sm {
  box-shadow: var(--box-shadow) !important;
}

.shadow-hover:hover {
  box-shadow: var(--box-shadow-hover) !important;
  transition: var(--transition);
}

.hidden {
  display: none;
}

body, html {
  -webkit-user-select: none; 
  -moz-user-select: none;   
  -ms-user-select: none;   
  user-select: none;     
  
  -webkit-tap-highlight-color: transparent; 
  -webkit-touch-callout: none;
}

input, textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

@media (max-width: 576px) {
  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .card-header h5 {
    margin-bottom: 10px;
  }
}

@media (max-width: 768px) {
  .navbar-brand span {
    display: none;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 100%;
  }
}

.btn-my-tickets {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(64, 83, 212, 0.12), rgba(95, 114, 229, 0.08));
    border: 1.5px solid rgba(64, 83, 212, 0.35);
    border-radius: 12px;
    color: #4053D4;
    font-size: 14px;
    
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 
        0 2px 8px rgba(64, 83, 212, 0.08),
        0 1px 3px rgba(64, 83, 212, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    z-index: 100;
}

/* Эффект "свечения" при наведении */
.btn-my-tickets::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(64, 83, 212, 0.15), rgba(95, 114, 229, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-my-tickets:hover::before {
    opacity: 1;
}

.btn-my-tickets:hover {
    background: linear-gradient(135deg, rgba(64, 83, 212, 0.2), rgba(95, 114, 229, 0.15));
    border-color: rgba(64, 83, 212, 0.6);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 16px rgba(64, 83, 212, 0.15),
        0 4px 8px rgba(64, 83, 212, 0.1),
        0 0 0 3px rgba(64, 83, 212, 0.08);
}

.btn-my-tickets:active {
    transform: translateY(0);
    transition: all 0.1s;
    box-shadow: 
        0 2px 6px rgba(64, 83, 212, 0.12),
        0 1px 3px rgba(64, 83, 212, 0.08);
}

/* Анимация иконки */
.btn-my-tickets i {
    font-size: 16px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-my-tickets:hover i {
    transform: scale(1.1) rotate(-5deg);
}

/* Индикатор количества тикетов и бронирований */
.ticket-badge {
    position: absolute;
    right: 10px;
    height: 30px;
    padding: 0 6px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-radius: 11px;
    font-size: 14px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.5);
    border: 2px solid white;
    animation: badge-pulse 2s ease-in-out infinite;
    z-index: 10;
}

/* Анимация постоянной пульсации */
@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(239, 68, 68, 0.5);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 4px 15px rgba(239, 68, 68, 0.7);
    }
}

/* Анимация одноразовой пульсации при обновлении */
.ticket-badge.badge-pulse-once {
    animation: badge-pulse-once 1s ease-out;
}

@keyframes badge-pulse-once {
    0% {
        transform: scale(1);
    }
    20% {
        transform: scale(1.3);
        box-shadow: 0 5px 20px rgba(239, 68, 68, 0.8);
    }
    40% {
        transform: scale(0.95);
    }
    60% {
        transform: scale(1.1);
    }
    80% {
        transform: scale(0.98);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(239, 68, 68, 0.5);
    }
}


/* Адаптив для планшетов */
@media (max-width: 768px) {
    .btn-my-tickets {
        right: -1px;
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 10px;
    }

    .btn-my-tickets i {
        font-size: 15px;
    }
}

/* Адаптив для мобильных */
@media (max-width: 576px) {
    .btn-my-tickets {
        top: 5px;
        right: 5px;
        padding: 7px 12px;
        font-size: 12px;
        border-radius: 9px;
        gap: 6px;
    }

    .btn-my-tickets i {
        font-size: 14px;
    }


    /* Упрощаем эффекты на мобильных для производительности */
    .btn-my-tickets:hover {
        transform: none;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 380px) {
    .btn-my-tickets {
        padding: 6px 10px;
        font-size: 11px;
    }

    .btn-my-tickets i {
        font-size: 13px;
    }

    /* Прячем текст, оставляем только иконку */
    .btn-my-tickets span {
        display: none;
    }

    .btn-my-tickets {
        width: 36px;
        height: 36px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
}

/* Уважение к настройкам анимации */
@media (prefers-reduced-motion: reduce) {
    .btn-my-tickets,
    .btn-my-tickets i,
    .btn-my-tickets::before {
        transition: none;
        animation: none;
    }

    .btn-my-tickets:hover {
        transform: none;
    }

    .ticket-badge {
        animation: none !important;
    }
}

/* Состояние фокуса для клавиатурной навигации */
.btn-my-tickets:focus-visible {
    outline: none;
    border-color: rgba(64, 83, 212, 0.8);
    box-shadow: 
        0 0 0 3px rgba(64, 83, 212, 0.2),
        0 4px 12px rgba(64, 83, 212, 0.15);
}

/* ============================================
   СКОПИРУЙТЕ ВСЁ НИЖЕ В КОНЕЦ ticket.css
   ============================================ */

/* Reasons header */
.reasons-header {
    text-align: center;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    margin: -20px -20px 20px -20px;
}

.reasons-header.positive {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
}

.reasons-header.negative {
    background: linear-gradient(135deg, #f47f16 0%, #ff9800 100%);
}

.reasons-header h3 {
    color: white !important;
    margin: 0 0 8px 0 !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
}

.reasons-header p {
    color: rgba(255, 255, 255, 0.95) !important;
    margin: 0 !important;
    font-size: 0.95rem !important;
}

/* Reasons checkboxes container */
.reasons-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

/* Reason checkbox label */
.reason-checkbox-label {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 14px 16px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: white !important;
    position: relative !important;
}

.reason-checkbox-label:hover {
    border-color: #f47f16 !important;
    background: rgba(244, 127, 22, 0.05) !important;
    transform: translateX(6px) !important;
    box-shadow: 0 4px 12px rgba(244, 127, 22, 0.15) !important;
}

/* Hide default checkbox completely */
.reason-checkbox,
input[type="checkbox"].reason-checkbox {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    left: -9999px !important;
    visibility: hidden !important;
}

/* Custom checkbox */
.reason-checkbox-custom {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    border: 2px solid #ccc !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
    background: white !important;
    position: relative !important;
}

.reason-checkbox-custom::after {
    content: '\f00c' !important;
    font-weight: 900 !important;
    color: white !important;
    font-size: 0.75rem !important;
    opacity: 0 !important;
    transform: scale(0) !important;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    position: absolute !important;
}

/* Checked state */
.reason-checkbox:checked + .reason-checkbox-custom {
    background: #f47f16 !important;
    border-color: #f47f16 !important;
    box-shadow: 0 0 0 3px rgba(244, 127, 22, 0.2) !important;
}

.reason-checkbox:checked + .reason-checkbox-custom::after {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* Positive checkboxes (green) */
.reasons-checkboxes.positive .reason-checkbox:checked + .reason-checkbox-custom {
    background: #4caf50 !important;
    border-color: #4caf50 !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2) !important;
}

/* Negative checkboxes (orange) */
.reasons-checkboxes.negative .reason-checkbox:checked + .reason-checkbox-custom {
    background: #f47f16 !important;
    border-color: #f47f16 !important;
    box-shadow: 0 0 0 3px rgba(244, 127, 22, 0.2) !important;
}

/* Reason text */
.reason-text {
    font-size: 1rem !important;
    color: #212529 !important;
    font-weight: 500 !important;
    flex: 1 !important;
    user-select: none !important;
}

.reason-checkbox:checked ~ .reason-text {
    color: #f47f16 !important;
    font-weight: 600 !important;
}

.reasons-checkboxes.positive .reason-checkbox:checked ~ .reason-text {
    color: #4caf50 !important;
}

/* Comment container */
.reason-comment-container {
    margin: 20px 0 !important;
    padding: 16px !important;
    background: linear-gradient(135deg, rgba(244, 127, 22, 0.05) 0%, rgba(255, 152, 0, 0.05) 100%) !important;
    border-radius: 10px !important;
    border: 2px solid rgba(244, 127, 22, 0.2) !important;
    animation: slideDown 0.3s ease-out !important;
}

.reason-comment-container.hidden {
    display: none !important;
}

.reason-comment-container label {
    display: block !important;
    margin-bottom: 10px !important;
    font-weight: 600 !important;
    color: #212529 !important;
    font-size: 1rem !important;
}

.reason-comment-container textarea {
    width: 100% !important;
    padding: 12px 14px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    resize: vertical !important;
    transition: all 0.3s ease !important;
    min-height: 80px !important;
}

.reason-comment-container textarea:focus {
    outline: none !important;
    border-color: #f47f16 !important;
    box-shadow: 0 0 0 3px rgba(244, 127, 22, 0.1) !important;
}

/* Character counter */


/* Submit button */
.btn-rating-submit {
    width: 100% !important;
    padding: 16px !important;
    margin-top: 24px !important;
    background: linear-gradient(135deg, #f47f16 0%, #ff9800 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 16px rgba(244, 127, 22, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.btn-rating-submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 24px rgba(244, 127, 22, 0.4) !important;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%) !important;
}

.btn-rating-submit:active {
    transform: translateY(0) !important;
}

.btn-rating-submit:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 300px;
        transform: translateY(0);
    }
}

/* Mini versions for unrated tickets modal */
.reasons-header-mini {
    padding: 10px !important;
    border-radius: 8px !important;
    margin-bottom: 12px !important;
}

.reasons-header-mini.positive {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%) !important;
}

.reasons-header-mini.negative {
    background: linear-gradient(135deg, #f47f16 0%, #ff9800 100%) !important;
}

.reasons-header-mini h4 {
    color: white !important;
    margin: 0 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}

.reasons-checkboxes-mini {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin: 12px 0 !important;
}

.reason-checkbox-label-mini {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    background: white !important;
    position: relative !important;
}

.reason-checkbox-label-mini:hover {
    border-color: #f47f16 !important;
    background: rgba(244, 127, 22, 0.05) !important;
}

.reason-checkbox-mini,
input[type="checkbox"].reason-checkbox-mini {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    left: -9999px !important;
    visibility: hidden !important;
}

.reason-checkbox-custom-mini {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    border: 2px solid #ccc !important;
    border-radius: 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
    background: white !important;
    position: relative !important;
}

.reason-checkbox-custom-mini::after {
    content: '\f00c' !important;
    font-weight: 900 !important;
    color: white !important;
    font-size: 0.65rem !important;
    opacity: 0 !important;
    transform: scale(0) !important;
    transition: all 0.2s ease !important;
    position: absolute !important;
}

.reason-checkbox-mini:checked + .reason-checkbox-custom-mini {
    background: #f47f16 !important;
    border-color: #f47f16 !important;
}

.reason-checkbox-mini:checked + .reason-checkbox-custom-mini::after {
    opacity: 1 !important;
    transform: scale(1) !important;
}

.reasons-checkboxes-mini.positive .reason-checkbox-mini:checked + .reason-checkbox-custom-mini {
    background: #4caf50 !important;
    border-color: #4caf50 !important;
}

.reason-text-mini {
    font-size: 0.9rem !important;
    color: #212529 !important;
    font-weight: 500 !important;
    flex: 1 !important;
    user-select: none !important;
}

.reason-comment-container-mini {
    margin: 12px 0 !important;
}

.reason-comment-container-mini.hidden {
    display: none !important;
}

.reason-comment-mini {
    width: 100% !important;
    padding: 10px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    resize: vertical !important;
}

.reason-comment-mini:focus {
    outline: none !important;
    border-color: #f47f16 !important;
}

.btn-submit-mini {
    width: 100% !important;
    padding: 12px !important;
    margin-top: 12px !important;
    background: linear-gradient(135deg, #f47f16 0%, #ff9800 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.btn-submit-mini:hover {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%) !important;
    transform: translateY(-1px) !important;
}

.btn-submit-mini:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}

/* Mobile responsive */
@media (max-width: 576px) {
    .reasons-header h3 {
        font-size: 1.2rem !important;
    }
    
    .reason-checkbox-label {
        padding: 12px 14px !important;
    }
    
    .reason-text {
        font-size: 0.9rem !important;
    }
    
    .btn-rating-submit {
        padding: 14px !important;
        font-size: 1rem !important;
    }
}



.order-code {
    display: none;
}


/* Terminal-specific styles */
body, html {
    background: #ffffff00;
}

.loader {
    text-align: center;
    padding: 40px 20px;
}

.spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 166, 81, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-primary);
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.demo-warning {
    background-color: var(--color-warning-light);
    color: #856404;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    text-align: center;
}

/* Terminal-specific animations */
@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Стили для заблокированных полей с сохраненными данными */
.readonly-saved {
    background-color: #e8f5e8 !important;
    cursor: not-allowed !important;
    opacity: 0.8;
}

.readonly-saved:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
    border-color: #28a745 !important;
}

/* Стили для индикатора сохраненных данных */
.saved-data-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #28a745;
    font-weight: bold;
    margin-left: 8px;
}

.saved-data-label i {
    font-size: 10px;
}

/* Дополнительные стили для disabled чекбокса */
input[type="checkbox"].readonly-saved {
    opacity: 0.6;
    cursor: not-allowed;
}

input[type="checkbox"].readonly-saved + label {
    opacity: 0.6;
    cursor: not-allowed;
}





.branch-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 25px;
	margin-top: 1.5rem;
}

/* Branch card styles */
.branch-card {
	background-color: var(--color-orange);
	border-radius: var(--border-radius-lg);
	box-shadow: var(--box-shadow);
	overflow: hidden;
	transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
	display: flex;
	flex-direction: column;
	height: 100%;
	position: relative;
	border: none;
}

.branch-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 5px;
	background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
	transition: height 0.3s ease;
}

.branch-card:hover {
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
	transform: translateY(-8px);
}

.branch-card:hover::before {
	height: 7px;
}

/* Services modal styles */
.modal-content {
	border: none;
	border-radius: var(--border-radius-lg);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	padding: 1.25rem 1.5rem;
	background-color: rgba(0, 166, 81, 0.05);
}

.modal-footer {
	border-top: 1px solid rgba(0, 0, 0, 0.05);
	padding: 1.25rem 1.5rem;
	background-color: rgba(0, 0, 0, 0.02);
}

.modal-title i {
	color: var(--color-primary);
}

.table {
	margin-bottom: 0;
}

.table th {
	
	color: var(--color-secondary);
}

.service-count-info {
	color: var(--color-text-muted);
	padding: 0.5rem 0;
}

.service-count-info i {
	color: var(--color-primary);
}

.table .btn-outline-primary {
	border-color: var(--color-primary);
	color: var(--color-primary);
	transition: all 0.2s ease;
}

.table .btn-outline-primary:hover {
	background-color: var(--color-primary);
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 166, 81, 0.2);
}

.table td {
	vertical-align: middle;
	padding: 0.75rem 1rem;
}

.alert-danger {
	background-color: #fff5f5;
	color: #e53e3e;
	border-left: 4px solid #e53e3e;
	border-radius: var(--border-radius);
}

/* Loading animation */
@keyframes pulse {
	0% { transform: scale(0.95); opacity: 0.7; }
	50% { transform: scale(1); opacity: 1; }
	100% { transform: scale(0.95); opacity: 0.7; }
}

.spinner-border {
	animation: spinner-border 1s linear infinite, pulse 2s ease infinite;
}

/* Empty state styling */
.empty-services-state {
	text-align: center;
	padding: 40px 20px;
	color: var(--color-text-muted);
}

.branch-header {
	padding: 1.5rem 1.5rem 1.25rem;
	border-bottom: 1px solid rgba(0,0,0,0.05);
	background-color: rgba(0, 166, 81, 0.05);
	position: relative;
}

.branch-name {
	margin: 0;
	font-size: 1.4rem;
	color: var(--color-secondary);
	display: flex;
	align-items: center;
}

.branch-name i {
	color: var(--color-primary);
	margin-right: 12px;
	font-size: 1.5rem;
}

.branch-info {
	padding: 1.5rem;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
}

.branch-info p {
	margin-bottom: 0;
	display: flex;
	align-items: flex-start;
	line-height: 1.5;
}

.branch-info p i {
	color: var(--color-primary);
	margin-right: 12px;
	min-width: 20px;
	margin-top: 4px;
	transition: transform 0.2s ease;
}

.branch-card:hover .branch-info p i {
	transform: translateX(2px);
}

.branch-actions {
	padding: 1.25rem 1.5rem;
	background-color: rgba(0,0,0,0.02);
	border-top: 1px solid rgba(0,0,0,0.05);
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: space-between;
}

.branch-actions .btn {
	flex: 1;
	min-width: 110px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.8rem;
	font-weight: 500;
	border-radius: var(--border-radius);
	transition: all 0.2s ease;
	white-space: nowrap;
	margin-bottom: 5px;
}

.branch-actions .btn-primary {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
	color: white;
	box-shadow: 0 4px 10px rgba(0, 166, 81, 0.2);
}

.branch-actions .btn-primary:hover {
	background-color: var(--color-primary-dark);
	border-color: var(--color-primary-dark);
	transform: translateY(-2px);
	box-shadow: 0 6px 15px rgba(0, 166, 81, 0.3);
}

.branch-actions .btn-secondary {
	color: var(--color-text);
	background-color: var(--color-bg-alt);
	border: 1px solid rgba(0,0,0,0.1);
}

.branch-actions .btn-secondary:hover {
	background-color: #e9ecef;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.branch-actions .btn i {
	margin-right: 10px;
	font-size: 0.9rem;
}

.category-header {
	font-size: 1.8rem;
	
	color: var(--color-secondary);
	margin-top: 3rem;
	margin-bottom: 1.5rem;
	padding-bottom: 0.8rem;
	border-bottom: 2px solid var(--color-primary-light);
	display: flex;
	align-items: center;
	position: relative;
}

.category-header::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 100px;
	height: 2px;
	background-color: var(--color-primary);
}

.category-header i {
	margin-right: 15px;
	color: var(--color-primary);
	font-size: 1.6rem;
}

.category-header:first-of-type {
	margin-top: 0;
}

/* Branch ID info styles */
.branch-metadata {
	margin-top: 0.6rem;
	padding-top: 0.6rem;
	border-top: 1px dashed rgba(0,0,0,0.1);
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
}

.branch-metadata .metadata-item {
	font-size: 0.85rem;
	background-color: rgba(0,0,0,0.02);
	border-radius: var(--border-radius-sm);
	padding: 0.3rem 0.7rem;
	display: inline-flex;
	align-items: center;
}

.branch-metadata .metadata-item i {
	margin-right: 8px;
	font-size: 0.8rem;
	color: var(--color-primary);
	margin-top: 0;
}

/* Demo warning styling */
.demo-warning {
	background-color: var(--color-warning-light);
	border-left: 4px solid var(--color-warning);
	border-radius: var(--border-radius);
	padding: 15px 20px;
	margin-bottom: 30px;
	display: flex;
	align-items: flex-start;
}

.demo-warning i {
	color: var(--color-warning);
	font-size: 1.5rem;
	margin-right: 15px;
	margin-top: 2px;
}

.demo-warning p {
	margin: 0;
	color: #856404;
}

/* Empty state styling */
.empty-message {
	background-color: var(--color-bg);
	border-radius: var(--border-radius-lg);
	box-shadow: var(--box-shadow);
	padding: 40px 20px;
}

.empty-state {
	text-align: center;
	padding: 30px 20px;
	color: var(--color-text-muted);
	max-width: 500px;
	margin: 0 auto;
}

.empty-state i {
	font-size: 60px;
	margin-bottom: 20px;
	opacity: 0.5;
	color: var(--color-primary);
}

.empty-state h4 {
	
	margin-bottom: 15px;
	color: var(--color-secondary);
}

/* Auto-redirect progress bar */
.redirect-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
	width: 0%;
	z-index: 1000;
	transition: width 0.1s linear;
	box-shadow: 0 2px 5px rgba(0, 166, 81, 0.3);
}

/* Footer styling */
.main-footer {
	background-color: var(--color-bg);
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
	padding: 1.5rem 0;
	border-top: 1px solid rgba(0,0,0,0.05);
}

.main-footer img {
	height: 30px;
	margin-right: 10px;
	vertical-align: middle;
}

/* Animation classes */
.fade-in {
	opacity: 0;
	animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.branch-list {
		grid-template-columns: 1fr;
	}

	.branch-card:hover {
		transform: translateY(-5px);
	}

	.page-header h1 {
		font-size: 2rem;
	}

	.page-header .logo {
		height: 50px;
	}
}

.data-title{
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
    color: black;
}

/* --- Стили для цифрового превью талона в модальном окне --- */
.modal-ticket-preview {
    display: none; /* Скрыто по умолчанию */
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    width: 100%;
}

.modal-ticket-preview.active {
    display: flex;
}

.preview-title {
    margin: 0 0 15px 0;
    font-size: 32px;
    color: #1e293b;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-title i {
    color: #4053D4;
}

.ticket-preview-content {
    width: 100%;
    max-width: 360px;
}

/* Дизайн цифрового талона */
.digital-ticket {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.dt-header {
    background: #f8fafc;
    padding: 16px;
    text-align: center;
    border-bottom: 2px dashed #cbd5e1;
    position: relative;
}

/* Полукруглые вырезы по бокам как у настоящего билета */
.dt-header::before, .dt-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    z-index: 2;
}

.dt-header::before {
    left: -11px;
    border-right-color: transparent;
    border-bottom-color: transparent;
    transform: rotate(45deg);
}

.dt-header::after {
    right: -11px;
    border-left-color: transparent;
    border-bottom-color: transparent;
    transform: rotate(-45deg);
}

.dt-header h4 {
    margin: 0;
    color: #475569;
    font-size: 32px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dt-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dt-ticket-number {
    font-size: 56px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.dt-details {
    width: 100%;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.dt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 28px;
}

.dt-row:last-child {
    margin-bottom: 0;
}

.dt-label {
    color: #64748b;
}

.dt-value {
    color: #1e293b;
    font-weight: 600;
    text-align: right;
    max-width: 65%;
}

.dt-highlight {
    color: #4053D4;
    font-size: 28px;
}

.dt-user-info, .dt-wait-time {
    width: 100%;
    font-size: 18px;
    color: #475569;
    margin-bottom: 16px;
    text-align: center;
}

.dt-user-info div { margin-bottom: 4px; }

.dt-instruction {
    background: #1e293b;
    color: white;
    width: 100%;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.dt-print-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: #1e293b;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.dt-print-btn:hover {
    background: #334155;
}

.dt-print-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dt-qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.dt-qr-code {
    padding: 8px;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.dt-qr-text {
    font-size: 12px;
    color: #64748b;
    text-align: center;
    line-height: 1.4;
}

.dt-qr-text.wanted {
    color: #dc3545;
    font-weight: 600;
}

/* Разрешаем скролл модальному окну, так как контента стало больше */
.navigation-map-modal-body {
    overflow-y: auto;
    max-height: 75vh;
}

/* Обертка для талона и эмоджи по бокам */
.ticket-preview-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

/* Стили для эмоджи фотокамеры */
.camera-icon {
    font-size: 208px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
    animation: pulseCamera 2s infinite ease-in-out;
    cursor: default;
    user-select: none;
}

/* Легкая пульсация эмоджи для привлечения внимания */
@keyframes pulseCamera {
    0%, 100% { transform: scale(1) rotate(-5deg); opacity: 0.85; }
    50% { transform: scale(1.15) rotate(5deg); opacity: 1; }
}

/* Адаптивность для мобильных экранов (уменьшаем эмоджи и отступы) */
@media (max-width: 768px) {
    .ticket-preview-wrapper {
        gap: 15px;
    }
    .camera-icon {
        font-size: 36px;
    }
}
@media (max-width: 480px) {
    .ticket-preview-wrapper {
        gap: 10px;
    }
    .camera-icon {
        font-size: 28px;
    }
}