:root {
    --primary-blue: #003366;     /* Azul Marino Principal (basado en tu logo) */
    --accent-blue: #0066b2;      /* Azul Secundario para hovers */
    --bg-light: #f4f7f6;         /* Fondo gris muy claro para el panel */
    --white: #ffffff;
    --text-muted: #6c757d;       /* Gris para placeholders e iconos */
    --border-color: #dee2e6;     /* Gris suave para bordes de inputs */
}

/* --- ESTILOS GENERALES PARA FORMULARIOS --- */
.dashboard-form-group {
    margin-bottom: 25px;
}

.dashboard-section-title {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- ESTILO PARA BOTONES (PRIMARY BUTTON) --- */
.btn-deqas {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: linear-gradient(90deg, #003366 0%, #0066b2 100%); /* Gradiente basado en tu logo */
    color: var(--white);
    border: none;
    border-radius: 12px; /* Borde redondeado moderno */
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 51, 102, 0.2); /* Sombra suave para profundidad */
}

/* Efecto hover/foco para el botón */
.btn-deqas:hover,
.btn-deqas:focus {
    transform: translateY(-2px); /* Pequeña elevación */
    box-shadow: 0 6px 15px rgba(0, 51, 102, 0.3);
    outline: none;
}

/* Botón inactivo */
.btn-deqas:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    box-shadow: none;
}

/* --- ESTILO PARA INPUTS (TEXT FIELD) --- */
.input-deqas-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.input-deqas {
    width: 100%;
    padding: 10px 15px 10px 45px; /* Padding extra a la izquierda para el icono */
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--primary-blue);
    background-color: var(--white);
    border: 2px solid var(--border-color); /* Borde suave */
    border-radius: 12px; /* Mismo radio que el botón */
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Icono dentro del input */
.input-deqas-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
    pointer-events: none; /* No interfiere con el clic del input */
}

/* PlaceHolder */
.input-deqas::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Estado de foco y hover del input */
.input-deqas:hover {
    border-color: #cbd3da;
}

.input-deqas:focus {
    outline: none;
    border-color: var(--accent-blue); /* Borde azul de la marca */
    box-shadow: 0 0 0 3px rgba(0, 102, 178, 0.1); /* Anillo de foco suave */
}

/* Botón Principal (Agregar Orden) */
.btn-deqas-primary {
    font-family: 'Outfit', sans-serif;
    background-color: #0056b3; /* Un azul un poco más vivo */
    color: white;
    border: none;
    padding: 5px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-deqas-primary:hover {
    background-color: #003366;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Botón Secundario (Sincronizar) */
.btn-deqas-secondary {
    font-family: 'Outfit', sans-serif;
    background-color: #f1f5f9; /* Fondo gris azulado muy claro */
    color: #1e293b;
    border: 1px solid #e2e8f0;
    padding: 5px 20px;
    font-size: 14px;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-deqas-secondary:hover {
    background-color: #e2e8f0;
    color: #003366;
}

/* Iconos */
.btn-deqas-primary i, .btn-deqas-secondary i {
    font-size: 14px;
}

/* Base para todos los botones del sistema Deqas */
.btn-deqas-primary, .btn-deqas-secondary, .btn-deqas-danger, .btn-deqas-success, .btn-deqas-excel {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0 5px;
}

/* Procesar / Principal (Azul Deqas) */
.btn-deqas-primary {
    background-color: #003366;
    color: white;
    font-size: 14px;
}

.btn-deqas-primary:hover {
    background-color: #004a94;
    transform: translateY(-2px);
}

/* Eliminar / Peligro (Rojo elegante) */
.btn-deqas-danger {
    background-color: #ef4444;
    color: white;
}

.btn-deqas-danger:hover {
    background-color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

/* Boton dinamico para quitar orden asignada */
.btn_remove_tag {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    cursor: pointer;
    box-shadow: 0 8px 18px -10px rgba(220, 38, 38, 0.7);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn_remove_tag:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 12px 22px -12px rgba(185, 28, 28, 0.85);
}

.btn_remove_tag:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18), 0 12px 22px -12px rgba(185, 28, 28, 0.85);
}

.btn_remove_tag i {
    font-size: 0.85rem;
    line-height: 1;
}

/* Imprimir / Éxito (Verde Esmeralda - Sugerencia de diseño) */
.btn-deqas-success {
    background-color: #10b981;
    color: white;
}

.btn-deqas-success:hover {
    background-color: #059669;
}

/* Exportar Excel */
.btn-deqas-excel {
    background-color: #15803d;
    color: white;
}

/* Limpiar / Secundario (Gris suave) */
.btn-deqas-secondary {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-deqas-secondary:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

/* Tamaño pequeño para limpiar */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Caja de información para la descarga */
.dashboard-info-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-family: 'Outfit', sans-serif; /* */
}

/* Estilo para el input file */
input[type="file"].dashboard-modal-input {
    padding: 8px;
    cursor: pointer;
}

/* Botón de éxito (Verde) para la carga */
.btn-deqas-success {
    background-color: #10b981;
    color: white;
    font-family: 'Outfit', sans-serif;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-deqas-success:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-deqas-excel {
    font-family: 'Outfit', sans-serif !important;
    margin: 0 5px !important;
    background-color: #15803d !important; /* Verde Excel Profesional */
    color: #ffffff !important;
    border: none !important;
    padding: 6px 20px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.btn-deqas-excel:hover {
    background-color: #166534 !important; /* Tono más oscuro al pasar el mouse */
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px -3px rgba(21, 128, 61, 0.2) !important;
}

.btn-deqas-excel i {
    font-size: 1rem !important;
    line-height: 1 !important;
}

#btn_change_state {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1040;
}

.btn_primary_fixed {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #003366 0%, #0066b2 100%);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 14px 22px;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 16px 32px -16px rgba(0, 51, 102, 0.9);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn_primary_fixed:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px -18px rgba(0, 51, 102, 0.95);
    filter: brightness(1.05);
}

.btn_primary_fixed:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 102, 178, 0.18), 0 20px 36px -18px rgba(0, 51, 102, 0.95);
}

.btn_primary_fixed i {
    font-size: 1rem;
    line-height: 1;
}

@media (max-width: 768px) {
    #btn_change_state {
        right: 16px;
        bottom: 16px;
    }

    .btn_primary_fixed {
        padding: 12px 18px;
        font-size: 13px;
    }
}
/* 1. Contenedor Principal (Igualar tamaño y bordes de tus inputs) */
.select2-container--default .select2-selection--multiple {
    background-color: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    min-height: 48px !important; 
    height: auto !important; /* Permite crecer si hay muchas filas */
    padding: 2px 8px !important;
    font-family: 'Outfit', sans-serif !important;
    display: flex !important;
    align-items: center !important;
    transition: border-color 0.3s ease;
}

/* ========================================================================
   INTEGRACIÓN SELECT2 PREMIUM - DISEÑO DEQAS 
   ======================================================================== */

/* Contenedor Principal: Ajuste de altura y espacio para el icono */
.select2-container--default .select2-selection--multiple {
    background-color: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    min-height: 48px !important; 
    height: auto !important;
    padding: 5px 12px 5px 45px !important; /* Espacio para el icono MDI a la izquierda */
    font-family: 'Outfit', sans-serif !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.3s ease;
}

/* Estado Focus */
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #003366 !important;
    box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.05) !important;
}

/* Área de Tags: Flujo horizontal con separación */
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 6px !important; /* Espacio real entre etiquetas */
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    list-style: none !important;
}

/* Estilo de las Píldoras (Tags) */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #f0f7ff !important;
    color: #003366 !important;
    border: 1px solid #d0e3ff !important;
    border-radius: 8px !important;
    padding: 4px 12px !important;
    margin: 0 !important; /* Controlado por el gap del padre */
    font-family: 'Outfit', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 32px !important;
}

/* Botón de eliminar (X) del tag */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #003366 !important;
    margin-right: 8px !important;
    border: none !important;
    font-size: 16px !important;
    font-weight: bold !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #ff4d4d !important;
    background: transparent !important;
}

/* Buscador interno e Input */
.select2-container--default .select2-search--inline {
    margin: 0 !important;
    flex-grow: 1 !important;
}

.select2-container--default .select2-search--inline .select2-search__field {
    font-family: 'Outfit', sans-serif !important;
    font-size: 14px !important;
    margin: 0 !important;
    padding: 4px 0 !important;
    height: 32px !important;
    line-height: 32px !important;
    width: 100% !important;
    background: transparent !important;
}

/* Dropdown (Lista de resultados) */
.select2-dropdown {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    margin-top: 5px !important;
}

.select2-results__option {
    padding: 12px 16px !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 14px !important;
    color: #334155 !important;
}

/* Selección resaltada */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #003366 !important;
    color: #ffffff !important;
}

/* Botón "Clear" (La X pequeña a la derecha del input principal) */
.select2-container--default .select2-selection--multiple .select2-selection__clear {
    margin-right: 10px !important;
    color: #94a3b8 !important;
    font-size: 18px !important;
}

/* ========================================================================
   INTEGRACIÓN SELECT2 PREMIUM - DISEÑO DEQAS (TIENDAS Y COMUNAS)
   ======================================================================== */

/* Contenedor Principal (Aplica a Single y Multiple) */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    background-color: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    min-height: 48px !important; 
    height: auto !important;
    padding-left: 40px !important; /* Espacio para el icono mdi-store / mdi-map */
    font-family: 'Outfit', sans-serif !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.3s ease;
}

/* Ajuste específico para Select Simple (Tiendas) */
.select2-container--default .select2-selection--single {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1e293b !important;
    line-height: 45px !important;
    padding-left: 0 !important;
    font-weight: 400;
}

/* Flecha del Select Simple */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 45px !important;
    right: 10px !important;
}

/* --- ESTILOS PARA TAGS (Múltiple - Comunas) --- */
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #f0f7ff !important;
    color: #003366 !important;
    border: 1px solid #d0e3ff !important;
    border-radius: 8px !important;
    padding: 2px 10px !important;
    margin: 4px 0 !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 30px !important;
}

/* --- COMÚN: BUSCADOR E INPUT --- */
.select2-container--default .select2-search--inline .select2-search__field {
    font-family: 'Outfit', sans-serif !important;
    margin: 0 !important;
    height: 32px !important;
    line-height: 32px !important;
}

/* --- DROPDOWN (LISTA) --- */
.select2-dropdown {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1) !important;
    margin-top: 5px !important;
    z-index: 10000 !important;
}

.select2-results__option {
    padding: 10px 15px !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 14px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #003366 !important;
    color: #ffffff !important;
}