/*
    Styles des tableaux des tarifications, propo, contrat et instance.

    Author : Michael Smaga <michael@bvb-software.fr>
    Version : 1.0.0
*/

#table-propo span,
#tableau_contrat span{
    line-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#tableau_tarification table thead th,
#tableau_proposition table thead th,
#tableau_proposition_instance table thead th,
#tableau_securisation table thead th,
#tableau_contrat table thead th {
    color: #21384e;
    padding: 3px;
    font-size: 12px;
    text-align: center;
    vertical-align: middle !important;
}

#tableau_tarification table thead th:not(.sorter-false):after,
#tableau_tarification table thead th:not(.sorter-false):before,
#tableau_proposition table thead th:not(.sorter-false):after,
#tableau_proposition table thead th:not(.sorter-false):before,
#tableau_proposition_instance table thead th:not(.sorter-false):after,
#tableau_proposition_instance table thead th:not(.sorter-false):before,
#tableau_securisation table thead th:not(.sorter-false):after,
#tableau_securisation table thead th:not(.sorter-false):before,
#tableau_contrat table thead th:not(.sorter-false):after,
#tableau_contrat table thead th:not(.sorter-false):before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 5px 0 5px;
    border-color: #d9d9d9 transparent transparent transparent;
    position: absolute;
}

#tableau_tarification table thead th:not(.sorter-false):after,
#tableau_proposition table thead th:not(.sorter-false):after,
#tableau_proposition_instance table thead th:not(.sorter-false):after,
#tableau_securisation table thead th:not(.sorter-false):after,
#tableau_contrat table thead th:not(.sorter-false):after {
    margin-top: 5px;
}

#tableau_tarification table thead th:not(.sorter-false):before,
#tableau_proposition table thead th:not(.sorter-false):before,
#tableau_proposition_instance table thead th:not(.sorter-false):before,
#tableau_securisation table thead th:not(.sorter-false):before,
#tableau_contrat table thead th:not(.sorter-false):before {
    transform: rotate(180deg);
    margin-left: -15px;
    margin-top: 23px;
}

#tableau_tarification table thead th.tablesorter-headerDesc:after,
#tableau_proposition table thead th.tablesorter-headerDesc:after,
#tableau_proposition_instance table thead th.tablesorter-headerDesc:after,
#tableau_securisation table thead th.tablesorter-headerDesc:after,
#tableau_contrat table thead th.tablesorter-headerDesc:after {
    border-color: #bfbfbf transparent transparent transparent;
}

#tableau_tarification table thead th.tablesorter-headerAsc:before,
#tableau_proposition table thead th.tablesorter-headerAsc:before,
#tableau_proposition_instance table thead th.tablesorter-headerAsc:before,
#tableau_securisation table thead th.tablesorter-headerAsc:before,
#tableau_contrat table thead th.tablesorter-headerAsc:before {
    border-color: #bfbfbf transparent transparent transparent;
}

/** Custom GridJS Table **/
#tableau_tarification table thead button.gridjs-sort,
#tableau_proposition table thead button.gridjs-sort,
#tableau_proposition_instance table thead button.gridjs-sort,
#tableau_securisation table thead button.gridjs-sort,
#tableau_contrat table thead button.gridjs-sort {
    float: none;
    background-color: transparent;
    border: none;
    display: block;
    margin: auto;
}

#tableau_tarification table tbody tr td,
#tableau_proposition table tbody tr td,
#tableau_proposition_instance table tbody tr td,
#tableau_securisation table tbody tr td,
#tableau_contrat table tbody tr td {
    padding: 3px !important;
    font-size: 11px;
    color: #21384e;
    text-align: center;
    vertical-align: middle !important;
}

#tableau_tarification .gridjs-footer,
#tableau_proposition .gridjs-footer,
#tableau_proposition_instance .gridjs-footer,
#tableau_securisation .gridjs-footer,
#tableau_contrat .gridjs-footer {
    display: none;
}

#tableau_tarification table tbody tr:nth-child(odd) td,
#tableau_proposition table tbody tr:nth-child(odd) td,
#tableau_proposition_instance table tbody tr:nth-child(odd) td,
#tableau_securisation table tbody tr:nth-child(odd) td,
#tableau_contrat table tbody tr:nth-child(odd) td {
    background: #ebebeb;
}

#tableau_tarification table tbody tr:nth-child(even) td,
#tableau_proposition table tbody tr:nth-child(even) td,
#tableau_proposition_instance table tbody tr:nth-child(even) td,
#tableau_securisation table tbody tr:nth-child(even) td,
#tableau_contrat table tbody tr:nth-child(even) td {
    background: #fff;
}

#tableau_tarification thead tr th .custom-control,
#tableau_proposition thead tr th .custom-control,
#tableau_proposition_instance thead tr th .custom-control,
#tableau_securisation thead tr th .custom-control,
#tableau_contrat thead tr th .custom-control {
    /* top: 10px; */
    /* padding-left: 10px; */
}

#tableau_tarification .custom-control,
#tableau_proposition .custom-control,
#tableau_proposition_instance .custom-control,
#tableau_securisation .custom-control,
#tableau_contrat .custom-control {
    cursor: pointer;
    align-items: center;
    justify-content: center;
    display: flex;
    z-index: 15;
    /* padding-left: 10px; */
}

#tableau_tarification .custom-control .custom-control-input,
#tableau_proposition .custom-control .custom-control-input,
#tableau_proposition_instance .custom-control .custom-control-input,
#tableau_securisation .custom-control .custom-control-input,
#tableau_contrat .custom-control .custom-control-input {
    z-index: 20;
    left: 14px;
}

#tableau_tarification .custom-control .custom-control-label,
#tableau_proposition .custom-control .custom-control-label,
#tableau_proposition_instance .custom-control .custom-control-label,
#tableau_securisation .custom-control .custom-control-label,
#tableau_contrat .custom-control .custom-control-label {
    top: -10px;
}

#tableau_tarification .custom-control .custom-control-label:before,
#tableau_proposition .custom-control .custom-control-label:before,
#tableau_proposition_instance .custom-control .custom-control-label:before,
#tablu_securisation .custom-control .custom-control-label:before,
#tableau_contrat .custom-control .custom-control-label:before {
    left: -17px;
}

#tableau_tarification .custom-control .custom-control-label:after,
#tableau_proposition .custom-control .custom-control-label:after,
#tableau_proposition_instance .custom-control .custom-control-label:after,
#tableau_securisation .custom-control .custom-control-label:after,
#tableau_contrat .custom-control .custom-control-label:after {
    left: -16px;
}

#tableau_tarification tbody .custom-control .custom-control-input,
#tableau_proposition tbody .custom-control .custom-control-input,
#tableau_proposition_instance tbody .custom-control .custom-control-input,
#tableau_securisation tbody .custom-control .custom-control-input,
#tableau_contrat tbody .custom-control .custom-control-input {
    top: 3px;
}

#tableau_securisation .custom-control .custom-control-label:before,
#tableau_contrat .custom-control .custom-control-label:before {
    left: -17px;
}

#tableau_tarification .custom-control .custom-control-label:after,
#tableau_proposition .custom-control .custom-control-label:after,
#tableau_proposition_instance .custom-control .custom-control-label:after,
#tableau_securisation .custom-control .custom-control-label:after,
#tableau_contrat .custom-control .custom-control-label:after {
    left: -16px;
}

#tableau_tarification tbody .custom-control .custom-control-input,
#tableau_proposition tbody .custom-control .custom-control-input,
#tableau_proposition_instance tbody .custom-control .custom-control-input,
#tableau_securisation tbody .custom-control .custom-control-input,
#tableau_contrat tbody .custom-control .custom-control-input {
    top: 3px;
}


/*
 ********************************************************************
 * Tableau de TARIFICATION
 ********************************************************************
 */
.tarification_en_cours .btn-group:not(.btn-group-toggle) button.btn {
    font-size: 13px;
    font-weight: 300;
    text-transform: uppercase;
    height: 35px;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: none;
    position: relative;
    outline: none !important;
    color: #fff;
}

.tarification_en_cours .btn-group:not(.btn-group-toggle) {
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.25);
    border-radius: 10px;
}

.tarification_en_cours .btn-group:not(.btn-group-toggle) .btn.btn_affichage {
    color: #595959;
    background: #fff;
}

.tarification_en_cours .btn-group:not(.btn-group-toggle) .btn.btn_export {
    background: #595959;
}

.tarification_en_cours .btn-group.btn-group-toggle .custom-radio-button.active {
    background: #8dc63f;
}

.tarification_en_cours #nb_elements_selected {
    color: #21384e;
    font-size: 12px;
}

.tarification_en_cours #nb_elements_selected span {
    font-size: 16px;
    font-weight: bold;
}
