:root {
    --mdb-primary: #e5202b;
}


/* Chrome, Safari, Edge, Opera */

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* Firefox */

input[type=number] {
    -moz-appearance: textfield;
}

body {
    background-color: #f9fafd !important;
    scroll-behavior: smooth;
}

body.adminbar {
    margin-top: 50px;
}

body main {
    margin-right: 3rem;
    margin-left: 270px;
    transition: all .5s ease-in-out;
    padding-top: 4rem !important;
}

.form-select {
    height: 36px;
}

body main.wide {
    margin-left: 3rem;
}

.sidebar-fixed {
    height: 100vh;
    width: 270px;
    -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .16), 0 2px 10px 0 rgba(0, 0, 0, .12);
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .16), 0 2px 10px 0 rgba(0, 0, 0, .12);
    z-index: 800;
    background-color: #fff;
    padding: 0 1.5rem 1.5rem;
    transition: all .5s ease-in-out;
}

.sidebar-fixed .list-group .active {
    -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .16), 0 2px 10px 0 rgba(0, 0, 0, .12);
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .16), 0 2px 10px 0 rgba(0, 0, 0, .12);
    -webkit-border-radius: 5px;
    border-radius: 5px;
}

.sidebar-fixed .brand {
    display: inline-block;
}

.topbar-fixed {
    height: 65px;
    width: 100%;
    background-color: #fff;
    -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .16), 0 2px 10px 0 rgba(0, 0, 0, .12);
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .16), 0 2px 10px 0 rgba(0, 0, 0, .12);
    z-index: 799;
    padding-left: 270px;
    display: flex;
    align-items: center;
    transition: all .5s ease-in-out;
}

.btn-primary.focus,
.btn-primary:focus,
.btn-primary:hover {
    background-color: #E72F38;
}

.btn-check:active+.btn-primary,
.btn-check:checked+.btn-primary,
.btn-primary.active,
.btn-primary:active,
.show>.btn-primary.dropdown-toggle {
    background-color: #C81720;
}

a:hover {
    color: #C81720;
}

#swal2-title {
    font-size: 20px;
}

.swal2-actions button.swal2-styled {
    background: var(--mdb-primary);
    border-radius: .25rem;
    font-weight: 500;
    border: 0;
    font-size: .75rem;
    padding: .625rem 1.5rem .5rem;
    text-transform: uppercase;
    box-shadow: unset !important;
}

.bg-primary a {
    color: #fff;
}

.hide-sidebar-btn {
    color: var(--mdb-primary);
    background-color: transparent;
    border: none;
    font-size: 25px;
}

body.wide .sidebar-fixed {
    transform: translateX(-100%);
}

body.wide .topbar-fixed {
    padding-left: unset;
}

body.wide>main {
    margin-left: 3rem;
}

.lang-select ul {
    min-width: unset;
    width: 100px;
    text-transform: uppercase;
    font-size: 13px;
}

@media screen and (max-width: 1100px) {
    body>main,
    body.wide>main {
        margin-left: unset;
        margin-right: unset;
    }
    body .sidebar-fixed {
        transform: translateX(-100%);
    }
    body.wide .sidebar-fixed {
        transform: translateX(0);
    }
    .topbar-fixed {
        padding-left: unset;
    }
    body.wide .topbar-fixed {
        padding-left: 270px;
        width: 200vw;
    }
}

@media screen and (max-width: 768px) {
    .breadcrumb-menu {
        display: none;
    }
    table {
        border: 0;
    }
    table caption {
        font-size: 1.3em;
    }
    table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }
    table tr {
        border-bottom: 3px solid #ddd;
        display: block;
        margin-bottom: .625em;
    }
    table td {
        border-bottom: 1px solid #ddd;
        display: block;
        font-size: .8em;
        text-align: right;
    }
    table td::before {
        /*
        * aria-label has no advantage, it won't be read inside a table
        content: attr(aria-label);
        */
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
    }
    table td:last-child {
        border-bottom: 0;
    }
}

.loading {
    position: relative;
}

.loading>* {
    -webkit-filter: blur(5px);
    -moz-filter: blur(5px);
    -o-filter: blur(5px);
    -ms-filter: blur(5px);
    filter: blur(5px);
    opacity: 0.8;
}

.loading::before {
    content: '';
    width: 100%;
    height: 100%;
    background-image: url('../images/loading.svg');
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    background-repeat: no-repeat;
    z-index: 1;
    background-position: center;
}

select.required.form-select.is-invalid+div {
    margin: -10px 0;
}

.form-select.is-invalid {
    margin-bottom: 1rem;
}

.sidebar-flex {
    height: 100%;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.sidebar-flex ul.nav {
    flex-direction: column;
}
