/* Основные стили для плагина Fin Debt Receivable */
.fdr-container {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #242424;
    box-sizing: border-box;
}

.fdr-main-area {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.fdr-chart-container {
    flex: 1;
    min-width: 300px;
}

.fdr-controls-container {
    flex: 0 0 350px;
    min-width: 300px;
}

.fdr-chart-header {
    margin-bottom: 20px;
    border-bottom: 2px solid #f1f2f6;
    padding-bottom: 15px;
}

.fdr-chart-header h4 {
    color: #242424;
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.fdr-controls-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fdr-control {
    margin-bottom: 0;
}

.fdr-control label {
    color: #242424;
    font-size: 14px;
    font-weight: 500;
}

.fdr-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #dfe6e9, #b2bec3);
    outline: none;
    opacity: 0.9;
    transition: opacity .2s;
    margin: 0;
}

.fdr-slider:hover {
    opacity: 1;
}

.fdr-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: all 0.2s;
}

.fdr-slider::-webkit-slider-thumb:hover {
    background: #2980b9;
    transform: scale(1.1);
}

.fdr-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: all 0.2s;
}

.fdr-slider::-moz-range-thumb:hover {
    background: #2980b9;
    transform: scale(1.1);
}

#fdr-reset-btn {
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.2);
}

#fdr-reset-btn:hover {
    background: #2980b9 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.4);
}

#fdr-reset-btn:active {
    transform: translateY(0);
}

/* Стили для KPI панели */
#fdr-kpi .kpi-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
}

#fdr-kpi .kpi-item {
    flex: 1;
    min-width: 180px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

#fdr-kpi .kpi-item:nth-child(2) {
    border-left-color: #2ecc71;
}

#fdr-kpi .kpi-item:nth-child(3) {
    border-left-color: #e74c3c;
}

#fdr-kpi .kpi-item strong {
    color: #242424;
    font-size: 15px;
}

#fdr-kpi .kpi-item div {
    margin-bottom: 4px;
    font-size: 13px;
}

/* Информационная панель */
.fdr-info-panel {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.fdr-info-panel p {
    margin: 0 0 10px 0;
    font-weight: 600;
    color: #242424;
    font-size: 15px;
}

.fdr-info-panel ul {
    margin: 0;
    padding-left: 20px;
    color: #242424;
    font-size: 14px;
    line-height: 1.6;
}

.fdr-info-panel li {
    margin-bottom: 8px;
}

.fdr-info-panel li:last-child {
    margin-bottom: 0;
}

.fdr-info-panel li strong {
    color: #242424;
    font-weight: 600;
}

/* Заголовки */
.fdr-header h3 {
    text-align: center;
    color: #242424;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 22px;
}

.fdr-header p {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 15px;
}

.fdr-controls-container h4 {
    color: #242424;
    margin: 0 0 25px 0;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

/* Адаптивность */
@media (max-width: 992px) {
    .fdr-main-area {
        flex-direction: column;
    }
    
    .fdr-controls-container {
        flex: 1;
    }
    
    .fdr-chart-container {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .fdr-container {
        padding: 10px;
    }
    
    #fdr-kpi .kpi-item {
        min-width: 100%;
    }
    
    .fdr-chart-header div {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .fdr-controls-container {
        min-width: 100%;
    }
    
    .fdr-header h3 {
        font-size: 18px;
    }
    
    .fdr-chart-header h4 {
        font-size: 14px;
    }
}

.chartjs-render-monitor {
    max-width: 100%;
}

#fdr-chart {
    width: 100% !important;
    height: 100% !important;
}