/* ══════════════════════════════════════════════
   BIOMEDICAL WASTE DATA — bmwdata.css
══════════════════════════════════════════════ */

.bmwdata_section {
    padding: 60px 0px 80px;
    background: #fff;
}

.bmwdata_section p {
    margin-bottom: 0px !important;
}

/* ── TOP HEADER ROW ─────────────────────────── */
.bmwdata_header_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 16px;
    flex-wrap: nowrap;
}

.bmwdata_main_title {
    font-family: "Inter-Medium", sans-serif;
    font-size: 25px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.02em;
    margin: 0;
    flex-shrink: 0;
}

/* ── FILTER SELECTS ─────────────────────────── */
.bmwdata_filters_row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.bmwdata_select_wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.bmwdata_select_wrap select {
    appearance: none;
    -webkit-appearance: none;
    width: 200px;
    padding: 11px 38px 11px 14px;
    background: #fff;
    border: 1.5px solid #352D74;
    border-radius: 6px;
    font-family: "Inter-Regular", sans-serif;
    font-size: 14px;
    color: #352D74;
    cursor: pointer;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.07);
    transition: border-color 0.2s;
}

.bmwdata_select_wrap select:focus {
    outline: none;
    border-color: #25386e;
}

.select_chevron {
    position: absolute;
    right: 12px;
    pointer-events: none;
    color: #6b7280;
    flex-shrink: 0;
}

/* ── TABLE CONTAINER ────────────────────────── */
.bmwdata_table_container {
    background: #fff;
    width: 100%;
}

/* ── TABLE TITLE ROW ────────────────────────── */
.bmwdata_table_titlerow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F5F5F5;
    padding: 14px 20px;
    border-radius: 4px 4px 0 0;
    flex-wrap: wrap;
    gap: 10px;
}

.location_title {
    font-family: "Inter-Bold", sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #4A148C;
    margin: 0;
}

.bmwdata_report_right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.report_label {
    font-family: "Inter-Bold", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #4A148C;
    white-space: nowrap;
}

/* ── DOWNLOAD ICON BUTTON ───────────────────── */
.btn_download_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #25386e;
    cursor: pointer;
    transition: background 0.18s, transform 0.15s;
    padding: 0;
    flex-shrink: 0;
}

.btn_download_icon:hover {
    background: #dde2f0;
    transform: translateY(-1px);
}

.btn_download_icon:active {
    transform: translateY(0);
}

/* ── TABLE RESPONSIVE WRAPPER ───────────────── */
.bmwdata_table_container .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* clip overflow cleanly */
    display: block;
}

/* ── TABLE ──────────────────────────────────── */
.bmwdata_table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    margin-bottom: 0 !important;
    table-layout: auto;
}

.bmwdata_table_container thead {
    background: #352D74;
}

.bmwdata_table_container thead th {
    color: #fff !important;
    font-family: "Inter-Medium", sans-serif !important;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    text-align: left;
    white-space: nowrap;
}

.bmwdata_table_container tbody td {
    font-family: "Inter-Regular", sans-serif !important;
    font-size: 15px;
    color: #4b4b4b;
    padding: 12px 20px !important;
    border: 1px solid #e5e7eb !important;
    text-align: left;
    white-space: nowrap;
}

/* Striped rows */
.bmwdata_table tbody tr:nth-child(even) td {
    background: #F9F9F9;
    border: 1px solid #DDDDDD;
}

.bmwdata_table tbody tr:nth-child(odd) td {
    background: #FFFFFF;
    border: 1px solid #DDDDDD;
}

/* Total row */
.custom_bg td {
    background: #352D74 !important;
    color: #fff !important;
    font-family: "Inter-Medium", sans-serif !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* ── ERROR / LOADING ────────────────────────── */
.form_error {
    color: #4b4b4b;
    font-size: 18px;
    font-family: "GothamRoundedMedium", sans-serif;
    text-align: center;
    width: 100%;
    margin-top: 24px;
    padding: 20px 0;
}

.loading_text {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    font-size: 15px;
    font-family: "GothamRoundedBook", sans-serif;
}

/* ── RESPONSIVE: TABLET 991px ───────────────── */
@media screen and (max-width: 991px) {
    .bmwdata_main_title {
        font-size: 20px;
    }

    .bmwdata_select_wrap select {
        width: 150px;
        font-size: 13px;
        padding: 10px 34px 10px 12px;
    }
}

/* ── RESPONSIVE: MOBILE 767px ───────────────── */
@media screen and (max-width: 767px) {
    .bmwdata_section {
        padding: 30px 0px 50px;
    }

    .bmwdata_header_row {
        gap: 10px;
        margin-bottom: 20px;
        /* allow title to shrink so filters stay on same row */
        align-items: center;
        flex-direction: column;
    }

    .bmwdata_main_title {
        font-size: 15px;
        letter-spacing: 0;
        /* let title shrink instead of pushing filters off screen */
        flex-shrink: 1;
        min-width: 0;
    }

    .bmwdata_filters_row {
        gap: 8px;
        /* don't let filters shrink — they need to stay readable */
        flex-shrink: 0;
    }

    .bmwdata_select_wrap select {
        width: 110px;
        font-size: 12px;
        padding: 9px 26px 9px 10px;
    }

    .select_chevron {
        right: 8px;
        width: 13px;
        height: 13px;
    }

    /* table title bar: stack gracefully */
    .bmwdata_table_titlerow {
        padding: 10px 14px;
        gap: 6px;
    }

    .location_title {
        font-size: 13px;
        flex: 1;
    }

    .report_label {
        font-size: 12px;
    }

    .btn_download_icon {
        width: 30px;
        height: 30px;
    }

    .bmwdata_table_container thead th,
    .bmwdata_table_container tbody td {
        font-size: 13px !important;
        padding: 10px 12px !important;
    }
}

/* ── RESPONSIVE: SMALL MOBILE 480px ─────────── */
@media screen and (max-width: 480px) {
    .bmwdata_main_title {
        font-size: 13px;
    }

    .bmwdata_select_wrap select {
        width: 95px;
        font-size: 11px;
        padding: 8px 22px 8px 8px;
    }

    .bmwdata_table_container thead th,
    .bmwdata_table_container tbody td {
        font-size: 12px !important;
        padding: 8px 10px !important;
    }

    .bmwdata_table {
        min-width: 420px;
    }
}