﻿.dashboard-shell {
    background: #f3f5f7;
}

body.dashboard-shell.no-dashboard-header {
    margin-top: 0;
}

.dashboard-shell {
    background: #f3f5f7;
}

.dashboard-shell .header {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.dashboard-shell .header_toggle,
.dashboard-shell .header_img {
    color: #0f172a;
}

.dashboard-shell .header_img {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: none;
}

.dashboard-shell .l-navbar {
    background: #16202a;
    box-shadow: 18px 0 42px rgba(15, 23, 42, 0.14);
}

.dashboard-shell .show {
    width: 236px;
}

.dashboard-shell .nav_logo,
.dashboard-shell .nav_link {
    margin: 0 0.75rem 0.9rem 1rem;
    padding: 0.85rem 1rem 0.85rem 1.15rem;
    border-radius: 14px;
}

.dashboard-shell .nav_logo {
    background: rgba(255, 255, 255, 0.06);
}

.dashboard-shell .nav_logo-name,
.dashboard-shell .nav_icon,
.dashboard-shell .nav_name {
    color: #f8fafc;
}

.dashboard-shell .nav_link {
    color: rgba(248, 250, 252, 0.72);
}

.dashboard-shell .nav_link:hover,
.dashboard-shell .nav_link.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.dashboard-shell .active::before {
    left: 10px;
    width: 4px;
    border-radius: 999px;
    background: #7dd3fc;
}

.dashboard-shell .dashboard-content {
    width: 100%;
    padding: 1.5rem 1rem 3rem;
    margin-left: 0;
}

.dashboard-shell .container.dashboard-hero__inner {
    max-width: 1240px;
}

.dashboard-shell .dashboard-hero {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

.dashboard-shell .dashboard-hero::after {
    display: none;
}

.dashboard-shell .dashboard-hero__inner {
    max-width: 900px;
    padding: 0.85rem 0 0.25rem;
}

body.dashboard-shell.no-dashboard-header .dashboard-hero__inner {
    margin: 0 auto;
    text-align: center;
}

.dashboard-shell .dashboard-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    background: #eef2f7;
    color: #475569;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-shell .dashboard-hero h1 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.dashboard-shell .dashboard-hero .lead {
    margin-top: 0.9rem;
    margin-bottom: 0;
    max-width: 60ch;
    color: #475569;
}

body.dashboard-shell.no-dashboard-header .dashboard-hero .lead {
    margin-left: auto;
    margin-right: auto;
}

@media screen and (min-width: 768px) {
    .dashboard-shell {
        padding-left: calc(236px + 2rem);
    }

    .dashboard-shell .l-navbar {
        left: 0;
        width: 236px;
        padding: 1rem 1rem 0 0;
    }

    .dashboard-shell #header-toggle {
        display: none;
    }

    .dashboard-shell .header,
    .dashboard-shell.body-pd .header {
        padding: 0 2rem 0 calc(236px + 2rem);
    }

    .dashboard-shell .dashboard-content,
    .dashboard-shell.body-pd .dashboard-content {
        padding-left: 2rem;
    }

    .dashboard-shell .show {
        left: 0;
        width: 236px;
    }
}

@media (max-width: 767px) {
    .dashboard-shell .l-navbar {
        width: 236px;
        left: -236px;
    }

    .dashboard-shell .show {
        left: 0;
    }
}

.dashboard-stat-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.dashboard-stat-card,
.dashboard-card,
.dashboard-table-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.dashboard-stat-card {
    padding: 1.25rem 1.35rem;
}

.dashboard-stat-label,
.dashboard-section-kicker {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #64748b;
}

.dashboard-stat-card strong {
    display: block;
    margin-top: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    color: #0f172a;
}

.dashboard-stat-card p {
    margin: 0.45rem 0 0;
    color: #475569;
    line-height: 1.65;
}

.dashboard-section {
    margin-top: 1.75rem;
}

.dashboard-mobile-home {
    display: none;
}

.dashboard-mobile-home__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.dashboard-mobile-home__link:hover {
    background: #f8fafc;
    color: #0f172a;
}

.dashboard-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.dashboard-section-heading h2 {
    margin: 0.3rem 0 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    color: #0f172a;
}

.dashboard-section-heading p:last-child {
    max-width: 36rem;
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.dashboard-grid {
    display: grid;
    gap: 1rem;
}

.dashboard-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-grid-one {
    grid-template-columns: 1fr;
    margin-top: 1rem;
}

.dashboard-card,
.dashboard-table-card {
    padding: 1rem;
}

.dashboard-card-header {
    padding: 0.15rem 0.15rem 0.9rem;
}

.dashboard-card-header h3 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
}

.dashboard-card-tall .dashboard-plot {
    min-height: 450px;
}

.dashboard-plot {
    min-height: 360px;
    padding: 0.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: #fcfdff;
    overflow: hidden;
}

.dashboard-plot > div,
.dashboard-plot .js-plotly-plot,
.dashboard-plot .plot-container,
.dashboard-plot .svg-container {
    width: 100% !important;
}

.dashboard-plot .js-plotly-plot,
.dashboard-plot .plot-container {
    height: 100% !important;
}

.dashboard-table-wrap {
    overflow-x: auto;
    padding: 0.85rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: #fcfdff;
}

.dashboard-table {
    width: 100% !important;
}

table.dataTable thead th,
table.dataTable thead td {
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
    color: #0f172a;
    font-weight: 700;
}

table.dataTable.no-footer {
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

table.dataTable tbody td {
    color: #334155;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: #64748b;
    margin-top: 0.75rem;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 10px;
    background: #ffffff;
}

@media (max-width: 1100px) {
    .dashboard-grid-three {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .dashboard-section-heading,
    .dashboard-stat-strip,
    .dashboard-grid-two {
        grid-template-columns: 1fr;
    }

    .dashboard-section-heading {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    .dashboard-shell .dashboard-content {
        padding: 1rem 0.5rem 2rem;
    }

    .dashboard-mobile-home {
        display: flex;
        margin-bottom: 1rem;
    }

    .dashboard-stat-card,
    .dashboard-card,
    .dashboard-table-card,
    .dashboard-shell .dashboard-hero {
        border-radius: 16px;
    }

    .dashboard-plot,
    .dashboard-card-tall .dashboard-plot {
        min-height: 320px;
    }
}

