

/* Start:/local/components/ekos/ratings/templates/.default/style.css?177807531515504*/
/* ============================================
   ОСНОВНЫЕ СТИЛИ СТРАНИЦЫ
   ============================================ */

.ratings-page {
    background-color: #f8f9fa;
}

.rating-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rating-title {
    color: #2c3e50;
    font-size: 1.75rem;
    font-weight: 600;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.5rem;
}

/* ============================================
   ТАБЛИЦА РЕЙТИНГОВ
   ============================================ */

.rating-table {
    margin-bottom: 0;
}

.rating-table thead {
    background-color: #f8f9fa;
}

.rating-table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    padding: 1rem 0.75rem;
    vertical-align: middle;
}

.rating-table tbody tr {
    transition: background-color 0.2s ease;
}

.rating-table tbody tr:hover {
    background-color: #f1f3f5;
}

.rating-table tbody td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
}

.company-name {
    font-weight: 500;
    color: #2c3e50;
}

/* ============================================
   БЕЙДЖИ ИНДЕКСОВ
   ============================================ */

.badge-index {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    font-weight: 600;
    min-width: 50px;
    display: inline-block;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-info {
    background-color: #17a2b8;
    color: white;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-secondary {
    background-color: #6c757d;
    color: white;
}

.margin-value {
    font-weight: 600;
    color: #27ae60;
}

/* ============================================
   СОРТИРОВКА ТАБЛИЦ
   ============================================ */

.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background-color 0.2s ease;
}

.sortable:hover {
    background-color: #f1f8ff !important;
}

.sortable:hover .sort-icon {
    color: #3498db;
}

.sort-icon {
    display: inline-block;
    margin-left: 5px;
    font-size: 12px;
    color: #6c757d;
    transition: color 0.3s ease;
    font-weight: bold;
}

.info-icon {
    cursor: help;
    margin-left: 5px;
    font-size: 0.9em;
}

/* Подсветка отсортированного столбца */
.rating-table thead th.sorted-column {
    background-color: #e3f2fd !important;
    border-bottom: 3px solid #3498db !important;
    font-weight: 700 !important;
    position: relative;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.rating-table thead th.sorted-column::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #3498db;
}

/* Для комплексного рейтинга */
.rating-table thead th.sorted-column.comprehensive-sort {
    background-color: #fff3e0 !important;
    border-bottom-color: #e67e22 !important;
}

.rating-table thead th.sorted-column.comprehensive-sort::after {
    background: #e67e22;
}

/* ============================================
   КНОПКА АНАЛИЗА
   ============================================ */

.btn-analysis {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}
.btn-analysis.free {
    background-color: #77db34;
}
.btn-analysis:hover {
    background-color: #2980b9;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btn-analysis.free:hover {
   background-color: #88d653;
}
/* ============================================
   СРЕДНИЕ ЗНАЧЕНИЯ
   ============================================ */

.average-stats-compact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    font-size: 0.9rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #dee2e6;
    animation: fadeInDown 0.3s ease-out;
}

.average-stats-compact .stats-label {
    font-weight: 600;
    color: #495057;
    margin-right: 8px;
    font-size: 0.95rem;
    white-space: nowrap;
}

.average-stats-compact .stat-item {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    cursor: help;
}

.average-stats-compact .stat-item:hover {
    border-color: #3498db;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.15);
    transform: translateY(-1px);
}

.average-stats-compact .stat-item strong {
    color: #3498db;
    margin-right: 4px;
    font-weight: 600;
    font-size: 0.85rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ФИЛЬТРЫ
   ============================================ */

.filters-card {
    margin-bottom: 1.5rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.filters-header {
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    transition: background-color 0.3s ease;
}

.filters-header:hover {
    background-color: #e9ecef;
}

.filters-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.filters-content.show {
    max-height: 1000px;
}

/* ============================================
   СПЕЦИАЛИЗИРОВАННЫЕ РЕЙТИНГИ
   ============================================ */

.quick-ratings-card {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    background: #ffffff;
}

.quick-ratings-card .card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    color: #2c3e50;
    padding: 1.25rem 1.5rem;
}

.quick-ratings-card .card-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e50;
}

.quick-ratings-card .card-header h5 i {
    color: #6c757d;
    margin-right: 0.5rem;
}

.quick-ratings-card .card-header p {
    color: #6c757d;
    line-height: 1.5;
}

.btn-quick-rating {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #dee2e6;
    border-radius: 6px;
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    display: block;
    height: 100%;
    min-height: 180px;
    position: relative;
}

.btn-quick-rating:hover {
    border-color: #3498db;
    background: #f8f9ff;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.15);
}

.btn-quick-rating.active {
    border-color: #3498db;
    border-width: 2px;
    background: #f0f7ff;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.btn-quick-rating.active::before {
    content: '✓';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
}

.btn-quick-rating .rating-icon {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    line-height: 1;
    opacity: 0.9;
}

.btn-quick-rating .rating-name {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.btn-quick-rating .rating-desc {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.btn-quick-rating .rating-criteria {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
    text-align: left;
}

.btn-quick-rating .rating-criteria small {
    color: #495057;
    line-height: 1.6;
    display: block;
    font-size: 0.8rem;
}

.active-rating-info {
    padding: 0.875rem 1.125rem;
    background-color: #f0f7ff;
    border-radius: 4px;
    border: 1px solid #d1e7fd;
    font-size: 0.9rem;
}

.active-rating-info i.fa-check-circle {
    margin-right: 0.5rem;
}

.active-rating-info #activeRatingName {
    color: #2c3e50;
    font-weight: 500;
}

.active-rating-info .btn-outline-secondary {
    font-size: 0.85rem;
    padding: 0.375rem 0.75rem;
    border-color: #6c757d;
    color: #6c757d;
}

.active-rating-info .btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

/* ============================================
   ПОДСВЕТКА СТРОК ПО ТИПУ РЕЙТИНГА
   ============================================ */

.highlight-investment {
    background-color: #e8f4f8 !important;
    border-left: 3px solid #3498db;
}

.highlight-investment:hover {
    background-color: #d4ebf4 !important;
}

.highlight-counterparty {
    background-color: #e8f8e8 !important;
    border-left: 3px solid #27ae60;
}

.highlight-counterparty:hover {
    background-color: #d4f1d4 !important;
}

.highlight-banking {
    background-color: #fef5e7 !important;
    border-left: 3px solid #f39c12;
}

.highlight-banking:hover {
    background-color: #fcecd0 !important;
}

.highlight-comprehensive {
    background-color: #f4ecf7 !important;
    border-left: 3px solid #8e44ad;
}

.highlight-comprehensive:hover {
    background-color: #ead9f0 !important;
}

/* ============================================
   ИНДИКАТОР ЗАГРУЗКИ ТАБЛИЦ
   ============================================ */

.table-loading-indicator {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 40px;
}

.table-loading-indicator .circle-container {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #f0f0f0;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

.table-loading-indicator .circle-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgb(202, 202, 202);
    animation: fillAndDrain 4s infinite linear;
}

.table-loading-indicator .loading-logo {
    position: absolute;
    top: 22px;
    left: 5px;
    animation: changeColor 4s infinite linear;
}

.table-loading-indicator .loading-indicator-text {
    text-align: center;
    margin-top: 20px;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.table-wrapper {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.table-wrapper.loaded {
    opacity: 1;
}

@keyframes fillAndDrain {
    0% { height: 0; }
    50% { height: 100%; }
    100% { height: 0; }
}

@keyframes changeColor {
    0% { fill: #f0f0f0; }
    50% { fill: #000000; }
    100% { fill: #f0f0f0; }
}

/* ============================================
   МЕТОДОЛОГИЯ
   ============================================ */

.methodology-card {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.methodology-header {
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    transition: background-color 0.3s ease;
}

.methodology-header:hover {
    background-color: #e9ecef;
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 1.5rem;
    line-height: 1;
}

.toggle-icon.rotated {
    transform: rotate(45deg);
}

.methodology-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.methodology-content.show {
    max-height: 1000px;
}

.methodology-content .card-body h5 {
    color: #2c3e50;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.methodology-content .card-body h5:first-child {
    margin-top: 0;
}

.methodology-content .card-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

@media (max-width: 1400px) {
    .average-stats-compact {
        gap: 10px;
        padding: 10px 14px;
    }
    
    .average-stats-compact .stat-item {
        padding: 4px 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 1200px) {
    .average-stats-compact {
        gap: 8px;
        padding: 8px 12px;
    }
    
    .average-stats-compact .stat-item {
        padding: 3px 8px;
        font-size: 0.8rem;
    }
    
    .average-stats-compact .stats-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .rating-section .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }
    
    .rating-title {
        margin-bottom: 0;
        font-size: 1.5rem;
    }
    
    .average-stats-compact {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .average-stats-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 12px;
    }
    
    .average-stats-compact .stats-label {
        width: 100%;
        margin-bottom: 4px;
        font-size: 0.9rem;
    }
    
    .average-stats-compact .stat-item {
        margin: 0;
    }
    
    .rating-table {
        font-size: 0.9rem;
    }
    
    .badge-index {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .sort-icon {
        font-size: 10px;
    }
    
    .btn-analysis {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .btn-quick-rating {
        min-height: 160px;
        padding: 1rem 0.75rem;
    }
    
    .btn-quick-rating .rating-icon {
        font-size: 1.8rem;
    }
    
    .btn-quick-rating .rating-name {
        font-size: 0.95rem;
    }
    
    .btn-quick-rating .rating-desc {
        font-size: 0.8rem;
    }
    
    .btn-quick-rating .rating-criteria small {
        font-size: 0.75rem;
    }
    
    .active-rating-info {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .average-stats-compact {
        font-size: 0.85rem;
    }
    
    .average-stats-compact .stat-item {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
}
/* End */
/* /local/components/ekos/ratings/templates/.default/style.css?177807531515504 */
