﻿:root {
    --bs-font-sans-serif: 'Open Sans', sans-serif !important;
}

html > * {
    font-family: var(--bs-font-sans-serif);
}

/**-CUSTOMER-**/
/*loading.css*/
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-image {
    width: 300px;
    height: auto;
    animation: flip 2s infinite;
}

@keyframes flip {
    0% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(180deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.loading-text {
    margin-top: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #48b04e;
    display: inline-block;
    animation: wave 1.5s infinite;
}
/*Toast */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}
/**CSS MENU-LEFT**/
@media (max-width: 1180px) {
    .layout-wrapper:not(.layout-horizontal) .bg-menu-theme .menu-inner > .menu-item.active:before {
        position: unset !important;
    }
}
.menu-vertical .menu-header {
    margin: 0rem 0 -0.5rem 0 !important;
}
.bg-menu-theme .menu-sub > .menu-item.active > .menu-link:not(.menu-toggle):before {
    background-color: #00ff0e !important;
    border: 3px solid #e7e7ff !important;
}

/*.bg-menu-theme .menu-sub > .menu-item > .menu-link:before {
    background-color: #1c5c00 !important;
}*/

.bg-menu-theme .menu-item.active > .menu-link:not(.menu-toggle) {
    color: #696cff !important;
}

.bg-menu-theme .menu-inner > .menu-item.open .menu-item.active > .menu-link::before {
    background-color: #696cff !important;
}

.menu-item .menu-link:hover div {
    color: #696cff !important;
}

.bg-menu-theme .menu-header {
    color: #003366 !important;
    font-weight: bold !important;
}

.bg-menu-theme .menu-link {
    font-weight: bold !important;
}

.app-brand-text {
    transition: color 0.3s ease;
}

    .app-brand-text:hover {
        color: #e9ecef;
    }

.brand-text {
    font-weight: bold;
    color: #000;
    transition: color 0.3s ease;
}

    .brand-text:hover {
        color: #696cff;
    }

.layout-menu {
    position: relative;
    background: url("/images/menuBG.png") no-repeat center center;
    background-size: cover;
}

    .layout-menu::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: linear-gradient(to bottom, rgb(255 255 255 / 95%) 0, rgb(204 255 209 / 12%) 100%);
        z-index: 1;
        backdrop-filter: blur(4px);
    }

    .layout-menu > * {
        z-index: 2;
    }

.layout-menu-1 {
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .layout-menu-1:hover {
        background-color: #696cff;
        color: #ffffff;
        border-radius: 5px;
    }


/**CSS HEADER-NAVBAR**/
.layout-navbar.navbar-detached {
    margin: -0.25rem auto 0 !important;
    border-radius: 0rem !important;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu {
    animation: slideIn 0.3s ease;
}

.navbar-nav-left .navbar-brand {
    font-size: 18px;
    color: #000;
}
#btn_noti {
    margin-top: -8px;
}
/* For smaller devices, reduce font size further */
@media (max-width: 600px) {
    .navbar-nav-left .navbar-brand {
        font-size: 14px;
    }
}

/* For very small devices (example: extra small mobile) */
@media (max-width: 376px) {
    .navbar-nav-left .navbar-brand {
        font-size: 12px;
    }

    .navbar-nav-right .nav-item .nav-link svg {
        width: 20px;
        height: 20px;
    }

    .navbar-nav-right .nav-item .avatar img {
        width: 30px;
        height: 30px;
    }

    .navbar-nav-right {
        display: flex;
        gap: 0;
    }
}

@media (max-width: 350px) {
    .navbar-nav-left .navbar-brand {
        font-size: 11px;
    }
}

@media (max-width: 337px) {
    .navbar-nav-left .navbar-brand {
        font-size: 10px;
    }
}

.navbar-nav-right .nav-item .nav-link {
    font-size: 14px;
    color: #000;
    transition: color 0.3s ease, transform 0.3s ease;
}

    .navbar-nav-right .nav-item .nav-link:hover {
        color: #000;
        transform: scale(1.05);
    }

.navbar {
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
    font-weight: bold !important;
}

    .navbar:hover {
        background-color: #e9ecef;
    }

.nav-link {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    transition: color 0.3s ease;
}

    .nav-link:hover {
        color: #007bff;
    }

.layout-navbar {
    position: relative;
    background-size: cover;
}

    .layout-navbar::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: linear-gradient(to bottom, rgb(255 255 255 / 95%) 0, rgb(255 255 255 / 30%) 100%);
        background-color: #b7dad7;
        z-index: 1;
    }

    .layout-navbar > * {
        z-index: 2;
    }

.navbar-brand .logo {
    color: #48b04e;
}

.navbar-brand .leaf {
    color: #6ab04c;
}

/*CSS BG Label maxlength*/
.label.label-success {
    background-color: #69b5ff;
    color: #ffffff;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
}

.label.label-danger {
    background-color: #f44336;
    color: #ffffff;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
}
/*CSS SELECT2 BORDER*/
.select2-container .select2-selection--single {
    height: 39px !important;
    border-radius: 4px;
    border-color: #000;
}

.select2-selection__rendered {
    line-height: 36px !important;
    padding-left: 12px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 39px;
}

.select2-dropdown {
    border-radius: 4px;
}

.field-validation-valid {
    color: red;
    font-size: 0.875em;
}

input[type="number"]:read-only {
    background-color: #f9f9f9;
    cursor: not-allowed;
}
/* DatePicker */
/* Custom CSS for date picker */

.datepicker {
    padding: 0.4375rem 0.875rem !important;
    font-size: 0.9375rem !important;
    font-weight: 400 !important;
    line-height: 1.53 !important;
    color: #000 !important;
    background-color: #fff !important;
    background-clip: padding-box !important;
    border: 1px solid #000 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    border-radius: 0.375rem !important;
}


    .datepicker.datepicker-dropdown {
        width: 18.75rem;
        padding: .375rem .75rem .75rem;
        z-index: 1060 !important;
        border-radius: 0;
    }

        .datepicker.datepicker-dropdown:after,
        .datepicker.datepicker-dropdown:before {
            display: none;
        }

    .datepicker .datepicker-switch,
    .datepicker .next,
    .datepicker .prev {
        padding: .625rem;
        min-width: 2.5rem;
    }

        .datepicker .datepicker-switch:hover,
        .datepicker .next:hover,
        .datepicker .prev:hover {
            background: 0 0 !important;
            color: #3f78e0;
        }

    .datepicker .next,
    .datepicker .prev {
        overflow: hidden;
        text-align: center;
        font-size: 2rem; 
        width: 2.5rem; 
        height: 2.5rem;
        line-height: 2.5rem; 
    }
    .datepicker .datepicker-switch {
        font-weight: 600;
        font-size: .9625rem;
        color: #3f78e0;
        width: 100% !important;
    }

    .datepicker .datepicker-switch,
    .datepicker .next,
    .datepicker .prev {
        padding: .3125rem;
    }

    .datepicker .datepicker-days,
    .datepicker .datepicker-months,
    .datepicker .datepicker-years {
        position: relative;
    }

        .datepicker .datepicker-days table {
            width: 100%;
        }

            .datepicker .datepicker-days table thead tr th.dow {
                color: #c3c3c3;
                font-size: .74375rem;
                font-weight: 600;
                border-radius: 0;
                padding: .3125rem 0;
            }

            .datepicker .datepicker-days table tbody tr td {
                padding: .5rem 0;
                border-radius: 0;
                font-weight: 600;
                font-size: .74375rem;
                border: 1px solid #d3d7df;
                color: var(--bs-inverse);
                width: 14%;
            }

                .datepicker .datepicker-days table tbody tr td.old,
                .datepicker .datepicker-days table tbody tr td.new {
                    color: #c3c3c3;
                }

                .datepicker .datepicker-days table tbody tr td.focused,
                .datepicker .datepicker-days table tbody tr td.range,
                .datepicker .datepicker-days table tbody tr td:hover {
                    color: #fff;
                    background: #3f78e0 !important;
                }

                .datepicker .datepicker-days table tbody tr td.active,
                .datepicker .datepicker-days table tbody tr td.selected,
                .datepicker .datepicker-days table tbody tr td.today {
                    background: #3f78e0 !important;
                    border-color: #3f78e0 !important;
                    color: #fff;
                    text-shadow: none;
                    position: relative;
                }

                    .datepicker .datepicker-days table tbody tr td.active:after,
                    .datepicker .datepicker-days table tbody tr td.active:before,
                    .datepicker .datepicker-days table tbody tr td.selected:after,
                    .datepicker .datepicker-days table tbody tr td.selected:before,
                    .datepicker .datepicker-days table tbody tr td.today:after,
                    .datepicker .datepicker-days table tbody tr td.today:before {
                        content: "";
                        position: absolute;
                        top: 0;
                        bottom: -1px;
                        background: #3f78e0;
                        width: 1px;
                        left: -1px;
                    }

                    .datepicker .datepicker-days table tbody tr td.active:after,
                    .datepicker .datepicker-days table tbody tr td.selected:after,
                    .datepicker .datepicker-days table tbody tr td.today:after {
                        bottom: auto;
                        top: -1px;
                        width: auto;
                        height: 1px;
                        right: -1px;
                    }

        .datepicker .datepicker-centuries table tbody tr td,
        .datepicker .datepicker-decades table tbody tr td,
        .datepicker .datepicker-months table tbody tr td,
        .datepicker .datepicker-years table tbody tr td {
            padding-top: .1875rem;
        }

            .datepicker .datepicker-centuries table tbody tr td span,
            .datepicker .datepicker-decades table tbody tr td span,
            .datepicker .datepicker-months table tbody tr td span,
            .datepicker .datepicker-years table tbody tr td span {
                width: 25%;
                margin: 0;
                border-radius: 0;
                border: 1px solid #d3d7df;
                font-weight: 600;
                font-size: .7875rem;
                margin: 0 -1px -1px 0;
                color: var(--bs-inverse);
            }

                .datepicker .datepicker-centuries table tbody tr td span.focused,
                .datepicker .datepicker-centuries table tbody tr td span:hover,
                .datepicker .datepicker-decades table tbody tr td span.focused,
                .datepicker .datepicker-decades table tbody tr td span:hover,
                .datepicker .datepicker-months table tbody tr td span.focused,
                .datepicker .datepicker-months table tbody tr td span:hover,
                .datepicker .datepicker-years table tbody tr td span.focused,
                .datepicker .datepicker-years table tbody tr td span:hover {
                    color: #fff !important;
                    background: #3f78e0 !important;
                }

                .datepicker .datepicker-centuries table tbody tr td span.focused,
                .datepicker .datepicker-decades table tbody tr td span.focused,
                .datepicker .datepicker-months table tbody tr td span.focused,
                .datepicker .datepicker-years table tbody tr td span.focused {
                    color: #3f78e0;
                }

                .datepicker .datepicker-centuries table tbody tr td span.active,
                .datepicker .datepicker-decades table tbody tr td span.active,
                .datepicker .datepicker-months table tbody tr td span.active,
                .datepicker .datepicker-years table tbody tr td span.active {
                    border-color: #3f78e0;
                    position: relative;
                    background: #3f78e0 !important;
                    color: #fff !important;
                    text-shadow: none;
                }
/* End of custom CSS for date picker */

/*WizardStep*/
.wizard-container {
    width: 60%;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
}

.step {
    width: 40px;
    height: 40px;
    background-color: #ccc;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    cursor: pointer;
}

.connector {
    flex-grow: 1;
    height: 4px;
    background-color: #ccc;
    margin: 18px 0;
}

@media (max-width: 576px) {
    .connector {
        margin: 12px 0 !important;
    }

    .step {
        width: 28px !important;
        height: 28px !important;
    }
}

.step.active, .step.completed {
    background-color: #696cff;
    color: #fff;
}

.connector.active, .connector.completed {
    background-color: #696cff;
}

.content {
    display: flex;
    flex-direction: column;
}

.step-content {
    display: none;
}

    .step-content.active {
        display: block;
    }

/*
Button with icon
*/
.btn {
    cursor: pointer;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
/*WEETALERT2 max index*/
div:where(.swal2-container) {
    z-index: 9999 !important;
}
/*Fix Icon with Text nav tabs*/
.nav-tabs .nav-link, .nav-pills .nav-link {
    display: unset !important;
}

.unread-circle {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: blue;
    border-radius: 100%;
    margin-left: 10px;
    vertical-align: middle;
}
div.dataTables_wrapper div.dataTables_processing {
    z-index: 100;
}

/*New Toggle Open Menu Mobile*/
.toggle-icon-menu {
    position: fixed;
    left: 14px;
    top: 13%;
    cursor: pointer;
    background-color: #ffffffa6;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    z-index: 1099
}
@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}
.animated-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 16px 50px;
    /* border: 4px solid; */
    border-color: transparent;
    font-size: 16px;
    background-color: inherit;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
    background: linear-gradient(234deg, #55b0be, #5ac9d8, #5ad865, #5ad865, #55b0be);
    background-size: 300% 300%;
    border-radius: 10px;
    font-weight: 600;
    color: greenyellow;
    /* box-shadow: 0 0 0 2px greenyellow; */
    cursor: pointer;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    animation: gradient-animation 8s ease infinite;
}


.animated-button svg {
    position: absolute;
    width: 24px;
    fill: greenyellow;
    z-index: 9;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .arr-1 {
    right: 16px;
}

.animated-button .arr-2 {
    left: -25%;
}

.animated-button .circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: greenyellow;
    border-radius: 100px;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .text {
    position: relative;
    z-index: 1;
    transform: translateX(-12px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button:hover {
    box-shadow: 0 0 0 12px transparent;
    color: #212121;

}

.animated-button:hover .arr-1 {
    right: -25%;
}

.animated-button:hover .arr-2 {
    left: 16px;
}

.animated-button:hover .text {
    transform: translateX(12px);
}

.animated-button:hover svg {
    fill: #212121;
}

.animated-button:active {
    scale: 0.95;
    box-shadow: 0 0 0 4px greenyellow;
}

.animated-button:hover .circle {
    width: 100%;
    height: 220px;
    opacity: 1;
}

/* Color role */

.text-default {
    --bs-text-opacity: 1;
    color: rgba(var(--bs-info-rgb), var(--bs-text-opacity)) !important;
}

.border-default {
    border-color: var(--bs-info) !important;
}

/* Color bg qr */
.bg-qr-cus {
    background-color: #A25739 !important; /* #A25739 */
}

.bg-qr-pcm {
    background-color: #127D49 !important; /* #127D49 */
}

.bg-qr-agc {
    background-color: #7678f5 !important; /* #696cff */
}

.bg-qr-bus {
    background-color: #ffab00 !important; 
}

/* Color bg card */
.bg-cus {
    background-color: rgba(162, 87, 57, 0.1) !important; /* #A25739 */
}

.bg-pcm {
    background-color: rgba(18, 125, 73, 0.1) !important; /* #127D49 */
}

.bg-agc {
    background-color: rgba(105, 108, 255, 0.1) !important; /* #696cff */
}

.bg-bus {
    background-color: rgba(247, 167, 35, 0.1) !important; /* #F7A723 */
}