
        /* --- Paleta Pastel Frulat Group --- */
        :root {
            --bg-pastel: #eaf1ed;
            --glass-bg: rgba(255, 255, 255, 0.65);
            --glass-border: rgba(255, 255, 255, 0.9);
            --frulat-dark: #005a20;
            --frulat-pastel: #a8e6cf;
            --frulat-pastel-dark: #82cdae;
            --text-main: #2d3b33;
            --text-muted: #6b8273;

            /* ESTADOS PEDIDOS */
            --status-sin-iniciar: #fee2e2;                /* 01. Rojo suave / Alerta inicial */
            --status-aprobacion-planta: #ffedd5;         /* 02. Naranja muy claro */
            --status-produccion-iniciada: #fef08a;       /* 03. Amarillo anaranjado */
            --status-embalaje: #fef9c3;                  /* 04. Amarillo claro */
            --status-transporte-nacional: #ecfccb;       /* 05. Lima claro */
            --status-puerto-origen-llenado: #d9f99d;      /* 06. Verde claro suave */
            --status-puerto-origen-almacenamiento: #bbf7d0;/* 07. Verde claro intermedio */
            --status-transito-internacional: #86efac;    /* 08. Verde menta fresco */
            --status-arribado-destino: #4ade80;          /* 09. Verde vivo */
            --status-entregado: #22c55e;                 /* 10. Verde sólido de éxito */
        }

        body {
            background-color: var(--bg-pastel);
            color: var(--text-main);
            font-family: 'Segoe UI', system-ui, sans-serif;
            overflow-x: hidden;
            background-image: 
                radial-gradient(circle at 15% 50%, rgba(168, 230, 207, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 85% 30%, rgba(130, 205, 174, 0.25) 0%, transparent 50%);
            background-attachment: fixed;
            min-height: 100vh;
            padding-bottom: 50px; /* Espacio para el footer */
        }

        /* --- Scrollbar --- */
        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: var(--frulat-pastel-dark); border-radius: 10px; }
        ::-webkit-scrollbar-thumb:hover { background: var(--frulat-dark); }

        /* --- Utilidades Glassmorphism Claro --- */
        .glass-panel {
            background: var(--glass-bg);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            box-shadow: 0 4px 12px rgba(10, 10, 10, 0.288);
        }

        /* --- Login --- */
        .login-page {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
        }

        .login-shell {
            width: min(100%, 980px);
        }

        .login-card {
            display: grid;
            grid-template-columns: 1.05fr 0.95fr;
            overflow: hidden;
            border-radius: 28px;
        }

        .login-hero {
            background: linear-gradient(135deg, rgba(168, 230, 207, 0.55), rgba(0, 90, 32, 0.12));
            padding: 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 24px;
            align-items: flex-start;
            min-height: 100%;
        }

        .login-brand {
            display: flex;
            align-items: center;
            gap: 16px;
            width: 100%;
            min-height: 140px;
            transform: translateY(-4%);
        }

        .login-brand img {
            width: 76px;
            height: auto;
            background: rgba(255,255,255,0.95);
            border-radius: 16px;
            padding: 8px;
            box-shadow: 0 8px 16px rgba(0,0,0,0.06);
        }

        .login-brand h1 {
            font-size: 1.7rem;
            font-weight: 700;
            color: var(--frulat-dark);
            margin-bottom: 6px;
        }

        .login-brand p {
            margin-bottom: 0;
            color: var(--text-main);
            line-height: 1.5;
        }

        .login-highlights {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .login-highlights span {
            background: rgba(255,255,255,0.7);
            border: 1px solid rgba(255,255,255,0.8);
            padding: 10px 12px;
            border-radius: 999px;
            font-size: 0.9rem;
            color: var(--frulat-dark);
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .login-form-panel {
            padding: 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .input-group-glass .input-group-text {
            background: rgba(255,255,255,0.8);
            border: 1px solid rgba(0,0,0,0.08);
            color: var(--frulat-dark);
        }

        .input-group-glass .form-control-glass {
            border-left: 0;
        }

        .login-form-panel .btn-pastel {
            border-radius: 12px;
        }

        .toggle-password {
            background: rgba(255,255,255,0.8);
            color: var(--frulat-dark);
            border-radius: 0 12px 12px 0;
        }

        .toggle-password:hover {
            background: rgba(168, 230, 207, 0.25);
            color: var(--frulat-dark);
        }

        .form-switch .form-check-input {
            width: 2.5rem;
            height: 1.4rem;
            background-color: rgba(0, 90, 32, 0.2);
            border-color: rgba(0, 90, 32, 0.3);
            cursor: pointer;
        }

        .form-switch .form-check-input:checked {
            background-color: var(--frulat-dark);
            border-color: var(--frulat-dark);
            box-shadow: 0 0 0 0.2rem rgba(0, 90, 32, 0.2);
        }

        .form-switch .form-check-input:focus {
            border-color: var(--frulat-pastel-dark);
            box-shadow: 0 0 0 0.2rem rgba(168, 230, 207, 0.25);
        }

        /* --- Dock de Navegación Flotante --- */
        #floating-dock {
            position: fixed;
            top: 20px;
            left: 20px;
            bottom: 60px; /* Respetar espacio del footer */
            width: 80px;
            border-radius: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px 0;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            z-index: 1050;
            overflow: hidden;
            background: rgba(255, 255, 255, 0.75);
        }

        #floating-dock:hover {
            width: 240px;
            align-items: flex-start;
            padding: 20px;
        }

        .dock-logo-container {
            width: 100%;
            display: flex;
            justify-content: center;
            margin-bottom: 30px;
        }

        .dock-logo-container img {
            width: 60px;
            height: auto;
            background: rgba(255,255,255,1);
            padding: 5px;
            border-radius: 10px;
            transition: 0.3s;
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        }

        #floating-dock:hover .dock-logo-container img { width: 60px; }

        .dock-menu { width: 100%; list-style: none; padding: 0; margin: 0; }
        .dock-menu li { width: 100%; margin-bottom: 10px; }

        .dock-menu a {
            display: flex;
            align-items: center;
            color: var(--text-muted);
            text-decoration: none;
            padding: 12px;
            border-radius: 12px;
            transition: all 0.3s ease;
            white-space: nowrap;
        }

        .dock-menu a i { font-size: 1.4rem; min-width: 40px; text-align: center; color: var(--frulat-dark); }
        .dock-menu a span { opacity: 0; transition: opacity 0.3s; margin-left: 10px; font-weight: 500; }
        #floating-dock:hover .dock-menu a span { opacity: 1; }

        .dock-menu a:hover, .dock-menu a.active {
            background: rgba(168, 230, 207, 0.4);
            color: var(--frulat-dark);
            border-left: 3px solid var(--frulat-dark);
            box-shadow: inset 20px 0 20px -20px rgba(168, 230, 207, 0.8);
        }

        .dock-menu .has-submenu > a {
            display: flex;
            align-items: center;
            /* justify-content: space-between; */
            width: 100%;
        }
            .dock-menu .has-submenu {
                position: relative; /* necesario para el dropdown absoluto */
            }
            .dock-menu .has-submenu > a .submenu-arrow {
                font-size: 1rem;
                opacity: 0.7;
                transition: transform 0.2s ease;
            }
            .dock-menu .has-submenu.open > a .submenu-arrow {
                transform: rotate(180deg);
            }
            /* Estilo del submenu como lista anidada (estática bajo el item) */
            .dock-submenu {
                list-style: none;
                margin: 6px 0 0 0;
                padding: 0;
                display: none;
            }
            .dock-menu .has-submenu.open .dock-submenu {
                display: block;
            }
            .dock-submenu li {
                margin-bottom: 0;
            }
            .dock-submenu a {
                display: flex;
                align-items: center;
                color: var(--text-muted);
                text-decoration: none;
                padding: 10px 12px 10px 40px; /* indentar respecto al icono del padre */
                border-radius: 8px;
                transition: background 0.18s, color 0.18s;
                white-space: nowrap;
                background: transparent;
                border-left: 0;
            }
        .dock-submenu a i {
            font-size: 15px;
            min-width: 20px;
            color: var(--frulat-dark);
            opacity: 0.75;
        }
        .dock-submenu a:hover,
        .dock-submenu a.active {
            background: rgba(168, 230, 207, 0.25);
            color: var(--frulat-dark);
            border-left: 3px solid var(--frulat-pastel-dark);
        }

        /* --- Contenido Principal --- */
        #core-content {
            margin-left: 110px; 
            padding: 20px 30px;
            transition: margin-left 0.4s;
        }

        /* --- Header Top --- */
        .glass-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 25px;
            margin-bottom: 30px;
            /* 👇 Líneas agregadas para solucionar el problema del menú */
            position: relative; 
            z-index: 1040; 
        }

        .header-left { display: flex; align-items: center; gap: 15px; }

        .menu-toggle-btn {
            background: rgba(255,255,255,0.7);
            border: 1px solid var(--glass-border);
            color: var(--frulat-dark);
            padding: 8px 12px;
            border-radius: 10px;
            cursor: pointer;
            display: none; /* Oculto en desktop */
        }

        .search-box {
            display: flex;
            align-items: center;
            background: rgba(255,255,255,0.5);
            border: 1px solid var(--glass-border);
            padding: 8px 15px;
            border-radius: 30px;
            width: 300px;
            transition: background 0.3s;
        }
        
        .search-box:focus-within { background: rgba(255,255,255,0.9); box-shadow: 0 0 15px rgba(168, 230, 207, 0.5); }
        .search-box i { color: var(--frulat-dark); margin-right: 10px; }
        .search-holographic { background: transparent; border: none; color: var(--text-main); outline: none; width: 100%; }

        /* Dropdown Personalizado */
        .dropdown-menu.glass-panel {
            background: rgba(255, 255, 255, 0.9);
            padding: 10px;
            border-radius: 12px;
            z-index: 1060;
        }
        .dropdown-item { border-radius: 8px; transition: 0.2s; }
        .dropdown-item:hover { background-color: rgba(168, 230, 207, 0.3); color: var(--frulat-dark); }

        /* --- Tarjetas y Tabla --- */
        .kpi-card { padding: 20px; position: relative; overflow: hidden; transition: transform 0.3s; }
        .kpi-card:hover { transform: translateY(-5px); border-color: var(--frulat-pastel-dark); box-shadow: 0 10px 25px rgba(0, 90, 32, 0.08); }
        .kpi-value { font-size: 2.2rem; font-weight: 700; color: var(--frulat-dark); }
        .kpi-icon { position: absolute; right: -10px; bottom: -10px; font-size: 5rem; opacity: 0.15; color: var(--frulat-dark); transition: 0.3s; }
        
        .table-glass thead th { background: rgba(168, 230, 207, 0.4); border-bottom: 2px solid var(--frulat-pastel-dark); color: var(--frulat-dark); }
        .table-glass tbody td {
            border-bottom: 1px solid rgba(0,0,0,0.04);
            vertical-align: middle;
            background-color: rgba(255, 255, 255, 0.92);
            border-right: 1px solid rgba(0, 90, 32, 0.04);
        }

        .table-glass tbody td:last-child {
            border-right: none;
        }

        .table-users {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            border-radius: 14px;
        }

        .table-responsive {
            overflow-x: auto;
            overflow-y: visible !important;
            width: 100%;
            -webkit-overflow-scrolling: touch;
        }

        .table-users thead th {
            background: linear-gradient(135deg, rgba(168, 230, 207, 0.65), rgba(130, 205, 174, 0.45));
            color: var(--frulat-dark);
            border-bottom: 2px solid var(--frulat-pastel-dark);
            font-weight: 700;
            padding: 14px 12px;
        }

        .table-users tbody tr:nth-child(even) {
            background-color: rgba(168, 230, 207, 0.18);
        }

        .table-users tbody tr:hover {
            background-color: rgba(168, 230, 207, 0.28);
        }

        .table-users tbody td {
            padding: 12px;
            border-bottom: 1px solid rgba(0, 90, 32, 0.08);
            border-right: 1px solid rgba(0, 90, 32, 0.04);
            background-color: rgba(255, 255, 255, 0.92);
            color: var(--text-main);
        }

        .table-users tbody td:last-child {
            border-right: none;
        }

        .table-users .btn-outline-success {
            border-color: var(--frulat-pastel-dark);
            color: var(--frulat-dark);
        }

        .table-users .btn-outline-success:hover {
            background-color: var(--frulat-pastel);
            border-color: var(--frulat-dark);
            color: var(--frulat-dark);
        }

        .table-users .btn-outline-secondary {
            border-color: rgba(0, 90, 32, 0.2);
            color: var(--frulat-dark);
        }

        .table-users .btn-outline-secondary:hover {
            background-color: rgba(168, 230, 207, 0.25);
            border-color: var(--frulat-dark);
            color: var(--frulat-dark);
        }

        .table-users .dropdown {
            position: relative;
        }

        .table-users td,
        .table-users th {
            overflow: visible;
        }

        .table-users .dropdown-menu {
            min-width: 200px;
            padding: 8px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.96);
            border: 1px solid rgba(0, 90, 32, 0.08);
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
            z-index: 9999;
        }

        .table-users .dropdown-item {
            display: flex;
            align-items: center;
            padding: 10px 12px;
            border-radius: 8px;
            transition: 0.2s;
        }

        .text-system{
            color: var(--frulat-dark);
        }

        .table-users .dropdown-item:hover {
            background-color: rgba(168, 230, 207, 0.3);
            color: var(--frulat-dark);
        }
        
        .btn-pastel { background: var(--frulat-pastel); color: var(--frulat-dark); border: none; font-weight: 600; transition: 0.3s; }
        .btn-pastel:hover { background: var(--frulat-pastel-dark); color: #fff; transform: translateY(-2px); }

        .form-control-glass { background: rgba(255,255,255,0.7); border: 1px solid rgba(0,0,0,0.1); }
        .form-control-glass:focus { background: #fff; border-color: var(--frulat-pastel-dark); box-shadow: 0 0 10px rgba(168, 230, 207, 0.5); }

        /* --- Footer Fijo --- */
        .footer-fixed {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 1040;
            background: rgba(255, 255, 255, 0.75);
            backdrop-filter: blur(10px);
            border-top: 1px solid var(--glass-border);
            padding: 10px 20px;
            text-align: center;
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-left: 110px;
            transition: margin-left 0.4s;
        }

        .footer-fixed a {
            color: var(--frulat-dark);
            text-decoration: none;
            font-weight: 600;
            transition: color 0.3s;
        }
        .footer-fixed a:hover { color: var(--frulat-pastel-dark); }

        /* --- User Dropdown Hover --- */
        .user-dropdown {
            padding: 8px 12px;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
             box-shadow: 0 4px 12px rgba(0, 90, 32, 0.288);
        }

        .user-dropdown:hover {
            background: rgba(168, 230, 207, 0.534);
            transform: translateY(-2px);
           
        }

        /* --- MEDIA QUERIES (Responsivo) --- */
        @media (max-width: 992px) {
            .menu-toggle-btn { display: block; } /* Mostrar botón en móviles */
            
            #floating-dock {
                left: -300px; /* Oculto por defecto a la izquierda */
                top: 0;
                bottom: 0;
                height: 100vh;
                width: 260px;
                border-radius: 0;
                border-right: 1px solid var(--glass-border);
                box-shadow: 5px 0 25px rgba(0,0,0,0.1);
            }
            #floating-dock.active { left: 0; } /* Clase que añade el JS */
            
            #floating-dock .dock-logo-container img { width: 60px; }
            #floating-dock .dock-menu a span { opacity: 1; }
            
            #core-content { margin-left: 0; padding: 15px; }
            .footer-fixed { margin-left: 0; }
            .search-box { width: 200px; }
            
            /* Overlay para móviles al abrir menú */
            .sidebar-overlay {
                position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
                background: rgba(0,0,0,0.3); z-index: 1045; display: none;
            }
            .sidebar-overlay.active { display: block; }
        }

        @media (max-width: 768px) {
            .login-card {
                grid-template-columns: 1fr;
            }

            .login-hero {
                padding: 28px;
            }

            .login-form-panel {
                padding: 28px;
            }
        }

        .input-danger {
            border-color: #dc3545 !important;
        }

        .input-system {
            border-color:#005a20 !important;
        }

        .select-tipo {
            width: 25%;
        }

        @media (max-width: 768px) {
            .select-tipo {
                width: 100%;
            }
        }

        .card-integraciones {
            padding: 8px 12px;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(10, 10, 10, 0.288);
        }

        .card-integraciones:hover {
            background: rgba(168, 230, 207, 0.534);
            transform: translateY(-2px);           
        }

        .span-buscar{
            cursor: pointer;
        }

       /* Estilo base para los badges de estado */
.status-badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.375rem;
}

/* Clases específicas con colores de texto de alto contraste */
.status-sin-iniciar {
  background-color: var(--status-sin-iniciar);
  color: #991b1b; /* Rojo oscuro */
}

.status-aprobacion-planta {
  background-color: var(--status-aprobacion-planta);
  color: #9a3412; /* Naranja oscuro */
}

.status-produccion-iniciada {
  background-color: var(--status-produccion-iniciada);
  color: #854d0e; /* Amarillo-Marrón oscuro */
}

.status-embalaje {
  background-color: var(--status-embalaje);
  color: #713f12; /* Ámbar oscuro */
}

.status-transporte-nacional {
  background-color: var(--status-transporte-nacional);
  color: #365314; /* Lima oscuro */
}

.status-puerto-origen-llenado {
  background-color: var(--status-puerto-origen-llenado);
  color: #1a2e05; /* Verde oliva oscuro */
}

.status-puerto-origen-almacenamiento {
  background-color: var(--status-puerto-origen-almacenamiento);
  color: #14532d; /* Verde bosque */
}

.status-transito-internacional {
  background-color: var(--status-transito-internacional);
  color: #065f46; /* Verde esmeralda oscuro */
}

.status-arribado-destino {
  background-color: var(--status-arribado-destino);
  color: #064e3b; /* Verde oscuro profundo */
}

.status-entregado {
  background-color: var(--status-entregado);
  color: #ffffff; /* Texto blanco sobre verde sólido para máxima legibilidad de éxito */
}