/* DEFINITION OF CONSTANTS */

:root {
    --main-bg-color: #023372;
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    overflow: auto;
}

.main-background-color {
    background-color: var(--main-bg-color) !important;
}


/* FIX THE WORKING OF THE SIDENAV ON MOBILE OR SMALL SCREENS 
 See http://archives.materializecss.com/0.100.2/side-nav.html 
*/

header,
main,
footer {
    margin-left: 300px;
}

@media only screen and (max-width: 992px) {
    header,
    main,
    footer {
        margin-left: 20px;
    }
}

.side-nav li>a>i {
    margin-right: 20px !important;
    color: white !important;
}

.side-nav li>a {
    color: white !important;
}

.sidenav-header {
    margin-top: 20px;
    margin-bottom: 20px;
}

.container {
    width: 90%;
}

.modal {
    max-height: 90%;
}

.modal-form-row {
    margin-bottom: 0px;
}

.edit_user_btn {
    position: relative;
    top: -75px;
}

.row {
    margin-bottom: 5px;
    padding-bottom: 5px;
}

td {
    padding: 5px 5px !important;
}

.dataTables_filter {
    display: none;
}

.add_button {
    position: fixed;
    bottom: 94px;
    right: 24px;
}

.bug_button {
    position: fixed;
    text-align: right;
}

#clients_table tr:hover td {
    cursor: pointer;
    background-color: rgb(156, 156, 156) !important;
}

#sales_table tr:hover td {
    cursor: pointer;
    background-color: rgb(156, 156, 156) !important;
}

#invoices_table tr:hover td {
    cursor: pointer;
    background-color: rgb(156, 156, 156) !important;
}


/* fixes pointer events for checkboxes and radio buttons in input-fields ( add class fixed to those fields) */

.fixed [type="checkbox"]+label,
.fixed [type="radio"]+label {
    pointer-events: auto;
}


/* Change style of number inputs*/

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

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.number-input {
    border: 2px solid #ddd;
    display: inline-flex;
    height: 50px;
}

.number-input,
.number-input * {
    box-sizing: border-box;
}

.number-input a {
    outline: none;
    -webkit-appearance: none;
    background-color: transparent;
    border: none;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 50px;
    cursor: pointer;
    margin: 0;
    position: relative;
}

.number-input a:before,
.number-input a:after {
    display: inline-block;
    position: absolute;
    left: 50%;
    top: 45%;
    content: '';
    width: 1rem;
    height: 2px;
    background-color: #212121;
    transform: translate(-50%, -50%);
}

.number-input a.plus:after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.number-input input[type=number] {
    font-family: sans-serif;
    max-width: 5rem;
    padding: auto;
    border: solid #ddd;
    border-width: 0 2px;
    font-size: 2rem;
    height: 48px;
    font-weight: bold;
    text-align: center;
}

table.dataTable,
table.dataTable th,
table.dataTable td {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

tr.group,
tr.group:hover {
    background-color: #ddd !important;
}