*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,Helvetica,sans-serif;
}

body{
    height:100vh;
    display:flex;
    flex-direction:column;
    background:#f4f4f9;
}

header{
    height:60px;
    background:#1f2937;
    color:white;
    display:flex;
    align-items:center;
    padding:0 20px;
    font-size:28px;
    font-weight:bold;
}

/* =========================
   MAIN DASHBOARD LAYOUT
========================= */

.container {
    display: flex;
    width: 100%;
    height: calc(100vh - 52px);
    overflow: hidden;
}

#map {
    flex: 1;
    height: 100%;
    min-width: 0;
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
    width: 360px;
    min-width: 360px;
    height: 100%;
    box-sizing: border-box;
    padding: 14px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Dashboard title */

.sidebar h2 {
    margin: 0 0 10px 0;
    font-size: 22px;
}

/* =========================
   CARDS
========================= */

.card {
    padding: 14px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: white;
    box-sizing: border-box;
}

.card h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.card h1 {
    margin: 0;
    font-size: 27px;
}

/* Mainline length text */

.mainline-length {
    font-size: 14px;
    line-height: 1.4;
}

/* =========================
   CHART CARDS
========================= */

.chart-card {
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.chart-card h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

/* Chart size */

.chart-container {
    width: 100%;
    height: 190px;
    position: relative;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 1000px) {

    .sidebar {
        width: 320px;
        min-width: 320px;
    }

}

@media (max-width: 700px) {

    .container {
        flex-direction: column;
    }

    #map {
        height: 60%;
    }

    .sidebar {
        width: 100%;
        min-width: 100%;
        height: 40%;
    }

}
<style>

#mainlineDisplayControls {

    display: flex;

    gap: 8px;

    margin-bottom: 10px;

}


#mainlineDisplayControls button {

    padding: 8px 14px;

    border: 1px solid #ccc;

    background: #ffffff;

    cursor: pointer;

    border-radius: 4px;

}


#mainlineDisplayControls button.active {

    background: #0077ff;

    color: white;

    border-color: #0077ff;

}

</style>
/* =========================
   Mainline Status Analysis
   ========================= */

.status-panel {
    background: white;
    border-radius: 8px;
    padding: 14px;
    margin-top: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.status-panel h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #333;
}

.status-item {
    margin-bottom: 12px;
    cursor: pointer;
}

.status-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 5px;
}

.status-name {
    font-weight: bold;
}

.status-value {
    color: #0066cc;
    font-weight: bold;
}

.status-bar {
    width: 100%;
    height: 8px;
    background: #e5e5e5;
    border-radius: 5px;
    overflow: hidden;
}

.status-bar-fill {
    height: 100%;
    background: #0077ff;
    border-radius: 5px;
}

.status-button {
    width: 100%;
    margin-top: 5px;
    padding: 8px;
    border: none;
    border-radius: 5px;
    background: #0077ff;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.status-button:hover {
    background: #005fcc;
}
/* =========================
   Mainline Status Chart
   ========================= */

.chart-panel {
    background: white;
    border-radius: 8px;
    padding: 14px;
    margin-top: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.chart-panel h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 230px;
}
/* =========================
   Mainline Diameter Chart
   ========================= */

.diameter-chart-container {
    position: relative;
    width: 100%;
    height: 300px;
}
/* =====================================================
   PROJECT SELECTOR
===================================================== */

.project-selector-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 15px 0;
    padding: 10px 15px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.project-selector-container label {
    font-size: 14px;
    color: #333;
}

#projectSelector {
    min-width: 260px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
}

#projectSelector:focus {
    outline: none;
    border-color: #3388ff;
}
.station-location-label {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.station-location-label span {
    display: block;

    color: #1f2937;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 11px;

    font-weight: 600;

    line-height: 1;

    white-space: nowrap;

    text-shadow:
        1px 1px 0 #ffffff,
        -1px -1px 0 #ffffff,
        1px -1px 0 #ffffff,
        -1px 1px 0 #ffffff,
        0 0 2px #ffffff;
}