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

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

.table-legend-block.dark{
       display:block;
       background-color:#0C2728;
}

.custom-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-table-legend {
    border: 1px solid #fff;
}

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

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

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

.custom-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-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-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-table-legend tr td:nth-child(1) {
        font-size: 10px;
        white-space: unset!important;
    }

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

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

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

.bnpp-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-legend-table tr td {
          font-size: 14px;
           color:black;
    }
    .bnpp-legend-table{
        width: 100%;
        max-width: calc(100% - 74px);
        margin-inline: auto;
    }
}

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

}

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

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

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


.negativeBg{
    background-color: #CA686E;
}
.neutralBg{
    background-color: #FFF;
}
.positiveBg{
    background-color: #40BF90;
}
.headingBg{
    background-color: #7CCBEF;
}

.dark .negativeBg{
    background-color: #BD424A;
    color:#fff;
}
.dark .neutralBg{
    background-color: #0C2728;
      color:#fff;
}
.dark .positiveBg{
    background-color: #40BF90;
      color:#fff;
}
.dark .headingBg{
    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-legend-table, .custom-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;
}