

/* Start:/local/templates/dt2025/components/bitrix/news/countries/bitrix/news.detail/.default/style.css?17779039595859*/
/* local/templates/dt2025/components/bitrix/news/organization/bitrix/news.detail/.default/organization-detail.css */

/* Основные стили текста с градиентной маской */
#org-detail .text {
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    max-height: 400px;
    position: relative;
}

/* Градиентная маска для скрытого текста */
#org-detail .text:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, white);
    pointer-events: none;
}

/* Убираем градиент при раскрытии */
#org-detail .text.expanded::after {
    display: none;
}

#org-detail .text.expanded {
    max-height: none;
}

/* Иконки */
#org-detail .icon {
    display: inline-block;
    vertical-align: middle;
    width: 1em;
    height: 1em;
    fill: var(--bs-danger);
}

/* Элементы контактов */
#org-detail .content-element {
    border-bottom: var(--bs-gray-400) 1px solid;
}

#org-detail .content-element .text-wrap {
    color: var(--bs-gray-700);
}

/* Рекламные баннеры */
#org-detail .ads-item img {
    max-height: 30px;
}

/* Карта */
#org-detail #map-region {
    min-height: 400px;
}

/* Графики */
.graf {
    min-height: 300px;
}

/* Шрифты */
.font-family-serif {
    font-family: var(--bs-font-sans-serif);
}

/* Статус организации */
.status {
    height: fit-content;
}

.status .date {
    font-size: 0.7em;
    color: #6c757d;
}

/* Иконка голштинов */
.icon-holstein {
    width: 44px;
    height: 44px;
}

/* Стили для карточек-заголовков */
.card-title-catalog {
    border: 3px solid #dee2e6;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    background-color: #f8f9fa;
    padding: 1rem 1.25rem;
    margin-bottom: 0;
    display: inline-block;
    transition: all 0.2s ease;
    cursor: default;
}

.card-title-catalog.link {
    border-color: #eb202a;
    background-color: #fff;
    cursor: pointer;
}

.card-title-catalog.link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: rgba(235, 32, 42, 0.125) !important; /* #eb202a с 12.5% прозрачности */
}

.card-title-catalog h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    white-space: nowrap;
}

/* Контент карточек */
.card-content-catalog {
    border: 1px solid #dee2e6;
    border-radius: 0 12px 12px 12px;
    background-color: #fff;
    padding: 1.25rem;
    margin-top: -1px;
    transition: border-color 0.3s ease;
}

/* Подсветка верхней границы при наведении на вкладку */
.card-title-catalog.link:hover + .card-content-catalog,
.card-title-catalog.link:hover ~ .card-content-catalog {
    border-top-color: #eb202a !important;
}

/* Обертка карты */
.map-card-container {
    border-radius: 0 12px 12px 12px;
    overflow: hidden;
    min-height: 400px;
    border: 1px solid #dee2e6;
    margin-top: -1px;
}

/* Карточки показателей */
.indicator-card {
    background: #fff;
}

.indicator-card.link {
    display: block;
    transition: all 0.3s ease;
}

.indicator-card.link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Отступы между секциями */
.card-section {
    margin-bottom: 2rem;
}

/* Кнопки */
#org-detail .btn-outline-danger {
    border-color: var(--bs-danger);
    color: var(--bs-danger);
    transition: all 0.3s ease;
}

#org-detail .btn-outline-danger:hover {
    background-color: var(--bs-danger);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(235, 32, 42, 0.2);
}

/* Общие обертки */
#org-detail .wrap-border {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
}

/* Класс для JavaScript подсветки */
.highlight-border .card-content-catalog {
    border-top-color: #eb202a !important;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 576px) {
    .status {
        margin-bottom: 50px;
    }

    .card-section > .d-inline-block {
        display: block !important;
        width: 100% !important;
        margin-right: 0 !important;
    }
    
    a .card-title-catalog.link {
        display: block !important;
        width: 100% !important;
    }
    
    .card-title-catalog h3 {
        white-space: normal;
        font-size: 1.1rem;
    }
    
    .card-content-catalog {
        border-radius: 0 0 12px 12px;
    }
    
    .map-card-container {
        min-height: 300px;
    }
    
    #org-detail .text {
        max-height: 300px;
    }
    
    .card-title-catalog.link:hover {
        transform: translateY(-1px);
    }
}

/* Для очень маленьких экранов */
@media (max-width: 576px) {
    .status {
        margin-bottom: 30px;
    }
    .card-title-catalog {
        width: 100%;
        text-align: center;
        display: block;
    }

    .card-title-catalog.link {
        border-radius: 0;
    }
    
    .card-title-catalog h3 {
        white-space: normal;
        font-size: 1.1rem;
    }
    
    /* Убрать специфичные стили для 576px, использовать те же что и для 768px */
    .card-title-catalog {
        padding: 1rem 1.25rem; /* Вернуть отступы как на 768px */
    }
    
    .card-content-catalog {
        padding: 1.25rem; /* Вернуть отступы как на 768px */
    }
    
    #org-detail .text {
        max-height: 300px; /* Как на 768px */
    }
}
/* End */


/* Start:/local/components/ekos/region.indexes/templates/organization/../.default/style.css?17708794593998*/
/* Основные стили компонента */
.region-indexes-section {
    margin-top: 30px;
}

.region-indexes-card {
    background: white;
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.region-indexes-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #3498db;
}

.region-indexes-grid {
    margin-bottom: 15px;
}

.region-indexes-meta {
    margin-top: auto;
    padding-top: 15px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.region-indexes-meta small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.icon-info {
    stroke-width: 2;
    opacity: 0.7;
}

/* Обертка спидометра */
.speedometer-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Спидометр */
.speedometer {
    width: 120px;
    height: 120px;
    margin: 15px auto 10px;
    position: relative;
    background: radial-gradient(circle, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50%;
    border: 6px solid #dee2e6;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.speedometer-marks {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.speed-mark {
    position: absolute;
    width: 2px;
    height: 8px;
    background: #adb5bd;
    top: 8px;
    left: 50%;
    transform-origin: 50% 52px;
    border-radius: 1px;
}

.speed-mark-major {
    height: 12px;
    width: 3px;
    background: #6c757d;
}

.speed-needle {
    width: 3px;
    height: 45px;
    background: linear-gradient(to top, #eb202a, #ff4757);
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(var(--needle-rotation, -90deg));
    box-shadow: 0 0 8px rgba(235, 32, 42, 0.6);
    border-radius: 2px;
    transition: transform 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2;
}

.speed-center {
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, #eb202a, #c41820);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(235, 32, 42, 0.5);
    z-index: 3;
    border: 2px solid white;
}

.speed-value {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    z-index: 1;
}

.gauge-label {
    text-align: center;
    font-size: 0.8rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 5px;
    cursor: help;
}

/* Адаптивность */
@media (max-width: 991px) {
    .region-indexes-section {
        margin-top: 30px;
        padding-top: 20px;
    }
    
    .speedometer {
        width: 100px;
        height: 100px;
        margin: 10px auto;
    }
    
    .speed-needle {
        height: 38px;
    }
    
    .speed-mark {
        transform-origin: 50% 44px;
    }
}

@media (max-width: 767px) {
    .region-indexes-card {
        padding: 20px 15px;
    }
    
    .region-indexes-title {
        font-size: 1rem;
        margin-bottom: 20px;
    }
}

/* Анимация при загрузке */
@keyframes needleAppear {
    from {
        transform: translateX(-50%) rotate(-90deg);
    }
    to {
        transform: translateX(-50%) rotate(var(--needle-rotation));
    }
}

.speedometer.animated .speed-needle {
    animation: needleAppear 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}
/* End */


/* Start:/local/components/ekos/region.indexes/templates/organization/styles.css?17708846473186*/
/* Основной контейнер */


.org-indexes-card {
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.08),
        0 2px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid #e0e4e8;
    position: relative;
    overflow: hidden;
}

.org-indexes-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}


/* Сетка спидометров - Bootstrap 4 */
.org-indexes-card .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    margin-right: -10px;
    margin-left: -10px;
}

.org-indexes-card .row > [class*="col-"] {
    padding-right: 10px;
    padding-left: 10px;
    margin-bottom: 20px;
}

.org-index-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Стили для отрицательной маржи */
.speedometer.negative-margin .speed-needle {
    background: linear-gradient(to top, #ff6b6b, #ff8787);
}

.speedometer.negative-margin .speed-center {
    background: radial-gradient(circle, #ff6b6b, #fa5252);
}

.speedometer.negative-margin .speed-value {
    color: #e03131;
}

/* Метаинформация */
.org-indexes-meta {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #e9ecef;
    margin-top: 10px;
}

.org-indexes-meta small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #6c757d;
}

.icon-calendar {
    stroke-width: 2;
}

/* Анимация при загрузке */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.org-index-item {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.org-index-item:nth-child(1) { animation-delay: 0.1s; }
.org-index-item:nth-child(2) { animation-delay: 0.2s; }
.org-index-item:nth-child(3) { animation-delay: 0.3s; }
.org-index-item:nth-child(4) { animation-delay: 0.4s; }

/* Эффект при наведении */
.org-index-item:hover .speedometer {
    transform: scale(1.05);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.15),
        inset 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.speedometer {
    transition: all 0.3s ease;
}

/* Цветовые схемы для значений маржи */
.margin-positive .speed-value {
    color: #28a745;
}

.margin-negative .speed-value {
    color: #dc3545;
}

/* Bootstrap 4 адаптивность */
@media (max-width: 991px) {
    .org-indexes-card {
        padding: 30px 20px;
    }
}

@media (max-width: 767px) {
    .org-indexes-card {
        padding: 25px 15px;
    }
    
    .org-indexes-title {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }
}

@media (max-width: 576px) {
    .org-indexes-card .row > [class*="col-"] {
        width: 100%;
    }
}
/* End */
/* /local/templates/dt2025/components/bitrix/news/countries/bitrix/news.detail/.default/style.css?17779039595859 */
/* /local/components/ekos/region.indexes/templates/organization/../.default/style.css?17708794593998 */
/* /local/components/ekos/region.indexes/templates/organization/styles.css?17708846473186 */
