/* Custom css */

.btn-event{
    width:auto;
    min-width:130px;
}
.btn.btn-pdf {
    padding-right: 60px;
}
footer {
    padding-top: 0px;
}
footer a, footer a:hover {
    color:var(--couleurTertiaire);
}

@media screen and (max-width: 568px){
    table .table-xs {
        display: table-cell !important;
    }
    .div-big{
        display: none !important;
    }
    table .table-none {
        display: none !important;
    }    
}

@media screen and (min-width: 568px){
    table td span .table-none {
        display: inline !important;
    }
    table td div .table-none {
        display: block !important;
    }
    table .table-none {
        display: table-cell !important;
    }
}

@media screen and (min-width: 568px){
    .div-xs {
        display: none !important;
    }
    .span-xs {
        display: none !important;
    }
    table .table-xs {
        display: none !important;
    }
    /* .description-epreuve{
        font-size:1rem !important;
    } */
}


table tr {
    flex-wrap: unset; 
    justify-content: unset; 
    display:table-row;
}

table .table-col {
    width: unset;
    display:table-cell;
    padding-left:10px;
    padding-right:10px;
    vertical-align: middle !important;
}

@media screen and (max-width: 767px)
{ 
    .table-col {
        font-size: .6rem !important;
        padding: .3rem 0 !important;
        padding-left:4px !important;
        padding-right:4px !important;
    }
}


.flag-liste img{
    width:30px;
    height:auto;
    box-shadow: 3px 3px 5px #cacaca;
}

.flag-liste{
    transform: scale(1);
    top:0;
    width:max-content;
    display:block;
    box-shadow: none;
}
.flag-liste::after {
    bottom: -20px;
    font-size: 12px;
    left: 5px;
    transform: unset;
    text-align: center;
    position:unset !important;
}

@media screen and (max-width: 767px){ 
    .flag-liste img{
        width:20px;
        height:auto;
        box-shadow: 3px 3px 5px #cacaca;
    }
    .flag-liste::after {
        bottom: -12px;
        font-size: 8px;
        left: 3px;
        transform: unset;
        text-align: center;
    }
    .horse{
        font-weight: normal !important;
    }
}
.tableau-subtitle{
    background: var(--couleurSecondaire);
}
.description-epreuve{
    padding-top:0.3em !important;
    padding-bottom: 0 !important;
    margin-bottom:0 !important;
    font-size: 1rem !important;
}
.bloc-title{
    margin-top:-50px !important;
}
.title_sl_rs{
    margin-top:0.5rem !important;
}

@media screen and (max-width: 576px){
    body{
        font-size:0.8em;
    }
    .disciplines{
        width:30px;
        height:30px;
    }
    .titre-epreuve{
        padding:0 !important;
        font-size: 1.5rem;
    }

    .juge{
        font-size:0.8rem !important;
    }
    .bloc-title p{
        font-size:1rem !important;
    }
    .bloc-title h1{
        font-size:1.6rem !important;
    }
    .bloc-title{
        margin-top:unset !important;
    }
    .title_sl_rs{
        font-size:1.4rem !important;
        margin-bottom: 0 !important;     
    }
}

.btn-affiche-judges , .btn-affiche-judges:hover{
    color:#ffffff;
}
.video-js-content {
    width:640px;
    height:360px;
    margin:auto;
}
.flag-other{
    font-size:12px;
}

@media screen and (max-width: 767px){ 
    .video-js-content {
        width:320px;
        height:180px;
    }
    .flag-other{
        font-size:8px;
    }
}
.play_video{
    font-size:14px;
}

.line_odd{
    background-color: #fff !important;
}
.line_even{
    /*background-color: rgba(0,0,0,0.05) !important;*/
    background-color: rgba(0,0,0,0.05) ;
}
.line_break{
    background-color:#d0d0d0 !important;
}
.indiv_note_juge{
    font-size:8px;
}
table .infos-individuels-infos table td, table .infos-individuels-infos table th {
    width: unset !important;
}
.col-ind {
    padding-left: 3px !important;
    padding-right: 3px !important;
    vertical-align: middle !important;
}
.lien-ecurie{
    font-weight: normal !important;
}
.inter-line{
    background-color:var(--couleurSecondaire);
    color:#ffffff;
    padding-top:2px !important;
    padding-bottom:2px !important;
    /* border-bottom:solid 2px var(--couleurPrimaire) !important; */
}

.badge-last{
    background-color:var(--couleurPrimaire);
}
.badge-live{
    background-color:var(--couleurSecondaire);
}

/* Live and Last rider rows */
tr:has(.badge-live).line_odd,
tr:has(.badge-last).line_odd {
    background-color: #fff !important;
}
tr:has(.badge-live).line_even,
tr:has(.badge-last).line_even {
    background-color: rgba(0,0,0,0.05) !important;
}
tr:has(.badge-live) td,
tr:has(.badge-last) td {
    color: #000 !important;
    /* border-bottom: 1px solid #e0e0e0; */
}

.live-separator {
    display: none;
}

/* Horse info button and tooltip */
.horse-info-btn {
    display: none;
}

@media screen and (max-width: 567px) {
    .horse-info-container {
        display: block !important;
        width: auto !important;
    }

    .horse-info-container .horse {
        display: inline !important;
        white-space: nowrap !important;
    }

    .horse-info-container .horse-info-btn {
        display: inline !important;
        margin-left: 0 !important;
    }

    .horse-info-btn {
        display: inline-flex !important;
        align-items: center !important;
        cursor: pointer;
        font-size: 0.65rem;
        color: var(--couleurPrimaire);
        padding: 1px 3px;
        border-radius: 50%;
        transition: all 0.2s ease;
        flex-shrink: 0;
        margin-left: 0;
    }

    .horse-info-btn:hover {
        color: #333;
        background-color: rgba(0, 0, 0, 0.05);
    }

    .horse-info-tooltip {
        display: none;
        position: fixed;
        background-color: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 4px;
        padding: 10px 12px;
        font-size: 0.75rem;
        color: #333;
        max-width: 90vw;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    .horse-info-tooltip.active {
        display: block;
    }
}

.hunter {
    background-color: #9D863D !important;
}
.hunter::after {
    content: '\E804';
    font-family: "wst-icones";
    font-size: 2rem;
    display: -webkit-box;
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    color: #fff;
}
.gris{
    color: rgba(0,0,0,.5);
}

/* .btn-streaming {

    position: relative;
    padding-right: 60px;
}
.btn-streaming::after {
        content: '\E807';
        background-color: white;
        height: calc(100% + 6px);
        width: 50px;
        position: absolute;
        right: calc(0px - 3px);
        top: calc(0px - 3px);
        border: 0;
    } */
header .bandeau-header {
    object-fit: cover;
    width: 100%;
    min-height:unset;
}

.tableau-event-details{
    font-size: .77rem !important;
}
.hidden{
    display:none;
}

/* spinner/processing state, errors */
.spinner,
.spinner:before,
.spinner:after {
  border-radius: 50%;
}
.spinner {
  color: #ffffff;
  font-size: 22px;
  text-indent: -99999px;
  margin: 0px auto;
  position: relative;
  width: 20px;
  height: 20px;
  box-shadow: inset 0 0 0 2px;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
}
.spinner:before,
.spinner:after {
  position: absolute;
  content: "";
}
.spinner:before {
  width: 10.4px;
  height: 20.4px;
  background: #5469d4;
  border-radius: 20.4px 0 0 20.4px;
  top: -0.2px;
  left: -0.2px;
  -webkit-transform-origin: 10.4px 10.2px;
  transform-origin: 10.4px 10.2px;
  -webkit-animation: loading 2s infinite ease 1.5s;
  animation: loading 2s infinite ease 1.5s;
}
.spinner:after {
  width: 10.4px;
  height: 10.2px;
  background: #5469d4;
  border-radius: 0 10.2px 10.2px 0;
  top: -0.1px;
  left: 10.2px;
  -webkit-transform-origin: 0px 10.2px;
  transform-origin: 0px 10.2px;
  -webkit-animation: loading 2s infinite ease;
  animation: loading 2s infinite ease;
}

@-webkit-keyframes loading {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes loading {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@media only screen and (max-width: 600px) {
  form {
    width: 80vw;
    min-width: initial;
  }
}

footer{
    padding-bottom:0px;
    padding-left:0px;
    padding-right:0px;
}

.foot,.foot a{
    background-color:var(--couleurPrimaire);
    color:white;
    padding-bottom:5px;
    padding-top:5px;
}
.foot a:hover{
    color:white;
}

#cc-main {

     /** Change button primary color to black **/
     --cc-btn-primary-bg: var(--couleurPrimaire); /**#083E60;**/
     --cc-btn-primary-border-color: var(--couleurPrimaire);
     --cc-btn-primary-hover-bg: #444444;
     --cc-btn-primary-hover-border-color: #444444;

     /** Also make toggles the same color as the button **/
     --cc-toggle-on-bg: var(--cc-btn-primary-bg);

 }
 .cp-code{
    display: none;
 }

.btn-outline-primary:active{
    background-color: var(--couleurPrimaire) !important;
    border-color: var(--couleurPrimaire) !important;
    color:white !important;
}
.btn-primary:active{
    background-color: var(--couleurPrimaire) !important;
    border-color: var(--couleurPrimaire) !important;
    color:white !important;
}
.detail_pen{
    font-size:12px;
}
@media screen and (max-width: 767px) {
    .detail_pen{
        font-size:0.5rem;
    }
}

@media screen and (max-width: 567px) {
    .rider a {
        pointer-events: none;
        color: inherit;
        text-decoration: none;
    }
}