.dashboard-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-title {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.harga-section .section-title {
    color: #3c8dbc;
}

.produksi-section .section-title {
    color: #00a65a;
}

.dashboard-section .row {
    margin-bottom: 15px;
}

.stat-card {
    background: #fff;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3c8dbc;
}

.stat-card.produksi {
    border-left-color: #00a65a;
}

.stat-card h4 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
    font-weight: normal;
}

.stat-card .value {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
}

.stat-card .persentase {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
}

.stat-card .persentase.naik {
    color: #00a65a;
}

.stat-card .persentase.turun {
    color: #dd4b39;
}

.harga-kategori-card {
    background: #fff;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3c8dbc;
}

.harga-kategori-card h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: bold;
}

.harga-kategori-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.harga-kategori-table th,
.harga-kategori-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
}

.harga-kategori-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.harga-kategori-table .vs-cell {
    font-weight: bold;
}

.harga-kategori-table .vs-cell.naik {
    color: #00a65a;
}

.harga-kategori-table .vs-cell.turun {
    color: #dd4b39;
}

.harga-kategori-card .info-text {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

.pie-chart-container {
    position: relative;
    height: 380px;
    margin: 20px 0 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    max-height: 380px;
    overflow: hidden;
}

.pie-chart-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    clear: both;
}

.pie-chart-wrapper canvas {
    max-width: 100% !important;
    max-height: 380px !important;
}

.pie-chart-legend {
    margin-top: 0;
    margin-bottom: 10px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    clear: both;
    position: relative;
    z-index: 1;
}

.pie-chart-legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px 20px;
}

.pie-chart-legend-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #fff;
    border-radius: 4px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    font-size: 13px;
    line-height: 1.5;
}

.pie-chart-legend-item:hover {
    background: #f0f0f0;
    border-left-color: #3c8dbc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pie-chart-legend-color {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.pie-chart-legend-label {
    flex: 1;
    font-weight: 500;
    color: #333;
    min-width: 120px;
}

.pie-chart-legend-value {
    font-weight: 600;
    color: #2c3e50;
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
}

.pie-chart-legend-value .ton {
    color: #666;
    font-weight: 500;
    font-size: 12px;
}

.pie-chart-legend-value .percent {
    color: #00a65a;
    font-weight: 600;
    margin-left: 8px;
}

@media (max-width: 992px) {
    .pie-chart-legend-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 10px 15px;
    }
}

@media (max-width: 768px) {
    .pie-chart-container {
        height: 320px;
        min-height: 320px;
        max-height: 320px;
    }

    .pie-chart-legend {
        padding: 15px;
        margin-top: 20px;
    }

    .pie-chart-legend-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .pie-chart-legend-item {
        padding: 6px 10px;
        font-size: 12px;
    }

    .pie-chart-legend-color {
        width: 16px;
        height: 16px;
        margin-right: 10px;
    }

    .pie-chart-legend-label {
        min-width: 100px;
        font-size: 12px;
    }

    .pie-chart-legend-value {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .pie-chart-container {
        height: 280px;
        min-height: 280px;
        max-height: 280px;
    }
}