body {
    font-size: 14px;
}

.table-hover tbody tr:hover td,
.table-hover tbody tr:hover th {
    background-color: #AFEEEE !important;
    color: #333333;
    box-shadow: none !important;
}

.w-1 {
    width: 1% !important;
}

.nav > li > a {
    padding: 15px 10px;
}

/** ORDER TRANSIT STATUS */
.bg-order-status-done td {
    background-color: #4CDC3C !important;
}

.text-order-status-done {
    color: #4CDC3C !important;
}

.bg-order-status-partial_load td,
.bg-order-status-partial_unload td {
    background-color: #EB9423 !important;
}

.text-order-status-partial_load,
.text-order-status-partial_unload {
    color: #EB9423 !important;
}

.bg-order-status-in_transit td {
    background-color: #EE2A0C !important;
}

.text-order-status-in_transit {
    color: #EE2A0C !important;
}

.bg-order-status-late td {
    background-color: #0022FF !important;
    color: #FFFFFF;
}

.text-order-status-late {
    color: #0022FF !important;
}

.bg-order-status-todo td {
    background-color: #F9EF5F !important;
}

.text-order-status-todo {
    color: #F9EF5F !important;
}

/* MARGIN */
.mt-5 {
    margin-top: 5px;
}

/* CARD */
.card {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

.card-header {
    font-weight: bold;
}

.card-header .row {
    align-items: center;
}

.card-title {
    margin-bottom: initial;
    text-transform: uppercase;
}

.card-body {
    padding: 1rem;
}

/* NAVBAR */
.navbar {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
    font-size: 16px;
}

/* DATATABLE */
div.dts tbody th, div.dts tbody td {
    white-space: normal;
}

.table > tbody > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > td,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > thead > tr > th {
    padding: 4px;
    padding-top: .5rem;
    padding-bottom: .5rem;
}

.table td.font-size-large {
    font-size: 18px;
}

/* OVERLAY */
.overlay {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    background: #222;
    display: none;
    opacity: 0.5;
}

.overlay__inner {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: absolute;
}

.overlay__content {
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.spinner {
    width: 75px;
    height: 75px;
    display: inline-block;
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.05);
    border-top-color: #fff;
    animation: spin 1s infinite linear;
    border-radius: 100%;
    border-style: solid;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/** FORM */
label.required:after,
p.required:after {
    content: " *";
}

.has-error label {
    color: #a94442;
}

.form-label {
    font-weight: bold;
    margin-top: .6rem;
    margin-bottom: .2rem;
}

.form-select.is-valid:not([multiple]):not([size]),
.form-select.is-valid:not([multiple])[size="1"],
.was-validated .form-select:valid:not([multiple]):not([size]),
.was-validated .form-select:valid:not([multiple])[size="1"],
.form-control.is-valid, .was-validated .form-control:valid {
    background: none;
    border-color: #dee2e6;
}

.form-control.is-invalid, .was-validated .form-control:invalid {
    border-color: #dc3545 !important;
}

/** TABLE */
.table {
    background: #FFFFFF;
}

.table-shadowed {
    border: 1px solid #dee2e6;
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    border-spacing: 0;
    border-collapse: separate;
}

.table-shadowed th {
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

/** ALERT */
.alert {
    font-size: 16px;
}

/** SELECT2 */
.is-valid + .select2-container--bootstrap-5 .select2-selection, .was-validated select:valid + .select2-container--bootstrap-5 .select2-selection {
    border-color: #dee2e6;
}

.select2-search--inline { /* On multiselect remove the searchbar */
    display: none !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice {
    margin-bottom: 0;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice {
    font-size: 12px;
    padding: .2rem .5rem;
}

.select2-container--bootstrap-5 .select2-selection {
    padding: .3rem .75rem;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    padding-right: 2.2rem
}
