:root {
    --sidebar-width: 320px;
    --brand-blue: #244d78;
    --brand-orange: #f2a94a;
    --sidebar-hover: rgba(255, 255, 255, 0.1);
    --sidebar-active-bg: rgba(255, 255, 255, 0.15);
    /* lighter overlay so content is visible underneath while loading */
    --loader-overlay: rgba(255, 255, 255, 0.72);
    --client-radius-surface: 20px;
    --client-radius-control: 12px;
    --client-radius-pill: 999px;
}

body {
    background-color: #ffffff !important;
    overflow-x: hidden;
}

.sidebar-wrapper {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    background-color: var(--brand-blue) !important;
    display: flex;
    flex-direction: column;
    transition: transform var(--app-duration-base) var(--app-ease-standard);
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
}

.sidebar-content, .sidebar-brand, .sidebar-footer {
    background-color: transparent !important;
}

    .sidebar-brand img {
        display: block !important;
        max-height: 45px;
        width: auto;
        filter: brightness(0) invert(1);
        margin: 0 auto;
    }

.user-info-mobile {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .sidebar-menu .nav-item {
        margin: 4px 12px;
    }

    .sidebar-menu .nav-link {
        position: relative;
        display: flex;
        align-items: center;
        padding: 12px 15px;
        color: rgba(255, 255, 255, 0.8) !important;
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 600;
        border-radius: 10px;
        transition: var(--app-transition-fast);
        white-space: nowrap;
    }

        .sidebar-menu .nav-link#menuSupport {
            padding-right: 44px;
        }

.sidebar-notification-badge {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: linear-gradient(180deg, #ff625c 0%, #e53935 100%);
    color: #fff;
    border-radius: 999px;
    border: 2px solid var(--brand-blue);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.70rem;
    font-weight: 800;
    line-height: 1;
}

        .sidebar-menu .nav-link:hover {
            background-color: var(--sidebar-hover);
            color: #ffffff !important;
        }

        .sidebar-menu .nav-link.active {
            background-color: var(--sidebar-active-bg) !important;
            color: var(--brand-orange) !important;
            border-left: 4px solid var(--brand-orange);
        }

.main-wrapper {
    min-height: 100vh;
    transition: margin-left var(--app-duration-base) var(--app-ease-standard);
}

    .main-wrapper .navbar {
        z-index: 1030;
        width: 100%;
        display: flex !important;
    }

.navbar .app-container {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

@media (min-width: 1600px) {
    .main-wrapper {
        margin-left: var(--sidebar-width) !important;
    }

    .navbar .app-top-navbar-actions {
        display: flex !important;
        flex: 1;
    }

    .d-custom-hide-desktop {
        display: none !important; 
    }

    .d-custom-show-desktop {
        display: flex !important; 
    }
}

@media (max-width: 1599.98px) {
    .sidebar-wrapper {
        transform: translateX(-100%);
        z-index: 1040;
    }

        .sidebar-wrapper.active {
            transform: translateX(0);
        }

    .main-wrapper {
        margin-left: 0 !important;
    }

    .navbar {
        background-color: white !important;
    }
}

.overlay.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1035;
}

.loading-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--loader-overlay);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-toast);
    backdrop-filter: blur(4px);
    transition: opacity var(--app-duration-base) var(--app-ease-standard);
}

.loading-wrapper.hidden {
    display: none !important;
}

.loading-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-arc {
    width: 120px;
    height: 120px;
    border: 5px solid transparent;
    border-top: 5px solid var(--brand-orange);
    border-radius: 50%;
    animation: spin-loader 1.2s linear infinite;
}

#loading-text {
    position: absolute;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    white-space: nowrap;
}

@keyframes spin-loader {
    0% {
        transform: rotate(0deg);
    }

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

@media (prefers-reduced-motion: reduce) {
    .loading-arc,
    .notification-dropdown-dismiss.is-loading::after {
        animation: none !important;
    }
}

.hidden {
    display: none !important;
}

.logo-navbar-height {
    max-height: 50px;
}

.navbar-min-height {
    min-height: 70px;
}

.app-top-navbar {
    border-bottom: 1px solid rgba(36, 77, 120, 0.08);
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.app-top-navbar-actions {
    gap: 12px !important;
}

.icon-burger-size {
    font-size: 2rem;
}

.spacer-40 {
    width: 40px;
}

.font-xxs {
    font-size: 0.65rem;
}

.user-card-mobile {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-border-opacity {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.toast-index {
    z-index: 1100;
}

.toast-container-login {
    z-index: 1100;
}

.loading-wrapper.active {
    display: flex !important;
}

.div-banner {
    background-color: #001a2c; 
    color: white;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
}

.text-banner {
    font-size: 14px;
    font-weight: 500;
}

.terms-link {
    font-size: 12px;
    color: white;
    text-decoration: none;
}

    .terms-link:hover {
        color: #f39c12;
        text-decoration: underline;
    }

body {
    padding-bottom: 60px;
}

.modal-header {
    border-bottom: 1px solid #eee;
    padding: 2rem 1.5rem 1rem 1.5rem;
}

.modal-content {
    border-radius: 15px;
    border: none;
}

.img-banner {
    height: 30px;
}

.app-modal-title {
    color: #002137;
}

.app-modal-header .app-modal-title {
    color: #ffffff;
}

.modal-body {
    font-size: 0.9rem;
}

.div-banner {
    background-color: #001529; 
    padding: 10px 0;
}

.text-banner {
    color: #ffffff;
    font-size: 14px;
}

.custom-modal-style {
    background-color: #fffaf2 !important; 
    border-radius: 40px !important; 
    border: none !important;
}

    .custom-modal-style .modal-header {
        text-align: center;
    }

    .custom-modal-style .app-modal-title {
        font-weight: 800;
        color: #1a4a7c;
        font-size: 24px;
    }

    .custom-modal-style .app-modal-header .app-modal-title {
        color: #ffffff;
    }

.section-subtitle {
    font-weight: 800;
    color: #1a4a7c;
    margin-top: 20px;
    font-size: 1.2rem;
}

.btn-close-custom {
    position: absolute;
    right: 25px;
    top: 20px;
    background: none;
    border: none;
    font-size: 30px;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    line-height: 1;
}

.content-text-area {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    text-align: justify;
}

.modal-dialog-scrollable .modal-content {
    max-height: 90vh;
}

.d-custom-hide-desktop {
    display: flex !important;
}

.d-custom-show-desktop {
    display: none !important; 
}

.show-above-1600 {
    display: none !important;
}

.show-below-1600 {
    display: block !important;
    border-radius:10px;
}

@media (min-width: 1600px) {
    .show-above-1600 {
        display: block !important;
    }

    .show-below-1600 {
        display: none !important;
    }
}

@media (max-width: 1599.98px) {
    .navbar .d-lg-none { 
        display: flex !important;
    }
}

.d-custom-show-desktop {
    display: none !important;
}

.d-custom-hide-desktop {
    display: flex !important;
}

@media (min-width: 1600px) {
    .d-custom-hide-desktop {
        display: none !important;
    }

    .d-custom-show-desktop {
        display: flex !important;
    }
}

.card-icon-wrap {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    line-height: 1;
}

    .card-icon-wrap i {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2.2rem;
        line-height: 1;
        margin: 0;
        padding: 0;
    }

        .card-icon-wrap i::before {
            display: block;
        }

.button-sair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 10px;
    background-color: #dc3545;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--app-transition-fast);
}

    .button-sair:hover {
        background-color: #bb2d3b;
        color: #ffffff;
    }

.app-feedback-modal-dialog {
    max-width: 620px;
    width: calc(100% - 2rem);
}

.app-feedback-modal-content {
    border: 0 !important;
    border-radius: 28px !important;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24) !important;
}

.app-feedback-modal-header {
    border-bottom: 0 !important;
    padding: 1.35rem 1.5rem;
    color: #ffffff;
}

.app-feedback-modal-header-error {
    background: linear-gradient(135deg, #df474b, #c73539);
}

.app-feedback-modal-header-warning {
    background: linear-gradient(135deg, #f2a94a, #e6922e);
}

.app-feedback-modal-header-success {
    background: linear-gradient(135deg, #2f8f5b, #257149);
}

.app-feedback-modal-header-info {
    background: linear-gradient(135deg, #244d78, #1a3a5a);
}

.app-feedback-modal-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .app-feedback-modal-icon i {
        font-size: 1.35rem;
        color: #ffffff;
    }

.app-feedback-modal-header .app-modal-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 900;
}

.app-feedback-modal-close {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--app-transition-fast);
}

    .app-feedback-modal-close:hover {
        background: rgba(255, 255, 255, 0.16) !important;
        transform: scale(1.05);
    }

.app-feedback-modal-body {
    padding: 1.5rem;
    background: #ffffff;
}

.app-feedback-modal-message {
    color: #244d78;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.65;
    white-space: pre-line;
}

.app-feedback-modal-footer {
    border-top: 1px solid #edf2f7 !important;
    padding: 1rem 1.5rem 1.4rem;
    background: #ffffff;
}

.app-feedback-modal-btn {
    min-width: 140px;
    border: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #f2a94a, #e6922e) !important;
    color: #ffffff !important;
    font-weight: 900;
    padding: 0.75rem 1.4rem;
    box-shadow: 0 10px 24px rgba(242, 169, 74, 0.28);
}

    .app-feedback-modal-btn:hover {
        color: #ffffff !important;
        transform: translateY(-1px);
        box-shadow: 0 14px 28px rgba(242, 169, 74, 0.36);
    }

@media (max-width: 576px) {
    .app-feedback-modal-dialog {
        width: calc(100% - 1rem);
        margin: 0.5rem auto;
    }

    .app-feedback-modal-content {
        border-radius: var(--app-modal-radius) !important;
    }

    .app-feedback-modal-header {
        padding: 1.15rem;
    }

    .app-feedback-modal-body {
        padding: 1.2rem;
    }

    .app-feedback-modal-footer {
        padding: 0 1.2rem 1.2rem;
    }

    .app-feedback-modal-btn {
        width: 100%;
    }
}

.app-feedback-modal-dialog {
    max-width: 560px;
}

.app-feedback-modal-content {
    border: none !important;
    border-radius: var(--app-modal-radius) !important;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22) !important;
}

/* Mensagens com lista (ex.: motivos da validação do orçamento): card mais largo. */
.app-feedback-modal-content.is-wide {
    max-width: min(760px, calc(100vw - 32px));
}

.app-feedback-modal-header {
    border-bottom: none !important;
    padding: 1.25rem 1.5rem !important;
    color: #fff;
}

.app-feedback-modal-header-blue {
    background: linear-gradient(135deg, #244d78 0%, #1a3a5a 100%);
}

.app-feedback-modal-header .app-modal-title {
    color: #fff;
    font-weight: 900;
}

.app-feedback-modal-close {
    width: 38px;
    height: 38px;
    border-radius: 999px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .app-feedback-modal-close:hover {
        background: rgba(255, 255, 255, 0.16) !important;
    }

.app-feedback-modal-body {
    padding: 2rem 1.75rem 1.25rem 1.75rem !important;
    background: #fff;
}

.app-feedback-modal-status-icon-wrap {
    display: flex;
    justify-content: center;
}

.app-feedback-modal-status-icon {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.35rem;
}

.app-feedback-modal-status-icon-success {
    color: #198754;
    background: #eaf7ef;
}

.app-feedback-modal-status-icon-warning {
    color: #d97706;
    background: #fff4dc;
}

.app-feedback-modal-status-icon-error {
    color: #dc3545;
    background: #fff0f1;
}

.app-feedback-modal-status-icon-info {
    color: #244d78;
    background: #eef6ff;
}

.app-feedback-modal-message {
    color: #31475f;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 600;
}

.app-feedback-modal-footer {
    border-top: none !important;
    padding: 0 1.75rem 1.75rem 1.75rem !important;
    justify-content: center;
    background: #fff;
}

.app-feedback-modal-btn {
    min-width: 150px;
    min-height: 46px;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #f2a94a, #e6922e) !important;
    color: #fff !important;
    font-weight: 800;
    border: none !important;
}

.notification-navbar-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px !important;
    border: 1px solid rgba(36, 77, 120, 0.12) !important;
    background: rgba(36, 77, 120, 0.06) !important;
    color: var(--brand-blue) !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
    transition: var(--app-transition-fast);
}

    .notification-navbar-btn:hover {
        background: rgba(36, 77, 120, 0.1) !important;
        border-color: rgba(36, 77, 120, 0.22) !important;
        transform: translateY(-1px);
        box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    }

    .notification-navbar-btn.has-unread {
        box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
    }

.top-navbar-user-pill {
    min-height: 44px;
    padding: 0 18px 0 8px;
    border-radius: 999px;
    border: 1px solid rgba(36, 77, 120, 0.14);
    background: linear-gradient(180deg, #fbfcfe 0%, #f4f8fb 100%);
    color: var(--brand-blue);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
    transition: var(--app-transition-fast);
}

    .top-navbar-user-pill:hover {
        border-color: rgba(36, 77, 120, 0.24);
        background: #ffffff;
        transform: translateY(-1px);
        box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    }

    .top-navbar-user-pill .app-icon {
        width: 28px;
        height: 28px;
        border-radius: 999px;
        background: rgba(36, 77, 120, 0.08);
        color: var(--brand-blue) !important;
        padding: 6px;
        margin-right: 10px !important;
        box-sizing: border-box;
    }

    .top-navbar-user-pill span {
        color: var(--brand-blue);
        letter-spacing: 0.1px;
    }

.top-navbar-logout-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.25rem 1rem;
    border: 1px solid #dc3545;
    border-radius: 999px;
    color: #dc3545;
    font-size: 0.875rem;
    font-weight: 700;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.06);
    transition: var(--app-transition-fast);
    text-decoration: none;
}

    .top-navbar-logout-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 20px rgba(220, 53, 69, 0.12);
    }

.notification-dropdown-menu {
    width: min(360px, calc(100vw - 2rem));
    max-height: 440px;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(36, 77, 120, 0.08) !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12) !important;
}

.notification-dropdown-header {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.notification-dropdown-list {
    max-height: 360px;
    overflow-y: auto;
}

.notification-dropdown-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    background: #ffffff;
}

    .notification-dropdown-item:not(.is-read) {
        background: #f8fbff;
    }

    .notification-dropdown-item.is-clickable {
        cursor: pointer;
    }

        .notification-dropdown-item.is-clickable:hover {
            background: #eef6ff;
        }

.notification-dropdown-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    color: #0d6efd;
}

.notification-dropdown-content {
    min-width: 0;
    flex: 1;
}

.notification-dropdown-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1f2d3d;
}

.notification-dropdown-message {
    margin-top: 2px;
    font-size: 0.82rem;
    color: #5f6c7b;
    line-height: 1.35;
}

.notification-dropdown-item {
    position: relative;
    transition: opacity var(--app-duration-fast) var(--app-ease-standard), max-height var(--app-duration-fast) var(--app-ease-standard);
}

    .notification-dropdown-item.is-dismissing {
        opacity: 0;
    }

.notification-dropdown-dismiss {
    flex: 0 0 auto;
    align-self: flex-start;
    width: 24px;
    height: 24px;
    margin-top: 2px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #98a2b3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--app-duration-fast) var(--app-ease-standard), background-color var(--app-duration-fast) var(--app-ease-standard), color var(--app-duration-fast) var(--app-ease-standard);
}

    .notification-dropdown-item:hover .notification-dropdown-dismiss,
    .notification-dropdown-dismiss:focus-visible {
        opacity: 1;
    }

    .notification-dropdown-dismiss:hover {
        background: rgba(220, 53, 69, 0.1);
        color: #dc3545;
    }

    .notification-dropdown-dismiss.is-loading {
        opacity: 1;
        pointer-events: none;
    }

        .notification-dropdown-dismiss.is-loading svg {
            visibility: hidden;
        }

        .notification-dropdown-dismiss.is-loading::after {
            content: "";
            position: absolute;
            width: 12px;
            height: 12px;
            border: 2px solid #dee3ea;
            border-top-color: var(--brand-orange);
            border-radius: 50%;
            animation: spin-loader 0.7s linear infinite;
        }

.notification-dropdown-date {
    margin-top: 4px;
    font-size: 0.72rem;
    color: #98a2b3;
}

.notification-dropdown-empty {
    padding: 28px 16px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

.notification-dropdown-empty-icon {
    display: block;
    margin: 0 auto 10px;
    color: #c3cdda;
}

.notification-dropdown-header .disabled {
    display: none;
}
