.cipcs-report-enhanced{
  --cipcs-card-shadow:0 18px 48px rgba(6,47,87,.09);
  --cipcs-card-shadow-hover:0 24px 60px rgba(6,47,87,.13);
}

.cipcs-report-enhanced section{
  position:relative;
  overflow:hidden;
  border-color:#d5e5f1!important;
  background:linear-gradient(145deg,#ffffff 0%,#fbfdff 62%,#f4f9fd 100%)!important;
  box-shadow:var(--cipcs-card-shadow)!important;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}

.cipcs-report-enhanced section:before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  background:linear-gradient(180deg,#0d5fa7,#16a0dc 55%,#54c4ec);
}

.cipcs-report-enhanced section:hover{
  transform:translateY(-2px);
  box-shadow:var(--cipcs-card-shadow-hover)!important;
  border-color:#bdd9eb!important;
}

.cipcs-report-enhanced section h2{
  display:flex;
  align-items:center;
  gap:11px;
  font-size:clamp(1.35rem,2.4vw,1.62rem)!important;
}

.cipcs-report-enhanced section>h2:before{
  content:"";
  flex:0 0 auto;
  width:10px;
  height:10px;
  border-radius:50%;
  background:linear-gradient(135deg,#0d5fa7,#54c4ec);
  box-shadow:0 0 0 6px rgba(22,160,220,.10);
}

.cipcs-report-enhanced .cipcs-kpis>div{
  border-color:#d6e6f1;
  background:linear-gradient(145deg,#fff,#f3f8fc);
  box-shadow:0 10px 28px rgba(7,62,102,.06);
  transition:transform .18s ease,box-shadow .18s ease;
}

.cipcs-report-enhanced .cipcs-kpis>div:hover{
  transform:translateY(-3px);
  box-shadow:0 16px 34px rgba(7,62,102,.11);
}

.cipcs-report-enhanced .cipcs-bar-row{
  border:1px solid #e1ebf3;
  background:linear-gradient(180deg,#fff,#f7fbfe);
  box-shadow:0 5px 16px rgba(7,61,101,.035);
}

.cipcs-report-enhanced .cipcs-track{
  height:12px;
  background:#e6eef5;
}

.cipcs-report-enhanced .cipcs-track i{
  position:relative;
  background:linear-gradient(90deg,#0b4f87 0%,#149bd7 55%,#54c4ec 100%)!important;
  box-shadow:0 3px 9px rgba(20,155,215,.24);
}

.cipcs-report-enhanced .cipcs-pie-card,
.cipcs-report-enhanced .cipcs-donut-card{
  border-color:#d3e3ef!important;
  background:
    radial-gradient(circle at 12% 12%,rgba(84,196,236,.13),transparent 38%),
    linear-gradient(145deg,#ffffff,#f4f9fd)!important;
  box-shadow:0 15px 38px rgba(7,62,102,.08)!important;
}

.cipcs-report-enhanced .cipcs-pie,
.cipcs-report-enhanced .cipcs-donut{
  filter:drop-shadow(0 12px 20px rgba(6,47,87,.12));
}

/* Niente scrollbar nelle legende e niente ellissi tipo "M..." o "Ca..." */
.cipcs-report-enhanced .cipcs-pie-legend{
  max-height:none!important;
  overflow:visible!important;
  padding:0!important;
  gap:8px!important;
}

.cipcs-report-enhanced .cipcs-pie-legend>div,
.cipcs-report-enhanced .cipcs-donut-legend>div{
  grid-template-columns:12px minmax(80px,1fr) auto!important;
  min-width:0;
  padding:10px 12px!important;
  border-color:#dfe9f1!important;
  border-radius:13px!important;
  background:rgba(255,255,255,.92)!important;
  box-shadow:0 4px 12px rgba(7,59,98,.035);
}

.cipcs-report-enhanced .cipcs-pie-legend span,
.cipcs-report-enhanced .cipcs-donut-legend span{
  min-width:0!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere;
  line-height:1.24;
  color:#385b79!important;
  font-weight:700;
}

.cipcs-report-enhanced .cipcs-pie-legend strong,
.cipcs-report-enhanced .cipcs-donut-legend strong{
  white-space:nowrap!important;
  font-weight:900;
}

.cipcs-report-enhanced .cipcs-geo-grid{
  gap:22px!important;
}

.cipcs-report-enhanced .cipcs-geo-grid>div{
  padding:18px;
  border:1px solid #dbe8f1;
  border-radius:20px;
  background:rgba(255,255,255,.72);
}

.cipcs-report-enhanced .cipcs-geo-grid>div>h3{
  margin:0 0 14px!important;
  font-size:1.15rem!important;
}

.cipcs-report-enhanced .cipcs-geo-grid .cipcs-pie-card{
  grid-template-columns:1fr!important;
  gap:18px!important;
  margin:0!important;
  padding:22px!important;
}

.cipcs-report-enhanced .cipcs-geo-grid .cipcs-pie{
  width:178px!important;
  height:178px!important;
}

.cipcs-report-enhanced .cipcs-geo-grid .cipcs-pie-legend{
  width:100%;
}

/* Rappresentazioni realmente duplicate */
.cipcs-report-enhanced .cipcs-secondary-duplicate{
  display:none!important;
}

/* Dettagli secondari espandibili */
.cipcs-report-enhanced .cipcs-data-detail{
  margin-top:18px;
  border:1px solid #d7e5ef;
  border-radius:16px;
  background:linear-gradient(180deg,#fbfdff,#f6fafd);
  overflow:hidden;
}

.cipcs-report-enhanced .cipcs-data-detail>summary{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  cursor:pointer;
  color:#0a477b;
  font-weight:900;
  background:linear-gradient(90deg,#eef7fc,#f9fcfe);
}

.cipcs-report-enhanced .cipcs-data-detail>summary::-webkit-details-marker{
  display:none;
}

.cipcs-report-enhanced .cipcs-data-detail>summary:after{
  content:"+";
  display:grid;
  place-items:center;
  flex:0 0 28px;
  width:28px;
  height:28px;
  border-radius:9px;
  background:#dceff9;
  color:#0d5fa7;
  font-size:1.1rem;
}

.cipcs-report-enhanced .cipcs-data-detail[open]>summary:after{
  content:"−";
}

.cipcs-report-enhanced .cipcs-data-detail>summary small{
  margin-left:auto;
  color:#647d91;
  font-size:.76rem;
  font-weight:700;
}

.cipcs-report-enhanced .cipcs-data-detail>.cipcs-table-public{
  margin:14px!important;
}

.cipcs-report-enhanced .cipcs-data-detail>h3{
  margin:18px 16px 8px!important;
}

.cipcs-report-enhanced .cipcs-data-detail>h3:first-of-type{
  margin-top:16px!important;
}

.cipcs-report-enhanced .cipcs-table-public{
  border-color:#d9e6ef!important;
  box-shadow:0 8px 22px rgba(7,60,100,.045);
}

.cipcs-report-enhanced .cipcs-club-details summary{
  transition:background .18s ease;
}

.cipcs-report-enhanced .cipcs-club-details summary:hover{
  background:#eef7fc;
}

@media(max-width:900px){
  .cipcs-report-enhanced .cipcs-geo-grid{
    grid-template-columns:1fr!important;
  }

  .cipcs-report-enhanced .cipcs-pie-card{
    grid-template-columns:160px minmax(0,1fr)!important;
  }

  .cipcs-report-enhanced .cipcs-geo-grid .cipcs-pie-card{
    grid-template-columns:1fr!important;
  }
}

@media(max-width:620px){
  .cipcs-report-enhanced section{
    transform:none!important;
  }

  .cipcs-report-enhanced .cipcs-pie-card{
    grid-template-columns:1fr!important;
  }

  .cipcs-report-enhanced .cipcs-pie-legend>div,
  .cipcs-report-enhanced .cipcs-donut-legend>div{
    grid-template-columns:12px minmax(0,1fr) auto!important;
    padding:9px 10px!important;
  }

  .cipcs-report-enhanced .cipcs-pie-legend span,
  .cipcs-report-enhanced .cipcs-donut-legend span{
    font-size:.82rem!important;
  }

  .cipcs-report-enhanced .cipcs-pie-legend strong,
  .cipcs-report-enhanced .cipcs-donut-legend strong{
    font-size:.79rem!important;
  }

  .cipcs-report-enhanced .cipcs-data-detail>summary small{
    display:none;
  }

  .cipcs-report-enhanced .cipcs-geo-grid>div{
    padding:12px;
  }
}
