.icon-yellow { color:rgb(250, 247, 63) !important; background: #fffbe2; }
.icon-bio   { color: var(--color-bio) !important; background: #e8f2d7; }
.icon-pv    { color: var(--color-pv) !important; background: #fffbe2; }
.icon-wind  { color: var(--color-wind) !important; background: #e0f0fa; }
.icon-all  { color: #060707 !important; background: #f3f3f3; }

.sankey-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin: 36px auto;
    padding: 0 0 32px 0;
    max-width: 1800px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.sankey-row.titles {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2.5rem 3vw 0 3vw;
    box-sizing: border-box;
}
.sankey-side-title {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--sankey-text-color);
    opacity: 0.95;

    max-width: 100%;
    word-break: break-word;
    line-height: 1.2;
    margin-left: auto;
    margin-right: auto;
    padding-left: 6px;
    padding-right: 6px;
}
.sankey-flow-area {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: stretch;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: none;
    padding-top: 30px;
}
.sankey-flow-svg-bg {
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.sankey-col-side {
    width: 300px;
    min-width: 210px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    position: relative;
    padding: 0;
    box-sizing: border-box;
    height: 100%;
}
.sankey-col-side.left {
    align-items: flex-end;
}
.sankey-col-side.right {
    align-items: flex-start;
}
.sankey-col-center {
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    height: 100%;
}
.sankey-icon-label {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2.4rem;
    background: none;
    z-index: 2;
    font-size: 1.25rem;
    color: var(--sankey-text-color);
}
.sankey-icon-label i {
    font-size: var(--icon-size);
    /*color: var(--icon-color);*/
    min-width: 2.7rem;
    text-align: center;
    opacity: 0.95;
}
.sankey-label {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--sankey-text-color);
    opacity: 0.95;
}
.sankey-desc {
    font-size: 1.08rem;
    text-align: center;
    display: block;
    color: var(--sankey-info-color);
    font-weight: 500;
}
.infobox-desc{
    font-size: 1.08rem;
    text-align: center;
    display: block;
    color: var(--infobox-text-color-desc);
    font-weight: 500;
}
.sankey-highlight-label {
    font-size: 1.17rem;
    font-weight: 500;
    color: var(--sankey-highlight-label);
    margin: 2.0rem 0 0.7rem 0;
}
.sankey-center-circle {
    width: 330px;
    height: 330px;
    border-radius: 50%;
    border: 10px solid var(--brand);
    box-shadow: 0 0 0 8px var(--sankey-flow-inner), 0 0 32px var(--sankey-flow-outer);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    font-weight: bold;
    margin: 0 auto;
    position: relative;
    background: var(--bg-widget);
    z-index: 3;
    color: var(--brand);
    transition: width 0.25s, height 0.25s, border-width 0.2s;
}
.sankey-center-circle-inner {
    width: 90%;
    text-align: center;
    color: var(--sankey-info-color);
    /*text-shadow: 0 0 12px var(--sankey-inner-circle-text), 0 0 1px var(--sankey-flow-color);*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.sankey-center-circle-inner .sankey-time {
    font-size: 1.31rem;
    font-weight: 400;
}
.sankey-center-circle-inner .sankey-pct {
    font-size: 4rem;
    font-weight: 700;
    margin: .7rem 0 .3rem 0;
    color: var(--sankey-inner-circle-text);
    /*text-shadow: 0 0 22px var(--sankey-flow-color), 0 0 1px var(--sankey-inner-circle-text);*/
    letter-spacing: 0.02em;
}

.sankey-center-circle-inner .sankey-desc-main {
    font-size: 1.3rem;
    font-weight: 400;
    color:  var(--sankey-info-color);
}
.sankey-amount-label {
    color: var(--sankey-highlight-label);
    font-size: 1.22rem;
    font-weight: 500;
    margin-top: 2.2rem;
    margin-bottom: 0.8rem;
    text-align: center;
    z-index: 4;
    position: relative;
    letter-spacing: 0.01em;
}
.sankey-side-bottom-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 6vw 0.5rem 6vw;
    box-sizing: border-box;
    margin-top: 1.2rem;
}
.sankey-side-bottom-row .sankey-highlight-label {
    margin: 0;
    font-size: 1.15rem;
}
.sankey-info-grid {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin: 2.2rem 0 0 0;
    padding: 0 0.7vw;
}
.sankey-info-box {
    flex: 1 1 0;
    background: var(--infobox-bg);
    border-radius: 20px;
    padding: 2.1rem 1.6rem 1.7rem 1.6rem;
    color: var(--sankey-text-color);
    font-size: 1.21rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /*box-shadow: 0 4px 18px #0002;*/
    min-width: 180px;
    min-height: 240px;
    transition: box-shadow .18s, transform .14s;
}
.sankey-info-box span {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--sankey-text-color);
    opacity: 0.98;
}
.sankey-info-box .desc {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--sankey-text-color);
    margin-top: 0.3rem;
}

/*.sankey-info-box:hover {
  box-shadow: 0 10px 34px #0005;
  transform: translateY(-5px) scale(1.025);
}*/
.sankey-footer {
    width: 100%;
    text-align: center;
    font-size: 1.25rem;
    color: var(--sankey-text-color);
    opacity: 0.85;
    /*margin: 1.8rem 0 0.5rem 0;*/
    letter-spacing: 0.01em;
    font-weight: 500;  
    line-height: 1.6;
}

svg.path.flow, svg path.flow {
    stroke: var(--brand);
    fill: none;
    stroke-dasharray: 16;
    stroke-linecap: round;
    animation: dash 2s linear infinite;
    filter: drop-shadow(0 0 10px var(--brand));
    opacity: 0.93;
}

.info-box-hyper {
  width: 100%;
  min-height: 220px;
  border-radius: 24px;
  box-shadow: 0 2px 16px #0002;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s cubic-bezier(.4,2,.6,1), box-shadow 0.18s cubic-bezier(.4,2,.6,1);
  padding: 2em 1em 1.4em 1em;
  position: relative;
  margin: 0;
  gap: 0.2em;
  background-size: 200% 200%;
  background-position: left top;
}
.info-box-hyper:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 6px 22px 0 #0004;
}

.iconbox {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1em;
  margin-bottom: 0.45em;
  box-shadow: 0 2px 8px #0002;
  background: rgba(255,255,255,0.11);
}
.infoval {
  font-size: 2rem;
  font-weight: bold;
  color: var(--sankey-text-color);
  letter-spacing: 0.01em;
  margin-bottom: 0.5em;
  min-height: 2.2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.infotext {
  font-size: 1.09em;
  color: #1b263b;
  opacity: 0.95;
  text-align: center;
  line-height: 1.35;
  font-weight: 400;
}

.sankey-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 12px #0001;
  font-size: 2.2rem;
  margin-bottom: 0.6em;
}

.sankey-value {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 0.3em;
  color: var(--sankey-text-color);
}

.header-fluid{
  padding: 0px 36px 0px 36px; 
  margin-inline: 48px; 
  max-width: 1800px;
}


@keyframes dash {
    to { stroke-dashoffset: -32; }
}

@media (max-width: 575px) {
  .sankey-center-circle {
        width: 90vw;
        height: 90vw;
        min-width: 80px;
        min-height: 80px;
        border-width: 4px;
    }
    .sankey-center-circle-inner .sankey-pct { font-size: 1.05rem; }
    .sankey-amount-label { font-size: 0.89rem; }
  .sankey-info-box { min-height: 120px; }
  .sankey-icon { width: 32px; height: 32px; font-size: 1.1rem; }
  .sankey-value { font-size: 1rem; }
  .container-fluid {padding-left: 0px;}
}

@media (max-width: 767px) {
  .sankey-card .sankey-flow-area {
    flex-direction: column !important;
    align-items: stretch !important;
    flex-wrap: wrap !important;
  }
  .sankey-center-circle {
        width: 80vw;
        height: 80vw;
        min-width: 120px;
        min-height: 120px;
        max-width: 330px;
        max-height: 330px;
        border-width: 6px;
    }
    .sankey-center-circle-inner .sankey-time { font-size: 1.02rem; }
    .sankey-center-circle-inner .sankey-pct { font-size: 1.35rem; }
    .sankey-desc-main { font-size: 0.95rem; }
    .sankey-amount-label { font-size: 0.98rem; }
  .sankey-col-side,
  .sankey-col-center {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    align-items: center !important;
    text-align: center;
  }
  .sankey-col-side.left .d-flex,
  .sankey-col-side.right .d-flex {
    flex-direction: column !important;
    align-items: center !important;
  }
  .info-box-hyper {
    min-height: 120px;
    padding: 1em 0.1em 0.7em 0.1em;
  }
  .infoval { font-size: 1.24rem; }
  .container-fluid {
    padding-left: 0px;
    padding-right: 0px;
  }
}

@media (max-width: 600px) {
  .sankey-side-title {
    font-size: 0.9rem;
    padding-left: 2px;
    padding-right: 2px;
  }
}

@media (max-width: 900px) {
    .sankey-card, .chart-card { padding: 8px !important; }
    .sankey-col-side { width: 110px; min-width: 60px; }
    .sankey-center-circle { width: 90px; height: 90px; border-width: 5px;}
    .sankey-side-title, .chart-title { font-size:1.02rem;}
    .sankey-icon-label { font-size: .82rem;}
    .sankey-info-box { font-size: .97rem; }
    .sankey-flow-area{padding-top: 0px;}
}

@media (max-width: 1350px) {
  .sankey-center-circle { width: 160px; height: 160px; border-width: 7px; }
  .sankey-center-circle-inner .sankey-pct { font-size: 2.1rem; }
  .sankey-desc-main { font-size: 1.04rem; }
  .sankey-info-box { min-height: 170px; padding: 1.2em 0.6em 1em 0.6em;}
  .sankey-icon { width: 40px; height: 40px; font-size: 1.3rem; }
  .sankey-value { font-size: 1.4rem; }
  .info-box-hyper {
    min-height: 170px;
    padding: 1.2em 0.3em 1em 0.3em;
  }
}

@media (max-width: 1600px) {
    .sankey-col-side { width: 210px; min-width: 105px; }
    .sankey-center-circle { width: 220px; height: 220px; border-width: 8px; }
    .sankey-center-circle-inner .sankey-pct { font-size: 2.7rem; }
    .sankey-side-title, .chart-title { font-size:1.4rem;}
    .sankey-info-box { font-size: 1.1rem; }
}
@media (min-width: 1050px) {
  .sankey-flow-area {
    flex-wrap: nowrap !important;
  }
}

.sankey-net-feed .sankey-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.sankey-net-feed .arrow-down {
  font-size: .5rem;
  color: #7a869a;
  opacity: 0.7;
  animation: arrowDownAnim 1.2s infinite;
}

.sankey-net-feed .arrow-down:nth-child(2) {
  animation-delay: 0.2s;
}
.sankey-net-feed .arrow-down:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes arrowDownAnim {
  0%   { opacity: 0.2; transform: translateY(-5px);}
  50%  { opacity: 1;   transform: translateY(5px);}
  100% { opacity: 0.2; transform: translateY(-5px);}
}

