/* Rendimento Strutturato · giro 6 · stili dei grafici riusabili (pages/grafici-comuni.js). Prefisso gc-. */

/* ---------- RS.GraficoPeggiore: righe come il vecchio G.04, una linea per riga ---------- */
.gc-pg{--gc-cols:minmax(180px,250px) minmax(0,1fr) 104px;--gc-h:38px}
.gc-pg--c{--gc-cols:minmax(130px,170px) minmax(0,1fr) 88px;--gc-h:28px}
.gc-head,.gc-row{display:grid;grid-template-columns:var(--gc-cols);gap:16px;align-items:center}
.gc-head{padding:0 8px 8px;color:var(--rs-text-3)}
.gc-h3{text-align:right}
.gc-axis{position:relative;height:16px;border-bottom:1px solid var(--rs-hair)}
.gc-ax-in{position:absolute;inset:0 var(--gc-z,0px) 0 0}
.gc-axis span{position:absolute;top:0;transform:translateX(-50%)}
.gc-axis .gc-ax-z{right:0;width:var(--gc-z,0px);transform:none;text-align:center;color:var(--rs-text-2)}
/* prova di ribasso (opzione ribasso) */
.gc-rb{display:grid;gap:10px;margin:0 8px 18px}
.gc-rb-c{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px}
.gc-rb-l{display:flex;gap:10px;align-items:baseline;flex:1 1 260px;justify-content:space-between}
.gc-rb-l output{font:500 15px/1 var(--rs-f-mono);font-variant-numeric:tabular-nums;color:var(--rs-text)}
.gc-rb-r{flex:1 1 220px;-webkit-appearance:none;appearance:none;height:28px;margin:0;background:transparent;cursor:pointer;touch-action:pan-y}
.gc-rb-r::-webkit-slider-runnable-track{height:4px;border-radius:4px;background:linear-gradient(90deg,#2BE4C8,#7CCBFF 18%,#4F8EF7 34%,#3D5BF5 46%,#F2E3B3 58%,#F4A7B9 72%,#E25472 86%,#A01E2E)}
.gc-rb-r::-moz-range-track{height:4px;border-radius:4px;background:linear-gradient(90deg,#2BE4C8,#7CCBFF 18%,#4F8EF7 34%,#3D5BF5 46%,#F2E3B3 58%,#F4A7B9 72%,#E25472 86%,#A01E2E)}
.gc-rb-r::-webkit-slider-thumb{-webkit-appearance:none;width:22px;height:22px;margin-top:-9px;border-radius:50%;background:var(--rs-text);box-shadow:0 0 0 4px rgba(91,118,255,.35),0 4px 14px rgba(0,0,0,.5);transition:transform 160ms var(--rs-out)}
.gc-rb-r::-moz-range-thumb{width:22px;height:22px;border:0;border-radius:50%;background:var(--rs-text);box-shadow:0 0 0 4px rgba(91,118,255,.35)}
.gc-rb-r:active::-webkit-slider-thumb{transform:scale(1.15)}
.gc-rb-r:focus-visible{outline:2px solid var(--rs-ice);outline-offset:4px;border-radius:6px}
.gc-rb-k{display:flex;gap:6px}
.gc-rb-k button{font:500 13px/1 var(--rs-f-mono);font-variant-numeric:tabular-nums;color:var(--rs-text-2);padding:9px 12px;min-height:36px;border-radius:999px;border:1px solid var(--rs-hair);background:transparent;cursor:pointer;transition:transform 140ms var(--rs-out),opacity 140ms}
.gc-rb-k button:active{transform:scale(.95)}
.gc-rb-k button[aria-pressed="true"]{color:var(--rs-night);background:var(--rs-text);border-color:var(--rs-text)}
@media (hover:hover) and (pointer:fine){.gc-rb-k button:hover{color:var(--rs-text)}}
.gc-rb-k button:focus-visible{outline:2px solid var(--rs-ice);outline-offset:2px}
.gc-rb-s{font-size:14px;color:var(--rs-text-2);min-height:20px}
.gc-rb-s b{font-weight:500;color:var(--rs-text);font-variant-numeric:tabular-nums}
.gc-rb-s b.neg{color:var(--rs-neg)}
.gc-row{padding:7px 8px;border-radius:10px;border-top:1px solid var(--rs-hair)}
.gc-list .gc-row:first-child{border-top:0}
@media (hover:hover) and (pointer:fine){.gc-row:hover{background:rgba(238,234,225,.04)}}
.gc-name{font-size:14px;line-height:1.25;min-width:0}
.gc-name a{color:var(--rs-text);text-decoration:none}
.gc-name a b{font:500 13.5px/1.25 var(--rs-f-mono);font-variant-numeric:tabular-nums}
@media (hover:hover) and (pointer:fine){.gc-name a:hover b{text-decoration:underline;text-underline-offset:3px}}
.gc-em{color:var(--rs-text-2)}
.gc-sub{display:block;font:12px/1.3 var(--rs-f-mono);color:var(--rs-text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gc-sott{font:inherit;color:var(--rs-text-2);text-decoration:underline dotted;text-underline-offset:3px;cursor:pointer;padding:4px 0;margin:-4px 0}
@media (hover:hover) and (pointer:fine){.gc-sott:hover{color:var(--rs-text)}}
.gc-line{display:block;width:100%;height:var(--gc-h);cursor:crosshair;touch-action:pan-y}
.gc-none{color:var(--rs-text-3);height:var(--gc-h);display:flex;align-items:center}
.gc-val{text-align:right;font-family:var(--rs-f-mono);font-variant-numeric:tabular-nums;white-space:nowrap}
.gc-val b{display:block;font-weight:500;font-size:15px;line-height:1.15}
.gc-val span{font-size:12px;color:var(--rs-text-3)}
.gc-val span.neg{color:var(--rs-neg)}
.gc-pg--c .gc-em{display:none}
.gc-pg--c .gc-val b{font-size:14px}
.gc-key{display:flex;flex-wrap:wrap;justify-content:center;text-align:center;align-items:center;gap:6px 10px;margin-top:14px;padding:0 8px}
.gc-key i{position:relative;display:block;width:150px;height:4px;border-radius:2px}
.gc-key i b{position:absolute;top:-4px;width:1px;height:12px;background:var(--rs-text-2)}
.gc-key em{font-style:normal;color:var(--rs-text-3)}
@media (max-width:700px){
  .gc-head,.gc-row{grid-template-columns:minmax(0,1fr) 92px;gap:4px 10px}
  .gc-line,.gc-none,.gc-axis{grid-column:1/-1;grid-row:2}
  .gc-head .gc-h1,.gc-head .gc-h3{display:none}
  .gc-head{grid-template-columns:1fr}
  .gc-pg{--gc-h:34px}
}

/* ---------- RS.GraficoCedole: barre + cumulato su asse destro ---------- */
.gc-cp-h{display:flex;flex-wrap:wrap;justify-content:center;text-align:center;align-items:baseline;gap:8px 20px;margin-bottom:12px}
.gc-cp-leg{justify-content:center;align-items:center;gap:6px 16px}
.gc-cp-leg .k{display:inline-flex;align-items:center;gap:7px}
.gc-cp-leg i.sw{width:10px;height:10px;border-radius:2px;background:var(--rs-u1)}
.gc-cp-leg i.sw.ln{height:2px;width:18px;background:var(--rs-u2)}
.gc-read{color:var(--rs-text-2);min-height:18px}
.gc-read b{font-weight:500;color:var(--rs-text)}
.gc-cp-cv{display:block;width:100%;cursor:crosshair;border-radius:8px;outline:none}
.gc-cp-cv:focus-visible{box-shadow:0 0 0 2px var(--rs-ice)}
.gc-cp-na{margin-top:10px}
.gc-sott .rs-ico,.gs-k .rs-ico{width:14px;height:14px;vertical-align:-2px;margin-right:5px}
