@import url('buttons.css');

:root {
    --blue: #1e90ff;
    --white: #ffffff;
    --primary: #BE1E2D;
    --navbarHeight: 64px;
    --navbarHeightMobile: 56px;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f1f4f6;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	/**/
	-webkit-touch-callout: none !important;
}

a {
    text-decoration: none;
    color: #039be5;
}

/* 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;
}

main {
    margin-top: var(--navbarHeightMobile);
    height: calc(100vh - 56px);
    overflow-x: hidden;
    overflow-y: auto;
}
.inside-main {
    padding: 10px;
}

.card, .dropdown-menu {
    box-shadow: 0 2px 15px -3px rgba(0,0,0, 0.07), 0 10px 20px -2px rgba(0,0,0, 0.04);
    border: 0;
    border-radius: 0.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* buttons */
.btn {
    padding-left: 20px;
    padding-right: 20px;
}
button .spinner-border {
    display: none;
}
button.has_progress .spinner-border {
    display: inline-block;
}

/* jquery ui */
.ui-widget.ui-widget-content {
    z-index: 999 !important;
    background: #fff;
    box-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.4), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
    border: none;
    padding: 15px;
}
.ui-datepicker td a {
    text-align: center;
}
.ui-state-default, .ui-widget-content .ui-state-default {
    border: 1px solid #fff;
}

/* -------------- */
.dw-red {
    color: #dc3545;
    .material-symbols-outlined {
        color: #dc3545;
        font-size: 50px;
    }
    .card-footer {
        background-color: #f8d7da;
        border-top: 0;
        text-align: center;
    }
    a {
        color: #dc3545;
        text-transform: uppercase;
    }
}
.dw-blue {
    color: #0d6efd;
    .material-symbols-outlined {
        color: #0d6efd;
        font-size: 50px;
    }
    .card-footer {
        background-color: #cfe2ff;
        border-top: 0;
        text-align: center;
    }
    a {
        color: #0d6efd;
        text-transform: uppercase;
    }
}
.dw-violet {
    color: #4650dd;
    .material-symbols-outlined {
        color: #4650dd;
        font-size: 50px;
    }
    .card-footer {
        background-color: #dadcf8;
        border-top: 0;
        text-align: center;
    }
    a {
        color: #4650dd;
        text-transform: uppercase;
    }
}
.dw-green {
    color: #35b653;
    .material-symbols-outlined {
        color: #35b653;
        font-size: 50px;
    }
    .card-footer {
        background-color: #d7f0dd;
        border-top: 0;
        text-align: center;
    }
    a {
        color: #35b653;
        text-transform: uppercase;
    }
}

/* navbar & sidenav */
.navbar {
    height: var(--navbarHeightMobile);
    box-shadow: 0 4px 12px 0 rgba(0,0,0, 0.07), 0 2px 4px rgba(0,0,0, 0.05);
}
.navbar-brand {
    flex-grow: 1; justify-content: center; display: flex;
}

#sidenav {
    box-shadow: 0 4px 12px 0 rgba(0,0,0, 0.07), 0 2px 4px rgba(0,0,0, 0.05);
    border: 0;
    max-width: 80vw;
    font-size: 14px;
}
.navbar-toggler {
    border: 0;
}
.navbar-toggler:focus {
    box-shadow: none;
}

.menu-item:not(.submenu-item), .offcanvas-body .collapse {
    border-bottom: 1px solid rgba(196, 196, 196, 0.2);
}

.menu-item {
    display: block;
    padding: 15px 10px 15px 20px;
    color: rgba(0,0,0,0.87);
    cursor: pointer;
}
.menu-item div span:not(.material-symbols-outlined) {
    flex-grow: 1;
    line-height: 1.6;
    padding-left: 15px;
    font-size: 15px;
}
.menu-item .chevron {
    transition: transform .2s;
    opacity: .5;
}
.menu-item:hover {
    background: rgba(0, 0, 0, 0.05);
}
.menu-item:active, .menu-item.active {
    background: rgba(0, 0, 0, 0.07);
}
.submenu-item {
    padding: 15px 20px 15px 40px;
}
#sidenav ul li .material-symbols-outlined {
    color: rgba(0,0,0,0.54);
}

.collapsed .chevron {
    transform: rotate(90deg);
}

@media only screen and (min-width: 992px) {
    main {
        margin-top: var(--navbarHeight);
        height: calc(100vh - var(--navbarHeight));
    }
    .inside-main {
        padding: 20px;
    }
    .navbar {
        height: 64px;
    }
    #sidenav {
        visibility: visible;
        transform: none;
        max-width: 250px;
    }
    .navbar, #main {
        margin-left: 250px;
    }
}

/* -- */
.waves-effect {
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
}
.c-ripple {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: transparent;
}
.c-ripple__circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .25);
    .c-ripple.is-active & {
        animation: a-ripple .4s ease-in;
    }
}
@keyframes a-ripple {
    0% {
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    100% {
        width: 200%;
        padding-bottom: 200%;
        opacity: 0;
    }
}