/* Styles pour le frontend */
.rebrand-table-legend-block {

   margin:0px;
   padding: 20px 0px;
   background-color:#ffffff;

}

.rebrand-table-legend-block  .legend-text{
    font-family: "BNPP Sans";
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
}

.bnpp-rebrand-legend-table td > svg {
    display: block;        /* élimine l’espace sous‑baseline des images inline */
    margin: 0 auto;        /* centre horizontalement (facultatif) */
}

.padding-mini{
    padding:2px!important;
}
.rebrand-table-legend-block.dark{
       display:block;
       background-color:#0C2728;
}

.custom-rebrand-table-legend {
    margin: 0 auto;
    border-collapse: collapse;
    /*border: 1px solid #ccc;*/
    /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
    border-radius: '3px'
}

.dark .custom-rebrand-table-legend {
    border: 1px solid #fff;
}

.custom-rebrand-table-legend th,
.custom-rebrand-table-legend td {
    padding: 12px;
    text-align: left;
    /*border: 1px solid #ccc;*/
}

.custom-rebrand-table-legend .content-row:hover {
    /*background-color: #f5f5f5;*/
}

.custom-rebrand-table-legend .color-cell {
    transition: background-color 0.3s ease;
}

.custom-rebrand-table-legend tr td:nth-child(1) {
    font-family: "BNPP Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    white-space: nowrap;
    width:1%;
    padding-left:8px;
    padding-right:8px;

}

.custom-rebrand-table-legend tr td:nth-child(2) {
    text-align: center;
    font-family: "BNPP Sans";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    padding-left:8px;
    padding-right:8px;
}

.custom-rebrand-table-legend tr td:nth-child(3) {
    color: #000;
    font-family: "BNPP Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    padding-left:8px;
    padding-right:8px;
}

@media (max-width: 465px) {
    .custom-rebrand-table-legend tr td:nth-child(1) {
        font-size: 10px;
        white-space: unset!important;
    }

    .custom-rebrand-table-legend tr td:nth-child(2) {
        font-size: 12px;
        font-weight: 300;
    }

    .custom-rebrand-table-legend tr td:nth-child(3) {
        font-size: 10px;
    }
    .custom-rebrand-table-legend{
        width: 100%;
        max-width: calc(100% - 74px);
        margin-inline: auto;
    }
}

.bnpp-rebrand-legend-table{
    margin: 0 auto;
    width:100%;
    border-collapse:collapse;
    margin-bottom:20px;
}

.bnpp-rebrand-legend-table tr td {
    width: 33.3333%;
    font-family: "BNPP Sans";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    text-align:center;
    padding:10px;
}

@media (max-width: 465px) {
    .bnpp-rebrand-legend-table tr td {
          font-size: 14px;
           color:black;
    }
    .bnpp-rebrand-legend-table{
        width: 100%;
        max-width: calc(100% - 74px);
        margin-inline: auto;
    }
}

.dark .custom-rebrand-table-legend tr td:nth-child(1) {
  color:#FFFFFF;

}

.dark .custom-rebrand-table-legend tr td:nth-child(2) {
  color:#FFFFFF;
}

.dark .custom-rebrand-table-legend tr td:nth-child(3) {
    color:#FFFFFF;
}

.custom-rebrand-table-legend .withBackground{
    color:#000!important;
}


.rebrandNegativeBg{
    background-color: #FCDDD3;
}
.rebrandNeutralBg{
    background-color: #FFF2CE;
}
.rebrandPositiveBg{
    background-color: #D1F9E6;
}
.rebrandHeadingBg{
    background-color: #DEE8DB;
}

.dark .rebrandNegativeBg{
    background-color: #FCDDD3;
    color:#fff;
}
.dark .rebrandNeutralBg{
    background-color: #0C2728;
      color:#fff;
}
.dark .rebrandPositiveBg{
    background-color: #40BF90;
      color:#fff;
}
.dark .rebrandHeadingBg{
    background-color: #30637B;
      color:#fff;
}

/*
.borderCell{
    border-right:1px solid #ccc!important;
    border-left:1px solid #ccc!important;;
    border-top:none;
    border-bottom:none;
}

.dark .borderCell{
    border-right:1px solid #fff!important;
    border-left:1px solid #fff!important;;
    border-top:none;
    border-bottom:none;
}*/

.bnpp-rebrand-legend-table, .custom-rebrand-table-legend{
    width:80%;
    padding:auto;
    max-width:1250px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/*********** NEW CSS ******/

table.custom-rebrand-table-legend {

	
		th {

			font-weight: 400;
			text-align: left;
			font-family: "BNPP Sans";
			font-size: 14px;
			font-style: normal;
			font-weight: 300;
		}
	
		td {
			text-align: left;
			font-family: "BNPP Sans";
			font-size: 14px;
			font-style: normal;
			font-weight: 300;
		}
		th:first-child,
		td:first-child {
			width: 1%;                
			font-family: "BNPP Sans Condensed";
			font-size: 20px;
			font-style: normal;
			  white-space: nowrap;     
            text-overflow: ellipsis;
			font-weight:400;
		}	
		tr:first-child > td,
        tr:first-child > th { 
			font-family: "BNPP Sans Condensed";
			font-size: 20px;
			font-style: normal;
			font-weight:400;
		}


		/* -------------------------------------------------
			vertical border  – 1px #346452
			------------------------------------------------- */
		td,
		th {
			border-right: 1px solid #346452;
		}
		/* delete the right border of the last column */
		td:last-child,
		th:last-child {
			border-right: none;
		}

		/* -------------------------------------------------
			horizontales line border(lignes) – alternate color 
	        1er séparateur #ADC6A4, 2e #346452, 3e #ADC6A4, …
			------------------------------------------------- */
		tr:nth-child(odd)  { border-bottom: 1px solid #ADC6A4; }
		tr:nth-child(even) { border-bottom: 1px solid #346452; }
		/* delete the border at the bottom for the last line */
		tr:last-child { border-bottom: none; }

		tbody tr:nth-child(2n+3) {
			background-color: #F7F9F6;   
		}


}

@media (max-width: 465px) {
    
    .table-legend-block {
        width: 100%;                     
        overflow-x: scroll;              
        scrollbar-gutter: stable both;   
        -webkit-overflow-scrolling: touch; 
    }

    .table-legend-block {
        scrollbar-width: thin;                          
        scrollbar-color: #7E9271 #D9E2D1;                 
    }

    .table-legend-block::-webkit-scrollbar {
        height: 8px;                    
    }
    .table-legend-block::-webkit-scrollbar-thumb {
        background-color: #7E9271;       
    }
    .table-legend-block::-webkit-scrollbar-track {
        background: #D9E2D1!important;            
		   border-radius: 4px;
    }
    table.custom-rebrand-table-legend {
        th {
            font-size:12px;
        }
        td{
            font-size:12px;
        }

		th:first-child,
		td:first-child {
			font-size: 16px!important;
		}	
		tr:first-child > td,
		tr:first-child > th { 
			font-size:16px!important;
		}
	}

}

.custom-rebrand-table-legend tbody tr:first-child {
    background-color: #DEE8DB; 
}

.custom-rebrand-table-legend td,
.custom-rebrand-table-legend th {
    vertical-align: middle; 
}