.form-control {
    font-size: 14px !important
}

/* ==========================================
   Budget Card
========================================== */

.budget-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

/* ==========================================
   Header
========================================== */

.budget-list-header {

    display: grid;

    grid-template-columns: 45% 15% 30% 10%;

    align-items: center;

    padding: 14px 22px;

    background: #f8f9fb;

    border-bottom: 1px solid #e9ecef;

    font-size: 14px;

    font-weight: 700;

    color: #495057;

}

/* ==========================================
   Summary
========================================== */

.budget-summary {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 16px 22px;

    border-bottom: 1px solid #eceff3;

}

.summary-title {

    font-size: 15px;

    font-weight: 700;

    color: #212529;

}

.summary-total {

    font-size: 18px;

    font-weight: 700;

    color: #111827;

}

/* ==========================================
   Body
========================================== */

.budget-body {

    max-height: 650px;

    overflow-y: auto;

}

/* Scroll */

.budget-body::-webkit-scrollbar {

    width: 8px;

}

.budget-body::-webkit-scrollbar-thumb {

    background: #d5d9df;

    border-radius: 30px;

}

/* ==========================================
   Row
========================================== */

.budget-row {

    display: grid;

    grid-template-columns: 45% 15% 30% 10%;

    align-items: center;

    padding: 5px 8px;

    border-bottom: 1px solid #eef2f5;

    transition: .2s;

}

.budget-row:last-child {

    border-bottom: none;

}

.budget-row:hover {

    background: #fafbfc;

}

/* ==========================================
   Item
========================================== */

.budget-list-item {

    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 0;

}

.expand-btn {

    border: none;

    background: none;

    color: #6b7280;

    width: 22px;

    padding: 0;

}

.expand-btn:hover {

    color: #ff6b00;

}

.budget-logo,
.budget-logo-img {

    width: 34px;
    height: 34px;

    border-radius: 50%;

    flex-shrink: 0;

}

.budget-logo {

    display: flex;

    align-items: center;

    justify-content: center;

    color: #fff;

    font-weight: 700;

    font-size: 15px;

}

.budget-logo-img {

    object-fit: contain;

    background: #fff;

    padding: 2px;

    border: 1px solid #ececec;

}

.budget-list-name {

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    font-size: 13px;

    font-weight: 500;

}

/* ==========================================
   Level
========================================== */

.budget-level {

    text-align: center;

    font-size: 13px;

    color: #6b7280;

}

/* ==========================================
   Budget
========================================== */

.budget-value {

    font-size: 13px;

    font-weight: 700;

    margin-bottom: 8px;

}

.progress {

    width: 100% !important;

    height: 7px !important;

    background: #eceff3 !important;

    border-radius: 30px !important;

    overflow: hidden !important;

}

.progress-bar {

    height: 100%;

    background: #ff671d;

    border-radius: 30px;

}

/* ==========================================
   Percent
========================================== */

.budget-percent {

    text-align: right;

    font-size: 12px;

    color: #6b7280;

}

/* ==========================================
   Sidebar
========================================== */

.filter-card {

    border-radius: 14px;

    border: 1px solid #e5e7eb;

    background: #fff;

}

.filter-card .card-body {

    padding: 18px;

}

.accordion-button {
    font-size: 14px !important;
}

#ministry-checkbox-list {
    max-height: 300px;
    overflow-y: auto;
}

/* ==========================================
   Mobile
========================================== */

/* ==========================================
   Tablet
========================================== */

@media (max-width:992px) {

    .budget-list-header {

        grid-template-columns: 48% 20% 22% 10%;

        padding: 12px 16px;

        font-size: 13px;

    }

    .budget-summary {

        padding: 14px 16px;

    }

    .summary-total {

        font-size: 16px;

    }

    .budget-row {

        grid-template-columns: 48% 20% 22% 10%;

    }

}

/* ==========================================
   Mobile
========================================== */

@media (max-width:768px) {

    /* ซ่อนคอลัมน์ "ระดับ" */

    .budget-list-header {

        grid-template-columns: 1fr 140px 55px;

    }

    .budget-list-header div:nth-child(2) {

        display: none;

    }

    .budget-summary {

        padding: 14px 16px;

    }

    .summary-total {

        font-size: 16px;

    }

    .budget-row {

        grid-template-columns: 1fr 90px 55px;

        align-items: center;

        gap: 7px;

    }

    /* ซ่อนระดับ */

    .budget-level {

        display: none;

    }

    .budget-list-item {

        gap: 8px;

        min-width: 0;

    }

    .budget-logo {

        width: 30px;

        height: 30px;

    }


    .budget-value {

        font-size: 14px;

        text-align: right;

        margin-bottom: 4px;

    }

    /* ซ่อน Progress */

    .progress {

        display: none;

    }

    .budget-percent {
        display: inline-block !important;

        text-align: right;

        font-size: 13px;

        color: #6b7280;

    }

}