/* =========================================================
   GLOBAL PAGE
   ========================================================= */

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background-color: #f4f6f9;
    color: #212529;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    overflow-x: hidden;
}


/* =========================================================
   FIXED LEFT SIDEBAR
   ========================================================= */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;

    width: 250px;
    height: 100vh;

    padding: 24px 18px;
    overflow-y: auto;

    background-color: #ffffff;
    border-right: 1px solid #dee2e6;

    z-index: 1000;
}

.sidebar-brand {
    padding: 4px 10px 14px 10px;
}

.sidebar .nav {
    width: 100%;
}

.sidebar .nav-link {
    display: block;
    width: 100%;

    margin-bottom: 8px;
    padding: 11px 14px;

    color: #495057;
    border-radius: 8px;
}

.sidebar .nav-link:hover {
    background-color: #eef2f7;
    color: #0d6efd;
}

.sidebar .nav-link.active {
    background-color: #0d6efd;
    color: #ffffff;
}

.sidebar-footer {
    margin-top: 30px;
}


/* =========================================================
   MAIN APPLICATION AREA
   ========================================================= */

.main-content {
    width: calc(100% - 250px);
    min-height: 100vh;
    margin-left: 250px;
}

.topbar {
    width: 100%;
    min-height: 76px;
    padding: 10px 20px;

    background-color: #ffffff;
}

.page-content {
    width: 100%;
    padding: 28px;
}

.page-title {
    margin-bottom: 4px;
    font-weight: 600;
}


/* =========================================================
   DASHBOARD KPI CARDS
   ========================================================= */

.dashboard-card {
    height: 100%;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dashboard-card h3 {
    font-size: 1.65rem;
    font-weight: 600;
}

.kpi-icon {
    flex-shrink: 0;

    padding: 13px;

    font-size: 2rem;
    color: #0d6efd;

    background-color: #eaf2ff;
    border-radius: 12px;
}


/* =========================================================
   DASHBOARD CHART AND TABLE PANELS
   ========================================================= */

.dashboard-panel {
    min-width: 0;
    padding: 22px;

    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/*
Plotly graphs require a controlled height.
Without this, the responsive graph and Bootstrap column can repeatedly
resize each other and make the page grow continuously.
*/

.dashboard-graph {
    width: 100%;
    height: 360px;
}

.dashboard-graph .js-plotly-plot,
.dashboard-graph .plot-container,
.dashboard-graph .svg-container {
    width: 100% !important;
    height: 360px !important;
}


/* =========================================================
   RESPONSIVE LAYOUT
   ========================================================= */

@media (max-width: 900px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        min-height: auto;
    }

    .sidebar-footer {
        margin-top: 20px;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
    }

    .page-content {
        padding: 18px;
    }
}
/* Charging Sessions filters */

.Select-control {
    border-radius: 8px;
    border-color: #ced4da;
}

.Select-menu-outer {
    z-index: 2000;
}

.dash-table-container {
    width: 100%;
}
/* =========================================================
   SESSION DETAILS
   ========================================================= */

.detail-item {
    height: 100%;
    padding: 14px;
    background-color: #f8f9fa;
    border: 1px solid #eef0f2;
    border-radius: 10px;
}

.detail-label {
    margin-bottom: 6px;
    color: #6c757d;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.detail-value {
    color: #212529;
    font-size: 0.96rem;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.detail-monospace {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.84rem;
}

.canonical-display {
    max-height: 430px;
    margin: 0;
    padding: 18px;
    overflow: auto;

    color: #212529;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0 0 10px 10px;

    font-family: "Courier New", Courier, monospace;
    font-size: 0.84rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
/* =========================================================
   VERIFICATION PORTAL
   ========================================================= */

.verification-check-row {
    margin-bottom: 12px;
    padding: 14px;

    background-color: #f8f9fa;
    border: 1px solid #eef0f2;
    border-radius: 10px;
}

.verification-check-icon {
    font-size: 1.45rem;
}

.verification-final-icon {
    font-size: 2.2rem;
}

.verification-hash {
    display: block;
    width: 100%;

    padding: 14px;
    overflow-wrap: anywhere;

    color: #212529;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 9px;

    font-family: "Courier New", Courier, monospace;
    font-size: 0.84rem;
}
