/* STRUCTURE  */

body{font-size: 0.9rem;}
[class*="sidebar-dark-"] .nav-sidebar > .nav-item.menu-open , [class*="sidebar-dark-"] .nav-sidebar > .nav-item:hover {background:rgba(255,255,255,.1); }

.align-center{text-align: center;}
.align-left{text-align: left;}
.align-right{text-align: right;}

.hidden{display: none;}

.select2-container--default .select2-results__option[aria-disabled=true] {
        display: none;
}

.field-collection-item-action {
        font-size: 2rem;
        font-weight: bold;
        margin-left: 4px;
        width: 7%;
        text-align: center;
        display:inline-block;
        line-height: 2.2rem;
}
.field-collection-item-row .form-control {
        width: 92%; float: left;
}


.card-tools h5{margin-bottom: 0px;}


/*****************************************  ADMIN SIDEBAR ***************************************/
.main-sidebar p{font-size: 0.8rem;}
.main-sidebar .sidebar{padding-left: 0px; padding-right: 0px; margin-top: 57px;}
.main-sidebar .nav-link{padding: .4rem .5rem .4rem .7rem;}




#lc-flash-messages{display: none;}

.main-sidebar .logo-long{padding: 8px 0; text-align: center;}
.main-sidebar .logo-long img{height: 40px;  display: inline-block;}
.sidebar-collapse .main-sidebar .logo-long span{display: none;}
.sidebar-collapse .main-sidebar:hover .logo-long span{display: inline-block;}

.table.datatable-simple .highlight{background: var(--teal);}
.datatable-field-search.small{width: 50px;}

.dataTables_length, .dataTables_filter{padding: .75rem 1.25rem 0.25rem;}

table.fixedHeader-floating{margin-top: 0px !important;}
table th.sorting_asc, table th.sorting_desc{border-top:3px solid var(--success);}
.card-body table.lc-table-list th.sorted, table th.sorting_asc, table th.sorting_desc{border-top:2px solid var(--success);}
/*.card-body table.lc-table-list th{border-top:3px solid var(--success);}*/
table th.filtered{border-top:3px solid var(--primary);}


.lc-table-list thead a{color: #212529}
.table-filters-line th {font-weight: 400;}
#list_filter_id{width: 60px;}
.lc-table-list .date-range{width: 130px;}

th.actions, td.actions{white-space: nowrap; text-align: right;}

.table td, .table th{padding: 0.35rem;}
.delivery-field .form-group{display: inline-block; margin-bottom: 0px; margin-right: 15px;}
.delivery-field .form-group .form-control{width: 150px;}

table th input{width: auto}
table th .select2-container--default .select2-selection--single{padding:0.3rem 0.4rem; }

/************************  LOGIN PAGE *********************/
.login-logo{display: block; margin: auto;}
/************************  form error *********************/

.form-sent .form-control:invalid{border-color: #dc3545; padding-right: 2.25rem; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23dc3545' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E");background-repeat: no-repeat;background-position: center right calc(.375em + .1875rem); background-size: calc(.75em + .375rem) calc(.75em + .375rem);}
.form-sent select.form-control:invalid + .select2 .select2-selection{border-color: #dc3545; }
.form-sent select.form-control:invalid + .select2 .select2-selection b{border-color: #dc3545 transparent transparent transparent;}


/*CUSTOM Checkbox
 /* Customize the label (the container) */
.form-check-label {display: block; position: relative; padding-left: 26px; cursor: pointer; -webkit-user-select: none; -moz-user-select: none;  -ms-user-select: none;  user-select: none;}
/* Hide the browser's default checkbox */
.form-check-label input { position: absolute;  opacity: 0; cursor: pointer;  height: 0; width: 0;}
/* Create a custom checkbox */

.form-check{padding-left: 0px;}

.form-sent .form-check-label input:invalid ~ .checkmark { border-color: #dc3545;}
.form-check-label input:disabled ~ .checkmark {display: none}
.form-check-label input ~ .checkmark { position: absolute; top: 0; left: 0; height: 18px;  width: 18px; background-color: #eee;border: 1px solid var(--primary);}
.form-check-label.big input ~ .checkmark { height: 21px;  width: 21px; }
.form-check-label input[type="checkbox"] ~ .checkmark {top: 2px;}
.form-check-label input[type="radio"] ~ .checkmark { top:3px; border-radius: 50%;}
.form-check-label:hover input ~ .checkmark { background-color: #ccc;}
/* When the checkbox is checked, add a blue background */
.form-check-label input:checked ~ .checkmark {background-color: var(--primary);}
/* Create the checkmark/indicator (hidden when not checked) */
.form-check-label .checkmark:after { content: ""; position: absolute; display: none;}
/* Show the checkmark when checked */
.form-check-label input:checked ~ .checkmark:after {display: block;}
/* Style the checkmark/indicator */
.form-check-label .checkmark:after {left: 7px; top: 3px; width: 6px; height: 11px; border: solid white;  border-width: 0 3px 3px 0; -webkit-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg);}
.form-check-label input[type="checkbox"] ~ .checkmark:after {left: 6px; top: 2px; width: 6px; height: 10px; border: solid white;  border-width: 0 3px 3px 0; -webkit-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg);}
.form-check-label input[type="radio"] ~ .checkmark:after {top: 4px; left: 4px; width: 8px;  height: 8px;  border-radius: 50%;  background: white;}

.form-check-label.big input[type="checkbox"] ~ .checkmark:after {left: 7px; top: 3px; width: 6px; height: 11px;}
/* Create a custom radio button */


.product-categories .parent .form-group.field-checkbox .form-check-label{padding-left: 0px; font-style: italic;}
.product-categories .children .form-group.field-checkbox{margin-left: 20px}
.product-categories .form-group{margin-bottom: 0.15rem;}
.lc-deleted-field{display: none;}
.lc-offline-field{opacity: 0.5}
.lc-offline-field label::after{content:' [hors ligne]'}




/* Général */
.btn.action-save{float: right; margin-left: 10px;}
.button-action a.float-right{margin-left: 10px;}

.input-group-text {
        padding: 0.250rem .75rem ;
}

.col-form-label{font-weight: bold;}

#toast-container.toast-top-right{top:60px}

/* SIDEBAR */
.main-header.navbar{padding: 0; min-height: 57px; }
.lc-navbar li{border-left: 1px solid #e0e0e0; padding: 0.5rem 1.5rem;}
.lc-navbar li label{margin-bottom: 0; vertical-align: middle; font-weight: normal !important;}

#switch-merchant {
        min-width: 170px ;
}

/* Sortable */

.ui-sortable-helper{ display: table;}
.ui-state-highlight{background: #eee}
.lc-sortable div:last-child{display: none;}

/* Ckfinder */
/*

.lc-ckfinder-wrap{width: 240px; height: 170px; position: relative;}
.lc-ckfinder-wrap .lc-ckfinder-illu-wrap{position:relative; : 100%; height: 139px; display: flex; align-items: center; justify-content: center; background: #eee; background-size: contain;}
.lc-ckfinder-wrap .lc-ckfinder-illu{width: 100%; height: 100%; background-size: contain; position: absolute; top: 0; left: 0;z-index: 1; background-repeat: no-repeat; background-position: center center; }
.lc-ckfinder-wrap .lc-ckfinder-illu-wrap i{font-size: 5rem;}
.lc-ckfinder-wrap .lc-ckfinder-remove{border: 0px; font-size: 1.8rem; position: absolute;z-index: 2; color:#dc3545; top: -20px; right: -20px; background: 0; display: none;}

.lc-ckfinder-wrap .lc-ckfinder-button{width: 100%; bottom: 0px; left: 0; position: absolute;}
*/

/* VUES JS  */
.nav-item .btn {padding-right: 15px; position: relative;}
.nav-item .btn .invalid-form{display: none; position: absolute; top: -7px;right: -6px; color: #dc3545; background: #fff; border-radius: 10px;font-size: 1.2rem;}
.nav-item.has-invalid .btn .invalid-form{display: inline-block; z-index: 2;}


/* ProductFamily */

.field-unit-quantity{border-bottom: 2px dotted #eee; padding-bottom: 10px; margin-bottom: 20px;}
.field-reduction-apply{border-top: 2px dotted #eee; padding-top: 10px; margin-top: 20px;}

.new-productfamily #nav-params,
.edit-productfamily #nav-params {
        margin-bottom: 30px ;
}

.new-productfamily #nav-params .btn,
.edit-productfamily #nav-params .btn {
        margin-left: 20px ;
}

.new-productfamily #product-categories .row,
.edit-productfamily #product-categories .row {
        padding: 10px ;
}

.new-productfamily #product-categories .form-group,
.edit-productfamily #product-categories .form-group {
        width: 100% ;
        padding: 4px ;
}

.new-productfamily #product-categories .children,
.edit-productfamily #product-categories .children {
        margin-left: 20px ;
        width: 100% ;
}

.new-productfamily ul.products,
.edit-productfamily ul.products {
        padding: 0px ;
        list-style-type: none ;
}

.new-productfamily ul.products li.product,
.edit-productfamily ul.products li.product {
        padding: 0px ;
        margin-bottom: 20px ;
        position: relative ;
}

.new-productfamily ul.products li.add,
.edit-productfamily ul.products li.add {
        text-align: right ;
}

.autoresize textarea{height: auto; min-height: 38px;}

.field-price .input-group.buyingPrice input,.field-price .input-group.buyingPrice .input-group-text{font-weight: bold; border-color: #222  }
.field-price .input-group.buyingPriceByRefUnit input,.field-price .input-group.buyingPriceByRefUnit .input-group-text{font-weight: bold; border-color: #222  }
.field-price .input-group.priceWithTax input,.field-price .input-group.priceWithTax .input-group-text{font-weight: bold; border-color: #222  }
.field-price .input-group.priceByRefUnitWithTax input,.field-price .input-group.priceByRefUnitWithTax .input-group-text{font-weight: bold; border-color: #222  }
.input-group.multiplyingFactor input,.input-group.multiplyingFactor .input-group-text{font-weight: bold; border-color: #222  }



        /* ORDER */

.table-order-summary{width: 100%;}


.order-product-item.redelivery{background: rgba(18, 104, 253, 0.38) !important;}
/*.select2-container--bootstrap .select2-selection{max-width: none;}*/
/*.order-product-item{margin: 15px 0; padding: 0;}*/

/* Product */
.product-form-modal{display: none;}
.product-form.modal .form-check-label{font-style: italic; color: #666; text-align: left;}
.products-collection-table .inherited{color: #888; font-style: italic; font-weight: initial;}
.products-collection-table td{position: relative;}
.card-body.p-0 .products-collection-table tbody > tr > td:first-of-type, .card-body.p-0 .products-collection-table tbody > tr > th:first-of-type, .card-body.p-0 .products-collection-table thead > tr > td:first-of-type, .card-body.p-0 .products-collection-table thead > tr > th:first-of-type{padding-left: 0.35rem;}
.products-collection-table .btn-empty-field{position: absolute; right: 3px; font-size: 0.7rem; top: 5px; padding: 0px;}
#lc-product-family-edit .products-collection-table {table-layout:fixed;/* background-clip: padding-box;*/ border-collapse: collapse;}
#lc-product-family-edit .products-collection-table th{font-size:13px; border-left: 1px solid #dee2e6; border-top: 1px solid #dee2e6; text-align: center; border-bottom: 2px solid #dee2e6;}
#lc-product-family-edit .products-collection-table tfoot th{border-top: 2px solid #dee2e6;}
#lc-product-family-edit .products-collection-table th span {white-space: initial;}
#lc-product-family-edit .products-collection-table th:last-child{border-right: 1px solid #dee2e6;}
#lc-product-family-edit .products-collection-table td{border-left: 1px solid #dee2e6; text-align: center; font-size: 13px; border-bottom: 1px solid #dee2e6;}
#lc-product-family-edit .products-collection-table td:last-child{border-right: 1px solid #dee2e6; white-space: nowrap; }
#lc-product-family-edit .btn-add-product {margin: 20px 0; float: right;}
#lc-product-family-edit .inherited {color: #888; font-style: italic; font-weight: initial;}
#lc-product-family-edit .products-collection-table td .value {min-width: 80%; margin: auto; min-height: 35px; cursor: pointer;}
#lc-product-family-edit .products-collection-table td .modal {text-align: left;}
table.products-collection-table th.main-info, td.buyingPrice, td.multiplyingFactor, td.priceWithTax{background: #eeeeee; background-clip: padding-box}

table.products-collection-table tr.disabled{opacity: 0.5}


/* DeliveryZone */

#autocomplete-cities {
        position: relative ;
}

#autocomplete-cities .ui-autocomplete {
        left: 30% ;
        top: 41px ;
        margin-left: 18px ;
}

.head-reminders{margin-top: 15px;}

/* TABLEAU DE BORD */
.todo-list > li{position: relative;}
.todo-list > li .text{margin-left: 30px;}
.todo-list > li .tools {position: absolute; top: 4px; right: 15px; }

#addTicketMessageForm{margin-top: 30px; border-top:2px dotted #eee; padding-top: 30px}

#dashboard .list-btn-statistic{display: flex;  flex-wrap: wrap;  justify-content: center;}
#dashboard .btn-statistic{ width: 120px; height: 70px; text-align: center; border: 1px solid black; line-height: 1rem; }
#dashboard .btn-statistic small{margin-bottom: 10px; display: block;}
#dashboard .btn-statistic .value{display: block;}