﻿body {
    background-color: #F6F6F6;
}

.icon-capacity {
    width: 50px;
    height: 50px;
    background-color: #FFEDE1;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .icon-capacity i {
        color: #FF6600;
        font-size: 30px;
    }

.icon-install {
    width: 50px;
    height: 50px;
    background-color: #F0FFE5;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .icon-install i {
        color: #378000;
        font-size: 30px;
    }

.icon-province {
    width: 50px;
    height: 50px;
    background-color: #D5E2FF;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .icon-province i {
        color: #2664EB;
        font-size: 30px;
    }

.dropdown-toggle.show {
    background-color: white !important;
    box-shadow: 0 2px 4px rgb(130, 130, 130, 0.20) !important;
    border: 1px solid #ced4da !important;
}

.dropdown-toggle {
    background-color: white;
    width: 100%;
    box-shadow: 0 2px 4px rgb(130, 130, 130, 0.20);
    color: #333333;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #ced4da;
    border-radius: 8px;
    text-align: left !important;
    padding-right: 2.25rem !important;
}

    .dropdown-toggle:hover,
    .dropdown-toggle:focus,
    .dropdown-toggle:active {
        background-color: white;
        box-shadow: 0 2px 4px rgb(130, 130, 130, 0.20);
        color: #666666;
    }

.dropdown-menu {
    font-family: 'Kanit', sans-serif;
    font-size: 14px;
}

    .dropdown-menu .form-check-label {
        font-family: inherit;
        font-size: inherit;
    }


    .dropdown-menu .dropdown-item:hover,
    .dropdown-menu .dropdown-item:focus {
        background-color: #FFEDE1;
        color: black;
    }

.dropdown-toggle::after {
    margin-left: auto;
}

.container-fluid {
    position: relative;
}

    .container-fluid::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 250px;
        background-color: #FFEDE1;
        z-index: -1;
    }

    .container-fluid > p:first-child {
        margin-top: 15px;
    }

.status-text {
    background-color: #E0F7CF;
    padding: 5px 10px;
    border: none;
    border-radius: 8px;
    text-align: center;
    margin-top: 15px;
    width: 100%;
    cursor: default;
    color: #5E5E5E;
    font-size: 14px;
    line-height: 1.5;
}

.circular-icon {
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

    .circular-icon.green {
        background-color: #66bb6a;
    }

    .circular-icon.blue {
        background-color: #5470c6;
    }

.installation-type-chart {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.province-card-body {
    padding-top: 6px !important;
    padding-bottom: 0 !important;
}

    .province-card-body #echart-top-province {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .province-card-body #top-province-list {
        margin-top: 2px !important;
        margin-inline: 1rem;
    }

#echart-solar-line,
#echart-compare-panel-inverter {
    width: 100% !important;
    max-width: 100%;
}


@media (min-width: 768px) and (max-width: 820px) {
    .row.gx-3.justify-content-between.d-flex {
        flex-direction: column-reverse;
    }

        .row.gx-3.justify-content-between.d-flex .col-md-4 {
            margin-top: 1rem;
            padding-right: 0.75rem !important;
        }

        .row.gx-3.justify-content-between.d-flex .col-md-8 {
            margin-bottom: 0;
        }

    .status-text {
        margin-top: 0.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    #echart-solar-line,
    #echart-compare-panel-inverter {
        height: 300px !important;
    }

    .card.h-md-100 {
        margin-bottom: 0.5rem;
    }

    .row.g-2 {
        row-gap: 0.5rem !important;
    }
}

#modalTop10Province .modal-dialog {
    margin: 1.75rem auto;
    max-width: 500px;
}

@media (max-width: 576px) {
    #modalTop10Province .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
        width: calc(100% - 2rem);
        height: auto;
    }

    #modalTop10Province .modal-content {
        height: auto; 
        border-radius: 8px; 
    }

    #modalTop10Province .modal-header {
        padding: 0.75rem 1rem;
    }

    #modalTop10Province .modal-title {
        font-size: 14px !important;
        line-height: 1.4;
        padding-right: 1rem;
    }

    #modalTop10Province .modal-body {
        padding: 1rem;
        overflow-y: auto;
        max-height: 60vh; 
    }
}

@media (min-width: 577px) {
    #modalTop10Province .modal-body {
        max-height: 70vh;
        overflow-y: auto;
    }
}

#top-province-full-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

    #top-province-full-list li:last-child {
        border-bottom: none;
    }

@media (max-width: 576px) {
    #top-province-full-list li {
        font-size: 13px;
        padding: 0.4rem 0;
    }
}