/* Base & Typography */
html, body {
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f5f7fa;
    min-height: 100vh;
    min-height: 100dvh;
    color: #333;
}

/* Evita que o iOS aplique zoom ao focar em inputs com fonte menor que 16px */
@media (max-width: 991.98px) {
    input, select, textarea, .form-control, .form-select {
        font-size: 16px !important;
    }
}

/* Base styling utility applied globally to major containers */
.card, .card-dashboard, .modal-content, .dropdown-menu, .offcanvas, .toast {
    background: #ffffff !important;
    border: 1px solid #eef2f6 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.splash-screen img {
    width: 100px;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* ===================================================
   TELA DE LOGIN - DESIGN PREMIUM
   =================================================== */
.login-container {
    min-height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9;
    background-image: 
        radial-gradient(at 0% 0%, rgba(13, 110, 253, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(245, 158, 11, 0.07) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(13, 110, 253, 0.05) 0px, transparent 40%);
    padding: 24px 16px;
    position: relative;
    overflow-x: hidden;
}

.login-container.active {
    display: flex;
}

.container-login {
    max-width: 1040px;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Painel de Apresentação Institucional (Esquerda) */
.login-brand-panel {
    padding: 1rem 0;
}

.login-main-logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.03));
}

.login-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.login-hero-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.28;
    letter-spacing: -0.02em;
}

.login-hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #64748b;
}

.login-features-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.login-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #eef2f6;
    padding: 10px 14px;
    border-radius: 12px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.login-feature-item:hover {
    transform: translateX(4px);
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.login-feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

/* Card de Login (Direita) */
.login-box {
    background: #ffffff;
    padding: 2.25rem 2.25rem 2rem 2.25rem;
    border-radius: 1.25rem;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 0 1px #e2e8f0;
    width: 100%;
    max-width: 440px;
    position: relative;
}

.logo-pequena {
    max-width: 190px;
    height: auto;
}

.login-field-wrapper {
    position: relative;
}

.field-icon-start {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.15rem;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 4;
}

.form-control-login {
    padding: 0.72rem 1rem 0.72rem 2.6rem !important;
    border-radius: 0.7rem !important;
    border: 1.5px solid #cbd5e1 !important;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1e293b;
    background-color: #f8fafc !important;
    transition: all 0.2s ease;
}

.form-control-login:focus {
    background-color: #ffffff !important;
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12) !important;
}

.login-field-wrapper:focus-within .field-icon-start {
    color: #0d6efd;
}

.login-box .toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    z-index: 10;
    font-size: 1.15rem;
    transition: color 0.2s ease;
}

.login-box .toggle-password:hover {
    color: #1e293b;
}

.btn-login-submit {
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 0.7rem;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border: none;
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.28);
    transition: all 0.2s ease;
}

.btn-login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.38);
}

.btn-login-submit:active {
    transform: translateY(0);
}

/* Divisor */
.login-divider {
    position: relative;
    text-align: center;
}

.login-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background-color: #e2e8f0;
    z-index: 1;
}

.login-divider span {
    position: relative;
    z-index: 2;
    background-color: #ffffff;
    padding: 0 12px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.hover-whatsapp {
    transition: color 0.2s ease;
}

.hover-whatsapp:hover {
    color: #198754 !important;
}

/* Sidebar - Premium Modern Solid White */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 270px;
    background: #ffffff !important;
    border-right: 1px solid #eef2f6;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.02);
    z-index: 1040;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    min-height: 80px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}





.header-info h6 {
    color: #1e293b;
    letter-spacing: 0.3px;
    font-size: 1.05rem;
}

.header-info #usuarioLogado {
    color: #64748b !important;
    font-size: 0.85rem;
}

.logo-sidebar {
    width: 42px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-content {
    padding-top: 1.25rem;
}

.sidebar .nav-link {
    padding: 0.9rem 1.25rem;
    margin: 0.3rem 1rem;
    border-radius: 0.75rem;
    color: #64748b !important;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sidebar .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.03) 0%, transparent 100%);
    transition: width 0.3s ease;
    z-index: 0;
}

.sidebar .nav-link:hover::before {
    width: 100%;
}

.sidebar .nav-link span, .sidebar .nav-link i {
    position: relative;
    z-index: 1;
}

.sidebar .nav-link i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.sidebar .nav-link:hover {
    color: #0f172a !important;
    transform: translateX(4px);
}

.sidebar .nav-link.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    font-weight: 600;
}

.sidebar .nav-link.text-danger {
    color: #ef4444 !important;
}

.sidebar .nav-link.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c !important;
}

.sidebar-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}




/* Main Content Area */
.content {
    margin-left: 0;
    padding: 0;
    min-height: 100vh;
    background: #f0f2f7;
    transition: all 0.3s ease;
}

/* =====================================================
   LAYOUT NAVI / ONTECNOPRO (CONFORME A IMAGEM)
===================================================== */
:root {
    --navi-header-bg: var(--bs-primary, #0d6efd);
    --navi-body-bg: #f0f2f7;
    --navi-accent-yellow: #f59e0b;
    --navi-navy-icon: #07122a;
}

/* Header Superior Primary e Menor (Compacto) */
.navi-top-header {
    background-color: var(--bs-primary, #0d6efd);
    color: #ffffff;
    padding: 0.3rem 1rem;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.18);
}

.navi-top-header .navi-logo {
    max-height: 26px;
    width: auto;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.navi-user-link {
    color: #ffffff !important;
    opacity: 0.95;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.navi-user-link:hover {
    opacity: 1;
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ffffff !important;
}

.navi-eye-btn {
    color: #ffffff;
    opacity: 0.9;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    font-size: 1.15rem;
    padding: 0.2rem 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navi-eye-btn:hover {
    opacity: 1;
    color: #ffffff;
    transform: scale(1.05);
}

.navi-eye-btn:hover {
    opacity: 1;
    color: #ffffff;
    transform: scale(1.05);
}

/* Área de Conteúdo Centralizada */
.navi-dashboard-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem 1rem;
}

/* Banner Amarelo de Alerta */
.navi-alert-banner {
    background-color: var(--navi-accent-yellow);
    border-radius: 1rem;
    padding: 0.9rem 1.4rem;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.18);
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.navi-alert-banner .banner-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

/* Cards de Métricas: Grid no Desktop e Slider Horizontal no Mobile */
.navi-metrics-slider {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 992px) {
    .navi-metrics-slider {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

.navi-metric-item {
    width: 100%;
}

.navi-metric-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.25rem 1.4rem;
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.navi-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.navi-metric-card .card-title-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.35rem;
}

.navi-metric-card .card-value-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.navi-metric-card .card-subtitle-text {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 400;
}

/* Atalhos Rápidos (Ícones Arredondados) */
.navi-shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
    text-align: center;
}

.navi-shortcut-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #334155;
    transition: all 0.2s ease;
}

.navi-shortcut-box:hover {
    color: #0f172a;
}

.navi-shortcut-btn {
    width: 64px;
    height: 64px;
    background: #ffffff;
    border-radius: 1.25rem;
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: var(--navi-navy-icon);
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.navi-shortcut-box:hover .navi-shortcut-btn {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.navi-shortcut-box:active .navi-shortcut-btn {
    transform: translateY(0);
}

.navi-shortcut-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: #1e293b;
    letter-spacing: -0.01em;
}

/* =====================================================
   LAYOUT MOBILE IDÊNTICO À IMAGEM DE REFERÊNCIA
   Métricas em Carrossel Horizontal + 4 Colunas de Atalhos + Card Alertas
===================================================== */
@media (max-width: 767.98px) {
    .navi-dashboard-container {
        padding: 1rem 1rem 3.5rem 1rem !important;
        background-color: #f1f5f9;
        overflow-x: hidden;
    }

    /* 1. Métricas: Grid 2x2 Responsivo sem corte lateral no Mobile */
    .navi-metrics-wrapper {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 1.5rem !important;
    }

    .navi-metrics-slider {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.75rem !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .navi-metric-item {
        flex: none !important;
        max-width: 100% !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .navi-metric-card {
        background: #ffffff !important;
        border-radius: 1.15rem !important;
        padding: 1rem 0.95rem !important;
        border: none !important;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03) !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100% !important;
        overflow: hidden;
    }

    .navi-metric-card .card-title-text {
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        margin-bottom: 0.3rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .navi-metric-card .card-value-text {
        font-size: clamp(1.05rem, 4.5vw, 1.3rem) !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        letter-spacing: -0.02em !important;
        margin-bottom: 0.2rem !important;
        word-break: break-word;
        line-height: 1.2 !important;
    }

    .navi-metric-card .card-subtitle-text {
        font-size: 0.72rem !important;
        color: #94a3b8 !important;
        font-weight: 400 !important;
        line-height: 1.25 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 2. Atalhos: 4 Colunas x 2 Linhas com Botões Quadrados Brancos Arredondados */
    .navi-shortcuts-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.25rem 0.4rem !important;
        margin-top: 0.5rem !important;
        margin-bottom: 2rem !important;
    }

    .navi-shortcut-btn {
        width: 68px !important;
        height: 68px !important;
        background: #ffffff !important;
        border-radius: 1.25rem !important; /* ~20px */
        border: none !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #0f172a !important;
        margin-bottom: 0.45rem !important;
    }

    .navi-shortcut-btn svg {
        width: 28px !important;
        height: 28px !important;
        stroke: #0f172a !important;
        stroke-width: 2 !important;
    }

    .navi-shortcut-label {
        font-size: 0.82rem !important;
        font-weight: 500 !important;
        color: #0f172a !important;
        letter-spacing: -0.01em !important;
        text-align: center;
    }

    /* 3. Card de Alertas: Arredondado Branco com Sombra */
    #cardAlertasDashboard {
        background: #ffffff !important;
        border-radius: 1.5rem !important; /* 24px */
        border: none !important;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03) !important;
        padding: 1.25rem 1.5rem !important;
        margin-top: 0.5rem !important;
    }

    #badgeQtdAlertas {
        background-color: #f59e0b !important;
        color: #ffffff !important;
        font-weight: 700 !important;
        font-size: 0.65rem !important;
        border-radius: 50% !important;
        width: 17px !important;
        height: 17px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
    }

    #iconeChevronAlertas {
        color: #0f172a !important;
    }
}

/* Ocultação de Valores */
.valores-ocultos .valor-oculto {
    display: inline !important;
}
.valores-ocultos .valor-visivel {
    display: none !important;
}
.valor-oculto {
    display: none;
}

/* =====================================================
   TELA DE CONFIGURAÇÕES (IDÊNTICA À FOTO)
===================================================== */
.navi-config-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3.5rem 1rem;
}

.config-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.config-item {
    color: #1e293b;
    transition: background-color 0.15s ease, transform 0.15s ease;
    cursor: pointer;
}

.config-item:hover {
    background-color: #f8fafc;
}

.config-icon {
    color: #0f172a;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.config-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: -0.01em;
}

.config-subtitle {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 400;
    margin-top: 1px;
}

.config-divider {
    height: 1px;
    background-color: #f1f5f9;
    margin: 0 1.25rem;
}

.config-badge-lock {
    color: #f59e0b;
    font-size: 1rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.badge-config-habilitado {
    background-color: #fdf6e7;
    color: #f59e0b;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: 50rem;
    display: inline-flex;
    align-items: center;
    line-height: 1.1;
    flex-shrink: 0;
}

.card-opcao-radio {
    transition: all 0.2s ease;
    border-color: #e2e8f0 !important;
    background-color: #ffffff;
}

.card-opcao-radio:hover {
    background-color: #f8fafc;
}

.card-opcao-radio.active-radio {
    border-color: #f59e0b !important;
    background-color: #fffbeb !important;
}

.card-opcao-radio.active-radio label {
    color: #f59e0b !important;
}

.config-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.config-back-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* =====================================================
   LAYOUT DADOS DA EMPRESA (CONFORME A IMAGEM)
===================================================== */
.empresa-form-wrapper {
    max-width: 680px;
    margin: 0 auto 3rem auto;
}

.empresa-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.input-outlined-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.input-outlined-group label {
    position: absolute;
    top: -9px;
    left: 12px;
    background: #ffffff;
    padding: 0 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1;
    z-index: 2;
    transition: color 0.2s ease;
}

.input-outlined-group .form-control,
.input-outlined-group .form-select {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.82rem 1rem;
    font-size: 0.92rem;
    color: #1e293b;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-outlined-group .form-control:focus,
.input-outlined-group .form-select:focus {
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}

.input-outlined-group:focus-within label {
    color: #0f172a;
    font-weight: 600;
}

.input-outlined-group .form-control[readonly] {
    background-color: #f8fafc;
    color: #64748b;
}

.logo-preview-box {
    transition: all 0.2s ease;
}

.logo-upload-wrapper:hover .logo-preview-box {
    border-color: #0f172a !important;
    background-color: #f1f5f9 !important;
}




.main-header {
    border: none;
    background: #ffffff !important;
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    margin-bottom: 1rem;
}

/* Forms & Inputs */
.form-control {
    padding: 0.75rem 1rem;
    border-radius: 0.6rem;
    background: #ffffff !important;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.form-control:focus {
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
    border-color: #0d6efd;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #adb5bd;
    z-index: 10;
}

/* Buttons */
.btn-primary {
    padding: 0.75rem;
    border-radius: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Overlay do sidebar (mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1039;
}

.sidebar-overlay.active {
    display: block;
}

/* Responsive */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
        width: 270px;
        z-index: 1040;
    }

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

    .content {
        margin-left: 0;
    }
}

/* Mobile Header Glassmorphism Overrides */
#mobile-header {
    background: #ffffff !important;
    border: 1px solid #eef2f6 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}

#mobile-header .btn-light {
    background: #f8fafc !important;
    border: 1px solid #eef2f6 !important;
}

/* Dashboard Premium Styles */
.dashboard-welcome {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 1.5rem;
    padding: 2.5rem;
    color: white;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

.dashboard-welcome::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.card-stats {
    background: white;
    border: 1px solid #eef2f6;
    border-radius: 1.25rem;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.card-stats:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.05);
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.icon-box.blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.icon-box.green { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.icon-box.purple { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.icon-box.orange { background: rgba(249, 115, 22, 0.1); color: #f97316; }

.quick-action-btn {
    background: white;
    border: 1px solid #eef2f6;
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.quick-action-btn:hover {
    background: #f8fafc;
    color: #3b82f6;
    border-color: #3b82f6;
}

/* ===================================================
   PADRÃO DO SISTEMA: SELECT / AUTOCOMPLETE COM CARD
   Conforme especificação visual (Foto de Referência)
=================================================== */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-box {
    position: relative;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 14px;
    background-color: #f1f3f6;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    cursor: text;
}

.custom-select-box.focused,
.custom-select-box:focus-within {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 1px #f59e0b !important;
    background-color: #ffffff !important;
}

.custom-select-label {
    position: absolute;
    top: -9px;
    left: 12px;
    background-color: #f1f3f6;
    padding: 0 5px;
    font-size: 0.73rem;
    font-weight: 500;
    color: #f59e0b;
    line-height: 1;
    pointer-events: none;
    z-index: 2;
    transition: background-color 0.18s ease;
}

.custom-select-box.focused .custom-select-label,
.custom-select-box:focus-within .custom-select-label {
    background-color: #ffffff;
}

.custom-select-input {
    width: 100%;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 0.92rem;
    font-weight: 500;
    color: #1e293b;
    padding: 2px 0;
    box-shadow: none !important;
}

.custom-select-arrow {
    font-size: 0.85rem;
    color: #94a3b8;
    transition: transform 0.2s ease, color 0.15s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.custom-select-box.open .custom-select-arrow {
    transform: rotate(180deg);
    color: #f59e0b;
}

.custom-select-help-text {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 4px;
    display: block;
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    max-height: 250px;
    overflow-y: auto;
    z-index: 1060;
}

.custom-select-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f8fafc;
    transition: background-color 0.15s ease;
}

.custom-select-item:last-child {
    border-bottom: none;
}

.custom-select-item:hover,
.custom-select-item.active {
    background-color: #f8fafc;
}

.custom-select-item-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.custom-select-item-subtitle {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 2px;
}

.custom-select-item-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: #0d6efd;
    white-space: nowrap;
}

.custom-select-item-add {
    padding: 0.75rem 1rem;
    cursor: pointer;
    background-color: #fffbeb;
    color: #b45309;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background-color 0.15s ease;
    border-top: 1px solid #fef3c7;
}

.custom-select-item-add:hover {
    background-color: #fef3c7;
}