/**
 * theme.css
 * Variáveis de tema e estilos base
 * @version 2.0.0
 */

/* ========== CSS Reset & Base ========== */
/* Reset e Configurações Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== CSS Variables ========== */
:root {
    /* Colors - Light Theme */
    --primary: #0066ff;
    --primary-hover: #0052cc;
    --primary-light: #e6f0ff;
    --primary-dark: #0047b3;

    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    --surface: #ffffff;
    --dropdown-bg: #ffffff;
    --background: #f1f5f9;
    --border-color: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    
    --hover-bg: #f9fafb;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 0.75rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    --modal-overlay: rgba(0, 0, 0, 0.5);
    --modal-overlay: rgba(0, 0, 0, 0.5);
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 100px;
    
    --secondary: #6c757d;
    --secondary-hover: #545b62;
    --secondary-light: #e9ecef;
    
    --success: #10b981;
    --success-hover: #059669;
    --success-light: #d1fae5;
    
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --danger-light: #fee2e2;
    
    --warning: #f59e0b;
    --warning-hover: #d97706;
    --warning-light: #fef3c7;
    
    --info: #3b82f6;
    --info-hover: #2563eb;
    --info-light: #dbeafe;
    
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --bg-hover: #f1f5f9;
    --bg-elevated: #ffffff;
    --bg-overlay: rgba(0, 0, 0, 0.5);
    
    /* Text */
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --text-inverse: #ffffff;
    
    /* Borders */
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --border-hover: #d1d5db;
    --border-focus: var(--primary);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border radius */
    --radius-sm: 0.25rem;
    --radius: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 200ms ease;
    --transition-slow: 300ms ease;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-modal-backdrop: 1000;
    --z-modal-base: 1001;
    --z-modal-stacked-increment: 100;
} 

/* Dark Theme */
[data-theme="dark"] {
    --primary: #4d94ff;
    --primary-hover: #2563eb;
    --primary-color: #3b82f6;
    --primary-light: rgba(59, 130, 246, 0.1);
    --primary-dark: #3b82f6;
    
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-hover: #475569;
    --bg-elevated: #1e293b;
    --bg-overlay: rgba(0, 0, 0, 0.7);
    --background-gradient: linear-gradient(135deg, #0f172a 0%, #001344 100%);
    --dropdown-bg: #1e293c; 

    --background: #0f172a;
    --background-gradiente1: #1e2b41;
    --background-gradiente2: #1e293b;
    --background-gradiente3: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --background-gradiente4: #2c3241;

    --surface: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --icon-color: #FFFFFF;
    --text-tertiary: #94a3b8;
    --border-color: #334155;
    --border-light: #1e293b;
    --border-hover: #475569;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

/* ========== Global Styles ========== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    transition: all 0.3s ease;
}


/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* Para resoluções baixas, reduz o zoom geral */
@media screen and (min-width: 1520px) {
  html {
    zoom: 0.9; 
  }
}
@media screen and (max-width: 1520px) {
  html {
    zoom: 0.90; /* 90% do tamanho original */
  }
  .app-main {
        zoom: 0.95;
    }
}

@media screen and (max-width: 1024px) {
  html {
    zoom: 0.80; /* 80% do tamanho original */
  }
}

@media screen and (max-width: 768px) {
  html {
    zoom: 0; /* 75% do tamanho original */
  }
}

/* ========== Utility Classes ========== */
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-tertiary { color: var(--text-tertiary) !important; }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }

/* ========== Animations ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ========== Scrollbar Styles ========== */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: var(--radius-full);
}

*::-webkit-scrollbar-thumb:hover {
    background-color: var(--border-hover);
}

/* ========== Selection ========== */
::selection {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

::-moz-selection {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

/* ========== GLOBAL BADGE STYLES ========== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 7px 7px;
    border-radius: 4px;
    font-size: 11px;
}

.badge-success {
    background-color: #607D8B;
    color: white;
    padding: 7px 7px;
    border-radius: 4px;
    font-size: 11px;
}

.badge-warning {
    background-color: var(--warning-color);
    color: white;
}

.badge-danger,
.badge-inactive {
    background-color: var(--danger-color);
    color: white;
}

.badge-info {
    background-color: var(--info-color);
    color: white;
}

.badge-secondary {
    background-color: var(--secondary-color);
    color: white;
}

/* Status Badge específico */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25px;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    text-align: center;
}

/* ========== GLOBAL SPINNER/LOADING ========== */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}


/* ========================================
        SIDEBAR
        ======================================== */
        .sidebar {
            width: var(--sidebar-width);
            background: var(--surface);
            /* height: 100vh; */
            position: fixed;
            left: 0;
            top: 0;
            bottom: 0;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 10000;
            display: flex;
            flex-direction: column;
        }

        .sidebar.collapsed {
            width: var(--sidebar-collapsed-width);
        }

        .sidebar-inner {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            padding-bottom: 1rem;
        }

        /* Custom Scrollbar */
        .sidebar-inner::-webkit-scrollbar {
            width: 6px;
        }

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

        .sidebar-inner::-webkit-scrollbar-thumb {
            background: var(--border-color);
            border-radius: 3px;
            transition: background 0.2s;
        }

        .sidebar-inner::-webkit-scrollbar-thumb:hover {
            background: var(--text-secondary);
        }

        /* Sidebar Header */
        /* .sidebar-header {
            padding: 1.3rem;
            background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.02) 100%);
            border-bottom: 1px solid var(--border-color);
            position: relative;
            transition: all 0.3s ease;
            flex-shrink: 0;
            box-shadow: var(--shadow-sm);
        } */
         .sidebar-header {
            padding: 1.2rem;
            /* background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.02) 100%); */
            border-bottom: 1px solid var(--border-color);
            position: relative;
            transition: all 0.3s ease;
            flex-shrink: 0;
            /* box-shadow: var(--shadow-sm); */
        }

        .sidebar-header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 50%;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
            opacity: 0.5;
        }

        .logo-wrapper {
            display: flex;
            align-items: center;
            gap: 1rem;
            transition: all 0.3s ease;
            min-height: 48px;
        }

        /* .logo-img {
            width: 48px;
            height: 48px;
            object-fit: contain;
            border-radius: 0.75rem;
            background: linear-gradient(135deg, var(--primary-light), rgba(255, 255, 255, 0.05));
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            padding: 5px;
        } */
         [data-theme="dark"]  .logo-img {
            filter: invert(1) hue-rotate(15deg) brightness(20) contrast(1.2);
         }

        .sidebar:not(.collapsed) .logo-img:hover {
            transform: scale(1.05) rotate(5deg);
            /* box-shadow: 0 6px 12px rgba(37, 99, 235, 0.2); */
        }

        .logo-text {
            display: flex;
            flex-direction: column;
            transition: all 0.3s ease;
            overflow: hidden;
        }

        .logo-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text-primary);
            line-height: 1.2;
        }

        .logo-subtitle {
            font-size: 0.75rem;
            color: var(--text-muted);
            font-weight: 500;
            letter-spacing: 0.05em;
            text-transform: uppercase;
        }

        .logo-svg {
            width:50%;
            height: auto;
        }
        /* ============ ANIMATION 11: ASSEMBLING ============ */
        .logo-wrapper .logo-svg path {
            opacity: 0;
            transform: scale(0) rotate(180deg);
            transform-origin: center;
            animation: assemble 7s ease-in-out infinite;
        }

        .logo-wrapper .logo-svg path:nth-child(1) { animation-delay: 0s; }
        .logo-wrapper .logo-svg path:nth-child(2) { animation-delay: 0.3s; }
        .logo-wrapper .logo-svg path:nth-child(3) { animation-delay: 0.6s; }
        .logo-wrapper .logo-svg path:nth-child(4) { animation-delay: 0.9s; }
        .logo-wrapper .logo-svg path:nth-child(5) { animation-delay: 1.2s; }

        @keyframes assemble {
            0%, 100% { 
                opacity: 0;
                transform: scale(0) rotate(180deg);
            }
            20% {
                opacity: 1;
                transform: scale(1.2) rotate(90deg);
            }
            40%, 80% {
                opacity: 1;
                transform: scale(1) rotate(0deg);
            }
        }

        .sidebar.collapsed .logo-text {
            opacity: 0;
            visibility: hidden;
            width: 0;
        }

        .sidebar.collapsed .logo-wrapper {
            justify-content: center;
        }

        .sidebar.collapsed .sidebar-header {
            padding: 1.2rem 1rem;
        }
        .sidebar.collapsed .logo-svg {
            width: 100%;
        }
        /* Sidebar Toggle Button */
        .sidebar-toggle {
            position: absolute;
            right: -12px;
            top: 28px;
            width: 24px;
            height: 24px;
            background: var(--surface);
            border: 1px solid var(--border-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 10;
            box-shadow: var(--shadow-md);
        }

        .sidebar-toggle:hover {
            background: var(--primary-color);
            border-color: var(--primary-color);
            color: white;
            transform: scale(1.1);
        }

        .sidebar-toggle i {
            font-size: 0.625rem;
            transition: transform 0.3s ease;
        }

        .sidebar.collapsed .sidebar-toggle i {
            transform: rotate(180deg);
        }

        /* ========================================
        MENU
        ======================================== */
        .sidebar-menu {
            padding: 1rem 0;
            flex: 1;
            overflow-y: auto;
        }

        .menu-section {
            margin-bottom: 0.5rem;
        }

        .menu-section-title {
            padding: 0.75rem 1.5rem;
            font-size: 0.625rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s ease;
            position: relative;
        }

        .menu-section-title::before {
            content: '';
            width: 3px;
            height: 12px;
            background: var(--primary-color);
            border-radius: 2px;
            opacity: 0.5;
        }

        .sidebar.collapsed .menu-section-title {
            padding: 0.75rem 0;
            justify-content: center;
            font-size: 0;
        }

        .sidebar.collapsed .menu-section-title::before {
            width: 6px;
            height: 6px;
            border-radius: 50%;
        }

        .sidebar.collapsed .menu-section-title span {
            display: none;
        }

        .menu-item {
            position: relative;
            margin: 0 0.75rem;
            border-radius: 0.5rem;
            margin-bottom: 0.25rem;
        }

        .sidebar.collapsed .menu-item {
            margin: 0 0.5rem;
            position: static;
        }

        .menu-link {
            display: flex;
            align-items: center;
            padding: 0.875rem 1rem;
            color: var(--text-secondary);
            text-decoration: none;
            transition: all 0.2s ease;
            cursor: pointer;
            border: none;
            background: linear-gradient(135deg, var(--primary-light), rgba(37, 99, 235, 0.05));
            width: 100%;
            text-align: left;
            font-size: 0.875rem;
            font-weight: 500;
            border-radius: 0.5rem;
            position: relative;
            overflow: hidden;
        }

        [data-theme="dark"] .menu-link {
            background: linear-gradient(135deg, #0f172a, #0f172a);
        }

        .menu-link::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 0;
            height: 100%;
            background: linear-gradient(90deg, var(--primary-light), transparent);
            transition: width 0.3s ease;
            z-index: -1;
        }

        .menu-link:hover {
            color: var(--primary-color);
            background: var(--primary-light);
            transform: translateX(4px);
        }

        .sidebar.collapsed .menu-link:hover {
            transform: none;
        }

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

        .menu-link.active {
            background: linear-gradient(135deg, var(--primary-light), rgba(37, 99, 235, 0.05));
            color: var(--primary-color);
            font-weight: 600;
            box-shadow: inset 3px 0 0 var(--primary-color);
        }

        .menu-link.active::after {
            content: '';
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            width: 6px;
            height: 6px;
            background: var(--primary-color);
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
            50% { opacity: 0.5; transform: translateY(-50%) scale(1.5); }
        }

        .sidebar.collapsed .menu-link {
            padding: 0.7rem 0.875rem;
            justify-content: center;
            flex-direction: column;
            font-size: 9px;
            margin-bottom: 5px;
            row-gap: 5px;
        }

        .sidebar.collapsed .menu-link.active::after {
            display: none;
        }

        .menu-icon {
            width: 24px;
            margin-right: 0.875rem;
            font-size: 1.325rem;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-primary);
            transition: all 0.2s ease;
        }

        .sidebar.collapsed .menu-icon {
            margin-right: 0;
            font-size: 1.25rem;
        }

        .menu-link:hover .menu-icon,
        .menu-link.active .menu-icon {
            color: var(--primary-color);
            transform: scale(1.1);
        }

        .menu-text {
            flex: 1;
            transition: all 0.3s ease;
        }

        .menu-arrow {
            transition: transform 0.2s;
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        .sidebar.collapsed .menu-arrow {
            display: none;
        }

        .menu-item.open .menu-arrow {
            transform: rotate(90deg);
            color: var(--primary-color);
        }

        .menu-badge {
            padding: 0.125rem 0.5rem;
            background: linear-gradient(135deg, var(--danger-color), #dc2626);
            color: white;
            border-radius: 999px;
            font-size: 0.625rem;
            font-weight: 700;
            margin-left: auto;
            margin-right: 0.25rem;
            box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
            animation: badgePulse 2s infinite;
        }

        @keyframes badgePulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        .sidebar.collapsed .menu-badge {
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            margin: 0;
            min-width: 16px;
            height: 16px;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* ========================================
        SUBMENU
        ======================================== */
        .submenu {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            background: var(--background);
            margin: 0.25rem 0;
            border-radius: 0.5rem;
        }

        .menu-item.open .submenu {
            max-height: 500px;
        }

        .sidebar.collapsed .submenu {
            display: none;
        }

        .submenu-link {
            display: flex;
            align-items: center;
            padding: 0.625rem 1rem 0.625rem 2.5rem;
            color: var(--text-muted);
            text-decoration: none;
            transition: all 0.2s ease;
            font-size: 0.8525rem;
            position: relative;
            font-weight: 600;
        }

        .submenu-link::before {
            content: '';
            position: absolute;
            left: 23.5px;
            top: 50%;
            transform: translateY(-50%);
            width: 8px;
            height: 8px;
            background: var(--text-muted);
            border-radius: 50%;
            transition: all 0.2s ease;
            z-index: 1;
        }

        .submenu-link:hover {
            color: var(--primary-color);
            padding-left: 2.75rem;
            background: var(--primary-light);
        }

        .submenu-link:hover::before {
            background: var(--primary-color);
            opacity: 1;
        }

        .submenu-link.active {
            color: var(--primary-color);
            background: var(--primary-light);
            font-weight: 500;
        }

        .submenu-link::after {
            border-left: 1px solid var(--primary-color);
            bottom: 0;
            content: "";
            left: 27px;
            position: absolute;
            top: 0;
        }

        /* ========================================
        SUBMENU FLUTUANTE (SIDEBAR COLAPSADA)
        ======================================== */
        .sidebar.collapsed .menu-item .submenu-float {
            position: fixed;
            left: var(--sidebar-collapsed-width);
            top: auto;
            background: var(--surface);
            border: 1px solid var(--border-color);
            border-radius: 0.5rem;
            box-shadow: var(--shadow-xl);
            min-width: 200px;
            max-height: 400px;
            overflow-y: auto;
            z-index: 1000;
            display: none;
            margin-left: 0.5rem;
        }

        .sidebar.collapsed .menu-item.show-submenu .submenu-float {
            display: block;
            animation: slideInLeft 0.2s ease;
        }

        @keyframes slideInLeft {
            from {
                opacity: 0;
                transform: translateX(-10px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .sidebar.collapsed .submenu-float .submenu-link {
            padding: 0.75rem 1rem;
            white-space: nowrap;
        }

        .sidebar.collapsed .submenu-float .submenu-link::before,
        .sidebar.collapsed .submenu-float .submenu-link::after {
            display: none;
        }

        .sidebar.collapsed .menu-item.show-submenu .menu-link {
            background: var(--primary-light);
            color: var(--primary-color);
        }

        /* Seta SVG do submenu flutuante */
        .sidebar.collapsed .submenu-float .arrow-svg {
            position: absolute;
            right: calc(100% - 1px);
            top: 18px;
            width: 10px;
            height: 20px;
            z-index: 2;
        }

        .sidebar.collapsed .submenu-float .arrow-svg svg {
            width: 100%;
            height: 100%;
            filter: drop-shadow(0 0 1px rgba(0,0,0,0.1));
        }

        /* Overlay para fechar submenu */
        .submenu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 999;
            display: none;
        }

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

        /* Tooltip para sidebar colapsada */
        .sidebar.collapsed .menu-link::after {
            content: attr(data-tooltip);
            position: absolute;
            left: calc(100% + 0.5rem);
            top: 50%;
            transform: translateY(-50%);
            background: var(--surface);
            color: var(--text-primary);
            padding: 0.5rem 0.75rem;
            border-radius: 0.375rem;
            font-size: 0.8125rem;
            white-space: nowrap;
            box-shadow: var(--shadow-lg);
            border: 1px solid var(--border-color);
            z-index: 1000;
            pointer-events: none;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.2s, visibility 0.2s;
        }

        .sidebar.collapsed .menu-link:hover::after {
            opacity: 1;
            visibility: visible;
        }

        /* ========================================
        SIDEBAR FOOTER
        ======================================== */
        .sidebar-footer {
            margin-top: auto;
            padding: 1rem;
            border-top: 1px solid var(--border-color);
            background: var(--background);
            flex-shrink: 0;
        }

        .user-profile {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem;
            border-radius: 0.5rem;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .user-profile:hover {
            background: var(--surface);
        }

        

        .user-details {
            flex: 1;
            transition: all 0.3s ease;
        }

        .user-name {
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--text-primary);
            line-height: 1.2;
        }

        .user-role {
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        .sidebar.collapsed .user-details {
            display: none;
        }

        .sidebar.collapsed .user-profile {
            justify-content: center;
            padding: 0.5rem;
        }

        /* ========================================
        MAIN WRAPPER E HEADER
        ======================================== */
        .main-wrapper {
            flex: 1;
            margin-left: var(--sidebar-width);
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            transition: margin-left 0.3s ease;
        }

        .sidebar.collapsed ~ .main-wrapper {
            margin-left: var(--sidebar-collapsed-width);
        }

        .app-header {
            background: var(--surface);
            border-bottom: 1px solid var(--border-color);
            box-shadow: var(--shadow-sm);
            position: sticky;
            top: 0;
            z-index: 50;
        }

        .header-content {
            padding: 1rem 2rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .menu-toggle {
            display: none;
            width: 40px;
            height: 40px;
            border: 1px solid var(--border-color);
            background: var(--surface);
            border-radius: 0.5rem;
            cursor: pointer;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .menu-toggle:hover {
            background: var(--background);
            border-color: var(--primary-color);
            color: var(--primary-color);
        }

        .search-box {
            position: relative;
            width: 400px;
        }
        .search-icon-header {
            position: absolute;
            right: 0.875rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-secondary);
            pointer-events: none;
        }
        .search-input {
            width: 100%;
            padding: 0.625rem 1rem 0.625rem 2.5rem;
            border: 1px solid var(--border-color);
            border-radius: 0.5rem;
            background: var(--background);
            font-size: 0.875rem;
            transition: all 0.2s;
        }

        .search-input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
            background: var(--surface);
        }

        /* .search-icon {
            position: absolute;
            left: 0.875rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-secondary);
        } */

        .header-right {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .header-btn {
            width: 40px;
            height: 40px;
            border: 1px solid var(--border-color);
            background: var(--surface);
            border-radius: 0.5rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            position: relative;
            color: var(--text-primary);
        }

        .header-btn:hover {
            background: var(--background);
            border-color: var(--primary-color);
            color: var(--primary-color);
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: var(--danger-color);
            color: white;
            border-radius: 999px;
            min-width: 18px;
            height: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.625rem;
            font-weight: 600;
            padding: 0 4px;
        }

        /* .user-menu {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.5rem 0.75rem;
            border: 1px solid var(--border-color);
            border-radius: 0.5rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .user-menu:hover {
            background: var(--background);
            border-color: var(--primary-color);
        } */

        
        /* Wrapper do menu com dropdown */
        .user-menu-wrapper {
            position: relative;
        }

        /* Menu do usuário */
        .user-menu {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.5rem 0.75rem;
            border: 1px solid var(--border-color);
            border-radius: 0.5rem;
            cursor: pointer;
            transition: all 0.2s;
            background: var(--shadow-sm);
            user-select: none;
        }

        .user-menu:hover {
            background: var(--background);
            border-color: var(--primary-color);
        }

        .user-menu.active {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        /* Avatar do usuário */
        .user-avatar {
            width: 36px;
            height: 36px;/* 
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            font-size: 14px;
        }
        .user-avatar img{
            max-width: 100%;
        }

        /* Informações do usuário */
        .user-info {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .user-name {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .user-role {
            font-size: 12px;
            color: var(--text-secondary);
        }

        /* Ícone de seta */
        .chevron-icon {
            margin-left: 0.5rem;
            transition: transform 0.2s;
            color: var(--text-secondary);
        }

        .user-menu.active .chevron-icon {
            transform: rotate(180deg);
        }

        /* Dropdown Menu */
        .dropdown-menu {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            min-width: 220px;
            background: var(--dropdown-bg);
            border: 1px solid var(--border-color);
            border-radius: 0.5rem;
            box-shadow: var(--shadow);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.2s;
            z-index: 1000;
        }

        .dropdown-menu.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        /* Header do dropdown */
        .dropdown-header {
            padding: 0.75rem 1rem;
            border-bottom: 1px solid var(--border-color);
        }

        .dropdown-email {
            font-size: 12px;
            color: var(--text-secondary);
            margin-top: 2px;
        }

        /* Links do dropdown */
        .dropdown-link {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.625rem 1rem;
            color: var(--text-primary);
            text-decoration: none;
            font-size: 14px;
            transition: background 0.15s;
        }

        .dropdown-link:hover {
            background: var(--hover-bg);
        }

        .dropdown-link svg {
            width: 16px;
            height: 16px;
            color: var(--text-secondary);
        }

        /* Separador */
        .dropdown-divider {
            height: 1px;
            background: var(--border-color);
            margin: 0.25rem 0;
        }

        /* Link de logout */
        .dropdown-link.logout {
            color: #dc2626;
        }

        .dropdown-link.logout svg {
            color: #dc2626;
        }

        /* Badge para notificações */
        .badge {
            background: var(--primary-color);
            color: white;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 10px;
            margin-left: auto;
        }

        /* ========================================
        MAIN CONTENT
        ======================================== */
        .app-main {
            flex: 1;
            padding: 2rem;
            width: 100%;
            margin: 0 auto;
        }

        .page-header {
            margin-bottom: 2rem;display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .page-header h2 {
            font-size: 1.875rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
        }

        .breadcrumb {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.875rem;
            color: var(--text-secondary);
        }

        .breadcrumb a {
            color: var(--text-secondary);
            text-decoration: none;
            transition: color 0.2s;
        }

        .breadcrumb a:hover {
            color: var(--primary-color);
        }

        /* ========================================
        STATS GRID
        ======================================== */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .stat-card {
            background: var(--surface);
            border-radius: var(--radius);
            padding: 1.5rem;
            box-shadow: var(--shadow-sm);
            display: flex;
            align-items: center;
            gap: 1rem;
            transition: all 0.3s ease;
            border-left: 4px solid transparent;
            position: relative;
            overflow: hidden;
        }

        .stat-card::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 100px;
            height: 100px;
            background: linear-gradient(135deg, transparent, rgba(37, 99, 235, 0.05));
            border-radius: 50%;
            transform: translate(30px, -30px);
        }

        .stat-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-lg);
        }

        .stat-card.primary { border-left-color: var(--primary-color); }
        .stat-card.success { border-left-color: var(--success-color); }
        .stat-card.warning { border-left-color: var(--warning-color); }
        .stat-card.danger { border-left-color: var(--danger-color); }

        .stat-icon {
            width: 60px;
            height: 60px;
            border-radius: 0.75rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.75rem;
            position: relative;
            z-index: 1;
        }

        .stat-icon.blue { background: rgba(37, 99, 235, 0.1); color: var(--primary-color); }
        .stat-icon.green { background: rgba(16, 185, 129, 0.1); color: var(--success-color); }
        .stat-icon.orange { background: rgba(245, 158, 11, 0.1); color: var(--warning-color); }
        .stat-icon.red { background: rgba(239, 68, 68, 0.1); color: var(--danger-color); }

        .stat-content {
            flex: 1;
            position: relative;
            z-index: 1;
        }

        .stat-value {
            font-size: 2rem;
            font-weight: 700;
            line-height: 1;
            margin-bottom: 0.25rem;
            color: var(--text-primary);
        }

        .stat-label {
            color: var(--text-secondary);
            font-size: 0.875rem;
        }

        .stat-change {
            margin-top: 0.5rem;
            font-size: 0.75rem;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        .stat-change.positive {
            color: var(--success-color);
        }

        .stat-change.negative {
            color: var(--danger-color);
        }

        /* ========================================
        CONTENT CARD
        ======================================== */
        .content-card {
            background: var(--surface);
            border-radius: var(--radius);
            box-shadow: var(--shadow-md);
            overflow: hidden;
            margin-bottom: 2rem;
            transition: all 0.3s ease;
        }

        .content-card:hover {
            box-shadow: var(--shadow-lg);
        }

        /* .card-header {
            background: linear-gradient(135deg, var(--background-gradiente1) 0%, var(--background-gradiente2) 100%);
            color: white;
            padding: 1.5rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .card-header h3 {
            font-size: 1.25rem;
            font-weight: 600;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            color:var(--text-primary);
        } */

        .card-actions {
            display: flex;
            gap: 0.5rem;
        }

        .card-body {
            padding: 1.5rem;
        }

        /* ========================================
        ACTION BUTTONS
        ======================================== */
        .actions-grid {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 1rem;
        }

        .action-button {
            background: var(--surface);
            border: 2px solid var(--border-color);
            border-radius: var(--radius);
            padding: 1.5rem;
            text-align: center;
            text-decoration: none;
            color: var(--text-secondary);
            transition: all 0.3s;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.75rem;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .action-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
            transform: translateX(-100%);
            transition: transform 0.3s;
        }

        .action-button:hover {
            border-color: var(--primary-color);
            box-shadow: var(--shadow-lg);
            transform: translateY(-4px);
            background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), transparent);
        }

        .action-button:hover::before {
            transform: translateX(0);
        }

        .action-icon {
            font-size: 2rem;
            color: var(--icon-color);
        }

        .action-text {
            font-weight: 500;
            font-size: 0.875rem;
        }

        /* ========================================
        TABLES
        ======================================== */
        .table-responsive {
            overflow-x: auto;
            border-radius: 0.5rem;
        }

        .data-table {
            width: 100%;
            border-collapse: collapse;
            background: var(--surface);
        }

        .data-table th {
            background: var(--background);
            padding: 0.75rem 1rem;
            text-align: left;
            font-weight: 600;
            font-size: 0.8125rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            border-bottom: 2px solid var(--border-color);
        }

        .data-table td {
            padding: 0.75rem 1rem;
            border-bottom: 1px solid var(--border-color);
            font-size: 0.875rem;
        }

        .data-table tbody tr {
            transition: all 0.2s;
        }

        .data-table tbody tr:hover {
            background: var(--background);
        }

        /* ========================================
        BADGES
        ======================================== */
        .badge {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            font-size: 0.75rem;
            font-weight: 600;
            border-radius: 9999px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .badge-success {
            background: rgba(16, 185, 129, 0.1);
            color: var(--success-color);
            border: 1px solid rgba(16, 185, 129, 0.2);
        }

        .badge-warning {
            background: rgba(245, 158, 11, 0.1);
            color: var(--warning-color);
            border: 1px solid rgba(245, 158, 11, 0.2);
        }

        .badge-danger {
            background: rgba(239, 68, 68, 0.1);
            color: var(--danger-color);
            border: 1px solid rgba(239, 68, 68, 0.2);
        }

        .badge-info {
            background: rgba(37, 99, 235, 0.1);
            color: var(--primary-color);
            border: 1px solid rgba(37, 99, 235, 0.2);
        }

        /* ========================================
        BUTTONS
        ======================================== */
        .btn {
            padding: 0.625rem 1.25rem;
            border: none;
            border-radius: 0.5rem;
            font-weight: 500;
            font-size: 0.875rem;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            text-decoration: none;
            position: relative;
            overflow: hidden;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .btn:hover::before {
            width: 300px;
            height: 300px;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .btn:active {
            transform: scale(0.98);
        }

        .btn-primary {
            background: var(--primary-color);
            color: white;
        }

        .btn-primary:hover {
            background: var(--primary-hover);
        }

        .btn-secondary {
            background: var(--secondary-color);
            color: white;
        }

        .btn-success {
            background: var(--success-color);
            color: white;
        }

        .btn-sm {
            padding: 0.375rem 0.875rem;
            font-size: 0.8125rem;
        }

       

       

        

        /* Dashboard Grid */
        .dashboard-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
        }

        /* Activities List */
        .activities-list {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .activity-item {
            display: flex;
            gap: 1rem;
            padding: 1rem;
            border-radius: 0.5rem;
            transition: all 0.2s;
            background: var(--background);
        }

        .activity-item:hover {
            background: #f3f4f6;
        }

        .activity-icon {
            font-size: 1.25rem;
            color: var(--primary-color);
        }

        .activity-content {
            flex: 1;
        }

        .activity-description {
            font-size: 0.875rem;
            margin-bottom: 0.25rem;
            color: var(--text-primary);
        }

        .activity-meta {
            display: flex;
            gap: 1rem;
            font-size: 0.8125rem;
            color: var(--text-secondary);
        }

        /* Loading */
        .loading-skeleton {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: loading 1.5s infinite;
        }

        @keyframes loading {
            0% {
                background-position: 200% 0;
            }
            100% {
                background-position: -200% 0;
            }
        }

        /* Mobile Overlay */
        .sidebar-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 99;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .sidebar-overlay.show {
            display: block;
            opacity: 1;
        }

        

        .loading-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 4rem 2rem;
            min-height: 300px;
        }

        .loading-container .spinner-border {
            width: 3rem;
            height: 3rem;
            border-width: 0.3rem;
            border-color: #e5e7eb;
            border-top-color: #3b82f6;
        }

        .loading-container p {
            margin-top: 1rem;
            color: #6b7280;
            font-size: 0.875rem;
        }

        .info-section {
            background: linear-gradient(to bottom, #f9fafb, #ffffff);
            padding: 1.5rem;
            border-bottom: 1px solid #e5e7eb;
        }

        .section-title {
            font-size: 1rem;
            font-weight: 600;
            color: #374151;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .section-title i {
            color: #3b82f6;
            font-size: 1.125rem;
        }

        .info-grid {
            display: grid;
            grid-template-columns: auto auto auto auto;
            gap: 1rem;
        }

        /* .info-item {
            display: flex;
            align-items: center;
            padding: 0.75rem;
            background: white;
            border-radius: 0.5rem;
            border: 1px solid #e5e7eb;
            transition: all 0.2s;
        } */

        .info-item:hover {
            border-color: #3b82f6;
            box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
        }

        .info-label {
            font-weight: 600;
            color: #6b7280;
            margin-right: 0.75rem;
            min-width: 100px;
            font-size: 0.8125rem;
            text-transform: uppercase;
            letter-spacing: 0.025em;
        }

        .info-value {
            color: #111827;
            font-weight: 500;
            flex: 1;
        }

        .ocupacao-display {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            width: 100%;
        }

        .ocupacao-display .progress {
            flex: 1;
            height: 10px;
            background: #e5e7eb;
            border-radius: 5px;
            overflow: hidden;
        }

        .ocupacao-display .progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #10b981, #059669);
            transition: width 0.3s ease;
        }

        .ocupacao-display .progress-bar.bg-warning {
            background: linear-gradient(90deg, #f59e0b, #d97706);
        }

        .ocupacao-display .progress-bar.bg-danger {
            background: linear-gradient(90deg, #ef4444, #dc2626);
        }

        /* ========================================
        ANIMATIONS
        ======================================== */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ========================================
        RESPONSIVE
        ======================================== */
        @media (max-width: 1400px) {
            .stat-card {
                padding: 0.5rem 1rem;
            }
        }

        @media (max-width: 1200px) {
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .column-header {
                font-size: 0.5rem;
                padding: 0.125rem 0;
            }
            
            .heatmap-cell {
                min-height: 25px;
            }
        }

        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(-100%);
            }

            .sidebar.open {
                transform: translateX(0);
                box-shadow: var(--shadow-xl);
            }

            .sidebar-toggle {
                display: none;
            }

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

            .menu-toggle {
                display: flex;
            }

            .search-box {
                display: none;
            }

            .user-info {
                display: none;
            }

            .sidebar-overlay {
                display: block;
                opacity: 0;
                pointer-events: none;
            }

            .sidebar.open ~ .sidebar-overlay {
                opacity: 1;
                pointer-events: auto;
            }

            .js-menu-header {
                display: flex;
            }

            .stats-grid {
                grid-template-columns: 1fr;
            }

            .actions-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .dashboard-grid {
                grid-template-columns: 1fr;
            }

            .warehouse-filters {
                flex-direction: column;
                gap: 1rem;
            }
            
            .filter-section {
                width: 100%;
            }

            .warehouse-heatmap {
                padding: 0.5rem;
            }
            
            .row-label {
                width: 45px;
                min-width: 45px;
                font-size: 0.625rem;
                padding-right: 0.25rem;
            }
            
            .column-headers {
                padding-left: 45px;
            }
            
            .row-cells {
                width: calc(100% - 45px);
            }
            
            .corridor-road {
                margin-left: 45px;
                width: calc(100% - 45px);
            }
            
            .heatmap-cell,
            .empty-space {
                height: 20px;
            }
            
            .side-label {
                font-size: 0.75rem;
                left: -60px;
            }
        }

        @media (min-width: 768px) {
            .js-menu-header {
                display: none;
            }
        }

        @media (max-width: 480px) {
            .column-header {
                font-size: 0;
                padding: 0.125rem 0;
                min-height: 15px;
            }
            
            .heatmap-cell,
            .empty-space {
                height: 15px;
                border-radius: 0.125rem;
            }
            
            .row-label {
                font-size: 0.5rem;
            }
        }
        /* ==========================================================================
        NOTIFICAÇÕES
        ========================================================================== */
        .notification-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 9999;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }
        /* Container visível */
        .notification-container.show {
            opacity: 1;
            visibility: visible;
            z-index: 99999;
        }
        .alert {
            padding: 1rem 1.5rem;
            border-radius: 0.5rem;
            min-width: 300px;
            max-width: 500px;
            display: none;
            box-shadow: var(--shadow-lg);
            animation: slideInRight 0.3s ease-out;
            margin-bottom: 0.75rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            cursor: pointer;
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        .alert:hover {
            transform: translateX(-5px);
        }

        .alert.show {
            display: flex;
        }

        .alert:not(.show) {
            opacity: 0;
            transform: translateX(100%);
            pointer-events: none;
        }

        .alert i {
            font-size: 1.25rem;
            flex-shrink: 0;
        }

        .alert-success {
            background-color: #d1fae5;
            border: 1px solid #a7f3d0;
            color: #065f46;
        }

        [data-theme="dark"] .alert-success {
            background-color: #064e3b;
            border: 1px solid #10b981;
            color: #d1fae5;
        }

        .alert-success i {
            color: #10b981;
        }

        .alert-warning {
            background-color: #fed7aa;
            border: 1px solid #fdba74;
            color: #92400e;
        }

        [data-theme="dark"] .alert-warning {
            background-color: #78350f;
            border: 1px solid #f59e0b;
            color: #fed7aa;
        }

        .alert-warning i {
            color: #f59e0b;
        }

        .alert-danger {
            background-color: #fee2e2;
            border: 1px solid #fecaca;
            color: #991b1b;
        }

        [data-theme="dark"] .alert-danger {
            background-color: #7f1d1d;
            border: 1px solid #ef4444;
            color: #fee2e2;
        }

        .alert-danger i {
            color: #ef4444;
        }