/* ============================================
   COMPONENTES GLOBAIS - SIDEBAR E TOPBAR
   ============================================ */

/* === Anti-flash (boot) — ver também rpz-antiflash.css === */
html body {
    opacity: 1 !important;
    animation: none !important;
    animation-name: none !important;
}

html.rpz-boot,
html.rpz-boot *,
html.rpz-boot *::before,
html.rpz-boot *::after {
    transition: none !important;
}

html:not(.rpz-perms-ready) #global-sidebar [data-rpz-module],
html:not(.rpz-perms-ready) #global-sidebar [data-perm-filter="1"] {
    display: none !important;
}

/* === SIDEBAR === */
#global-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background: #1e293b;
    border-right: 1px solid #334155;
    z-index: 30;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#global-sidebar {
    width: 200px;
}

#global-sidebar.collapsed {
    width: 56px;
}

#global-sidebar.expanded {
    width: 200px;
}

.sidebar-header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid #334155;
    min-width: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-logo-image {
    height: 64px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

#global-sidebar.collapsed .sidebar-logo-image {
    height: 40px;
    max-width: 40px;
    width: 40px;
    margin: 0 auto;
}

.sidebar-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.sidebar-logo-text {
    color: #f1f5f9;
    font-size: 14px;
    font-weight: 600;
    opacity: 1;
    transition: opacity 0.2s ease;
}

#global-sidebar.collapsed .sidebar-logo-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar-toggle-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
    background: #334155;
    color: #e2e8f0;
}

.sidebar-toggle-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

#global-sidebar.collapsed .sidebar-toggle-icon {
    transform: rotate(180deg);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px 4px;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 2px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.sidebar-section {
    margin-bottom: 16px;
}

.sidebar-section-title {
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.2s ease;
}

#global-sidebar.collapsed .sidebar-section-title {
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 0;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    margin: 2px 0;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    gap: 12px;
    position: relative;
}

.sidebar-menu-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #e2e8f0;
}

.sidebar-menu-item.active {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border-left: 3px solid #3b82f6;
}

.sidebar-menu-item-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #94a3b8;
}

.sidebar-menu-item.active .sidebar-menu-item-icon {
    color: #60a5fa;
}

.sidebar-menu-item-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    opacity: 1;
    transition: opacity 0.2s ease;
    overflow: hidden;
}

#global-sidebar.collapsed .sidebar-menu-item-text {
    opacity: 0;
    width: 0;
}

/* === SUBMENU === */
.sidebar-menu-item-with-submenu {
    position: relative;
}

.sidebar-menu-item-toggle {
    cursor: pointer;
}

.sidebar-submenu-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #94a3b8;
    transition: transform 0.2s ease;
    margin-left: auto;
}

.sidebar-menu-item-with-submenu.open .sidebar-submenu-arrow {
    transform: rotate(180deg);
}

.sidebar-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    opacity: 0;
    margin-left: 28px;
    margin-top: 4px;
    padding-left: 8px;
    border-left: 2px solid rgba(59, 130, 246, 0.2);
}

.sidebar-menu-item-with-submenu.open .sidebar-submenu {
    max-height: 200px;
    opacity: 1;
}

.sidebar-submenu-item {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    margin: 2px 0;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    font-size: 12px;
    position: relative;
}

.sidebar-submenu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    background: #64748b;
    border-radius: 50%;
    transform: translateY(-50%);
    margin-left: 4px;
}

.sidebar-submenu-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #e2e8f0;
}

.sidebar-submenu-item.active {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

/* === NAV ITEM (Nova estrutura de navegação) === */
.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    margin: 1px 0;
}

.nav-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #e2e8f0;
}

.nav-item .icon {
    font-size: 14px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.nav-item .text {
    flex: 1;
    font-size: 11px;
    font-weight: 500;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.nav-item.nav-item-wrap {
    white-space: normal;
    align-items: center;
}

.nav-item.nav-item-wrap .text {
    line-height: 1.3;
    text-align: left;
}

#global-sidebar.collapsed .nav-item .text {
    opacity: 0;
    width: 0;
}

/* === DROPDOWN NA SIDEBAR === */
.nav-item-dropdown {
    position: relative;
}

.nav-item-dropdown .nav-item {
    cursor: pointer;
    justify-content: space-between;
}

.nav-item-dropdown .nav-item:hover {
    background: rgba(59, 130, 246, 0.1);
    padding-left: 16px;
}

.nav-item-dropdown .arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    margin-left: auto;
    color: #94a3b8;
    flex-shrink: 0;
}

.nav-item-dropdown.active .arrow {
    transform: rotate(180deg);
}

#global-sidebar.collapsed .nav-item-dropdown .arrow {
    display: none;
}

.sidebar-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    margin-left: 0;
    margin-top: 4px;
    border-radius: 6px;
}

.sidebar-dropdown-content.show {
    max-height: 500px;
}

#global-sidebar.collapsed .sidebar-dropdown-content {
    display: none;
}

.sidebar-dropdown-content .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 48px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 2px 4px;
}

.sidebar-dropdown-content .dropdown-item:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #fff;
    padding-left: 52px;
}

.sidebar-dropdown-content .dropdown-item .icon {
    font-size: 16px;
    width: 18px;
    text-align: center;
}

.sidebar-dropdown-content .dropdown-item.active {
    background: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    border-left: 3px solid #3b82f6;
    padding-left: 49px;
}

.sidebar-submenu-item-text {
    margin-left: 12px;
}

#global-sidebar.collapsed .sidebar-submenu {
    display: none !important;
}

#global-sidebar.collapsed .sidebar-submenu-arrow {
    display: none;
}

.sidebar-footer {
    padding: 6px 12px;
    border-top: 1px solid #334155;
    margin-top: auto;
}

.sidebar-footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 4px;
    background: rgba(30, 64, 175, 0.2);
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-footer-logo-image {
    max-width: 100%;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.sidebar-footer-logo-only {
    padding: 2px;
    background: transparent;
}

.sidebar-footer-icon {
    width: 28px;
    height: 28px;
    background: #2563eb;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 12px;
}

.sidebar-footer-text {
    flex: 1;
    min-width: 0;
    opacity: 1;
    transition: opacity 0.2s ease;
}

#global-sidebar.collapsed .sidebar-footer-text {
    opacity: 0;
    width: 0;
}

.sidebar-footer-version {
    font-size: 12px;
    font-weight: 500;
    color: #bfdbfe;
}

.sidebar-footer-subtitle {
    font-size: 11px;
    color: #93c5fd;
}

/* === TOPBAR === */
#global-topbar {
    position: fixed;
    top: 0;
    left: 200px;
    right: 0;
    height: 70px;
    background: #1e293b;
    border-bottom: 1px solid #334155;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.sidebar-collapsed #global-topbar {
    left: 56px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-title {
    font-size: 18px;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
}

/* === TOPBAR SETTINGS DROPDOWN === */
.topbar-settings-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: #cbd5e1;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.7);
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.topbar-settings-btn:hover {
    background: #1d2538;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.9);
}

.topbar-settings-btn:active {
    transform: translateY(1px) scale(0.98);
}

.topbar-settings-icon {
    width: 22px;
    height: 22px;
}

.topbar-settings-dropdown {
    position: absolute;
    top: 60px;
    right: 16px;
    left: auto;
    width: 260px;
    background: #020617;
    border-radius: 12px;
    border: 1px solid #1e293b;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 8px;
    z-index: 1500;
}

.topbar-settings-dropdown.open {
    display: flex;
}

.topbar-settings-section {
    background: #020617;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.8);
}

.topbar-settings-main-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: #020617;
    color: #e5e7eb;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.topbar-settings-main-btn:hover {
    background: rgba(37, 99, 235, 0.18);
}

.topbar-settings-main-icon {
    margin-right: 6px;
}

.topbar-settings-main-arrow {
    font-size: 11px;
    color: #9ca3af;
}

.topbar-settings-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    background: #020617;
}

.topbar-settings-section.open .topbar-settings-submenu {
    max-height: 400px;
}

.topbar-settings-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    font-size: 13px;
    color: #e5e7eb;
    text-decoration: none;
    border-top: 1px solid rgba(30, 41, 59, 0.9);
    background: transparent;
}

.topbar-settings-item:first-child {
    border-top: 1px solid rgba(30, 41, 59, 0.9);
}

.topbar-settings-item:hover {
    background: rgba(37, 99, 235, 0.18);
    color: #bfdbfe;
}

.topbar-settings-item-bullet {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #38bdf8;
    flex-shrink: 0;
}

.topbar-settings-item-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1;
    justify-content: flex-end;
    overflow: hidden;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
    max-width: 280px;
    min-width: 0;
    flex-shrink: 1;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
    z-index: 1001;
}

.topbar-user:hover {
    background: #334155;
}

.topbar-user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
    pointer-events: none;
}

.topbar-user > svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.topbar-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    overflow: hidden;
    max-width: 180px;
    pointer-events: none;
}

.topbar-user-info * {
    pointer-events: none;
}

.topbar-user-name {
    font-size: 14px;
    font-weight: 500;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.topbar-user-email {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.topbar-user-dropdown {
    position: fixed;
    top: 68px;
    right: 20px;
    min-width: 260px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 10000;
    pointer-events: none;
}

.topbar-user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.topbar-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease;
    cursor: pointer;
    width: 100%;
    white-space: nowrap;
    box-sizing: border-box;
    min-height: 44px;
    line-height: 1.4;
    text-align: left;
    justify-content: flex-start;
}

.topbar-user-dropdown-item:hover {
    background: #334155;
}

.topbar-user-dropdown-item.logout {
    color: #f87171;
    border-top: 1px solid #334155;
}

.topbar-user-dropdown-item.logout:hover {
    background: #7f1d1d;
}

.topbar-user-dropdown-item svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    display: block;
}

.topbar-user-dropdown-item > *:not(svg) {
    flex: 1;
    text-align: left;
}

.topbar-user-dropdown {
    width: auto;
    max-width: 300px;
    overflow: hidden;
}

/* === MAIN CONTENT === */
#main-content {
    margin-top: 70px;
    margin-left: 200px;
    width: calc(100vw - 200px);
    max-width: calc(100vw - 200px);
    box-sizing: border-box;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: calc(100vh - 70px);
    padding: 14px 16px;
}

body.sidebar-collapsed #main-content {
    margin-left: 56px;
    width: calc(100vw - 56px);
    max-width: calc(100vw - 56px);
}

/* === RESPONSIVE — somente notebooks e monitores (sem mobile/tablet) === */
#mobile-sidebar-toggle.mobile-sidebar-toggle-btn,
.mobile-overlay {
    display: none !important;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

img, video, svg, canvas {
    max-width: 100%;
    height: auto;
}

/* ============================================
   OTIMIZAÇÃO PARA NOTEBOOKS 13 POLEGADAS
   ============================================ */

/* === NOTEBOOKS 13-15" (1024px-1600px) === */
@media (min-width: 1024px) and (max-width: 1600px) {
    /* Sidebar reduzida */
    #global-sidebar {
        width: 200px;
    }
    
    #global-sidebar.expanded {
        width: 200px;
    }
    
    body.sidebar-collapsed #global-sidebar {
        width: 56px;
    }
    
    /* Topbar ajustada */
    #global-topbar {
        left: 200px;
        height: 50px;
        padding: 0 16px;
    }
    
    body.sidebar-collapsed #global-topbar {
        left: 56px;
    }
    
    .topbar-title {
        font-size: 16px;
    }
    
    .topbar-user {
        padding: 6px 10px;
        max-width: 240px;
    }
    
    .topbar-user-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .topbar-user-name {
        font-size: 13px;
    }
    
    .topbar-user-email {
        font-size: 11px;
    }
    
    .topbar-settings-btn {
        width: 36px;
        height: 36px;
    }
    
    .topbar-settings-icon {
        width: 20px;
        height: 20px;
    }
    
    /* Main content ajustado */
    #main-content {
        margin-left: 200px;
        margin-top: 50px;
        width: calc(100vw - 200px);
        max-width: calc(100vw - 200px);
        padding: 12px 14px;
    }
    
    body.sidebar-collapsed #main-content {
        margin-left: 56px;
        width: calc(100vw - 56px);
        max-width: calc(100vw - 56px);
    }
    
    /* Sidebar menu items menores */
    .sidebar-menu-item {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .sidebar-menu-item-icon {
        width: 18px;
        height: 18px;
    }
    
    .sidebar-header {
        height: 60px;
        padding: 0 12px;
    }
    
    .sidebar-logo-image {
        height: 56px;
    }
    
    .sidebar-nav {
        padding: 10px 4px;
    }
}

/* === NOTEBOOKS 13" CRÍTICO (altura ≤800px) === */
@media (min-width: 1024px) and (max-width: 1600px) and (max-height: 800px) {
    /* Sidebar ainda menor */
    #global-sidebar {
        width: 180px;
    }
    
    #global-sidebar.expanded {
        width: 180px;
    }
    
    body.sidebar-collapsed #global-sidebar {
        width: 56px;
    }
    
    /* Topbar ultra-compacta */
    #global-topbar {
        left: 180px;
        height: 45px;
        padding: 0 12px;
    }
    
    body.sidebar-collapsed #global-topbar {
        left: 56px;
    }
    
    .topbar-title {
        font-size: 15px;
    }
    
    .topbar-user {
        padding: 5px 8px;
        max-width: 200px;
    }
    
    .topbar-user-avatar {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
    
    .topbar-user-name {
        font-size: 12px;
    }
    
    .topbar-user-email {
        font-size: 10px;
        max-width: 150px;
    }
    
    .topbar-settings-btn {
        width: 32px;
        height: 32px;
    }
    
    .topbar-settings-icon {
        width: 18px;
        height: 18px;
    }
    
    /* Main content ajustado */
    #main-content {
        margin-left: 180px;
        margin-top: 45px;
        width: calc(100vw - 180px);
        max-width: calc(100vw - 180px);
        padding: 10px 12px;
    }
    
    body.sidebar-collapsed #main-content {
        margin-left: 56px;
        width: calc(100vw - 56px);
        max-width: calc(100vw - 56px);
    }
    
    /* Sidebar ainda mais compacta */
    .sidebar-menu-item {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .sidebar-menu-item-icon {
        width: 16px;
        height: 16px;
    }
    
    .sidebar-header {
        height: 50px;
        padding: 0 10px;
    }
    
    .sidebar-logo-image {
        height: 48px;
    }
    
    .sidebar-nav {
        padding: 8px 4px;
    }
    
    .sidebar-section {
        margin-bottom: 12px;
    }
    
    /* Dropdown ajustado */
    .topbar-settings-dropdown {
        top: 50px;
    }
    
    .topbar-user-dropdown {
        top: 53px;
    }
}

/* === CARDS RESPONSIVOS === */
.responsive-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

@media (max-width: 640px) {
    .responsive-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .responsive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .responsive-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 64, 175, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    padding: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 64, 175, 0.2) 100%);
}

.feature-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.feature-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 6px;
}

.feature-card-description {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 8px;
    line-height: 1.4;
}

.feature-card-action {
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   MÓDULOS: Logística, Manutenção (Node)
   Notebooks 1024–1600px | Monitores 1601px+
   ============================================ */
.container-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.tabela-card .tabela-wrapper,
.table-container {
    overflow-x: auto;
    max-width: 100%;
}

/* Notebook compacto (ex.: 1366×768, janela não maximizada) */
@media (min-width: 1024px) and (max-width: 1366px) {
    .container-wrapper {
        padding: 12px 14px 18px;
    }
    .filtros-bar,
    .filtros-grid {
        gap: 8px;
    }
    .filtro-input,
    .filtro-select {
        min-width: 120px;
    }
    table {
        font-size: 11px;
    }
    th, td {
        padding: 7px 8px !important;
    }
}

/* Monitores ultrawide — limite suave para leitura (opcional) */
@media (min-width: 2200px) {
    .container-wrapper {
        max-width: 2000px;
        margin-left: auto;
        margin-right: auto;
    }
}

