/* =========================
OEM DASHBOARD WRAPPER
========================= */

.oem-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 32px 80px;
}

/* =========================
HERO
========================= */

.oem-hero {
  margin-bottom: 40px;
}

.oem-hero h1 {
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

.oem-hero p {
  color: #9fb3cc;
  max-width: 700px;
  line-height: 1.6;
}

/* =========================
SECTION CONTAINER
========================= */

.oem-dashboard-section {
  margin-top: 30px;
  padding: 28px;

  border-radius: 16px;
  border: 1px solid rgba(0,212,255,0.08);

  background:
    radial-gradient(circle at 30% 20%, rgba(0,212,255,0.05), transparent 60%),
    linear-gradient(180deg, rgba(8,16,30,0.95), rgba(4,8,18,0.98));

  backdrop-filter: blur(10px);
}

/* =========================
GRID
========================= */

.oem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* =========================
CARD
========================= */

.oem-card {
  background: linear-gradient(180deg, rgba(10,20,40,0.9), rgba(5,10,20,0.95));
  border: 1px solid rgba(0,212,255,0.08);
  border-radius: 14px;
  padding: 18px;

  transition: all 0.25s ease;
  position: relative;
}

.oem-card:hover{

  transform:translateY(-4px);

  border-color:rgba(0,212,255,0.18);

  box-shadow:
    0 18px 40px rgba(0,0,0,0.45),
    0 0 25px rgba(0,212,255,0.06);
}

/* subtle signal edge */
.oem-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, #00d4ff, transparent);
  opacity: 0.4;
}

/* =========================
HEADER
========================= */

.oem-header h1 {
  font-size: 28px;
}

.oem-header p {
  font-size: 14px;
  max-width: 700px;
}

.oem-header h3 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 4px;
}

.oem-segment {
  font-size: 11px;
  color: #00d4ff;
  opacity: 0.8;
}

/* =========================
SECTIONS
========================= */

.oem-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.oem-sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6a7c95;
  margin-bottom: 10px;
}

/*=====================
CHARGING MATRIX
======================*/

.charging-matrix{
  margin-top:50px;
}

#charging-matrix-grid{

  display:grid;

  grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));

  gap:18px;
}

.charging-card{

  padding:18px;
  border-radius:18px;
  background:
    linear-gradient(
      180deg,
      rgba(5,20,35,0.95),
      rgba(3,10,20,0.98)
    );
  border:1px solid rgba(0,212,255,0.08);
}

.charging-card h3{
  margin-bottom:16px;
  font-size:15px;
  font-weight:600;
  letter-spacing:-0.2px;
  color:#f4fbff;
}

.charging-row{

  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:10px;
  font-size:12px;
  line-height:1.45;
}

.charging-row span{
  color:rgba(210,225,245,0.62);
  font-size:11.5px;
  font-weight:500;
  letter-spacing:0.15px;
}

.charging-row strong{
  font-size:12px;
  font-weight:550;
  line-height:1.45;
  text-align:right;
}

/*========================
READINESS STATES
=========================*/

.readiness-high{
  color:#72ffbf;
}

.readiness-moderate{
  color:#ffd978;
}

.readiness-selective{
  color:#ffb26f;
}

.readiness-low{
  color:#ff8e8e;
}

/*======================
FORECAST BOX
========================*/

.forecast-box{
  margin-top:auto;
  padding:14px;
  border-radius:14px;
  background:rgba(0,18,30,0.6);
  border:1px solid rgba(255,255,255,0.05);
}

.forecast-title{
  margin-bottom:12px;
  color:#00d4ff;
  font-size:11px;
  letter-spacing:1px;
}

.forecast-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  align-items:start;
}

.forecast-grid span{
  display:block;
  margin-bottom:4px;
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:1.1px;
  font-weight:700;
}

/* NEUTRAL SIGNAL*/

.signal-neutral{
  background:rgba(180,190,210,0.08);
  color:rgba(220,230,245,0.72);
  border-color:rgba(180,190,210,0.14);
}

/*========================
FORECAST LABEL COLORS
=========================*/

.forecast-growth span{
  color:#5fdfff;
}
.forecast-competition span{
  color:#ffb86b;
}
.forecast-pricing span{
  color:#72ffbf;
}
.forecast-grid strong{
  font-size:14px;
  font-weight:600;
  color:#eef7ff;
}

/*========================
EXECUTIVE SNAPSHOT
=========================*/

.executive-snapshot{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  height:240px;
  margin-top:22px;
  margin-bottom:20px;
  padding:16px;
  border-radius:16px;
  background:
    linear-gradient(
      180deg,
      rgba(0,212,255,0.035),
      rgba(0,0,0,0)
    );
  border:1px solid rgba(0,212,255,0.08);
}

.snapshot-row{
  display:flex;
  flex-direction:column;
  gap:5px;
  margin-bottom:15px;
}

.snapshot-row span{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:1px;
  font-weight:600;
  color:rgba(210,225,245,0.46);
}

/*========================
SNAPSHOT SIGNAL COLORS
=========================*/

.snapshot-row.positioning span{
  color:#5fdfff;
}
.snapshot-row.strength span{
  color:#72ffbf;
}
.snapshot-row.risk span{
  color:#ffb86b;
}

.snapshot-row strong{
  color:#e9f4ff;
  font-size:14px;
  line-height:1.45;
  font-weight:580;
  letter-spacing:-0.15px;
  max-width:92%;
}

/*=========================
SIGNALS 
==========================*/

.oem-signal-bar{
  display:flex;
  gap:14px;
  overflow-x:auto;

  margin-bottom:28px;
  padding:14px;

  border:1px solid rgba(0,212,255,0.08);
  border-radius:14px;

  background:
    linear-gradient(
      180deg,
      rgba(0,212,255,0.04),
      rgba(0,0,0,0)
    );
}

.signal-item{
  min-width:240px;
  padding:16px;
  border-radius:16px;
  background:
    linear-gradient(
      180deg,
      rgba(0,18,30,0.85),
      rgba(0,8,18,0.98)
    );

  border:1px solid rgba(0,212,255,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03);
}

.signal-oem{
  display:block;

  margin-bottom:6px;

  color:#fff;
  font-weight:600;
}

.signal-trend{
  color:#00d4ff;
  font-size:13px;
}

/* =========================
ROW SYSTEM
========================= */

.oem-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 6px 0;
  font-size: 13px;
  padding: 5px 0;
}

.oem-row span:last-child {
  color: #e6f2ff;
  font-weight: 500;
}

.oem-row span:first-child {
  color: rgba(210,225,245,0.7);
  font-size: 12px;
}

.oem-row span:last-child {
  text-align: right;
  font-size: 13px;
}

.oem-row span:first-child{
  color: rgba(215,230,245,0.72);
}

.oem-row span:last-child{
  color: rgba(245,250,255,0.95);
  font-weight: 500;
}

/*========================
HEADER
==========================*/

.oem-section-header {
  font-size: 11px;
  letter-spacing: 1.2px;
  color: #00d4ff;
  margin-bottom: 20px;
}

/*========================
FILTER ON OEM PAGE
=========================*/

.oem-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.oem-controls select {
  background: rgba(10,20,40,0.9);
  border: 1px solid rgba(0,212,255,0.1);
  color: #cfe6ff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  outline: none;
  transition: all 0.2s ease;
}

.oem-controls select:hover {
  border-color: rgba(0,212,255,0.3);
}

/*=========================
CARD STYLING
==========================*/

.oem-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
}

.signal-pill {
  font-size:10px;
  padding:5px 10px;
  border-radius:20px;
  font-weight:500;
  letter-spacing:0.2px;
  border:1px solid transparent;
}

/*========================
SIGNAL COLORS
=========================*/

.signal-expansion{
  background:rgba(0,212,255,0.12);
  color:#6fe7ff;
  border-color:rgba(0,212,255,0.25);
}

.signal-scaling{
  background:rgba(120,140,255,0.12);
  color:#a9b8ff;
  border-color:rgba(120,140,255,0.22);
}

.signal-premium{
  background:rgba(255,210,120,0.12);
  color:#ffd87a;
  border-color:rgba(255,210,120,0.25);
}

.signal-performance{
  background:rgba(255,120,120,0.12);
  color:#ff9f9f;
  border-color:rgba(255,120,120,0.22);
}

.signal-urban{
  background:rgba(120,255,180,0.12);
  color:#8fffc0;
  border-color:rgba(120,255,180,0.22);
}

.signal-technology{
  background:rgba(180,120,255,0.12);
  color:#d1b3ff;
  border-color:rgba(180,120,255,0.22);
}

.oem-card{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  min-height:100%;
  gap:18px;
  height:100%;
  position:relative;
  padding:24px;
  border-radius:22px;
  background:
    linear-gradient(
      180deg,
      rgba(7,20,35,0.96),
      rgba(3,10,20,0.985)
    );
  border:1px solid rgba(0,212,255,0.08);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.03);
  overflow:hidden;
}

/*==========================
DEEP DIVE
===========================*/

.oem-deep-dive {
  margin-top: 60px;
  padding: 28px;
  border-radius: 14px;

  background: linear-gradient(
    135deg,
    rgba(0,212,255,0.08),
    rgba(0,40,80,0.4)
  );

  border: 1px solid rgba(0,212,255,0.15);
  position: relative;
  overflow: hidden;
}

/* subtle glow */
.oem-deep-dive::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(0,212,255,0.2),
    transparent 60%
  );
  pointer-events: none;
}

.oem-deep-dive-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.oem-deep-dive-tag {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #00d4ff;
  margin-bottom: 10px;
}

.oem-deep-dive h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #e6f6ff;
}

.oem-deep-dive p {
  font-size: 13px;
  color: #b6d9ff;
  line-height: 1.6;
  margin-bottom: 18px;
}

.oem-deep-dive-btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;

  background: rgba(0,212,255,0.12);
  border: 1px solid rgba(0,212,255,0.3);

  color: #00d4ff;
  font-size: 12px;
  text-decoration: none;

  transition: all 0.2s ease;
}

.oem-deep-dive-btn:hover {
  background: rgba(0,212,255,0.2);
  transform: translateY(-1px);
}

.oem-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.oem-card-link:active .oem-card {
  transform: scale(0.98);
}

.oem-card-link:hover .oem-card {
  transform: translateY(-6px);
  border-color: rgba(0,212,255,0.4);
  box-shadow: 0 0 25px rgba(0,212,255,0.15);
}

.oem-card-link {
  cursor: pointer;
}

/*=======================
FURTHER STYLING
========================*/

.oem-deep-dive-btn {
  transition: all 0.25s ease;
}

.oem-deep-dive-btn:hover {
  transform: translateX(4px);
}

/*========================
PREMIUM SCROLLBAR
=========================*/

::-webkit-scrollbar{
  width:10px;
  height:10px;
}

::-webkit-scrollbar-track{
  background:rgba(5,12,22,0.9);
}

::-webkit-scrollbar-thumb{

  background:
    linear-gradient(
      180deg,
      rgba(0,212,255,0.5),
      rgba(0,120,255,0.45)
    );

  border-radius:20px;

  border:2px solid rgba(5,12,22,0.9);
}

::-webkit-scrollbar-thumb:hover{
  background:
    linear-gradient(
      180deg,
      rgba(0,212,255,0.8),
      rgba(0,120,255,0.7)
    );
}

/*==========================
STRATEGY STYLING
============================*/

.oem-strategy {
  margin-top:auto;
  display:flex;
  flex-direction:column;
  padding:16px;
  border-radius:14px;
  background:rgba(0, 212, 255, 0.05);
  border:1px solid rgba(0,212,255,0.12);
  position:relative;
  min-height:260px;
}

.oem-strategy-headline {
  font-size: 12px;
  font-weight: 600;
  color: #00d4ff;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

/* subtle glow accent */
.oem-strategy::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(0,212,255,0.15),
    transparent 60%
  );
  pointer-events: none;
}

.oem-strategy-label {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #00d4ff;
  margin-bottom: 6px;
  opacity: 0.85;
}

.oem-strategy-text {
  font-size: 12px;
  color: rgba(225,235,255,0.82);
  line-height: 1.6;
  font-weight: 400;
  flex-grow:1;
}

.oem-strategy-text strong {
  color: #00d4ff;
  font-weight: 500;
}

/*============================
HEATMAP 
============================*/

#oem-heatmap {
  margin-bottom: 40px;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.heatmap-card {
  padding: 16px;
  border-radius: 12px;
  background: rgba(10,20,40,0.7);
  border: 1px solid rgba(0,212,255,0.08);
}

.heatmap-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.heatmap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0,212,255,0.08);
}

/* =========================
STRATEGY BLOCK
========================= */

.oem-strategy {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);

  font-size: 12.5px;
  color: #9fb3cc;
  line-height: 1.5;
}

/* =========================
SIGNAL ALIGNMENT
========================= */

.signal-phase {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
}

.phase-expansion {
  background: rgba(0,212,255,0.15);
  color: #00d4ff;
}

.phase-scaling {
  background: rgba(120,140,255,0.15);
  color: #8aa6ff;
}

.phase-entry {
  background: rgba(255,180,80,0.15);
  color: #ffb450;
}

.signal-value.high { color: #00d4ff; }
.signal-value.mid { color: #8aa6ff; }
.signal-value.low { color: #aaa; }

/* =========================
FILTER WRAPPER
========================= */

.oem-filters-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
}

/* Smooth scroll */
.oem-filters-wrapper::-webkit-scrollbar {
  display: none;
}

/* =========================
FILTER ROW
========================= */

.oem-filters {
  display: flex;
  gap: 12px;
  min-width: max-content;
}

/* EMPTY PANEL */

.empty-panel,
.oem-summary:empty{
  display:none;
}

/* =========================
FILTER INPUTS
========================= */

.oem-filters select {
  padding: 10px 14px;
  border-radius: 10px;

  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.2);

  color: #dffaff;
  font-size: 13px;

  outline: none;
  cursor: pointer;

  flex-shrink: 0; /* KEY FIX */
}

.oem-chart-insight {
  transition: opacity 0.3s ease;
}

/* ADDITIONAL HOVER */

.oem-card {
  transition: all 0.25s ease;
}

/*  Highlight state */
.oem-card.is-highlighted {
  border-color: #00d4ff;
  box-shadow: 0 0 0 1px rgba(0,212,255,0.4),
              0 12px 30px rgba(0,212,255,0.15);
  transform: translateY(-3px);
}

.oem-card.is-highlighted {
  opacity: 1;
}

/*==============================
OEM - CHARTS - OEM DASHBOARDS
================================*/

.oem-charts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.oem-chart-insight {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(200, 220, 255, 0.65);
}

.oem-chart {
  background: rgba(0,212,255,0.04);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 14px;
  padding: 16px;
}


/*========================================
OEM DASHBOARD
PREMIUM RESPONSIVE REFINEMENT
=========================================*/

/*========================================
LARGE TABLETS
=========================================*/

@media (max-width: 1200px){

  .oem-wrapper{
    padding:32px 24px 70px;
  }

  .oem-dashboard-section{
    padding:22px;
  }

  .oem-grid{
    grid-template-columns:repeat(2, 1fr);
    gap:20px;
  }

  .oem-charts{
    grid-template-columns:1fr 1fr;
    gap:18px;
  }

  .executive-snapshot{
    height:auto;
    min-height:220px;
  }

  .oem-strategy{
    min-height:220px;
  }

  .forecast-grid{
    gap:14px;
  }

  #charging-matrix-grid{
    grid-template-columns:
      repeat(2, 1fr);
  }

}

/*========================================
TABLET
=========================================*/

@media (max-width: 900px){

  .oem-wrapper{
    padding:28px 18px 60px;
  }

  .oem-dashboard-section{
    padding:18px;
    border-radius:14px;
  }

  .oem-header h1,
  .oem-hero h1{
    font-size:22px;
    line-height:1.2;
  }

  .oem-header p,
  .oem-hero p{
    font-size:13px;
    line-height:1.6;
  }

  .oem-grid{
    grid-template-columns:1fr;
    gap:18px;
  }

  .oem-card{
    padding:18px;
    border-radius:18px;
  }

  .oem-charts{
    grid-template-columns:1fr;
  }

  .oem-chart{
    padding:14px;
  }

  .oem-chart-insight{
    font-size:11px;
  }

  .executive-snapshot{
    height:auto;
    min-height:unset;
    padding:14px;
  }

  .snapshot-row strong{
    font-size:13px;
    line-height:1.45;
  }

  .oem-strategy{
    min-height:auto;
    padding:14px;
  }

  .oem-strategy-text{
    font-size:12px;
    line-height:1.65;
  }

  .forecast-box{
    padding:12px;
  }

  .forecast-grid{
    grid-template-columns:1fr 1fr;
    gap:12px;
  }

  .forecast-grid strong{
    font-size:13px;
  }

  .signal-pill{
    font-size:9px;
    padding:4px 8px;
  }

  .signal-item{
    min-width:210px;
    padding:14px;
  }

  .signal-oem{
    font-size:13px;
  }

  .signal-trend{
    font-size:12px;
  }

  #charging-matrix-grid{
    grid-template-columns:1fr;
  }

  .charging-card{
    padding:16px;
    border-radius:16px;
  }

  .charging-card h3{
    font-size:14px;
  }

  .charging-row{
    gap:10px;
  }

  .oem-deep-dive{
    padding:22px;
  }

  .oem-deep-dive h3{
    font-size:18px;
  }

}

/*========================================
MOBILE
=========================================*/

@media (max-width: 640px){

  .oem-wrapper{
    padding:22px 14px 50px;
  }

  .oem-dashboard-section{
    padding:14px;
    border-radius:12px;
  }

  .oem-header h1,
  .oem-hero h1{
    font-size:19px;
    line-height:1.25;
  }

  .oem-header p,
  .oem-hero p{
    font-size:12px;
    line-height:1.6;
  }

  .oem-signal-bar{
    gap:10px;
    padding:10px;
    margin-bottom:20px;

    overflow-x:auto;
    scroll-snap-type:x mandatory;
  }

  .signal-item{
    min-width:180px;
    padding:12px;

    scroll-snap-align:start;
  }

  .signal-oem{
    font-size:12px;
  }

  .signal-trend{
    font-size:11px;
  }

  .oem-controls{
    gap:8px;
    overflow-x:auto;
    padding-bottom:6px;
  }

  .oem-controls select{
    min-width:120px;
    font-size:11px;
    padding:8px 10px;
    flex-shrink:0;
  }

  .oem-chart{
    padding:12px;
    border-radius:12px;
  }

  .oem-chart canvas{
    max-height:240px !important;
  }

  .oem-card{
    padding:16px;
    border-radius:16px;
    gap:14px;
  }

  .oem-card h3{
    font-size:15px;
  }

  .oem-row{
    gap:4px;
    margin:4px 0;
    padding:3px 0;
  }

  .oem-row span:first-child{
    font-size:11px;
  }

  .oem-row span:last-child{
    font-size:12px;
  }

  .oem-signals{
    gap:5px;
  }

  .signal-pill{
    font-size:8px;
    padding:4px 7px;
  }

  .executive-snapshot{
    padding:12px;
    border-radius:14px;
  }

  .snapshot-row{
    margin-bottom:12px;
  }

  .snapshot-row span{
    font-size:9px;
    letter-spacing:0.9px;
  }

  .snapshot-row strong{
    font-size:12px;
    line-height:1.45;
  }

  .oem-strategy{
    padding:12px;
    border-radius:12px;
  }

  .oem-strategy-headline{
    font-size:11px;
  }

  .oem-strategy-text{
    font-size:11.5px;
    line-height:1.7;
  }

  .forecast-box{
    padding:10px;
    border-radius:12px;
  }

  .forecast-title{
    font-size:10px;
  }

  .forecast-grid{
    grid-template-columns:1fr 1fr;
    gap:10px;
  }

  .forecast-grid span{
    font-size:8px;
  }

  .forecast-grid strong{
    font-size:12px;
  }

  .charging-card{
    padding:14px;
  }

  .charging-row{
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
  }

  .charging-row strong{
    text-align:left;
    font-size:11px;
  }

  .oem-deep-dive{
    padding:18px;
    border-radius:14px;
  }

  .oem-deep-dive-tag{
    font-size:9px;
  }

  .oem-deep-dive h3{
    font-size:16px;
  }

  .oem-deep-dive p{
    font-size:12px;
  }

  .oem-deep-dive-btn{
    width:100%;
    text-align:center;
  }

}

/*========================================
SMALL MOBILE
=========================================*/

@media (max-width: 420px){

  .oem-wrapper{
    padding:18px 10px 40px;
  }

  .oem-dashboard-section{
    padding:12px;
  }

  .oem-card{
    padding:14px;
  }

  .signal-item{
    min-width:160px;
  }

  .forecast-grid{
    grid-template-columns:1fr;
  }

  .forecast-grid strong{
    font-size:11px;
  }

  .snapshot-row strong{
    font-size:11.5px;
  }

  .oem-strategy-text{
    font-size:11px;
  }

}