:root {
    --bg: #F8FAFC;
    --card: #FFFFFF;
    --ink: #0F172A;
    --muted: #64748B;
    --line: #E2E8F0;
    --blue: #2563EB;
    --nav: #071525;
    --green: #059669;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--ink);
}

.app-shell {
    min-height: 100vh;
}

/* =========================
   SIDEBAR
   ========================= */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 190px;
    background: linear-gradient(180deg, #071525, #0A1F36);
    color: #FFFFFF;
    padding: 22px 10px;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.brand {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -2px;
    padding: 0 12px 24px;
}

.nav-item {
    padding: 12px 14px;
    margin: 3px 0;
    border-radius: 8px;
    color: #D6E1EC;
    font-size: 14px;
}

.nav-item.active {
    background: #18314A;
    border-left: 3px solid #38BDF8;
    color: #FFFFFF;
}

.sidebar-status {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 16px 10px;
}

.status-title {
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 10px;
    color: #93F7AA;
}

.status-line {
    font-size: 11px;
    color: #B9C8D8;
    margin: 7px 0;
}

/* =========================
   MAIN CONTENT
   ========================= */

.content {
    margin-left: 190px;
    padding: 0 18px 28px;
}

/* =========================
   TOP HEADER
   ========================= */

.topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #061321;
    color: #FFFFFF;
    margin: 0 -18px 18px;
    padding: 16px 22px;

    display: grid;
    grid-template-columns: minmax(320px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 28px;
}

.topbar h1 {
    font-size: 22px;
    margin: 0;
    white-space: nowrap;
}

.live-row {
    margin-top: 5px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.live-pill {
    background: #0D7A3A;
    color: #D9FFE6;
    padding: 4px 9px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
}

.last-updated {
    color: #C4D0DC;
    font-size: 12px;
    white-space: nowrap;
}

/* =========================
   DATE + FILTER CONTROLS
   ========================= */

.filters {
    width: 100%;
    min-width: 0;

    display: grid;
    grid-template-columns:
        minmax(125px, .85fr)
        minmax(145px, 1fr)
        minmax(145px, 1fr)
        minmax(155px, 1fr)
        minmax(155px, 1fr)
        minmax(145px, 1fr);

    gap: 10px;
    align-items: center;
}

.filter {
    width: 100%;
    min-width: 0;
    color: #111827;
}

/* Dropdown sizing */

.filter .Select-control {
    min-height: 44px;
    border: 1px solid #CBD5E1;
    border-radius: 7px;
    background: #FFFFFF;
}

.filter .Select-placeholder,
.filter .Select-value-label {
    line-height: 42px !important;
    font-size: 14px;
}

/* Date picker sizing */

.SingleDatePicker {
    width: 100%;
}

.SingleDatePickerInput {
    width: 100%;
    border: 0;
    background: transparent;
}

.DateInput {
    width: 100% !important;
}

.DateInput_input {
    width: 100% !important;
    height: 44px;
    padding: 8px 12px;

    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;

    color: #111827;
    background: #FFFFFF;

    border: 1px solid #CBD5E1;
    border-radius: 7px;
}

.DateInput_input::placeholder {
    color: #64748B;
    opacity: 1;
}

/* =========================
   KPI CARDS
   ========================= */

.metric-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.metric-card {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 17px;
    min-height: 112px;
    box-shadow: 0 8px 22px rgba(15,23,42,.05);
}

.metric-label {
    text-transform: uppercase;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
}

.metric-value {
    font-size: 28px;
    font-weight: 800;
    margin-top: 7px;
}

.metric-helper {
    font-size: 11px;
    color: var(--muted);
    margin-top: 5px;
    min-height: 16px;
}

/* =========================
   CHARTS
   ========================= */

.chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 14px;
    margin-bottom: 14px;
}

.panel,
.table-panel {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 8px 22px rgba(15,23,42,.05);
}

.panel h2,
.table-panel h2 {
    font-size: 16px;
    margin: 2px 0 8px;
}

/* =========================
   TABLE
   ========================= */

.table-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.table-summary {
    font-size: 12px;
    color: var(--muted);
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1500px) {

    .topbar {
        grid-template-columns: 290px 1fr;
        gap: 18px;
    }

    .filters {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }
}

@media (max-width: 1200px) {

    .topbar {
        grid-template-columns: 1fr;
    }

    .filters {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }

    .metric-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .chart-grid {
        grid-template-columns: 1fr 1fr;
    }

    .map-panel {
        grid-column: 1 / -1;
    }
}

@media (max-width: 800px) {

    .sidebar {
        display: none;
    }

    .content {
        margin-left: 0;
    }

    .topbar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .filters {
        grid-template-columns: 1fr;
    }

    .metric-grid,
    .chart-grid {
        grid-template-columns: 1fr;
    }
}
/* ============================================================
   RXO DARK THEME OVERRIDE
   ============================================================ */

:root {
    --bg: #050706;
    --card: #0B0E0D;
    --card-raised: #101412;
    --ink: #F7FAF8;
    --muted: #8D9993;
    --line: #202824;

    --rxo-green: #00E59B;
    --rxo-green-bright: #00FFAE;
    --rxo-green-soft: rgba(0, 229, 155, .12);
    --rxo-green-border: rgba(0, 229, 155, .28);

    --nav: #030504;
    --blue: #00E59B;
    --green: #00E59B;
}

/* ------------------------------------------------------------
   GLOBAL
   ------------------------------------------------------------ */

html,
body {
    background: var(--bg);
}

body {
    margin: 0;
    background:
        radial-gradient(
            circle at 78% -10%,
            rgba(0, 229, 155, .08),
            transparent 30%
        ),
        #050706;

    color: var(--ink);
    font-family: "Segoe UI", Arial, sans-serif;
}

.app-shell {
    min-height: 100vh;
    background: transparent;
}

/* ------------------------------------------------------------
   SIDEBAR
   ------------------------------------------------------------ */

.sidebar {
    background:
        radial-gradient(
            circle at 50% 8%,
            rgba(0, 229, 155, .10),
            transparent 24%
        ),
        linear-gradient(
            180deg,
            #030504 0%,
            #070A08 100%
        );

    border-right: 1px solid rgba(0, 229, 155, .18);
    box-shadow: 8px 0 32px rgba(0, 0, 0, .28);
}

.brand {
    color: #FFFFFF;
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -3px;
    text-shadow: 0 0 24px rgba(0, 229, 155, .10);
}

.nav-item {
    color: #89958F;
    border: 1px solid transparent;
    transition:
        background .16s ease,
        color .16s ease,
        border-color .16s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, .035);
    color: #FFFFFF;
}

.nav-item.active {
    background: linear-gradient(
        90deg,
        rgba(0, 229, 155, .16),
        rgba(0, 229, 155, .04)
    );

    border: 1px solid rgba(0, 229, 155, .18);
    border-left: 3px solid var(--rxo-green);
    color: #FFFFFF;

    box-shadow:
        inset 8px 0 18px rgba(0, 229, 155, .04);
}

.sidebar-status {
    border-top: 1px solid #1D2521;
}

.status-title {
    color: var(--rxo-green);
}

.status-line {
    color: #7F8B85;
}

/* ------------------------------------------------------------
   MAIN CONTENT
   ------------------------------------------------------------ */

.content {
    background: transparent;
}

/* ------------------------------------------------------------
   TOP BAR
   ------------------------------------------------------------ */

.topbar {
    background:
        linear-gradient(
            90deg,
            #050706 0%,
            #080C0A 70%,
            #07100C 100%
        );

    border-bottom: 1px solid #1C2521;
    color: #FFFFFF;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .25);
}

.topbar h1 {
    color: #FFFFFF;
    font-weight: 800;
    letter-spacing: -.02em;
}

.last-updated {
    color: #7F8C85;
}

.live-pill {
    background: rgba(0, 229, 155, .12);
    color: var(--rxo-green-bright);
    border: 1px solid rgba(0, 229, 155, .30);

    box-shadow:
        0 0 16px rgba(0, 229, 155, .08);
}

/* ------------------------------------------------------------
   FILTERS
   ------------------------------------------------------------ */

.filter {
    color: #FFFFFF;
}

.filter .Select-control {
    background: #0C100E;
    border: 1px solid #29332E;
    color: #FFFFFF;
    box-shadow: none;
}

.filter .Select-control:hover {
    border-color: rgba(0, 229, 155, .55);
}

.filter .Select-placeholder {
    color: #6F7A74 !important;
}

.filter .Select-value-label {
    color: #EAF0ED !important;
}

.filter .Select-menu-outer {
    background: #0C100E;
    border: 1px solid #29332E;
    color: #FFFFFF;
}

.filter .Select-option {
    background: #0C100E;
    color: #DCE4E0;
}

.filter .Select-option:hover,
.filter .Select-option.is-focused {
    background: rgba(0, 229, 155, .10);
}

.DateInput_input {
    color: #EAF0ED;
    background: #0C100E;
    border: 1px solid #29332E;
}

.DateInput_input:hover,
.DateInput_input:focus {
    border-color: rgba(0, 229, 155, .55);
}

.DateInput_input::placeholder {
    color: #6F7A74;
}

/* ------------------------------------------------------------
   KPI CARDS
   ------------------------------------------------------------ */

.metric-card {
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #101412 0%,
            #090C0A 100%
        );

    border: 1px solid #202824;
    border-radius: 14px;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, .24);
}

.metric-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 2px;

    background: linear-gradient(
        90deg,
        var(--rxo-green),
        rgba(0, 229, 155, 0)
    );

    opacity: .65;
}

.metric-card:hover {
    border-color: rgba(0, 229, 155, .28);

    box-shadow:
        0 14px 34px rgba(0, 0, 0, .30),
        0 0 22px rgba(0, 229, 155, .035);
}

.metric-label {
    color: #7D8983;
}

.metric-value {
    color: #FFFFFF;
    letter-spacing: -.025em;
}

.metric-helper {
    color: #68736D;
}

/* ------------------------------------------------------------
   CHART / TABLE PANELS
   ------------------------------------------------------------ */

.panel,
.table-panel {
    background:
        linear-gradient(
            145deg,
            #0E1210,
            #090C0A
        );

    border: 1px solid #202824;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, .22);
}

.panel h2,
.table-panel h2 {
    color: #F5F8F6;
    font-weight: 700;
}

.table-summary {
    color: #7C8882;
}

/* ------------------------------------------------------------
   DASH TABLE DARK BASE
   ------------------------------------------------------------ */

#alerts-table .dash-spreadsheet-container,
#alerts-table .dash-spreadsheet-inner {
    background: #090C0A !important;
}

#alerts-table .dash-header {
    background: #101512 !important;
    color: #DDE6E1 !important;
    border-color: #27312C !important;
}

#alerts-table .dash-cell {
    background: #090C0A;
    color: #CDD6D1;
    border-color: #1D2521 !important;
}

#alerts-table .dash-cell.focused {
    border-color: var(--rxo-green) !important;
}

#alerts-table input {
    background: #101512 ;
    color: #FFFFFF !important;
}

/* ------------------------------------------------------------
   SELECTION
   ------------------------------------------------------------ */

::selection {
    background: rgba(0, 229, 155, .28);
    color: #FFFFFF;
}

/* ------------------------------------------------------------
   SCROLLBAR
   ------------------------------------------------------------ */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #070A08;
}

::-webkit-scrollbar-thumb {
    background: #29332E;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #35413B;
}

/* ============================================================
   END RXO DARK THEME
   ============================================================ */


/* ============================================================
   RXO DARK THEME - REFINEMENT V2
   ============================================================ */

:root {
    --rxo-bg: #0A0E0C;
    --rxo-sidebar: #050806;
    --rxo-panel: #111713;
    --rxo-panel-2: #151D18;
    --rxo-line: #2B3831;
    --rxo-text: #F4F8F5;
    --rxo-muted: #9AA9A1;
    --rxo-green: #00E89D;
    --rxo-green-bright: #18FFB3;
}

/* Give the page visible depth instead of pure black. */

body {
    background:
        radial-gradient(
            circle at 15% 0%,
            rgba(0,232,157,.06),
            transparent 25%
        ),
        linear-gradient(
            180deg,
            #0B100D,
            #080C0A
        ) !important;
}

.content {
    background: transparent !important;
}

/* Sidebar */

.sidebar {
    background:
        linear-gradient(
            180deg,
            #050806 0%,
            #07100B 100%
        ) !important;

    border-right:
        1px solid rgba(0,232,157,.22) !important;
}

.brand {
    color: white !important;
}

.nav-item {
    color: #A5B3AC !important;
}

.nav-item.active {
    background:
        linear-gradient(
            90deg,
            rgba(0,232,157,.20),
            rgba(0,232,157,.035)
        ) !important;

    border-color:
        rgba(0,232,157,.30) !important;

    color: white !important;
}

/* Header */

.topbar {
    background:
        linear-gradient(
            90deg,
            #080C0A 0%,
            #0B120E 55%,
            #07110C 100%
        ) !important;

    border-bottom:
        1px solid rgba(0,232,157,.18) !important;
}

.topbar h1 {
    font-size: 23px !important;
}

.live-pill {
    background:
        rgba(0,232,157,.16) !important;

    color:
        var(--rxo-green-bright) !important;

    border:
        1px solid rgba(0,232,157,.45) !important;
}

/* Filters */

.filter .Select-control,
.DateInput_input {
    background: #141B17 !important;
    border: 1px solid #36443C !important;
    color: white !important;
}

.filter .Select-control:hover,
.DateInput_input:hover,
.DateInput_input:focus {
    border-color:
        var(--rxo-green) !important;
}

.filter .Select-placeholder {
    color: #87968E !important;
}

.filter .Select-value-label {
    color: #F1F5F3 !important;
}

.filter .Select-menu-outer,
.filter .Select-menu {
    background: #151D18 !important;
    color: white !important;
}

.filter .Select-option {
    background: #151D18 !important;
    color: #E6ECE8 !important;
}

.filter .Select-option.is-focused {
    background:
        rgba(0,232,157,.14) !important;
}

/* KPI cards */

.metric-card {
    background:
        linear-gradient(
            145deg,
            #171F1A,
            #101612
        ) !important;

    border:
        1px solid #304038 !important;

    box-shadow:
        0 8px 24px rgba(0,0,0,.25) !important;
}

.metric-card::before {
    height: 3px !important;
    opacity: .9 !important;
}

.metric-label {
    color: #A0ADA6 !important;
}

.metric-value {
    color: #FFFFFF !important;
    font-size: 30px !important;
}

.metric-helper {
    color: #829088 !important;
}

/* Panels */

.panel,
.table-panel {
    background:
        linear-gradient(
            145deg,
            #151C18,
            #101511
        ) !important;

    border:
        1px solid #304038 !important;

    box-shadow:
        0 9px 25px rgba(0,0,0,.22) !important;
}

.panel h2,
.table-panel h2 {
    color: #FFFFFF !important;
}

.table-summary {
    color: #9AA8A1 !important;
}

/* ============================================================
   DATATABLE
   ============================================================ */

#alerts-table,
#alerts-page-table {
    color: #E8EEE9 !important;
}

#alerts-table .dash-spreadsheet-container,
#alerts-table .dash-spreadsheet-inner,
#alerts-page-table .dash-spreadsheet-container,
#alerts-page-table .dash-spreadsheet-inner {
    background: #101511 !important;
}

/* Column headers */

#alerts-table th,
#alerts-page-table th,
#alerts-table .dash-header,
#alerts-page-table .dash-header {
    background: #1A241E !important;
    color: #F3F7F4 !important;
    border-color: #34443B !important;
    font-weight: 700 !important;
}

/* Body cells */

#alerts-table td,
#alerts-page-table td,
#alerts-table .dash-cell,
#alerts-page-table .dash-cell {
    background: #111713 ;
    color: #E0E7E3 !important;
    border-color: #29362F !important;
}

/* Alternate rows */

#alerts-table tbody tr:nth-child(even) td,
#alerts-page-table tbody tr:nth-child(even) td {
    background: #141B17 ;
}

/* Filter row - remove the white strip */

#alerts-table .dash-filter,
#alerts-page-table .dash-filter,
#alerts-table .dash-filter input,
#alerts-page-table .dash-filter input,
#alerts-table input,
#alerts-page-table input {
    background: #1B241F ;
    color: #FFFFFF !important;
    border-color: #35453C !important;
}

#alerts-table input::placeholder,
#alerts-page-table input::placeholder {
    color: #77877E !important;
}

/* Slightly improve readability */

#alerts-table .dash-cell,
#alerts-page-table .dash-cell {
    font-size: 12px !important;
    line-height: 1.35 !important;
}

/* Pagination */

#alerts-table .previous-next-container button,
#alerts-page-table .previous-next-container button {
    background: #18211C ;
    color: #EAF0EC !important;
    border-color: #34443B !important;
}

/* Export button */

#alerts-table button,
#alerts-page-table button {
    border-radius: 6px !important;
}

/* ============================================================
   GRAPH CONTAINERS
   ============================================================ */

.js-plotly-plot,
.plot-container,
.svg-container {
    border-radius: 8px !important;
}


/* ============================================================
   RXO DARK THEME - REFINEMENT V2
   ============================================================ */

:root {
    --rxo-bg: #0A0E0C;
    --rxo-sidebar: #050806;
    --rxo-panel: #111713;
    --rxo-panel-2: #151D18;
    --rxo-line: #2B3831;
    --rxo-text: #F4F8F5;
    --rxo-muted: #9AA9A1;
    --rxo-green: #00E89D;
    --rxo-green-bright: #18FFB3;
}

/* Give the page visible depth instead of pure black. */

body {
    background:
        radial-gradient(
            circle at 15% 0%,
            rgba(0,232,157,.06),
            transparent 25%
        ),
        linear-gradient(
            180deg,
            #0B100D,
            #080C0A
        ) !important;
}

.content {
    background: transparent !important;
}

/* Sidebar */

.sidebar {
    background:
        linear-gradient(
            180deg,
            #050806 0%,
            #07100B 100%
        ) !important;

    border-right:
        1px solid rgba(0,232,157,.22) !important;
}

.brand {
    color: white !important;
}

.nav-item {
    color: #A5B3AC !important;
}

.nav-item.active {
    background:
        linear-gradient(
            90deg,
            rgba(0,232,157,.20),
            rgba(0,232,157,.035)
        ) !important;

    border-color:
        rgba(0,232,157,.30) !important;

    color: white !important;
}

/* Header */

.topbar {
    background:
        linear-gradient(
            90deg,
            #080C0A 0%,
            #0B120E 55%,
            #07110C 100%
        ) !important;

    border-bottom:
        1px solid rgba(0,232,157,.18) !important;
}

.topbar h1 {
    font-size: 23px !important;
}

.live-pill {
    background:
        rgba(0,232,157,.16) !important;

    color:
        var(--rxo-green-bright) !important;

    border:
        1px solid rgba(0,232,157,.45) !important;
}

/* Filters */

.filter .Select-control,
.DateInput_input {
    background: #141B17 !important;
    border: 1px solid #36443C !important;
    color: white !important;
}

.filter .Select-control:hover,
.DateInput_input:hover,
.DateInput_input:focus {
    border-color:
        var(--rxo-green) !important;
}

.filter .Select-placeholder {
    color: #87968E !important;
}

.filter .Select-value-label {
    color: #F1F5F3 !important;
}

.filter .Select-menu-outer,
.filter .Select-menu {
    background: #151D18 !important;
    color: white !important;
}

.filter .Select-option {
    background: #151D18 !important;
    color: #E6ECE8 !important;
}

.filter .Select-option.is-focused {
    background:
        rgba(0,232,157,.14) !important;
}

/* KPI cards */

.metric-card {
    background:
        linear-gradient(
            145deg,
            #171F1A,
            #101612
        ) !important;

    border:
        1px solid #304038 !important;

    box-shadow:
        0 8px 24px rgba(0,0,0,.25) !important;
}

.metric-card::before {
    height: 3px !important;
    opacity: .9 !important;
}

.metric-label {
    color: #A0ADA6 !important;
}

.metric-value {
    color: #FFFFFF !important;
    font-size: 30px !important;
}

.metric-helper {
    color: #829088 !important;
}

/* Panels */

.panel,
.table-panel {
    background:
        linear-gradient(
            145deg,
            #151C18,
            #101511
        ) !important;

    border:
        1px solid #304038 !important;

    box-shadow:
        0 9px 25px rgba(0,0,0,.22) !important;
}

.panel h2,
.table-panel h2 {
    color: #FFFFFF !important;
}

.table-summary {
    color: #9AA8A1 !important;
}

/* ============================================================
   DATATABLE
   ============================================================ */

#alerts-table,
#alerts-page-table {
    color: #E8EEE9 !important;
}

#alerts-table .dash-spreadsheet-container,
#alerts-table .dash-spreadsheet-inner,
#alerts-page-table .dash-spreadsheet-container,
#alerts-page-table .dash-spreadsheet-inner {
    background: #101511 !important;
}

/* Column headers */

#alerts-table th,
#alerts-page-table th,
#alerts-table .dash-header,
#alerts-page-table .dash-header {
    background: #1A241E !important;
    color: #F3F7F4 !important;
    border-color: #34443B !important;
    font-weight: 700 !important;
}

/* Body cells */

#alerts-table td,
#alerts-page-table td,
#alerts-table .dash-cell,
#alerts-page-table .dash-cell {
    background: #111713 ;
    color: #E0E7E3 !important;
    border-color: #29362F !important;
}

/* Alternate rows */

#alerts-table tbody tr:nth-child(even) td,
#alerts-page-table tbody tr:nth-child(even) td {
    background: #141B17 ;
}

/* Filter row - remove the white strip */

#alerts-table .dash-filter,
#alerts-page-table .dash-filter,
#alerts-table .dash-filter input,
#alerts-page-table .dash-filter input,
#alerts-table input,
#alerts-page-table input {
    background: #1B241F ;
    color: #FFFFFF !important;
    border-color: #35453C !important;
}

#alerts-table input::placeholder,
#alerts-page-table input::placeholder {
    color: #77877E !important;
}

/* Slightly improve readability */

#alerts-table .dash-cell,
#alerts-page-table .dash-cell {
    font-size: 12px !important;
    line-height: 1.35 !important;
}

/* Pagination */

#alerts-table .previous-next-container button,
#alerts-page-table .previous-next-container button {
    background: #18211C ;
    color: #EAF0EC !important;
    border-color: #34443B !important;
}

/* Export button */

#alerts-table button,
#alerts-page-table button {
    border-radius: 6px !important;
}

/* ============================================================
   GRAPH CONTAINERS
   ============================================================ */

.js-plotly-plot,
.plot-container,
.svg-container {
    border-radius: 8px !important;
}


/* ============================================================
   RXO THEME - POLISH PASS V3
   ============================================================ */

/* Slightly lighter overall working surface */

body {
    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(0, 224, 150, .07),
            transparent 24%
        ),
        #0D1210 !important;
}

/* ------------------------------------------------------------
   SIDEBAR - stronger RXO identity
   ------------------------------------------------------------ */

.sidebar {
    width: 205px !important;

    background:
        radial-gradient(
            circle at 50% 9%,
            rgba(0, 232, 157, .12) 0,
            transparent 25%
        ),
        radial-gradient(
            circle,
            rgba(0, 232, 157, .12) 1px,
            transparent 1.5px
        ),
        linear-gradient(
            180deg,
            #050806,
            #07100B
        ) !important;

    background-size:
        auto,
        15px 15px,
        auto !important;

    background-position:
        center,
        -4px -4px,
        center !important;
}

.content {
    margin-left: 205px !important;
}

.brand {
    font-size: 38px !important;
    padding-top: 5px !important;
    padding-bottom: 28px !important;
}

.nav-item {
    font-size: 13px !important;
    padding: 12px 15px !important;
}

.nav-item.active {
    box-shadow:
        inset 4px 0 0 #00E89D,
        0 0 18px rgba(0,232,157,.05) !important;
}

/* ------------------------------------------------------------
   TOPBAR
   ------------------------------------------------------------ */

.topbar {
    padding-top: 18px !important;
    padding-bottom: 18px !important;

    background:
        linear-gradient(
            100deg,
            #090E0B 0%,
            #0E1712 65%,
            #09120D 100%
        ) !important;
}

.topbar h1 {
    font-size: 25px !important;
    letter-spacing: -.025em !important;
}

.last-updated {
    color: #A5B1AB !important;
}

/* ------------------------------------------------------------
   KPI CARDS
   ------------------------------------------------------------ */

.metric-grid {
    gap: 14px !important;
}

.metric-card {
    background:
        linear-gradient(
            145deg,
            #1A231D 0%,
            #121914 100%
        ) !important;

    border:
        1px solid #35453C !important;

    min-height: 118px !important;
}

.metric-card::before {
    background:
        linear-gradient(
            90deg,
            #00E89D 0%,
            rgba(0,232,157,.35) 35%,
            transparent 90%
        ) !important;
}

.metric-label {
    color: #A8B5AE !important;
}

.metric-value {
    font-size: 31px !important;
}

.metric-helper {
    color: #89978F !important;
}

/* ------------------------------------------------------------
   PANELS
   ------------------------------------------------------------ */

.panel,
.table-panel {
    background:
        linear-gradient(
            145deg,
            #18211B,
            #121914
        ) !important;

    border:
        1px solid #35453C !important;
}

.panel h2,
.table-panel h2 {
    font-size: 16px !important;
    letter-spacing: -.01em !important;
}

/* ------------------------------------------------------------
   LIVE ALERT TABLE
   ------------------------------------------------------------ */

#alerts-table .dash-cell,
#alerts-page-table .dash-cell {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    padding-top: 11px !important;
    padding-bottom: 11px !important;
}

#alerts-table td,
#alerts-page-table td {
    background: #141B17 ;
    color: #EDF2EF !important;
}

#alerts-table tbody tr:nth-child(even) td,
#alerts-page-table tbody tr:nth-child(even) td {
    background: #18201B ;
}

#alerts-table tbody tr:hover td,
#alerts-page-table tbody tr:hover td {
    background:
        rgba(0, 232, 157, .075) ;
}

#alerts-table th,
#alerts-page-table th {
    background: #202B24 ;
    color: #FFFFFF !important;
    font-size: 12px !important;
}

#alerts-table .dash-filter,
#alerts-page-table .dash-filter,
#alerts-table .dash-filter input,
#alerts-page-table .dash-filter input {
    background: #1C261F !important;
    color: #FFFFFF !important;
}

#alerts-table .dash-filter input::placeholder,
#alerts-page-table .dash-filter input::placeholder {
    color: #84938B !important;
}

/* Export button - RXO accent */

#alerts-table button.export,
#alerts-page-table button.export {
    background: #00C98A !important;
    border: 1px solid #19E8A6 !important;
    color: #04100B !important;
    font-weight: 800 !important;
}

/* ------------------------------------------------------------
   PANEL SPACING
   ------------------------------------------------------------ */

.chart-grid {
    gap: 16px !important;
}

.panel,
.table-panel {
    padding: 16px !important;
}

/* Responsive sidebar correction */

@media (max-width: 800px) {
    .content {
        margin-left: 0 !important;
    }
}

/* ============================================================
   END RXO POLISH V3
   ============================================================ */


/* ============================================================
   RXO LEGIBILITY PASS
   ============================================================ */

body {
    font-size: 15px !important;
}

/* Header */

.topbar h1 {
    font-size: 28px !important;
}

.live-pill {
    font-size: 13px !important;
    padding: 5px 10px !important;
}

.last-updated {
    font-size: 13px !important;
}

/* Sidebar */

.brand {
    font-size: 40px !important;
}

.nav-item {
    font-size: 14px !important;
    padding: 13px 15px !important;
}

.status-title {
    font-size: 13px !important;
}

.status-line {
    font-size: 12px !important;
}

/* Filters */

.filter .Select-placeholder,
.filter .Select-value-label {
    font-size: 15px !important;
}

.filter .Select-control {
    min-height: 46px !important;
}

.DateInput_input {
    height: 46px !important;
    font-size: 15px !important;
}

/* KPI */

.metric-label {
    font-size: 12px !important;
}

.metric-value {
    font-size: 34px !important;
}

.metric-helper {
    font-size: 12px !important;
}

.metric-card {
    min-height: 126px !important;
    padding: 18px !important;
}

/* Section titles */

.panel h2,
.table-panel h2 {
    font-size: 18px !important;
    margin-bottom: 10px !important;
}

.table-summary {
    font-size: 13px !important;
}

/* Live Alerts table */

#alerts-table .dash-cell,
#alerts-page-table .dash-cell {
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    padding: 12px 10px !important;
}

#alerts-table th,
#alerts-page-table th {
    font-size: 13px !important;
    padding: 11px 10px !important;
}

#alerts-table .dash-filter input,
#alerts-page-table .dash-filter input {
    font-size: 12.5px !important;
    min-height: 30px !important;
}

/* Increase panel breathing room */

.panel,
.table-panel {
    padding: 18px !important;
}

.chart-grid {
    grid-template-columns: 1fr 1fr 1.25fr !important;
}

/* ============================================================
   END LEGIBILITY PASS
   ============================================================ */


/* ============================================================
   RXO CLARITY PASS V4
   ============================================================ */

body {
    color: #F8FBF9 !important;
}

/* Stronger visual separation */

.metric-card {
    background:
        linear-gradient(
            145deg,
            #202B24,
            #18211C
        ) ;

    border: 1px solid #405348 !important;
}

.panel,
.table-panel {
    background:
        linear-gradient(
            145deg,
            #1C2720,
            #161F1A
        ) !important;

    border: 1px solid #405348 !important;
}

/* Header */

.topbar h1 {
    font-size: 29px !important;
    color: #FFFFFF !important;
}

.last-updated {
    color: #C0CAC4 !important;
}

/* KPI */

.metric-label {
    color: #C1CCC6 !important;
    font-size: 13px !important;
}

.metric-value {
    color: #FFFFFF !important;
    font-size: 35px !important;
}

.metric-helper {
    color: #A1AEA7 !important;
    font-size: 12.5px !important;
}

/* Section headings */

.panel h2,
.table-panel h2 {
    color: #FFFFFF !important;
    font-size: 19px !important;
}

/* Sidebar */

.nav-item {
    color: #BAC5BF !important;
    font-size: 14.5px !important;
}

.nav-item.active {
    color: #FFFFFF !important;
}

/* Filters */

.filter .Select-control,
.DateInput_input {
    background: #1A241E !important;
    border-color: #465A4E !important;
}

.filter .Select-placeholder {
    color: #A3B0A9 !important;
}

.filter .Select-value-label,
.DateInput_input {
    color: #F5F8F6 !important;
}

/* ============================================================
   TABLE - PRIORITIZE READABILITY
   ============================================================ */

#alerts-table .dash-cell,
#alerts-page-table .dash-cell {
    font-size: 14.5px !important;
    line-height: 1.55 !important;

    padding-top: 13px !important;
    padding-bottom: 13px !important;

    color: #F5F8F6 !important;

    border-color: #35483E !important;
}

#alerts-table td,
#alerts-page-table td {
    background: #18221C ;
}

#alerts-table tbody tr:nth-child(even) td,
#alerts-page-table tbody tr:nth-child(even) td {
    background: #1D2922 ;
}

#alerts-table tbody tr:hover td,
#alerts-page-table tbody tr:hover td {
    background: #23352B ;
}

#alerts-table th,
#alerts-page-table th {
    background: #27352C ;
    color: #FFFFFF !important;

    font-size: 14px !important;
    font-weight: 800 !important;

    border-color: #43584B !important;
}

#alerts-table .dash-filter,
#alerts-page-table .dash-filter,
#alerts-table .dash-filter input,
#alerts-page-table .dash-filter input {
    background: #212E26 !important;
    color: #FFFFFF !important;
    border-color: #405348 !important;

    font-size: 13px !important;
}

.table-summary {
    color: #B2BEB8 !important;
    font-size: 13px !important;
}

/* Make pagination easier to see */

#alerts-table .previous-next-container,
#alerts-page-table .previous-next-container {
    color: #FFFFFF !important;
}

#alerts-table .previous-next-container button,
#alerts-page-table .previous-next-container button {
    background: #26342B !important;
    color: #FFFFFF !important;
    border: 1px solid #455B4E !important;
}

/* RXO accent remains intentional */

.live-pill,
.status-title {
    color: #22FFB7 !important;
}

/* ============================================================
   END RXO CLARITY PASS
   ============================================================ */


/* ============================================================
   RXO FONT + FILTER LEGIBILITY PASS
   ============================================================ */

body {
    font-size: 17px !important;
}

/* HEADER */

.topbar h1 {
    font-size: 32px !important;
}

.live-pill {
    font-size: 14px !important;
}

.last-updated {
    font-size: 14px !important;
    color: #D5DDD8 !important;
}

/* SIDEBAR */

.brand {
    font-size: 42px !important;
}

.nav-item {
    font-size: 15.5px !important;
}

.status-title {
    font-size: 14px !important;
}

.status-line {
    font-size: 13px !important;
}

/* ============================================================
   FILTER / SEARCH CONTROLS
   ============================================================ */

.filter .Select-control {
    min-height: 50px !important;
    background: #223028 !important;
    border: 1px solid #5D7568 !important;
}

.filter .Select-placeholder {
    color: #D3DDD7 !important;
    font-size: 16px !important;
    opacity: 1 !important;
}

.filter .Select-value-label {
    color: #FFFFFF !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

.filter .Select-input > input {
    color: #FFFFFF !important;
    font-size: 16px !important;
}

.filter .Select-arrow {
    border-top-color: #D7E2DC !important;
}

.filter .Select-clear-zone {
    color: #D7E2DC !important;
}

.filter .Select-control:hover {
    border-color: #00E89D !important;
}

.filter .Select-menu-outer,
.filter .Select-menu {
    background: #202D26 !important;
    border-color: #52685C !important;
}

.filter .Select-option {
    color: #F5F8F6 !important;
    font-size: 15px !important;
}

.filter .Select-option.is-focused {
    background: rgba(0,232,157,.18) !important;
}

/* DATE INPUTS */

.DateInput_input {
    height: 50px !important;
    background: #223028 !important;
    color: #FFFFFF !important;

    border: 1px solid #5D7568 !important;

    font-size: 16px !important;
    font-weight: 600 !important;
}

.DateInput_input::placeholder {
    color: #D3DDD7 !important;
    opacity: 1 !important;
}

/* KPI CARDS */

.metric-label {
    font-size: 14px !important;
}

.metric-value {
    font-size: 38px !important;
}

.metric-helper {
    font-size: 13.5px !important;
}

.metric-card {
    min-height: 135px !important;
}

/* PANEL TITLES */

.panel h2,
.table-panel h2 {
    font-size: 21px !important;
}

/* ============================================================
   TABLE
   ============================================================ */

#alerts-table .dash-cell,
#alerts-page-table .dash-cell {
    font-size: 15.5px !important;
    line-height: 1.6 !important;

    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

#alerts-table th,
#alerts-page-table th {
    font-size: 15px !important;
    padding: 12px 10px !important;
}

#alerts-table .dash-filter input,
#alerts-page-table .dash-filter input {
    font-size: 14px !important;
    color: #FFFFFF !important;
}

#alerts-table .dash-filter input::placeholder,
#alerts-page-table .dash-filter input::placeholder {
    color: #C0CCC5 !important;
    opacity: 1 !important;
}

.table-summary {
    font-size: 14px !important;
}

/* Give all main panels a little more room */

.panel,
.table-panel {
    padding: 20px !important;
}

/* ============================================================
   END FONT + FILTER LEGIBILITY PASS
   ============================================================ */


/* ============================================================
   RXO OPERATOR UX PASS
   ============================================================ */

/* ------------------------------------------------------------
   GENERAL READABILITY
   ------------------------------------------------------------ */

body {
    font-size: 17px !important;
    background: #0D1410 ;
}

.content {
    padding-left: 22px !important;
    padding-right: 22px !important;
    padding-bottom: 34px !important;
}

/* ------------------------------------------------------------
   HEADER
   ------------------------------------------------------------ */

.topbar {
    padding: 18px 22px !important;
    gap: 24px !important;

    border-bottom:
        2px solid rgba(0, 232, 157, .30) !important;
}

.topbar h1 {
    font-size: 30px !important;
    font-weight: 800 !important;
}

.live-pill {
    font-size: 14px !important;
    font-weight: 800 !important;

    padding: 6px 11px !important;
}

.last-updated {
    font-size: 14px !important;
    color: #D0D9D4 !important;
}

/* ------------------------------------------------------------
   FILTERS - MAKE THESE OBVIOUSLY INTERACTIVE
   ------------------------------------------------------------ */

.filters {
    gap: 12px !important;
}

.filter .Select-control,
.DateInput_input {
    min-height: 52px !important;
    height: 52px !important;

    background: #24322A !important;

    border:
        1px solid #60786A !important;

    border-radius: 8px !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.03) !important;
}

.filter .Select-control:hover,
.DateInput_input:hover,
.DateInput_input:focus {
    border-color: #00E89D !important;

    box-shadow:
        0 0 0 2px rgba(0,232,157,.08) !important;
}

.filter .Select-placeholder {
    color: #D5DFD9 !important;
    font-size: 16px !important;
}

.filter .Select-value-label {
    color: #FFFFFF !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

.DateInput_input {
    color: #FFFFFF !important;
    font-size: 16px !important;
}

/* ------------------------------------------------------------
   KPI CARDS
   ------------------------------------------------------------ */

.metric-grid {
    gap: 14px !important;
    margin-bottom: 18px !important;
}

.metric-card {
    min-height: 126px !important;

    padding:
        18px 20px !important;

    background:
        linear-gradient(
            145deg,
            #202C25,
            #172019
        ) !important;

    border:
        1px solid #43584B !important;
}

.metric-label {
    font-size: 13px !important;
    color: #C6D0CA !important;
}

.metric-value {
    font-size: 36px !important;
    line-height: 1.05 !important;
    color: #FFFFFF !important;
}

.metric-helper {
    font-size: 13px !important;
    color: #9FAEA6 !important;
}

/* ------------------------------------------------------------
   ANALYTICS AREA
   ------------------------------------------------------------ */

.chart-grid {
    /*
       Map receives the most room.
       Carrier chart remains useful but stops dominating.
    */
    grid-template-columns:
        .9fr
        1.05fr
        1.45fr !important;

    gap: 16px !important;

    align-items: stretch !important;
}

.chart-grid > * {
    min-width: 0 !important;
}

.panel {
    min-width: 0 !important;
    overflow: hidden !important;

    padding: 17px !important;

    background:
        linear-gradient(
            145deg,
            #1D2821,
            #151E18
        ) !important;

    border:
        1px solid #415448 !important;
}

.panel h2 {
    font-size: 19px !important;
    margin-bottom: 12px !important;
}

/* Map deserves extra emphasis */

.map-panel {
    border:
        1px solid rgba(0,232,157,.38) !important;

    box-shadow:
        0 0 0 1px rgba(0,232,157,.04),
        0 10px 28px rgba(0,0,0,.22) !important;
}

/* ------------------------------------------------------------
   LIVE ALERTS = PRIMARY OPERATOR WORK QUEUE
   ------------------------------------------------------------ */

.table-panel {
    margin-top: 4px !important;

    padding: 18px !important;

    background:
        linear-gradient(
            180deg,
            #202C25,
            #172019
        ) !important;

    border:
        1px solid #496052 !important;
}

.table-heading {
    padding-bottom: 8px !important;
}

.table-panel h2 {
    font-size: 22px !important;
    font-weight: 800 !important;

    color: #FFFFFF !important;
}

.table-summary {
    font-size: 14px !important;
    color: #BBC7C0 !important;
}

/* ------------------------------------------------------------
   DATATABLE
   ------------------------------------------------------------ */

#alerts-table .dash-spreadsheet-container,
#alerts-page-table .dash-spreadsheet-container {
    border:
        1px solid #42564A !important;

    border-radius:
        7px !important;

    overflow:
        hidden !important;
}

/* Strong column headers */

#alerts-table th,
#alerts-page-table th,
#alerts-table .dash-header,
#alerts-page-table .dash-header {
    background:
        #2A392F !important;

    color:
        #FFFFFF !important;

    font-size:
        15px !important;

    font-weight:
        800 !important;

    border-color:
        #526A5B !important;

    padding:
        13px 11px !important;
}

/* Search/filter row */

#alerts-table .dash-filter,
#alerts-page-table .dash-filter {
    background:
        #223029 !important;
}

#alerts-table .dash-filter input,
#alerts-page-table .dash-filter input {
    min-height:
        34px !important;

    background:
        #2A3930 !important;

    color:
        #FFFFFF !important;

    font-size:
        14px !important;

    border:
        1px solid #52695A !important;

    border-radius:
        4px !important;
}

#alerts-table .dash-filter input::placeholder,
#alerts-page-table .dash-filter input::placeholder {
    color:
        #CBD6D0 !important;

    opacity:
        1 !important;
}

/* Operational rows */

#alerts-table td,
#alerts-page-table td,
#alerts-table .dash-cell,
#alerts-page-table .dash-cell {
    background:
        #18221C ;

    color:
        #F5F8F6 !important;

    font-size:
        15.5px !important;

    line-height:
        1.55 !important;

    padding:
        14px 11px !important;

    border-color:
        #3B4D42 !important;
}

/* Zebra striping */

#alerts-table tbody tr:nth-child(even) td,
#alerts-page-table tbody tr:nth-child(even) td {
    background:
        #1D2922 ;
}

/* Hover = obvious current record */

#alerts-table tbody tr:hover td,
#alerts-page-table tbody tr:hover td {
    background:
        #294036 ;

    box-shadow:
        inset 0 1px 0 rgba(0,232,157,.13),
        inset 0 -1px 0 rgba(0,232,157,.13) !important;
}

/* Selected/focused cell */

#alerts-table .dash-cell.focused,
#alerts-page-table .dash-cell.focused {
    border:
        2px solid #00E89D !important;
}

/* Export action */

#alerts-table button.export,
#alerts-page-table button.export {
    min-height:
        34px !important;

    padding:
        6px 14px !important;

    background:
        #00D894 ;

    color:
        #04110B !important;

    border:
        1px solid #25F3B2 !important;

    font-size:
        13px !important;

    font-weight:
        800 !important;
}

/* ------------------------------------------------------------
   SIDEBAR
   ------------------------------------------------------------ */

.nav-item {
    font-size:
        15px !important;

    padding:
        14px 16px !important;
}

.nav-item.active {
    background:
        linear-gradient(
            90deg,
            rgba(0,232,157,.24),
            rgba(0,232,157,.05)
        ) ;
}

.status-title {
    font-size:
        14px !important;
}

.status-line {
    font-size:
        12.5px !important;
}

/* ------------------------------------------------------------
   WIDE MONITORS
   ------------------------------------------------------------ */

@media (min-width: 1600px) {

    .content {
        padding-left:
            28px !important;

        padding-right:
            28px !important;
    }

    .metric-value {
        font-size:
            39px !important;
    }

    #alerts-table .dash-cell,
    #alerts-page-table .dash-cell {
        font-size:
            16px !important;
    }
}

/* ============================================================
   END RXO OPERATOR UX PASS
   ============================================================ */

