:root {
    --bs-default: #128C7E;
    --bs-default-primary: #128C7E;
    --bs-default-secondary: #128C7E;
}
/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.3);
}

#preloader:before {
    content: "";
    position: fixed;
    top: calc(50% - 30px);
    left: calc(50% - 30px);
    border: 6px solid #128C7E;
    border-top-color: #d2f9eb;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    -webkit-animation: animate-preloader 1s linear infinite;
    animation: animate-preloader 1s linear infinite;
}

@-webkit-keyframes animate-preloader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes animate-preloader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
    position: fixed;
    visibility: hidden;
    font-size: 20px;
    color: #fff;
    opacity: 0;
    right: 20px;
    bottom: 20px;
    z-index: 996;
    background-image: linear-gradient(195deg, #128c7e, #21524e);
    width: 45px;
    height: 45px;
    line-height: 45px;
    border-radius: 5px;
    transition: all 0.3s ease-out 0s;
    text-align: center;
    -webkit-transition: all 0.3s ease-out 0s;
    -moz-transition: all 0.3s ease-out 0s;
    -ms-transition: all 0.3s ease-out 0s;
    -o-transition: all 0.3s ease-out 0s;
}

.back-to-top i {
    font-size: 20px;
    color: #fff;
    line-height: 0;
}

.back-to-top:hover {
    background-image: linear-gradient(195deg, #128c7e, #21524e);
    color: #fff;
    transform: scale(1.1);
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}

/*--------------------------------------------------------------
# image_preview
--------------------------------------------------------------*/
#image_preview {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    top: 145px;
    z-index: 996;
    width: 350px;
    height: 350px;
    transition: all 0.4s;
}

#image_preview.active {
    visibility: visible;
    opacity: 1;
}

/*--------------------------------------------------------------
# DataTables
--------------------------------------------------------------*/

.dataTables_wrapper .dataTables_length select{
    background-color: revert !important;
}

.table-image {
    td, th {
        vertical-align: middle;
    }
}

/*--------------------------------------------------------------
# Whatsapp button
--------------------------------------------------------------*/

@keyframes pulse-whats {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(51, 217, 178, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(51, 217, 178, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(51, 217, 178, 0);
    }
}
.btn-whats-corner-screen {position: fixed;bottom: 84px;right: 18px;z-index: 10;display: block;width: 50px;height: 50px;background-color: #25D366;border-radius: 50%;animation: pulse-whats 2s infinite;}

/*--------------------------------------------------------------
# Tools
--------------------------------------------------------------*/

.hide {display: none !important;}
.show {display: block !important;}
.is-invalid {
    color: #fd5c70;
}

.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top, #f2fbfa 0%, #e3f3f0 45%, #dff0ed 100%);
}

.login-card {
    border-radius: 1rem;
    background-color: #ffffff;
}

.login-brand span {
    font-size: 2.5rem;
    padding: 0.75rem;
    border-radius: 50%;
    background-color: rgba(19, 140, 126, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-form .form-control {
    min-height: 3rem;
    border-radius: 0.65rem;
}

.login-card .message {
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.login-card .message.error {
    background: rgba(220, 53, 69, 0.12);
    color: #842029;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.login-card .message.warning {
    background: rgba(255, 193, 7, 0.18);
    color: #7a5a00;
    border: 1px solid rgba(255, 193, 7, 0.35);
}

.login-card .message.success {
    background: rgba(25, 135, 84, 0.12);
    color: #0f5132;
    border: 1px solid rgba(25, 135, 84, 0.3);
}

.login-helper {
    font-size: 0.85rem;
}

@media (max-width: 575.98px) {
    .login-card {
        border-radius: 0.75rem;
    }

    .login-form .form-control {
        font-size: 0.95rem;
    }
}

.app-sidenav {
    width: 280px;
    min-height: 100vh;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    padding: 0;
    overflow-y: auto;
    z-index: 1040;
    transform: translateX(-110%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-sidenav .navbar-brand-image {
    height: 32px;
}

.app-sidenav .navbar-nav {
    gap: 0.35rem;
}

.app-sidenav .nav-link {
    border-radius: 0.75rem;
    color: var(--bs-gray-700);
    padding: 0.65rem 0.85rem;
    font-weight: 500;
}

.app-sidenav .nav-link:hover {
    background-color: var(--bs-light);
    color: var(--bs-primary);
}

.app-sidenav .nav-link.active {
    background-color: var(--bs-primary-bg-subtle);
    color: var(--bs-primary-text-emphasis);
    font-weight: 600;
}

.app-sidenav-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--bs-primary-bg-subtle);
    color: var(--bs-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.active .app-sidenav-icon {
    background-color: var(--bs-default-secondary);
    color: white;
}

.app-sidenav-text {
    font-size: 0.95rem;
}

.app-sidenav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: 0;
}

.main-content {
    margin-left: 0;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.sidenav-toggler {
    border: 0;
}

.sidenav-toggler-inner {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
    padding: 0.25rem;
}

.sidenav-toggler-line {
    display: block;
    width: 1.35rem;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
}

@media (min-width: 992px) {
    .app-sidenav {
        transform: none !important;
        box-shadow: 0 0.75rem 1.125rem rgba(0, 0, 0, 0.08);
    }

    .main-content {
        margin-left: 280px;
    }
}

@media (max-width: 991.98px) {
    .g-sidenav-show.g-sidenav-pinned .app-sidenav {
        transform: translateX(0);
        box-shadow: 0 0.75rem 1.125rem rgba(0, 0, 0, 0.08);
    }

    .app-sidenav {
        width: 280px;
        border-right: 0;
        border-bottom: 1px solid var(--bs-border-color, #dee2e6);
    }

    .main-content {
        margin-left: 0;
    }
}
