body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f8f9fa;
            height: 100vh;
            overflow: hidden;
        }
        .wrapper {
            display: flex;
            height: 100vh;
            width: 100vw;
        }
        .sidebar {
            width: 310px;
            min-width: 310px;
            height: 100%;
            z-index: 100;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: #dee2e6 transparent;
        }
        .sidebar::-webkit-scrollbar {
            width: 5px;
        }
        .sidebar::-webkit-scrollbar-track {
            background: transparent;
        }
        .sidebar::-webkit-scrollbar-thumb {
            background-color: #dee2e6;
            border-radius: 10px;
        }
        .main-panel {
            flex-grow: 1;
            height: 100%;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
        }
        .top-bar {
            height: 60px;
            min-height: 60px;
            background-color: #ffffff;
        }
        .mode-card {
            border: 1px solid #e9ecef;
            border-radius: 12px;
            color: #6c757d !important;
            transition: all 0.2s ease;
            background-color: #ffffff;
        }
        .mode-card:hover {
            background-color: #f8f9fa;
            border-color: #dee2e6;
        }
        .mode-card.active {
            background-color: #198754 !important;
            border-color: #198754 !important;
            color: #ffffff !important;
        }
        .mode-card .icon-box {
            color: #6c757d;
        }
        .mode-card.active .icon-box, .mode-card.active .title, .mode-card.active .desc, .mode-card.active .arrow {
            color: #ffffff !important;
        }
        .mode-card .title {
            font-size: 0.95rem;
            color: #343a40;
        }
        .mode-card .desc {
            font-size: 0.75rem;
        }
        .nav-link-custom {
            display: flex;
            align-items: center;
            padding: 0.6rem 1rem !important;
            border-radius: 8px;
            color: #334155 !important;
            font-weight: 600;
            font-size: 0.88rem;
            transition: all 0.2s ease;
            border-left: 4px solid transparent;
            margin-bottom: 4px;
            text-decoration: none;
        }
        .nav-link-custom i {
            color: #64748b;
            transition: color 0.2s ease;
        }
        .nav-link-custom:hover {
            background-color: #f1f5f9;
            color: #198754 !important;
        }
        .nav-link-custom:hover i {
            color: #198754;
        }
        .form-container {
            max-width: 850px;
            margin: 20px auto;
            background: #ffffff;
            border: 1px solid #dee2e6;
            border-radius: 16px;
            padding: 30px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.02);
        }
        /* Estilos das imagens da sidebar */
        .brand-img {
            width: 42px;
            height: 42px;
            object-fit: contain;
            border-radius: 6px;
        }
        .sidebar-logos-container {
            margin-top: 25px;
            padding-top: 15px;
            border-top: 1px dashed #dee2e6;
        }
        .sidebar-logo-item {
            max-width: 100%;
            height: auto;
            max-height: 45px;
            object-fit: contain;
            mix-blend-mode: multiply;
        }

        /* RESPONSIVIDADE PARA TABLETS E CELULARES */
        @media (max-width: 991.98px) {
            body {
                height: auto !important;
                overflow: visible !important;
            }
            .wrapper {
                flex-direction: column !important;
                height: auto !important;
                overflow: visible !important;
            }
            .sidebar {
                width: 100% !important;
                min-width: 100% !important;
                height: auto !important;
                max-height: none !important;
                border-right: none !important;
                border-bottom: 1px solid #dee2e6 !important;
                overflow-y: visible !important;
                padding: 1.5rem !important;
            }
            .sidebar-logos-container {
                flex-direction: row !important;
                justify-content: center !important;
                gap: 1.5rem !important;
                margin-top: 1rem !important;
                margin-bottom: 1rem !important;
            }
            .sidebar-logo-item {
                height: 45px !important;
                width: auto !important;
            }
            .main-panel {
                width: 100% !important;
                height: auto !important;
                overflow: visible !important;
            }
            .top-bar {
                height: auto !important;
                padding: 1rem !important;
                flex-wrap: wrap !important;
                gap: 0.5rem !important;
            }
        }
        .show-on-mobile-portrait,
        .show-on-mobile-portrait-flex {
            display: none !important;
        }
        @media (max-width: 991.98px) and (orientation: portrait) {
            .hide-on-mobile-portrait {
                display: none !important;
            }
            .show-on-mobile-portrait {
                display: block !important;
            }
            .show-on-mobile-portrait-flex {
                display: flex !important;
            }
        }

/* Section Card & Logos Footer */
.section-card {
    background: white;
    border-radius: 16px;
    padding: 0;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8edf2;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.section-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.logos-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem;
    background: white;
    flex-wrap: wrap;
}

.section-card > .logos-footer:first-child {
    border-top: none;
}

.logos-footer img {
    height: 44px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: opacity 0.2s;
}