/* =================================================================
   АНАЛИТИЧЕСКИЕ КАРТОЧКИ ГОРОДОВ (НОВЫЙ ДИЗАЙН)
   ================================================================= */

/* Основная карточка города в аналитическом стиле */
.city-analytics-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 0;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: none;
    border: none;
    position: relative;
}

.city-analytics-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.city-analytics-card:hover,
.city-analytics-card.hover-effect {
    transform: none;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

/* Заголовок аналитической карточки */
.city-analytics-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    position: relative;
    z-index: 2;
}

.city-analytics-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.city-analytics-icon i {
    color: white;
    font-size: 1.25rem;
}

.city-analytics-info {
    flex: 1;
    margin-left: 1rem;
    color: white;
}

.city-analytics-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.city-analytics-total {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.9;
    color: rgba(255,255,255,0.8);
}

.city-analytics-toggle {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: none;
    backdrop-filter: blur(10px);
}

.city-analytics-toggle:hover {
    background: rgba(255,255,255,0.25);
    transform: none;
}

.city-analytics-toggle.active {
    background: rgba(255,255,255,0.3);
    transform: none;
}

.city-analytics-toggle i {
    color: white;
    font-size: 0.9rem;
    transition: none;
}

/* Статистика в аналитических карточках */
.city-analytics-stats {
    display: flex;
    padding: 0 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.stat-analytics-item {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-right: 0.5rem;
    transition: none;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.stat-analytics-item:last-child {
    margin-right: 0;
}

.stat-analytics-item:hover {
    background: rgba(255,255,255,0.2);
    transform: none;
}

.stat-analytics-item.connection {
    border-left: 3px solid #1cc88a;
}

.stat-analytics-item.service {
    border-left: 3px solid #f6c23e;
}

.stat-analytics-icon {
    text-align: center;
    margin-bottom: 0.5rem;
}

.stat-analytics-icon i {
    color: white;
    font-size: 1.5rem;
}

.stat-analytics-content {
    text-align: center;
}

.stat-analytics-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    transition: none;
}

.stat-analytics-number.pulse {
    transform: none;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.stat-analytics-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
    text-transform: none;
    letter-spacing: 0.5px;
}

/* Действия в аналитических карточках */
.city-analytics-actions {
    padding: 0 1.5rem 1.5rem 1.5rem;
    position: relative;
    z-index: 2;
}

.btn-city-view {
    width: 100%;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: none;
    backdrop-filter: blur(10px);
}

.btn-city-view:hover {
    background: rgba(255,255,255,0.3);
    color: white;
    text-decoration: none;
    transform: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Развернутые элементы аналитических карточек */
.city-analytics-expanded {
    background: white;
    border-top: 1px solid rgba(255,255,255,0.2);
    position: relative;
    z-index: 2;
}

.expanded-analytics-section {
    padding: 1rem 1.5rem;
}

.expanded-analytics-section:not(:last-child) {
    border-bottom: 1px solid #f1f1f1;
}

.expanded-analytics-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: #5a5c69;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e3e6f0;
}

.expanded-analytics-section.connection .expanded-analytics-header {
    color: #1cc88a;
    border-bottom-color: #1cc88a;
}

.expanded-analytics-section.service .expanded-analytics-header {
    color: #f6c23e;
    border-bottom-color: #f6c23e;
}

.expanded-analytics-item {
    margin-bottom: 0.5rem;
}

.expanded-analytics-item:last-child {
    margin-bottom: 0;
}

.expanded-analytics-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #5a5c69;
    transition: none;
    border: 1px solid #e3e6f0;
}

.expanded-analytics-link:hover {
    background: #e9ecef;
    color: #5a5c69;
    text-decoration: none;
    transform: none;
    border-color: #d1d3e2;
}

.expanded-analytics-info {
    flex: 1;
}

.expanded-analytics-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: #5a5c69;
    margin-bottom: 0.25rem;
}

.expanded-analytics-client {
    font-size: 0.8rem;
    color: #858796;
    margin-bottom: 0.25rem;
}

.expanded-analytics-address {
    font-size: 0.75rem;
    color: #6e707e;
}

.expanded-analytics-arrow {
    opacity: 0.5;
    transition: none;
}

.expanded-analytics-link:hover .expanded-analytics-arrow {
    opacity: 1;
    transform: none;
}

/* =================================================================
   СТИЛИ ДЛЯ КОММЕНТАРИЕВ
   ================================================================= */

/* Основные стили для комментариев */
.comment-section {
    margin-top: 2rem;
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.comment-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    transition: none;
    margin-bottom: 1.5rem;
}

.comment-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: #dee2e6;
}

.comment-author {
    display: flex;
    align-items: center;
    text-align: center;
}

.comment-item__header {
    display: flex;

}

@media (min-width: 768px) {
    .comment-author {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }
}

.comment-avatar-wrapper {
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .comment-avatar-wrapper {
        margin-bottom: 0;
        margin-right: 0.75rem;
    }
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.comment-author-name {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.comment-author-position {
    margin-top: 0.25rem;
}

.comment-author-position .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.comment-content {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e9ecef;
}

.comment-text {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

.comment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.comment-action-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: none;
}

.comment-action-link:hover {
    color: #495057;
    text-decoration: none;
}

.comment-action-link.text-danger:hover {
    color: #dc3545 !important;
}

.comment-meta {
    text-align: right;
    color: #6c757d;
    font-size: 0.8rem;
}

@media (max-width: 767px) {
    .comment-meta {
        text-align: right;
    }
}

.comment-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

/* Стили для кнопок у коментарях */
.comment-action-link {
    background: none;
    border: none;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0;
    cursor: pointer;
    transition: none;
}

.comment-action-link:hover {
    color: #495057;
    text-decoration: none;
}

.comment-action-link.text-danger:hover {
    color: #dc3545 !important;
}

/* Стили для toast повідомлень */
.toast-container {
    z-index: 1060; /* Вище модальних вікон */
}

.toast {
    min-width: 300px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* =================================================================
   СТИЛИ ДЛЯ МОДАЛЬНИХ ВІКОН
   ================================================================= */

/* Загальні стили модальних вікон */
.modal-content {
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
    padding: 1.5rem;
}

.modal-header .modal-title {
    font-weight: 600;
    font-size: 1.2rem;
}

.modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
    transition: none;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

/* Стили для модального вікна видалення */
#deleteCommentModal .modal-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

/* Стили тіла модального вікна */
.modal-body {
    padding: 2rem;
}

.modal-body .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
}

.modal-body .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: none;
    font-size: 0.95rem;
}

.modal-body .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

/* Стили футера модального вікна */
.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

.modal-footer .btn {
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: none;
}

.modal-footer .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.modal-footer .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    transform: none;
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.modal-footer .btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: none;
}

.modal-footer .btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border: none;
}

.modal-footer .btn-danger:hover {
    background: linear-gradient(135deg, #ff5252 0%, #e84118 100%);
    transform: none;
}

/* Анімації для модальних вікон */
.modal.fade .modal-dialog {
    transition: none;
    transform: none;
}

.modal.show .modal-dialog {
    transform: none;
}

/* Responsive стили для модальних вікон */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem;
    }
    
    .modal-footer .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 767px) {
    .comment-time {
        justify-content: flex-start;
    }
}

@media (min-width: 768px) {
    .comment-time {
        justify-content: flex-end;
    }
}

.comment-time i {
    font-size: 0.7rem;
}

.comment-date {
    font-size: 0.7rem;
    opacity: 0.8;
}

.comments-empty {
    text-align: center;
    padding: 3rem 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.comments-empty-icon {
    margin-bottom: 1rem;
}

.comments-empty-icon i {
    font-size: 3rem;
    color: #adb5bd;
}

.comments-empty-text h5 {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.comments-empty-text p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.ticket-locked-alert {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.ticket-locked-alert i {
    margin-right: 0.5rem;
    color: #adb5bd;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 575px) {
    .comment-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .comment-avatar {
        width: 40px;
        height: 40px;
    }
    
    .comment-author-name {
        font-size: 0.85rem;
    }
    
    .comment-content {
        padding: 0.75rem;
    }
    
    .comment-text {
        font-size: 0.9rem;
    }
    
    .comments-empty {
        padding: 2rem 1rem;
    }
    
    .comments-empty-icon i {
        font-size: 2.5rem;
    }
}

/* Улучшения для планшетов */
@media (min-width: 576px) and (max-width: 991px) {
    .comment-item {
        padding: 1.25rem;
    }
    
    .comment-avatar {
        width: 44px;
        height: 44px;
    }
}

/* Дополнительные стили для форм */
.form-control-simple {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.9rem;
    transition: none;
}

.form-control-simple:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

.btn-simple {
    border-radius: 8px;
    font-weight: 500;
    transition: none;
}

.btn-simple:hover {
    transform: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* =================================================================
   ИСПРАВЛЕНИЕ ВИДИМОСТИ SIDEBAR - КРИТИЧНО!
   ================================================================= */

/* Принудительное восстановление градиента sidebar */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
}

.sidebar.sidebar-dark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
}

.sidebar .nav-link, .sidebar .sidebar-brand, .sidebar .sidebar-heading {
    color: #fff !important;
}

.sidebar .nav-link.active, .sidebar .nav-link:hover {
    background: rgba(255,255,255,0.08) !important;
    color: #fff !important;
}

.sidebar .sidebar-divider {
    border-color: rgba(255,255,255,0.15) !important;
}

.sidebar .sidebar-brand-text {
    color: #fff !important;
}

.sidebar .nav-link i {
    color: #fff !important;
}

.sidebar .collapse-item {
    color: #212529 !important;
}

/* =================================================================
   СУЩЕСТВУЮЩИЕ СТИЛИ
   ================================================================= */

.shadow-item {
	box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
	transition: none;
}

.shadow-item:hover {
	box-shadow: rgba(62, 99, 192, 0.4) 0px 7px 29px 0px;
}

.badge-custom {
	  display: inline-block;
	  padding: 0.25em 0.4em;
	  font-size: 100%;
	  font-weight: 700;
	  line-height: 1;
	  text-align: center;
	  white-space: nowrap;
	  vertical-align: baseline;
	  border-radius: 0.35rem;
	  transition: none;
}

.icon-style:hover {
	scale: 1.2;
}

.status-item {
	background-color: #D63B2C;
}

/* Кастомные стили для карточек заявок */
.ticket-card {
    border-radius: 15px;
    border: none;
    background: linear-gradient(145deg, #ffffff, #f8f9fc);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: none;
    overflow: hidden;
    position: relative;
}

.ticket-card:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}


.ticket-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    margin: 0;
    position: relative;
    border-radius: 10px 10px 0 0;
}

.ticket-header.connection {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
}

.ticket-header.service {
    background: linear-gradient(135deg, #fd7e14 0%, #e55347 100%);
}

.ticket-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ticket-type-badge {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.ticket-body {
    padding: 1.5rem;
}

.ticket-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.info-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.info-icon.phone {
    background: linear-gradient(135deg, #1cc88a, #13855c);
    color: white;
}

.info-icon.location {
    background: linear-gradient(135deg, #36b9cc, #258391);
    color: white;
}

.info-icon.address {
    background: linear-gradient(135deg, #f6c23e, #dda20a);
    color: white;
}

.info-icon.time {
    background: linear-gradient(135deg, #e74a3b, #c0392b);
    color: white;
}

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

.info-label {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.info-value {
    font-size: 0.875rem;
    color: #495057;
    margin: 0;
    word-break: break-word;
}

.info-value a {
    color: #4e73df;
    text-decoration: none;
    font-weight: 500;
}

.info-value a:hover {
    text-decoration: underline;
}

.ticket-actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e3e6f0;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.ticket-actions__wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding-top: 10px;
}
@media screen and (max-width: 768px) {
    .ticket-actions__wrap {
        gap: 10px;
        flex-direction: column;
        align-items: center;
    }
}

.ticket-dropdown {
    position: relative;
}

.ticket-dropdown-btn {
    background: #6c757d;
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    transition: none;
    cursor: pointer;
}

.ticket-dropdown-btn:hover {
    background: #5a6268;
    transform: none;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
}

.action-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 1.1rem;
}

.action-btn.info {
    background: linear-gradient(135deg, #36b9cc, #258391);
    color: white;
}

.action-btn.success {
    background: linear-gradient(135deg, #1cc88a, #13855c);
    color: white;
}

.action-btn:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Анимация для новых карточек */

.ticket-card.new {
    animation: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .ticket-info {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .ticket-header {
        padding: 0.75rem 1rem;
    }
    
    .ticket-body {
        padding: 1rem;
    }
    
    .action-buttons {
        gap: 0.5rem;
    }
    
    .action-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    #comments_container {
        display: none;
    }
}

/* Стили для детализации заявок */
.ticket-detail-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px 15px 0 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.ticket-detail-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: none;
}


.ticket-detail-header.connection {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
}

.ticket-detail-header.service {
    background: linear-gradient(135deg, #fd7e14 0%, #e55347 100%);
}

.ticket-detail-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.ticket-detail-title h1 {
    color: white;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.ticket-actions-header {
    display: flex;
    gap: 1rem;
}

.action-header-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: none;
    backdrop-filter: blur(10px);
    font-size: 1.2rem;
}

.action-header-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: none;
    color: white;
    text-decoration: none;
}

.ticket-type-info {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.ticket-detail-card {
    background: white;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.ticket-detail-body {
    padding: 2rem;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-info-item {
    background: linear-gradient(145deg, #f8f9fc, #ffffff);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid;
    transition: none;
    position: relative;
    overflow: hidden;
}

.detail-info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: none;
    transition: none;
}

.detail-info-item:hover::before {
    transform: none;
}

.detail-info-item:hover {
    transform: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.detail-info-item.phone {
    border-left-color: #1cc88a;
}

.detail-info-item.location {
    border-left-color: #36b9cc;
}

.detail-info-item.address {
    border-left-color: #f6c23e;
}

.detail-info-item.time {
    border-left-color: #e74a3b;
}

.detail-info-item.status {
    border-left-color: #6c757d;
}

.detail-info-item.client {
    border-left-color: #6f42c1;
}

.detail-info-item.router {
    border-left-color: #20c997;
}

.detail-info-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.detail-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1rem;
    color: white;
}

.detail-info-icon.phone {
    background: linear-gradient(135deg, #1cc88a, #13855c);
}

.detail-info-icon.location {
    background: linear-gradient(135deg, #36b9cc, #258391);
}

.detail-info-icon.address {
    background: linear-gradient(135deg, #f6c23e, #dda20a);
}

.detail-info-icon.time {
    background: linear-gradient(135deg, #e74a3b, #c0392b);
}

.detail-info-icon.status {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.detail-info-icon.client {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
}

.detail-info-icon.router {
    background: linear-gradient(135deg, #20c997, #17a085);
}

.detail-info-content h6 {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
}

.detail-info-content .detail-value {
    font-size: 1.1rem;
    color: #495057;
    font-weight: 500;
    margin: 0;
}

.detail-info-content .detail-value a {
    color: black;
    text-decoration: none;
    font-weight: 600;
}

.detail-link-to-ticket {
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-decoration: none;
    border-radius: 8px;
    padding: 6px 8px;
    transition: none;
}
.detail-link-to-ticket:hover {
    color: white;
    text-decoration: none;
    background: linear-gradient(90deg, #9ebd13 0%, #008552 100%);
}

.detail-header__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.detail-info-content .detail-value a:hover {
    text-decoration: underline;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: none;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: linear-gradient(135deg, #1cc88a, #13855c);
    color: white;
}

.status-badge.inactive {
    background: linear-gradient(135deg, #e74a3b, #c0392b);
    color: white;
}

.router-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.router-badge.our {
    background: linear-gradient(135deg, #1cc88a, #13855c);
    color: white;
}

.router-badge.client {
    background: linear-gradient(135deg, #fd7e14, #e55347);
    color: white;
}

.description-section {
    background: linear-gradient(145deg, #f8f9fc, #ffffff);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid #6f42c1;
}

.description-section h6 {
    color: #6c757d;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.description-section p {
    color: #495057;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

.action-buttons-section {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.action-btn-detail {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    text-decoration: none;
    transition: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.action-btn-detail.success {
    background: linear-gradient(135deg, #1cc88a, #13855c);
    color: white;
}

.action-btn-detail.danger {
    background: linear-gradient(135deg, #e74a3b, #c0392b);
    color: white;
}

.action-btn-detail:hover {
    transform: none;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

/* Стили для комментариев */
.comments-section {
    margin-top: 2rem;
}

.comment-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: none;
}

.comment-card:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.comment-header {
    background: linear-gradient(135deg, #f8f9fc, #e2e6ea);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e3e6f0;
}

.comment-body {
    padding: 1.5rem;
}

/* Адаптивность для детализации */
@media (max-width: 768px) {
    .ticket-detail-header {
        padding: 1.5rem;
    }
    
    .ticket-detail-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .ticket-actions-header {
        align-self: flex-end;
    }
    
    .detail-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .detail-info-item {
        padding: 1rem;
    }
    
    .action-buttons-section {
        flex-direction: column;
    }
}

/* Дополнительные стили для комментариев */
.comments-section {
    margin-top: 2rem;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.comments-header {
    color: #374151;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f3f4f6;
}

.comment-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #3b82f6;
    transition: none;
}

.comment-card:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: none;
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-avatar {
    margin-right: 1rem;
}

.comment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3b82f6;
}

.comment-info h6 {
    margin: 0;
    color: #1f2937;
    font-weight: 600;
}

.comment-position {
    color: #3b82f6;
    font-weight: 500;
    display: block;
}

.comment-time {
    color: #6b7280;
    display: block;
}

.comment-content p {
    margin: 0;
    color: #374151;
    font-size: 1.1rem;
    line-height: 1.6;
}

.comment-actions {
    display: flex;
    gap: 1rem;
}

.comment-action-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: none;
    display: inline-flex;
    align-items: center;
}

.comment-action-btn.edit {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.comment-action-btn.edit:hover {
    background: rgba(245, 158, 11, 0.2);
    color: #d97706;
    text-decoration: none;
}

.comment-action-btn.delete {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.comment-action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #dc2626;
    text-decoration: none;
}

.no-comments {
    text-align: center;
    padding: 3rem 0;
    color: #6b7280;
}

.no-comments i {
    font-size: 3rem;
    color: #d1d5db;
}

.comment-form-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f3f4f6;
}

.comment-form-section h6 {
    color: #374151;
    font-weight: 600;
    margin-bottom: 1rem;
}

.comment-form textarea {
    width: 100%;
    min-height: 120px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1rem;
    resize: vertical;
    transition: none;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.related-tickets-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.section-header {
    color: #374151;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f3f4f6;
}

/* Дополнительные responsive стили */
@media (max-width: 768px) {
    .comments-section,
    .related-tickets-section {
        margin: 1rem 0;
        padding: 1rem;
    }
    
    .comment-card {
        padding: 1rem;
    }
    
    .comment-author {
        align-items: flex-start;
        gap: 5px;
    }
    
    .comment-avatar {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* =================================================================
   МИНИМАЛИСТИЧНЫЕ СТИЛИ ДЛЯ ДЕТАЛИЗАЦИИ РЕГИСТРАЦИЙ
   ================================================================= */

.detail-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    display: flex;
    justify-content: space-between;
}

.detail-header__wrap {
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-direction: column;
    gap: 20px;
}

.detail-header__buttons a {
    flex: 0 0 auto;
}

.detail-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: none;
    overflow: hidden;
    margin-bottom: 2rem;
}

.detail-card-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 1.5rem;
    border: none;
}

.detail-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f3f4;
    transition: none;
}

.detail-item:hover {
    background-color: #f8f9ff;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.detail-value {
    font-size: 1rem;
    color: black;
}

.mac-address-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 1px;
}

.client-id-section {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.comment-section {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.comment-item {
    background: #f8fafc;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #3b82f6;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3b82f6;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.photo-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.btn-simple {
    border-radius: 20px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border: none;
    transition: none;
}

.btn-back {
    background: white;
    color: black;
    
}

.btn-back:hover {
    background: white;
    color: #667eea;
}

.btn-edit {
    background: white;
    color: #2c3e50;
}
.btn-edit:hover {
    color: #667eea;
}

.form-control-simple {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.8rem;
    transition: none;
}

.form-control-simple:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Адаптивность */
@media (max-width: 768px) {
    .detail-header {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 10px;
    }

    .detail-header__wrap {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 20px;
    }
    
    .detail-item {
        padding: 0.8rem 1rem;
    }
    
    .photo-gallery {
        grid-template-columns: 1fr;
    }
    
    .comment-section {
        padding: 1rem;
    }
}

.service-type-badge {
    background: white;
    color: black;
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    gap: 10px;
    align-items: center;
    align-self: flex-start;
    max-width: fit-content;

}

.connection-type-badge {
    background: white;
    color: black;
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    gap: 10px;
    align-items: center;
    align-self: flex-start;
    max-width: fit-content;
}

/* =================================================================
   СТИЛИ ДЛЯ ЗАЯВОК (TICKETS)
   ================================================================= */

.ticket-actions {
    border-top: 1px solid #e9ecef;
}

.ticket-completed-alert {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.ticket-completed-alert h6 {
    color: #155724;
    margin-bottom: 0.75rem;
}

.completion-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-label {
    font-weight: 600;
    color: #495057;
    min-width: 120px;
}

.detail-link {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.detail-link:hover {
    text-decoration: underline;
}

.ticket-locked-alert {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    color: #856404;
    margin-top: 1rem;
}

/* =================================================================
   СТИЛИ ДЛЯ СЕКЦИЙ ПІДКЛЮЧЕННЯ ТА РЕМОНТИ
   ================================================================= */

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #dee2e6;
}

.connection-section-header {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #2196f3;
}

.service-section-header {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border: 1px solid #9c27b0;
}

.section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
}

.connection-icon {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.section-title h1 {
    margin: 0;
    color: #495057;
    font-weight: 700;
}

.section-count {
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.icon-blue {
    color: #2196f3;
}

.icon-purple {
    color: #9c27b0;
}

/* =================================================================
   СТИЛИ ДЛЯ КАРТОЧЕК РЕЄСТРАЦІЙ
   ================================================================= */

.registration-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: none;
    overflow: hidden;
    transition: none;
}

.registration-card:hover {
    transform: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.connection-registration-card {
    border-left: 4px solid #2196f3;
}

.service-registration-card {
    border-left: 4px solid #9c27b0;
}

.registration-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.registration-title {
    margin: 0;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
}

.registration-actions {
    display: flex;
    gap: 0.5rem;
}

.registration-card-body {
    padding: 1.5rem;
}

.registration-details .detail-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f4;
    margin-bottom: 0;
}

.registration-details .detail-item:last-child {
    border-bottom: none;
}

.registration-details .detail-item:hover {
    background-color: #f8f9ff;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    border-radius: 8px;
}

/* =================================================================
   СТИЛИ ДЛЯ УПРОЩЕННЫХ КАРТОЧЕК ГОРОДОВ В СПИСКЕ ЗАЯВОК
   ================================================================= */

.city-card {
    background: white;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: none;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.city-card:hover {
    border-color: #4e73df;
    transform: none;
    box-shadow: 0 4px 15px rgba(78, 115, 223, 0.1);
}

.city-header {
    background: #4e73df;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.city-title {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.city-expand-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: none;
}

.city-expand-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: none;
}

.city-expand-btn i {
    font-size: 0.75rem;
    transition: none;
}

.city-stats {
    display: flex;
    padding: 0;
    background: #f8f9fc;
}

.city-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 0.75rem;
    transition: none;
    position: relative;
    background: white;
    margin: 8px;
    border-radius: 8px;
}

.city-stat:not(:last-child) {
    margin-right: 4px;
}

.city-stat:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.connection-stat .icon-green {
    color: #1cc88a;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.service-stat .icon-orange {
    color: #fd7e14;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.stat-count {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.city-actions {
    padding: 0.75rem 1rem;
    background: #f8f9fc;
}

.city-view-btn {
    background: #4e73df;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.3px;
    transition: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: none;
}

.city-view-btn:hover {
    background: #224abe;
    transform: none;
    box-shadow: 0 2px 8px rgba(78, 115, 223, 0.3);
    color: white;
    text-decoration: none;
}

.city-view-btn i {
    font-size: 0.7rem;
}

/* Расширенные списки заявок в карточках городов */
.city-expanded-tickets {
    background: white;
    border-top: 1px solid #e9ecef;
}

.expanded-section {
    border-bottom: 1px solid #f1f3f6;
}

.expanded-section:last-child {
    border-bottom: none;
}

.expanded-header {
    background: #f8f9fc;
    padding: 0.6rem 1rem;
    font-weight: 600;
    font-size: 0.8rem;
    color: #495057;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
}

.connection-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.service-header {
    background: linear-gradient(135deg, #fd7e14 0%, #e55347 100%);
    color: white;
}

.expanded-header i {
    font-size: 0.7rem;
    margin-right: 0.4rem;
}

.ticket-row {
    transition: none;
}

.ticket-row:hover {
    background: #f8f9fc;
}

.ticket-link {
    display: block;
    padding: 0.6rem 1rem;
    color: #495057;
    text-decoration: none;
    transition: none;
}

.ticket-link:hover {
    color: #212529;
    text-decoration: none;
}

.ticket-main-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.2rem;
}

.ticket-date {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.8rem;
}

.ticket-time {
    color: #6c757d;
    font-size: 0.7rem;
    margin-left: 0.4rem;
}

.ticket-client {
    font-size: 0.75rem;
    color: #495057;
    margin-bottom: 0.15rem;
}

.ticket-address {
    font-size: 0.7rem;
    color: #6c757d;
}

/* Анимация для кнопки развертывания */
.city-expand-btn[aria-expanded="true"] i,
button[data-city-id] i {
    transform: none;
}

/* Адаптивность для карточек городов */
@media (max-width: 768px) {
    .city-card {
        margin-bottom: 0.75rem;
    }
    
    .city-header {
        padding: 0.6rem 0.75rem;
    }
    
    .city-title {
        font-size: 0.9rem;
    }
    
    .city-expand-btn {
        width: 26px;
        height: 26px;
    }
    
    .city-stat {
        padding: 1rem 0.5rem;
        margin: 6px;
    }
    
    .stat-count {
        font-size: 1.6rem;
    }
    
    .connection-stat .icon-green,
    .service-stat .icon-orange {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }
    
    .city-actions {
        padding: 0.6rem 0.75rem;
    }
    
    .city-view-btn {
        padding: 0.45rem 0.75rem;
        font-size: 0.65rem;
    }
    
    .ticket-link {
        padding: 0.5rem 0.75rem;
    }
}

/* =================================================================
   СТИЛИ ДЛЯ РЕГИОНАЛЬНЫХ КАРТОЧЕК НА ГЛАВНОЙ СТРАНИЦЕ
   ================================================================= */

.region-card {
    border-radius: 20px;
    overflow: hidden;
    transition: none;
    background: linear-gradient(145deg, #ffffff, #f8f9fc);
    border: none !important;
}

.region-card:hover {
    transform: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.region-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.region-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: none;
}

.region-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.region-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.region-info {
    flex: 1;
    margin-left: 1rem;
    margin-right: 1rem;
}

.region-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.region-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0.25rem 0 0 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.region-total {
    text-align: center;
    color: white;
}

.total-count {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.region-total small {
    font-size: 0.8rem;
    opacity: 0.9;
    text-transform: none;
    letter-spacing: 0.5px;
}

.region-body {
    padding: 2rem 1.5rem;
}

.region-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(145deg, #f8f9fc, #ffffff);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: none;
    border: 1px solid rgba(78, 115, 223, 0.1);
}

.stat-item:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.connection-stat {
    border-left: 4px solid #4e73df;
}

.connection-stat .stat-icon {
    background: linear-gradient(135deg, #4e73df, #224abe);
}

.service-stat {
    border-left: 4px solid #fd7e14;
}

.service-stat .stat-icon {
    background: linear-gradient(135deg, #fd7e14, #e55347);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-right: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.75rem;
    text-transform: none;
    letter-spacing: 0.5px;
}

.stat-progress {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: none;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 30px 30px;
    animation: none;
}

.connection-progress {
    background: linear-gradient(90deg, #4e73df, #1cc88a);
}

.service-progress {
    background: linear-gradient(90deg, #fd7e14, #f6c23e);
}


.region-actions {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.btn-region-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    text-transform: none;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-region-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: none;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    color: white;
    text-decoration: none;
}

.btn-region-primary:active {
    transform: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Адаптивность для региональных карточек */
@media (max-width: 768px) {
    .region-header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .region-info {
        margin: 0;
        order: 2;
    }
    
    .region-total {
        order: 3;
    }
    
    .region-icon {
        order: 1;
    }
    
    .stat-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .stat-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* =================================================================
   СТИЛИ ДЛЯ БЛОКА АНАЛИТИКИ ЗАЯВОК
   ================================================================= */

.analytics-card {
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #f8f9fc);
    border: none !important;
}

.analytics-header {
    background: linear-gradient(135deg, #36b9cc 0%, #258391 100%);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.analytics-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: none;
}

.analytics-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.analytics-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-right: 1.5rem;
}

.analytics-info {
    flex: 1;
}

.analytics-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.analytics-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0.25rem 0 0 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.analytics-export {
    position: relative;
    z-index: 10;
}

.btn-analytics-export {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: none;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0.5px;
}

.btn-analytics-export:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: none;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.analytics-body {
    padding: 2.5rem;
}

.analytics-filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, #f8f9fc, #ffffff);
    border-radius: 16px;
    border: 1px solid rgba(54, 185, 204, 0.1);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
    display: flex;
    align-items: center;
    margin: 0;
}

.filter-label i {
    color: #36b9cc;
}

.custom-select-wrapper {
    position: relative;
}

.custom-select-analytics {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: white;
    font-size: 1rem;
    color: #495057;
    transition: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
}

.custom-select-analytics:focus {
    outline: none;
    border-color: #36b9cc;
    box-shadow: 0 0 0 3px rgba(54, 185, 204, 0.1);
}

.analytics-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.analytics-stat-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fc);
    border-radius: 16px;
    padding: 1.5rem;
    transition: none;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.analytics-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 16px 16px 0 0;
}

.analytics-stat-card:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.connection-created::before {
    background: linear-gradient(90deg, #4e73df, #224abe);
}

.connection-closed::before {
    background: linear-gradient(90deg, #1cc88a, #13855c);
}

.service-created::before {
    background: linear-gradient(90deg, #f6c23e, #dda20a);
}

.service-closed::before {
    background: linear-gradient(90deg, #e74a3b, #c0392b);
}

.stat-card-content {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.stat-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    margin-right: 1rem;
    flex-shrink: 0;
}

.connection-created .stat-card-icon {
    background: linear-gradient(135deg, #4e73df, #224abe);
}

.connection-closed .stat-card-icon {
    background: linear-gradient(135deg, #1cc88a, #13855c);
}

.service-created .stat-card-icon {
    background: linear-gradient(135deg, #f6c23e, #dda20a);
}

.service-closed .stat-card-icon {
    background: linear-gradient(135deg, #e74a3b, #c0392b);
}

.stat-card-info {
    flex: 1;
}

.stat-card-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-card-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.5px;
}

.stat-card-progress {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-line {
    height: 100%;
    border-radius: 3px;
    width: 0%;
    transition: none;
    position: relative;
    overflow: hidden;
}

.progress-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 20px 20px;
    animation: none;
}

.connection-created-progress {
    background: linear-gradient(90deg, #4e73df, #224abe);
}

.connection-closed-progress {
    background: linear-gradient(90deg, #1cc88a, #13855c);
}

.service-created-progress {
    background: linear-gradient(90deg, #f6c23e, #dda20a);
}

.service-closed-progress {
    background: linear-gradient(90deg, #e74a3b, #c0392b);
}

.analytics-hint {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    color: white;
}

.hint-content {
    display: flex;
    align-items: center;
}

.hint-icon {
    font-size: 1.25rem;
    margin-right: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.hint-text {
    font-size: 0.95rem;
    line-height: 1.4;
}

.hint-text strong {
    color: white;
}

.analytics-chart-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    min-height: 450px;
    position: relative;
}

.analytics-chart-container canvas {
    min-height: 400px !important;
    height: 400px !important;
}

.analytics-loading {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 16px;
    border: 1px solid #e9ecef;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #36b9cc;
    border-radius: 50%;
    animation: none;
}

.loading-text {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
}


/* Адаптивность для аналитики */
@media (max-width: 992px) {
    .analytics-filters {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .analytics-stats {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .analytics-filters {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .analytics-header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .analytics-icon {
        margin-right: 0;
    }
    
    .analytics-body {
        padding: 1.5rem;
    }
    
    .analytics-filters {
        padding: 1rem;
    }
    
    .analytics-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card-content {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-card-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .analytics-chart-container {
        padding: 1rem;
    }
}

/* =================================================================
   СТИЛИ ДЛЯ SIDEBAR TOGGLE ФУНКЦИОНАЛЬНОСТИ
   ================================================================= */

/* Стили для свернутого sidebar в десктопе */

/* =================================================================
   СОВРЕМЕННЫЙ ДИЗАЙН ГЕНЕРАТОРА ПАРОЛЕЙ
   ================================================================= */

.modern-password-card {
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #f8f9fc);
    border: none !important;
}

.modern-password-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.modern-password-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: none;
}

.password-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.password-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-right: 1.5rem;
}

.password-info {
    flex: 1;
}

.password-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.password-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0.25rem 0 0 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.password-stats {
    text-align: center;
    color: white;
}

.stats-count {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.password-stats small {
    font-size: 0.8rem;
    opacity: 0.9;
    text-transform: none;
    letter-spacing: 0.5px;
}

.modern-password-body {
    padding: 2.5rem;
}

.password-generator-section {
    text-align: center;
    margin-bottom: 2rem;
}

.btn-password-generate {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    text-transform: none;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.btn-password-generate:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: none;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    color: white;
}

.btn-password-generate:active {
    transform: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.password-result-section {
    margin-top: 2rem;
}

.password-result-card {
    background: linear-gradient(145deg, #f8f9fc, #ffffff);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: none;
}

.password-result-card:hover {
    transform: none;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.password-result-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    color: #667eea;
    font-weight: 600;
    font-size: 1.1rem;
}

.password-result-header i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.password-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: none;
}

.password-display:hover {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.password-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
    user-select: all;
}

.btn-copy-password {
    background: linear-gradient(135deg, #36b9cc, #258391);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: none;
    font-size: 1.1rem;
}

.btn-copy-password:hover {
    background: linear-gradient(135deg, #258391, #36b9cc);
    transform: none;
    box-shadow: 0 4px 15px rgba(54, 185, 204, 0.4);
}

.password-strength {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.strength-bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    background: linear-gradient(90deg, #1cc88a, #13855c);
    width: 85%;
    border-radius: 4px;
    transition: none;
}

.strength-text {
    color: #1cc88a;
    font-weight: 600;
    font-size: 0.9rem;
}

.password-placeholder {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

.placeholder-icon {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.placeholder-text {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
}

/* Password Info Cards */
.password-info-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: none;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.password-info-card:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin: 0 auto 1rem auto;
}

.info-card-icon.security {
    background: linear-gradient(135deg, #1cc88a, #13855c);
}

.info-card-icon.speed {
    background: linear-gradient(135deg, #f6c23e, #dda20a);
}

.info-card-icon.usage {
    background: linear-gradient(135deg, #36b9cc, #258391);
}

.password-info-card h6 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.password-info-card p {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .password-header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .password-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .password-info {
        order: 2;
    }
    
    .password-stats {
        order: 3;
    }
    
    .modern-password-body {
        padding: 1.5rem;
    }
    
    .password-result-card {
        padding: 1.5rem;
    }
    
    .password-display {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .password-value {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .password-strength {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Анимация shimmer для заголовка */

/* Пульсация для кнопки копирования */

.btn-copy-password.copied {
    animation: none;
    background: linear-gradient(135deg, #1cc88a, #13855c) !important;
}

/* Улучшенные эффекты наведения */
.modern-password-card:hover {
    transform: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Дополнительные эффекты */
.password-value {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-password-generate:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.btn-copy-password:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(54, 185, 204, 0.3);
}

@media (max-width: 768px) {
    .detail-item .col-md-4,
    .detail-item .col-md-8 {
        margin-bottom: 0.5rem;
    }
}

/* =================================================================
   СТИЛИ ДЛЯ СПИСКА УСЛУГ
   ================================================================= */

.services-list {
    background: rgba(0, 123, 255, 0.03);
    border: 1px solid rgba(0, 123, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
}

.service-item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    padding: 8px 12px;
    transition: none;
}

.service-item:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 123, 255, 0.2);
}

.service-info .badge {
    font-size: 0.85rem;
    padding: 6px 10px;
}

.service-price .badge {
    font-size: 0.8rem;
    font-weight: 600;
}

.services-list .border-top {
    border-color: rgba(0, 123, 255, 0.2) !important;
}

/* Компактная версия для отображения в заявках */
.services-list.compact .service-item {
    padding: 4px 8px;
    margin-bottom: 4px;
}

.services-list.compact .service-info .badge {
    font-size: 0.75rem;
    padding: 4px 8px;
}

.services-list.compact .service-price .badge {
    font-size: 0.7rem;
    padding: 2px 6px;
}

/* Специальные стили для очень компактного вывода в заявках */
.service-item-compact {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    padding: 6px 8px;
    transition: none;
}

.service-item-compact:hover {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 123, 255, 0.2);
}

.service-info-compact .badge {
    font-size: 0.7rem;
    padding: 3px 6px;
}

.service-info-compact small {
    margin-top: 2px;
    line-height: 1.2;
}

.action-buttons-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* Уменьшенные отступы для мобильных устройств (на 30%) */
@media (max-width: 768px) {
    .services-list {
        padding: 8px; /* было 12px */
    }
    
    .service-item {
        padding: 5px 8px; /* было 8px 12px */
        margin-bottom: 5px; /* было 8px */
    }
    
    .service-item-compact {
        padding: 4px 6px; /* было 6px 8px */
        margin-bottom: 3px; /* было 4px */
    }
    
    .services-list.compact .service-item {
        padding: 3px 6px; /* было 4px 8px */
        margin-bottom: 3px; /* было 4px */
    }
    
    .service-info .badge,
    .service-info-compact .badge {
        font-size: 0.65rem; /* уменьшено */
        padding: 2px 5px; /* уменьшено */
    }
    
    .service-price .badge {
        font-size: 0.6rem; /* уменьшено */
        padding: 1px 4px; /* уменьшено */
    }

}

/* =================================================================
   СТИЛИ ДЛЯ КЛИКАБЕЛЬНЫХ СТАТИСТИЧЕСКИХ БЛОКОВ
   ================================================================= */

.clickable-stat {
    display: flex;
    text-decoration: none;
    color: inherit;
    transition: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.clickable-stat:hover {
    text-decoration: none;
    color: inherit;
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.clickable-stat:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    pointer-events: none;
}

.clickable-stat:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.25);
}

/* Специальные эффекты для подключений */
.clickable-stat.connection-stat:hover {
    background: linear-gradient(135deg, rgba(78, 115, 223, 0.05), rgba(78, 115, 223, 0.02));
    border-left: 4px solid #4e73df;
}

/* Специальные эффекты для сервисных заявок */
.clickable-stat.service-stat:hover {
    background: linear-gradient(135deg, rgba(246, 194, 62, 0.05), rgba(246, 194, 62, 0.02));
    border-left: 4px solid #f6c23e;
}

/* Анимация для иконок в кликабельных блоках */
.clickable-stat:hover .stat-icon i {
    transform: none;
    transition: none;
}

/* Улучшенная анимация для прогресс-баров */
.clickable-stat:hover .progress-bar {
    animation: none;
}


/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .clickable-stat:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

/* =================================================================
   СТИЛИ ДЛЯ КЛИКАБЕЛЬНЫХ АНАЛИТИЧЕСКИХ КАРТОЧЕК
   ================================================================= */

.clickable-analytics-stat {
    text-decoration: none !important;
    color: inherit !important;
    transition: none;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.clickable-analytics-stat:hover {
    transform: none;
    text-decoration: none !important;
    color: inherit !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.clickable-analytics-stat:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    z-index: 1;
    border-radius: 12px;
}

.clickable-analytics-stat:focus {
    text-decoration: none !important;
    color: inherit !important;
    outline: 3px solid rgba(78, 115, 223, 0.3);
}

.clickable-analytics-stat.connection-created:hover {
    background: linear-gradient(135deg, rgba(78, 115, 223, 0.05), rgba(78, 115, 223, 0.1));
}

.clickable-analytics-stat.connection-closed:hover {
    background: linear-gradient(135deg, rgba(28, 200, 138, 0.05), rgba(28, 200, 138, 0.1));
}

.clickable-analytics-stat.service-created:hover {
    background: linear-gradient(135deg, rgba(246, 194, 62, 0.05), rgba(246, 194, 62, 0.1));
}

.clickable-analytics-stat.service-closed:hover {
    background: linear-gradient(135deg, rgba(231, 74, 59, 0.05), rgba(231, 74, 59, 0.1));
}

.clickable-analytics-stat:hover .stat-card-icon i {
    transform: none;
    transition: none;
}

.clickable-analytics-stat:hover .progress-line {
    box-shadow: 0 0 10px rgba(78, 115, 223, 0.3);
}

/* Мобильная адаптация для аналитических карточек */
@media (max-width: 768px) {
    .clickable-analytics-stat:hover {
        transform: none;
        box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    }
}


.ticket-description-wrapper {
    background-color: lightgoldenrodyellow;
    color: black;
    padding: 10px;
    border-radius: 8px;
}

/* =================================================================
   СТИЛИ ДЛЯ МОБИЛЬНОГО СВОРАЧИВАНИЯ ФИЛЬТРОВ
   ================================================================= */

/* Мобильная кнопка переключения фильтров */
.mobile-filters-toggle {
    display: none;
}

@media (max-width: 768px) {
    .mobile-filters-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: white;
        padding: 0.75rem 1.5rem;
        border-radius: 25px;
        font-weight: 500;
        backdrop-filter: blur(10px);
        transition: none;
        font-size: 0.9rem;
        text-transform: none;
        letter-spacing: 0.5px;
        cursor: pointer;
    }

    .mobile-filters-toggle:hover {
        background: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.5);
        color: white;
        transform: none;
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    }

    .mobile-filters-toggle .toggle-icon {
        transition: none;
        font-size: 1rem;
        margin-left: 0.5rem;
    }

    .mobile-filters-toggle.collapsed .toggle-icon {
        transform: none;
    }

    /* Скрываем основной блок экспорта на мобильных */
    .analytics-export {
        display: none !important;
    }

    /* Скрываем фильтры по умолчанию на мобильных */
    .analytics-body {
        display: none;
    }

    .analytics-body.show {
        display: block;
        animation: none;
    }
}

/* =================================================================
DROPDOWN MENU POSITIONING FIX
   ================================================================= */

/* Dropdown menu that appears above the button */
.dropdown-menu-up {
    position: absolute !important;
    top: auto !important;
    bottom: 100% !important;
    left: 0 !important;
    z-index: 1050 !important;
    margin-bottom: 0.125rem !important;
    transform: none;
}

/* Fix for dropdowns in overflow containers */
.dropdown {
    position: static !important;
}

.dropdown-menu {
    z-index: 1050 !important;
    position: absolute !important;
}

/* Ensure dropdowns appear above card content */
.ticket-card {
    overflow: visible !important;
}

.ticket-card .dropdown-menu {
    z-index: 1051 !important;
}

/* =================================================================
   FAVORITES VISUAL INDICATORS
   ================================================================= */

/* Favorite star in ticket header */
.ticket-title .fa-star {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    animation: none;
}


/* Favorite button states in dropdown */
.dropdown-item.favorite-toggle-btn:hover {
    background-color: #fff3cd !important;
    color: #856404 !important;
}

.dropdown-item.favorite-toggle-btn:hover .fa-star {
    color: #ffc107 !important;
}

/* ИЗБРАННЫЕ ЗАЯВКИ */
.who-add-to-favorite {
    color: white;
    font-weight: bold;
    font-size: 14px;
}

/* =================================================================
   TOPBAR NOTIFICATIONS SCROLLABLE
   ================================================================= */

/* Scroll for topbar dropdown notifications */
.topbar .dropdown-list {
    max-height: 350px !important; /* Высота для показа примерно 3-х элементов */
    overflow-y: auto;
    overflow-x: hidden;
}

/* Кастомная полоса прокрутки для dropdown уведомлений */
.topbar .dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.topbar .dropdown-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.topbar .dropdown-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.topbar .dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Скрываем прокрутку в Firefox */
.topbar .dropdown-list {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* Отступы для элементов в dropdown с прокруткой */
.topbar .dropdown-list .dropdown-item:first-child {
    border-top: none;
}

.topbar .dropdown-list .dropdown-item:last-child {
    border-bottom: none;
}

/* =================================================================
   СТИЛИ ДЛЯ ПАНЕЛИ РУКОВОДИТЕЛЕЙ
   ================================================================= */

/* Анимированные карточки статистики */
.management-stats-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: none;
    transition: none;
    position: relative;
    overflow: hidden;
}

.management-stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    transition: none;
}

.management-stats-card.primary::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.management-stats-card.success::before {
    background: linear-gradient(135deg, #1cc88a 0%, #13855c 100%);
}

.management-stats-card.info::before {
    background: linear-gradient(135deg, #36b9cc 0%, #258391 100%);
}

.management-stats-card.warning::before {
    background: linear-gradient(135deg, #f6c23e 0%, #dda20a 100%);
}

.management-stats-card:hover {
    transform: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.management-stats-card:hover::before {
    width: 8px;
}

/* Статистические числа с анимацией */
.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: none;
}

.stats-number.success {
    background: linear-gradient(135deg, #1cc88a 0%, #13855c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-number.info {
    background: linear-gradient(135deg, #36b9cc 0%, #258391 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-number.warning {
    background: linear-gradient(135deg, #f6c23e 0%, #dda20a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-number:hover {
    transform: none;
}

/* Иконки статистики */
.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: none;
}

.stats-icon.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stats-icon.success {
    background: linear-gradient(135deg, #1cc88a 0%, #13855c 100%);
    color: white;
}

.stats-icon.info {
    background: linear-gradient(135deg, #36b9cc 0%, #258391 100%);
    color: white;
}

.stats-icon.warning {
    background: linear-gradient(135deg, #f6c23e 0%, #dda20a 100%);
    color: white;
}

.stats-icon:hover {
    transform: none;
}

/* Карточки сотрудников */
.employee-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: none;
    transition: none;
    position: relative;
    overflow: hidden;
}

.employee-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: none;
}

.employee-card:hover {
    transform: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.employee-card:hover::before {
    height: 8px;
}

/* Аватар сотрудника */
.employee-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: none;
}

.employee-avatar:hover {
    transform: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Значки групп */
.group-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
    border: none;
    transition: none;
}

.group-badge.engineer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.group-badge.linear {
    background: linear-gradient(135deg, #1cc88a 0%, #13855c 100%);
}

.group-badge:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Значки счетчиков */
.count-badge {
    background: linear-gradient(135deg, #36b9cc 0%, #258391 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    min-width: 40px;
    text-align: center;
    transition: none;
}

.count-badge.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.count-badge.success {
    background: linear-gradient(135deg, #1cc88a 0%, #13855c 100%);
}

.count-badge.info {
    background: linear-gradient(135deg, #36b9cc 0%, #258391 100%);
}

.count-badge.warning {
    background: linear-gradient(135deg, #f6c23e 0%, #dda20a 100%);
}

.count-badge:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Кнопки действий */
.action-btn-management {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn-management:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    color: white;
    text-decoration: none;
    transform: none;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* Фильтры дат */
.date-filter-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #e9ecef 100%);
    border: 2px solid #667eea;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: none;
}

.date-filter-card:hover {
    transform: none;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
}

/* График активности */
.chart-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

/* Анимации появления */


/* Пульсирующая анимация для важных элементов */

.pulse-animation {
    animation: none;
}

/* Модальные окна */
.management-modal .modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.management-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1.5rem;
}

.management-modal .modal-body {
    padding: 2rem;
}

.management-modal .modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

/* Дополнительные стили для таблиц */
.management-table-wrapper {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.management-table-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border: none;
}

.management-table-body {
    padding: 1.5rem;
}

.employee-table .table thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    padding: 1rem 0.75rem;
}

.employee-table .table tbody td {
    padding: 1rem 0.75rem;
    border-top: 1px solid #f0f0f0;
    vertical-align: middle;
}

.employee-table .table tbody tr {
    transition: none;
}

.employee-table .table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #e9ecef 100%);
    transform: none;
}

/* Responsive стили */
@media (max-width: 768px) {
    .management-stats-card {
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .stats-icon {
        width: 50px;
        height: 50px;
    }
    
    .employee-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .employee-avatar {
        width: 50px;
        height: 50px;
    }
    
    .chart-container {
        padding: 1rem;
    }
}
/* Отключение всех анимаций FontAwesome */
.fa-spin, .fa-pulse {
    animation: none !important;
    -webkit-animation: none !important;
}
