/* CSS Document */


.button, .button a{
	white-space: nowrap;
}

.button:hover a, .button a:hover{
	color: #fff;
}

#views-exposed-form-domande-framework-page-1{
	opacity: 0.3;
	display: none;
}

.lc-nowrap{
	white-space: nowrap !important;
}

.views-field-field-codice{
	white-space: nowrap;
	font-weight: 400;
	color: rgba(6,62,166,1.00) !important;
}

.inline-radios .form-type--radio {
  display: inline-block;
  margin-right: 1rem;
}

div.lc-line-break{
	display: block;
	border-bottom: 1px dashed rgba(1,64,145,1.00);
	width: 100%;
	height: 10px;
}

.field--name-field-domanda{
	font-size: 120%;
	color: rgba(1,64,145,1.00);
	font-weight: 500;
}

html.gin--dark-mode .field--name-field-domanda{
	color: #ffffff;
}

html.gin--dark-mode div.lc-line-break{
	border-bottom: 1px dashed #ffffff;
}


#azienda-numeri .fieldset__wrapper .form-wrapper{
	display: inline-block !important;
  width: 30% !important;
}

#edit-gin-theme-settings{
	display: none !important;
}

.controllo-item__ {
  transition: opacity 0.2s ease-in-out;
}


.filtro-img img {
  width: 40px; /* adatta alla dimensione 'medium' */
  height: auto;
  margin-bottom: 5px;
  display: block;
}

.filtro-img{
	width: 5%;
}

.filtro-label{
	width: 25%;
	font-weight: bold;
}
.filtro-count{
	width: 20%;
}

.filtro-status{
	width: 20%;
}
.filtro-progress{
	width: 30%;
}









.filtro-progress {
  min-width: 320px;
}

.progress-bar-container {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.progress-bar-bg {
  background-color: #e0e0e0;
  border-radius: 6px;
  height: 12px;
  width: 100%;
  overflow: hidden;
  display: block;
}

.progress-bar-fill {
  height: 12px;
  display: block;
  transition: width 0.4s ease;
}

.progress-low {
  background-color: #d9534f; /* rosso */
}

.progress-medium {
  background-color: #f0ad4e; /* giallo */
}

.progress-high {
  background-color: #5cb85c; /* verde */
}

.progress-label {
  font-size: 0.75em;
  text-align: center;
  margin-top: 3px;
  color: #333;
}

.filtro-toggle {
  cursor: pointer;
  padding: 8px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  margin: 10px 0 5px;
  border-radius: 4px;
  font-weight: bold;
}

.filtro-sezione {
  display: block;
  margin-bottom: 20px;
}

#ngway-assessment-questionario-valutazione #edit-risposte .controllo-item{
	display: none;
}

.filtro-attivo {
  margin: 20px 0;
  padding: 12px;
  background: #eef4fa;
  border-left: 4px solid #0074d9;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 12px;
}

.filtro-attivo img {
  max-height: 60px;
}


.col-livello-info {
  background-color: #d9edf7;
  color: #31708f;
}
.col-livello-warning {
  background-color: #fcf8e3;
  color: #8a6d3b;
}
.col-livello-critical {
  background-color: #f2dede;
  color: #a94442;
}

.toggle-spiegazione {
  width: 1.5rem;
  height: 1.5rem;
  background-color: transparent;
  background-image:url("../imgs/info-icon.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
}

.toggle-spiegazione:hover {
  filter: brightness(0.8);
}


.toggle-spiegazione:hover {
  color: #084298; /* Colore più scuro al passaggio del mouse */
}




.spiegazione.hidden {
  display: none;
}
.spiegazione {
background-color: #f4f4f4;
  padding: 1em;
  border-left: 4px solid #0074bd;
  transition-property: all;
  transition-delay: 200ms;
  transition-duration: 800ms;
  font-size: 80%;
  color: #666;
}

.spiegazione strong{
	color: #5faf3e;
}

span.lc-risposta-hidden{
	display: none !important;
}

.gin-grid, .dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
  margin-top: 2rem;
}

/*
.grid-item, .dashboard-item {
  background: #fcfcfc;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

#edit-grafici-wrapper{
	margin-bottom: 1em;
}
*/

tr.media-row td {
  font-weight: bold;
  background-color: #f2f2f2;
}

tr.separatore-statistiche td {
  background-color: #d8e6f7;
  font-weight: bold;
  text-align: center;
}

tr.media-row.livello-critical td, .graph-critical_ {
  background-color: #ffe5e5;
}
tr.media-row.livello-warning td, .graph-warning_ {
  background-color: #fff3cd;
}
tr.media-row.livello-info td, .graph-info_{
  background-color: #e2f0d9;
}


td.percentuale-bassa {
  background-color: #f8d7da; /* rosso chiaro */
  color: #842029;
  font-weight: bold;
}

td.percentuale-media {
  background-color: #fff3cd; /* giallo chiaro */
  color: #664d03;
  font-weight: bold;
}

td.percentuale-alta {
  background-color: #d1e7dd; /* verde chiaro */
  color: #0f5132;
  font-weight: bold;
}





#edit-grafici-wrapper .colllll {
	float: left;
  width: 40% !important;
  margin: 2.5%;
  height: 40% !important;
}


#maturity-loader-overlay {
  position: fixed;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.98);
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.maturity-loader-content {
  text-align: center;
  font-size: 1.2rem;
  color: #333;
}

.maturity-loader-content .spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #2f6dd0;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.lc-pill{
	border: 2px solid #58914c;
  border-radius: 2px;
  padding: 1px 4px;
  background-color: #58d03f;
  color: #fff;
  text-shadow: 1px 1px 0 #666;
	font-size: 85%;
}
.lc-pill-01{
	
}

.lc-remediation-domanda{
	margin-top: 8px;
  margin-bottom: 8px;
  font-size: 120%;
}


#assessment-maturity-calculation-form #edit-filters, #assessment-maturity-calculation-form-v2 #edit-filters{
	height: 10px;
  opacity: 0.0;
	overflow: hidden;
	text-indent: -9999px;
}

#ngway-assessment-questionario-valutazione h1{
  display: none;
}


.lc-remediation-summary{
	font-size: 85%;
}




.rem-status-nd { color: #999; font-weight: bold; }
.rem-status-incorso { color: #f59e0b; font-weight: bold; }
.rem-status-mitigato { color: #10b981; font-weight: bold; }
.rem-status-mantenuto { color: #2563eb; font-weight: bold; }

#edit-grafici-wrapper.grafici-maturita-wrapper.dashboard-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 20px;
  margin-top: 2rem;
}


#maturity-cards.maturity-card-grid, #maturity-cards-v2.maturity-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 2rem;
}

.maturity-card {
  border: 1px solid #ccc;
  padding: 1rem;
  text-align: center;
  border-radius: 8px;
  background-color: #f9f9f914;
}

.maturity-card canvas {
  width: 100%;
  max-width: 160px;
  height: 160px;
  margin: auto;

}

.maturity-label {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}








.maturity-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.maturity-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 0 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s;
}

.maturity-card:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.maturity-card canvas {
  width: 100%;
  height: auto;
  max-width: 100px;
  margin: 0 auto 10px auto;
}

.maturity-label {
  font-size: 12px;
  line-height: 1.4;
}



/* css/assessment-charts.css */
#edit-grafici-wrapper .dashboard-item canvas  {
  width: 290px !important;   /* riduci qui */
  height: 290px !important;  /* e qui */
  margin: 0 auto;
}

#edit-grafici-wrapper .dashboard-item {
  
}


.maturity-card-function.is-active {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}
