/* Application shell */
.content{
  height:calc(100dvh - 64px)!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  scroll-snap-type:none!important;
  scroll-behavior:auto!important;
  overscroll-behavior-y:contain!important;
  padding:0!important;
}

.content>.section-shell,
#results>.section-shell{
  width:100%!important;
  height:auto!important;
  min-height:calc(100dvh - 64px)!important;
  max-height:none!important;
  margin:0!important;
  padding:18px 20px 34px!important;
  overflow:visible!important;
  scroll-snap-align:none!important;
  box-sizing:border-box!important;
}

.ges-v6-view-hidden{
  display:none!important;
}

.ges-v6-view-active{
  display:flex!important;
}

#results.results-area:not(.hidden){
  display:contents!important;
}

/* Legacy duplicate result pages remain disabled. */
#results>#evaluation,
#results>#energyDetails,
#results>#chartsSection,
#results>#qualitySection,
#results>#tableSection{
  display:none!important;
}

.ges-v6-nav{
  gap:5px!important;
}

.ges-v6-nav .nav-link{
  min-height:44px!important;
}

.ges-v6-subnav{
  position:sticky;
  top:0;
  z-index:18;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:-4px 0 14px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:color-mix(in srgb,var(--surface) 94%,transparent);
  box-shadow:0 10px 28px rgba(2,13,27,.08);
  backdrop-filter:blur(12px);
}

.ges-v6-subnav-copy{
  min-width:0;
}

.ges-v6-subnav-copy span,
.ges-v6-subnav-copy strong{
  display:block;
}

.ges-v6-subnav-copy span{
  color:var(--gold);
  font-size:11px;
  font-weight:900;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.ges-v6-subnav-copy strong{
  margin-top:3px;
  color:var(--text);
  font-size:14px;
}

.ges-v6-subnav-tabs{
  display:flex;
  align-items:center;
  gap:6px;
  padding:4px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface2);
}

.ges-v6-subnav-tabs button{
  min-height:32px;
  padding:6px 12px;
  border:1px solid transparent;
  border-radius:9px;
  background:transparent;
  color:var(--muted);
  font-size:11px;
  font-weight:850;
  cursor:pointer;
}

.ges-v6-subnav-tabs button:hover{
  color:var(--text);
  background:rgba(56,139,253,.08);
}

.ges-v6-subnav-tabs button.active{
  color:var(--text);
  border-color:rgba(247,184,45,.32);
  background:linear-gradient(135deg,rgba(247,184,45,.16),rgba(56,139,253,.08));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);
}

.ges-v6-transition{
  position:fixed;
  inset:0;
  z-index:100000;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  background:rgba(2,12,24,.18);
  backdrop-filter:blur(2px);
  transition:opacity .18s ease,visibility 0s linear .22s;
}

.ges-v6-transition.is-active{
  opacity:1;
  visibility:visible;
  transition:opacity .18s ease;
}

.ges-v6-transition-card{
  min-width:310px;
  padding:20px 24px;
  border:1px solid rgba(247,184,45,.48);
  border-radius:18px;
  background:linear-gradient(145deg,#06192d,#0a2845);
  box-shadow:0 28px 80px rgba(0,0,0,.38);
  transform:translateY(22px) scale(.97);
  transition:transform .36s cubic-bezier(.2,.8,.2,1);
}

.ges-v6-transition.is-active .ges-v6-transition-card{
  transform:translateY(0) scale(1);
}

.ges-v6-transition-card small,
.ges-v6-transition-card strong,
.ges-v6-transition-card span{
  display:block;
}

.ges-v6-transition-card small{
  color:#f7b82d;
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
}

.ges-v6-transition-card strong{
  margin-top:6px;
  color:#fff;
  font-size:21px;
}

.ges-v6-transition-card span{
  margin-top:6px;
  color:rgba(255,255,255,.68);
  font-size:11px;
}

/* Each main page scrolls naturally; no hidden content or forced full-page snap. */
#pvFirstDashboard,
#uploadPanel,
#dashboard,
#financialSummaryPage,
#pvChartsPage,
#pvEnergyPage,
#pvTablePage,
#pvEvaluationPage,
#pvOverviewPage,
#pvReportPage{
  max-height:none!important;
  overflow:visible!important;
}

#pvTablePage .pv-table-wrap,
#pvReportPage .pv-report-table-wrap,
#financialSummaryPage .financial-summary-content{
  max-height:none!important;
  overflow:auto!important;
}

@media(max-width:900px){
  .ges-v6-subnav{
    align-items:flex-start;
    flex-direction:column;
  }

  .ges-v6-subnav-tabs{
    width:100%;
    overflow-x:auto;
  }

  .ges-v6-subnav-tabs button{
    flex:1 0 auto;
  }
}

@media(max-width:720px){
  .content{
    height:auto!important;
    overflow:visible!important;
  }

  .content>.section-shell,
  #results>.section-shell{
    min-height:0!important;
    padding:12px 12px 86px!important;
  }

  .ges-v6-transition{
    display:none!important;
  }
}

/* Development indicator */
.ges-dev-mode-banner{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:9997;
  display:flex;
  align-items:center;
  gap:8px;
  min-height:34px;
  padding:7px 12px;
  border:1px solid rgba(247,184,45,.34);
  border-radius:999px;
  background:rgba(7,26,48,.94);
  color:#fff;
  box-shadow:0 16px 44px rgba(0,0,0,.28);
  font-size:11px;
  font-weight:850;
  pointer-events:none;
}
.ges-dev-mode-banner:before{
  content:'DEV';
  display:grid;
  place-items:center;
  min-width:30px;
  height:20px;
  border-radius:999px;
  background:#f7b82d;
  color:#071a30;
  font-size:11px;
  font-weight:950;
}
@media(max-width:720px){
  .ges-dev-mode-banner{
    right:10px;
    bottom:72px;
    font-size:11px;
  }
}

/* Login-Steuerung liegt jetzt beim Server: index.html zeigt das Auth-Overlay
   (showOverlay), ges-v6-beta1.js baypast nur lokal (dev). Das frühere harte
   Verstecken des Overlays + das "DEV / Giriş kapalı"-Badge wurden entfernt. */
.ges-hard-no-login-badge{display:none!important}

/* Data and pricing */
#uploadPanel{
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb,var(--surface) 98%,transparent),
      color-mix(in srgb,var(--surface2) 97%,transparent)
    )!important;
}

#uploadPanel .wiz-topbar{
  position:sticky;
  top:0;
  z-index:24;
  background:color-mix(in srgb,var(--surface) 96%,transparent)!important;
  backdrop-filter:blur(14px);
  box-shadow:0 8px 26px rgba(2,13,27,.06);
}

.ges-v6-pricing-context{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) repeat(3,minmax(150px,.55fr));
  gap:10px;
  margin:14px 20px 0;
}

.ges-v6-context-main,
.ges-v6-context-stat{
  min-width:0;
  border:1px solid var(--line);
  border-radius:15px;
  background:var(--surface2);
}

.ges-v6-context-main{
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px 15px;
  border-color:rgba(247,184,45,.30);
  background:
    linear-gradient(
      135deg,
      rgba(247,184,45,.10),
      rgba(56,139,253,.055)
    );
}

.ges-v6-context-icon{
  flex:none;
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border:1px solid rgba(247,184,45,.32);
  border-radius:13px;
  background:rgba(247,184,45,.12);
  color:var(--gold);
  font-size:20px;
  font-weight:900;
}

.ges-v6-context-copy{
  min-width:0;
}

.ges-v6-context-copy span,
.ges-v6-context-copy strong,
.ges-v6-context-copy small,
.ges-v6-context-stat span,
.ges-v6-context-stat strong,
.ges-v6-context-stat small{
  display:block;
}

.ges-v6-context-copy span{
  color:var(--gold);
  font-size:11px;
  font-weight:900;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.ges-v6-context-copy strong{
  margin-top:4px;
  color:var(--text);
  font-size:14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.ges-v6-context-copy small{
  margin-top:4px;
  color:var(--muted);
  font-size:11px;
}

.ges-v6-context-stat{
  padding:12px 13px;
}

.ges-v6-context-stat span{
  color:var(--muted);
  font-size:11px;
}

.ges-v6-context-stat strong{
  margin-top:5px;
  color:var(--text);
  font-size:13px;
}

.ges-v6-context-stat small{
  margin-top:4px;
  color:var(--muted);
  font-size:11px;
}

.ges-v6-context-stat.is-ready{
  border-color:rgba(82,214,137,.28);
  background:rgba(82,214,137,.055);
}

.ges-v6-context-stat.is-warning{
  border-color:rgba(247,184,45,.30);
  background:rgba(247,184,45,.06);
}

.ges-v6-context-stat.is-locked{
  border-color:rgba(255,107,122,.24);
  background:rgba(255,107,122,.045);
}

#uploadPanel .source-entry-shell{
  width:min(1260px,100%)!important;
}

#uploadPanel .source-entry-head{
  align-items:flex-start!important;
}

#uploadPanel .source-entry-head h2{
  font-size:26px!important;
}

#uploadPanel .source-choice-grid{
  grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr)!important;
  gap:14px!important;
}

#uploadPanel .source-choice{
  min-height:98px!important;
  padding:17px!important;
  border-radius:17px!important;
}

#uploadPanel .source-choice[data-source="fusion"]{
  border-color:rgba(247,184,45,.30)!important;
  background:
    linear-gradient(
      135deg,
      rgba(247,184,45,.105),
      rgba(56,139,253,.045)
    )!important;
}

#uploadPanel .source-choice[data-source="fusion"]:after{
  content:'ÖNERİLEN';
  position:absolute;
  top:10px;
  right:12px;
  padding:4px 7px;
  border-radius:999px;
  background:#f7b82d;
  color:#071a30;
  font-size:11px;
  font-weight:950;
  letter-spacing:.05em;
}

#uploadPanel .source-choice{
  position:relative;
}

#uploadPanel .source-dashboard-context{
  border-color:rgba(56,139,253,.32)!important;
  background:
    linear-gradient(
      135deg,
      rgba(56,139,253,.10),
      rgba(82,214,137,.055)
    )!important;
}

#uploadPanel.ges-v6-fusion-auto-active #remoteSourcePanel{
  display:block!important;
  padding:12px 14px!important;
  border-color:rgba(82,214,137,.25)!important;
  background:rgba(82,214,137,.045)!important;
}

#uploadPanel.ges-v6-fusion-auto-active #remoteSourcePanel .remote-source-grid,
#uploadPanel.ges-v6-fusion-auto-active #sourceLoadBtn{
  display:none!important;
}

#uploadPanel.ges-v6-fusion-auto-active #remoteSourcePanel .remote-source-actions{
  display:block!important;
}

#uploadPanel.ges-v6-fusion-auto-active #sourceLoadStatus{
  min-height:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}

.ges-v6-phase2-flow{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-top:10px;
}

.ges-v6-phase2-flow-item{
  position:relative;
  min-width:0;
  padding:10px 11px 10px 38px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface2);
}

.ges-v6-phase2-flow-item b{
  position:absolute;
  left:10px;
  top:10px;
  display:grid;
  place-items:center;
  width:20px;
  height:20px;
  border-radius:50%;
  background:rgba(56,139,253,.12);
  color:#388bfd;
  font-size:11px;
}

.ges-v6-phase2-flow-item strong,
.ges-v6-phase2-flow-item span{
  display:block;
}

.ges-v6-phase2-flow-item strong{
  color:var(--text);
  font-size:11px;
}

.ges-v6-phase2-flow-item span{
  margin-top:3px;
  color:var(--muted);
  font-size:11px;
  line-height:1.35;
}

.ges-v6-phase2-flow-item.is-complete{
  border-color:rgba(82,214,137,.26);
  background:rgba(82,214,137,.05);
}

.ges-v6-phase2-flow-item.is-complete b{
  background:rgba(82,214,137,.16);
  color:var(--green);
}

#uploadPanel .wiz-price-grid{
  grid-template-columns:minmax(310px,.88fr) minmax(440px,1.22fr)!important;
  gap:16px!important;
}

#uploadPanel .price-box,
#uploadPanel .distribution-box{
  border-radius:16px!important;
  box-shadow:none!important;
}

#uploadPanel .price-box{
  padding:15px!important;
  border-color:rgba(56,139,253,.20)!important;
  background:rgba(56,139,253,.035)!important;
}

#uploadPanel .distribution-box{
  padding:15px!important;
  border-color:rgba(247,184,45,.24)!important;
  background:rgba(247,184,45,.035)!important;
}

.ges-v6-pricing-readiness{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  margin-top:12px;
  padding:14px 15px;
  border:1px solid var(--line);
  border-radius:15px;
  background:var(--surface2);
}

.ges-v6-pricing-readiness-main{
  min-width:0;
}

.ges-v6-pricing-readiness-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.ges-v6-pricing-readiness-head strong{
  color:var(--text);
  font-size:13px;
}

.ges-v6-pricing-readiness-head span{
  color:var(--muted);
  font-size:11px;
  font-weight:800;
}

.ges-v6-progress{
  height:8px;
  margin-top:9px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(151,181,214,.15);
}

.ges-v6-progress>span{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:
    linear-gradient(
      90deg,
      #388bfd,
      #52d689
    );
  transition:width .24s ease;
}

.ges-v6-required-list{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:9px;
}

.ges-v6-required-chip{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:25px;
  padding:4px 8px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface);
  color:var(--muted);
  font-size:11px;
  font-weight:800;
}

.ges-v6-required-chip:before{
  content:'';
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--red);
}

.ges-v6-required-chip.is-ready{
  color:var(--text);
  border-color:rgba(82,214,137,.26);
  background:rgba(82,214,137,.06);
}

.ges-v6-required-chip.is-ready:before{
  background:var(--green);
}

.ges-v6-pricing-readiness-side{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:5px;
  min-width:180px;
}

.ges-v6-pricing-readiness-side strong{
  color:var(--text);
  font-size:11px;
}

.ges-v6-pricing-readiness-side span{
  color:var(--muted);
  font-size:11px;
  text-align:right;
}

.ges-v6-pricing-readiness.is-ready{
  border-color:rgba(82,214,137,.30);
  background:
    linear-gradient(
      135deg,
      rgba(82,214,137,.08),
      rgba(56,139,253,.035)
    );
}

.ges-v6-legal-details{
  margin-top:9px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--surface);
}

.ges-v6-legal-details>summary{
  padding:10px 12px;
  color:var(--muted);
  font-size:11px;
  font-weight:850;
  cursor:pointer;
  list-style:none;
}

.ges-v6-legal-details>summary::-webkit-details-marker{
  display:none;
}

.ges-v6-legal-details>summary:after{
  content:'＋';
  float:right;
  color:var(--gold);
}

.ges-v6-legal-details[open]>summary:after{
  content:'−';
}

.ges-v6-legal-details-body{
  display:grid;
  gap:8px;
  padding:0 10px 10px;
}

#uploadPanel .distribution-law-note,
#uploadPanel .distribution-required-note{
  margin:0!important;
}

#uploadPanel .wiz-action-bar{
  position:sticky!important;
  bottom:0!important;
  z-index:25!important;
  box-shadow:0 -12px 30px rgba(2,13,27,.08)!important;
}

html[data-theme="light"] .ges-v6-context-main,
html[data-theme="light"] .ges-v6-context-stat,
html[data-theme="light"] .ges-v6-pricing-readiness,
html[data-theme="light"] .ges-v6-phase2-flow-item,
html[data-theme="light"] .ges-v6-required-chip,
html[data-theme="light"] .ges-v6-legal-details{
  background:#fff;
}

@media(max-width:1180px){
  .ges-v6-pricing-context{
    grid-template-columns:1fr 1fr;
  }

  .ges-v6-context-main{
    grid-column:1/-1;
  }

  #uploadPanel .wiz-price-grid{
    grid-template-columns:1fr!important;
  }
}

@media(max-width:760px){
  .ges-v6-pricing-context{
    grid-template-columns:1fr;
    margin:10px 12px 0;
  }

  .ges-v6-context-main{
    grid-column:auto;
  }

  #uploadPanel .source-choice-grid,
  .ges-v6-phase2-flow{
    grid-template-columns:1fr!important;
  }

  .ges-v6-pricing-readiness{
    grid-template-columns:1fr;
  }

  .ges-v6-pricing-readiness-side{
    align-items:flex-start;
    min-width:0;
  }

  .ges-v6-pricing-readiness-side span{
    text-align:left;
  }
}

/* Dashboard and finance */
/* ---------- Dashboard: live energy + status only ---------- */
#pvFinancePage{
  display:none!important;
}

#pvFirstDashboard .pv-secondary-actions{
  display:none!important;
}

.ges-v6-dashboard-finance-state{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto auto;
  align-items:center;
  gap:13px;
  min-height:66px;
  padding:11px 13px;
  border:1px solid var(--line);
  border-radius:15px;
  background:linear-gradient(135deg,rgba(56,139,253,.07),rgba(247,184,45,.035));
}

.ges-v6-dashboard-finance-icon{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border:1px solid rgba(247,184,45,.28);
  border-radius:13px;
  background:rgba(247,184,45,.10);
  color:var(--gold);
  font-size:19px;
  font-weight:950;
}

.ges-v6-dashboard-finance-copy{
  min-width:0;
}

.ges-v6-dashboard-finance-copy span,
.ges-v6-dashboard-finance-copy strong,
.ges-v6-dashboard-finance-copy small{
  display:block;
}

.ges-v6-dashboard-finance-copy span{
  color:var(--muted);
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
}

.ges-v6-dashboard-finance-copy strong{
  margin-top:4px;
  color:var(--text);
  font-size:13px;
}

.ges-v6-dashboard-finance-copy small{
  margin-top:3px;
  color:var(--muted);
  font-size:11px;
}

.ges-v6-dashboard-finance-action{
  min-width:190px;
  min-height:38px;
  padding:8px 13px;
  border:1px solid rgba(56,139,253,.28);
  border-radius:11px;
  background:rgba(56,139,253,.10);
  color:#388bfd;
  font-size:11px;
  font-weight:900;
  cursor:pointer;
}

.ges-v6-dashboard-finance-state.is-ready{
  border-color:rgba(82,214,137,.30);
  background:linear-gradient(135deg,rgba(82,214,137,.09),rgba(56,139,253,.035));
}

.ges-v6-dashboard-finance-state.is-ready .ges-v6-dashboard-finance-icon{
  border-color:rgba(82,214,137,.28);
  background:rgba(82,214,137,.12);
  color:var(--green);
}

.ges-v6-dashboard-finance-state.is-ready .ges-v6-dashboard-finance-action{
  border-color:rgba(82,214,137,.28);
  background:rgba(82,214,137,.11);
  color:var(--green);
}
.ges-v6-dashboard-finance-state.is-pending{
  border-color:rgba(56,139,253,.3);
  background:linear-gradient(135deg,rgba(56,139,253,.08),rgba(247,184,45,.03));
}
.ges-v6-dashboard-finance-state.is-pending .ges-v6-dashboard-finance-icon{
  animation:gesFinPendingPulse 1.4s ease-in-out infinite;
}
@keyframes gesFinPendingPulse{0%,100%{opacity:.5}50%{opacity:1}}

/* No repeated money values in Tesis Özeti. */
#pvOverviewPage .pv-overview-block.finance,
#pvOverviewPage #pvOverviewInsightFinance{
  display:none!important;
}

#pvOverviewPage .pv-overview-main-grid{
  grid-template-columns:1fr!important;
}

/* ---------- Finance main page ---------- */
#dashboard{
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
  overflow:auto!important;
}

#dashboard>.report-cover-head,
#dashboard>.period-strip,
#dashboard>.logic-banner,
#dashboard>#periodWarning,
#dashboard>#outageBanner,
#dashboard>.primary-kpis,
#dashboard>#billComparisonGrid,
#dashboard>#energyDetails,
#dashboard>#monthlyFinanceStrip,
#dashboard>#optionalKpis,
#dashboard>#reconcile,
#dashboard>#financialAnalysisHero,
#dashboard>.summary-page-nav{
  display:none!important;
}

#gesV6FinanceMain{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.ges-v6-finance-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:15px 17px;
  border:1px solid var(--line);
  border-radius:16px;
  background:linear-gradient(135deg,rgba(56,139,253,.075),rgba(247,184,45,.055));
}

.ges-v6-finance-head-copy{
  min-width:0;
}

.ges-v6-finance-head-copy span,
.ges-v6-finance-head-copy strong,
.ges-v6-finance-head-copy small{
  display:block;
}

.ges-v6-finance-head-copy span{
  color:var(--gold);
  font-size:11px;
  font-weight:950;
  letter-spacing:.09em;
}

.ges-v6-finance-head-copy strong{
  margin-top:5px;
  color:var(--text);
  font-size:23px;
  line-height:1.15;
}

.ges-v6-finance-head-copy small{
  margin-top:6px;
  color:var(--muted);
  font-size:11px;
}

.ges-v6-finance-head-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:7px;
}

.ges-v6-finance-head-actions button{
  min-height:36px;
  padding:8px 11px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface2);
  color:var(--text);
  font-size:11px;
  font-weight:850;
  cursor:pointer;
}

.ges-v6-finance-head-actions button.primary{
  border-color:rgba(247,184,45,.32);
  background:rgba(247,184,45,.12);
  color:var(--gold);
}

.ges-v6-finance-result-grid{
  display:grid;
  grid-template-columns:minmax(300px,.82fr) minmax(0,1.6fr);
  gap:10px;
}

.ges-v6-finance-result-card{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:196px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:17px;
  background:linear-gradient(145deg,rgba(247,184,45,.12),rgba(56,139,253,.045));
}

.ges-v6-finance-result-card.is-positive{
  border-color:rgba(82,214,137,.32);
  background:linear-gradient(145deg,rgba(82,214,137,.13),rgba(56,139,253,.04));
}

.ges-v6-finance-result-card.is-negative{
  border-color:rgba(255,107,122,.30);
  background:linear-gradient(145deg,rgba(255,107,122,.13),rgba(247,184,45,.035));
}

.ges-v6-finance-result-card span,
.ges-v6-finance-result-card strong,
.ges-v6-finance-result-card small{
  display:block;
}

.ges-v6-finance-result-card span{
  color:var(--muted);
  font-size:11px;
  font-weight:900;
  letter-spacing:.06em;
}

.ges-v6-finance-result-card strong{
  margin-top:12px;
  color:var(--gold);
  font-size:clamp(34px,4vw,54px);
  line-height:1;
  overflow-wrap:anywhere;
}

.ges-v6-finance-result-card.is-positive strong{
  color:var(--green);
}

.ges-v6-finance-result-card.is-negative strong{
  color:var(--red);
}

.ges-v6-finance-result-card small{
  margin-top:10px;
  color:var(--muted);
  font-size:11px;
  line-height:1.45;
}

.ges-v6-finance-result-meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:13px;
}

.ges-v6-finance-chip{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:25px;
  padding:4px 8px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface2);
  color:var(--muted);
  font-size:11px;
  font-weight:800;
}

.ges-v6-finance-chip:before{
  content:'';
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--green);
}

.ges-v6-finance-kpis{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}

.ges-v6-finance-kpi{
  min-width:0;
  padding:12px 13px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--surface2);
}

.ges-v6-finance-kpi span,
.ges-v6-finance-kpi strong,
.ges-v6-finance-kpi small{
  display:block;
}

.ges-v6-finance-kpi span{
  color:var(--muted);
  font-size:11px;
}

.ges-v6-finance-kpi strong{
  margin-top:6px;
  color:var(--text);
  font-size:clamp(15px,1.55vw,22px);
  line-height:1.15;
  overflow-wrap:anywhere;
}

.ges-v6-finance-kpi small{
  margin-top:4px;
  color:var(--muted);
  font-size:11px;
  line-height:1.35;
}

.ges-v6-finance-kpi.green strong{color:var(--green)}
.ges-v6-finance-kpi.red strong{color:var(--red)}
.ges-v6-finance-kpi.gold strong{color:var(--gold)}
.ges-v6-finance-kpi.blue strong{color:#388bfd}

.ges-v6-finance-flow{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
}

.ges-v6-finance-flow-card{
  position:relative;
  min-width:0;
  padding:14px 14px 14px 48px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface2);
}

.ges-v6-finance-flow-card>b{
  position:absolute;
  left:13px;
  top:13px;
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  border-radius:8px;
  background:rgba(56,139,253,.11);
  color:#388bfd;
  font-size:11px;
}

.ges-v6-finance-flow-card strong,
.ges-v6-finance-flow-card span,
.ges-v6-finance-flow-card small{
  display:block;
}

.ges-v6-finance-flow-card strong{
  color:var(--text);
  font-size:11px;
}

.ges-v6-finance-flow-card span{
  margin-top:5px;
  color:var(--muted);
  font-size:11px;
  line-height:1.4;
}

.ges-v6-finance-flow-card small{
  margin-top:7px;
  color:var(--text);
  font-size:11px;
  font-weight:850;
}

.ges-v6-finance-note{
  padding:10px 12px;
  border:1px solid rgba(247,184,45,.24);
  border-radius:12px;
  background:rgba(247,184,45,.055);
  color:var(--muted);
  font-size:11px;
  line-height:1.45;
}

/* ---------- Finance detail tab ---------- */
#financialSummaryPage{
  overflow:auto!important;
}

#financialSummaryPage>.section-head,
#financialSummaryPage>.financial-summary-content,
#financialSummaryPage>.summary-page-nav{
  display:none!important;
}

#gesV6FinanceDetail{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.ges-v6-detail-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:15px;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:15px;
  background:var(--surface2);
}

.ges-v6-detail-head span,
.ges-v6-detail-head strong,
.ges-v6-detail-head small{
  display:block;
}

.ges-v6-detail-head span{
  color:var(--gold);
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
}

.ges-v6-detail-head strong{
  margin-top:4px;
  color:var(--text);
  font-size:21px;
}

.ges-v6-detail-head small{
  margin-top:5px;
  color:var(--muted);
  font-size:11px;
}

.ges-v6-detail-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}

.ges-v6-detail-card{
  min-width:0;
  padding:12px 13px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--surface2);
}

.ges-v6-detail-card span,
.ges-v6-detail-card strong,
.ges-v6-detail-card small{
  display:block;
}

.ges-v6-detail-card span{
  color:var(--muted);
  font-size:11px;
}

.ges-v6-detail-card strong{
  margin-top:6px;
  color:var(--text);
  font-size:clamp(15px,1.5vw,21px);
  overflow-wrap:anywhere;
}

.ges-v6-detail-card small{
  margin-top:4px;
  color:var(--muted);
  font-size:11px;
  line-height:1.35;
}

.ges-v6-formula-list{
  display:grid;
  gap:7px;
}

.ges-v6-formula-row{
  display:grid;
  grid-template-columns:minmax(190px,.55fr) minmax(0,1.45fr);
  gap:12px;
  align-items:center;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--surface2);
}

.ges-v6-formula-row span{
  color:var(--muted);
  font-size:11px;
}

.ges-v6-formula-row code{
  color:var(--text);
  font-family:inherit;
  font-size:11px;
  font-weight:800;
  white-space:normal;
}

.ges-v6-price-context{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}

.ges-v6-price-item{
  padding:10px 11px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--surface2);
}

.ges-v6-price-item span,
.ges-v6-price-item strong{
  display:block;
}

.ges-v6-price-item span{
  color:var(--muted);
  font-size:11px;
}

.ges-v6-price-item strong{
  margin-top:5px;
  color:var(--text);
  font-size:11px;
}

html[data-theme="light"] .ges-v6-finance-result-card,
html[data-theme="light"] .ges-v6-finance-kpi,
html[data-theme="light"] .ges-v6-finance-flow-card,
html[data-theme="light"] .ges-v6-detail-card,
html[data-theme="light"] .ges-v6-formula-row,
html[data-theme="light"] .ges-v6-price-item,
html[data-theme="light"] .ges-v6-detail-head{
  background:#fff;
}

@media(max-width:1150px){
  .ges-v6-finance-result-grid{
    grid-template-columns:1fr;
  }

  .ges-v6-finance-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .ges-v6-detail-grid,
  .ges-v6-price-context{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:760px){
  .ges-v6-dashboard-finance-state{
    grid-template-columns:auto 1fr;
  }

  .ges-v6-dashboard-finance-kpis{
    grid-column:1/-1;
    flex-wrap:wrap;
    gap:12px 18px;
  }

  .ges-v6-dashboard-finance-action{
    grid-column:1/-1;
    width:100%;
  }

  .ges-v6-finance-head{
    flex-direction:column;
  }

  .ges-v6-finance-head-actions{
    justify-content:flex-start;
  }

  .ges-v6-finance-kpis,
  .ges-v6-finance-flow,
  .ges-v6-detail-grid,
  .ges-v6-price-context{
    grid-template-columns:1fr;
  }

  .ges-v6-formula-row{
    grid-template-columns:1fr;
  }
}

/* Energy analysis */
#pvChartsPage,
#pvEnergyPage,
#pvTablePage{
  overflow:auto!important;
  max-height:none!important;
}

#pvChartsPage>.section-head,
#pvEnergyPage>.section-head,
#pvTablePage>.section-head{
  display:none!important;
}

.ges-v6-energy-context{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:12px;
}

.ges-v6-energy-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:15px 17px;
  border:1px solid var(--line);
  border-radius:16px;
  background:
    linear-gradient(
      135deg,
      rgba(56,139,253,.075),
      rgba(247,184,45,.045)
    );
}

.ges-v6-energy-head-copy{
  min-width:0;
}

.ges-v6-energy-head-copy span,
.ges-v6-energy-head-copy strong,
.ges-v6-energy-head-copy small{
  display:block;
}

.ges-v6-energy-head-copy span{
  color:var(--gold);
  font-size:11px;
  font-weight:950;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.ges-v6-energy-head-copy strong{
  margin-top:5px;
  color:var(--text);
  font-size:22px;
  line-height:1.15;
}

.ges-v6-energy-head-copy small{
  margin-top:6px;
  color:var(--muted);
  font-size:11px;
  line-height:1.45;
}

.ges-v6-energy-status{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:6px;
}

.ges-v6-energy-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:27px;
  padding:5px 9px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface2);
  color:var(--muted);
  font-size:11px;
  font-weight:850;
  white-space:nowrap;
}

.ges-v6-energy-chip:before{
  content:'';
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--green);
}

.ges-v6-energy-chip.warning:before{
  background:var(--gold);
}

.ges-v6-energy-kpis{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:8px;
}

.ges-v6-energy-kpi{
  min-width:0;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--surface2);
}

.ges-v6-energy-kpi span,
.ges-v6-energy-kpi strong,
.ges-v6-energy-kpi small{
  display:block;
}

.ges-v6-energy-kpi span{
  color:var(--muted);
  font-size:11px;
}

.ges-v6-energy-kpi strong{
  margin-top:6px;
  color:var(--text);
  font-size:clamp(14px,1.45vw,20px);
  line-height:1.1;
  overflow-wrap:anywhere;
}

.ges-v6-energy-kpi small{
  margin-top:4px;
  color:var(--muted);
  font-size:11px;
}

.ges-v6-energy-kpi.production strong{color:var(--gold)}
.ges-v6-energy-kpi.consumption strong{color:#7156d8}
.ges-v6-energy-kpi.import strong{color:var(--red)}
.ges-v6-energy-kpi.export strong{color:var(--green)}
.ges-v6-energy-kpi.self strong{color:#388bfd}
.ges-v6-energy-kpi.rate strong{color:var(--cyan)}

.ges-v6-energy-flow-overview{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  gap:10px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:15px;
  background:var(--surface2);
}

.ges-v6-energy-flow-node{
  min-width:0;
  padding:15px 12px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--surface);
  text-align:center;
}

.ges-v6-energy-flow-node i,
.ges-v6-energy-flow-node span,
.ges-v6-energy-flow-node strong,
.ges-v6-energy-flow-node small{
  display:block;
}

.ges-v6-energy-flow-node i{
  color:var(--gold);
  font-size:21px;
  font-style:normal;
}

.ges-v6-energy-flow-node span{
  margin-top:7px;
  color:var(--muted);
  font-size:11px;
}

.ges-v6-energy-flow-node strong{
  margin-top:5px;
  color:var(--text);
  font-size:18px;
}

.ges-v6-energy-flow-node small{
  margin-top:4px;
  color:var(--muted);
  font-size:11px;
}

.ges-v6-energy-flow-arrow{
  color:var(--gold);
  font-size:22px;
  font-weight:900;
}

.ges-v6-energy-insights{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}

.ges-v6-energy-insight{
  padding:11px 12px;
  border-left:3px solid var(--green);
  border-radius:10px;
  background:var(--surface2);
  color:var(--muted);
  font-size:11px;
  line-height:1.45;
}

.ges-v6-energy-insight.warning{
  border-left-color:var(--gold);
}

.ges-v6-energy-insight.info{
  border-left-color:#388bfd;
}

#pvChartsPage .panel,
#pvEnergyPage .panel,
#pvTablePage .panel{
  box-shadow:none!important;
}

#pvChartsPage canvas{
  max-height:none!important;
}

#pvTablePage .tablewrap,
#pvTablePage .pv-table-wrap,
#pvTablePage .pv-report-table-wrap{
  max-height:none!important;
  overflow:auto!important;
  border-radius:13px!important;
}

#pvTablePage table{
  min-width:1050px!important;
}

.ges-v6-energy-table-tools{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--surface2);
  margin-bottom:10px;
}

.ges-v6-energy-table-tools-copy strong,
.ges-v6-energy-table-tools-copy span{
  display:block;
}

.ges-v6-energy-table-tools-copy strong{
  color:var(--text);
  font-size:11px;
}

.ges-v6-energy-table-tools-copy span{
  margin-top:3px;
  color:var(--muted);
  font-size:11px;
}

.ges-v6-energy-table-tools-actions{
  display:flex;
  align-items:center;
  gap:7px;
}

.ges-v6-energy-table-tools-actions button{
  min-height:34px;
  padding:7px 11px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
  color:var(--text);
  font-size:11px;
  font-weight:850;
  cursor:pointer;
}

.ges-v6-energy-table-tools-actions button.primary{
  border-color:rgba(82,214,137,.28);
  background:rgba(82,214,137,.09);
  color:var(--green);
}

.ges-v6-energy-footnote{
  padding:9px 11px;
  border:1px solid rgba(56,139,253,.20);
  border-radius:11px;
  background:rgba(56,139,253,.045);
  color:var(--muted);
  font-size:11px;
  line-height:1.5;
}

html[data-theme="light"] .ges-v6-energy-head,
html[data-theme="light"] .ges-v6-energy-kpi,
html[data-theme="light"] .ges-v6-energy-flow-overview,
html[data-theme="light"] .ges-v6-energy-insight,
html[data-theme="light"] .ges-v6-energy-table-tools{
  background:#fff;
}

@media(max-width:1250px){
  .ges-v6-energy-kpis{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:850px){
  .ges-v6-energy-head{
    flex-direction:column;
  }

  .ges-v6-energy-status{
    justify-content:flex-start;
  }

  .ges-v6-energy-flow-overview{
    grid-template-columns:1fr;
  }

  .ges-v6-energy-flow-arrow{
    transform:rotate(90deg);
    text-align:center;
  }

  .ges-v6-energy-insights{
    grid-template-columns:1fr;
  }
}

@media(max-width:620px){
  .ges-v6-energy-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .ges-v6-energy-table-tools{
    align-items:flex-start;
    flex-direction:column;
  }
}

/* Plant health */
/*
 * Alte Bewertungs- und Übersichtsblöcke bleiben als Datenquellen im DOM,
 * werden aber nicht mehr doppelt angezeigt.
 */
#pvEvaluationPage>
  :not(.ges-v6-subnav):not(#gesV6HealthMain),
#pvOverviewPage>
  :not(.ges-v6-subnav):not(#gesV6HealthDevices){
  display:none!important;
}

#pvEvaluationPage,
#pvOverviewPage{
  overflow:auto!important;
  max-height:none!important;
}

#gesV6HealthMain,
#gesV6HealthDevices{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.ges-v6-health-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:15px 17px;
  border:1px solid var(--line);
  border-radius:16px;
  background:
    linear-gradient(
      135deg,
      rgba(82,214,137,.075),
      rgba(56,139,253,.045)
    );
}

.ges-v6-health-head-copy{
  min-width:0;
}

.ges-v6-health-head-copy span,
.ges-v6-health-head-copy strong,
.ges-v6-health-head-copy small{
  display:block;
}

.ges-v6-health-head-copy span{
  color:var(--green);
  font-size:11px;
  font-weight:950;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.ges-v6-health-head-copy strong{
  margin-top:5px;
  color:var(--text);
  font-size:22px;
  line-height:1.15;
}

.ges-v6-health-head-copy small{
  margin-top:6px;
  color:var(--muted);
  font-size:11px;
  line-height:1.45;
}

.ges-v6-health-head-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:7px;
}

.ges-v6-health-head-actions button{
  min-height:35px;
  padding:7px 11px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface2);
  color:var(--text);
  font-size:11px;
  font-weight:850;
  cursor:pointer;
}

.ges-v6-health-head-actions button.primary{
  border-color:rgba(56,139,253,.28);
  background:rgba(56,139,253,.09);
  color:#388bfd;
}

.ges-v6-health-summary{
  display:grid;
  grid-template-columns:minmax(270px,.78fr) minmax(0,1.55fr);
  gap:10px;
}

.ges-v6-health-score-card{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:16px;
  min-height:178px;
  padding:17px;
  border:1px solid var(--line);
  border-radius:17px;
  background:
    linear-gradient(
      145deg,
      rgba(82,214,137,.10),
      rgba(56,139,253,.04)
    );
}

.ges-v6-health-ring{
  --health-score:0deg;
  position:relative;
  display:grid;
  place-items:center;
  width:112px;
  height:112px;
  flex:none;
  border-radius:50%;
  background:
    conic-gradient(
      var(--health-ring-color,var(--green))
      var(--health-score),
      rgba(151,181,214,.15)
      0
    );
}

.ges-v6-health-ring:after{
  content:'';
  position:absolute;
  inset:10px;
  border-radius:50%;
  background:var(--surface);
  box-shadow:inset 0 0 0 1px var(--line);
}

.ges-v6-health-ring strong,
.ges-v6-health-ring span{
  position:relative;
  z-index:1;
  display:block;
  text-align:center;
}

.ges-v6-health-ring strong{
  color:var(--text);
  font-size:31px;
  line-height:1;
}

.ges-v6-health-ring span{
  margin-top:3px;
  color:var(--muted);
  font-size:11px;
}

.ges-v6-health-score-copy span,
.ges-v6-health-score-copy strong,
.ges-v6-health-score-copy small{
  display:block;
}

.ges-v6-health-score-copy span{
  color:var(--muted);
  font-size:11px;
  font-weight:850;
}

.ges-v6-health-score-copy strong{
  margin-top:6px;
  color:var(--text);
  font-size:18px;
  line-height:1.2;
}

.ges-v6-health-score-copy small{
  margin-top:6px;
  color:var(--muted);
  font-size:11px;
  line-height:1.5;
}

.ges-v6-health-kpis{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}

.ges-v6-health-kpi{
  min-width:0;
  padding:12px 13px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--surface2);
}

.ges-v6-health-kpi span,
.ges-v6-health-kpi strong,
.ges-v6-health-kpi small{
  display:block;
}

.ges-v6-health-kpi span{
  color:var(--muted);
  font-size:11px;
}

.ges-v6-health-kpi strong{
  margin-top:6px;
  color:var(--text);
  font-size:17px;
  line-height:1.1;
  overflow-wrap:anywhere;
}

.ges-v6-health-kpi small{
  margin-top:4px;
  color:var(--muted);
  font-size:11px;
  line-height:1.35;
}

.ges-v6-health-kpi.ok strong{color:var(--green)}
.ges-v6-health-kpi.warn strong{color:var(--gold)}
.ges-v6-health-kpi.error strong{color:var(--red)}
.ges-v6-health-kpi.info strong{color:#388bfd}

.ges-v6-health-status-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}

.ges-v6-health-status{
  min-width:0;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface2);
}

.ges-v6-health-status span,
.ges-v6-health-status strong,
.ges-v6-health-status small{
  display:block;
}

.ges-v6-health-status span{
  color:var(--muted);
  font-size:11px;
}

.ges-v6-health-status strong{
  margin-top:5px;
  color:var(--text);
  font-size:11px;
  overflow-wrap:anywhere;
}

.ges-v6-health-status small{
  margin-top:4px;
  color:var(--muted);
  font-size:11px;
  line-height:1.35;
}

.ges-v6-health-priority{
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface2);
}

.ges-v6-health-priority-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.ges-v6-health-priority-head strong{
  color:var(--text);
  font-size:11px;
}

.ges-v6-health-priority-head span{
  color:var(--muted);
  font-size:11px;
}

.ges-v6-health-priority-list{
  display:grid;
  gap:7px;
  margin-top:9px;
}

.ges-v6-health-priority-item{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:9px;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
}

.ges-v6-health-priority-item i{
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--green);
}

.ges-v6-health-priority-item.warning i{
  background:var(--gold);
}

.ges-v6-health-priority-item.error i{
  background:var(--red);
}

.ges-v6-health-priority-item strong{
  color:var(--text);
  font-size:11px;
}

.ges-v6-health-priority-item span{
  color:var(--muted);
  font-size:11px;
  text-align:right;
}

.ges-v6-device-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 13px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface2);
}

.ges-v6-device-toolbar-copy strong,
.ges-v6-device-toolbar-copy span{
  display:block;
}

.ges-v6-device-toolbar-copy strong{
  color:var(--text);
  font-size:11px;
}

.ges-v6-device-toolbar-copy span{
  margin-top:3px;
  color:var(--muted);
  font-size:11px;
}

.ges-v6-device-toolbar-actions{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.ges-v6-device-toolbar-actions button{
  min-height:34px;
  padding:7px 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
  color:var(--text);
  font-size:11px;
  font-weight:850;
  cursor:pointer;
}

.ges-v6-device-toolbar-actions button.primary{
  border-color:rgba(56,139,253,.28);
  background:rgba(56,139,253,.09);
  color:#388bfd;
}

.ges-v6-device-counts{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
}

.ges-v6-device-count{
  min-width:0;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface2);
}

.ges-v6-device-count span,
.ges-v6-device-count strong,
.ges-v6-device-count small{
  display:block;
}

.ges-v6-device-count span{
  color:var(--muted);
  font-size:11px;
}

.ges-v6-device-count strong{
  margin-top:5px;
  color:var(--text);
  font-size:18px;
}

.ges-v6-device-count small{
  margin-top:3px;
  color:var(--muted);
  font-size:11px;
}

.ges-v6-device-section{
  padding:13px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface2);
}

.ges-v6-device-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:9px;
}

.ges-v6-device-section-head strong{
  color:var(--text);
  font-size:11px;
}

.ges-v6-device-section-head span{
  color:var(--muted);
  font-size:11px;
}

.ges-v6-device-list{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}

.ges-v6-device-card{
  min-width:0;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--surface);
}

.ges-v6-device-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
}

.ges-v6-device-card-type{
  color:var(--green);
  font-size:11px;
  font-weight:900;
  letter-spacing:.05em;
}

.ges-v6-device-card-status{
  display:inline-flex!important;
  align-items:center;
  gap:6px;
  color:var(--muted);
  font-size:11px!important;
}

.ges-v6-device-card-status:before{
  content:'';
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--green);
}

.ges-v6-device-card-status.unknown:before{
  background:var(--muted);
}

.ges-v6-device-card-status.idle:before{
  background:var(--gold,#f7b82d);
}

.ges-v6-device-card-status.running:before{
  background:var(--green,#52d689);
  animation:gesV6StatusPulse 1.7s ease-in-out infinite;
}

@keyframes gesV6StatusPulse{
  0%{box-shadow:0 0 0 0 rgba(82,214,137,.5)}
  70%{box-shadow:0 0 0 6px rgba(82,214,137,0)}
  100%{box-shadow:0 0 0 0 rgba(82,214,137,0)}
}

.ges-v6-device-card strong,
.ges-v6-device-card span,
.ges-v6-device-card small{
  display:block;
}

.ges-v6-device-card strong{
  margin-top:7px;
  color:var(--text);
  font-size:13px;
  overflow-wrap:anywhere;
}

.ges-v6-device-card span{
  margin-top:4px;
  color:var(--muted);
  font-size:11px;
  overflow-wrap:anywhere;
}

.ges-v6-device-card small{
  margin-top:6px;
  color:var(--muted);
  font-size:11px;
}

.ges-v6-string-table{
  overflow:auto;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--surface);
}

.ges-v6-string-table table{
  width:100%;
  min-width:680px;
  border-collapse:collapse;
}

.ges-v6-string-table th,
.ges-v6-string-table td{
  padding:8px 10px;
  border-bottom:1px solid var(--line);
  font-size:11px;
  text-align:right;
}

.ges-v6-string-table th:first-child,
.ges-v6-string-table td:first-child{
  text-align:left;
}

.ges-v6-string-table th{
  color:var(--muted);
  background:var(--surface2);
}

.ges-v6-string-status{
  display:inline-flex;
  min-width:57px;
  justify-content:center;
  padding:4px 7px;
  border-radius:999px;
  background:rgba(82,214,137,.10);
  color:var(--green);
  font-size:11px;
  font-weight:850;
}

.ges-v6-string-status.warning{
  background:rgba(247,184,45,.10);
  color:var(--gold);
}

.ges-v6-string-status.off{
  background:rgba(151,181,214,.10);
  color:var(--muted);
}

.ges-v6-alarm-list{
  display:grid;
  gap:7px;
}

.ges-v6-alarm-item{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:9px;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
}

.ges-v6-alarm-item i{
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--gold);
}

.ges-v6-alarm-item.critical i{
  background:var(--red);
}

.ges-v6-alarm-item.cleared i{
  background:var(--green);
}

.ges-v6-alarm-item strong,
.ges-v6-alarm-item span{
  display:block;
}

.ges-v6-alarm-item strong{
  color:var(--text);
  font-size:11px;
}

.ges-v6-alarm-item span{
  margin-top:3px;
  color:var(--muted);
  font-size:11px;
}

.ges-v6-alarm-item time{
  color:var(--muted);
  font-size:11px;
  text-align:right;
}

.ges-v6-health-empty{
  padding:15px;
  border:1px dashed var(--line-strong);
  border-radius:11px;
  color:var(--muted);
  font-size:11px;
  line-height:1.5;
  text-align:center;
  background:var(--surface);
}

.ges-v6-health-footnote{
  padding:9px 11px;
  border:1px solid rgba(56,139,253,.20);
  border-radius:11px;
  background:rgba(56,139,253,.045);
  color:var(--muted);
  font-size:11px;
  line-height:1.5;
}

html[data-theme="light"] .ges-v6-health-head,
html[data-theme="light"] .ges-v6-health-score-card,
html[data-theme="light"] .ges-v6-health-kpi,
html[data-theme="light"] .ges-v6-health-status,
html[data-theme="light"] .ges-v6-health-priority,
html[data-theme="light"] .ges-v6-device-toolbar,
html[data-theme="light"] .ges-v6-device-count,
html[data-theme="light"] .ges-v6-device-section{
  background:#fff;
}

@media(max-width:1150px){
  .ges-v6-health-summary{
    grid-template-columns:1fr;
  }

  .ges-v6-health-status-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .ges-v6-device-counts{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .ges-v6-device-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:760px){
  .ges-v6-health-head,
  .ges-v6-device-toolbar{
    align-items:flex-start;
    flex-direction:column;
  }

  .ges-v6-health-head-actions{
    justify-content:flex-start;
  }

  .ges-v6-health-score-card{
    grid-template-columns:1fr;
    text-align:center;
  }

  .ges-v6-health-ring{
    margin:auto;
  }

  .ges-v6-health-kpis,
  .ges-v6-health-status-grid,
  .ges-v6-device-counts,
  .ges-v6-device-list{
    grid-template-columns:1fr;
  }

  .ges-v6-health-priority-item,
  .ges-v6-alarm-item{
    grid-template-columns:auto minmax(0,1fr);
  }

  .ges-v6-health-priority-item span,
  .ges-v6-alarm-item time{
    grid-column:2;
    text-align:left;
  }
}

/* Reports */
#pvReportPage{
  overflow:auto!important;
  max-height:none!important;
}

/* Alte doppelte Berichtsansicht bleibt im DOM, wird aber nicht mehr parallel gezeigt. */
#pvReportPage>
  :not(.ges-v6-subnav):not(#gesV6ReportsMain){
  display:none!important;
}

#gesV6ReportsMain{
  display:flex;
  flex-direction:column;
  gap:11px;
}

.ges-v6-reports-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:16px;
  background:
    linear-gradient(
      135deg,
      rgba(247,184,45,.075),
      rgba(56,139,253,.045)
    );
}

.ges-v6-reports-head-copy{
  min-width:0;
}

.ges-v6-reports-head-copy span,
.ges-v6-reports-head-copy strong,
.ges-v6-reports-head-copy small{
  display:block;
}

.ges-v6-reports-head-copy span{
  color:var(--gold);
  font-size:11px;
  font-weight:950;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.ges-v6-reports-head-copy strong{
  margin-top:5px;
  color:var(--text);
  font-size:23px;
  line-height:1.15;
}

.ges-v6-reports-head-copy small{
  margin-top:6px;
  color:var(--muted);
  font-size:11px;
  line-height:1.45;
}

.ges-v6-reports-status{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:6px;
}

.ges-v6-report-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:27px;
  padding:5px 9px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface2);
  color:var(--muted);
  font-size:11px;
  font-weight:850;
}

.ges-v6-report-chip:before{
  content:'';
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--green);
}

.ges-v6-report-chip.warning:before{
  background:var(--gold);
}

.ges-v6-report-chip.locked:before{
  background:var(--red);
}

.ges-v6-report-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}

.ges-v6-report-card{
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:198px;
  padding:15px;
  border:1px solid var(--line);
  border-radius:15px;
  background:var(--surface2);
}

.ges-v6-report-card.primary{
  border-color:rgba(247,184,45,.28);
  background:
    linear-gradient(
      145deg,
      rgba(247,184,45,.105),
      rgba(56,139,253,.035)
    );
}

.ges-v6-report-card.green{
  border-color:rgba(82,214,137,.26);
  background:
    linear-gradient(
      145deg,
      rgba(82,214,137,.085),
      rgba(56,139,253,.03)
    );
}

.ges-v6-report-icon{
  display:grid;
  place-items:center;
  width:43px;
  height:43px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--surface);
  color:var(--gold);
  font-size:20px;
  font-weight:900;
}

.ges-v6-report-card.green .ges-v6-report-icon{
  color:var(--green);
}

.ges-v6-report-card h3{
  margin:11px 0 0;
  color:var(--text);
  font-size:13px;
}

.ges-v6-report-card p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:11px;
  line-height:1.5;
}

.ges-v6-report-card-meta{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-top:9px;
}

.ges-v6-report-card-meta span{
  padding:4px 7px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  background:var(--surface);
  font-size:11px;
  font-weight:800;
}

.ges-v6-report-card button{
  width:100%;
  min-height:37px;
  margin-top:auto;
  padding:8px 11px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
  color:var(--text);
  font-size:11px;
  font-weight:900;
  cursor:pointer;
}

.ges-v6-report-card.primary button{
  border-color:rgba(247,184,45,.32);
  background:rgba(247,184,45,.12);
  color:var(--gold);
}

.ges-v6-report-card.green button{
  border-color:rgba(82,214,137,.30);
  background:rgba(82,214,137,.10);
  color:var(--green);
}

.ges-v6-report-card button:disabled{
  opacity:.4;
  cursor:not-allowed;
}

.ges-v6-report-preview{
  display:grid;
  grid-template-columns:minmax(270px,.72fr) minmax(0,1.5fr);
  gap:10px;
}

.ges-v6-report-preview-head{
  padding:15px;
  border:1px solid var(--line);
  border-radius:15px;
  background:
    linear-gradient(
      145deg,
      rgba(56,139,253,.075),
      rgba(247,184,45,.035)
    );
}

.ges-v6-report-preview-head span,
.ges-v6-report-preview-head strong,
.ges-v6-report-preview-head small{
  display:block;
}

.ges-v6-report-preview-head span{
  color:var(--gold);
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
}

.ges-v6-report-preview-head strong{
  margin-top:7px;
  color:var(--text);
  font-size:17px;
  line-height:1.25;
}

.ges-v6-report-preview-head small{
  margin-top:7px;
  color:var(--muted);
  font-size:11px;
  line-height:1.5;
}

.ges-v6-report-preview-kpis{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}

.ges-v6-report-preview-kpi{
  min-width:0;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface2);
}

.ges-v6-report-preview-kpi span,
.ges-v6-report-preview-kpi strong,
.ges-v6-report-preview-kpi small{
  display:block;
}

.ges-v6-report-preview-kpi span{
  color:var(--muted);
  font-size:11px;
}

.ges-v6-report-preview-kpi strong{
  margin-top:5px;
  color:var(--text);
  font-size:15px;
  line-height:1.1;
  overflow-wrap:anywhere;
}

.ges-v6-report-preview-kpi small{
  margin-top:4px;
  color:var(--muted);
  font-size:11px;
}

.ges-v6-report-preview-kpi.production strong{color:var(--gold)}
.ges-v6-report-preview-kpi.consumption strong{color:#7156d8}
.ges-v6-report-preview-kpi.sale strong{color:var(--green)}
.ges-v6-report-preview-kpi.buy strong{color:var(--red)}
.ges-v6-report-preview-kpi.money strong{color:#388bfd}
.ges-v6-report-preview-kpi.advantage strong{color:var(--green)}

.ges-v6-report-log{
  padding:12px 13px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface2);
}

.ges-v6-report-log-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.ges-v6-report-log-head strong{
  color:var(--text);
  font-size:11px;
}

.ges-v6-report-log-head span{
  color:var(--muted);
  font-size:11px;
}

.ges-v6-report-log-list{
  display:grid;
  gap:6px;
  margin-top:8px;
}

.ges-v6-report-log-item{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  padding:8px 9px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--surface);
}

.ges-v6-report-log-item i{
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--green);
}

.ges-v6-report-log-item.warning i{
  background:var(--gold);
}

.ges-v6-report-log-item strong{
  color:var(--text);
  font-size:11px;
}

.ges-v6-report-log-item span{
  color:var(--muted);
  font-size:11px;
  text-align:right;
}

.ges-v6-report-note{
  padding:9px 11px;
  border:1px solid rgba(56,139,253,.20);
  border-radius:11px;
  background:rgba(56,139,253,.045);
  color:var(--muted);
  font-size:11px;
  line-height:1.5;
}

html[data-theme="light"] .ges-v6-reports-head,
html[data-theme="light"] .ges-v6-report-card,
html[data-theme="light"] .ges-v6-report-preview-head,
html[data-theme="light"] .ges-v6-report-preview-kpi,
html[data-theme="light"] .ges-v6-report-log{
  background:#fff;
}

@media(max-width:1120px){
  .ges-v6-report-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .ges-v6-report-preview{
    grid-template-columns:1fr;
  }
}

@media(max-width:720px){
  .ges-v6-reports-head{
    flex-direction:column;
  }

  .ges-v6-reports-status{
    justify-content:flex-start;
  }

  .ges-v6-report-grid,
  .ges-v6-report-preview-kpis{
    grid-template-columns:1fr;
  }

  .ges-v6-report-log-item{
    grid-template-columns:auto minmax(0,1fr);
  }

  .ges-v6-report-log-item span{
    grid-column:2;
    text-align:left;
  }
}

/* Navigation and responsive layout */
:root{
  --ges-v6-sidebar-width:245px;
  --ges-v6-topbar-height:64px;
}

html,
body{
  max-width:100%;
  overflow-x:hidden!important;
}

.app-shell{
  min-height:100dvh!important;
  grid-template-columns:
    var(--ges-v6-sidebar-width)
    minmax(0,1fr)!important;
}

.sidebar{
  width:var(--ges-v6-sidebar-width)!important;
  min-width:var(--ges-v6-sidebar-width)!important;
  height:100dvh!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  scrollbar-width:thin;
}

.workspace{
  min-width:0!important;
  width:100%!important;
  overflow:hidden!important;
}

.topbar{
  min-height:var(--ges-v6-topbar-height)!important;
  height:var(--ges-v6-topbar-height)!important;
  padding:9px 20px!important;
  /* topbar must outrank sticky sub-bars (e.g. .wiz-topbar z-index:24) so the
     version badge hover tooltip is not clipped by them after the header was
     made shorter */
  z-index:45!important;
}

.content{
  width:100%!important;
  max-width:none!important;
  height:
    calc(
      100dvh -
      var(--ges-v6-topbar-height)
    )!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  scroll-snap-type:none!important;
  scroll-behavior:auto!important;
  overscroll-behavior:contain!important;
  scrollbar-gutter:stable;
}

.content>.section-shell,
#results>.section-shell{
  width:100%!important;
  max-width:none!important;
  min-height:
    calc(
      100dvh -
      var(--ges-v6-topbar-height)
    )!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  scroll-snap-align:none!important;
}

.ges-v6-view-hidden{
  display:none!important;
}

.ges-v6-view-active{
  display:flex!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}

.ges-v6-route-header{
  display:none;
}

/* Dashboard finance yield KPIs — inline chips in the 48px status strip */
.ges-v6-dashboard-finance-kpis{
  display:flex;
  align-items:center;
  gap:16px;
}
.ges-v6-dashboard-finance-kpis.hidden{display:none}
.ges-v6-dashboard-finance-kpis>div{
  display:flex;
  flex-direction:column;
  gap:1px;
  line-height:1.1;
  white-space:nowrap;
}
.ges-v6-dashboard-finance-kpis span{
  font-size:10px;
  font-weight:700;
  letter-spacing:.02em;
  color:var(--muted);
}
.ges-v6-dashboard-finance-kpis strong{
  font-size:15px;
  font-weight:800;
  color:var(--green,#52d689);
}

/* Energy detail table: let it flow at full height so the page can scroll
   down to it instead of squeezing it into a few unusable pixels. */
#pvTablePage{
  overflow-y:auto!important;
}
#pvTablePage .pv-table-wrap{
  flex:none!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
}

/* Merged energy header: the sub-tab switcher lives inside the main header
   card instead of a separate redundant "ENERJİ ANALİZİ" strip above it. */
.ges-v6-energy-head--tabs{
  flex-wrap:wrap!important;
  gap:10px 12px!important;
}
.ges-v6-energy-head--tabs .ges-v6-energy-head-copy{
  flex:1 1 220px;
}
.ges-v6-energy-head--tabs .ges-v6-subnav-tabs{
  margin-left:auto;
}

/* Month grid popover (friendlier than a long dropdown) */
/* Modern dönem takvimi (ay / yıl seçimi) */
.pv-cal-popover{
  position:fixed;
  z-index:140;
  width:268px;
  padding:12px;
  border-radius:16px;
  border:1px solid var(--line-strong,rgba(255,255,255,.14));
  background:var(--surface,#0d1f33);
  box-shadow:0 24px 64px rgba(0,0,0,.5);
  animation:pvCalIn .14s ease;
}
@keyframes pvCalIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.pv-cal-popover.hidden{display:none}
.pv-cal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:11px;
}
.pv-cal-year{
  font-size:16px;
  font-weight:800;
  letter-spacing:.02em;
  color:var(--text,#fff);
}
.pv-cal-nav{
  width:30px;
  height:30px;
  border-radius:9px;
  border:1px solid var(--line,rgba(255,255,255,.12));
  background:rgba(255,255,255,.05);
  color:var(--text,#fff);
  cursor:pointer;
  font-size:17px;
  line-height:1;
  display:grid;
  place-items:center;
  transition:border-color .12s,background .12s;
}
.pv-cal-nav:hover:not(:disabled){
  border-color:rgba(247,184,45,.55);
  background:rgba(247,184,45,.12);
}
.pv-cal-nav:disabled{opacity:.28;cursor:not-allowed}
.pv-cal-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:7px;
}
.pv-cal-month{
  position:relative;
  min-height:42px;
  border-radius:11px;
  border:1px solid var(--line,rgba(255,255,255,.08));
  background:rgba(255,255,255,.03);
  color:var(--text,#fff);
  font-size:12.5px;
  font-weight:700;
  cursor:pointer;
  transition:border-color .12s,background .12s,transform .08s;
}
.pv-cal-month:hover:not(:disabled){
  border-color:rgba(247,184,45,.5);
  background:rgba(247,184,45,.1);
  transform:translateY(-1px);
}
.pv-cal-month.has-data::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:6px;
  width:4px;
  height:4px;
  margin-left:-2px;
  border-radius:50%;
  background:var(--green,#52d689);
  opacity:.85;
}
.pv-cal-month.active{
  border-color:rgba(247,184,45,.65);
  background:linear-gradient(135deg,rgba(247,184,45,.24),rgba(56,139,253,.14));
  color:#fff;
}
.pv-cal-month.active.has-data::after{background:var(--gold,#f7b82d)}
.pv-cal-month:disabled{opacity:.26;cursor:not-allowed}
.pv-cal-foot{
  display:flex;
  gap:8px;
  margin-top:11px;
  padding-top:11px;
  border-top:1px solid var(--line,rgba(255,255,255,.08));
}
.pv-cal-quick{
  flex:1;
  min-height:34px;
  border-radius:10px;
  border:1px solid var(--line,rgba(255,255,255,.1));
  background:rgba(255,255,255,.04);
  color:var(--text,#fff);
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  transition:border-color .12s,background .12s;
}
.pv-cal-quick:hover{
  border-color:rgba(56,139,253,.55);
  background:rgba(56,139,253,.12);
}
.pv-cal-quick--year{flex:1.5}
.pv-cal-quick--year:hover{
  border-color:rgba(82,214,137,.5);
  background:rgba(82,214,137,.12);
}
.pv-cal-quick.active{
  border-color:rgba(82,214,137,.6);
  background:linear-gradient(135deg,rgba(82,214,137,.2),rgba(56,139,253,.1));
  color:var(--green,#52d689);
}

/* Clickable device cards + full device detail overlay */
.ges-v6-device-card--open{
  cursor:pointer;
  transition:border-color .16s ease,transform .16s ease,box-shadow .16s ease;
}
.ges-v6-device-card--open:hover,
.ges-v6-device-card--open:focus-visible{
  border-color:rgba(247,184,45,.55);
  transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(0,0,0,.22);
  outline:none;
}
.ges-v6-device-overlay{
  position:fixed;
  inset:0;
  z-index:120;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px;
}
.ges-v6-device-overlay.hidden{display:none}
.ges-v6-device-overlay-backdrop{
  position:absolute;
  inset:0;
  background:rgba(4,12,24,.62);
  backdrop-filter:blur(4px);
}
.ges-v6-device-overlay-panel{
  position:relative;
  width:min(760px,100%);
  max-height:88vh;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:var(--surface,#0d1f33);
  border:1px solid var(--line-strong,rgba(255,255,255,.12));
  border-radius:18px;
  padding:22px 24px 24px;
  box-shadow:0 30px 80px rgba(0,0,0,.45);
}
#gesV6DeviceOverlayBody{
  overflow:auto;
  min-height:0;
  margin:-4px -8px 0;
  padding:4px 8px 0;
}
.ges-v6-device-overlay-close{
  position:absolute;
  top:14px;
  right:14px;
  width:30px;
  height:30px;
  border-radius:9px;
  border:1px solid var(--line,rgba(255,255,255,.1));
  background:rgba(255,255,255,.05);
  color:var(--muted,#91a6bd);
  cursor:pointer;
  font-size:13px;
}
.ges-v6-device-overlay-close:hover{
  color:var(--text,#fff);
  border-color:rgba(247,184,45,.5);
}
.ges-v6-device-overlay-head{
  display:flex;
  flex-direction:column;
  gap:3px;
  padding-right:36px;
  margin-bottom:6px;
}
.ges-v6-device-overlay-eyebrow{
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--gold,#f7b82d);
  font-weight:800;
}
.ges-v6-device-overlay-head strong{
  font-size:20px;
  color:var(--text,#fff);
}
.ges-v6-device-overlay-head small{
  color:var(--muted,#91a6bd);
  font-size:12px;
}
.ges-v6-device-overlay-status{
  align-self:flex-start;
  margin-top:4px;
  font-size:11px;
  font-weight:700;
  padding:2px 9px;
  border-radius:999px;
  background:rgba(82,214,137,.15);
  color:#52d689;
}
.ges-v6-device-overlay-section{margin-top:16px}
.ges-v6-device-overlay-section h4{
  margin:0 0 9px;
  font-size:12px;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--muted,#91a6bd);
}
.ges-v6-device-metric-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  gap:9px;
}
.ges-v6-device-metric{
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:9px 11px;
  border-radius:11px;
  border:1px solid var(--line,rgba(255,255,255,.08));
  background:rgba(255,255,255,.03);
}
.ges-v6-device-metric span{font-size:11px;color:var(--muted,#91a6bd)}
.ges-v6-device-metric strong{font-size:15px;color:var(--text,#fff)}
html[data-theme="light"] .ges-v6-device-overlay-panel{background:#fff}

.ges-v6-route-icon{
  flex:none;
  display:grid;
  place-items:center;
  width:35px;
  height:35px;
  border:1px solid rgba(247,184,45,.28);
  border-radius:11px;
  background:rgba(247,184,45,.09);
  color:var(--gold);
  font-size:15px;
  font-weight:950;
}

.ges-v6-route-copy{
  min-width:0;
}

.ges-v6-route-copy span,
.ges-v6-route-copy strong,
.ges-v6-route-copy small{
  display:block;
}

.ges-v6-route-copy span{
  color:var(--gold);
  font-size:11px;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.ges-v6-route-copy strong{
  margin-top:2px;
  color:var(--text);
  font-size:15px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.ges-v6-route-copy small{
  margin-top:2px;
  color:var(--muted);
  font-size:11px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.ges-v6-global-context{
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
}

.ges-v6-global-chip{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:27px;
  max-width:190px;
  padding:5px 8px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface2);
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.ges-v6-global-chip:before{
  content:'';
  flex:none;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--green);
}

.ges-v6-global-chip.warning:before{
  background:var(--gold);
}

.ges-v6-global-chip.locked:before{
  background:var(--red);
}

.ges-v6-nav .nav-link{
  position:relative;
  min-height:43px!important;
  transition:
    background-color .16s ease,
    border-color .16s ease,
    color .16s ease,
    transform .16s ease!important;
}

.ges-v6-nav .nav-link:hover{
  transform:translateX(2px);
}

.ges-v6-nav .nav-link.active:after{
  content:'';
  position:absolute;
  top:9px;
  bottom:9px;
  right:5px;
  width:3px;
  border-radius:999px;
  background:var(--gold);
}

.ges-v6-nav .nav-link[aria-disabled="true"]{
  opacity:.46;
  cursor:not-allowed;
}

.ges-v6-nav .nav-link:focus-visible,
.ges-v6-subnav-tabs button:focus-visible,
.ges-v6-route-button:focus-visible{
  outline:3px solid rgba(56,139,253,.25);
  outline-offset:2px;
}

.ges-v6-page-progress{
  position:fixed;
  top:0;
  left:var(--ges-v6-sidebar-width);
  right:0;
  z-index:100001;
  height:3px;
  pointer-events:none;
  opacity:0;
  transition:opacity .15s ease;
}

.ges-v6-page-progress.is-active{
  opacity:1;
}

.ges-v6-page-progress span{
  display:block;
  width:0;
  height:100%;
  background:
    linear-gradient(
      90deg,
      #388bfd,
      #52d689,
      #f7b82d
    );
  transition:width .28s ease;
}

.ges-v6-transition{
  background:rgba(2,12,24,.08)!important;
  backdrop-filter:blur(1px)!important;
}

.ges-v6-transition-card{
  min-width:260px!important;
  padding:15px 18px!important;
  border-radius:14px!important;
}

.ges-v6-transition-card strong{
  font-size:17px!important;
}

.ges-v6-transition-card span{
  font-size:11px!important;
}

/* Phase 7 shortens the old long overlay. */
.ges-v6-transition.is-active{
  animation:
    ges-v6-transition-auto-hide
    .55s
    forwards;
}

@keyframes ges-v6-transition-auto-hide{
  0%{opacity:0}
  18%{opacity:1}
  72%{opacity:1}
  100%{
    opacity:0;
    visibility:hidden;
  }
}

.ges-v6-runtime-status{
  position:fixed;
  right:14px;
  bottom:14px;
  z-index:9996;
  display:flex;
  align-items:center;
  gap:7px;
  min-height:30px;
  padding:5px 9px;
  border:1px solid var(--line);
  border-radius:999px;
  background:color-mix(in srgb,var(--surface) 94%,transparent);
  color:var(--muted);
  box-shadow:0 12px 30px rgba(0,0,0,.15);
  backdrop-filter:blur(10px);
  font-size:11px;
  font-weight:800;
  pointer-events:none;
}

.ges-v6-runtime-status:before{
  content:'';
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--green);
}

.ges-v6-runtime-status.warning:before{
  background:var(--gold);
}

.ges-v6-runtime-status.error:before{
  background:var(--red);
}

.ges-v6-mobile-nav{
  display:none;
}

html[data-theme="light"] .ges-v6-route-icon,
html[data-theme="light"] .ges-v6-global-chip,
html[data-theme="light"] .ges-v6-runtime-status{
  background:#fff;
}

@media(max-width:1050px){
  :root{
    --ges-v6-sidebar-width:214px;
  }

  .sidebar-brand img{
    width:165px!important;
  }

  .ges-v6-global-chip{
    max-width:135px;
  }
}

@media(max-width:820px){
  :root{
    --ges-v6-sidebar-width:0px;
    --ges-v6-topbar-height:60px;
  }

  .app-shell{
    display:block!important;
  }

  .sidebar{
    display:none!important;
  }

  .workspace{
    width:100%!important;
  }

  .topbar{
    padding:8px 12px!important;
  }

  .topbar .page-title{
    display:none!important;
  }

  .top-actions{
    min-width:0;
    width:100%;
    justify-content:space-between;
  }

  .ges-v6-global-context{
    overflow:hidden;
  }

  .ges-v6-global-chip{
    max-width:125px;
  }

  .content{
    height:
      calc(
        100dvh -
        var(--ges-v6-topbar-height)
        - 65px
      )!important;
    padding-bottom:66px!important;
  }

  .content>.section-shell,
  #results>.section-shell{
    min-height:
      calc(
        100dvh -
        var(--ges-v6-topbar-height)
        - 65px
      )!important;
  }

  .ges-v6-page-progress{
    left:0;
  }

  .ges-v6-mobile-nav{
    position:fixed;
    left:8px;
    right:8px;
    bottom:7px;
    z-index:9995;
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:3px;
    min-height:54px;
    padding:5px;
    border:1px solid var(--line);
    border-radius:15px;
    background:color-mix(in srgb,var(--surface) 95%,transparent);
    box-shadow:0 18px 44px rgba(0,0,0,.24);
    backdrop-filter:blur(15px);
  }

  .ges-v6-mobile-nav button{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    min-width:0;
    padding:4px 2px;
    border:1px solid transparent;
    border-radius:10px;
    background:transparent;
    color:var(--muted);
    font-size:11px;
    font-weight:800;
    cursor:pointer;
  }

  .ges-v6-mobile-nav button i{
    font-size:13px;
    font-style:normal;
    line-height:1;
  }

  .ges-v6-mobile-nav button.active{
    border-color:rgba(247,184,45,.26);
    background:rgba(247,184,45,.09);
    color:var(--gold);
  }

  .ges-v6-runtime-status{
    display:none;
  }
}

@media(max-width:520px){
  .ges-v6-route-copy small{
    display:none;
  }

  .ges-v6-global-chip:nth-child(2){
    display:none;
  }

  .ges-v6-mobile-nav button{
    font-size:11px;
  }
}

@media(prefers-reduced-motion:reduce){
  *,
  *:before,
  *:after{
    scroll-behavior:auto!important;
    transition-duration:.01ms!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
  }
}

/* Beta 1 layout simplification */
:root{
  --ges-v6-sidebar-width:220px;
  --ges-v6-topbar-height:48px;
}

/* Compact top bar — icon-only actions with hover tooltips, more page height */
.topbar.topbar-clean{padding-top:0!important;padding-bottom:0!important}
.topbar-clean .top-actions{gap:8px}
.topbar-clean .version-badge{min-height:26px;padding:0 8px;font-size:11px}
.topbar-clean .theme-toggle{height:30px;padding:0 9px;gap:0}
.topbar-clean .theme-toggle .theme-toggle-text{display:none}
.topbar-clean .theme-toggle .theme-toggle-icon{width:20px;height:20px;font-size:13px}
.topbar-clean .ges-team-user{padding:3px 4px;gap:4px}
.topbar-clean .ges-team-user .ges-team-copy{display:none}
.topbar-clean .ges-team-avatar{width:28px;height:28px;font-size:11px}

/* Menü-Hintergrund = untere Kante des kombinierten Logos (dunkles Navy),
   damit das Bild nahtlos in das Menü übergeht. */
.sidebar{
  padding:0 14px 20px!important;
  background:#0c1a2a!important;
}
html[data-theme="dark"] .sidebar{background:#0c1a2a!important}

/* Kombiniertes Logo (Logo + Solarpanel) als EIN randloser Banner:
   kein Rahmen, volle Sidebar-Breite, fließt unten in die Menüfarbe.
   ID-Selektor, um die Theme-spezifischen Brand-Regeln zu überschreiben. */
#sidebarDashboardLogo.sidebar-brand{
  display:block!important;
  position:relative!important;
  height:auto!important;
  min-height:0!important;
  margin:0 -14px 10px!important;
  padding:0!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  z-index:3!important;
}
#sidebarDashboardLogo .sidebar-logo-full{
  width:100%!important;
  max-width:100%!important;
  max-height:none!important;
  height:auto!important;
  display:block!important;
  border:0!important;
  object-fit:contain!important;
  filter:none!important;
}
/* untere Bildkante schmilzt in die Menüfarbe (nahtloser Übergang) */
#sidebarDashboardLogo.sidebar-brand::after{
  content:""!important;
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:20px;
  background:linear-gradient(180deg,rgba(12,26,42,0),#0c1a2a 94%);
  pointer-events:none;
}
/* schmale Rail / mobil: Logo-Banner ausblenden, Navigation bleibt ruhig */
@media(max-width:1050px){
  #sidebarDashboardLogo.sidebar-brand{margin:0!important;min-height:0!important}
  #sidebarDashboardLogo .sidebar-logo-full{display:none!important}
}

.nav{
  gap:5px!important;
  margin-top:0!important;
}

.ges-v6-nav .nav-link{
  min-height:42px!important;
  padding:9px 11px!important;
  font-size:13px!important;
}

/* ── 3D-Menü: erhabene Navigations-Schaltflächen mit Tiefe ── */
.sidebar{
  box-shadow:9px 0 30px rgba(0,0,0,.5),inset -1px 0 0 rgba(255,255,255,.05)!important;
}
.nav{gap:7px!important}
.ges-v6-nav .nav-link{
  background:linear-gradient(180deg,rgba(255,255,255,.055) 0%,rgba(255,255,255,.015) 48%,rgba(0,0,0,.08) 100%)!important;
  border:1px solid rgba(0,0,0,.4)!important;
  border-top-color:rgba(255,255,255,.15)!important;
  border-radius:11px!important;
  text-shadow:0 1px 1px rgba(0,0,0,.45);
  box-shadow:
    0 3px 5px rgba(0,0,0,.36),
    0 7px 16px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.1)!important;
  transition:transform .14s ease,box-shadow .14s ease,
    background-color .16s ease,border-color .16s ease!important;
}
.ges-v6-nav .nav-link:hover{
  transform:translateY(-2px)!important;
  border-top-color:rgba(255,255,255,.24)!important;
  box-shadow:
    0 6px 10px rgba(0,0,0,.44),
    0 13px 26px rgba(0,0,0,.32),
    inset 0 1px 0 rgba(255,255,255,.15)!important;
}
.ges-v6-nav .nav-link:active{
  transform:translateY(0)!important;
  box-shadow:0 1px 2px rgba(0,0,0,.4),inset 0 2px 7px rgba(0,0,0,.5)!important;
}
.ges-v6-nav .nav-link.active{
  background:linear-gradient(180deg,rgba(247,198,84,.36) 0%,rgba(247,150,30,.15) 58%,rgba(170,104,18,.14) 100%)!important;
  border-color:rgba(247,184,45,.5)!important;
  border-top-color:rgba(255,224,144,.72)!important;
  color:#fff!important;
  box-shadow:
    0 4px 8px rgba(0,0,0,.42),
    0 11px 24px rgba(247,150,30,.28),
    inset 0 1px 0 rgba(255,240,186,.55)!important;
}

.topbar{
  padding:10px 24px!important;
  border-bottom-color:rgba(151,181,214,.14)!important;
  background:color-mix(in srgb,var(--surface) 96%,transparent)!important;
}

.ges-v6-route-icon{
  width:38px;
  height:38px;
}

.ges-v6-route-copy span{
  font-size:11px;
}

.ges-v6-route-copy strong{
  font-size:18px;
}

.ges-v6-route-copy small{
  margin-top:3px;
  font-size:11px;
}

.ges-v6-global-context,
.ges-hard-no-login-badge,
.ges-v6-runtime-status{
  display:none!important;
}

.content>.section-shell,
#results>.section-shell{
  padding:28px 32px 48px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

#uploadPanel{
  min-height:100%!important;
  height:auto!important;
  padding:0 0 42px!important;
  overflow:visible!important;
  background:transparent!important;
}

#uploadPanel.wiz-step1-active,
#uploadPanel.wiz-step2-active,
#uploadPanel.wiz-step3-active{
  height:auto!important;
  min-height:100%!important;
  margin:0!important;
}

#uploadPanel .wiz-topbar{
  position:sticky;
  top:0;
  width:100%;
  padding:11px 32px!important;
  box-shadow:none!important;
}

.ges-v6-pricing-context,
.ges-v6-phase2-flow{
  display:none!important;
}

#wizStep1{
  flex:0 0 auto!important;
  padding:30px 36px 42px!important;
}

#uploadPanel .source-entry-shell{
  width:min(1120px,100%)!important;
  margin:0 auto!important;
  gap:20px!important;
}

#uploadPanel .source-entry-head{
  align-items:center!important;
  gap:24px!important;
}

#uploadPanel .source-entry-head h2{
  max-width:820px;
  margin-top:7px!important;
  font-size:28px!important;
  line-height:1.16!important;
  letter-spacing:-.025em;
}

#uploadPanel .source-entry-head p{
  max-width:820px;
  margin-top:10px!important;
  font-size:12px!important;
  line-height:1.6!important;
}

#uploadPanel .source-choice-grid{
  grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)!important;
  gap:12px!important;
}

#uploadPanel .source-choice{
  min-height:88px!important;
  padding:15px 17px!important;
  border-radius:14px!important;
  box-shadow:none!important;
}

#uploadPanel .source-choice strong{
  font-size:15px!important;
}

#uploadPanel .source-choice small{
  margin-top:5px!important;
  font-size:11px!important;
}

#uploadPanel .source-dashboard-context{
  padding:14px 16px!important;
  border-radius:14px!important;
  box-shadow:none!important;
}

#uploadPanel .source-dashboard-context strong{
  font-size:14px!important;
}

#uploadPanel .source-dashboard-context em,
#uploadPanel .source-dashboard-context b{
  font-size:11px!important;
}

#uploadPanel .wiz-price-grid{
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)!important;
  gap:14px!important;
}

@media(max-width:1050px){
  :root{
    --ges-v6-sidebar-width:200px;
  }

  #uploadPanel .source-entry-head{
    align-items:flex-start!important;
  }
}

@media(max-width:820px){
  :root{
    --ges-v6-sidebar-width:0px;
    --ges-v6-topbar-height:60px;
  }

  .content>.section-shell,
  #results>.section-shell{
    padding:20px 16px 86px!important;
  }

  #uploadPanel{
    padding:0 0 86px!important;
  }

  #uploadPanel .wiz-topbar{
    padding:9px 14px!important;
  }

  #wizStep1{
    padding:24px 16px 34px!important;
  }

  #uploadPanel .source-entry-head,
  #uploadPanel .source-choice-grid,
  #uploadPanel .wiz-price-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
  }
}

/* Authoritative route visibility */
#pvFirstDashboard.ges-v6-view-hidden,
#uploadPanel.ges-v6-view-hidden,
#dashboard.ges-v6-view-hidden,
#financialSummaryPage.ges-v6-view-hidden,
#pvChartsPage.ges-v6-view-hidden,
#pvEnergyPage.ges-v6-view-hidden,
#pvTablePage.ges-v6-view-hidden,
#pvEvaluationPage.ges-v6-view-hidden,
#pvAlarmCenterPage.ges-v6-view-hidden,
#pvOverviewPage.ges-v6-view-hidden,
#pvReportPage.ges-v6-view-hidden,
#pvFleetPage.ges-v6-view-hidden,
#pvComparePage.ges-v6-view-hidden{
  display:none!important;
}

#pvFirstDashboard.ges-v6-view-active,
#uploadPanel.ges-v6-view-active,
#dashboard.ges-v6-view-active,
#financialSummaryPage.ges-v6-view-active,
#pvChartsPage.ges-v6-view-active,
#pvEnergyPage.ges-v6-view-active,
#pvTablePage.ges-v6-view-active,
#pvEvaluationPage.ges-v6-view-active,
#pvAlarmCenterPage.ges-v6-view-active,
#pvOverviewPage.ges-v6-view-active,
#pvReportPage.ges-v6-view-active,
#pvFleetPage.ges-v6-view-active,
#pvComparePage.ges-v6-view-active{
  display:flex!important;
}

/* Beta 1.1: devices are a page, not a dashboard overlay */
#pvDeviceDetailsModal{
  display:none!important;
}

#pvOverviewPage>.ges-v6-subnav{
  display:none!important;
}

@media(max-width:820px){
  .ges-v6-mobile-nav{
    grid-template-columns:repeat(8,1fr);
  }
}

/* Keep the desktop dashboard inside one viewport. */
@media(min-width:1101px){
  #pvFirstDashboard.ges-v6-view-active{
    display:grid!important;
    grid-template-rows:
      auto auto auto auto auto auto minmax(0,1fr);
    height:calc(100dvh - var(--ges-v6-topbar-height))!important;
    min-height:0!important;
    max-height:calc(100dvh - var(--ges-v6-topbar-height))!important;
    padding:8px 16px 10px!important;
    gap:6px!important;
    overflow:hidden!important;
  }

  #pvFirstDashboard .pv-dash-head{
    grid-template-columns:1fr!important;
    align-items:center!important;
    min-height:52px;
  }

  #pvFirstDashboard .pv-dash-title{
    align-items:center!important;
  }

  #pvFirstDashboard .pv-dash-title h2{
    font-size:clamp(22px,2vw,30px)!important;
    line-height:1.05!important;
  }

  #pvFirstDashboard .pv-dash-title p{
    margin-top:4px!important;
    font-size:11px!important;
  }

  #pvFirstDashboard .pv-dash-controls-modern{
    display:none!important;
  }

  #pvFirstDashboard .pv-plant-location-hero{
    min-height:48px!important;
    margin:0!important;
    padding:7px 12px!important;
    gap:10px!important;
  }

  #pvFirstDashboard .pv-location-hero-icon{
    width:36px!important;
    height:36px!important;
  }

  #pvFirstDashboard .pv-location-hero-copy strong{
    margin-top:2px!important;
    font-size:14px!important;
  }

  #pvFirstDashboard .pv-location-hero-copy em{
    margin-top:2px!important;
    font-size:11px!important;
  }

  #pvFirstDashboard .pv-status-line{
    min-height:40px!important;
    padding:5px 10px!important;
    gap:9px!important;
  }

  #pvFirstDashboard .pv-live-strip{
    gap:7px!important;
  }

  #pvFirstDashboard .pv-live-card{
    min-height:72px!important;
    padding:8px 11px!important;
  }

  #pvFirstDashboard .pv-live-card strong{
    margin-top:6px!important;
    font-size:clamp(23px,2vw,31px)!important;
  }

  #pvFirstDashboard .pv-live-card small{
    margin-top:4px!important;
    font-size:11px!important;
  }

  #pvFirstDashboard .pv-kpi-grid{
    gap:7px!important;
  }

  #pvFirstDashboard .pv-kpi{
    min-height:62px!important;
    padding:8px 11px!important;
  }

  #pvFirstDashboard .pv-kpi strong{
    margin-top:5px!important;
    font-size:23px!important;
  }

  #pvFirstDashboard .pv-kpi small{
    margin-top:2px!important;
    font-size:11px!important;
  }

  #pvFirstDashboard .ges-v6-dashboard-finance-state{
    width:100%!important;
    height:64px!important;
    min-height:64px!important;
    max-height:64px!important;
    padding:8px 14px!important;
    gap:12px!important;
    align-self:start!important;
  }

  #pvFirstDashboard .ges-v6-dashboard-finance-icon{
    width:40px;
    height:40px;
    border-radius:11px;
    font-size:18px;
  }

  #pvFirstDashboard .ges-v6-dashboard-finance-copy strong{
    margin-top:1px;
    font-size:14px;
  }

  /* Dönem kapsamı açıklaması artık görünür. */
  #pvFirstDashboard .ges-v6-dashboard-finance-copy small{
    display:block;
    margin-top:2px;
    font-size:10.5px;
    color:var(--muted);
  }

  #pvFirstDashboard .ges-v6-dashboard-finance-action{
    min-height:30px;
    padding:6px 12px;
  }

  #pvFirstDashboard .pv-main-grid-step2{
    min-height:0!important;
    height:auto!important;
    grid-template-rows:minmax(0,1fr)!important;
    gap:8px!important;
  }

  #pvFirstDashboard .pv-main-grid-step2>.pv-dash-card,
  #pvFirstDashboard .pv-side-stack,
  #pvFirstDashboard .pv-flow-card{
    min-height:0!important;
    height:100%!important;
  }

  #pvFirstDashboard .pv-dash-card{
    padding:10px 12px!important;
  }

  #pvFirstDashboard .pv-card-head h3{
    font-size:14px!important;
  }

  #pvFirstDashboard .pv-card-head p{
    margin-top:2px!important;
    font-size:11px!important;
  }

  #pvFirstDashboard .pv-chart-card-only .pv-chart-box{
    flex:1 1 0!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
  }
}

@media(min-width:1101px) and (max-height:760px){
  #pvFirstDashboard .pv-dash-title p,
  #pvFirstDashboard .pv-location-hero-copy em,
  #pvFirstDashboard .ges-v6-dashboard-finance-copy small,
  #pvFirstDashboard .pv-card-head p{
    display:none!important;
  }

  /* kısa ekranda finans şeridi kompakt kalsın (açıklama gizli) */
  #pvFirstDashboard .ges-v6-dashboard-finance-state{
    height:50px!important;
    min-height:50px!important;
    max-height:50px!important;
  }

  #pvFirstDashboard .pv-live-card{
    min-height:64px!important;
  }
}

/* One plant title: the full-width tile is the plant selector. */
#pvFirstDashboard .pv-dash-head{
  display:none!important;
}

#pvFirstDashboard .pv-plant-location-hero{
  width:100%!important;
  min-height:64px!important;
  margin:0!important;
  padding:9px 13px!important;
  grid-template-columns:auto minmax(0,1fr) auto!important;
  border-color:rgba(247,184,45,.48)!important;
  border-radius:15px!important;
  background:
    linear-gradient(
      100deg,
      rgba(247,184,45,.12),
      rgba(56,139,253,.075)
    )!important;
  box-shadow:0 8px 22px rgba(2,15,31,.08)!important;
}

#pvFirstDashboard .pv-plant-location-hero:hover,
#pvFirstDashboard .pv-plant-location-hero:focus-visible{
  transform:none!important;
  border-color:rgba(247,184,45,.80)!important;
  box-shadow:0 10px 28px rgba(2,15,31,.15)!important;
  outline:none;
}

#pvFirstDashboard .pv-location-hero-icon{
  width:42px!important;
  height:42px!important;
}

#pvFirstDashboard .pv-location-hero-copy small{
  font-size:11px!important;
  letter-spacing:.10em!important;
}

#pvFirstDashboard .pv-location-hero-copy strong{
  margin-top:3px!important;
  font-size:clamp(21px,2vw,29px)!important;
  line-height:1.08!important;
  letter-spacing:-.025em!important;
}

#pvFirstDashboard .pv-location-hero-copy em{
  display:none!important;
}

#pvFirstDashboard .pv-location-hero-action{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:50px!important;
  height:50px!important;
  min-height:50px!important;
  padding:0!important;
  border:1px solid rgba(56,139,253,.32)!important;
  border-radius:15px!important;
  background:rgba(56,139,253,.12)!important;
  color:#388bfd!important;
  font-size:26px!important;
  font-weight:700!important;
  line-height:1!important;
  animation:gesV6PlantSwitch 2.6s ease-in-out infinite!important;
}

#pvFirstDashboard .pv-plant-location-hero:hover .pv-location-hero-action,
#pvFirstDashboard .pv-plant-location-hero:focus-visible .pv-location-hero-action{
  background:rgba(56,139,253,.22)!important;
  border-color:rgba(56,139,253,.62)!important;
  transform:scale(1.07)!important;
  animation-play-state:paused!important;
}

@keyframes gesV6PlantSwitch{
  0%,100%{transform:scale(1)}
  50%{transform:scale(1.09)}
}

#pvFirstDashboard .pv-location-hero-icon svg{
  width:62%!important;
  height:62%!important;
}

@media(min-width:1101px){
  #pvFirstDashboard.ges-v6-view-active{
    display:flex!important;
    flex-direction:column!important;
  }

  #pvFirstDashboard .pv-main-grid-step2{
    flex:1 1 0!important;
  }
}

@media(max-width:720px){
  #pvFirstDashboard .pv-plant-location-hero{
    min-height:58px!important;
    padding:8px 10px!important;
  }

  #pvFirstDashboard .pv-location-hero-copy strong{
    font-size:17px!important;
  }

  #pvFirstDashboard .pv-location-hero-action span{
    display:none;
  }

  #pvFirstDashboard .pv-location-hero-action{
    min-height:34px!important;
    padding:6px 9px!important;
  }
}

/* ───────────── Filo geneli (Tüm Tesisler) + Tesis Karşılaştırma ───────────── */
.pv-fleet-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:14px}
.pv-fleet-kicker{display:block;font-size:11px;font-weight:900;letter-spacing:.1em;color:var(--gold,#f7b82d)}
.pv-fleet-head h2{margin:4px 0 2px;font-size:20px}
.pv-fleet-head p{margin:0;color:var(--muted);font-size:12px;max-width:600px}
.pv-fleet-actions{display:flex;gap:8px;align-items:center}
.pv-fleet-search{min-width:210px;height:36px;padding:0 12px;border-radius:10px;border:1px solid var(--line);background:rgba(255,255,255,.04);color:var(--text);font-size:13px}
.pv-fleet-search::placeholder{color:var(--muted)}
.pv-fleet-btn{height:36px;padding:0 14px;border-radius:10px;border:1px solid rgba(56,139,253,.35);background:rgba(56,139,253,.14);color:var(--text);font-weight:700;font-size:12px;cursor:pointer}
.pv-fleet-btn:hover{background:rgba(56,139,253,.22)}

.pv-fleet-stats{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin-bottom:14px}
.pv-fleet-stat{padding:9px 11px;border-radius:11px;border:1px solid var(--line);background:rgba(255,255,255,.03);display:flex;flex-direction:column;gap:3px}
.pv-fleet-stat span{font-size:10px;font-weight:700;color:var(--muted);letter-spacing:.02em}
.pv-fleet-stat strong{font-size:16px;font-weight:800;color:var(--text)}
.pv-fleet-stat.ok strong{color:var(--green,#52d689)}
.pv-fleet-stat.bad strong{color:#ff6b6b}
.pv-fleet-stat.off strong{color:#9bb0c6}

.pv-fleet-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:13px;max-height:calc(100vh - 330px)}
.pv-fleet-table{width:100%;border-collapse:collapse;font-size:12.5px;min-width:940px}
.pv-fleet-table thead th{position:sticky;top:0;z-index:1;background:var(--surface,#0d1f33);text-align:left;padding:10px 12px;font-size:11px;font-weight:800;color:var(--muted);letter-spacing:.02em;border-bottom:1px solid var(--line);cursor:pointer;white-space:nowrap;user-select:none}
.pv-fleet-table thead th.num{text-align:right}
.pv-fleet-table thead th:hover{color:var(--text)}
.pv-fleet-table thead th.active{color:var(--gold,#f7b82d)}
.pv-fleet-table tbody td{padding:9px 12px;border-bottom:1px solid rgba(255,255,255,.05);white-space:nowrap}
.pv-fleet-table tbody td.num{text-align:right;font-variant-numeric:tabular-nums}
.pv-fleet-table tbody tr{cursor:pointer;transition:background .12s}
.pv-fleet-table tbody tr:hover{background:rgba(56,139,253,.1)}
.pv-fleet-name{font-weight:700;color:var(--text)}
.pv-fleet-empty{text-align:center;color:var(--muted);padding:24px}
.pv-fleet-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:7px;vertical-align:middle;background:#9bb0c6}
.pv-fleet-dot.ok{background:var(--green,#52d689);box-shadow:0 0 8px rgba(82,214,137,.55)}
.pv-fleet-dot.bad{background:#ff5c5c;box-shadow:0 0 8px rgba(255,92,92,.55)}
.pv-fleet-dot.off{background:#8aa0b6}

.pv-compare-layout{display:grid;grid-template-columns:288px minmax(0,1fr);gap:16px;align-items:start}
.pv-compare-picker{border:1px solid var(--line);border-radius:13px;padding:10px;background:rgba(255,255,255,.02)}
.pv-compare-list{margin-top:8px;max-height:calc(100vh - 330px);overflow:auto;display:flex;flex-direction:column;gap:2px}
.pv-compare-item{display:flex;align-items:center;gap:8px;padding:7px 9px;border-radius:9px;cursor:pointer;font-size:12.5px;border:1px solid transparent}
.pv-compare-item:hover{background:rgba(255,255,255,.05)}
.pv-compare-item.on{background:rgba(247,184,45,.12);border-color:rgba(247,184,45,.3)}
.pv-compare-item input{accent-color:var(--gold,#f7b82d);flex:0 0 auto}
.pv-compare-item-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pv-compare-empty{padding:46px 20px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:13px}
.pv-compare-table td,.pv-compare-table th{min-width:130px}
.pv-compare-table tbody td:first-child,.pv-compare-table thead th:first-child{position:sticky;left:0;background:var(--surface,#0d1f33);font-weight:700;color:var(--text);text-align:left;z-index:1}
.pv-compare-table td.best{color:var(--green,#52d689);font-weight:800;background:rgba(82,214,137,.08)}
.pv-compare-table tbody tr{cursor:default}
.pv-compare-table tbody tr:hover{background:transparent}

.pv-compare-chart{margin-bottom:14px;border:1px solid var(--line);border-radius:13px;padding:12px 14px;background:rgba(255,255,255,.02)}
.pv-compare-chart-head{display:flex;align-items:center;gap:8px;margin-bottom:10px;font-size:12px;color:var(--muted)}
.pv-compare-chart-head select{height:30px;border-radius:8px;border:1px solid var(--line);background:rgba(255,255,255,.05);color:var(--text);font-size:12px;padding:0 8px}
.pv-compare-bars{display:flex;flex-direction:column;gap:8px}
.pv-compare-bar-row{display:grid;grid-template-columns:170px minmax(0,1fr) 130px;align-items:center;gap:10px;font-size:12px}
.pv-compare-bar-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}
.pv-compare-bar-track{height:14px;border-radius:7px;background:rgba(255,255,255,.06);overflow:hidden}
.pv-compare-bar-fill{display:block;height:100%;border-radius:7px;background:linear-gradient(90deg,rgba(247,184,45,.9),rgba(56,139,253,.8))}
.pv-compare-bar-val{text-align:right;font-variant-numeric:tabular-nums;color:var(--text)}

@media(max-width:980px){
  .pv-fleet-stats{grid-template-columns:repeat(3,1fr)}
  .pv-compare-layout{grid-template-columns:1fr}
  .pv-compare-bar-row{grid-template-columns:110px minmax(0,1fr) 92px}
}

/* Ayrı alt menü bölümü (Tüm Tesisler · Alarm Merkezi · Karşılaştır) — Admin altında */
.ges-v6-nav-bottom{
  display:flex;
  flex-direction:column;
  gap:7px;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.12);
}
.ges-v6-nav-bottom-label,
.ges-v6-nav-label{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:10.5px;
  font-weight:900;
  letter-spacing:.13em;
  text-transform:uppercase;
  padding:2px 6px 9px;
}
.ges-v6-nav-bottom-label::before,
.ges-v6-nav-label::before{
  content:"";
  flex:0 0 auto;
  width:16px;
  height:3px;
  border-radius:3px;
  background:currentColor;
  box-shadow:0 0 8px currentColor;
}
/* SEÇİLİ TESİS = altın (aktif tesis bağlamı) */
.ges-v6-nav-label{
  color:var(--gold,#f7b82d);
  padding-top:4px;
}
/* PORTFÖYÜMÜZ = mavi (tüm filo) */
.ges-v6-nav-bottom-label{
  color:#5fa1ff;
}
/* Admin: en altta kendi ayrı bölümünde */
.ges-v6-nav-admin{
  display:flex;
  flex-direction:column;
  gap:7px;
  margin-top:10px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.12);
}

/* Dashboard enerji akışı: emoji yerine 3D ikon görselleri */
.pv-flow-node .pv-flow-img{
  width:52px;
  height:52px;
  object-fit:contain;
  display:block;
  margin:0 auto 2px;
  filter:drop-shadow(0 4px 7px rgba(0,0,0,.28));
}

/* Filo tablosu: tesis adı satır içinde sola hizalı */
.pv-fleet-table thead th:nth-child(2),
.pv-fleet-table tbody td.pv-fleet-name{
  text-align:left!important;
}

/* Filo tablosu: manuel kapasite girişi */
.pv-fleet-cap{cursor:pointer;position:relative}
.pv-fleet-cap .pv-fleet-cap-edit{opacity:0;margin-left:6px;color:var(--gold,#f7b82d);font-size:11px;transition:opacity .12s}
.pv-fleet-cap:hover{background:rgba(247,184,45,.08)}
.pv-fleet-cap:hover .pv-fleet-cap-edit{opacity:.9}
.pv-fleet-cap.is-manual{color:var(--gold,#f7b82d);font-weight:700}
.pv-fleet-cap-input{width:84px;height:26px;padding:0 6px;border-radius:7px;border:1px solid rgba(247,184,45,.55);background:rgba(0,0,0,.35);color:var(--text);font-size:12px;text-align:right}

/* Finans şeridi belirgin (panelde kaybolmasın) + okunaklı terimler */
#pvFirstDashboard .ges-v6-dashboard-finance-state{
  border-width:1.5px!important;
  border-color:rgba(247,184,45,.5)!important;
  background:linear-gradient(135deg,rgba(247,184,45,.12),rgba(56,139,253,.05))!important;
  box-shadow:0 12px 28px rgba(0,0,0,.32),inset 4px 0 0 var(--gold,#f7b82d)!important;
}
#pvFirstDashboard .ges-v6-dashboard-finance-state.is-ready{
  border-color:rgba(82,214,137,.55)!important;
  background:linear-gradient(135deg,rgba(82,214,137,.14),rgba(56,139,253,.05))!important;
  box-shadow:0 12px 28px rgba(0,0,0,.32),inset 4px 0 0 var(--green,#52d689)!important;
}
.ges-v6-dashboard-finance-kicker{
  color:var(--gold,#f7b82d)!important;
  font-weight:900!important;
  letter-spacing:.08em;
}
.ges-v6-dashboard-finance-state.is-ready .ges-v6-dashboard-finance-kicker{
  color:var(--green,#52d689)!important;
}
.ges-v6-dashboard-finance-kpis>div{cursor:help}
.ges-v6-dashboard-finance-kpis span{font-weight:800}
.ges-v6-dashboard-finance-kpis strong{font-size:16px}
.ges-v6-dashboard-finance-kpis strong.is-negative{color:#ff6b6b!important}

/* Grafik başlığındaki dönem seçici (topbar ile aynı işlev) */
.pv-card-head-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.pv-period-tabs--chart button{font-size:11px!important;padding:5px 11px!important;min-height:0!important}

/* Eski "CANLI TESİS GÖRÜNÜMÜ" paneli v6'da kullanılmaz; menülerin üstüne
   taşmasını önlemek için gizli tutulur (v6'nın kendi görünümleri var). */
#livePlantPanel{display:none!important}

/* Sidebar: kenar çubuğu yeri ayrılmaz; logo afişi ve menü tam (simetrik) menü
   genişliğini kaplasın. İçerik ekrana sığdığı için kaydırma çubuğu çıkmaz.
   Çıkması gerekirse ince bir overlay çubuk gösterilir (içeriği itmez). */
.sidebar{scrollbar-gutter:auto!important}
.sidebar::-webkit-scrollbar{width:7px}
.sidebar::-webkit-scrollbar-thumb{background:rgba(255,255,255,.14);border-radius:7px}
.sidebar::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.24)}
.sidebar::-webkit-scrollbar-track{background:transparent}
/* biraz daha kompakt: daha çok ekrana sığsın */
.nav{gap:6px!important}
.ges-v6-nav .nav-link{min-height:39px!important}
.ges-v6-nav-bottom{margin-top:9px!important;padding-top:9px!important}
.ges-v6-nav-admin{margin-top:8px!important;padding-top:9px!important}

/* ── AYLIK MALİ ÖZET: başlık satırı + 3 ayrı, yüksek, okunaklı kachel ── */
#pvFirstDashboard .ges-v6-dashboard-finance-state{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:10px!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  padding:12px 15px!important;
  align-self:stretch!important;
}
.ges-v6-finance-summary-head{
  display:flex;
  align-items:center;
  gap:12px;
}
.ges-v6-finance-summary-head .ges-v6-dashboard-finance-copy{flex:1 1 auto;min-width:0}
.ges-v6-finance-summary-head .ges-v6-dashboard-finance-action{flex:0 0 auto}

#pvFirstDashboard .ges-v6-dashboard-finance-kpis:not(.hidden){
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  align-items:stretch!important;
}
#pvFirstDashboard .ges-v6-dashboard-finance-kpis>div{
  display:flex!important;
  flex-direction:column;
  justify-content:center;
  gap:6px;
  min-height:64px;
  padding:11px 14px;
  border-radius:12px;
  border:1px solid var(--line,rgba(255,255,255,.1));
  background:rgba(255,255,255,.04);
  white-space:normal;
}
#pvFirstDashboard .ges-v6-dashboard-finance-kpis>div span{
  font-size:11px;
  font-weight:700;
  line-height:1.25;
  letter-spacing:0;
  color:var(--muted);
  white-space:normal;
}
#pvFirstDashboard .ges-v6-dashboard-finance-kpis>div strong{
  font-size:19px;
  font-weight:800;
  line-height:1.1;
}
.ges-v6-dashboard-finance-state.is-ready .ges-v6-dashboard-finance-kpis>div{
  border-color:rgba(82,214,137,.28);
  background:rgba(82,214,137,.06);
}

/* Fiyat ve Tarife Ayarları (adım 3) tek ekrana sığsın: panel viewport'a
   sabitlenir, içerik gerekirse #wizStep3 içinde kayar (sayfa kaymaz). */
/* :not(.ges-v6-view-hidden) → başka görünümlerdeyken fiyat paneli gizli kalsın
   (aksi halde Finansal Analiz'in altında görünüyordu). */
#uploadPanel.wiz-step3-active:not(.ges-v6-view-hidden){
  height:auto!important;
  max-height:calc(100vh - 66px)!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
}
#uploadPanel.wiz-step3-active:not(.ges-v6-view-hidden) #wizStep3{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
}

/* Adım 3 içeriğini sıkılaştır (iç kaydırma azalsın) */
#uploadPanel.wiz-step3-active #wizStep3 .big-input{font-size:15px!important;padding:9px 12px!important}
#uploadPanel.wiz-step3-active #wizStep3 .input{padding:8px 10px!important}
#uploadPanel.wiz-step3-active #wizStep3 label{margin-top:8px}
#uploadPanel.wiz-step3-active #wizStep3 .price-box{padding:9px 11px!important;margin-top:7px!important}
#uploadPanel.wiz-step3-active #wizStep3 .method-row{margin-top:8px!important}
#uploadPanel.wiz-step3-active #wizStep3 h3{margin-bottom:4px!important}
#uploadPanel.wiz-step3-active #wizStep3>*{margin-bottom:8px}

/* Tarif girişinde mahsuplaşma/dağıtım önizleme kartları gösterilmez —
   bu sonuçlar Finansal Analiz sayfasında yer alır. */
#uploadPanel .distribution-flow,
#uploadPanel .distribution-results{display:none!important}

/* Tarif girişinde "Eksik alanlar var" / fiyat hatırlatma bilgi bloğu
   gösterilmez — zorunlu alanlar zaten kırmızı kenarlıkla işaretli. */
#uploadPanel #missingSummary,
#uploadPanel #priceInfo{display:none!important}

/* Fiyat sayfası tek ekrana sığsın: hazırlık çubuğu kompakt + footer sade */
#uploadPanel #gesV6PricingReadiness{padding:8px 12px!important;margin-top:8px!important;gap:10px!important}
#uploadPanel .ges-v6-pricing-readiness-head strong{font-size:12px!important}
#uploadPanel .ges-v6-pricing-readiness-head span{font-size:10px!important}
#uploadPanel #gesV6PricingReadiness .ges-v6-progress{height:5px!important;margin:5px 0!important}
#uploadPanel .ges-v6-required-chip{font-size:10px!important;padding:3px 8px!important}
#uploadPanel .ges-v6-pricing-readiness-side strong{font-size:11px!important}
#uploadPanel .ges-v6-pricing-readiness-side span{font-size:9.5px!important}
/* Footer: zorunlu alan listesi + yöntem/not kaldırılır, hesap butonu kalır */
#uploadPanel #wizActionStatus,
#uploadPanel #wizMethodFooter{display:none!important}

/* Kachel ⓘ bilgi butonu + üzerine gelince açıklama kutusu */
.ges-v6-finance-result-card,
.ges-v6-finance-kpi{position:relative;overflow:visible}
.ges-v6-finance-result-grid,
.ges-v6-finance-kpis{overflow:visible}
.ges-v6-kpi-info{
  position:absolute;top:9px;right:9px;
  width:19px;height:19px;border-radius:50%;
  border:1px solid var(--line,rgba(255,255,255,.18));
  background:rgba(255,255,255,.06);
  color:var(--muted);
  font-size:11px;font-weight:800;font-style:italic;font-family:Georgia,'Times New Roman',serif;
  line-height:1;cursor:help;display:grid;place-items:center;
  z-index:3;transition:color .12s,border-color .12s,background .12s;
}
.ges-v6-kpi-info:hover,.ges-v6-kpi-info:focus-visible{
  color:var(--text);border-color:var(--gold,#f7b82d);background:rgba(247,184,45,.14);outline:none;
}
.ges-v6-kpi-info::after{
  content:attr(data-info);
  position:absolute;top:128%;right:-4px;
  width:250px;max-width:62vw;
  padding:10px 12px;border-radius:11px;
  background:var(--surface,#0d1f33);
  border:1px solid var(--line-strong,rgba(255,255,255,.16));
  color:var(--text);
  font-size:11.5px;font-weight:500;font-style:normal;line-height:1.45;
  text-align:left;letter-spacing:0;
  box-shadow:0 16px 40px rgba(0,0,0,.5);
  opacity:0;visibility:hidden;transform:translateY(-5px);
  transition:opacity .14s,transform .14s;
  pointer-events:none;z-index:80;white-space:normal;
}
.ges-v6-kpi-info:hover::after,
.ges-v6-kpi-info:focus-visible::after{opacity:1;visibility:visible;transform:none}

/* Finansal Analiz başlığındaki dönem seçici */
.pv-period-tabs--finance{margin-right:8px}
.pv-period-tabs--finance button{font-size:11px!important;padding:5px 11px!important;min-height:0!important}

/* "Geri" butonu kaldırıldı: eski adımlara (veri kaynağı) artık gerek yok;
   sihirbaz seçili tesisle doğrudan fiyatlandırmaya geçiyor. */
#uploadPanel .wiz-back-btn{display:none!important}

/* === Anlık KPI şeridi: referans görsele uygun ikon + değer kartları ===
   Her kart: solda renkli ikon rozeti, sağda başlık + büyük kW değeri + alt not.
   Eski emoji etiketleri ve köşe parıltısı kaldırıldı; düz, okunaklı kartlar. */
.pv-live-strip{gap:12px!important}
.pv-live-strip .pv-live-card{
  display:flex!important;
  align-items:center!important;
  gap:13px!important;
  padding:14px 16px!important;
  min-height:0!important;
  background:var(--surface)!important;
  border:1px solid var(--line)!important;
  border-radius:16px!important;
  box-shadow:0 6px 18px rgba(15,32,52,.05)!important;
  overflow:visible!important;
}
.pv-live-strip .pv-live-card::after{display:none!important}
.pv-live-strip .pv-live-icon{
  flex:0 0 auto;
  width:42px;height:42px;
  display:grid;place-items:center;
  border-radius:13px;
  color:var(--ic,#3B82F6);
  background:color-mix(in srgb, var(--ic,#3B82F6) 14%, transparent);
}
.pv-live-strip .pv-live-icon svg{width:23px;height:23px;display:block}
.pv-live-strip .pv-live-body{min-width:0;display:flex;flex-direction:column;gap:2px}
.pv-live-strip .pv-live-card .pv-live-label{
  margin:0 0 1px!important;padding:0!important;
  color:var(--muted)!important;
  font-size:13px!important;font-weight:700!important;letter-spacing:.01em!important;
  display:block!important;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.pv-live-strip .pv-live-value{display:flex;align-items:baseline;gap:5px}
.pv-live-strip .pv-live-card .pv-live-value strong{
  margin:0!important;display:inline!important;
  font-size:clamp(22px,1.9vw,29px)!important;font-weight:800!important;
  letter-spacing:-.03em!important;line-height:1.05!important;color:var(--text)!important;
}
.pv-live-strip .pv-live-unit{font-size:12px;font-weight:700;color:var(--muted)}
.pv-live-strip .pv-live-card small{
  margin:0!important;
  color:var(--muted)!important;
  font-size:10px!important;line-height:1.3!important;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.pv-live-strip .pv-live-card.sun{--ic:#F5A524}
.pv-live-strip .pv-live-card.load{--ic:#3B82F6}
.pv-live-strip .pv-live-card.export{--ic:#22C55E}
.pv-live-strip .pv-live-card.import{--ic:#64748B}
html[data-theme="dark"] .pv-live-strip .pv-live-card.import{--ic:#94A3B8}
