* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #06172f;
    font-family: "Segoe UI", Arial, sans-serif;
}

.page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 20%, rgba(43, 133, 209, 0.30), transparent 25%),
        radial-gradient(circle at 80% 10%, rgba(8, 189, 255, 0.20), transparent 22%),
        linear-gradient(135deg, #031329 0%, #082b55 48%, #020b18 100%);
    color: white;
}

.shell {
    min-height: 100vh;
    display: flex;
    gap: 18px;
    padding: 16px;
}

.sidebar {
    width: 18%;
    min-width: 230px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(5, 25, 52, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 28px rgba(0, 180, 255, 0.18);
}

.logo-box {
    min-height: 65px;
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.logo {
    width: 190px;
    max-width: 100%;
}

.filter-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
}

.site-dropdown {
    color: #111;
    font-size: 15px;
}

.hint {
    margin-top: 12px;
    color: #b7dcff;
    font-size: 13px;
}

.content {
    flex: 1;
}

.title-panel {
    width: fit-content;
    margin: 0 auto 22px auto;
    padding: 9px 30px;
    border-radius: 10px;
    background: rgba(5, 20, 42, 0.66);
    border: 1px solid rgba(255,255,255,0.20);
    box-shadow: 0 0 18px rgba(0, 140, 255, 0.18);
    font-size: 27px;
    font-weight: 800;
    text-align: center;
}

.kpi-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
    margin-bottom: 18px;
}

.kpi-card {
    height: 112px;
    border-radius: 28px;
    background: rgba(5, 25, 52, 0.75);
    border: 1px solid rgba(255,255,255,0.85);
    box-shadow:
        0 0 25px rgba(255,255,255,0.24),
        0 0 34px rgba(0,150,255,0.22) inset;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-align: center;
}

.kpi-value {
    font-size: 32px;
    font-weight: 850;
    line-height: 1.05;
    padding: 0 10px;
}

.kpi-label {
    font-size: 17px;
    margin-top: 10px;
}

.map-panel {
    background: rgba(5, 20, 42, 0.84);
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 26px;
    box-shadow: 0 0 22px rgba(0, 130, 255, 0.20);
}

.section-title {
    font-size: 23px;
    font-weight: 850;
    margin-bottom: 9px;
}

.map {
    height: 330px;
}

.tables-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 38px;
}

.table-panel {
    background: rgba(5, 20, 42, 0.73);
    border: 1px solid rgba(255,255,255,0.82);
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 0 18px rgba(0, 170, 255, 0.22);
}

.dash-table-container .dash-spreadsheet-container,
.dash-spreadsheet-inner {
    background: transparent !important;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.08);
}

::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.55);
    border-radius: 8px;
}

@media screen and (max-width: 1200px) {
    .shell {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .kpi-row,
    .tables-row {
        grid-template-columns: 1fr;
    }
}
