/*
 * Padding pour le main
 */

[role="main"] {
    padding-top: 123px; /* Space for fixed navbar */
}

@media (min-width: 768px) {
    [role="main"] {
        padding-top: 85px; /* Space for fixed navbar */
    }
}

/*
 *  GENERAL
 */
main{
    min-height: 100vh;
    background-color: #fff;
}

.dropdown-menu {
    min-width: 7rem;
}

.form-check-input {
    margin-top: 1.6rem;
}

.cursor-pointer{
    cursor: pointer;
}

.search-form{
    font-size: .8rem;
    padding: 1.2rem .75rem;
    color: grey;
}

.alert{
    margin: .25rem 0 0 0;
}

label.required:after {
    color: red;
    content: "* ";
}

.logo-navbar{
    width: 60px;
    height: 40px;
}

.main-scan{
    padding-top: 50px;
}

@media (min-width: 768px) {
    .logo-navbar{
        width: 100px;
        height: 75px;
    }

    .main-scan{
        padding-top: 85px;
    }
}

/*thead tr th:first-child {
    border: 1px solid transparent;
    border-top-left-radius: .25rem;
}
thead tr th:last-child {
    border: 1px solid transparent;
    border-top-right-radius: .25rem;
}

tbody tr:last-child td:first-child{
    border: 1px solid transparent;
    border-bottom-left-radius: .25rem;
}

tbody tr:last-child td:last-child{
    border: 1px solid transparent;
    border-bottom-right-radius: .25rem;
}*/

/*
 *  colors
 */
.bg-green{
    background-color: #00c08b;
}

.bg-darkblue{
    background-color: #005ca8;
}

.bg-darkdarkblue{
    background-color: #122E45;
}

.bg-selected{
    background-color: #f8d7da !important;
}

.text-blackblue{
    color: #112d44;
}

/*
 *  buttons
 */

button:focus{
    outline: none;
}

.btn-dark {
    color: #fff;
    background-color: #112d44;
    border-color: #112d44;
}

.btn-dark:hover {
    color: #fff;
    background-color: #005ca8;
    border-color: #005ca8;
}

.btn-primary{
    color: #fff;
    background-color: #00c08b;
    border-color: #00c08b;
}

.btn-primary:hover{
    color: #fff;
    background-color: #006347;
    border-color: #006347;
}

.btn-darkblue{
    background-color: #005ca8;
    border-color: #005ca8;
    color: #fff;
}

.btn-darkblue:hover{
    background-color: #003663;
    border-color: #003663;
    color: #fff;
}

.btn-darkblue a:hover{
    text-decoration: none;
}

.btn-new{
    min-width: 225px;
}

.btn-new-pos{
    width: 100%;
    margin-bottom: .25rem;
    text-align: center;
}

@media (min-width: 641px) {
    .btn-new-pos{
        text-align: right;
    }
}

@media (min-width: 1000px) {
    .btn-new-pos{
        min-width: 700px;
    }
}

/*
 *  Alert
 */
.close:not(:disabled):not(.disabled):focus,
.close:not(:disabled):not(.disabled):hover{
    opacity: 1;
}

.close{
    color: #FFFFFF;
}

.alert-success {
    margin-top: .25rem;
    color: #fff;
    background-color: #8be8b4;
    border-color: #8be8b4;
}

/*
 *  Select 2
 */
.select2-container{
    width: 100% !important;
}

/*
 *  afichage des checkbox idcustomer
 */
.form-border{
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.select2-container .select2-selection--single {
    height: calc(1.5em + .75rem + 2px);
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

/*
 *  Erreur des formulaires
 */
form ul li{
    color: red;
    font-size: 0.8rem;
}

.legend-fieldset{
    width: auto;
    padding: 0 10px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
}

/*
 *  mise en page des tables
 */

.action-col{
    width: 100px;
    color: #fff;
}

.table thead th{
    color: #fff;
}

.showUser tbody tr th{
    background-color: #00c08b;
    color: #fff;
    width: 200px;
}

/*
 *  Navbar
 */

button.navbar-toggler {
    position: absolute;
    top: 15px;
    right: 0;
}

.name-top {
    z-index: 1300;
    position: fixed;
    top: 0;
    right: 15px;
    color : rgba(255, 255, 255, 0.5);
    font-size: .8rem;
}

@media (min-width: 768px) {
    button.navbar-toggler {
        top: 35px;
    }
}

.navbar-dark .navbar-nav .nav-link {
    color: #fff;
}

#navbarTop {
    background-color: #122E45;
    text-align: right;
    padding-right: 2rem;
}

.navbar-nav .dropdown-menu{
    text-align: right;
}

@media (min-width: 768px){
    #navbarTop {
        background-color: #005ca8;
    }

    .navbar-nav .dropdown-menu{
        text-align: left;
    }
}

/*
 *  Pagination
 */
.page-item.active .page-link {
    background-color: #112d44;
    border-color: #112d44;
}

.page-link, .page-link:hover {
    color: #112d44;
}

/**
 *  Datatable
 */

.dataTables_filter{
    display: none;
}

tfoot {
    display: table-header-group;
}

tfoot input {
    width: 100%;
    padding: 3px;
    box-sizing: border-box;
}

button.dt-button,
div.dt-button,
a.dt-button {
    background: #005ca8;
    color: #fff;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

button.dt-button:hover:not(.disabled),
div.dt-button:hover:not(.disabled),
a.dt-button:hover:not(.disabled) {
    border: 1px solid #003663;
    background: #003663;
}

button.dt-button:focus:not(.disabled),
div.dt-button:focus:not(.disabled),
a.dt-button:focus:not(.disabled) {
    border: 1px solid #003663;
    background: #003663;
}

/*.dataTables_info{
    width: 100%;
}*/

div.dt-buttons{
    float: right;
}

.dataTables_wrapper /*.dataTables_info*/{
    padding-top: 0;
}

table.dataTable.dtr-inline.collapsed>tbody>tr[role="row"]>td:first-child:before,
table.dataTable.dtr-inline.collapsed>tbody>tr[role="row"]>th:first-child:before{
    background-color: #00c08b;
}

table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td:first-child:before,
table.dataTable.dtr-inline.collapsed>tbody>tr.parent>th:first-child:before{
    background-color: #005ca8;
}

.datatable-none{
    display: none;
}

table.dataTable tfoot th, table.dataTable tfoot td,
table.dataTable thead th, table.dataTable thead td{
    border: none;
}

.table{
    border-collapse: collapse!important;
}

.table td, .table th {
    border: 1px solid #dee2e6!important;
}

/* Hide button "add output" in pallet list */
#addOutputButton{
    display: none;
}
#addOutPalletButton{
    display: none;
}
#addPrintPalletButton{
    display: none;
}

/* PAGES SCAN*/

.title-scan-main{
    background-color: #005ca8;
    color: white;
    padding: .5rem;
}

.btn-scan-main{
    width: 100%;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    margin: 1rem .1rem;
    padding: 1rem 0;
}

.border-bottom-pallet{
    border-bottom: 1px solid black;
}

/* Liste des opérations avec scan */
.table-list-op{
    border: 1px solid #B0BED9;
    padding: 0 10px;
    overflow: hidden;
}

.table-list-op .color{
    background-color: #B0BED9;
}

.table-list-op .title a{
    color: white;
    text-decoration: underline;
    font-weight: bold;
}

.table-list-op .row{
    min-height: 40px;
}

.table-list-op .title .sortable span,
.table-list-op .title .asc span,
.table-list-op .title .desc span{
    position: absolute;
    right: 5px;
}

.table-list-op .title:last-child .sortable span,
.table-list-op .title:last-child .asc span,
.table-list-op .title:last-child .desc span{
    position: absolute;
    right: 10px;
}

.table-list-op .title.id,
.table-list-op .title.date,
.table-list-op .title.user,
.table-list-op .title.operation,
.table-list-op .title.quantity,
.table-list-op .title.article,
.table-list-op .title.ref{
    border-bottom: 1px solid white;
    border-right: 1px solid white;
    overflow: hidden;
}

.table-list-op .title.pallet{
    border-bottom: 1px solid white;
}

.table-list-op .title.output{
    border-bottom: 1px solid white;
    border-left: 1px solid white;
}

/**/
.form-bottom{
    position: fixed;
    width: 290px;
    bottom: 0;
}
@media (min-width: 768px) {
    .form-bottom{
        position: relative;
        width: 100%;
    }
}