/**

.iti--separate-dial-code {
    display: block !important;
}
label.file_upload {
    border: hidden!important;
}

.profile-cover {
    position: relative;
    height: 7.5rem;
    padding: 1.75rem 2rem;
    border-radius: .75rem
}

.profile-cover-content {
    position: relative;
    z-index: 1
}

.profile-cover-img-wrapper {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    inset-inline-start: 0;
    height: 7.5rem;
    background-color: #e7eaf3;
    border-radius: .75rem
}

.profile-cover-img {
    width: 100%;
    height: 7.5rem;
    -o-object-fit: cover;
    object-fit: cover;
    vertical-align: top;
    border-radius: .75rem
}

.profile-cover-avatar {
    display: -ms-flexbox;
    display: flex;
    margin: -6.3rem auto .5rem auto
}

.card > .profile-cover, .card > .profile-cover .profile-cover-img, .card > .profile-cover .profile-cover-img-wrapper {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0
}

.card > .card-header ~ .profile-cover, .card > .card-header ~ .profile-cover .profile-cover-img, .card > .card-header ~ .profile-cover .profile-cover-img-wrapper {
    border-radius: 0
}


@media (min-width: 992px) {
    .profile-cover {
        height: 10rem
    }

    .profile-cover-img-wrapper {
        height: 10rem
    }

    .profile-cover-img {
        height: 10rem
    }
}

.avatar-circle {
    border-radius: 50%
}

.avatar-circle .avatar-img, .avatar-circle .avatar-initials {
    border-radius: 50%
}


.avatar-uploader {
    cursor: pointer;
    display: inline-block;
    transition: .2s;
    margin-bottom: 0
}

.avatar-uploader:hover {
    border-color: #FC6A57
}

.avatar-uploader-input {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    inset-inline-start: 0;
    z-index: -1;
    opacity: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(19, 33, 68, .25);
    border-radius: 50%;
    transition: .2s
}

.avatar-uploader-trigger {
    position: absolute;
    bottom: 0;
    inset-inline-end: 0;
    cursor: pointer;
    border-radius: 50%
}

.avatar-uploader-icon {
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    align-items: center;
    color: #677788;
    background-color: #fff;
    border-radius: 50%;
    transition: .2s
}

.avatar-uploader:hover .avatar-uploader-icon {
    color: #fff;
    background-color: #FC6A57
}

.avatar-lg .avatar-uploader-icon {
    font-size: .75rem;
    width: 1.3125rem;
    height: 1.3125rem
}

.avatar-border-lg {
    border: .1875rem solid #fff
}

**/

.list-group-notification {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    border-radius: var(--bs-list-group-border-radius);
    max-height: 280px;
    overflow: scroll;
    -webkit-overflow-scrolling: touch;
}

.iti--allow-dropdown {
    width: 100%;
}

.ratio50_40 {
    aspect-ratio: 50 /40;
}

.col-mx-w300 td,
.col-mx-w300 th {
    max-width: 300px;
}

.truncate-line2 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.map-height {
    height: 310px !important;
}

.word-break {
    word-break: break-all;
}

/* .iti input, .iti input[type=tel], .iti input[type=text] {
    margin-right: 300px!important;
}

@media (max-width: 1441px) {
    .iti input, .iti input[type=tel], .iti input[type=text] {
        margin-right: 100px!important;
    }
} */

/* ripple effect  */

.ripple-animation {
    line-height: 1;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
    cursor: pointer;
    border-radius: 50%;
    transition: 250ms color;
    animation-name: wave;
    animation-duration: 1.3s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes wave {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
    }

    100% {
        box-shadow: 0 0 0 10px transparent;
    }
}

.mx-h-190-scroll {
    max-height: 190px;
    overflow-y: auto;
}

.text-dir-start {
    text-align: start !important;
}

[dir="rtl"] .text-dir-start {
    text-align: end !important;
}

.w-50px {
    width: 50px;
}

.w-80px {
    width: 80px;
}

.w-100px {
    width: 100px;
}

.aspect-ratio-3-1 {
    aspect-ratio: 3/1 !important;
}

.aspect-ratio-auto {
    aspect-ratio: auto !important;
}

.alert--primary {
    color: #133e38;
    background: #bff5ef;
    font-size: 12px;
}

.alert--primary .btn-close {
    box-shadow: none;
    outline: none;
}

.check-toggle-item .custom-checkbox {
    margin-bottom: 10px;
}

.check-toggle-item .check-toggle-content {
    display: none;
}

.status-warning-modal h5 {
    font-family: "Roboto", sans-serif;
}

.status-warning-modal {
    max-width: 436px !important;
    font-weight: 400;
    font-size: 13px;
    line-height: 21px;
    color: #a0a0a0;
}

.status-warning-modal h5 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 9px;
}

.btn--cancel {
    color: #ff6d6d !important;
    background: #ffdcdc !important;
    border-radius: 5px;
    height: 45px;
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
}

.text--primary-2 {
    color: var(--primary);
}

.max-349 {
    max-width: 349px;
}

.mb-20 {
    margin-bottom: 20px;
}

.btn--container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.min-w-120 {
    min-width: 120px;
}

.btn--container .btn {
    display: inline-flex;
    justify-content: center;
    text-align: center;
}

.absolute-white {
    color: var(--absolute-white);
}

/* New CSS */
.parcel-info-text {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--title-color);
}
.parcel-info-text .left {
    width: 85px;
}
.refund-reason {
    width: 310px;
}
.refund-reason-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}
.refund-reason-tooltip {
    --bs-tooltip-max-width: 287px;
    --bs-tooltip-arrow-width: 1.4rem;
    --bs-tooltip-arrow-height: 0.8rem;
    --bs-tooltip-padding-x: 1.2rem;
    --bs-tooltip-padding-y: 1rem;
    --bs-tooltip-border-radius: 0.6rem;
    --bs-tooltip-opacity: 1;
    --bs-tooltip-bg: #334257;
}
.refund-reason-tooltip .tooltip-inner {
    text-align: start;
    font-size: 11px;
}
.refund-reason-tooltip .tooltip-arrow {
    transform: translateX(-35px) !important;
    left: unset !important;
    right: 0;
}
.form--check {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 7px 12px;
    cursor: pointer;
    margin: 0;
}
.form--check .form-check-input {
    position: relative !important;
    margin: 0;
    inset: unset;
    box-shadow: none !important;
    pointer-events: none;
}
.edit-fare-dropdown {
    min-width: 223px;
    padding: 20px;
    top: unset !important;
    bottom: calc(100% + 18px) !important;
}
.edit-fare-dropdown::after {
    content: "";
    border-right: 1px solid var(--bs-primary);
    border-bottom: 1px solid var(--bs-primary);
    left: 20px;
    top: 100%;
    width: 10px;
    height: 10px;
    position: absolute;
    background: var(--bs-white);
    transform: translateY(-5px) rotate(45deg);
}
.dropdown .edit-fare-dropdown {
    display: block !important;
    margin-top: 0;
    transition: all ease 0.2s;
}
.dropdown:not(:hover) .edit-fare-dropdown {
    visibility: hidden;
    opacity: 0;
    transition-delay: 0.2s;
    -webkit-transition-delay: 0.2s;
    -moz-transition-delay: 0.2s;
}
@media screen and (min-width: 992px) {
    .edit-fare-dropdown::after {
        left: unset;
        right: 20px;
    }
    .edit-fare-dropdown {
        right: 0 !important;
        left: unset !important;
    }
    .extra-fare-setup-modal {
        max-width: 744px;
    }
}
@media screen and (min-width: 768px) {
    .extra-fare-setup-modal .modal-header {
        padding-inline: 30px;
    }
    .extra-fare-setup-modal .modal-body {
        padding-inline: 30px;
        padding-bottom: 30px;
    }
    .p-md-30px {
        padding: 30px;
    }
}
.border-e2e2e2 {
    border-color: #e2e2e2 !important;
}
.border-ced4da {
    border-color: #ced4da !important;
}
[theme="dark"] .form--check,
[theme="dark"] .border-e2e2e2,
[theme="dark"] .border-ced4da {
    border-color: var(--bs-border-color) !important;
}
.instruction-info {
    font-size: 13px;
    line-height: 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.list-lower-alpha {
    list-style: lower-alpha;
}
.extra-fare-setup-modal .btn-close {
    transform: translate(20px, -8px);
}
.mb-12px {
    margin-bottom: 12px;
}
.gap-10px {
    gap: 10px;
}
.mb-10px {
    margin-bottom: 10px;
}
.proof-file-item {
    display: block;
    width: 100%;
    max-width: 138px;
    position: relative;
}
.proof-file-item img {
    width: 100%;
    aspect-ratio: 148/100;
    object-fit: cover;
    border-radius: 5px;
}
.proof-file-item .icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    aspect-ratio: 1;
}
.proof-file-item > * {
    height: 148px;
    overflow: hidden;
    object-fit: cover;
}
@media screen and (min-width: 768px) {
    .proof-file-item {
        max-width: 148px;
    }
}
.zone-action-dropdown {
    padding: 0;
}
.zone-action-dropdown li {
    padding: 0;
}
.zone-action-dropdown li:not(:last-child) {
    border-bottom: 1px solid var(--bs-border-color);
}
.zone-action-dropdown .dropdown-item {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.zone-action-dropdown .dropdown-item:not(hover) .bi-pencil-fill {
    color: var(--bs-primary);
}
.zone-action-dropdown .dropdown-item:not(hover) .bi-gear-fill {
    color: var(--bs-info);
}
.zone-action-dropdown .dropdown-item:not(hover) .bi-trash3 {
    color: var(--bs-danger);
}

.zone-action-dropdown .dropdown-item:active i,
.zone-action-dropdown .dropdown-item:focus i {
    color: white;
}
.btn-action.btn-outline-info:hover i,
.btn-action.btn-outline-info:focus i {
    color: var(--white);
}
.focus-bg-transparent:active,
.focus-bg-transparent:hover,
.focus-bg-transparent:focus {
    background-color: transparent !important;
}
.min-w-100px {
    min-width: 100px;
}
.text-0177CD {
    color: #0177cd;
}
.order-track-mocup {
    position: relative;
}
.order-track-mocup img {
    pointer-events: none;
}
[theme="dark"] .order-track-mocup img {
    filter: invert(1);
}
.order-track-mocup-text {
    font-size: 10px;
    line-height: 13.4px;
    max-width: 166px;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 0 auto;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}
.max-w-299px {
    max-width: 299px;
}
/* Map CSS */
.gm-ui-hover-effect {
    width: 28px !important;
    height: 28px !important;
}
.gm-ui-hover-effect span {
    margin: 0 !important;
}
.map-clusters-custom-window {
    padding: 12px 18px;
}
.gm-style-iw {
    padding: 0 !important;
}
/* Hide Arrow on Map Tooltip */
.gm-style-iw-chr {
    display: none;
}
.overview-button-group {
    display: flex;
    padding: 2px;
    border-radius: 5px;
    background: var(--input-bg);
    min-width: 250px;
}
.gm-style-iw-d {
    overflow: hidden !important;
}
.gm-style .gm-style-iw-c {
    background-color: var(--bs-white);
    border-radius: 5px;
    box-shadow: 0px 3px 8px 0px rgba(0, 0, 0, 0.12),
        0px 3px 1px 0px rgba(0, 0, 0, 0.04);
}
.gm-style .gm-style-iw-tc::after {
    background-color: var(--bs-white);
}
[theme="dark"] .gm-ui-hover-effect span {
    filter: invert(1);
}
.overview-button-group a {
    color: var(--bs-body-color);
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    border-radius: 6px;
    flex-grow: 1;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.overview-button-group a.active {
    font-weight: 600;
    color: var(--bs-white);
    background: var(--bs-primary);
    box-shadow: 0px 3px 8px 0px rgba(0, 0, 0, 0.12),
        0px 3px 1px 0px rgba(0, 0, 0, 0.04);
}
.zone-lists__left {
    width: 100%;
    max-width: 299px;
}
.zone-lists__map {
    width: 0;
    flex-grow: 1;
    max-width: 90%;
    min-height: calc((100vh - 265px) * 0.9);
}
.zone-list {
    padding: 0;
    margin: 0;
    overflow-y: auto;
    max-height: calc(100vh - 360px);
}
.zone-list li {
    list-style: none;
    padding-block: 16px;
}
.zone-list li:not(:last-child) {
    border-bottom: 1px solid var(--bs-border-color);
}
.zone-list li .form-check {
    padding-inline-start: 1.56rem;
    cursor: pointer;
}
.zone-list li .form-check .form-check-input {
    box-shadow: none;
}
.zone-list li .form-check .form-check-input:not(:checked) {
    background-color: var(--bs-white);
    border: 1px solid var(--bs-primary);
}
.zone-list li .form-check .form-check-label {
    font-size: 12px;
}
.zone-list li .form-check .form-check-label .zone-name {
    font-size: 16px;
    margin-bottom: 8px;
}

@media screen and (max-width: 991px) {
    .zone-lists__left {
        max-width: 100%;
    }
    .zone-list {
        max-height: calc(100vh - 265px);
    }
}
.map-search-input {
    position: absolute;
    left: 15px;
    width: calc(100% - 80px);
    top: 9px;
    z-index: 1000;
}
.flet-map-container .map-search-input {
    width: calc(100% - 80px);
}
.nav--tabs-2 {
    column-gap: 25px;
}
.nav--tabs-2 .nav-link {
    border-radius: 0 !important;
    padding-inline: 0 !important;
}
.nav--tabs-2 .nav-link {
    border: none;
    line-height: 1;
    padding: 0.5625rem 0.9375rem;
    font-weight: var(--semi-bold);
    font-size: 0.75rem;
    background-color: transparent;
    border-bottom: 2px solid transparent;
}
.nav--tabs-2 .nav-link.active {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

body *::-webkit-scrollbar-track {
    background-color: var(--bs-card-border-color);
}
body *::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
body *::-webkit-scrollbar-thumb {
    background-color: var(--title-color);
}
body[theme="dark"] *::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
}
.pac-container {
    z-index: 9999;
}
.compare-modal .heat-map {
    height: 504px;
    max-height: 80vh;
}
.heatmap-view-top-modal {
    display: flex;
    flex-wrap: wrap;
    column-gap: 24px;
    row-gap: 16px;
    font-size: 12px;
}
.heatmap-view-top-modal .item {
}
@media screen and (min-width: 768px) {
    .heatmap-view-top-modal .item:not(:last-child) {
        border-right: 1px solid var(--bs-border-color);
        padding-right: 24px;
    }
}
.heatmap-view-top-modal .item h5 {
    font-size: 16px;
    margin: 0;
    margin-top: 8px;
}
.daterangepicker .drp-buttons {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}
.icon-calendar {
    position: absolute;
    inset-inline-end: 10px;
    inset-block-start: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.swiper-auto-slider .swiper-slide {
    width: fit-content !important;
}
.zone-compare-slide-item {
    width: 220px;
    padding-bottom: 15px;
}
.zone-compare-slide-item h5 {
    font-size: 14px;
}

.zone-compare-slide-item img {
    border-radius: 5px;
}
.zone-compare-slide-item:hover img {
    box-shadow: 0px 6px 15px 0px rgba(0, 0, 0, 0.1);
}
.bg-denied {
    background: #fff8f2 !important;
    transition: all 0.3s ease;
}
.remove-upload-file.upload-file__img_banner {
    outline: 1px dashed #ddd;
    border-radius: 0.625rem;
}
.remove-upload-file.upload-file__img_banner img {
    border-radius: inherit;
}
#multi_image_picker .file_upload {
    border-width: 1px !important;
}
.remove-img-icon {
    position: absolute;
    inset-block-start: -0.5rem;
    inset-inline-end: -0.5rem;
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 100px;
    background: #ff4949;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    color: white !important;
}
.profile-image-upload-file .upload-file__img__img {
    display: none;
}
#multi_image_picker.custom .file_upload {
    aspect-ratio: 2/1;
}
.grecaptcha-badge {
    bottom: 65px !important;
}

.text-capitalize-first::first-letter {
    text-transform: capitalize;
}

.max-i-s-30rem {
    max-inline-size: 30rem;
}

.top-minus4 {
    top: -4px;
}

.right-minus4 {
    right: -4px;
}

.w-14 {
    width: 14px !important;
}

.h-100px {
    height: 100px !important;
}
.w-250px {
    width: 250px !important;
}

.nav--tabs_two {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
}
.nav--tabs_two .nav-item {
    padding: 0;
}
.nav--tabs_two .nav-link {
    font-size: 14px;
    color: var(--title-color);
    border-bottom: 2px solid transparent;
    padding: 5px 10px 10px;
    white-space: nowrap;
}
.nav--tabs_two .nav-link.active {
    color: var(--text-primary);
    font-weight: 600;
    border-color: var(--text-primary);
}

/* ============================================= */
/* ===== COR PRIMÁRIA NO HOVER DO MENU (GERAL) ===== */
/* ============================================= */
.aside .nav li > a:hover,
.aside .nav li > a:hover .link-title,
.aside .nav li > a:hover i {
    color: var(--bs-primary) !important;
}

/* ============================================= */
/* ===== FORÇAR MODO ESCURO PARA HEADER E ASIDE ===== */
/* ============================================= */

/* 1. Define as cores do dark mode que vamos usar */
:root {
    --forced-dark-bg: #0f172a;       /* Fundo do header/aside em modo escuro */
    --forced-dark-text: #bbbbbc;     /* Cor do texto normal em modo escuro */
    --forced-dark-title: #ffffff;    /* Cor de títulos e links em modo escuro */
    --forced-dark-border: #494949;   /* Cor das bordas em modo escuro */
}

/* 2. Aplica as cores escuras ao Header (Top Bar) */
.header {
    background-color: var(--forced-dark-bg) !important;
    border-bottom: 1px solid var(--forced-dark-border) !important;
}

/* 3. Aplica as cores escuras ao Menu Lateral (Aside) */
.aside {
    background-color: var(--forced-dark-bg) !important;
    border-inline-end-color: var(--forced-dark-border) !important;
}

/* 4. Força a cor do texto e dos ícones para branco/cinza claro no Header */
.header .nav-link,
.header .dropdown-toggle,
.header .material-icons,
.header .header-icon,
.header .media-body .card-title,
.header .media-body .card-text {
    color: var(--forced-dark-text) !important;
}
.header .media-body .card-title {
    color: var(--forced-dark-title) !important;
}

/* 5. Força a cor do texto e dos ícones para branco/cinza claro no Menu Lateral */
.aside .nav li > a,
.aside .nav li .link-title,
.aside li.nav-category {
    color: var(--forced-dark-text) !important;
}

/* ==================================================================== */
/* == CORREÇÃO FINAL: Cor do item de menu ATIVO para ter contraste == */
/* ==================================================================== */

/* 6.1. Define o FUNDO do link ativo */
.aside .nav li.active > a {
    background-color: rgba(var(--bs-primary-rgb), 1) !important; /* Fundo com a cor primária sólida */
    color: #FFFFFF !important; /* Cor de fallback para o link */
}

/* 6.2. Força a cor do TEXTO e do ÍCONE do link ativo para BRANCO */
.aside .nav li.active > a .link-title,
.aside .nav li.active > a i {
    color: #FFFFFF !important;
}

/* 7. Inverte a cor do logo no menu para que fique branco e visível */
.aside .logo img {
    filter: brightness(0) invert(1);
}

/* 8. [CORRIGIDO] Inverte a cor APENAS do ícone da lua (moon.png) */
.header #theme-toggle-btn img[alt="dark-mode"] {
    filter: invert(100%) brightness(1.5) !important;
}

/* 9. [NOVO] Estiliza o fundo do sub-menu quando aberto */
.aside .nav li.sub-menu-opened > ul.sub-menu {
    background-color: rgba(39, 55, 93, 0.2); /* Tom claro de #27375d */
    border-radius: 5px;
    margin-top: 5px;
    padding-top: 5px;
    padding-bottom: 5px;
}

/* 10. [NOVO] Melhora o contraste do link do sub-menu ao passar o rato */
.aside .nav li.sub-menu-opened > ul.sub-menu li a:hover {
    background-color: rgba(39, 55, 93, 0.4); /* Um pouco mais escuro ao passar o rato */
}

/* 11. [NOVO] Garante que o item ATIVO DO SUB-MENU fique com TEXTO BRANCO */
.aside .nav li.sub-menu-opened > ul.sub-menu li.active a,
.aside .nav li.sub-menu-opened > ul.sub-menu li.active a .link-title,
.aside .nav li.sub-menu-opened > ul.sub-menu li.active a i {
    color: #FFFFFF !important;
}

/* 12. [NOVO] Estiliza o campo de pesquisa na barra lateral */
.aside .search-form__input_group {
    background-color: #ffffff !important; 
    border-radius: 5px;
}

.aside .search-form__input {
    color: #293231 !important; 
}

.aside .search-form__input::placeholder {
    color: #7d8584 !important;
}

.aside .search-form__icon i {
    color: #293231 !important;
}

/* ============================================= */
/* ===== DESTAQUE PARA TÍTULOS DE SEÇÃO DO MENU (MODIFICADO) ===== */
/* ============================================= */
.aside .nav-category {
    /* 1. Remove o fundo e o retângulo */
    background-color: transparent !important;
    border-radius: 0;

    /* 2. Adiciona a linha fina embaixo */
    border-bottom: 1px solid var(--forced-dark-border); /* Usa a cor de borda padrão do menu */

    /* 3. Ajusta a cor do texto e os espaçamentos */
    color: var(--forced-dark-text) !important; /* Usa a cor de texto padrão do menu */
    padding: 8px 10px 10px 10px; /* Padding: 8px topo, 10px lados, 10px baixo */
    margin: 15px 0 10px 0; /* Espaçamento acima e abaixo */

    /* 4. Mantém o estilo da fonte */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
}

/* ==================================================================== */
/* == VERSÃO FINAL: ÍCONE 'i' CUSTOMIZADO COM PULSAR VERDE == */
/* ==================================================================== */

/* 1. Transforma o container na bolinha verde e esconde o ícone original */
.bi-info-circle-fill {
    /* Esconde o ícone original da Bootstrap */
    font-size: 0 !important;
    color: transparent !important;
    
    /* Prepara o container */
    position: relative;
    display: inline-block; /* Comportamento de bloco para ter dimensões */
    
    /* Cria a bolinha verde */
    width: 18px;  /* Tamanho da bolinha */
    height: 18px;
    background-color: var(--bs-success);
    border-radius: 50%;
    
    /* Alinhamento vertical */
    vertical-align: middle;
    z-index: 1;
}

/* 2. Cria a pulsação verde contínua com ::before */
.bi-info-circle-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bs-success);
    border-radius: 50%;
    z-index: -1;
    animation: sonar-pulse 1.75s infinite ease-out !important;
}

/* 3. Adiciona a letra 'i' no centro com ::after */
.bi-info-circle-fill::after {
    content: '?';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    font-style: normal;
}

/* ==================================================================== */
/* ===== AJUSTES: POSIÇÃO DO BOTÃO HAMBÚRGUER E REMOÇÃO DE LINHA ===== */
/* ==================================================================== */

/* 1. Remove a linha pontilhada da borda direita do menu */
.aside {
    border-inline-end: none !important;
}

/* ==================================================================== */
/* == VERSÃO FINAL: BOTÃO HAMBÚRGUER ANIMADO (DESKTOP) CORRIGIDO == */
/* ==================================================================== */

/* 1. Prepara o botão para a animação (estado ABERTO) */
.aside .aside-toggle {
    border: none !important;
    background: transparent !important;
    width: 28px;
    height: 28px;
    position: absolute !important;
    top: 20px;
    right: 15px;
    left: auto;
    transform: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out; /* Transição para a mudança de posição */
}

/* 2. Cria as linhas do hambúrguer (cima e baixo) */
.aside .aside-toggle::before,
.aside .aside-toggle::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    border-radius: 3px;
    background: var(--forced-dark-text);
    transition: all 0.3s ease-in-out;
    left: 50%;
    transform: translateX(-50%);
}

.aside .aside-toggle::before {
    top: 8px; /* Posição da linha de cima */
}

.aside .aside-toggle::after {
    bottom: 8px; /* Posição da linha de baixo */
}

/* 3. A ANIMAÇÃO E POSICIONAMENTO QUANDO O MENU ESTÁ FECHADO */

/* 3.1. Re-centraliza o botão no menu fechado, afastando do logo */
body.aside-folded .aside .aside-toggle {
    right: 50%;
    transform: translateX(50%);
}

/* 3.2. Gira a linha de cima para formar o 'X' */
body.aside-folded .aside .aside-toggle::before {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* 3.3. Gira a linha de baixo para formar o 'X' */
body.aside-folded .aside .aside-toggle::after {
    bottom: 50%;
    transform: translate(-50%, 50%) rotate(-45deg);
}

/* 4. Esconde o ícone de seta original (regra mantida) */
.aside .aside-toggle i {
    display: none !important;
}

/* ==================================================================== */
/* == COR DO ÍCONE HAMBÚRGUER (MOBILE) PARA PADRÃO DARK == */
/* ==================================================================== */

.header .aside-toggle i {
    color: var(--forced-dark-text) !important;
}
/* ==================================================================== */
/* == VERSÃO FINAL: ANIMAÇÃO DE PULSAR AJUSTADA == */
/* ==================================================================== */

/* 1. Define a animação de pulsar (com raio ampliado) */
@keyframes sonar-pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }
    100% {
        transform: scale(2.8); /* Reduzido em 20% (era 3.5) */
        opacity: 0;
    }
}

/* 2. Prepara o badge para a animação (versão simplificada que não afeta o layout) */
.notification .count {
    position: relative !important; /* A única propriedade realmente necessária */
}

/* 3. Cria e aplica a pulsação (sem alterações) */
.notification .count::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: var(--bs-danger) !important;
    border-radius: 50% !important;
    z-index: -1 !important;
    animation: sonar-pulse 1.75s infinite ease-out !important;
}

/* ==================================================================== */
/* == CORREÇÃO: Fundo escuro na janela de notificação para contraste == */
/* ==================================================================== */

/* Aplica o fundo escuro do menu à janela de notificações */
.notification .dropdown-menu {
    background-color: var(--forced-dark-bg) !important;
    border-color: var(--forced-dark-border) !important;
}

/* ==================================================================== */
/* ===== ESTILIZAÇÃO CUSTOMIZADA PARA CHECKBOXES (VERSÃO FINAL) ===== */
/* ==================================================================== */

/* 1. Prepara o container da label */
.custom-checkbox {
    position: relative;      /* Essencial para posicionar os pseudo-elementos */
    padding-left: 35px;      /* Espaço para o nosso falso checkbox */
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    user-select: none;       /* Impede que o texto seja selecionado ao clicar */
}

/* 2. [CORREÇÃO] Esconde o input original sem sobrepor os outros elementos */
.custom-checkbox input {
    position: absolute;
    opacity: 0;
    /* Move o input para fora da tela, tornando-o impossível de interferir visualmente */
    left: -9999px;
}

/* 3. Cria a caixa do nosso falso checkbox */
.custom-checkbox::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 1px solid var(--bs-primary);
    border-radius: 6px;
    background-color: transparent;
    transition: background-color 0.2s ease;
}

/* 4. Estiliza a caixa QUANDO o input está marcado */
label:has(input:checked)::before {
    background-color: rgba(var(--bs-primary-rgb), 0.5);
}

/* 5. Cria o símbolo de "check" (o "V"), mas o mantém escondido */
.custom-checkbox::after {
    content: "";
    position: absolute;
    display: none;
    left: 8px;

    /* ----- MUDANÇAS AQUI ----- */
    top: 45%; /* 1. Posiciona o "V" no centro vertical */
    
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;

    /* 2. Ajusta a posição final e aplica a rotação */
    transform: translateY(-50%) rotate(45deg);
}

/* 6. Mostra o "check" QUANDO o input está marcado */
label:has(input:checked)::after {
    display: block; /* A mágica acontece aqui! */
}

/* ==================================================================== */
/* ===== ESTILO FLUTUANTE PARA CONTAINERS (CARDS) ===== */
/* ==================================================================== */

.card {
    /* 1. Remove a borda colorida */
    border: none !important;
    
    /* 2. Adiciona a sombra para o efeito flutuante */
    box-shadow: 0 8px 25px -10px rgba(0, 0, 0, 0.15);
    
    /* 3. Adiciona uma transição suave para o efeito de hover */
    transition: all 0.3s ease-in-out;
}

/* OPCIONAL: Efeito extra ao passar o mouse, para realçar a flutuação */
/*.card:hover {
  /*  transform: translateY(-3px); /* Move o card um pouco para cima */
   /* box-shadow: 0 12px 35px -10px rgba(0, 0, 0, 0.2); /* Aumenta a sombra */
/*}*/

/* ==================================================================== */
/* == VERSÃO 2: ESCONDER O LOGO (COM TRANSIÇÃO OTIMIZADA) == */
/* ==================================================================== */

/* 1. Define a transição para QUANDO O MENU ABRE (logo aparece) */
/* A transição tem um pequeno atraso para o logo aparecer depois */
.aside .logo {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease-in-out 0.15s, visibility 0.2s ease-in-out 0.15s; /* Duração de 0.2s, Atraso de 0.15s */
}

/* 2. Define a transição para QUANDO O MENU FECHA (logo desaparece) */
/* A transição é mais rápida e sem atraso para o logo sumir primeiro */
body.aside-folded .aside .logo {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.1s ease-in-out, visibility 0.1s ease-in-out; /* Duração curta, SEM atraso */
}

/* ==================================================================== */
/* == FUNDOS DOS CARDS (MODO CLARO CORRIGIDO PARA CARGA INICIAL) == */
/* ==================================================================== */

/* Aplica os estilos quando o body NÃO tiver o atributo theme="dark" */
body:not([theme="dark"]) .card:has(.bg-warning) {
    background-color: rgba(244, 161, 100, 0.1) !important;
}

body:not([theme="dark"]) .card:has(.bg-success) {
    background-color: rgba(48, 184, 119, 0.1) !important;
}

body:not([theme="dark"]) .card:has(a[href*="/admin/driver"]):not(:has(table)) {
    background-color: rgba(32, 100, 229, 0.1) !important;
}

body:not([theme="dark"]) .card:has(.bg-info) {
    background-color: rgba(0, 165, 236, 0.1) !important;
}

/* ========================================================== */
/* ===== CORREÇÃO GERAL: REMOVER 'X' DE COMPONENTES DO PAINEL ===== */
/* ========================================================== */

/* 1. Remove o "X" de seletores (botão "Limpar" do Select2) */
.select2-selection__clear {
    display: none !important;
}

/* ============================================= */
/* ===== CORREÇÃO: COR DA SETA DO SUB-MENU ===== */
/* ============================================= */

/*
 * Força a cor da seta do sub-menu (::after) para
 * a cor de texto clara do modo escuro, garantindo 
 * que seja sempre visível no nosso menu escuro.
*/
.aside-body .nav li.has-sub-item:after {
    color: var(--forced-dark-text) !important;
}

/* ==================================================================== */
/* ===== FUNDO BRANCO DOS CARDS PAI NO LIGHT MODE ===== */
/* ==================================================================== */

/* Força branco apenas nos cards pai marcados com .card-white,
   sobrepondo qualquer regra :has(.bg-*) existente */
body:not([theme="dark"]) .card.card-white,
body:not([theme="dark"]) .card.card-white:has(.bg-warning),
body:not([theme="dark"]) .card.card-white:has(.bg-success),
body:not([theme="dark"]) .card.card-white:has(.bg-info),
body:not([theme="dark"]) .card.card-white:has(.bg-primary) {
    background-color: #ffffff !important;
}

/* Hide native checkbox - use custom-checkbox style only */
input[type="checkbox"].module-checkbox,
input[type="checkbox"]#select-all-modules {
    display: none;
}

/* ==================================================================== */
/* ===== DESTAQUE VISUAL DAS SEÇÕES DO SIDEBAR (OPÇÃO 1) ===== */
/* ==================================================================== */

/*
 * Aplica background gradiente + borda lateral colorida para destacar
 * as categorias de navegação (nav-category) do sidebar, separando-as
 * visualmente dos itens de menu.
 */

/* Estilo base das seções (nav-category) */
.aside .main-nav .nav-category {
    /* Background gradiente sutil (azul -> transparente) */
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0.08) 0%, 
        transparent 100%);
    
    /* Borda lateral destacada em azul */
    border-left: 4px solid #3b82f6;
    
    /* Remove qualquer borda padrão */
    border-bottom: none !important;
    
    /* Espaçamento interno generoso */
    padding: 14px 20px 14px 16px;
    
    /* Espaçamento externo: afasta de outras seções e dos itens */
    margin-top: 28px;
    margin-bottom: 12px;
    
    /* Tipografia forte e uppercase para hierarquia */
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #3b82f6;
    
    /* Arredondamento apenas nas bordas direitas (efeito "tab") */
    border-radius: 0 10px 10px 0;
    
    /* Transição suave para efeitos de hover */
    transition: all 0.2s ease;
}

/* Efeito hover nas seções (opcional - aumenta destaque ao passar mouse) */
.aside .main-nav .nav-category:hover {
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0.12) 0%, 
        transparent 100%);
    border-left-width: 5px;
}

/* Remove margin-top extra da primeira seção para evitar espaço no topo */
.aside .main-nav .nav-category:first-of-type {
    margin-top: 8px;
}

/* Reduz espaço entre a seção e o primeiro item de menu logo abaixo */
.aside .main-nav .nav-category + li {
    margin-top: 4px;
}
/* ── HIW Drawer — contraste de texto ────────────────────────────────── */
#hiw-drawer {
    background: var(--bs-body-bg, #fff) !important;
}
#hiw-drawer h5,
#hiw-drawer h6,
#hiw-drawer strong,
#hiw-drawer li,
#hiw-drawer p {
    color: var(--bs-body-color, #212529) !important;
}
#hiw-drawer .text-muted {
    color: var(--bs-secondary-color, #6c757d) !important;
}
[data-bs-theme="dark"] #hiw-drawer {
    background: #1e2329 !important;
}
[data-bs-theme="dark"] #hiw-drawer h5,
[data-bs-theme="dark"] #hiw-drawer h6,
[data-bs-theme="dark"] #hiw-drawer strong,
[data-bs-theme="dark"] #hiw-drawer li,
[data-bs-theme="dark"] #hiw-drawer p {
    color: #e9ecef !important;
}
[data-bs-theme="dark"] #hiw-drawer .text-muted {
    color: #adb5bd !important;
}
[data-bs-theme="dark"] #hiw-drawer hr {
    border-color: rgba(255,255,255,0.1) !important;
}
[data-bs-theme="dark"] #hiw-drawer .alert-warning {
    background: rgba(255,193,7,0.15) !important;
    color: #ffc107 !important;
    border-color: rgba(255,193,7,0.3) !important;
}

/* ── Radio buttons - Estratégia de notificação ───────────────────────── */
.form-check-lg .form-check-input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
    cursor: pointer;
}
.form-check-lg .form-check-label {
    font-size: 0.95rem;
    padding-left: 0.4rem;
    cursor: pointer;
}
.form-check-lg .form-check-input[type="radio"]:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}
