/* ==========================================================
   OVERVIEW (MOCK LAYOUT) — scoped to Overview tab only
   This is presentation-only and should not affect other tabs.
   ========================================================= */

#tab-overview .overview-panel{ padding:18px; }

#tab-overview .overview-hero{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap:16px;
  padding:16px;
  border:1px solid var(--accent-soft);
  border-radius:16px;
  background:var(--card);
  box-shadow: var(--shadow);
}

#tab-overview .overview-hero-label{
  font-weight:700;
  font-size:14px;
  letter-spacing:0.2px;
  color:var(--text);
}

#tab-overview .overview-hero-sub{ margin-top:6px; }

#tab-overview .overview-hero-controls,
#tab-overview .overview-hero-actions{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  margin-top:12px;
}

#tab-overview .pay-input{
  position:relative;
  height:42px;
}

#tab-overview .pay-input input{
  width:100%;
  height:100%;
  padding-left:26px;
  font-weight:800;
}

#tab-overview .pay-symbol{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  opacity:0.65;
  font-weight:800;
  color:var(--text);
}

#tab-overview .btn.danger{
  color:#ef4444;
  border-color: rgba(239,68,68,0.30);
}

#tab-overview .overview-hero-right{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-end;
  gap:10px;
}

#tab-overview .draft-route-notice{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(
    180deg,
    rgba(245,158,11,0.10),
    rgba(245,158,11,0.06)
  );
}

#tab-overview .draft-route-title{
  font-weight: 800;
  margin-bottom: 6px;
}

#tab-overview .draft-route-body{
  line-height: 1.4;
}

#tab-overview .overview-hero-profit{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
}

#tab-overview .hero-profit-value{
  font-size:44px;
  line-height:1;
  font-weight:900;
  letter-spacing:-0.5px;
  color:var(--text);
}

#tab-overview .hero-profit-chip{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--accent-soft);
  background:rgba(0,0,0,0.14);
  color:var(--muted);
  font-weight:700;
  font-size:12px;
}

#tab-overview .kpi-row{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin-top:12px;
}

#tab-overview .kpi-card{
  padding:12px;
  border-radius:14px;
  border:1px solid var(--accent-soft);
  background:var(--card);
  box-shadow: var(--shadow);
}

#tab-overview .kpi-value{
  font-size:20px;
  font-weight:900;
  color:var(--text);
}

#tab-overview .kpi-label{
  margin-top:4px;
  font-size:12px;
  color:var(--muted);
}

#tab-overview .analysis-card{
  margin-top:12px;
  padding:16px;
  border-radius:16px;
  border:1px solid var(--accent-soft);
  background:var(--card);
  box-shadow: var(--shadow);
}

#tab-overview .analysis-card-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
}

#tab-overview .analysis-route{
  padding:12px;
  border-radius:14px;
  border:1px solid var(--accent-soft);
  background:rgba(0,0,0,0.14);
}

#tab-overview .analysis-route-title{
  font-weight:800;
  font-size:18px;
}

#tab-overview .analysis-route-meta{
  margin-top:6px;
  font-size:12px;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

#tab-overview .analysis-route-meta .dot{ opacity:0.6; }

#tab-overview .analysis-breakdown{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:12px;
  margin-top:12px;
}

#tab-overview .analysis-col{
  padding:12px;
  border-radius:14px;
  border:1px solid var(--accent-soft);
  background:rgba(0,0,0,0.10);
}

#tab-overview .analysis-col-title{
  font-size:12px;
  font-weight:800;
  letter-spacing:0.4px;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:10px;
}

#tab-overview .analysis-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:6px 0;
  border-bottom:1px dashed rgba(148,163,184,0.25);
}

#tab-overview .analysis-row:last-child{ border-bottom:none; }

#tab-overview .analysis-ppm{
  font-size:30px;
  font-weight:900;
  margin-bottom:8px;
}

#tab-overview .analysis-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--accent-soft);
}

#tab-overview .overview-details{ margin-top:12px; }

@media (max-width: 900px){
  #tab-overview .overview-hero{ grid-template-columns: 1fr; }
  #tab-overview .overview-hero-right{ align-items:flex-start; }
  #tab-overview .analysis-breakdown{ grid-template-columns: 1fr; }
  #tab-overview .kpi-row{ grid-template-columns: 1fr; }
}

body:not(.light) .overview-hero-label{
  color: rgba(231,237,246,.88);
}

body:not(.light) .overview-hero-sub{
  color: rgba(154,167,182,.82);
}

body:not(.light) .hero-profit-value{
  color: rgba(231,237,246,.96);
  text-shadow:
    0 0 20px rgba(255,255,255,.04),
    0 0 16px rgba(255,106,0,.08);
}

body:not(.light) .hero-profit-chip{
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.010)),
    rgba(15,20,26,.72);
  color: rgba(230,237,243,.82);
  border-radius: var(--r-pill);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    inset 0 -1px 0 rgba(0,0,0,.30);
}

body:not(.light) .kpi-tile{
  background:
    linear-gradient(180deg, rgba(255,255,255,.030), rgba(255,255,255,.010)),
    rgba(15,20,26,.68) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: var(--r-md) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    inset 0 -1px 0 rgba(0,0,0,.24);
}

body:not(.light) .kpi-value{ color: rgba(231,237,246,.94); }
body:not(.light) .kpi-label{ color: rgba(154,167,182,.82); }

body.light .kpi-tile{
  background: rgba(255,255,255,.86) !important;
  border: 1px solid rgba(15,23,42,.10) !important;
  border-radius: var(--r-md) !important;
}

body.light .kpi-value{ color: rgba(15,23,42,.92); }
body.light .kpi-label{ color: rgba(82,98,122,.82); }

body:not(.light) .analysis-card-header h3{ color: rgba(231,237,246,.92); }
body:not(.light) .analysis-route-title{ color: rgba(231,237,246,.92); }
body:not(.light) .analysis-route-meta{ color: rgba(154,167,182,.85); }
body:not(.light) .analysis-col-title{ color: rgba(154,167,182,.80); letter-spacing:.12em; text-transform: uppercase; font-size: 12px; }
body:not(.light) .analysis-row{ border-top: 1px solid rgba(148,163,184,.10); }
body:not(.light) .analysis-row strong{ color: rgba(231,237,246,.92); }

@media (max-width: 768px) {
  .overview-hero-right,
  .overview-hero-profit {
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
  }

  #tab-overview .overview-panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  #tab-overview .overview-hero {
    margin: 0 0 14px 0 !important;
    padding: 16px !important;
    border-radius: 18px !important;
  }

  #tab-overview .kpi-row,
  #tab-overview .analysis-card,
  #tab-overview .overview-details {
    margin-top: 14px !important;
  }

  #tab-overview .analysis-card{
    padding-bottom: 0;
    overflow: hidden;
  }

  #tab-overview .kpi-card,
  #tab-overview .analysis-card,
  #tab-overview .results-card {
    box-shadow: 0 10px 28px rgba(0,0,0,0.12) !important;
  }

  #tab-overview .analysis-route,
  #tab-overview .analysis-col,
  #tab-overview .overview-details > .results-card,
  #tab-overview #bidCalculatorCard,
  #tab-overview .calc-breakdown-card{
    width: calc(100% + 32px);
    max-width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    box-sizing: border-box;
  }

  #tab-overview .analysis-breakdown{
    gap: 12px;
    margin-top: 12px;
  }

  #tab-overview .overview-details{
    gap: 12px;
  }

  #tab-overview .analysis-route{
    padding: 12px 16px;
  }

  #tab-overview .analysis-col,
  #tab-overview .overview-details > .results-card,
  #tab-overview #bidCalculatorCard,
  #tab-overview .calc-breakdown-card{
    padding-left: 16px;
    padding-right: 16px;
  }

  #tab-overview .calc-breakdown-card{
    margin-bottom: 0;
  }

  #tab-overview .overview-details > .results-card + .results-card,
  #tab-overview .analysis-col + .analysis-col{
    margin-top: 0;
  }
}
