//
// Pièces et documents
//

// Buttons

// Buttons d'actions principaux des onglets 
a#action-soustab-dossier_contrainte-corner-ajouter,
a#action-soustab-blocnote-message-ajouter {
    @include buttonPrimary;
}

a#zip_download_link {
    @include buttonSecondary;
}

/**
 * FORM - Switch Pièces déposées / Toutes les pièces
 */
#switch-toutes_les_pieces-pieces_deposees {
    display: inline-block;
    margin: 1em 0 2em;
    background: $blanc;
    border-radius: 30px;
    border: solid 1px #ddd;
    padding: .5em;
}

div.switcher__label {
    display: inline-block;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.2s ease-in-out;

    &:hover {
        background: #eee;
    }
}

div.switcher__label a {
    margin: 0 1em;
}

div.onglet_active,
div.onglet_active:hover {
    background: $brandColor;
    font-weight: 700;
}

.first-entete-telechargement {
    background-color: white;
    border-bottom: 2px #EFEFEF solid;
    padding-left: 5px;
    padding-top: 5px;
}

.entete-telechargement {
    background-color: white;
    border-bottom: 2px #EFEFEF solid;
    padding-left: 5px;
}

/**
* FORM - Toutes les pièces
*/

#sousform-document_numerise .formControls-top div {
    display: inline;
    margin-left: 15px;
}

#sousform-document_numerise .formControls-top div a:hover {
    text-decoration: none;
}

#sousform-document_numerise .formControls-top input.checkbox_select_all_none {
    margin-left: 1em;
}

#sousform-document_numerise .formControls-top input.dossier_final_select_recommandees,
#sousform-document_numerise_contexte_ctx .formControls-top input.dossier_final_select_recommandees {
    background: $jaune;
    color: $gris800;
    text-transform: none;
    margin-left: 1em;
}

#sousform-document_numerise .formControls-top div #telecharger_dossier_final {
    float: right;
    clear: right;
}

#sousform-document_numerise_contexte_ctx .formControls-top div {
    display: inline;
    margin-left: 15px;
}

#sousform-document_numerise_contexte_ctx .formControls-top div a:hover {
    text-decoration: none;
}

#sousform-document_numerise_contexte_ctx .formControls-top input.checkbox_select_all_none {
    vertical-align: middle
}

#sousform-document_numerise_contexte_ctx .formControls-top div #telecharger_dossier_final {
    float: right;
    clear: right;
}

#sousform-document_numerise {

    .tab-listing-container .tab-data .col-0,
    .tab-data .icons {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: auto;
        height: 100%;

        a,
        .om-icon {
            &.preview-16 {
                display: inline-block;
                height: 20px;
                padding-left: 10px;
            }
        }
    }
}

.tab-tab tbody tr.dossier_final_piece_recommandee {
    background-color: #FFF56B;
}

.legend_dossier_final {
    margin-top: 20px;
    font-weight: bold;
    background-color: #FFF56B;
}

input.checkbox_select_all_groupe_none {
    margin-left: 0.3em;
}