/* Dashboard - Diseño Moderno */

.dashboard-filters{
    padding: 0 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.dashboard-filters .filters-card{
    margin: 0;
    padding: 12px 25px;
    width: fit-content;
}

.dashboard-grid{
    display: flex;
    gap: 15px;
    padding: 0 15px 15px;
    flex-wrap: wrap;
    align-items: flex-start;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

.chart-card{
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    padding: 15px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.chart-card:hover{
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.chart-card-large{
    flex: 0 0 auto;
    width: 540px;
    min-height: 280px;
    max-height: 280px;
}

.chart-card-medium{
    flex: 0 0 auto;
    width: 340px;
    min-height: 280px;
    max-height: 280px;
}

.chart-card-small{
    flex: 0 0 auto;
    width: 340px;
    min-height: 280px;
    max-height: 280px;
    position: relative;
    overflow: hidden;
}

.chart-card-header{
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 2px solid #f1f3f5;
    min-height: 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chart-card-title{
    font-size: 15px;
    font-weight: 600;
    color: var(--color1);
    margin: 0 0 3px 0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.chart-card-subtitle{
    font-size: 12px;
    color: #6c757d;
    margin: 0;
    font-weight: 400;
}

.chart-card-body{
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chart-card-body canvas{
    max-height: 100%;
}

/* Chart Filters */
.chart-filters{
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 8px;
}

.radio-option{
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 12px;
    color: #495057;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.radio-option:hover{
    background-color: #f8f9fa;
}

.radio-option input[type="radio"]{
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--color1);
}

.radio-option span{
    cursor: pointer;
}

/* Donut Chart */
.chart-donut-box{
    max-width: 130px;
    margin: 0 auto 8px;
}

.chart-card-small .chart-card-body{
    display: flex;
    flex-direction: column;
    position: relative;
    flex: 1;
}

.chart-donut-legends{
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    font-size: 11px;
    color: #495057;
    margin-bottom: 0;
    flex: 0 0 40%;
}

.chart-donut-legend{
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-donut-legend-box{
    height: 10px;
    width: 18px;
    border-radius: 3px;
    flex-shrink: 0;
}

.chart-donut-data-row{
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.chart-donut-additional-data-box{
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 11px;
    color: #2c3e50;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    flex: 0 0 50%;
    justify-content: center;
}

.chart-donut-additional-data{
    display: flex;
    gap: 6px;
}

.chart-donut-no-data{
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #adb5bd;
    text-align: center;
}

.chart-donut-no-data-icon{
    font-size: 48px;
}

.chart-donut-no-data-text{
    font-size: 15px;
    font-weight: 500;
    max-width: 250px;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-grid{
        padding: 0 10px 10px;
        gap: 15px;
    }
    
    .chart-card{
        padding: 15px;
    }
    
    .chart-card-title{
        font-size: 14px;
    }
    
    .chart-card-subtitle{
        font-size: 12px;
    }
}
