table{
    width: 100%;
}

/* TABLES */

table, table th, table td {
    border: none;
    margin: 0;
    border-spacing: 0;
    border-right: solid 1px #fff;
}

th {
    color: #fff;
    text-shadow: 1px 1px 0px #666;
    text-align: left;
    padding: 5px 5px 2px 5px;
    white-space: nowrap;
    position: relative;
}

table tbody tr{
    line-height: 15px;
}

table td {
    border-bottom: 1px dashed #ccc;
    padding: 0 5px;
}


thead tr, .span_th {
    color:  #fff;
    font-weight: bold;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.75);
    outline: 0;
    padding: 5px;
    margin-top : 0px;

    /*Couleur*/
    background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #888888), color-stop(1, #6d6d6d));
    background:-moz-linear-gradient(top, #888888 5%, #6d6d6d 100%);
    background:-webkit-linear-gradient(top, #888888 5%, #6d6d6d 100%);
    background:-o-linear-gradient(top, #888888 5%, #6d6d6d 100%);
    background:-ms-linear-gradient(top, #888888 5%, #6d6d6d 100%);
    background:linear-gradient(to bottom, #888888 5%, #6d6d6d 100%);
    -webkit-box-shadow: inset 0 0px 0px rgba(0,0,0,.15), 0 0px 0px rgba(0,0,0,.05);
    -moz-box-shadow: inset 0 0px 0px rgba(0,0,0,.15), 0 0px 0px rgba(0,0,0,.05);
    box-shadow: inset 0 0px 0px rgba(0,0,0,.15), 0 0px 0px rgba(0,0,0,.05);
}

/*//#12437 */
thead tr.tr_formule {
    background:linear-gradient(to bottom, #999999 20%, #999999 5%);
}

thead tr.tr_formule th {
    text-shadow: none;
    font-size: 12px;
    font-weight: normal;
}

thead tr.tr_formule th strong {
    font-weight: bold;
}

fieldset thead tr{
    /*Couleur*/
    background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #518c9d), color-stop(1, #428a9e));
    background:-moz-linear-gradient(top, #518c9d 5%, #428a9e 100%);
    background:-webkit-linear-gradient(top, #518c9d 5%, #428a9e 100%);
    background:-o-linear-gradient(top, #518c9d 5%, #428a9e 100%);
    background:-ms-linear-gradient(top, #518c9d 5%, #428a9e 100%);
    background:linear-gradient(to bottom, #518c9d 5%, #428a9e 100%);
}

th.th_gauche{
    border-left: solid 5px #fff;
}

th .span_th_label{
    padding-right: 5px;
}

th[data-persistant="1"][data-tri] .span_th_label:hover{
    text-decoration: underline;
}

fieldset th .span_th_label i.span_editable_sur_demande{
    display: none;
}

th[data-tri]{
    cursor: pointer;
}

tbody tr:nth-child(odd){
    background-color: #f2f7fd;
}

tbody tr:nth-child(even){
    background-color: #fff;
}


fieldset tbody tr:nth-child(odd){
    background-color: #f8f8f8;
}

fieldset tbody tr:nth-child(odd):hover{
    background-color: #f8f8f8;
}

fieldset tbody tr:nth-child(even):hover{
    background-color: #fff;
}

fieldset table{
    border: solid 1px #eee;
    border-radius : 4px;
}


/* Gestion des cases à cocher dans les listes */
.unselect{
    opacity: 0.5;
}

tbody tr:hover{
    cursor: pointer;
}

tbody tr:hover td{
    color: #fff;
}
/* pas de hover pour les date picker*/
table.ui-datepicker-calendar tbody tr:hover{
    background-color: inherit;
}

fieldset tbody tr:hover td{
    color: #2c2c2c;
}

fieldset tbody tr:hover{
    cursor: default;
}

td{
    font-size: 12px;
    color : #2c2c2c;
    vertical-align: middle;
}

td div.zone{
    line-height: normal;
}

td div.zone input{
    padding-top: 0;
    padding-bottom: 0;
}

.th_cocher_tous{
    text-align: center;
}

.span_checkbox, .span_checkbox_tous, .span_panier_tous{
    background: url('../img/common/case.png') center center no-repeat;
    display: inline-block;
    cursor: pointer;
    opacity: 0.8;
    vertical-align: middle;
    height: 21px;
    width: 21px;
    line-height: 21px;
}

.span_checkbox[data-checked="1"], .span_checkbox_tous[data-checked="1"], .span_panier_tous[data-checked="1"]{
    background: url('../img/common/case_cocher.png') center center no-repeat;
}

.span_checkbox:hover{
    opacity: 1;
}

.span_panier.compteur {
    padding: 2px 5px;
    cursor: pointer;
}

.span_panier_vide {
    display: inline-block;
    cursor: pointer;
    opacity: 0.4;
    vertical-align: middle;
    height: 21px;
    width: 21px;
    line-height: 21px;
}

div.div_formulaire_bandeau span.popup_panier {
    margin-top: -10px;
    z-index: 1;
}

span.popup_panier {
    position: absolute;
    display: inline-block;
    background-color: #FFFFFF;
    margin-left: 10px;
    margin-top: -16px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 4px;
    padding-right: 4px;
    border: 1px solid black;
    color: #000000;
    cursor: default;
}
span.popup_panier:hover {
    color: #000000;
}

span.popup_panier svg {
    position: absolute;
    left: -11px;
    top: 19px;
}

span.popup_panier .btn_moins,
span.popup_panier .btn_plus {
    border: 1px solid black;
    border-radius: 5px;
    padding: 6px;
    width: 15px;
    background-color: #CFE2F3;
    margin-right: 6px;
    margin-left: 6px;
    display: inline-block;
    cursor: pointer;
    line-height: 18px;
}
span.popup_panier .btn_moins[disabled="disabled"] {
    background-color: #FFF;
    cursor: default;
}

span.popup_panier input[data-name="panier_quantite"] {
    width: 60px;
}

span.popup_panier .btn_ok {
    border: 1px solid black;
    border-radius: 5px;
    padding: 6px;
    background-color: #741B47;
    color: #FFFFFF;
    margin-right: 6px;
    display: inline-block;
    cursor: pointer;
    line-height: 18px;
}


th .span_th_label{
    padding-right: 16px;
}

th[data-tri="0"] .span_th_label{
    padding-right: 0px;
}


.span_tri{
    position: absolute;
    width: 20px;
    top: 0px;
    bottom: 0px;
    right: 0px;
    cursor: pointer;
    /*Couleur*/
    background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #888888), color-stop(1, #6d6d6d));
    background:-moz-linear-gradient(top, #888888 5%, #6d6d6d 100%);
    background:-webkit-linear-gradient(top, #888888 5%, #6d6d6d 100%);
    background:-o-linear-gradient(top, #888888 5%, #6d6d6d 100%);
    background:-ms-linear-gradient(top, #888888 5%, #6d6d6d 100%);
    background:linear-gradient(to bottom, #888888 5%, #6d6d6d 100%);
    -webkit-box-shadow: inset 0 0px 0px rgba(0,0,0,.15), 0 0px 0px rgba(0,0,0,.05);
    -moz-box-shadow: inset 0 0px 0px rgba(0,0,0,.15), 0 0px 0px rgba(0,0,0,.05);
    box-shadow: inset 0 0px 0px rgba(0,0,0,.15), 0 0px 0px rgba(0,0,0,.05);
}


th[data-tri="0"] .span_tri{
    display: none;
}

th:hover .span_tri{
    display: block;
}

.span_tri_icone{
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

th[data-tri="1"] .span_tri_icone{
    background: url('../img/composant/tri_asc_1.png') center center no-repeat;
}

th[data-tri="2"] .span_tri_icone{
    background: url('../img/composant/tri_asc_2.png') center center no-repeat;
}

th[data-tri="3"] .span_tri_icone{
    background: url('../img/composant/tri_asc_3.png') center center no-repeat;
}

th[data-tri="-1"] .span_tri_icone{
    background: url('../img/composant/tri_desc_1.png') center center no-repeat;
}

th[data-tri="-2"] .span_tri_icone{
    background: url('../img/composant/tri_desc_2.png') center center no-repeat;
}

th[data-tri="-3"] .span_tri_icone{
    background: url('../img/composant/tri_desc_3.png') center center no-repeat;
}


th[data-tri="0"]:hover .span_tri_icone{
    background: url('../img/composant/tri_desc_1.png') center center no-repeat;
}

.div_menu_th{
    position: absolute;
    display: none;
    padding: 10px;
    line-height: 20px;
    text-align: left;
    font-weight: normal;
    top:28px;
    /*Couleur*/
    background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #888888), color-stop(1, #6d6d6d));
    background:-moz-linear-gradient(top, #888888 5%, #6d6d6d 100%);
    background:-webkit-linear-gradient(top, #888888 5%, #6d6d6d 100%);
    background:-o-linear-gradient(top, #888888 5%, #6d6d6d 100%);
    background:-ms-linear-gradient(top, #888888 5%, #6d6d6d 100%);
    background:linear-gradient(to bottom, #888888 5%, #6d6d6d 100%);
    -webkit-box-shadow: inset 0 0px 0px rgba(0,0,0,.15), 0 0px 0px rgba(0,0,0,.05);
    -moz-box-shadow: inset 0 0px 0px rgba(0,0,0,.15), 0 0px 0px rgba(0,0,0,.05);
    box-shadow: inset 0 0px 0px rgba(0,0,0,.15), 0 0px 0px rgba(0,0,0,.05);
    z-index: 1002;
}

.div_menu_th li{
    cursor: pointer;
}

.div_menu_th li:hover{
    text-decoration: underline;
}

.div_menu_th ul.ul_formule {
    border-top: 1px solid #FFF;
    margin-top: 3px;
    padding-top: 3px;
}


.td_boolean{
    text-align: center;
}

.td_boolean img{
    vertical-align: middle;
}

.td_float{
    text-align: right;
}
.td_integer{
    text-align: right;
}

/* //#15622 */
.td_action {
    text-align: center;
}

.td_action span i {
    margin-right: 5px;
    color: #7c7c7c;
}

/*//#24330 - Les actions peuvent être des liens*/
td .action,
td .action-link {
    display: inline-block;
    height: 21px;
    width: 21px;
    line-height: 21px;
    vertical-align: middle;
}

/* //#15622 */
td .action.hidden,
td .action-link.hidden {
    display: none;
}

td span.btn_annuler {
    margin-right: 5px;
}

.cube tr.tr_total{
    font-weight: bold;
}

.cube th{
    font-size: 12px;
    font-weight: normal;
}
.cube th.th_lignes ul li{
    display: inline;
    padding-right: 10px;
}

/**  Action Font Awesome **/
td i.fa{
    font-size: 16px;
}

span.fa-stack i.fa-stack-1x{
    font-size: 10px;
    line-height: 20px;
}

span.fa-stack i.fa-stack-2x{
    font-size: 20px;
}

.div_vignette .div_actions_permanentes i.fa{
    font-size: 16px;
    color: #ccc;
}

td span.action i.fa:hover,
span.action span.fa-stack:hover,
td span.action-link i.fa:hover,
span.action-link span.fa-stack:hover,
.div_vignette .div_actions_permanentes i.fa:hover {
    color: #333;
}

span.action .fa-inverse:hover,
span.action-link .fa-inverse:hover {
    color: #ccc !important;
}


td.td_boolean i.fa-check{
    color:green;
}

/** //#8274 span éditable sur demande **/
th i.fa-pencil-square-o.span_editable_sur_demande {
    margin-left: 5px;
}

/* Supprime le style readonly si non édite */
td[data-editable_sur_demande="1"][data-edite="0"] div.zone input,
td[data-editable_sur_demande="1"][data-edite="0"] div.zone select,
td[data-editable_sur_demande="1"][data-edite="0"] div.zone textarea {
    cursor: inherit;
    background-color: inherit;
    border-color: transparent;
    color: inherit;
    box-shadow: inherit;
    -webkit-box-shadow: inherit;
}

td[data-editable_sur_demande="1"][data-edite="0"] div.zone input:focus,
td[data-editable_sur_demande="1"][data-edite="0"] div.zone select:focus,
td[data-editable_sur_demande="1"][data-edite="0"] div.zone textarea:focus {
    border-color: transparent;
    -webkit-box-shadow: inherit;
    -moz-box-shadow: inherit;
    box-shadow: inherit;
}

td[data-editable_sur_demande="1"][data-edite="0"] div.zone input[type="checkbox"] {
    display: none;
}

td[data-editable_sur_demande="1"][data-edite="1"] span[data-edite="0"] {
    display: none;
}

/* Combo => On n'affiche pas le voir */
td[data-editable_sur_demande="1"] div.div_combo div[data-action="voir"] {
    display: none;
}

/* Combo => On n'affiche pas l'action ouvrir en mode édite = 0 */
td[data-editable_sur_demande="1"][data-edite="0"] div.div_combo div.combo_btn_ouvrir {
    visibility: hidden;
}

/*//#9575 - Tri JS*/
table.tablesorter thead {
    cursor: pointer;
}

table.tablesorter thead th {
    background-position: right 5px center;
    background-repeat: no-repeat;
}

table.tablesorter thead .tablesorter-headerAsc {
    background-image: url('../img/composant/tri_asc_1.png');
}

table.tablesorter thead .tablesorter-headerDesc,
table.tablesorter thead .tablesorter-headerUnSorted:hover
{
    background-image: url('../img/composant/tri_desc_1.png');
}
