/* ***************** *******************************************************************
* WordPress Theme  | LanteasOpenSoclePremiumThemeChild [Form View dossier UIX] - Lanteas.
* ***************** *******************************************************************
*/


/* Zone dessous le titre | Contient généralement des icônes d'actons */
.formulaire-entete-actions{
    text-align: center;
}



/* Panel heading (Accordion Detail & Form View edition)  */
.panel-heading{ background-color: var( --pane-dynamic-color-bg ); }
.formulaire section.panel .panel-body > div h4,
.formulaire   .panel-heading h4.panel-title{ background-color: transparent !important; }
.panel-heading:hover{ background-color: var( --picto-color-hover ); }
.panel-heading:hover h4.panel-title{ color: var( --footer_color_primary ); }


.formulaire section.panel .panel-body > div {
  display: flex;
  background-color: var( --pane-dynamic-color-bg );
  margin: -15px;
    margin-bottom: -15px;
  margin-bottom: inherit;
}


/* Form View Nom étape du dispositif */
.formulaire section.panel .panel-body > div h4,
.formulaire  h4{
	display: inline-block;

	padding: 0.25rem 1rem;
	line-height: 2rem;
	margin: 0;
	border-radius: 1rem;
	    border-bottom-left-radius: 1rem;
	border-bottom-left-radius: 0;

    color: var( --alternate_color_color );
	background-color: var( --pane-dynamic-color-bg );
}
.formulaire h4 .fa {
    font-size: 1em;
    margin-right: 0.5rem;

    color: var( --alternate_color_color );
}

.formulaire section.panel .panel-body > div h4,
.formulaire h4.panel-title {
    font-size: 1.33rem;
    margin-bottom: 0px !important;
}


[data-role="etape-formulaire"] .section-title{
	margin-bottom: 0.25rem;
}

/* override .section-title to wide size for « conditionned sections » */
[data-role="etape-formulaire"] .section-title.section-title-wide{
    display: flex;
    flex: 1 0 100%;
    padding-left: unset;
    padding-right: unset;
}

/* aka .container_formulaire h3 */
[data-role="etape-formulaire"] .section-title h3 {
    border-bottom: solid 1px var( --boxed-border-color );
    width: 100%;
    padding: 0.5rem;
    margin: 0px 0.75rem;
}

[data-role="etape-formulaire"] .row.field-line {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    margin-bottom: 0.25rem;
}

[data-role="etape-formulaire"] .row.field-line:not(.section):hover{
	background-color: var( --alternate_color_bg__light );
}


#top .field-label label{
    font-size: inherit !important;
	font-weight: bold;
	margin-bottom: 0;

    white-space: pre-line;
    word-spacing: inherit;
    word-wrap: break-word;
    word-break: break-all;
    word-break: break-word;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;    
}

/* Pastille Tooltip */
.container_formulaire .fa.info-tooltip {
    color: var( --main_color_color );
    cursor: help;
    font-size: 1.25rem !important;
    font-style: normal;
    margin: 0;
    margin-left: 0.25rem;
    transform: translateY( calc(0.125rem + 12.5%) ) translateX(-30%);
    top: 0;
    left: 0;
    position: absolute;
    align-items: center;
    height: 0.8em;
    display: flex;
}
.fa.info-tooltip:before {
    font-size: 60%;
}

.fa.info-tooltip:hover {
	color: var( --picto-color-hover );
}


/* Message de notification d'erreur de champ */
[data-role="message-champ"] {
    color: var( --red );
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 0 0.25rem;
    width: 98%;
    transform: translateY( 95% ) translateX( 1rem );
    background-color: #e1e1e1;
    line-height: 1rem;
    border-radius: 5px;
    border-top-left-radius: 0;
    z-index: 1000;
}

[data-role="message-champ"] ul {
  margin: 0;
}
[data-role="message-champ"] ul li {
  line-height: 1;
}

/* Custom du champ Note */
div[rel="as-input-note"].input-text {
    border-color: transparent !important;
    box-shadow: none;
    background-color: transparent !important;
}



/* Coloration dynamique de l'étiquette étape:statut dans la vue liste */
span.colored-tag-label {
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    background-color: var( --tag-color );
    display: inline-flex;
    color: var( --tag-text-color );
}

#top .tox-sidebar {
    display: none;
}

#top .table-responsive {
    display: table;
}



/* A responsive override for boxes -and their contents- in an intermediate range width (before Enfold wrap below @768) */
@media only screen and (max-width: 768px)  {

    #top .table-responsive {
        display: block;
    }

    .field-line .d-flex {
        display:block!important;
    }

    .formulaire form .btn-bottom-bar {
        flex-direction: column;
    }
    
    .formulaire form .btn-bottom-bar a,
    .formulaire form .btn-bottom-bar input[type="button"],
    .formulaire form .btn-bottom-bar input[type="submit"]{
        margin: 0 0 1rem;
    }

}



  /** 
   * Ligne instruction / Avancement Dossier.
   * - On contrôle ici son décallage gauche.
   */
    .suivi-instruction-list {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: wrap;

        padding-left: 15px;
        margin-left: -15px;
        margin-bottom: 1rem;
    }


    .stripe-instruction {
        white-space: nowrap;
        overflow: visible;
        text-overflow: ellipsis;
        display: flex;
        cursor: pointer;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        font-size: inherit;
        font-weight: normal;
        font-family: inherit;
        text-decoration: none;
        text-align: center;
        color: var( --main_color_bg2 );
        background-color: #f5f5fd;
        border: none;
        outline: none;
        transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
        align-items: center;
        margin: 0;
        padding: 0 0.5rem 0 1.75rem;
    }

    .stripe-instruction > svg {
        filter: drop-shadow(2px 0px 0px rgb(255, 255, 255));
        fill: #f5f5fd;
        background-color: transparent !important;
        width: 1.125rem;
        height: auto;
        transform-origin: center;
        transform-box: view-box;
        transform: translateX( calc(50% + 10px) );
    }

    /* Coloration par attribut statut */
    .stripe-instruction[data-statut],
    .stripe-instruction[data-statut] > svg {
        background-color: #F5F5FD;
        color:            #03058E; /* Le bleu officiel Disign.gouv */
        font-weight: bold;
    }


    .stripe-instruction[data-statut="active"],
    .stripe-instruction[data-statut="active"] > svg {
        background-color: #03058E; /* Le bleu officiel Disign.gouv */
        fill:             #03058E;
        color: var( --main_color_bg2 )!important; /* Normalement très clair / Ne suit pas la coloration Admin/Options/Strong */
        font-weight: bold;
    }


    .stripe-instruction[data-statut="next"],
    .stripe-instruction[data-statut="next"] > svg {
        background-color: #E1E2F4; /* Odd  */
        fill:             #E1E2F4;
        color: initial;
        font-weight: normal;
    }

    .stripe-instruction[data-statut="next"]:nth-child(2n),
    .stripe-instruction[data-statut="next"]:nth-child(2n) > svg {
        background-color: #ECEDF9; /* Even has 74% opacity */
        fill:             #ECEDF9;
        color: initial;
        font-weight: normal;
    }

