

/* Start:/local/components/ekos/region.neighbors/templates/.default/style.css?17920712665085*/
/* ==========================================================
   Панель «Соседи»
========================================================== */
.neighbors-panel {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ==========================================================
   Шапка раздела (заголовок + кнопка возврата)
========================================================== */
.neighbors-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eb202a;
}

.neighbors-header-left {
    flex: 1 1 auto;
    min-width: 0;
}

.neighbors-header-left .stats-panel-title {
    margin: 0 0 6px;
    padding: 0;
    border: none;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
}

.neighbors-header-left .text-muted {
    font-size: 0.9rem;
}

.neighbors-header-right {
    flex: 0 0 auto;
}

/* Кнопка возврата */
.btn-back-to-region {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #fff;
    color: #2c3e50;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-back-to-region:hover {
    background: #eb202a;
    color: #fff;
    border-color: #eb202a;
    text-decoration: none;
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(235, 32, 42, 0.25);
}

.btn-back-to-region svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.btn-back-to-region:hover svg {
    transform: translateX(-2px);
}

/* ==========================================================
   Таблица сравнения
========================================================== */
.neighbors-table {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.neighbors-table thead th {
    background: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 2px solid #eb202a;
    vertical-align: middle;
    font-size: 0.85rem;
    line-height: 1.3;
}

.neighbors-table tbody td {
    vertical-align: middle;
    font-size: 0.9rem;
}

.neighbors-table tbody tr:hover {
    background: #fdf0f0;
}

/* Строки-заголовки групп */
.neighbors-table .neighbors-group-row td {
    border: none;
}

/* Липкий первый столбец при горизонтальной прокрутке */
.neighbors-table td:first-child,
.neighbors-table th:first-child {
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.04);
}

/* ==========================================================
   Табы графиков
========================================================== */
#neighborsChartsTabs {
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0;
    margin-top: 10px;
}

#neighborsChartsTabs .nav-link {
    border: none;
    background: transparent;
    color: #666;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 18px;
    border-radius: 6px 6px 0 0;
    margin-bottom: -1px;
    transition: all 0.2s ease;
}

#neighborsChartsTabs .nav-link:hover {
    color: #2c3e50;
    background: #f8f9fa;
}

#neighborsChartsTabs .nav-link.active {
    color: #2c3e50;
    background: #fff;
    border-bottom: 3px solid #eb202a;
    box-shadow: 0 -3px 6px rgba(0, 0, 0, 0.02);
}

#neighborsChartsContent .tab-pane canvas {
    min-height: 350px;
    width: 100% !important;
}

/* ==========================================================
   МОБИЛЬНАЯ ВЕРСИЯ (объединённый media query)
========================================================== */
@media (max-width: 768px) {

    /* Панель */
    .neighbors-panel {
        padding: 15px 10px;
    }

    /* Шапка */
    .neighbors-header {
        flex-direction: column;
        align-items: stretch;
    }

    .neighbors-header-right {
        width: 100%;
    }

    .btn-back-to-region {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
    }

    .neighbors-header-left .stats-panel-title {
        font-size: 1.15rem;
    }

    /* Таблица */
    .neighbors-table {
        font-size: 0.78rem;
    }

    .neighbors-table thead th,
    .neighbors-table tbody td {
        padding: 6px 4px;
    }

    .neighbors-table thead th {
        min-width: 100px !important;
    }

    /* Табы графиков */
    #neighborsChartsTabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    #neighborsChartsTabs .nav-link {
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 0.78rem;
    }

    #neighborsChartsContent .tab-pane canvas {
        min-height: 280px;
    }
}
/* End */
/* /local/components/ekos/region.neighbors/templates/.default/style.css?17920712665085 */
