/* MODAL VIEW LEGUME */

.has-next-tarif { background-color: #e5ffe7; }

#modalViewLegume tr.tarifs_titre { background-color: #f2f2f2; border-top: 3px solid #ddd; }
#modalViewLegume tr.tarifs_titre th.groupe { border-left: 1px solid #999999; border-right: 1px solid #999999; }
#modalViewLegume tr.tarif td { border-top: 1px solid #999999; }
#modalViewLegume tr.tarif:not(:last-child) td { border-bottom: 1px solid #999999; }
#modalViewLegume tr.tarif td:not(:first-child) { border-left: 1px solid #999999; }
#modalViewLegume tr.tarif td:not(:first-last) { border-right: 1px solid #999999; }

#modalViewLegume td.tarif { text-align: center; }

#modalViewLegume td.tarif.next { background-color: #e5ffe7!important; }
#modalViewLegume td.tarif.current { background-color: #bfe2ff;!important; }
#modalViewLegume td.tarif.old { background-color: #f2f2f2!important; }
#modalViewLegume td.tarif.not_apply { background-color: #ccc!important; }

/* MODAL FORM LEGUME */

.formLegume div.tarif { margin-bottom: 7px; }
.formLegume div.tarifs div.tarif:last-child { margin-bottom: 0; }

.formLegume div.input-group.deleted select.form-control,
.formLegume div.input-group.deleted input.form-control,
.formLegume div.input-group.deleted span.input-group-addon {
    text-decoration: line-through;
    color: #d9534f;
}

@media (max-width: 1000px) {
    .formLegume div.tarif { 
        display: block;
        padding: 6px;
        border: 1px solid #CCC;
        background-color: #f6f6f6;
        border-radius: 4px;
    }
    .formLegume div.tarif span.input-group-addon { 
        float: left;
        box-sizing: border-box;
        width: 80px;
        height: 35px;
        padding: 9px;
        border-top-left-radius: 4px!important;
        border-bottom-left-radius: 4px!important;
        margin-bottom: 5px;
        border-right: none;
    }
    .formLegume div.tarif .form-control { 
        display: inline-block;
        box-sizing: border-box;
        height: 35px;
        margin-bottom: 5px;
    }
    
    .formLegume div.tarif .form-control:not([type=date]) {
        width: calc(100% - 80px);
        border-top-right-radius: 4px!important;
        border-bottom-right-radius: 4px!important;
    }
    .formLegume div.tarif .form-control[type=date] { width: calc(100% - 120px); }
    
    .formLegume div.tarif .btnDel { box-sizing: border-box; width: 40px; height: 35px; }
}

@media only screen and (hover: none) and (pointer: coarse) {
    .formLegume div.tarif .form-control[type=date] { 
        width: calc(100vw - 186px)
    }
}
