@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700;800&display=swap');
/* ===== Workbench layout (left menu, top bar, filter strip). Everything is scoped to body.wb ===== */
body.wb {
  --wb-navy: #12304f; --wb-brand: #245470; --wb-teal: #18bc9c; --wb-ink: #212d35; --wb-muted: #667985; --wb-line: #dce5e9; --wb-wash: #f4f7f8;
  --wb-side: 252px; --wb-top: 60px; --wb-gap: 16px;
  padding-left: 0 !important; padding-top: 0 !important; background: #f4f7f8 !important;
}
html:has(body.wb) { background: #f4f7f8; }
body.wb .tab-content, body.wb .container-fluid, body.wb .bslib-page-main { background: transparent !important; }
/* everything except the fixed menu and top bar sits to the right of the menu */
body.wb > *:not(.wb-side):not(.wb-top):not(.wb-scrim):not(.wb-tour-spot):not(.wb-tour-card):not(.modal):not(.modal-backdrop):not(#ei-toggle):not(.shiny-notification-panel):not(script):not(style):not(link) { margin-left: var(--wb-side); margin-top: var(--wb-top); }
body.wb .navbar { display: none !important; }

/* ---- left menu ---- */
body.wb .wb-side { position: fixed; top: 0; left: 0; bottom: 0; width: var(--wb-side); z-index: 1040; overflow-y: auto; padding: 20px 12px 24px 12px;
  background: linear-gradient(165deg, #173c58, #245470 60%, #285c77); color: #fff; }
body.wb .wb-logo { font-weight: 800; letter-spacing: 1.5px; font-size: 17px; padding: 4px 10px 18px 10px; }
body.wb .wb-ws { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; background: rgba(255,255,255,.06); margin-bottom: 16px; }
body.wb .wb-ws-badge { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--wb-teal); color: #073d3a; font-weight: 800; }
body.wb .wb-ws-name { font-size: 13px; font-weight: 700; } body.wb .wb-ws-sub { font-size: 11.5px; color: #c7e0e5; }
body.wb .wb-label { font-size: 11px; letter-spacing: 1px; font-weight: 700; color: #b6d0db; padding: 16px 10px 5px 10px; }
body.wb .wb-link { display: flex; align-items: center; gap: 9px; padding: 8px 10px; margin: 2px 0; border-radius: 7px; text-decoration: none; color: #e9f2f5 !important; font-size: 13px; line-height: 1.35; }
body.wb .wb-link:hover { background: rgba(255,255,255,.14); color: #fff !important; }
body.wb .wb-link.active { background: rgba(255,255,255,.18); box-shadow: inset 3px 0 var(--wb-teal); color: #fff !important; font-weight: 600; }
body.wb .wb-ico { width: 16px; text-align: center; color: #b8e1da; font-size: 12px; }
body.wb .wb-group > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 7px; cursor: pointer;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #d4e5eb; }
body.wb .wb-group > summary::-webkit-details-marker { display: none; }
body.wb .wb-group > summary::after { content: '\2304'; color: #b6d0db; }
body.wb .wb-group[open] > summary::after { content: '\2303'; }
body.wb .wb-group > summary:hover { background: rgba(255,255,255,.08); }
body.wb .wb-sub { padding-left: 8px; } body.wb .wb-sub .wb-link { font-size: 12.5px; padding: 7px 9px; }

/* ---- top bar ---- */
body.wb .wb-top { position: fixed; top: 0; left: var(--wb-side); right: 0; height: var(--wb-top); z-index: 1030; display: flex; align-items: center; gap: 12px; padding: 0 24px;
  background: #fff; border-bottom: 1px solid var(--wb-line); }
body.wb .wb-menu { display: none; border: 1px solid var(--wb-line); background: #fff; border-radius: 7px; padding: 6px 10px; font-size: 16px; color: var(--wb-brand); }
body.wb .wb-crumb { color: var(--wb-muted); font-size: 13px; } body.wb .wb-crumb b { color: var(--wb-brand); }
body.wb .wb-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
body.wb .wb-btn { border: 1px solid var(--wb-line); border-radius: 7px; background: #fff; padding: 7px 12px; color: var(--wb-brand); font-size: 12.5px; cursor: pointer; }
body.wb .wb-btn:hover { background: #f1f6f8; }
body.wb .wb-btn.primary { background: var(--wb-brand); border-color: var(--wb-brand); color: #fff; } body.wb .wb-btn.primary:hover { filter: brightness(1.1); }
body.wb .wb-user { position: relative; } body.wb .wb-user > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--wb-ink); }
body.wb .wb-user > summary::-webkit-details-marker { display: none; }
body.wb .wb-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #dff3ef; color: #0b6b5b; font-weight: 800; font-size: 12px; }
body.wb .wb-umenu { position: absolute; right: 0; top: 40px; min-width: 190px; background: #fff; border: 1px solid var(--wb-line); border-radius: 10px; box-shadow: 0 10px 30px rgba(18,48,79,.15); padding: 6px; display: flex; flex-direction: column; font-size: 12.5px; color: var(--wb-muted); }
body.wb .wb-umenu button { text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 6px; color: var(--wb-ink); cursor: pointer; } body.wb .wb-umenu button:hover { background: #f1f6f8; }
body.wb .wb-umenu span { padding: 8px 10px; }
body.wb .wb-scrim { display: none; }

/* ---- global filter strip ---- */
body.wb .wb-filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 26px 0 26px; padding: 10px 14px; background: #fff; border: 1px solid var(--wb-line); border-radius: 9px; }
body.wb .wb-filters > strong { margin-right: auto; color: var(--wb-brand); font-size: 14px; }
body.wb .wb-fields { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.wb .wb-fields label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; font-weight: 400; color: var(--wb-muted); padding: 0 0 0 10px; border: 1px solid var(--wb-line); border-radius: 7px; background: #fff; }
body.wb .wb-fields .form-group, body.wb .wb-fields .shiny-input-container { margin: 0 !important; width: auto !important; }
body.wb .wb-fields select { border: 0 !important; background: transparent !important; padding: 7px 6px; font-size: 12.5px; color: var(--wb-ink); box-shadow: none !important; min-height: 0; }
body.wb #fn_wrap { margin: 10px 26px 0 26px !important; }

/* the filters that the strip now controls are hidden in the side panel (they still work behind it) */
body.wb .sidebar .shiny-input-container:has(#year_range), body.wb .sidebar .shiny-input-container:has(#measure), body.wb .sidebar .shiny-input-container:has(#region_filter),
body.wb .sidebar .shiny-input-container:has(#date_range), body.wb .sidebar .help-block { display: none; }

/* ---- pages ---- */
body.wb .tab-content > .tab-pane { padding: 18px 26px 40px 26px !important; }
body.wb .wb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 4px 0 16px 0; flex-wrap: wrap; }
body.wb .wb-head h1 { margin: 0; color: var(--wb-navy); font-size: 27px; font-weight: 800; }
body.wb .wb-head p { margin: 4px 0 0 0; color: var(--wb-muted); font-size: 14px; max-width: 760px; }
body.wb .wb-actions { display: flex; gap: 8px; }
body.wb .wb-status { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 12.5px; color: var(--wb-muted); }
body.wb .wb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wb-teal); display: inline-block; }
body.wb .wb-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--wb-gap); margin-bottom: var(--wb-gap); }
body.wb .wb-s3 { grid-column: span 3; } body.wb .wb-s4 { grid-column: span 4; } body.wb .wb-s6 { grid-column: span 6; } body.wb .wb-s8 { grid-column: span 8; }
body.wb .wb-grid > div { min-width: 0; }
body.wb .wb-grid .ecard, body.wb .wb-grid .kpi { height: 100%; margin-bottom: 0 !important; }
body.wb .wb-h2 { margin: 0; color: var(--wb-navy); font-size: 15px; font-weight: 800; }
body.wb .wb-desc { margin: 3px 0 10px 0; color: var(--wb-muted); font-size: 12.5px; }

/* page headings from the older pages follow the same look */
body.wb .page-hero, body.wb .home-hero { background: transparent !important; box-shadow: none !important; color: var(--wb-navy); padding: 4px 0 !important; margin: 4px 0 14px 0 !important; border-radius: 0; }
body.wb .page-hero::after, body.wb .home-hero::after { display: none; }
body.wb .page-hero h2, body.wb .home-hero h2 { color: var(--wb-navy) !important; font-size: 27px; font-weight: 800; max-width: none; }
body.wb .page-hero p, body.wb .home-hero p { color: var(--wb-muted) !important; font-size: 14px; max-width: none; }

/* cards and KPI tiles */
body.wb .ecard, body.wb .kpi, body.wb .insight-box { background: #fff !important; background-image: none !important; border: 1px solid var(--wb-line) !important; border-radius: 10px !important; box-shadow: 0 1px 2px rgba(16,34,56,.05) !important; }
body.wb .ecard { padding: 15px 16px 10px 16px !important; }
body.wb .kpi { padding: 15px !important; border-left: 1px solid var(--wb-line) !important; min-height: 0; }
body.wb .kpi-label { font-size: 15px; font-weight: 700; color: var(--wb-navy) !important; text-transform: none; letter-spacing: 0; }
body.wb .kpi-value { font-size: 24px; font-weight: 750; color: var(--wb-navy); }
body.wb .kpi-delta.text-success { color: #087c68 !important; background: transparent; padding: 0; } body.wb .kpi-delta.text-danger { color: #b13e3e !important; background: transparent; padding: 0; }
body.wb .ecard-fs { top: 12px; }
body.wb .home-tile { border-radius: 10px; }

/* ---- tablet and phone: the menu slides in, grids stack ---- */
@media (max-width: 1199.98px) { body.wb .wb-s3 { grid-column: span 6; } body.wb .wb-s4, body.wb .wb-s8 { grid-column: span 12; } }
@media (max-width: 991.98px) {
  body.wb > *:not(.wb-side):not(.wb-top):not(.wb-scrim):not(.wb-tour-spot):not(.wb-tour-card):not(.modal):not(.modal-backdrop):not(#ei-toggle):not(.shiny-notification-panel):not(script):not(style):not(link) { margin-left: 0; }
  body.wb .wb-top { left: 0; padding: 0 14px; }
  body.wb .wb-menu { display: inline-block; }
  body.wb .wb-side { transform: translateX(-100%); transition: transform .2s; box-shadow: 8px 0 30px rgba(0,0,0,.3); }
  body.wb.wb-open .wb-side { transform: none; }
  body.wb.wb-open .wb-scrim { display: block; position: fixed; inset: 0; background: rgba(10,25,40,.45); z-index: 1035; }
  body.wb .wb-s6 { grid-column: span 12; }
  body.wb .wb-filters, body.wb #fn_wrap { margin-left: 14px !important; margin-right: 14px !important; }
  body.wb .tab-content > .tab-pane { padding: 14px 14px 32px 14px !important; }
  body.wb .wb-uname { display: none; }
}
@media (max-width: 575.98px) { body.wb .wb-s3 { grid-column: span 12; } body.wb .wb-filters > strong { width: 100%; } body.wb .wb-head h1 { font-size: 22px; } }
@media print { body.wb { padding: 0; } body.wb .wb-side, body.wb .wb-top, body.wb .wb-filters { display: none !important; } }

/* charts follow the design: soft grid, muted axes, rounded plotly cards */
body.wb .js-plotly-plot .gridlayer path { stroke: #edf2f4 !important; }
body.wb .js-plotly-plot .xtick text, body.wb .js-plotly-plot .ytick text { fill: #647987 !important; font-size: 10.5px !important; }
body.wb .js-plotly-plot .bars path, body.wb .js-plotly-plot .point path { transition: filter .18s; }
body.wb .js-plotly-plot .bars path:hover { filter: brightness(.88); }

/* clearer filter strip */
body.wb .wb-filters { position: static; }
body.wb .wb-ftitle { display: flex; flex-direction: column; margin-right: auto; }
body.wb .wb-ftitle strong { color: var(--wb-brand); font-size: 14px; } body.wb .wb-ftitle span { font-size: 12px; color: var(--wb-muted); }
body.wb .wb-flabel { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--wb-brand); }
body.wb .wb-fields label { padding: 2px 4px 2px 10px; }
body.wb .wb-filters > strong { margin-right: 0; }
/* tiles line up in every row */
body.wb .bslib-grid, body.wb .bslib-grid > .bslib-grid-item { align-items: stretch; }
body.wb .bslib-grid .kpi { height: 100%; }
body.wb .kpi { display: flex; flex-direction: column; justify-content: flex-start; }
/* keep the hover-insights switch clear of the menu */
body.wb #ei-toggle { left: auto !important; right: 14px !important; bottom: 14px !important; }

/* greeting: the bold figures were white-on-white once the banner became plain */
body.wb .home-hero p b, body.wb .home-hero p strong { color: var(--wb-navy) !important; }
body.wb .home-hero h2 { max-width: none !important; }
body.wb .home-hero p { opacity: 1 !important; }

/* design system applied to every older page */
/* in-page tabs become underlined section tabs */
body.wb .nav-pills { gap: 4px; border-bottom: 1px solid var(--wb-line); margin-bottom: 14px; flex-wrap: nowrap; overflow-x: auto; }
body.wb .nav-pills .nav-link { border-radius: 0 !important; background: transparent !important; color: var(--wb-muted); font-size: 13px; padding: 8px 12px; border-bottom: 2px solid transparent; white-space: nowrap; }
body.wb .nav-pills .nav-link.active { color: var(--wb-brand) !important; font-weight: 700; border-bottom-color: var(--wb-teal); }
/* section headings and notes */
body.wb h5.section { color: var(--wb-navy); font-size: 15px; font-weight: 800; margin: 22px 0 8px 0; padding: 0; border: 0; }
body.wb h5.section::before { display: none; }
body.wb .period-note, body.wb .chart-help { background: #f1faf8; border: 0; border-left: 3px solid var(--wb-teal); border-radius: 0 7px 7px 0; color: #344b55; font-size: 12.5px; padding: 9px 12px; }
/* even spacing between rows of cards */
body.wb .tab-content .row { --bs-gutter-x: 16px; --bs-gutter-y: 16px; margin-bottom: 4px; }
body.wb .tab-content .row > [class*="col"] { margin-top: 0; }
/* buttons follow the brand */
body.wb .btn-primary, body.wb .btn-success { background: var(--wb-brand); border-color: var(--wb-brand); border-radius: 7px; font-size: 12.5px; font-weight: 700; }
body.wb .btn-default, body.wb .btn-outline-secondary { border-radius: 7px; border-color: var(--wb-line); color: var(--wb-brand); }
/* tables */
body.wb table.dataTable thead th { font-size: 10.5px; letter-spacing: .4px; text-transform: uppercase; color: var(--wb-muted); border-bottom: 1px solid var(--wb-line) !important; }
body.wb table.dataTable tbody td { border-bottom: 1px solid var(--wb-line); font-size: 12.5px; padding: 8px 7px; }
body.wb table.dataTable tbody tr:hover { background: #f4f7f8; }

/* every fluidRow/column on the older pages now sits on the same 12-column grid as the new pages */
body.wb .tab-content .row { display: grid !important; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--wb-gap); margin: 0 !important; }
body.wb .tab-content .row > [class*="col-"] { width: auto !important; max-width: none !important; padding: 0 !important; margin: 0 0 var(--wb-gap) 0 !important; min-width: 0; grid-column: span 12; }
body.wb .tab-content .row > .col-sm-1 { grid-column: span 1; } body.wb .tab-content .row > .col-sm-2 { grid-column: span 2; }
body.wb .tab-content .row > .col-sm-3 { grid-column: span 3; } body.wb .tab-content .row > .col-sm-4 { grid-column: span 4; }
body.wb .tab-content .row > .col-sm-5 { grid-column: span 5; } body.wb .tab-content .row > .col-sm-6 { grid-column: span 6; }
body.wb .tab-content .row > .col-sm-7 { grid-column: span 7; } body.wb .tab-content .row > .col-sm-8 { grid-column: span 8; }
body.wb .tab-content .row > .col-sm-9 { grid-column: span 9; } body.wb .tab-content .row > .col-sm-10 { grid-column: span 10; }
body.wb .tab-content .row > .col-sm-11 { grid-column: span 11; } body.wb .tab-content .row > .col-sm-12 { grid-column: span 12; }
body.wb .tab-content .row > [class*="col-"] > .ecard, body.wb .tab-content .row > [class*="col-"] > .kpi { height: 100%; }
@media (max-width: 1199.98px) { body.wb .tab-content .row > .col-sm-3, body.wb .tab-content .row > .col-sm-2, body.wb .tab-content .row > .col-sm-4 { grid-column: span 6; }
  body.wb .tab-content .row > .col-sm-5, body.wb .tab-content .row > .col-sm-7, body.wb .tab-content .row > .col-sm-8, body.wb .tab-content .row > .col-sm-9 { grid-column: span 12; } }
@media (max-width: 767.98px) { body.wb .tab-content .row > [class*="col-"] { grid-column: span 12 !important; } }

/* spacing rhythm: same breathing room between every block on every page */
body.wb .tab-content .ecard, body.wb .tab-content .kpi { margin-bottom: var(--wb-gap) !important; }
body.wb .tab-content .row > [class*="col-"] > .ecard:last-child, body.wb .tab-content .row > [class*="col-"] > .kpi:last-child { margin-bottom: 0 !important; }
body.wb .wb-grid > div > .ecard, body.wb .wb-grid > div > .kpi { margin-bottom: 0 !important; }
body.wb .tab-content h4.section, body.wb .tab-content h5.section { display: block; position: static; margin: 28px 0 12px 0 !important; padding: 0 0 0 12px; line-height: 1.35; border-left: 3px solid var(--wb-teal); color: var(--wb-navy); font-size: 16px; font-weight: 800; overflow: visible; }
body.wb .tab-content h5.section { font-size: 14.5px; margin-top: 22px !important; }
body.wb .period-note, body.wb .chart-help { margin: 0 0 var(--wb-gap) 0 !important; line-height: 1.5; }
body.wb .tab-content .shiny-input-container { margin-bottom: 14px; }
body.wb .tab-content .dataTables_wrapper { padding-bottom: 6px; }
body.wb .tab-content .dataTables_paginate { margin-top: 10px; padding-bottom: 4px; }
body.wb .tab-content .dataTables_info { padding-top: 12px; }
body.wb .tab-content > .tab-pane > .shiny-html-output { margin-bottom: var(--wb-gap); }
/* KPI cards are clickable */
body.wb .kpi { cursor: pointer; transition: box-shadow .15s, transform .15s, border-color .15s; }
body.wb .kpi:hover { box-shadow: 0 6px 18px rgba(18,48,79,.12) !important; transform: translateY(-2px); border-color: #b9ccd6 !important; }
body.wb .modal .kpi { cursor: default; }

/* detail window */
.kd-head { padding: 4px 4px 14px 4px; border-bottom: 1px solid #dce5e9; margin-bottom: 14px; }
.kd-label { color: #647987; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.kd-value { color: #12304f; font-size: 34px; font-weight: 800; line-height: 1.2; }
.kd-delta { color: #087c68; font-size: 13px; font-weight: 700; }
.kd-note { color: #647987; padding: 10px 4px; }
.kd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.kd-block h4 { color: #12304f; font-size: 14px; font-weight: 800; margin: 0 0 8px 0; }
.kd-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.kd-table td { padding: 6px 4px; border-bottom: 1px solid #edf2f4; }
.kd-table .kd-bar { width: 38%; } .kd-table .kd-bar span { display: block; height: 8px; border-radius: 8px; background: #18bc9c; }
.kd-table .kd-num { text-align: right; font-weight: 700; color: #12304f; white-space: nowrap; }
@media (max-width: 767.98px) { .kd-grid { grid-template-columns: 1fr; } }

/* the Filters panel (More filters) */
body.wb .sidebar { background: #f7fafb; border-right: 1px solid var(--wb-line); }
body.wb .sidebar-title { color: var(--wb-navy); font-size: 18px; font-weight: 800; }
body.wb .sidebar .sidebar-content { padding: 6px 16px 20px 16px; gap: 0; }
body.wb .fp-sec { background: #fff; border: 1px solid var(--wb-line); border-radius: 10px; padding: 12px 14px 4px 14px; margin-bottom: 14px; }
body.wb .fp-sec h6 { margin: 0 0 10px 0; color: var(--wb-brand); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }
body.wb .fp-intro { color: var(--wb-muted); font-size: 12.5px; margin: 0 0 14px 0; line-height: 1.5; }
body.wb .sidebar label.control-label { font-size: 12px; font-weight: 600; color: var(--wb-ink); margin-bottom: 4px; }
body.wb .sidebar .selectize-input, body.wb .sidebar .form-control, body.wb .sidebar select { border: 1px solid var(--wb-line); border-radius: 8px; box-shadow: none; font-size: 12.5px; }
body.wb .sidebar .selectize-input.focus, body.wb .sidebar .form-control:focus { border-color: var(--wb-teal); box-shadow: 0 0 0 3px rgba(24,188,156,.18); }
body.wb .sidebar .selectize-input .item { background: #e1f6f1; color: #087c68; border-radius: 12px; border: 0; padding: 1px 8px; }
body.wb .sidebar #reset_filters { background: var(--wb-brand); border-color: var(--wb-brand); color: #fff; border-radius: 8px; padding: 9px; font-weight: 700; }
body.wb .sidebar #all_years_btn { border-radius: 8px; margin-top: 8px; }

body.wb .fp-hint { color: var(--wb-muted); font-size: 12px; margin: -4px 2px 14px 2px; }
body.wb .sidebar .selectize-input { min-height: 38px; padding: 6px 10px; }
body.wb .sidebar .selectize-input > input::placeholder { color: #9aabb5; }
body.wb .sidebar .selectize-input:not(.has-items)::before { content: 'All'; color: #9aabb5; position: absolute; }

/* plain-words / highlight boxes: clean list with a marker per line, no heavy box */
body.wb .insight-box { border: 0 !important; box-shadow: none !important; background: #f6fafb !important; border-radius: 10px !important; padding: 12px 16px !important; margin: 8px 0 var(--wb-gap) 0; }
body.wb .insight-box b:first-child, body.wb .insight-box .ib-title { display: block; color: var(--wb-brand); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }
body.wb .insight-box ul { list-style: none; margin: 0; padding: 0; }
body.wb .insight-box li { position: relative; padding: 9px 0 9px 26px; border-bottom: 1px solid #e3edf0; line-height: 1.5; font-size: 13px; color: #2b3f4a; }
body.wb .insight-box li:last-child { border-bottom: 0; }
body.wb .insight-box li::before { content: ''; position: absolute; left: 4px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--wb-teal); box-shadow: 0 0 0 4px rgba(24,188,156,.18); }
body.wb .insight-box li b { color: var(--wb-navy); }
/* a card that holds only a short list does not stretch into empty space */
body.wb .wb-grid > div:has(.insight-box) { align-self: start; }
body.wb .chart-help { margin-bottom: 12px !important; }
body.wb .shiny-input-container .shiny-options-group { margin-top: 4px; }
body.wb .tab-content .shiny-input-container > label.control-label { display: block; margin-bottom: 6px; }
body.wb .tab-content .shiny-input-container.shiny-input-radiogroup { margin: 4px 0 var(--wb-gap) 0; }

/* ============ buttons ============ */
body.wb .btn, body.wb .wb-btn { border-radius: 9px; font-weight: 600; font-size: 13px; padding: 8px 16px; transition: background .15s, box-shadow .15s, transform .15s, border-color .15s; }
body.wb .btn-primary, body.wb .btn-success, body.wb .btn-secondary, body.wb .wb-btn.primary {
  background: var(--wb-brand) !important; border: 1px solid var(--wb-brand) !important; color: #fff !important; box-shadow: 0 1px 2px rgba(18,48,79,.15); }
body.wb .btn-primary:hover, body.wb .btn-success:hover, body.wb .btn-secondary:hover, body.wb .wb-btn.primary:hover {
  background: #1b4258 !important; color: #fff !important; box-shadow: 0 5px 14px rgba(36,84,112,.30); transform: translateY(-1px); }
body.wb .btn-lg { font-size: 14px; padding: 10px 22px; }
/* quiet buttons use the same look as the full-screen button */
body.wb .btn-outline-secondary, body.wb .btn-outline-primary, body.wb .btn-default, body.wb .wb-btn:not(.primary), body.wb .btn-light {
  background: #fff !important; border: 1px solid var(--wb-line) !important; color: var(--wb-brand) !important; box-shadow: none; }
body.wb .btn-outline-secondary:hover, body.wb .btn-outline-primary:hover, body.wb .btn-default:hover, body.wb .wb-btn:not(.primary):hover, body.wb .btn-light:hover {
  background: #f1f6f8 !important; border-color: #b9ccd6 !important; color: var(--wb-brand) !important; transform: translateY(-1px); }
body.wb .btn:focus-visible, body.wb .wb-btn:focus-visible { outline: 3px solid rgba(24,188,156,.45); outline-offset: 2px; }
body.wb .ask-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
/* Ask AI quick questions: a light tint on hover, text always readable */
body.wb .ask-chip { background: #fff !important; border: 1px solid var(--wb-line) !important; color: var(--wb-ink) !important; border-radius: 10px; font-weight: 500; text-align: left; }
body.wb .ask-chip:hover { background: #eef7f6 !important; border-color: var(--wb-teal) !important; color: var(--wb-navy) !important; box-shadow: 0 4px 12px rgba(24,188,156,.15); transform: translateY(-1px); }

/* ============ filter bar: one clean row ============ */
body.wb .wb-filters { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 12px 14px; }
body.wb .wb-fields { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; flex: 1 1 auto; }
body.wb .wb-f { display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
body.wb .wb-f.wide { min-width: 210px; flex: 1 1 210px; }
body.wb .wb-flabel { font-size: 11px; font-weight: 700; letter-spacing: .3px; color: var(--wb-muted); text-transform: none; }
body.wb .wb-f .form-group, body.wb .wb-f .shiny-input-container { margin: 0 !important; width: 100% !important; }
body.wb .wb-f select, body.wb .wb-f .selectize-input { border: 1px solid var(--wb-line) !important; border-radius: 8px !important; background: #fff !important; min-height: 38px; padding: 7px 10px; font-size: 13px; box-shadow: none !important; width: 100%; }
body.wb .wb-f .selectize-input.focus { border-color: var(--wb-teal) !important; box-shadow: 0 0 0 3px rgba(24,188,156,.18) !important; }
body.wb .wb-f .selectize-input .item { background: #e1f6f1; color: #087c68; border-radius: 12px; padding: 1px 9px; border: 0; }
body.wb .wb-f .selectize-input:not(.has-items)::before { content: 'All'; color: #8fa2ad; }
body.wb .wb-f .selectize-dropdown { border-radius: 8px; border: 1px solid var(--wb-line); box-shadow: 0 10px 28px rgba(18,48,79,.14); }
body.wb .wb-factions { display: flex; gap: 8px; }
body.wb .wb-fields label, body.wb .wb-ftitle { all: unset; }

/* ============ KPI grids ============ */
body.wb .wb-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--wb-gap); margin-bottom: var(--wb-gap); }
body.wb .wb-kpis5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
body.wb .wb-kpis > .kpi { margin: 0 !important; height: 100%; }
@media (max-width: 1199.98px) { body.wb .wb-kpis5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { body.wb .wb-kpis5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ============ tables ============ */
body.wb table.dataTable { border-collapse: collapse !important; }
body.wb table.dataTable thead th { background: #f7fafb !important; border-bottom: 1px solid var(--wb-line) !important; padding: 11px 10px; }
body.wb table.dataTable tbody tr, body.wb table.dataTable tbody tr.odd, body.wb table.dataTable tbody tr.even { background: #fff !important; }
body.wb table.dataTable tbody tr:hover { background: #f4f9fa !important; }
body.wb table.dataTable tbody td { padding: 10px 10px; border-bottom: 1px solid #edf2f4 !important; color: #2b3f4a; }
body.wb table.dataTable tbody tr:last-child td { border-bottom: 0 !important; }
body.wb .dataTables_wrapper .dataTables_filter input { border: 1px solid var(--wb-line); border-radius: 8px; padding: 6px 10px; margin-left: 6px; }
body.wb .dataTables_wrapper .dataTables_info { color: var(--wb-muted); font-size: 12px; }
/* page buttons */
body.wb .dataTables_wrapper .dataTables_paginate, body.wb .dataTables_wrapper .pagination { gap: 6px; margin-top: 12px; }
body.wb .dataTables_wrapper .pagination { display: flex; justify-content: flex-end; padding: 0; }
body.wb .dataTables_wrapper .page-item .page-link, body.wb .dataTables_wrapper .paginate_button { background: #fff !important; border: 1px solid var(--wb-line) !important; border-radius: 8px !important; color: var(--wb-brand) !important; min-width: 34px; text-align: center; padding: 5px 11px; font-size: 12.5px; font-weight: 600; margin: 0 !important; box-shadow: none; }
body.wb .dataTables_wrapper .page-item .page-link:hover, body.wb .dataTables_wrapper .paginate_button:hover { background: #f1f6f8 !important; border-color: #b9ccd6 !important; }
body.wb .dataTables_wrapper .page-item.active .page-link, body.wb .dataTables_wrapper .paginate_button.current { background: var(--wb-brand) !important; border-color: var(--wb-brand) !important; color: #fff !important; }
body.wb .dataTables_wrapper .page-item.disabled .page-link, body.wb .dataTables_wrapper .paginate_button.disabled { opacity: .45; background: #fff !important; color: var(--wb-muted) !important; }

/* ============ left menu: no icons next to sub pages ============ */
body.wb .wb-sub .wb-ico { display: none; }
body.wb .wb-sub .wb-link { padding-left: 14px; }

/* ============ executive briefing overlay ============ */
.exec-modal .modal-content { border: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(18,48,79,.28); }
.exec-modal .modal-body { padding: 0; }
.exec-modal .modal-footer { border-top: 1px solid #dce5e9; background: #f7fafb; }
.exec-head { background: linear-gradient(135deg, #173c58, #245470 70%, #2d6a86); color: #fff; padding: 22px 30px 20px 30px; }
.exec-kicker { font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: #9fe3d3; }
.exec-head h3 { margin: 4px 0 4px 0; font-size: 24px; font-weight: 800; color: #fff; }
.exec-meta { font-size: 12.5px; color: #cfe3ea; }
.exec-body { padding: 22px 30px 26px 30px; max-height: 62vh; overflow-y: auto; color: #2b3f4a; font-size: 14px; line-height: 1.6; }
.exec-body h1, .exec-body h2, .exec-body h3, .exec-body h4 { color: #12304f; font-weight: 800; font-size: 16px; margin: 22px 0 8px 0; padding-bottom: 6px; border-bottom: 2px solid #e1f6f1; }
.exec-body h1:first-child, .exec-body h2:first-child, .exec-body h3:first-child { margin-top: 0; }
.exec-body p { margin: 0 0 10px 0; }
.exec-body ul, .exec-body ol { padding-left: 20px; } .exec-body li { margin-bottom: 6px; }
.exec-body strong, .exec-body b { color: #12304f; }
.exec-body table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0 12px 0; }
.exec-body th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: #647987; padding: 6px 8px; border-bottom: 1px solid #dce5e9; }
.exec-body td { padding: 7px 8px; border-bottom: 1px solid #edf2f4; vertical-align: top; }
/* product category and industry now live in the top bar */
body.wb .sidebar .shiny-input-container:has(#prodcat_filter), body.wb .sidebar .shiny-input-container:has(#industry_filter) { display: none; }

/* chart tools (zoom, pan, camera...) appear only when a chart is opened full screen */
body.wb .modebar-container, body.wb .modebar { display: none !important; }
body.wb .ecard-full .modebar-container, body.wb .ecard-full .modebar { display: block !important; }

/* Sales Breakdown: the pickers in one box, each dependency under its level */
body.wb .bd-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
body.wb .bd-col .shiny-input-container { margin-bottom: 10px; }
body.wb .bd-col .shiny-input-container:last-child { margin-bottom: 0; }
body.wb .bd-box { padding-bottom: 12px !important; }
@media (max-width: 991.98px) { body.wb .bd-cols { grid-template-columns: 1fr; } }

/* dropdown lists: always on top and never cut off by a card */
body.wb .bd-box, body.wb .wb-filters { overflow: visible; }
.selectize-dropdown { z-index: 3000 !important; border: 1px solid #dce5e9; border-radius: 8px; box-shadow: 0 12px 30px rgba(18,48,79,.18); overflow: hidden; background: #fff; }
.selectize-dropdown .option { padding: 8px 12px; font-size: 13px; color: #2b3f4a; }
.selectize-dropdown .option:hover, .selectize-dropdown .active { background: #e8f4f2 !important; color: #12304f !important; }
.selectize-dropdown .selected { background: #245470 !important; color: #fff !important; }
.selectize-dropdown-content { max-height: 280px; }


/* ============ fonts: Inter for text, tables and numbers; Poppins for headings ============ */
body.wb, body.wb .btn, body.wb input, body.wb select, body.wb textarea, body.wb table, body.wb .selectize-input, body.wb .dataTables_wrapper, body.wb .modal-content {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif; }
body.wb h1, body.wb h2, body.wb h3, body.wb h4, body.wb h5, body.wb h6, body.wb .wb-head h1, body.wb .wb-h2, body.wb .wb-logo, body.wb .kpi-label,
body.wb .sidebar-title, body.wb .home-tile .tile-title, body.wb .kd-label, body.wb .exec-head h3, body.wb h4.section, body.wb h5.section, body.wb .tc-title {
  font-family: 'Poppins', 'Inter', 'Segoe UI', system-ui, Arial, sans-serif; letter-spacing: -0.005em; }
body.wb .kpi-value, body.wb .kd-value, body.wb table.dataTable td, body.wb .kd-num { font-family: 'Inter', 'Segoe UI', system-ui, Arial, sans-serif; font-variant-numeric: tabular-nums; }
body.wb .kpi-value { font-weight: 700; letter-spacing: -0.01em; }
body.wb .wb-link, body.wb .wb-group > summary, body.wb .wb-label { font-family: 'Inter', 'Segoe UI', system-ui, Arial, sans-serif; }
.exec-head h3, .exec-body h1, .exec-body h2, .exec-body h3 { font-family: 'Poppins', 'Inter', 'Segoe UI', system-ui, Arial, sans-serif; }
.exec-body, .kd-table { font-family: 'Inter', 'Segoe UI', system-ui, Arial, sans-serif; }
/* the Sales Breakdown box sits above the cards below it so its dropdown lists are never hidden */
body.wb .bd-box { position: relative; z-index: 30; overflow: visible !important; }
body.wb .bd-box .selectize-dropdown { z-index: 3000 !important; }
body.wb .tab-content, body.wb .tab-pane, body.wb .tab-content > .tab-pane > div { overflow: visible; }

/* an empty table shows its picture inside the card, never over the heading above it */
td.dataTables_empty::before { display: block; margin: 0 auto 8px auto; zoom: .7; }
body.wb .dataTables_wrapper:has(td.dataTables_empty) .dataTables_scrollBody { height: auto !important; max-height: none !important; min-height: 130px; }
body.wb .ecard { overflow: hidden; }
body.wb .bd-box { overflow: visible !important; }

/* ============ guided tour ============ */
.wb-tour-spot { position: fixed; z-index: 4000; border-radius: 12px; pointer-events: none; opacity: 0; transition: all .25s ease;
  box-shadow: 0 0 0 9999px rgba(10,25,40,.58), 0 0 0 3px #18bc9c; }
.wb-tour-spot.on { opacity: 1; }
.wb-tour-card { position: fixed; z-index: 4010; display: none; background: #fff; color: #2b3f4a; border-radius: 14px; padding: 18px 20px 14px 20px;
  box-shadow: 0 18px 50px rgba(10,25,40,.35); font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; }
.wb-tour-card.on { display: block; }
.wb-tour-step { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #18bc9c; }
.wb-tour-card h4 { margin: 4px 0 6px 0; font-family: 'Poppins', 'Inter', sans-serif; font-size: 17px; font-weight: 700; color: #12304f; }
.wb-tour-card p { margin: 0 0 14px 0; font-size: 13.5px; line-height: 1.55; }
.wb-tour-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wb-tour-bar button { border-radius: 9px; font-size: 13px; font-weight: 600; padding: 7px 14px; cursor: pointer; font-family: inherit; }
.wb-tour-next { background: #245470; border: 1px solid #245470; color: #fff; }
.wb-tour-next:hover { background: #1b4258; }
.wb-tour-back { background: #fff; border: 1px solid #dce5e9; color: #245470; margin-right: 6px; }
.wb-tour-skip { background: transparent; border: 0; color: #647987; padding-left: 0 !important; }
.wb-tour-skip:hover { color: #12304f; text-decoration: underline; }
.exec-body ol { padding-left: 22px; } .exec-body ol li { padding-left: 4px; }
.exec-body li::marker { color: #18bc9c; font-weight: 700; }

/* long text values (for example a warehouse name) wrap instead of being cut off */
body.wb .kpi-value.kpi-long, .kpi-value.kpi-long { white-space: normal; overflow-wrap: anywhere; font-size: 17px; line-height: 1.25; }

/* empty tables: a clear one-line message, no picture (the picture overlapped the heading above the table) */
body.wb td.dataTables_empty::before, body.wb .dataTables_wrapper td.dataTables_empty::before { content: none !important; display: none !important; }
body.wb td.dataTables_empty { padding: 22px 10px !important; text-align: center !important; color: var(--wb-muted); font-weight: 500; }
body.wb .dataTables_wrapper:has(td.dataTables_empty) .dataTables_scrollBody { height: auto !important; max-height: none !important; min-height: 0 !important; }

/* "no data" messages from validate(): plain text, no picture (the picture covered the heading above) */
body.wb .shiny-output-error-validation::before { content: none !important; display: none !important; }
body.wb .shiny-output-error-validation { display: block; position: static !important; padding: 22px 12px !important; margin: 0 !important; text-align: center; color: var(--wb-muted) !important; font-weight: 500; font-size: 13.5px; }

/* pages the global filter strip does not drive */
body.wb.wb-nofilter .wb-filters, body.wb.wb-nofilter #fn_wrap { display: none !important; }
