/****************************************************************************** 
======================= GLOBAL & SHARED STYLES ================================
******************************************************************************/


body {
    font-family: Arial, sans-serif;
}


/******************************************************************************
============================= HOME PAGE NEWS ==================================
******************************************************************************/


/* Style for each news item */
.news-item {
    padding: 8px 10px;
    margin-bottom: 4px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    min-height: 38px;
}

/* Hover effect */
.news-item:hover {
    background-color: #2a2a2a;
    cursor: pointer;
    transform: none;
}

/* Timestamp block */
.news-timestamp {
    width: 80px;
    flex-shrink: 0;
    margin-right: 10px;
    border-right: 1px solid #444;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

/* Date line */
.date {
    font-size: 12px;
    color: #cccccc;
    margin-bottom: 2px;
}

/* Time line */
.time {
    font-size: 12px;
    color: #999999;
}

/* Headline content */
.news-headline {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
    max-width: calc(100% - 100px);
}



/******************************************************************************
========================= HOME PAGE ASSET PERFORMANCE =========================
******************************************************************************/


/* ===========================================================
   Major Asset Performance — FINAL SYNCHRONIZED VERSION
   =========================================================== */

/* ===== PERFORMANCE TILE CONTAINER ===== */
.perf-container {
    display: grid;
    grid-auto-rows: minmax(0, 1fr);
    width: 100%;
    height: 100%;
    gap: 4px;
    overflow: hidden;
    box-sizing: border-box;
}

/* ===========================================================
   UNIFIED GRID FOR BOTH HEADER & ROWS
   =========================================================== */

.perf-header-row,
.perf-row {
    display: grid;
    grid-template-columns: 90px 28px 80px 1fr;  /* SYMBOL | ? | CHANGE | BAR */
    align-items: center;
    padding: 3px 6px;
    height: 24px;
    column-gap: 6px;
}

/* ===========================================================
   HEADER — CLEAN, CENTERED, PROPER SPACING
   =========================================================== */

.perf-header-row {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #bbbbbb;

    padding-top: 6px;
    padding-bottom: 22px;     /* lower underline */
    border-bottom: 1px solid #444;
}

/* SYMBOL HEADER */
.perf-header-symbol {
    text-align: left;
    padding-right: 8px;
    border-right: 1px solid #333;
}

/* "?" HEADER */
.perf-header-dot {
    font-size: 14px;
    font-weight: 600;

    display: flex;
    align-items: center;
    justify-content: center;   /* match centering of dot in rows */

    padding: 0;
    border-right: 1px solid #333;   /* divider between ? and CHANGE */
}

/* CHANGE HEADER */
.perf-header-pct {
    text-align: center;
    padding: 0 8px;
    border-right: 1px solid #333;
}

/* RELATIVE PERFORMANCE HEADER */
.perf-header-bar {
    text-align: center;
    padding: 0 12px;
}

/* ===========================================================
   ROWS — EXACTLY MATCH HEADER PADDING & GRID
   =========================================================== */

/* SYMBOL COLUMN */
.perf-symbol {
    font-weight: 600;
    font-size: 14px;
    color: #e0e0e0;
    text-align: left;
    padding-right: 8px;
    border-right: 1px solid #333;
}



/* Center DOT in its grid cell */
.perf-sentiment-dot {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center !important;   /* center horizontally */
    border-right: 1px solid #333;
}



/* Center CHANGE values */
.perf-pct {
    text-align: center !important;        /* center text */
    padding: 0 8px;
    border-right: 1px solid #333;
    font-weight: bold;
    font-size: 13px;
}


/* ===========================================================
   BAR COLUMN
   =========================================================== */

.perf-bar {
    height: 12px;
    background-color: #1a1a1a;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}

.perf-bar div {
    height: 100%;
    border-radius: 6px;
}

/* Center zero line */
.perf-bar::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #666;
}





/* ===========================================================
   BODY ROW COLUMNS — MATCHED WITH HEADER
   =========================================================== */

/* SYMBOL COLUMN */
.perf-symbol {
    font-weight: 600;
    font-size: 14px;
    color: #e0e0e0;
    text-align: left;
    padding-right: 8px;
    border-right: 1px solid #333;
}

/* DOT COLUMN */
.perf-sentiment-dot {
    width: 22px;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    padding-left: 4px;
    padding-right: 6px;
    border-right: 1px solid #333;

    margin: 0;
}

/* PERCENT COLUMN */
.perf-pct {
    text-align: right;
    padding-left: 2px;
    padding-right: 8px;
    border-right: 1px solid #333;
    font-weight: bold;
    font-size: 13px;
}

/* ===========================================================
   RELATIVE PERFORMANCE BAR
   =========================================================== */

.perf-bar {
    height: 12px;
    background-color: #1a1a1a;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}

.perf-bar div {
    height: 100%;
    border-radius: 6px;
}

/* Center zero line */
.perf-bar::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #666;
}






/******************************************************************************
========================== HOME PAGE VIDEO COMMENTARY =========================
******************************************************************************/



/* --- Responsive grid for the video cards --- */
.video-list {
  /* Use a grid so cards flow horizontally on wider viewports.  Each card has
     a minimum width of 200px and grows to fill the available space. */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  overflow-y: auto;
  min-height: 200px;
  padding: 4px;
}

.video-list .video-card {
  display: flex;
  flex-direction: column;
  background-color: #222;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-list .video-card:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.video-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.video-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  padding: 6px 8px 2px 8px;
}

.video-date {
  font-size: 12px;
  color: #bbb;
  padding: 0 8px 6px 8px;
}

.play-btn {
  margin-top: 6px;
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  background: #333;
  color: #fff;
  cursor: pointer;
  z-index: 10;
}


.video-card { display: flex; flex-direction: column; gap: 6px; }
.video-embed { width: 100%; aspect-ratio: 16/9; border: none; border-radius: 10px; display: block; background: #000; }
.close-video-btn {
  position: absolute; top: 6px; right: 6px;
  border: none; background: rgba(0,0,0,0.45); color: #fff;
  width: 28px; height: 28px; line-height: 28px;
  border-radius: 50%; cursor: pointer; font-size: 18px; padding: 0;
}
.close-video-btn:hover { background: rgba(0,0,0,0.65); }


/* ---------- Video tabs (pills) ---------- */
/* Tabs: pills, no wrap */
.video-tabs {
  border-bottom: none !important;
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;       /* stay on one line */
  overflow: hidden;        /* avoid accidental scrollbar */
}

/* Each tab uses the `video-tab` class.  We avoid styling Dash's internal
   `.tab` selector directly and instead apply styles to our own classes. */
.video-tabs .video-tab {
  background: #1a1a1a !important;
  color: #cfcfcf !important;
  border: 1px solid #2b2b2b !important;
  border-radius: 9999px !important;
  padding: 6px 12px !important;
  font-size: 12px;
  white-space: nowrap;           /* never break labels */
  transition: background .2s, color .2s, box-shadow .2s, transform .2s;
}

.video-tabs .video-tab:hover {
  background: #232323 !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* The active tab receives `video-tab--selected` from the `selected_className`
   prop in Python. */
.video-tabs .video-tab--selected {
  background: #2e2153 !important;   /* purple-ish bg */
  color: #FFD700 !important;        /* yellow text */
  box-shadow: 0 0 0 2px #8B5CF6 inset;
}

/* Header row: keep left, keep on one line */
.video-header {
  display: flex;
  align-items: center;
  gap: 12px;               /* space between H3 and tabs */
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: nowrap;       /* don't let "Previews" drop */
}


.video-embed {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
  background: #000;
}


/******************************************************************************
========================== HOME PAGE RATE EXPECTATIONS ========================
******************************************************************************/



/* === Rate Expectations tile (scoped) === */
.rate-card-wrap { padding: 8px 4px; }

.rate-card {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;     /* row “card” gaps */
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #e9e9e9;
}

.rate-card thead th {
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .02em;
  color: #bdbdbd;
  padding: 6px 10px 4px;
  border-bottom: 1px solid #2b2b2b;
}

.rate-card tbody tr {
  background: #171717;
  box-shadow: 0 1px 0 #2b2b2b;
}


.rate-card td {
  padding: 4px 6px;   /* was 10px */
  vertical-align: middle;
  font-size: 13px;    /* optional: shrink font a touch */
}


/* ✅ Force rate tables to fit tiles without scrollbars */
.rate-card {
  table-layout: fixed;   /* keeps table inside container */
  font-size: clamp(11px, 1vw, 13px); /* responsive scaling */
}

.rate-card th,
.rate-card td {
  white-space: nowrap;       /* stop wrapping */
  text-overflow: ellipsis;   /* clean overflow */
  overflow: hidden;
  padding: 3px 4px;          /* tighter padding */
}

.rate-card-wrap {
  overflow: hidden !important;  /* remove scrollbars */
  flex: 1 1 auto;               /* allow shrinking */
}


/* ✅ Allow wrapping only on Home Page version */
#rate-expectations-table .rate-card thead th {
  white-space: normal;     /* allow text to wrap */
  word-break: break-word;  /* break long words if needed */
  line-height: 1.2;        /* keep it compact */
}


/* Central bank cell */
.rate-card .cb-cell { display: flex; align-items: center; gap: 10px; }
.rate-card .cb-flag { font-size: 15px; line-height: 1; }
.rate-card .cb-name { font-weight: 700; }

/* Implied BSP coloring */
.rate-card .bsp { font-weight: 600; }
.rate-card .bsp.neg { color: #ff4d4f; }
.rate-card .bsp.pos { color: #86ff6b; }


/* Move badges */
.rate-card .badge {
  display: inline-block; padding: 3px 7px; border-radius: 999px;
  font-weight: 700; font-size: 11px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}
.rate-card .badge-cut  { background: #2b1430; color: #e08bff; }
.rate-card .badge-hold { background: #2a2a1a; color: #ffd84d; }
.rate-card .badge-hike { background: #0f2b16; color: #86ff6b; }

/* Probability bars */
.rate-card .prob-cell { width: 15%; min-width: 100px; }
.rate-card .prob-num  { font-weight: 700; font-feature-settings: "tnum" 1, "lnum" 1; margin-bottom: 6px; }
.rate-card .prob-bar  { height: 8px; background: #2b2b2b; border-radius: 6px; overflow: hidden; }
.rate-card .prob-fill { height: 100%; border-radius: 6px; }

.rate-card .prob-bar.cut  .prob-fill  { background: linear-gradient(90deg,#a64fff,#ff8bff); }
.rate-card .prob-bar.hold .prob-fill  { background: linear-gradient(90deg,#ffd84d,#ffb84d); }
.rate-card .prob-bar.hike .prob-fill  { background: linear-gradient(90deg,#37f087,#86ff6b); }


.cb-cell {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cb-flag-img {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.cb-name {
  font-weight: 600;   /* keep the country/CB code visible and crisp */
  letter-spacing: 0.2px;
}



/* Morning Summary Tile */
#morning-summary-content {
  background: #171717;
  border-radius: 8px;
  padding: 12px;
  box-shadow: inset 0 0 6px rgba(255,255,255,0.05);
}

#morning-summary-content div {
  margin-bottom: 10px;
}

#morning-summary-content strong {
  color: #ffd84d; /* highlight key section headers */
}


/* Tighten title spacing for Rate Expectations Overview */
#rate-expectations-table h3,
#rate-expectations-table + .rate-card-wrap {
    margin-top: 1px !important;   /* was ~16px by default */
}




/* === Generic pill group for RadioItems === */
.pill-group label {
  display: inline-flex;
  align-items: center;
  margin: 0 6px 0 0;
}

.pill-group input[type="radio"] {
  display: none; /* hide the native circle */
}

.pill-group .pill-txt {
  padding: 6px 12px;
  border-radius: 9999px;
  background: #1e1e1e;
  color: #cfcfcf;
  border: 1px solid #2b2b2b;
  font-size: 13px;
  line-height: 1;
  transition: background .15s, color .15s, box-shadow .15s;
  user-select: none;
  white-space: nowrap;
}

.pill-group label:hover .pill-txt {
  background: #232323;
  color: #fff;
}

/* Selected state (clear blue highlight) */
.pill-group input[type="radio"]:checked + .pill-txt {
  background: #2e2153;     /* purple-ish bg */
  color: #FFD700;          /* yellow text */
  box-shadow: 0 0 0 2px #8B5CF6 inset;
  font-weight: 600;
}





/******************************************************************************
================================ CALENDAR PAGE ================================
******************************************************************************/


#calendar-table .rate-card-wrap {
  overflow: auto !important;
}


.rate-card.calendar {
    border-collapse: separate;
    border-spacing: 0 2px;   /* tighter gaps only for calendar */
}


/* === Economic Calendar table (scoped) === */
.rate-card.calendar thead th {
  text-align: center;             /* center all headers by default */
}
.rate-card.calendar thead th.indicator-col {
  text-align: left;               /* left align Indicator column */
}

/* Date column narrower */
.rate-card.calendar td.date-col {
  width: 100px;                   /* adjust as needed */
  text-align: center;
}

/* All td center aligned by default */
.rate-card.calendar td {
  text-align: center;
}

/* Indicator column left aligned */
.rate-card.calendar td.indicator-col {
  text-align: left;
}



/* Impact badges with dark pill background */
.impact-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  background-color: #2b2b2b;  /* dark grey pill background */
}

.impact-high {
  color: #d9534f;   /* dark red */
}

.impact-medium {
  color: #f0ad4e;   /* orange */
}

.impact-low {
  color: #ffffff;   /* white */
}



/* Central bank speaker rows */
.cb-speak-row td {
  background-color: #2b2b2b !important;  /* highlight full row */
}

.cb-speak-row td.indicator-col {
  font-style: italic;
  color: #f5f5f5;
}


/* Threshold highlights */
.row-green td {
  background-color: rgba(0, 128, 0, 0.30) !important; /* subtle green */
}

.row-red td {
  background-color: rgba(178, 34, 34, 0.30) !important; /* subtle red */
}




/* === Calendar Filter Bar === */
.calendar-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  align-items: center;
}



/* --- DATE PICKER RANGE --- */
.DateRangePickerInput {
  background-color: #1e1e1e !important;
  border: 1px solid #2b2b2b !important;
  border-radius: 9999px !important;
  font-size: 13px !important;
  display: flex;
  align-items: center;
  height: 36px; /* ✅ unify height */
  padding: 0 8px;
}

/* Inner date inputs (remove white background) */
.DateInput_input {
  background: transparent !important; /* ✅ no more white */
  color: #fff !important;
  border: none !important;
  font-size: 13px !important;
  height: 34px !important; /* ✅ match outer */
  line-height: 34px !important;
  padding: 0 6px !important;
  box-shadow: none !important;
  text-align: center !important;
}

/* Placeholder inside date fields */
.DateInput_input::placeholder {
  color: #aaa !important;
}




/* --- COUNTRY DROPDOWN (selected pill) --- */
.Select-control {
  background: #1e1e1e !important;
  border: 1px solid #2b2b2b !important;
  border-radius: 9999px !important;
  color: #fff !important;
  font-size: 13px !important;
  min-width: 140px;
  height: 36px !important;
}

.Select-value-label {
  color: #fff !important;
  font-size: 13px !important;
  line-height: 34px !important;
}

/* --- COUNTRY DROPDOWN MENU (open list) --- */
.Select-menu-outer {
  background: #1e1e1e !important;
  border: 1px solid #2b2b2b !important;
  border-radius: 6px !important;
  font-size: 13px
}

.Select-option {
  background: #1e1e1e !important;
  color: #fff !important;
  font-size: 13px !important;
  padding: 6px 10px;
}

.Select-option.is-focused {
  background: #2b2b2b !important; /* hover highlight */
  color: #fff !important;
  font-size: 13px
}



/* --- SEARCH BOX --- */
#calendar-event-filter {
  background: #1e1e1e !important;
  color: #fff !important;
  border: 1px solid #2b2b2b !important;
  border-radius: 9999px !important;
  padding: 0 12px;
  font-size: 13px;
  width: 200px;
  height: 36px !important; /* ✅ same height */
  line-height: 34px;
}


/* Fix white background behind each date box */
.DateInput {
  background: transparent !important;  /* removes white box */
  border: none !important;
}




.calendar-preset {
  background: #1e1e1e;
  border: 1px solid #2b2b2b;
  border-radius: 9999px;
  color: #fff;
  font-size: 13px;
  height: 36px;
  line-height: 34px;
  padding: 0 14px;
  cursor: pointer;
}

.calendar-preset:hover {
  background: #2b2b2b;
}

.calendar-preset.clear-btn {
  color: #ff6666;       /* red-ish text */
  border-color: #ff6666;
}

.calendar-preset.clear-btn:hover {
  background: #3a1e1e;
}



/* --- SINGLE DATE PICKER BADGE --- */
.calendar-single-date .SingleDatePickerInput {
  background-color: #1e1e1e !important;
  border: 1px solid #2b2b2b !important;
  border-radius: 9999px !important;
  font-size: 13px !important;
  display: flex;
  align-items: center;
  height: 36px !important;
  padding: 0 12px;
}

.calendar-single-date .SingleDatePickerInput input {
  background: transparent !important;
  color: #fff !important;
  border: none !important;
  text-align: center !important;
  font-size: 13px !important;
  height: 34px !important;
  line-height: 34px !important;
  box-shadow: none !important;
}

.calendar-single-date .SingleDatePickerInput input::placeholder {
  color: #aaa !important;
}



.upcoming-event {
    background-color: rgba(255, 215, 0, 0.15); /* a soft yellow highlight */
}


.active-filter {
    background-color: #007acc; /* or any highlight color */
    color: white;
    border: 1px solid #005a9e;
}






/******************************************************************************
============================== CENTRAL BANK PAGE ==============================
******************************************************************************/



/* === Central Bank Pills === */

/* === Central Bank Pills (Top-of-page selectors style) === */
.cb-tabs {
  display: flex !important;
  justify-content: center !important;
  border: none !important;
  background: transparent !important;
  gap: 8px;                       /* balanced spacing */
  flex-wrap: nowrap !important;   /* ✅ stay on one row */
  width: 100% !important;
  overflow: hidden;               /* ✅ no scrollbars */
}

.cb-tab {
  flex: 0 1 auto !important;        /* allow controlled shrinking */
  background: #1e1e1e !important;
  border-radius: 9999px !important;
  color: #fff !important;
  font-size: 12px !important;       /* bumped font slightly back up */
  padding: 4px 8px !important;     /* slightly roomier padding */
  min-width: 70px !important;       /* ✅ ensures readability */
  max-width: 100px !important;      /* ✅ keeps them from hogging */

  border: none !important;
  margin: 0 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}


/* Force spacing between tab items even with Dash wrappers */
.cb-tabs { 
  gap: 0 !important;              /* neutralize gap; we'll control via margins */
}

/* The actual flex items are the direct children Dash injects */
.cb-tabs > * {
  margin: 0 14px 0px 0 !important;  /* right + bottom spacing between badges */
}

/* Optional: no extra space after the last item on a row */
.cb-tabs > *:last-child {
  margin-right: 0 !important;
}

.cb-tab:hover {
  background: #2b2b2b !important;
  transform: translateY(-1px);
}

/* Selected pill */
.cb-tab--selected {
  background: #2e2153 !important;
  color: #FFD700 !important;
  box-shadow: 0 0 0 2px #8B5CF6 inset;
}


/* --- Central Bank Tile 1 spacing & alignment --- */
.cb-tile .rate-card-wrap { 
  margin-top: 2px;         /* pulls table closer to the title */
}

.cb-tile .rate-card th,
.cb-tile .rate-card td {
  text-align: center;      /* center align ALL columns in Tile 1 */
  vertical-align: middle;  /* better row look */
}

/* keep empty rows same height as filled rows */
.cb-tile .rate-card td {
  height: 35px;            /* same height for filled & empty */
  vertical-align: middle;  /* center vertically */
}



.curve-badge {
    background-color: #2a2a2a;
    border-radius: 20px;
    padding: 4px 12px;
    margin: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ccc;
    font-size: 13px;
}
.curve-badge:hover {
    background-color: #444;
}
.curve-badge-selected {
    background-color: #FFD700;
    color: black;
    font-weight: bold;
}




/* === Tile 4: Rate Curves (Current) — unified transparent highlight === */
.curve-pill {
  background-color: #1e1e1e;
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 13px;
  color: #ccc;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  margin: 0 4px 4px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hide the default checkbox */
.curve-pill input[type="checkbox"] {
  display: none;
}

/* Hover */
.curve-pill:hover {
  background-color: #2b2b2b;
  color: #fff;
}

/* Active / Selected — single transparent purple highlight */
label.curve-pill:has(input[type="checkbox"]:checked),
.curve-pill.active {
  background-color: rgba(78, 46, 129, 0.28) !important; /* soft transparent purple */
  color: #FFD700 !important;
  border-color: #8B5CF6 !important;
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.6) inset,   /* inner purple edge */
    0 0 4px rgba(139, 92, 246, 0.4);           /* outer glow */
  font-weight: 600;
}

/* Flatten inner span */
.curve-pill span {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  color: inherit !important;
  box-shadow: none !important;
}


/* === Shared Pill Button Style (Tile 1 toggles) === */
.pill-btn {
  border: 1px solid #2b2b2b;
  color: #d3d3d3;
  background-color: #1e1e1e;
  border-radius: 20px;
  padding: 3px 12px;
  transition: 0.2s ease-in-out;
  font-size: 13px;
  cursor: pointer;
}

/* Hover */
.pill-btn:hover {
  background-color: #2b2b2b;
  color: #fff;
}

/* Active — identical to page selector + Rate Curves highlight */
.pill-btn.active-pill {
  background: #2e2153;              /* same purple as top tabs */
  color: #FFD700;
  box-shadow: 0 0 0 1px #8B5CF6 inset;
  font-weight: 600;
}



/****************************************************************************** 
========================= CENTRAL BANK TILE 3 (NEWS) ==========================
******************************************************************************/

/* Wrap the whole tile neatly */
#tile-3 {
  display: flex;
  flex-direction: column;
  height: 100%;            /* 👈 stretch to match Tile 1 */
  box-sizing: border-box;
}

/* Inner scrolling list */
.news-scroll {
  max-height: 100%;
  overflow-y: auto;
}

.news-item {
  border-bottom: 1px solid #333;
  padding: 6px 0;
}




.cb-tile{
  /* keep layout behavior only */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}



.cb-chart {
    flex: 1 1 auto;
    height: 100%;
    min-height: 500px;
}




/* =========================
   TILE 1 TABLE: DARK CHARCOAL (NO BLUE HUE)
   + NO INNER ROUNDED CORNERS
   ========================= */
.rate-card.rate-card--glassy{
  width: 100%;
  border-collapse: collapse;          /* ✅ no rounded-table feel */
  border-spacing: 0;
  border-radius: 0 !important;        /* ✅ remove inner rounding */
  overflow: visible !important;

  /* ✅ neutral charcoal (no blue bias) */
  background: rgba(8, 8, 8, 0.78);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: none;                   /* ✅ let the tile carry the shadow */
  backdrop-filter: blur(10px);
}

.rate-card.rate-card--glassy thead th{
  /* ✅ neutral charcoal header */
  background: rgba(14, 14, 14, 0.88) !important;
  color: rgba(232,232,232,0.92) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 8px;
}

.rate-card.rate-card--glassy tbody td{
  /* ✅ darker neutral cells */
  background: rgba(10, 10, 10, 0.70);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: rgba(232,232,232,0.88);
  font-size: 12px;
  padding: 8px 8px;
}

/* subtle striping, still neutral charcoal */
.rate-card.rate-card--glassy tbody tr:nth-child(even) td{
  background: rgba(9, 9, 9, 0.75);
}

/* hover slightly brighter, still neutral */
.rate-card.rate-card--glassy tbody tr:hover td{
  background: rgba(255,255,255,0.045);
}

/* keep blank rows invisible but preserve spacing */
.rate-card.rate-card--glassy tbody tr.rate-tr--blank td{
  background: rgba(10, 10, 10, 0.55);
  color: transparent;
}

/* ✅ IMPORTANT:
   We do NOT touch .bsp.pos/.bsp.neg or any _prob_cell() styling.
   Your green/red and probability bars remain unchanged.
*/



/* prevents white flash while Plotly redraws */
.cb-tile .js-plotly-plot,
.cb-tile .plot-container,
.cb-tile .svg-container{
  background: transparent !important;
}



/* =========================
   CB NEWS MODAL: NICE GLASS (REVERT)
   ========================= */
#cb-news-modal .modal-shell{
  background: rgba(8, 8, 8, 0.92) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  box-shadow: 0 18px 55px rgba(0,0,0,0.65) !important;
  backdrop-filter: blur(12px);
}

/* Make the content area opaque too (this prevents any "line" from the dashboard behind) */
#cb-news-modal .cb-news-body{
  background: #0b0f14 !important;               /* fully opaque */
}

/* Divider (only when used) */
#cb-news-modal .cb-news-divider{
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 10px 0 14px 0;
}

/* Rows: top separators only (no bottom border illusion) */
#cb-news-modal .cb-news-row{
  border-bottom: none !important;
  padding: 8px 0 !important;
}
#cb-news-modal .cb-news-row + .cb-news-row{
  border-top: 1px solid rgba(255,255,255,0.06);
}


/* =========================
   CB NEWS MODAL: REMOVE RANDOM MID-SCROLL LINE
   (strip borders from scroll container; separators only on rows)
   ========================= */

/* Make sure the modal body container itself has NO borders/lines */
#cb-news-modal #cb-news-modal-body,
#cb-news-modal .cb-news-body,
#cb-news-modal .modal-shell > div,
#cb-news-modal .modal-shell *{
  outline: none;
}

/* Specifically nuke any borders that might be applied to the scroll area */
#cb-news-modal #cb-news-modal-body{
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Also nuke accidental <hr> lines if any exist */
#cb-news-modal hr{
  display: none !important;
}

/* Row separators: ONLY between rows (top border) */
#cb-news-modal .cb-news-row{
  border: none !important;
  padding: 8px 0 !important;
}
#cb-news-modal .cb-news-row + .cb-news-row{
  border-top: 1px solid rgba(255,255,255,0.06) !important;
}



/* Kill any accidental <hr> inside the modal */
#cb-news-modal hr{ display:none !important; }

/* Ensure no container border is being applied to the list wrapper */
#cb-news-modal .cb-news-body,
#cb-news-modal .cb-news-list{
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}


/****************************************************************************** 
========================= CURRENCY PAGE - SEARCH ==========================
******************************************************************************/



/* Currency page dropdown: single-pill look */
#currency-pair-search .Select-control {
  background: #1e1e1e;
  border: none;
  border-radius: 9999px;
  min-height: 36px;
  box-shadow: none;
}
#currency-pair-search .Select-placeholder,
#currency-pair-search .Select-value-label,
#currency-pair-search .Select-input > input {
  color: #ffffff !important;
}
#currency-pair-search .Select-arrow-zone { color: #ffffff; }
#currency-pair-search .Select-menu-outer {
  background: #1e1e1e;
  border: 1px solid #2b2b2b;
  border-radius: 10px;
}


/* Pill styling applied to the inner control of the search dropdown */
.pill-dropdown .Select__control {
  background-color: #1e1e1e;
  border: none;
  border-radius: 9999px;
  min-height: 32px;
  height: 32px;
  box-shadow: none;
}

.pill-dropdown .Select__value-container {
  padding: 0 12px;
}

.pill-dropdown .Select__single-value,
.pill-dropdown .Select__placeholder {
  color: #ffffff;
}

.pill-dropdown .Select__indicators { color: #ffffff; }
.pill-dropdown .Select__indicator { padding: 6px; }

.pill-dropdown .Select__menu {
  background-color: #1e1e1e;
  color: #ffffff;
  z-index: 10000; /* ensure dropdown menu sits above other elements */
}


/* Elevate dropdown menus in Tile 1 above the chart */
#currency-tile-1 .Select__menu {
  z-index: 10000;
}


/* --- Central Bank Flags --- */
.cb-flag-img {
  width: 30px;        /* increase width */
  height: 20px;       /* slightly shorter height */
  object-fit: cover;  /* ensures rectangular scaling */
  border-radius: 2px; /* optional: subtle rounding for cleaner look */
  margin-right: 6px;  /* small gap before text */
  vertical-align: middle;
}


/* --- Central Bank News Modal Layer Fix --- */
#cb-news-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  /* don't force display, let Dash toggle it */
  justify-content: center !important;
  align-items: center !important;
  z-index: 999999 !important;
  background-color: rgba(0, 0, 0, 0.75) !important;
}

/* Inner modal box */
#cb-news-modal > div {
  position: relative !important;
  z-index: 1000000 !important;
  background-color: #1e1e1e !important;
  color: #fff !important;
  border-radius: 12px !important;
  padding: 20px !important;
  width: 70% !important;
  max-height: 80vh !important;
  overflow-y: auto !important;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.9) !important;
}


/* Keep Central Bank News modal at a comfortable width and height */
#cb-news-modal > div {
  transition: all 0.2s ease;
  width: 50% !important;
  min-width: 500px !important;
  min-height: 600px !important;
  max-height: 80vh !important;
  overflow-y: auto !important;
}

#cb-news-modal[style*="display: flex"] {
  opacity: 1;
  pointer-events: all;
}

/* --- Central Bank Modal dropdown (dark mode) --- */
#cb-news-dropdown .Select-control {
  background-color: #1e1e1e !important;
  color: white !important;
  border-color: #555 !important;
}

#cb-news-dropdown .Select-menu-outer {
  background-color: #1e1e1e !important;
  color: white !important;
  border: 1px solid #555 !important;
}

#cb-news-dropdown .VirtualizedSelectOption {
  color: white !important;
  white-space: pre; /* keeps the indent for speaker rows */
}

#cb-news-dropdown .Select-placeholder,
#cb-news-dropdown .Select-value-label {
  color: white !important;
}


#cb-news-bank-header img {
  height: 50px;
}

@media (max-width: 1000px) {
  #cb-news-bank-header img {
    height: 40px;
  }
}


/* In your assets/custom.css or inside a <style> block */
.Select-control, .Select--single > .Select-control {
    border: none !important;
    box-shadow: none !important;
    background-color: #2a2a2a !important;
    border-radius: 20px !important;
}

.Select-menu-outer {
    background-color: #1f1f1f !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4) !important;
}

.Select-value-label {
    color: #fff !important;
    font-weight: 600 !important;
}


/* scope to our modal pills only */
.pill-dd .Select,
.pill-dd .Select-control {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;      /* wrapper stays transparent */
}

/* the visible pill */
.pill-dd .Select-control {
  background-color: #2a2a2a !important;
  border-radius: 20px !important;
  padding: 2px 6px !important;
}

/* focus state (no glow rectangle) */
.pill-dd .Select.is-focused > .Select-control,
.pill-dd .Select.has-value.is-focused > .Select-control {
  box-shadow: none !important;
}

/* value text */
.pill-dd .Select-value-label { 
  color: #fff !important; 
  font-weight: 600 !important; 
}

/* dropdown menu */
.pill-dd .Select-menu-outer {
  background-color: #1f1f1f !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4) !important;
}


/* ===== Cross-Asset Volatility: header layout + snapshot button ===== */

/* 3-column header: left = title, middle = dropdown, right = button */
.tile-header-3col {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.tile-header-3col .center-cell { justify-self: center; }
.tile-header-3col .right-cell  { justify-self: end; }

/* dark ghost-style button */
.save-btn, .snapshot-button {
  background-color: #333 !important;
  color: #fff !important;
  border: 1px solid #555 !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}
.save-btn:hover, .snapshot-button:hover {
  background-color: #444 !important;
  border-color: #666 !important;
}

/* keep titles from shrinking awkwardly */
.tile-header-3col h3 { margin: 0; min-width: 0; }

/* optional niceties */
.tile-header-3col > * { min-width: 0; }
.pill-dropdown .Select__menu { z-index: 9999; }





/* === Home Page News: simple name highlight === */
.hl-news-name {
    color: #bf65cf;
    font-weight: 850;
}



/* --- Home page: News search pill --- */
.pill-search-input {
  background-color: #1e1e1e;
  border: 1px solid #2b2b2b;
  border-radius: 9999px;
  padding: 4px 12px;
  min-width: 160px;
  color: #ffffff;
  font-size: 12px;
  outline: none;
}

.pill-search-input::placeholder {
  color: #888888;
}





/* =========================
   CALENDAR V2 (AG GRID) THEME FIXES
   - Match app dark-glass tiles (panel look, not flat #141414 slabs)
   - Keep all your alignment helpers + conditional colours + clickables
   - Avoid white flashes / bright dividers
   ========================= */

#cal2-grid {
  /* Panel-like base (slightly lighter than charts; sits inside home-tile) */
  --ag-background-color: rgba(255,255,255,0.01);
  --ag-foreground-color: #E8E8E8;

  /* Header */
  --ag-header-background-color: rgba(255,255,255,0.04);
  --ag-header-foreground-color: #F2F2F2;

  /* Borders / separators */
  --ag-border-color: rgba(255,255,255,0.06);
  --ag-secondary-border-color: rgba(255,255,255,0.06);
  --ag-row-border-color: rgba(255,255,255,0.06);

  /* Hover + selected */
  --ag-row-hover-color: rgba(255,255,255,0.06);
  --ag-selected-row-background-color: rgba(255,255,255,0.09);

  /* Optional: inputs inside grid (filters/menus when used) */
  --ag-input-background-color: rgba(0,0,0,0.35);
  --ag-input-border-color: rgba(255,255,255,0.10);

  --ag-font-size: 12px;
}

/* Force the whole grid to stay “panel/glass”.
   IMPORTANT: set to transparent so it inherits --ag-background-color rather than hard #141414. */
#cal2-grid .ag-root-wrapper,
#cal2-grid .ag-root-wrapper-body,
#cal2-grid .ag-root,
#cal2-grid .ag-body-viewport,
#cal2-grid .ag-center-cols-viewport,
#cal2-grid .ag-center-cols-container {
  background-color: transparent !important;
  color: var(--ag-foreground-color) !important;
}

/* Header background + border */
#cal2-grid .ag-header,
#cal2-grid .ag-header-viewport,
#cal2-grid .ag-header-container {
  background-color: var(--ag-header-background-color) !important;
  color: var(--ag-header-foreground-color) !important;
  border-bottom: 1px solid var(--ag-border-color) !important;
}

/* Cells: transparent surface so the panel reads consistently */
#cal2-grid .ag-cell {
  background-color: transparent !important;
  color: var(--ag-foreground-color) !important;
  border-right: 1px solid var(--ag-border-color) !important;
  border-bottom: 1px solid var(--ag-border-color) !important;
}

/* Row separators */
#cal2-grid .ag-row {
  border-bottom: 1px solid var(--ag-border-color) !important;
}
#cal2-grid .ag-row::after,
#cal2-grid .ag-row::before {
  border-bottom-color: var(--ag-border-color) !important;
}

/* Hover + selected */
#cal2-grid .ag-row-hover .ag-cell,
#cal2-grid .ag-row:hover .ag-cell {
  background-color: var(--ag-row-hover-color) !important;
}

#cal2-grid .ag-row-selected .ag-cell {
  background-color: var(--ag-selected-row-background-color) !important;
}

/* =========================
   Alignment helpers
   ========================= */
#cal2-grid .cal2-h-center .ag-header-cell-label { justify-content: center !important; }
#cal2-grid .cal2-h-left   .ag-header-cell-label { justify-content: flex-start !important; }
#cal2-grid .cal2-c-center { text-align: center !important; }
#cal2-grid .cal2-c-left   { text-align: left !important; }

/* =========================
   Yellow numeric highlights
   ========================= */
#cal2-grid .cal2-yellow {
  color: #FFD24A !important;
  font-weight: 600 !important;
}

/* =========================
   Impact colours
   ========================= */
#cal2-grid .cal2-impact-l { color: #E8E8E8 !important; font-weight: 700 !important; }
#cal2-grid .cal2-impact-m { color: #FFD24A !important; font-weight: 700 !important; }
#cal2-grid .cal2-impact-h { color: #FF5A5A !important; font-weight: 700 !important; }

/* =========================
   Actual conditional colours (ROBUST)
   - works if class is applied to cell OR inner value
   ========================= */
#cal2-grid .cal2-actual-green { color: #3DDC84 !important; font-weight: 700 !important; }
#cal2-grid .cal2-actual-red   { color: #FF5A5A !important; font-weight: 700 !important; }

/* If class is on the cell, force inner value too */
#cal2-grid .ag-cell.cal2-actual-green .ag-cell-value,
#cal2-grid .ag-cell.cal2-actual-green span {
  color: #3DDC84 !important;
  font-weight: 700 !important;
}

#cal2-grid .ag-cell.cal2-actual-red .ag-cell-value,
#cal2-grid .ag-cell.cal2-actual-red span {
  color: #FF5A5A !important;
  font-weight: 700 !important;
}

/* keep colours during hover/selected */
#cal2-grid .ag-row-hover .cal2-actual-green,
#cal2-grid .ag-row-selected .cal2-actual-green {
  color: #3DDC84 !important;
}
#cal2-grid .ag-row-hover .cal2-actual-red,
#cal2-grid .ag-row-selected .cal2-actual-red {
  color: #FF5A5A !important;
}

/* =========================
   Revision conditional colours (keep robust)
   ========================= */
#cal2-grid .cal2-rev-green { color: #3DDC84 !important; font-weight: 700 !important; }
#cal2-grid .cal2-rev-red   { color: #FF5A5A !important; font-weight: 700 !important; }

/* Optional: If revision class is applied to the cell, force inner value too */
#cal2-grid .ag-cell.cal2-rev-green .ag-cell-value,
#cal2-grid .ag-cell.cal2-rev-green span {
  color: #3DDC84 !important;
  font-weight: 700 !important;
}
#cal2-grid .ag-cell.cal2-rev-red .ag-cell-value,
#cal2-grid .ag-cell.cal2-rev-red span {
  color: #FF5A5A !important;
  font-weight: 700 !important;
}

/* keep colours during hover/selected */
#cal2-grid .ag-row-hover .cal2-rev-green,
#cal2-grid .ag-row-selected .cal2-rev-green {
  color: #3DDC84 !important;
}
#cal2-grid .ag-row-hover .cal2-rev-red,
#cal2-grid .ag-row-selected .cal2-rev-red {
  color: #FF5A5A !important;
}

/* =========================
   Clickable cells
   ========================= */
.cal2-clickable-indicator,
.cal2-clickable-forecast {
  cursor: pointer;
}

.cal2-clickable-indicator:hover,
.cal2-clickable-forecast:hover {
  text-decoration: underline;
}

/* =========================
   CALENDAR V2 MODALS — DARK GLASS (Indicator + Forecast Dist)
   - Fix “blue” bootstrap bleed by forcing chrome + body to transparent/dark
   - Force neutral (non-blue) backdrop behind the modal
   - Works with your btn-ghost + btn-secondary close buttons
   ========================= */

/* 0) Backdrop: Bootstrap can look bluish depending on theme.
      This forces a neutral dark backdrop for ALL modals. */
.modal-backdrop.show {
  opacity: 0.65 !important;
  background-color: #000 !important;
}

/* 1) Ensure the dialog wrapper itself is not painting any background */
#cal2-indicator-modal .modal-dialog,
#cal2-forecast-dist-modal .modal-dialog {
  background: transparent !important;
}

/* 2) Core modal shell */
#cal2-indicator-modal .modal-content,
#cal2-forecast-dist-modal .modal-content {
  background: linear-gradient(180deg, rgba(10,14,20,0.94) 0%, rgba(0,0,0,0.88) 100%) !important;
  color: #E8E8E8 !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 50px rgba(0,0,0,0.55) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

/* 3) Header/footer chrome (Bootstrap sometimes paints these) */
#cal2-indicator-modal .modal-header,
#cal2-indicator-modal .modal-footer,
#cal2-forecast-dist-modal .modal-header,
#cal2-forecast-dist-modal .modal-footer {
  background: transparent !important;
  border-color: rgba(255,255,255,0.08) !important;
}

/* 4) Body area (prevents “blue panel” look inside body) */
#cal2-indicator-modal .modal-body,
#cal2-forecast-dist-modal .modal-body {
  background: transparent !important;
  color: #E8E8E8 !important;
}

/* 5) Close (x) button in header */
#cal2-indicator-modal .btn-close,
#cal2-forecast-dist-modal .btn-close {
  filter: invert(1);
  opacity: 0.85;
}
#cal2-indicator-modal .btn-close:hover,
#cal2-forecast-dist-modal .btn-close:hover {
  opacity: 1;
}

/* 6) Secondary buttons (e.g., Close) */
#cal2-indicator-modal .btn-secondary,
#cal2-forecast-dist-modal .btn-secondary {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  color: #E8E8E8 !important;
}

/* 7) Ghost buttons (your “Save Snapshot” uses btn-ghost) */
#cal2-indicator-modal .btn-ghost,
#cal2-forecast-dist-modal .btn-ghost {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  color: #E8E8E8 !important;
  border-radius: 10px !important;
}
#cal2-indicator-modal .btn-ghost:hover,
#cal2-forecast-dist-modal .btn-ghost:hover {
  background: rgba(255,255,255,0.10) !important;
  border-color: rgba(255,255,255,0.14) !important;
}




/* =========================
   APP BACKGROUND (login-style)
   ========================= */
:root{
  --app-bg: radial-gradient(circle at top, #020617 0, #000000 60%);
}

/* Use this on any outer wrapper you want to have the login-style background */
.app-bg {
  min-height: 100vh;
  background: var(--app-bg);
  color: white;
}



/* =========================
   HOME TILE (BORDER-ONLY): pseudo-element gradient border + transparent fill
   + SCROLL-SAFE (outer doesn't scroll; inner does)
   ========================= */

/* Outer tile should NOT be the scrolling container */
.home-tile{
  position: relative;
  border-radius: 12px;
  overflow: hidden; /* clips the border radius cleanly */

  /* tile fill */
  background: rgba(20, 20, 20, 0.55);

  /* optional glass */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* border layer */
.home-tile::before{
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;                 /* <-- border thickness */
  border-radius: inherit;
  pointer-events: none;

  background: linear-gradient(
    90deg,
    rgba(250, 204, 21, 0.15),
    rgba(250, 204, 21, 0.90),
    rgba(250, 204, 21, 0.15)
  );

  /* Cut out the middle so ONLY the border shows */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* ✅ Inner scroller for tiles
   Fixes the "yellow line halfway" artifacts on scrollable tiles */
.tile-scroll{
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;  /* important in flex layouts */
}

/* Optional: nicer scrollbar (safe defaults) */
.tile-scroll::-webkit-scrollbar { width: 10px; }
.tile-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.10); border-radius: 10px; }
.tile-scroll::-webkit-scrollbar-track { background: transparent; }


/* =========================
   SIDEBAR: glass + thin yellow gradient border
   ========================= */
.sidebar-shell{
  position: relative;
  border-radius: 14px;
  overflow: hidden;

  /* semi-transparent fill */
  background: rgba(20, 20, 20, 0.45);

  /* glass effect */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* gradient border (1px) */
.sidebar-shell::before{
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;

  background: linear-gradient(
    180deg,
    rgba(250, 204, 21, 0.15),
    rgba(250, 204, 21, 0.90),
    rgba(250, 204, 21, 0.15)
  );

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.sidebar-shell .nav-link:hover,
.sidebar-shell .nav-item:hover{
  background: rgba(255,255,255,0.06);
}


/* =========================
   MODALS: glass + thin yellow gradient border
   (less transparent than tiles)
   ========================= */
.modal-overlay{
  background: rgba(0,0,0,0.55);
}

/* Modal box: slightly LESS transparent than tiles */
.modal-shell{
  position: relative;
  border-radius: 12px;
  overflow: hidden;

  /* ✅ less transparent */
  background: rgba(18, 18, 18, 0.82);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: 0 10px 30px rgba(0,0,0,0.50);
}

/* gradient border */
.modal-shell::before{
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;

  background: linear-gradient(
    90deg,
    rgba(250,204,21,0.15),
    rgba(250,204,21,0.90),
    rgba(250,204,21,0.15)
  );

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}


/* =========================
   INNER SURFACES (replaces old #1e1e1e blocks)
   Use these inside tiles/modals for tables/cards/list items
   ========================= */
.tile-inner{
  background: rgba(18,18,18,0.35);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
}

.tile-inner-strong{
  background: rgba(18,18,18,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
}

/* For clickable rows/cards inside tiles */
.tile-card{
  background: rgba(18,18,18,0.40);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
}

.tile-card:hover{
  background: rgba(18,18,18,0.52);
  border-color: rgba(255,255,255,0.10);
}

/* Inner wrapper with NO border (prevents double-panel look) */
.tile-inner-plain{
  background: transparent;
  border: none;
  border-radius: 0;
}


/* Morning Market Summary meta line (Sentiment Summary: Global) */
.mms-meta{
  background: rgba(0,0,0,0.18);
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 8px;
}

/* Morning Market Summary body block */
.mms-body{
  background: rgba(0,0,0,0.22);
  border-radius: 8px;
  padding: 10px;
}


/* =========================
   RATE EXPECTATIONS: cleaner darker rows (no weird underline under flags)
   ========================= */
.rate-table-skin{
  background: transparent;
}

/* ---- If builder returns a real <table> ---- */
.rate-table-skin table{
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

/* Remove cell borders entirely (these caused the misaligned underline effect) */
.rate-table-skin th,
.rate-table-skin td{
  border: none !important;
  padding: 8px 10px;
  color: #e6e6e6;
  vertical-align: middle;
}

/* Row backgrounds (darker so it doesn't look hovered) */
.rate-table-skin tr{
  background: rgba(0,0,0,0.28);              /* darker base */
  box-shadow: inset 0 -1px rgba(255,255,255,0.06); /* single clean divider */
}

.rate-table-skin tr:nth-child(even){
  background: rgba(0,0,0,0.36);              /* slightly darker alt row */
}

/* Optional: keep hover subtle (or remove it entirely) */
.rate-table-skin tr:hover{
  background: rgba(0,0,0,0.36);              /* same as even to avoid "selected" look */
}

/* Ensure flags/images don't create baseline artifacts */
.rate-table-skin img{
  display: block;
}

/* ---- If builder is DIV-based rows ---- */
.rate-table-skin .row,
.rate-table-skin .rate-row,
.rate-table-skin .table-row{
  background: rgba(0,0,0,0.28);
  box-shadow: inset 0 -1px rgba(255,255,255,0.06);
}

.rate-table-skin .row:nth-child(even),
.rate-table-skin .rate-row:nth-child(even),
.rate-table-skin .table-row:nth-child(even){
  background: rgba(0,0,0,0.36);
}

.rate-table-skin .row:hover,
.rate-table-skin .rate-row:hover,
.rate-table-skin .table-row:hover{
  background: rgba(0,0,0,0.36);
}

#app-footer{
  background: rgba(0,0,0,0.70) !important;   /* darker strip */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}



/* =========================
   CB NEWS MODAL: KILL YELLOW FRAME EVERYWHERE
   (fixes stray border line inside modal)
   ========================= */

/* 1) If the frame is drawn via pseudo-elements on any element */
#cb-news-modal *::before,
#cb-news-modal *::after{
  /* don't break icons/images because this is scoped to cb-news-modal only */
  box-shadow: none !important;
  background-image: none !important;
  border-image: none !important;
}

/* 2) Specifically disable content-bearing frame pseudos (most common pattern) */
#cb-news-modal .home-tile::before,
#cb-news-modal .home-tile::after,
#cb-news-modal .modal-shell::before,
#cb-news-modal .modal-shell::after,
#cb-news-modal .glass::before,
#cb-news-modal .glass::after,
#cb-news-modal .tile-glass::before,
#cb-news-modal .tile-glass::after{
  content: none !important;
  display: none !important;
}

/* 3) If the frame is a gradient border via background on the element */
#cb-news-modal .home-tile,
#cb-news-modal .modal-shell,
#cb-news-modal .glass,
#cb-news-modal .tile-glass{
  background-image: none !important;
  border-image: none !important;
}

/* Keep the modal shell looking good (restore clean edge) */
#cb-news-modal .modal-shell{
  background: rgba(8, 8, 8, 0.92) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  box-shadow: 0 18px 55px rgba(0,0,0,0.65) !important;
  backdrop-filter: blur(12px);
}




/* When the cell is in "blue" state, force blue on the rendered text */
#cal2-grid .ag-cell.cal2-forecast-blue,
#cal2-grid .ag-cell.cal2-forecast-blue .cal2-link-forecast,
#cal2-grid .ag-cell.cal2-forecast-blue span {
  color: #3b82f6 !important;
  font-weight: 600;
}

/* CALENDAR V2: darker rows for CB SPEAK + HOLIDAY */
#cal2-grid .ag-row.cal2-row-cbspeak .ag-cell,
#cal2-grid .ag-row.cal2-row-holiday .ag-cell {
  background-color: rgba(255,255,255,0.04) !important;
}

#cal2-grid .ag-row.cal2-row-cbspeak:hover .ag-cell,
#cal2-grid .ag-row.cal2-row-holiday:hover .ag-cell {
  background-color: rgba(255,255,255,0.06) !important;
}



/* =========================
   POSITIONING: tighter table rows
   ========================= */
#positioning-tile-1 table th,
#positioning-tile-1 table td {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  line-height: 1.2 !important;
}

#positioning-tile-1 table td {
  font-size: 12px !important;   /* optional: slightly smaller */
}

#positioning-tile-1 table th {
  font-size: 12px !important;   /* optional: slightly smaller */
}



/* =========================
   POSITIONING: prevent dropdown pill overlap
   ========================= */

/* Make sure dropdown wrappers don't introduce negative margins */
#positioning-tile-2 .pill-dropdown,
#positioning-tile-2 .dash-dropdown {
  margin: 0 !important;
}

/* Add a clean gap between the two dropdown pills */
#positioning-tile-2 .pill-dropdown {
  margin-right: 10px !important;
}

/* Don't add extra gap after the last dropdown */
#positioning-tile-2 .pill-dropdown:last-child {
  margin-right: 0 !important;
}


/* Force-hide the Calendar V2 detail text */
#cal2-detail {
  display: none !important;
}




/* Currency + general: allow dropdown menus to escape glass tiles */
.tile-overflow-visible { 
  overflow: visible !important; 
}

/* Generic modal close button (used by Currency modals) */
.modal-close-btn{
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.modal-close-btn:hover{
  opacity: 0.85;
}



/* =========================
   PLOTLY IN GLASS TILES (GLOBAL)
   - prevents white flashes
   - keeps charts transparent so the glass tile shows through
   ========================= */
.home-tile .js-plotly-plot,
.home-tile .plot-container,
.home-tile .svg-container {
  background: transparent !important;
}

.home-tile .modebar {
  background: transparent !important;
}

.home-tile .main-svg {
  background: transparent !important;
}


/* =========================
   IVOL TABLE: tighter rows
   ========================= */
#ivol-tile-1 .rate-card th,
#ivol-tile-1 .rate-card td {
  padding: 6px 8px !important;   /* was effectively bigger */
  line-height: 1.15 !important;
  font-size: 12px !important;
}

#ivol-tile-1 .rate-card thead th {
  padding-top: 7px !important;
  padding-bottom: 7px !important;
}

/* Optional: slightly tighter pills inside table cells */
#ivol-tile-1 .rate-card td > div,
#ivol-tile-1 .rate-card td {
  vertical-align: middle;
}



/* COUNTRY MODALS: force landscape sizing */
#country-cesi-modal .modal-shell,
#country-spread-modal .modal-shell,
#country-reer-modal .modal-shell,
#country-ctot-modal .modal-shell,
#country-inflexp-modal .modal-shell,
#country-yieldcurve-modal .modal-shell,
#country-cpi-modal .modal-shell,
#country-gdp-modal .modal-shell,
#country-unemp-modal .modal-shell{
  width: 92vw;
  max-width: 1500px;
  height: 86vh;
  display: flex;
  flex-direction: column;
}



.page-loader-dots {
    display: flex;
    gap: 10px;
}

.page-loader-dots span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #FACC15;
    animation: pageLoaderBounce 0.8s infinite ease-in-out;
}

.page-loader-dots span:nth-child(2) {
    animation-delay: 0.12s;
}

.page-loader-dots span:nth-child(3) {
    animation-delay: 0.24s;
}

@keyframes pageLoaderBounce {
    0%, 80%, 100% {
        transform: scale(0.7);
        opacity: 0.45;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}


/* Morning Market Summary - pill tabs */
.mms-tabs {
  display: flex !important;
  justify-content: flex-start !important;
  gap: 8px;
  border: none !important;
  background: transparent !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  overflow: hidden;
  margin-bottom: 10px;
}

.mms-tab {
  background: #1e1e1e !important;
  border-radius: 9999px !important;
  color: #e5e7eb !important;
  font-size: 12px !important;
  padding: 4px 10px !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  margin: 0 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.mms-tab--selected {
  background: #262626 !important;
  color: #f5d10f !important;
  border: 1px solid rgba(245,209,15,0.35) !important;
}

.mms-panel {
  min-height: 0;
}

.mms-topline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.mms-meta {
  color: #bbb;
  font-size: 12px;
}

.mms-updated {
  color: #777;
  font-size: 11px;
  white-space: nowrap;
}

.mms-wrap-headline {
  color: #f5d10f;
  font-size: 13px;
  margin: 2px 0 6px;
}

.mms-wrap-drivers {
  color: #cfcfcf;
  font-size: 12px;
  margin: 0 0 10px;
  opacity: 0.9;
}

.mms-body {
  color: #e0e0e0;
  line-height: 1.55;
}