/* ===== KEY MARKETS DASHBOARD ===== */

.key-markets-page {
    padding-top: 10px;
    padding-bottom: 18px;
}

/* ===== HEADER ===== */

.km-topbar {
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.km-summary-card {
    min-height: 92px;
}

.km-summary-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.km-regime-summary {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gt-text, #e8edf7);
    line-height: 1.35;
}

/* ===== KPI ROW ===== */

.km-kpi-card {
    min-height: 92px;
}

.km-kpi-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ===== CARDS ===== */

.km-card {
    border-radius: 14px;
    overflow: hidden;
}

.km-card-header {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.km-card-body {
    padding: 0.55rem 0.65rem;
}

/* ===== TABLE STYLE ===== */

.km-table.table {
    margin-bottom: 0;
    font-size: 0.86rem;
}

/* sticky header */
.km-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(10, 14, 22, 0.96);
    backdrop-filter: blur(4px);

    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;

    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.km-table tbody td {
    padding-top: 0.33rem;
    padding-bottom: 0.33rem;
    vertical-align: middle;
}

.km-table tbody tr:hover {
    background: rgba(255,255,255,0.035);
}

/* ===== CARD VISUAL STYLE ===== */

.key-markets-page .txe-card {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255,255,255,0.05);

    background: linear-gradient(
        180deg,
        rgba(17, 22, 32, 0.96) 0%,
        rgba(12, 16, 24, 0.98) 100%
    );
}

/* ===== COLUMN ALIGNMENT ===== */

.key-markets-page .row {
    align-items: flex-start;
}

/* ===== MOBILE ===== */

@media (max-width: 1199px) {

    .km-topbar {
        min-height: auto;
    }

    .km-summary-card {
        min-height: auto;
    }

    .km-kpi-card {
        min-height: auto;
    }

}
/* ===== TOP STRIP ===== */

.km-top-card,
.km-summary-card {
    min-height: 84px;
}

.km-top-card .card-body,
.km-summary-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.km-top-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.45px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.58);
    margin-bottom: 4px;
}

.km-top-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--gt-text, #e8edf7);
    line-height: 1.2;
}

.km-regime-summary {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--gt-text, #e8edf7);
    line-height: 1.3;
    letter-spacing: 0.1px;
}

.km-regime-strip {
    text-align: center;
    padding: 2px 0 6px 0;
}

.km-regime-strip-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.45px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.58);
    margin-bottom: 2px;
}

.km-regime-strip-value {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--gt-text, #e8edf7);
    line-height: 1.25;
    letter-spacing: 0.1px;
}
/* World map hover */
.js-plotly-plot .plotly .hoverlayer .hovertext rect {
    fill: rgb(10, 14, 20) !important;
    fill-opacity: 0.65 !important;
    stroke: rgba(0, 0, 0, 0) !important;
    stroke-width: 0 !important;
}

.js-plotly-plot .plotly .hoverlayer .hovertext text {
    fill: #e5e7eb !important;
}
/* =========================================
   KEY MARKETS — Dashboard Regime Semaphore
   ========================================= */

.km-regime-strip{
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  padding: 14px 16px 14px 16px;
  background:
    radial-gradient(1200px 220px at 0% 50%, rgba(46,204,113,.08), transparent 46%),
    radial-gradient(1000px 220px at 100% 50%, rgba(59,130,246,.08), transparent 42%),
    linear-gradient(180deg, rgba(10,14,22,.88), rgba(6,9,14,.94));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.03),
    0 10px 28px rgba(0,0,0,.22);
}

.km-regime-strip-label{
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.64);
  margin-bottom: 8px;
}

.km-regime-overall{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.km-regime-overall-dot{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 0 18px currentColor;
}

.km-regime-overall-dot.is-bull{
  color: #22c55e;
  background: #22c55e;
}

.km-regime-overall-dot.is-neutral{
  color: #f59e0b;
  background: #f59e0b;
}

.km-regime-overall-dot.is-bear{
  color: #ef4444;
  background: #ef4444;
}

.km-regime-overall-text{
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .04em;
}

.km-regime-overall-text.is-bull{
  color: #dcfce7;
  text-shadow: 0 0 20px rgba(34,197,94,.18);
}

.km-regime-overall-text.is-neutral{
  color: #fef3c7;
  text-shadow: 0 0 20px rgba(245,158,11,.16);
}

.km-regime-overall-text.is-bear{
  color: #fee2e2;
  text-shadow: 0 0 20px rgba(239,68,68,.16);
}

.km-regime-chips{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
}

.km-regime-chip{
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.km-regime-dot{
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 0 16px currentColor;
}

.km-regime-dot.is-bull{
  color: #22c55e;
  background: #22c55e;
}

.km-regime-dot.is-neutral{
  color: #f59e0b;
  background: #f59e0b;
}

.km-regime-dot.is-bear{
  color: #ef4444;
  background: #ef4444;
}

.km-regime-chip.is-bull{
  background: linear-gradient(180deg, rgba(34,197,94,.11), rgba(255,255,255,.03));
  border-color: rgba(34,197,94,.22);
}

.km-regime-chip.is-neutral{
  background: linear-gradient(180deg, rgba(245,158,11,.10), rgba(255,255,255,.03));
  border-color: rgba(245,158,11,.22);
}

.km-regime-chip.is-bear{
  background: linear-gradient(180deg, rgba(239,68,68,.10), rgba(255,255,255,.03));
  border-color: rgba(239,68,68,.22);
}

.km-regime-chip-title{
  font-size: 11px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  margin-bottom: 4px;
}

.km-regime-chip-value{
  font-size: 16px;
  line-height: 1.15;
  font-weight: 800;
  color: rgba(255,255,255,.95);
}

@media (max-width: 1199px){
  .km-regime-chips{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 767px){
  .km-regime-overall-text{
    font-size: 20px;
  }

  .km-regime-chips{
    grid-template-columns: 1fr;
  }
}