@media (max-width: 158px) {
    body {
        background-size: cover;
        background-attachment: scroll;
    }
}

.road-map-header {
    background-image: url('../images/road list images/rdamap4.jfif');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 70vh;
}


/* Full width table on desktop */

#roadTable {
    width: 100% !important;
    /* table full width */
    table-layout: fixed;
    /* columns evenly distributed */
}


/* First column (RoadNo) single line */

#roadTable th:first-child,
#roadTable td:first-child {
    width: 90px;
    white-space: nowrap;
    text-align: center;
}


/* Override Bootstrap container width */

.table-responsive {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.card {
    box-shadow: 0 4px 6px rgba(245, 245, 247, 0.1);
    border: none;
    margin-bottom: -5rem;
    margin-top: 6rem;
    font-family: "Georgia";
}


/* Ensure table inside card takes full width */

.card table {
    width: 100% !important;
    table-layout: fixed;
}


/* Optional: force header cells to stretch evenly */

.card table thead th {
    text-align: center;
    word-wrap: break-word;
}


/* card header title style */

.card .card-header h9.card-title {
    font-weight: 600;
    font-family: "Georgia";
    color: inherit;
}

.form-select {
    border-radius: 8px;
}

.table {
    background: white;
}

.search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
}

.division-item {
    background-color: rgb(244, 250, 250);
    border-radius: 6px;
    padding: 8px 12px;
    margin: 4px;
    display: inline-block;
}


/* semi-transparent maroon glass header with blur */

.glass-header {
    background: rgba(115, 23, 23, 0.55);
    color: #f7f3f3ff !important;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem 0.375rem 0 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body {
    font-family: Arial, sans-serif;
    margin: 20px;
}


/* Table design */

table {
    border-collapse: collapse;
    width: 83%;
    margin: 0 auto;
    /* centers the table */
}


/* Borders and alignment */

table,
th,
td {
    border: 1px solid #333;
    text-align: left !important;
}


/* Reduced row height */

th,
td {
    padding: 4px 8px !important;
    /* Reduced padding = smaller row height */
    text-align: left;
}

th {
    background-color: #222;
    color: #fff;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

.total-row {
    font-weight: bold;
    background-color: #ddd !important;
}

.grand-total {
    font-weight: bold;
    background-color: #444 !important;
    color: white;
}


/* Left align + vertical center control section */

.middle-left {
    display: flex;
    align-items: center;
    /* vertical center */
    justify-content: flex-start;
    /* left align */
    height: 10vh;
    padding-left: 80px;
}