/**************************************************/
/* PRELOADER */
/**************************************************/
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity, 250ms;
}

.preloader.hidden {
    opacity: 0;
}

.preloader .spinner-border {
    width: 2.5rem;
    height: 2.5rem;
    color: #0d47a1;
    border-width: .1875rem;
}

/**************************************************/
/* COMMON */
/**************************************************/
* {
}

html {
    width: 100%;
    height: 100%;
}

body {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: #212121;
}

span.inputRequired {
    color: #ff4444;
}

input[type = "file"] {
    outline: none;
}

input[readonly]:focus {
    border-color: #ced4da;
}

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

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

img {
    max-width: 100%;
    max-height: 100%;
}

.z-depth-1 {
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .16), 0 2px 10px 0 rgba(0, 0, 0, .12);
}

.z-depth-2 {
    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, .18), 0 4px 15px 0 rgba(0, 0, 0, .15);
}

.text-v-center {
    vertical-align: middle !important;
}

.mw-mc {
    max-width: max-content !important;
}

@media (min-width: 992px) {
    .w-lg-50 {
        width: 50%;
    }

    .w-lg-25 {
        width: 25%;
    }
}


/**************************************************/
/* BUTTONS */
/**************************************************/
.btn-grey {
    background-color: #eeeeee;
    color: #212121;
}

.btn-grey:hover {
    color: #212121;
}

.btn-grey:active {
    background-color: #e0e0e0;
    color: #212121;
}

.btn-green {
    background-color: #00C851;
    color: #ffffff;
}

.btn-green:hover {
    color: #ffffff;
}

.btn-green:active {
    background-color: #007E33;
    color: #ffffff;
}

.btn-orange {
    background-color: #ffbb33;
    color: #ffffff;
}

.btn-orange:hover {
    color: #ffffff;
}

.btn-orange:active {
    background-color: #FF8800;
    color: #ffffff;
}

.btn-red {
    background-color: #ff4444;
    color: #ffffff;
}

.btn-red:hover {
    color: #ffffff;
}

.btn-red:active {
    background-color: #CC0000;
    color: #ffffff;
}

/**************************************************/
/* BOOTSTRAP */
/**************************************************/
a {
    outline: none;
}

button:focus {
    outline: none;
}

.btn {
    border-radius: .125rem;
    border-color: transparent;
}

.btn {
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .16), 0 2px 10px 0 rgba(0, 0, 0, .12);
}

.btn:focus:not([disabled]) {
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .16), 0 2px 10px 0 rgba(0, 0, 0, .12);
}

.btn:hover:not([disabled]) {
    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, .18), 0 4px 15px 0 rgba(0, 0, 0, .15);
}

.navbar-toggler {
    outline: none;
}

.close {
    outline: none;
}

.close:hover {
    color: #CC0000;
}

.btn-link {
    color: #212121;
}

.btn-link:hover {
    color: #0d47a1;
    text-decoration: none;
}

.btn-link:focus {
    color: #0d47a1;
    text-decoration: none;
}

.nav-pills .nav-link {
    color: #212121;
    border-radius: .125rem;
}

.nav-pills .nav-link.nav-link-sm {
    padding: .25rem .5rem;
}

.nav-pills .nav-link.active {
    background-color: #00C851;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .16), 0 2px 10px 0 rgba(0, 0, 0, .12);
}

input.form-control,
select.form-control,
select.custom-select,
.custom-file-label {
    border-radius: .125rem;
}

.custom-file-label::after {
    border-radius: 0 .125rem .125rem 0;
}

.table-responsive {
    min-width: 100%;
    max-width: max-content;
}

.table {
    min-width: 100%;
}

table.table thead th {
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
    background-color: rgba(0, 0, 0, .075);
}

table.table th,
table.table td {
    padding: .5rem;
    border: 1px solid #dee2e6;
    line-height: 1.25;
}

table.table th {
    font-weight: 500;
}

table.table tbody tr:hover {
    background-color: rgba(0, 0, 0, .05);
}

table.table tbody tr.active {
    background-color: rgba(52, 181, 229, .25);
    transition: all .2s ease-in;
}

.modal-content {
    border: none;
    border-radius: .125rem;
    box-shadow: 0 0 .25rem rgba(0, 0, 0, .5);
}

.form-control:focus,
.custom-select:focus,
.custom-file-input:focus ~ .custom-file-label {
    box-shadow: none;
}

.alert {
    border-radius: .125rem;
    padding: .25rem .5rem;
}

.pagination-wrapper {
    padding: 1rem 0;
}

.pagination-wrapper nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pagination {
    display: flex;
    margin: 0;
}

.pagination .page-item {
    display: flex;
}

.pagination .page-link {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #212121;
    padding: .25rem .5rem;
}

.pagination .page-link:focus {
    box-shadow: unset;
}

.page-item:first-child .page-link {
    border-top-left-radius: .225rem;
    border-bottom-left-radius: .125rem;
}

.page-item:last-child .page-link {
    border-top-right-radius: .125rem;
    border-bottom-right-radius: .125rem;
}

.page-item.active .page-link {
    background-color: #0d47a1;
    border-color: #0d47a1;
}

.custom-file-label {
    overflow: hidden;
}

.custom-file-sm .custom-file-label {
    height: calc(1.5em + .5rem + 2px);
    padding: .25rem .5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .125rem;
}

.custom-file-sm .custom-file-input {
    width: 100%;
    height: 100%;
}

.custom-file-sm .custom-file-label::after {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-select-sm {
    height: calc(1.5em + .5rem + 2px);
    padding: .25rem 2rem .25rem .5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .125rem;
}

/**************************************************/
/* DATATABLES */
/**************************************************/
table.dataTable {
    margin: 0 !important;
    border-collapse: collapse !important;
}

/**************************************************/
/* LOGIN REGISTER RESET */
/**************************************************/
.card.login,
.card.register,
.card.email,
.card.reset {
    border: none;
    border-radius: .125rem;
}

/**************************************************/
/* HEADER */
/**************************************************/
header {
    position: relative;
    background-color: #0d47a1;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .16), 0 2px 10px 0 rgba(0, 0, 0, .12);
    z-index: 500;
}

header .navbar-header {
    padding: 0;
}

header .navbar-brand {
    margin: 0;
    padding: .75rem 1rem;
    font-size: 14px;
    color: #ffffff !important;
    font-weight: bold;
}

header .nav-link {
    padding: .75rem 1rem !important;
    color: #ffffff !important;
}

header .nav-link:hover {
    background-color: rgba(0, 0, 0, .25);
}

header .dropdown-menu {
    margin: 0;
    padding: .5rem;
    border: 0;
    border-radius: 0;
    min-width: 100%;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .16), 0 2px 10px 0 rgba(0, 0, 0, .12);
}

header .dropdown-item {
    padding: .25rem .75rem;
    font-size: 14px;
    color: #212121;
}

header .dropdown-item:hover {
    background: none;
    text-decoration: underline;
}

header .dropdown-item:active {
    background: none;
    color: #212121;
}

header .dropdown-item:focus {
    background: none;
}

header #logout-form {
    display: none;
}

header .app-menu-header a.active {
    background-color: rgba(0, 0, 0, .25);
}

/**************************************************/
/* MAIN */
/**************************************************/
main {
    flex: auto;
    display: flex;
    overflow: auto;
}

/**************************************************/
/* FOOTER */
/**************************************************/
footer {
    position: relative;
    background-color: #0d47a1;
    box-shadow: 0 -2px 5px 0 rgba(0, 0, 0, .16), 0 -2px 10px 0 rgba(0, 0, 0, .12);
    z-index: 500;
}

footer .copyright {
    padding: .5rem 0;
    color: #ffffff;
}

/**************************************************/
/* LOADING */
/**************************************************/
.hasLoading {
    position: relative;
}

.hasLoading .loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background-color: #ffffff;
    z-index: 999;
    border-bottom-left-radius: .125rem;
    border-bottom-right-radius: .125rem;
}

.hasLoading .loading .spinner-border {
    color: #0d47a1;
    border-width: .1875rem;
}

.hasLoading .loading.active {
    display: flex;
}

.hasLoading .result {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background-color: #ffffff;
    z-index: 999;
    border-bottom-left-radius: .125rem;
    border-bottom-right-radius: .125rem;
}

.hasLoading .result-message {
    text-align: center;
    font-size: 1.5rem;
}

.hasLoading .result-message.success {
    color: #00C851;
}

.hasLoading .result-message.error {
    color: #ff4444;
}

.hasLoading .result.active {
    display: flex;
}

/**************************************************/
/* MAIN LEFT */
/**************************************************/
.main-left {
    padding: 0;
}

.main-left .toolbar {
    padding: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
}

.main-left .toolbar .form-search label {
    border: 1px solid #ced4da;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-left .toolbar .form-search input {
    border: none;
    height: calc(1.5em + .5rem);
}

.main-left .toolbar .form-search button {
    border: none;
    background: none;
    padding: 0 .75rem;
    min-width: auto;
    transition: all 250ms ease-in-out;
}

.main-left .toolbar .form-search button i {
    font-size: 1rem;
    color: #ced4da;
    transition: all 250ms ease-in-out;
}

.main-left .toolbar .form-search button:hover i {
    color: #0d47a1;
}

.main-left .toolbar .form-filter input {
    max-width: 100px;
}

.main-left .toolbar .form-filter button {
    border-radius: .125rem;
    height: calc(1.5em + .5rem + 2px);
    padding: .25rem 1rem;
    font-size: .875rem;
    line-height: 1.5;
    border: 1px solid #ced4da;
    background: none;
    transition: all 250ms ease-in-out;
}

.main-left .toolbar .form-filter button i {
    font-size: 1rem;
    color: #ced4da;
    transition: all 250ms ease-in-out;
}

.main-left .toolbar .form-filter button:hover {
    border-color: #0d47a1;
}

.main-left .toolbar .form-filter button:hover i {
    color: #0d47a1;
}

.main-left .data-table tbody td {
    white-space: nowrap;
}

.main-left .toolbar button i {
    color: #424242;
}

@media (min-width: 1367px) {
    .main-left .toolbar .form-search {
        max-width: 250px;
        width: 100%;
    }
}

@media (max-width: 450px) {
    .main-left .toolbar button {
        min-width: 50%;
        margin-bottom: .5rem;
    }

    .main-left .toolbar button:last-child {
        margin-bottom: 0;
    }
}

/**************************************************/
/* MAIN RIGHT */
/**************************************************/
.main-right {
    padding: 0;
}

/**************************************************/
/* MAIN RIGHT SIDEBAR */
/**************************************************/
.main-right .sidebar .nav {
    padding: 1rem 15px;
}

.main-right .sidebar .tab-content {
    position: relative;
    overflow: auto;
}

.sidebar-photo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    border-radius: .125rem;
    padding: .25rem;
}

.sidebar-photo-item img {
    max-width: 100%;
    max-height: 100%;
}

@media (min-width: 992px) {
    .main-right .sidebar {
        position: relative;
        z-index: 400;
        box-shadow: -2px 0 5px 0 rgba(0, 0, 0, .16), -2px 0 10px 0 rgba(0, 0, 0, .12);
    }
}

/**************************************************/
/* PAGES */
/**************************************************/

/**************************************************/
/* DASHBOARD */
/**************************************************/
.dashboard {
    padding: 1rem 0;
}

.dashboard .card-deck {
    margin: 0;
}

.dashboard .card {
    border: none;
    border-radius: .125rem;
    margin: 0 1rem 0 0;
    padding: 1rem;
    background: linear-gradient(45deg, #4285F4, #0d47a1);
}

.dashboard .card:last-child {
    margin: 0;
}

.dashboard .card-header {
    border: none;
    background: none;
    padding: 0;
    text-align: center;
    margin-bottom: .5rem;
}

.dashboard .card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: normal;
    color: #ffffff;
}

.dashboard .card-body {
    padding: 0;
    text-align: center;
}

.dashboard .card-text {
    font-size: 1rem;
    line-height: normal;
    color: #ffffff;
}

.dashboard .card-footer {
    padding: 0;
    border: none;
}

@media (max-width: 575px) {
    .dashboard .card {
        margin: 0 0 1rem 0;
    }
}

/**************************************************/
/* CEMETERIES */
/**************************************************/

/**************************************************/
/* PLACES */
/**************************************************/

/**************************************************/
/* BURIALS */
/**************************************************/

/**************************************************/
/* MAPS */
/**************************************************/
#map {
    height: 100%;
    margin: 0 -15px 0 -15px;
}

/**************************************************/
/* LEAFLET */
/**************************************************/

.leaflet-popup-content-wrapper {
    border-radius: .125rem !important;
}

.leaflet-popup-content p {
    margin: 0 0 10px 0 !important;
}

.leaflet-popup-content ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.leaflet-marker-icon {
    width: 10px !important;
    height: 10px !important;
    margin-top: -5px !important;
    margin-left: -5px !important;
    border-radius: 50%;
}

.leaflet-control-search input.search-input {
    width: 200px;
    max-width: 100%;
    outline: none;
}

.leaflet-control-search .search-tooltip {
    max-height: 200px !important;
}

/**************************************************/
/* AJAX FORM */
/**************************************************/
form.ajax .alert {
    display: none;
}

.btn-has-loading {
    position: relative;
}

.btn-has-loading .loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
}

form.is-loading .btn-has-loading .btn-text,
.btn-has-loading.is-loading .btn-text {
    opacity: 0;
}

form.is-loading .loading,
button.is-loading .loading {
    display: flex;
}
