/* === VDP Materiales - Estilos Modernos CSS3 === */
/* Reset y Variables CSS */
:root {
    /* Colores principales */
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --primary-light: #5dade2;
    --secondary-color: #2c3e50;
    --secondary-dark: #1c2833;
    --secondary-light: #566573;
    --success-color: #27ae60;
    --success-dark: #229954;
    --success-light: #58d68d;
    --warning-color: #f39c12;
    --warning-dark: #d68910;
    --warning-light: #f8c471;
    --danger-color: #e74c3c;
    --danger-dark: #cb4335;
    --danger-light: #ec7063;
    --info-color: #17a2b8;
    --info-dark: #138496;
    --info-light: #48c9b0;
    --light-color: #ecf0f1;
    --light-dark: #d0d3d4;
    --dark-color: #2c3e50;
    --dark-light: #566573;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #3498db, #2980b9);
    --gradient-primary-hover: linear-gradient(135deg, #2980b9, #2471a3);
    --gradient-secondary: linear-gradient(135deg, #2c3e50, #34495e);
    --gradient-secondary-hover: linear-gradient(135deg, #34495e, #2c3e50);
    --gradient-success: linear-gradient(135deg, #27ae60, #2ecc71);
    --gradient-success-hover: linear-gradient(135deg, #229954, #27ae60);
    --gradient-warning: linear-gradient(135deg, #f39c12, #e67e22);
    --gradient-warning-hover: linear-gradient(135deg, #e67e22, #d68910);
    --gradient-danger: linear-gradient(135deg, #e74c3c, #c0392b);
    --gradient-danger-hover: linear-gradient(135deg, #c0392b, #a93226);
    --gradient-info: linear-gradient(135deg, #17a2b8, #138496);
    --gradient-info-hover: linear-gradient(135deg, #138496, #117a8b);
    --gradient-light: linear-gradient(135deg, #f8f9fa, #e9ecef);
    --gradient-light-hover: linear-gradient(135deg, #e9ecef, #dee2e6);
    --gradient-dark: linear-gradient(135deg, #343a40, #495057);
    --gradient-dark-hover: linear-gradient(135deg, #495057, #343a40);
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-xxl: 0 30px 90px rgba(0,0,0,0.2);
    
    /* Bordes */
    --border-radius-sm: 4px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-2xl: 20px;
    --border-radius-full: 9999px;
    
    /* Transiciones */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Tipografía */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-family-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    --font-family-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Z-index layers */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    --line-height-loose: 2;
    
    /* Espaciado */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Breakpoints */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
}

/* === VDP Solicitud Form Styles === */

.vdp-solicitud-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.vdp-solicitud-header h2 {
    color: var(--secondary-color);
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin: 0 0 var(--space-sm) 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.vdp-form-description {
    color: var(--secondary-light);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    max-width: 600px;
    margin: 0 auto;
}

.vdp-material-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.vdp-form-section {
    padding: var(--space-2xl);
    border-bottom: 1px solid var(--light-dark);
}

.vdp-form-section:last-child {
    border-bottom: none;
}

.vdp-section-title {
    color: var(--secondary-color);
    font-size: var(--font-size-2xl);
    font-weight: 600;
    margin: 0 0 var(--space-xl) 0;
    text-align: left;
}

/* Form Groups */
.vdp-form-group {
    margin-bottom: var(--space-xl);
}

.vdp-form-label {
    display: block;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-sm);
}

.vdp-required {
    color: var(--danger-color);
    margin-right: var(--space-xs);
}

.vdp-form-input,
.vdp-form-select {
    width: 100%;
    padding: var(--space-lg) var(--space-xl);
    border: 2px solid var(--light-dark);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    background: white;
    transition: var(--transition);
    box-sizing: border-box;
}

.vdp-form-input:focus,
.vdp-form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.vdp-form-select {
    cursor: pointer;
}

.vdp-form-help {
    display: block;
    color: var(--secondary-light);
    font-size: var(--font-size-xs);
    margin-top: var(--space-xs);
}

.vdp-other-input.vdp-hidden {
    display: none;
}

.vdp-hidden {
    display: none;
}

/* Material Groups */
.vdp-material-group {
    margin-bottom: var(--space-3xl);
}

.vdp-material-title {
    display: flex;
    align-items: center;
    color: var(--secondary-color);
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin: 0 0 var(--space-lg) 0;
    padding: var(--space-md) 0;
    border-bottom: 2px solid var(--light-color);
}

.vdp-number {
    background: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: var(--border-radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    font-weight: bold;
    margin-right: var(--space-md);
}

/* Checkboxes */
.vdp-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.vdp-material-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border: 1px solid var(--light-dark);
    border-radius: var(--border-radius);
    background: white;
    transition: var(--transition);
}

.vdp-material-item:hover {
    border-color: var(--secondary-light);
    background: var(--light-color);
}

.vdp-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    flex-grow: 1;
    transition: var(--transition);
}

.vdp-checkbox-label:hover {
    color: var(--primary-color);
}

.vdp-checkbox {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 1px;
}

.vdp-checkbox-text {
    font-weight: 500;
    color: var(--dark-color);
    line-height: var(--line-height-normal);
    flex-grow: 1;
}

.vdp-checkbox-other {
    border-color: var(--primary-color);
    background: #ecf9ff;
}

.vdp-quantity-input {
    width: 90px;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--light-dark);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-align: center;
    background: white;
    transition: var(--transition);
    flex-shrink: 0;
    color: var(--dark-color);
    box-shadow: var(--shadow-sm);
}

.vdp-quantity-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
    background: #f8fdff;
}

.vdp-quantity-input:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.vdp-quantity-input:invalid {
    border-color: var(--danger-color);
    background: #fff5f5;
}

.vdp-material-item:has(.vdp-checkbox:checked) {
    border-color: var(--primary-color);
    background: #f8fdff;
    box-shadow: var(--shadow-sm);
}

.vdp-material-item:has(.vdp-checkbox:checked) .vdp-checkbox-text {
    color: var(--primary-dark);
    font-weight: 600;
}

/* Privacy and Form Actions */
.vdp-privacy-label {
    display: flex !important;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    padding: var(--space-xl);
    background: var(--light-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--light-dark);
    margin: 0;
}

.vdp-privacy-label .vdp-checkbox-text {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
    color: var(--dark-light);
}

.vdp-form-actions {
    padding: var(--space-2xl);
    background: var(--light-color);
    text-align: center;
}

.vdp-submit-button {
    background: var(--gradient-success);
    color: white;
    border: none;
    padding: var(--space-xl) var(--space-2xl);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.vdp-submit-button:hover:not(:disabled) {
    background: var(--gradient-success-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.vdp-submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Loading States */
.vdp-button-loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.vdp-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2ecc71;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Response Messages */
.vdp-response-section {
    margin: 20px 0;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 15px;
}

.vdp-success {
    background: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.vdp-error {
    background: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.vdp-success-icon,
.vdp-error-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.vdp-success h4,
.vdp-error h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
}

.vdp-response-section p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: var(--breakpoint-md)) {
    .vdp-material-form .vdp-form-section {
        padding: var(--space-xl);
    }

    .vdp-form-actions {
        padding: var(--space-xl);
    }

    .vdp-solicitud-header h2 {
        font-size: var(--font-size-2xl);
    }

    .vdp-checkbox-grid {
        grid-template-columns: 1fr;
    }

    .vdp-submit-button {
        width: 100%;
        padding: var(--space-lg) var(--space-2xl);
    }
}

/* Salidas Table Styles */
.vdp-salidas-container {
    margin-top: 30px;
}

.vdp-salidas-table-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    background: white;
    border: 1px solid #e1e8ed;
}

.vdp-salidas-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}

.vdp-salidas-table thead {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
}

.vdp-salidas-table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 3px solid #2980b9;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.vdp-salidas-table td {
    padding: 16px 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.vdp-salidas-table tbody tr {
    transition: all 0.3s ease;
    position: relative;
}

.vdp-salidas-table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.vdp-salidas-table tbody tr:nth-child(even) {
    background: linear-gradient(135deg, #fafbfc 0%, #f1f3f4 100%);
}

.vdp-salidas-table tbody tr:nth-child(even):hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

/* Solicitud Info Styles */
.vdp-solicitud-info {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #dee2e6;
}

.vdp-solicitud-detalles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.vdp-detalle-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.vdp-detalle-item strong {
    font-weight: 600;
    color: #2c3e50;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vdp-detalle-item span {
    color: #34495e;
    font-weight: 500;
}

/* Stock Status Badges */
.vdp-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid transparent;
}

.vdp-stock-disponible {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-color: #28a745;
}

.vdp-stock-insuficiente {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-color: #dc3545;
}

.vdp-stock-badge i {
    font-size: 11px;
    opacity: 0.8;
}

/* Form Loading State */
.vdp-form-loading {
    opacity: 0.7;
    pointer-events: none;
}

.vdp-form-loading button[type="submit"] {
    position: relative;
}

.vdp-form-loading button[type="submit"]:after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 480px) {
    .vdp-form-section {
        padding: 15px;
    }

    .vdp-material-title {
        font-size: 16px;
    }

    .vdp-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

/* Dashboard Full Template Styles */
.vdp-dashboard-body {
    margin: 0;
    padding: 0;
    background: var(--light-color);
    font-family: var(--font-family);
}

#vdp-dashboard-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header del Dashboard */
.vdp-dashboard-header {
    background: var(--gradient-secondary);
    color: white;
    padding: var(--space-xl) 0;
    box-shadow: var(--shadow-md);
}

.vdp-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vdp-header-logo h1 {
    margin: 0;
    font-size: var(--font-size-2xl);
    font-weight: 600;
}

.vdp-user-actions {
    display: flex;
    gap: var(--space-lg);
}

.vdp-logout-button,
.vdp-admin-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-size: var(--font-size-sm);
}

.vdp-logout-button:hover,
.vdp-admin-link:hover {
    background: rgba(255,255,255,0.2);
}

/* Dashboard Styles */
#vdp-dashboard {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-xl);
    background: var(--light-color);
    width: 100%;
}

#vdp-dashboard h2 {
    color: var(--dark-color);
    margin-bottom: var(--space-xl);
    font-size: var(--font-size-3xl);
    font-weight: 300;
}

.vdp-dashboard-layout {
    display: flex;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 600px;
}

.vdp-dashboard-sidebar {
    width: 250px;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    padding: var(--space-xl) 0;
    border-right: 1px solid var(--primary-dark);
}

.vdp-tab {
    background: none;
    border: none;
    padding: var(--space-lg) var(--space-xl);
    cursor: pointer;
    transition: var(--transition);
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--light-color);
    text-align: left;
    position: relative;
    border: none;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
    margin-bottom: var(--space-xs);
    z-index: 10; /* Ensure tabs are clickable */
}

.vdp-tab i {
    font-size: var(--font-size-lg);
    width: 18px;
    opacity: 0.9;
    color: var(--light-color) !important;
}

/* Explicit color definitions for all dashicons to prevent transparency issues */
.vdp-dashboard-sidebar .dashicons,
.vdp-modal .dashicons,
.vdp-tab-content .dashicons,
.vdp-data-table .dashicons,
.vdp-btn-icon .dashicons,
.vdp-section-title .dashicons,
.vdp-modal-title .dashicons,
.vdp-form-label .dashicons,
.vdp-table-title .dashicons,
.vdp-info-title .dashicons,
.vdp-stat-card .dashicons,
.vdp-welcome-section .dashicons,
.vdp-section-actions .dashicons,
.vdp-user-actions .dashicons,
.vdp-header-user-info .dashicons,
.vdp-modal-actions .dashicons,
.vdp-btn-save .dashicons,
.vdp-btn-cancel .dashicons,
.vdp-btn-large .dashicons,
.vdp-process-btn .dashicons,
.vdp-detalle-section .dashicons,
.vdp-material-item .dashicons,
.vdp-search-result-item .dashicons,
.vdp-no-data .dashicons,
.vdp-error-message .dashicons,
.vdp-no-materials .dashicons,
.vdp-loading-overlay .dashicons,
.vdp-tab .dashicons,
.vdp-header-content .dashicons,
.vdp-modal-close .dashicons,
.vdp-btn-edit .dashicons,
.vdp-btn-delete .dashicons,
.vdp-btn-entrada .dashicons,
.vdp-btn-salida .dashicons,
.vdp-btn-stock .dashicons,
.vdp-ver-detalle-btn .dashicons,
.vdp-detalles-btn .dashicons,
.vdp-logout-button .dashicons,
.vdp-admin-link .dashicons {
    color: inherit !important;
    opacity: 1 !important;
}

/* Specific icon colors for different contexts */
.vdp-dashboard-sidebar .dashicons {
    color: var(--light-color) !important;
}

.vdp-modal-header .dashicons {
    color: var(--dark-color) !important;
}

.vdp-btn-icon .dashicons {
    color: var(--secondary-color) !important;
}

.vdp-btn-icon:hover .dashicons {
    color: var(--primary-color) !important;
}

.vdp-data-table .dashicons {
    color: var(--secondary-light) !important;
}

.vdp-data-table .dashicons:hover {
    color: var(--primary-color) !important;
}

/* Tab icons - ensure they're always visible */
.vdp-tab .dashicons {
    color: var(--light-color) !important;
}

.vdp-tab:hover .dashicons {
    color: white !important;
}

.vdp-tab.active .dashicons {
    color: white !important;
}

/* Header icons */
.vdp-header-content .dashicons {
    color: white !important;
}

/* Modal close button */
.vdp-modal-close .dashicons {
    color: var(--secondary-light) !important;
}

.vdp-modal-close:hover .dashicons {
    color: var(--danger-color) !important;
}

/* Action buttons in tables */
.vdp-btn-edit .dashicons,
.vdp-btn-delete .dashicons,
.vdp-btn-entrada .dashicons,
.vdp-btn-salida .dashicons,
.vdp-btn-stock .dashicons {
    color: var(--secondary-light) !important;
}

.vdp-btn-edit:hover .dashicons {
    color: var(--primary-color) !important;
}

.vdp-btn-delete:hover .dashicons {
    color: var(--danger-color) !important;
}

.vdp-btn-entrada:hover .dashicons {
    color: var(--success-color) !important;
}

.vdp-btn-salida:hover .dashicons {
    color: var(--warning-color) !important;
}

.vdp-btn-stock:hover .dashicons {
    color: var(--info-color) !important;
}

/* Status badges with explicit icon colors */
.vdp-status-badge .dashicons {
    color: inherit !important;
}

.vdp-stock-badge .dashicons {
    color: inherit !important;
}

.vdp-movimiento-badge .dashicons {
    color: inherit !important;
}

/* Additional specific contexts for icon colors */
.vdp-section-title .dashicons,
.vdp-modal-title .dashicons,
.vdp-table-title .dashicons,
.vdp-info-title .dashicons {
    color: var(--primary-color) !important;
}

.vdp-form-label .dashicons {
    color: var(--secondary-color) !important;
}

.vdp-stat-card .dashicons,
.vdp-welcome-section .dashicons {
    color: white !important;
}

.vdp-section-actions .dashicons,
.vdp-btn-large .dashicons {
    color: white !important;
}

.vdp-user-actions .dashicons,
.vdp-header-user-info .dashicons {
    color: white !important;
}

.vdp-modal-actions .dashicons,
.vdp-btn-save .dashicons,
.vdp-btn-cancel .dashicons {
    color: inherit !important;
}

.vdp-process-btn .dashicons {
    color: white !important;
}

.vdp-detalle-section .dashicons {
    color: var(--primary-color) !important;
}

.vdp-material-item .dashicons {
    color: var(--secondary-light) !important;
}

.vdp-search-result-item .dashicons {
    color: var(--secondary-light) !important;
}

.vdp-no-data .dashicons,
.vdp-error-message .dashicons,
.vdp-no-materials .dashicons {
    color: var(--secondary-light) !important;
}

.vdp-loading-overlay .dashicons {
    color: var(--primary-color) !important;
}

.vdp-tab span {
    flex: 1;
}

.vdp-tab:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    transform: translateX(5px);
    box-shadow: inset 0 0 20px rgba(255,255,255,0.1);
}

.vdp-tab.active {
    background: rgba(255,255,255,0.2);
    color: white;
    border-left: 4px solid var(--warning-color);
    padding-left: 21px;
    box-shadow: inset 0 0 30px rgba(255,255,255,0.15);
}

.vdp-dashboard-content {
    flex: 1;
    padding: var(--space-2xl);
    background: #fafafa;
    min-height: 600px;
}

/* Tab Content Cards */
.vdp-tab-content {
    background: white;
    border-radius: var(--border-radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--light-dark);
}

.vdp-tab-content h3 {
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: var(--space-xl);
    font-size: var(--font-size-2xl);
    font-weight: 600;
    border-bottom: 2px solid var(--light-color);
    padding-bottom: var(--space-sm);
}

.vdp-section-title {
    color: var(--dark-color);
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.vdp-section-description {
    color: var(--secondary-light);
    margin-bottom: var(--space-xl);
    font-size: var(--font-size-base);
}

.vdp-btn-large {
    font-size: var(--font-size-base);
    padding: var(--space-md) var(--space-2xl);
    border-radius: var(--border-radius);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

/* === MODAL MINIMALIST REDESIGN === */
/* Modern, Clean Modal System */

.vdp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: var(--z-modal);
    display: none;
    overflow-y: auto;
    padding: var(--space-xl);
}

.vdp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    z-index: var(--z-modal-backdrop);
    animation: overlayFadeIn 0.3s ease-out;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.vdp-modal-body {
    position: relative;
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xxl);
    max-width: min(95vw, 800px);
    max-height: min(95vh, 800px);
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: var(--z-modal);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal Sizes */
.vdp-modal-small .vdp-modal-body {
    max-width: min(95vw, 500px);
    max-height: min(95vh, 600px);
}

.vdp-modal-medium .vdp-modal-body {
    max-width: min(95vw, 700px);
    max-height: min(95vh, 700px);
}

.vdp-modal-large .vdp-modal-body {
    max-width: min(95vw, 900px);
    max-height: min(95vh, 800px);
}

/* Modern Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Enhanced Animation Classes */
.vdp-animate-slide-in-up {
    animation: slideInUp var(--transition) ease-out;
}

.vdp-animate-fade-in {
    animation: fadeIn var(--transition-fast) ease-in;
}

.vdp-animate-bounce-in {
    animation: bounceIn var(--transition-bounce) ease-out;
}

.vdp-animate-pulse {
    animation: pulse 2s infinite;
}

/* Enhanced Hover Effects */
.vdp-hover-lift {
    transition: var(--transition);
}

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

.vdp-hover-scale {
    transition: var(--transition);
}

.vdp-hover-scale:hover {
    transform: scale(1.05);
}

.vdp-hover-glow {
    transition: var(--transition);
}

.vdp-hover-glow:hover {
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
}

.vdp-hover-rotate {
    transition: var(--transition);
}

.vdp-hover-rotate:hover {
    transform: rotate(5deg);
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Loading States */
.vdp-loading {
    position: relative;
    overflow: hidden;
}

.vdp-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Focus States */
.vdp-focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

/* Staggered Animations */
.vdp-stagger-item {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp var(--transition) ease-out forwards;
}

.vdp-stagger-item:nth-child(1) { animation-delay: 0.1s; }
.vdp-stagger-item:nth-child(2) { animation-delay: 0.2s; }
.vdp-stagger-item:nth-child(3) { animation-delay: 0.3s; }
.vdp-stagger-item:nth-child(4) { animation-delay: 0.4s; }
.vdp-stagger-item:nth-child(5) { animation-delay: 0.5s; }

/* Enhanced Button Animations */
.vdp-btn-animated {
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.vdp-btn-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.vdp-btn-animated:hover::before {
    left: 100%;
}

/* Card Animations */
.vdp-card-animated {
    transition: var(--transition);
    position: relative;
}

.vdp-card-animated:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* Text Animations */
.vdp-text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vdp-text-shimmer {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer-text 3s infinite;
}

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

/* Minimalist Modal Header */
.vdp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xl) var(--space-2xl);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    background: white;
    color: var(--dark-color);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.vdp-modal-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--dark-color);
    letter-spacing: -0.01em;
}

.vdp-modal-close {
    background: none;
    border: none;
    color: var(--secondary-light);
    font-size: var(--font-size-xl);
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--border-radius-full);
    transition: var(--transition-fast);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.vdp-modal-close:hover {
    background: rgba(0,0,0,0.05);
    color: var(--danger-color);
    transform: rotate(90deg);
}

/* Minimalist Modal Content */
.vdp-modal-content {
    padding: var(--space-2xl);
    flex: 1;
    overflow-y: auto;
    background: white;
}

.vdp-modal-content::-webkit-scrollbar {
    width: 6px;
}

.vdp-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.vdp-modal-content::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}

.vdp-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.3);
}

/* Form Groups */
.vdp-form-group {
    margin-bottom: 25px;
}

.vdp-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #23282d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vdp-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.vdp-form-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34,113,177,0.1);
}

/* Materials Section */
.vdp-materials-section {
    margin-bottom: 30px;
}

.vdp-search-section {
    margin-bottom: 20px;
}

.vdp-search-results {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
}

.vdp-search-result-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vdp-search-result-item:hover {
    background: #f8f9fa;
}

.vdp-search-result-item .title {
    font-weight: 500;
}

.vdp-search-result-item .stock {
    color: #666;
    font-size: 12px;
}

.vdp-no-results {
    padding: 15px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Materials Table */
.vdp-table-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.vdp-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.vdp-table thead {
    background: #f8f9fa;
}

.vdp-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.vdp-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.vdp-table tbody tr:hover {
    background: #f8f9fa;
}

.vdp-qty-input {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.vdp-btn-edit, .vdp-btn-delete {
    background: none;
    border: none;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s;
}

.vdp-btn-edit:hover {
    color: #2271b1;
    background: rgba(34,113,177,0.1);
}

.vdp-btn-delete:hover {
    color: #dc3545;
    background: rgba(220,53,69,0.1);
}

.vdp-no-materials {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px !important;
}

.vdp-table-title {
    font-size: 18px;
    color: #23282d;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Modal Actions */
/* Minimalist Modal Actions */
.vdp-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
    padding: var(--space-xl) var(--space-2xl);
    border-top: 1px solid rgba(0,0,0,0.08);
    background: white;
    position: sticky;
    bottom: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.vdp-btn-save, .vdp-btn-cancel {
    padding: var(--space-md) var(--space-xl);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    min-width: 100px;
    justify-content: center;
    letter-spacing: 0.02em;
}

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

.vdp-btn-save:hover {
    background: var(--success-dark);
    border-color: var(--success-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.vdp-btn-cancel {
    background: transparent;
    color: var(--secondary-light);
    border-color: rgba(0,0,0,0.1);
}

.vdp-btn-cancel:hover {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.2);
    color: var(--dark-color);
}

/* Specific Modal Types */
.vdp-modal-entrada .vdp-modal-body {
    max-width: min(95vw, 850px);
    max-height: min(95vh, 750px);
}

.vdp-modal-salida .vdp-modal-body {
    max-width: min(95vw, 850px);
    max-height: min(95vh, 750px);
}

.vdp-modal-material .vdp-modal-body {
    max-width: min(95vw, 700px);
    max-height: min(95vh, 650px);
}

.vdp-modal-detalle .vdp-modal-body {
    max-width: min(95vw, 600px);
    max-height: min(95vh, 600px);
}

/* Modal Content Enhancements */
.vdp-modal-section {
    margin-bottom: var(--space-2xl);
}

.vdp-modal-section:last-child {
    margin-bottom: 0;
}

.vdp-modal-section-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.vdp-modal-description {
    color: var(--secondary-light);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
    margin-bottom: var(--space-xl);
}

/* Enhanced Form Elements for Modals */
.vdp-modal .vdp-form-group {
    margin-bottom: var(--space-xl);
}

.vdp-modal .vdp-form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-sm);
    display: block;
}

.vdp-modal .vdp-form-input,
.vdp-modal .vdp-form-select {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    background: white;
    transition: var(--transition-fast);
    box-sizing: border-box;
}

.vdp-modal .vdp-form-input:focus,
.vdp-modal .vdp-form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Enhanced Tables in Modals */
.vdp-modal .vdp-table-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.08);
}

.vdp-modal .vdp-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.vdp-modal .vdp-table thead {
    background: rgba(0,0,0,0.02);
}

.vdp-modal .vdp-table th {
    padding: var(--space-lg);
    text-align: left;
    font-weight: 600;
    color: var(--dark-color);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    font-size: var(--font-size-sm);
}

.vdp-modal .vdp-table td {
    padding: var(--space-lg);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: var(--font-size-sm);
}

.vdp-modal .vdp-table tbody tr:hover {
    background: rgba(0,0,0,0.02);
}

/* Welcome Section */
.vdp-welcome-section {
    text-align: center;
    padding: 40px 20px;
}

.vdp-welcome-message {
    font-size: 18px;
    color: #666;
    margin: 20px 0 40px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.vdp-welcome-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.vdp-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-height: 100px;
    justify-content: center;
    transition: transform 0.3s ease;
}

.vdp-stat-card:hover {
    transform: translateY(-5px);
}

.vdp-stat-card i {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.vdp-stat-card span {
    font-weight: 500;
    text-align: center;
}

/* Filters Bar */
.vdp-filters-bar {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #e1e1e1;
}

.vdp-filter-form-inline {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.vdp-filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
    flex: 1;
}

.vdp-filter-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.vdp-filter-group input,
.vdp-filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.vdp-filter-group input:focus,
.vdp-filter-group select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34,113,177,0.1);
}

/* Data Table */
.vdp-data-table-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    background: white;
}

.vdp-data-table-wrapper {
    overflow-x: auto;
}

.vdp-data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}

.vdp-data-table thead {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
}

.vdp-data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #2980b9;
    white-space: nowrap;
}

.vdp-data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.vdp-data-table tbody tr {
    transition: background-color 0.3s ease;
}

.vdp-data-table tbody tr:hover {
    background: #f8f9fa;
}

.vdp-data-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.vdp-data-table tbody tr:nth-child(even):hover {
    background: #f1f3f4;
}

.vdp-materiales-cell {
    max-width: 250px;
    word-wrap: break-word;
    line-height: 1.4;
}

.vdp-email-cell {
    max-width: 200px;
    word-wrap: break-word;
}

.vdp-date-cell {
    white-space: nowrap;
}

/* Status Badges */
.vdp-status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    display: inline-block;
}

.vdp-status-pendiente {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.vdp-status-atendida {
    background: #cce7ff;
    color: #004085;
    border: 1px solid #99d6ff;
}

.vdp-status-en-proceso {
    background: #ffeaa7;
    color: #d63031;
    border: 1px solid #fdcb6e;
}

.vdp-status-entregada {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Buttons */
.vdp-process-btn {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.vdp-process-btn:hover {
    background: #138496;
}

.vdp-no-data {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px !important;
    background: #fafbfc;
}

.vdp-error-message {
    color: #dc3545;
    text-align: center;
    padding: 20px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* Responsive Design - Enhanced */
@media (max-width: var(--breakpoint-md)) {
    .vdp-dashboard-layout {
        flex-direction: column;
        min-height: auto;
    }

    .vdp-dashboard-sidebar {
        width: 100%;
        order: -1;
        padding: var(--space-sm) 0;
        border-right: none;
        border-bottom: 1px solid var(--primary-dark);
    }

    .vdp-tab {
        padding: var(--space-md) var(--space-xl);
        font-size: var(--font-size-sm);
        margin-bottom: var(--space-xs);
        border-radius: 0;
    }

    .vdp-tab:hover {
        transform: translateX(0);
        background: rgba(255,255,255,0.15);
    }

    .vdp-tab.active {
        border-left: none;
        border-bottom: 3px solid var(--warning-color);
        padding-left: var(--space-xl);
    }

    .vdp-dashboard-content {
        padding: var(--space-xl);
        min-height: auto;
    }

    .vdp-filter-form-inline {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .vdp-filter-group {
        min-width: unset;
        width: 100%;
    }

    .vdp-welcome-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .vdp-stat-card {
        flex-direction: row;
        text-align: left;
        gap: var(--space-lg);
        min-height: auto;
        padding: var(--space-lg);
    }

    .vdp-stat-card i {
        font-size: var(--font-size-2xl);
        margin-bottom: 0;
    }

    .vdp-modal-body {
        width: 98vw !important;
        max-height: 90vh !important;
        border-radius: var(--border-radius-lg) !important;
    }

    .vdp-modal-content {
        padding: var(--space-lg);
        max-height: 70vh;
    }

    .vdp-table th, .vdp-table td {
        padding: var(--space-sm) var(--space-sm);
    }

    .vdp-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .vdp-data-table th,
    .vdp-data-table td {
        padding: var(--space-sm) var(--space-sm);
        font-size: var(--font-size-xs);
    }

    /* Mobile-specific improvements */
    .vdp-material-form {
        margin: var(--space-sm);
        border-radius: var(--border-radius-lg);
    }

    .vdp-form-section {
        padding: var(--space-lg);
    }

    .vdp-section-title {
        font-size: var(--font-size-xl);
    }

    .vdp-checkbox-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .vdp-checkbox-label {
        padding: var(--space-sm);
    }

    .vdp-submit-button {
        width: 100%;
        padding: var(--space-lg) var(--space-xl);
    }

    /* Touch-friendly button sizes */
    .vdp-btn-large {
        padding: var(--space-lg) var(--space-xl);
        min-height: 44px;
    }

    .vdp-process-btn {
        padding: var(--space-md) var(--space-lg);
        min-height: 44px;
    }

    /* Improved modal for mobile */
    .vdp-modal-body {
        border-radius: var(--border-radius-lg);
    }

    .vdp-modal-header {
        padding: var(--space-lg);
    }

    .vdp-modal-close {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Responsive styles for detail modals */
    .vdp-detalle-movimiento-modal .vdp-modal-body,
    .vdp-detalle-solicitud-modal .vdp-modal-body,
    .vdp-modal-material .vdp-modal-body {
        width: 98vw !important;
        max-height: 90vh !important;
        border-radius: var(--border-radius-lg) !important;
    }

    .vdp-detalle-content {
        padding: var(--space-lg);
    }

    .vdp-detalle-section {
        padding: var(--space-lg);
        margin-bottom: var(--space-lg);
    }
}

/* Small Mobile Devices */
@media (max-width: var(--breakpoint-sm)) {
    #vdp-dashboard {
        padding: var(--space-lg) var(--space-sm);
    }

    .vdp-dashboard-content {
        padding: var(--space-lg);
    }

    .vdp-tab-content {
        padding: var(--space-lg);
        margin-bottom: var(--space-lg);
    }

    .vdp-header-content {
        padding: 0 var(--space-lg);
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }

    .vdp-user-actions {
        justify-content: center;
    }

    .vdp-welcome-section {
        padding: var(--space-xl) var(--space-sm);
    }

    .vdp-welcome-message {
        font-size: var(--font-size-base);
        margin: var(--space-lg) 0 var(--space-xl) 0;
    }

    .vdp-stat-card {
        padding: var(--space-md);
        gap: var(--space-md);
    }

    .vdp-stat-card i {
        font-size: var(--font-size-xl);
    }

    .vdp-filters-bar {
        padding: var(--space-lg);
    }

    .vdp-filter-form-inline {
        gap: var(--space-md);
    }

    .vdp-material-item {
        padding: var(--space-sm);
    }

    .vdp-material-numero {
        width: 20px;
        height: 20px;
        font-size: var(--font-size-xs);
    }

    /* Optimize tables for small screens */
    .vdp-data-table th,
    .vdp-data-table td {
        padding: var(--space-xs) var(--space-xs);
        font-size: var(--font-size-xs);
    }

    .vdp-movimientos-table th,
    .vdp-movimientos-table td {
        padding: var(--space-xs) var(--space-xs);
        font-size: var(--font-size-xs);
    }

    .vdp-movimiento-badge {
        padding: var(--space-xs) var(--space-sm);
        font-size: var(--font-size-xs);
    }

    .vdp-cantidad-badge {
        min-width: 35px;
        height: 22px;
        font-size: var(--font-size-xs);
    }

    .vdp-ver-detalle-btn {
        width: 28px;
        height: 28px;
        font-size: var(--font-size-xs);
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .vdp-dashboard-header {
        padding: var(--space-lg) 0;
    }

    .vdp-header-logo h1 {
        font-size: var(--font-size-xl);
    }

    .vdp-user-actions {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .vdp-logout-button,
    .vdp-admin-link {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--font-size-xs);
    }

    .vdp-tab {
        padding: var(--space-sm) var(--space-lg);
        font-size: var(--font-size-xs);
    }

    .vdp-tab i {
        font-size: var(--font-size-base);
    }

    .vdp-section-title {
        font-size: var(--font-size-lg);
    }

    .vdp-btn-large {
        padding: var(--space-md) var(--space-lg);
        font-size: var(--font-size-sm);
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .vdp-animate-slide-in-up,
    .vdp-animate-fade-in,
    .vdp-animate-bounce-in,
    .vdp-animate-pulse,
    .vdp-hover-lift,
    .vdp-hover-scale,
    .vdp-hover-glow,
    .vdp-hover-rotate,
    .vdp-btn-animated,
    .vdp-card-animated {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    .vdp-text-shimmer {
        animation: none !important;
        background: var(--primary-color) !important;
        -webkit-text-fill-color: var(--primary-color) !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --secondary-color: #000000;
        --success-color: #008000;
        --warning-color: #ffa500;
        --danger-color: #ff0000;
        --light-color: #ffffff;
        --dark-color: #000000;
    }

    .vdp-modal-overlay {
        background: rgba(0,0,0,0.8);
    }

    .vdp-form-input,
    .vdp-form-select {
        border-width: 3px;
    }

    .vdp-checkbox-label {
        border-width: 2px;
    }

    .vdp-status-badge,
    .vdp-movimiento-badge,
    .vdp-stock-badge {
        border-width: 2px;
    }
}

/* Print Styles */
@media print {
    .vdp-dashboard-sidebar,
    .vdp-dashboard-header,
    .vdp-modal,
    .vdp-btn-large,
    .vdp-process-btn,
    .vdp-ver-detalle-btn,
    .vdp-filters-bar {
        display: none !important;
    }

    .vdp-dashboard-layout {
        flex-direction: column;
        box-shadow: none;
        border: 1px solid #000;
    }

    .vdp-dashboard-content {
        padding: 0;
        background: white;
    }

    .vdp-tab-content {
        box-shadow: none;
        border: 1px solid #000;
        margin-bottom: 20px;
        page-break-inside: avoid;
    }

    .vdp-table,
    .vdp-data-table,
    .vdp-movimientos-table {
        border: 1px solid #000;
    }

    .vdp-table th,
    .vdp-data-table th,
    .vdp-movimientos-table th {
        background: #f0f0f0 !important;
        color: #000 !important;
        border-bottom: 2px solid #000 !important;
    }

    .vdp-table td,
    .vdp-data-table td,
    .vdp-movimientos-table td {
        border-bottom: 1px solid #000 !important;
    }

    .vdp-status-badge,
    .vdp-movimiento-badge,
    .vdp-stock-badge {
        background: #f0f0f0 !important;
        color: #000 !important;
        border: 1px solid #000 !important;
    }
}

/* Accessibility Improvements */
.vdp-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus management for better keyboard navigation */
.vdp-tab:focus,
.vdp-btn-large:focus,
.vdp-process-btn:focus,
.vdp-ver-detalle-btn:focus,
.vdp-modal-close:focus,
.vdp-form-input:focus,
.vdp-form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip link for keyboard users */
.vdp-skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: var(--border-radius);
    z-index: var(--z-modal);
    transition: top 0.3s;
}

.vdp-skip-link:focus {
    top: 6px;
}

/* Improved form field labels */
.vdp-form-label:has(+ .vdp-form-input:required)::after {
    content: " *";
    color: var(--danger-color);
}

/* Better error states */
.vdp-form-input:invalid {
    border-color: var(--danger-color);
}

.vdp-form-input:invalid:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Loading states for better UX */
.vdp-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    backdrop-filter: blur(2px);
}

.vdp-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Detail Modal Styles */
.vdp-detalle-movimiento-modal {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.vdp-detalle-movimiento-modal .vdp-modal-body {
    max-width: 600px;
    width: 90vw;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xxl);
    max-height: 90vh;
    overflow: hidden;
    animation: modalShow var(--transition) ease-out;
    z-index: var(--z-modal);
}

.vdp-detalle-movimiento-modal .vdp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    z-index: var(--z-modal-backdrop);
}

/* Detalle Solicitud Modal - Same professional styling */
.vdp-detalle-solicitud-modal .vdp-modal-body {
    max-width: 700px;
    width: 90vw;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xxl);
    max-height: 90vh;
    overflow: hidden;
    animation: modalShow var(--transition) ease-out;
    z-index: var(--z-modal);
}

/* Modal content for details modals - prevent cutoff */
.vdp-detalle-movimiento-modal .vdp-modal-content,
.vdp-detalle-solicitud-modal .vdp-modal-content {
    max-height: 80vh;
    overflow-y: auto;
    padding: var(--space-xl);
}

/* Modal de Entrada - Better spacing */
.vdp-modal-entrada .vdp-modal-body {
    max-width: 800px;
    width: 95vw;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xxl);
    max-height: 90vh;
    overflow: hidden;
    animation: modalShow var(--transition) ease-out;
    z-index: var(--z-modal);
}

.vdp-modal-entrada .vdp-modal-content {
    max-height: 75vh;
    overflow-y: auto;
    padding: var(--space-xl);
}

/* Modal de Salida - Better spacing */
.vdp-modal-salida .vdp-modal-body {
    max-width: 800px;
    width: 95vw;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xxl);
    max-height: 90vh;
    overflow: hidden;
    animation: modalShow var(--transition) ease-out;
    z-index: var(--z-modal);
}

.vdp-modal-salida .vdp-modal-content {
    max-height: 75vh;
    overflow-y: auto;
    padding: var(--space-xl);
}

/* Modal de Categoría - Better spacing */
.vdp-modal-category .vdp-modal-body {
    max-width: 500px;
    width: 95vw;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xxl);
    max-height: 80vh;
    overflow: hidden;
    animation: modalShow var(--transition) ease-out;
    z-index: var(--z-modal);
}

.vdp-modal-category .vdp-modal-content {
    max-height: 65vh;
    overflow-y: auto;
    padding: var(--space-xl);
}

.vdp-detalle-solicitud-modal .vdp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    z-index: var(--z-modal-backdrop);
}

/* Professional Movements Table Styles */
.vdp-movimientos-table-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    background: white;
    border: 1px solid #e1e8ed;
}

.vdp-movimientos-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
    overflow: hidden;
}

.vdp-movimientos-table thead {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
}

.vdp-movimientos-table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 3px solid #2980b9;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.vdp-movimientos-table th.vdp-mov-id {
    width: 80px;
}

.vdp-movimientos-table th.vdp-mov-material {
    min-width: 200px;
}

.vdp-movimientos-table th.vdp-mov-tipo {
    width: 120px;
}

.vdp-movimientos-table th.vdp-mov-cantidad {
    width: 100px;
}

.vdp-movimientos-table th.vdp-mov-usuario {
    width: 150px;
}

.vdp-movimientos-table th.vdp-mov-fecha {
    width: 120px;
}

.vdp-movimientos-table th.vdp-mov-acciones {
    width: 100px;
    text-align: center;
}

.vdp-movimientos-table td {
    padding: 16px 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.vdp-movimientos-table tbody tr {
    transition: all 0.3s ease;
    position: relative;
}

.vdp-movimientos-table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.vdp-movimientos-table tbody tr:nth-child(even) {
    background: linear-gradient(135deg, #fafbfc 0%, #f1f3f4 100%);
}

.vdp-movimientos-table tbody tr:nth-child(even):hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

/* Movement Type Badges */
.vdp-movimiento-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.vdp-movimiento-entrada {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-color: #28a745;
}

.vdp-movimiento-entrada:hover {
    background: linear-gradient(135deg, #c3e6cb, #b8daff);
    transform: scale(1.05);
}

.vdp-movimiento-salida {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border-color: #ffc107;
}

.vdp-movimiento-salida:hover {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
    transform: scale(1.05);
}

.vdp-movimiento-badge i {
    font-size: 14px;
    opacity: 0.9;
}

/* Quantity Badges */
.vdp-cantidad-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 28px;
    padding: 4px 8px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #0d47a1;
    border-radius: 12px;
    font-weight: 600;
    font-size: 12px;
    border: 1px solid #90caf9;
    transition: all 0.3s ease;
}

.vdp-cantidad-badge:hover {
    background: linear-gradient(135deg, #bbdefb, #90caf9);
    transform: scale(1.1);
}

/* Cell Styles */
.vdp-mov-id-cell {
    font-weight: 700;
    color: #2c3e50;
    font-size: 14px;
}

.vdp-mov-material-cell {
    font-weight: 600;
    color: #34495e;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vdp-mov-material-cell strong {
    font-weight: 700;
    color: #2c3e50;
}

.vdp-mov-tipo-cell {
    text-align: center;
}

.vdp-mov-cantidad-cell {
    text-align: center;
    font-weight: 600;
}

.vdp-mov-usuario-cell {
    color: #7f8c8d;
    font-style: italic;
}

.vdp-mov-fecha-cell {
    color: #34495e;
    font-weight: 500;
    font-size: 13px;
}

.vdp-mov-acciones-cell {
    text-align: center;
}

/* Action Button Styles */
.vdp-ver-detalle-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 8px !important;
    background: linear-gradient(135deg, #007cba, #006ba1);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,123,186,0.3);
    font-size: 16px;
}

.vdp-ver-detalle-btn:hover {
    background: linear-gradient(135deg, #005a87, #004d7a);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 12px rgba(0,123,186,0.5);
}

.vdp-ver-detalle-btn:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 1px 3px rgba(0,123,186,0.3);
}

.vdp-ver-detalle-btn i {
    transition: all 0.3s ease;
}

.vdp-ver-detalle-btn:hover i {
    transform: scale(1.2);
}

/* Icon Button Base */
.vdp-btn-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.vdp-btn-icon:hover {
    background: rgba(0,0,0,0.1);
}

/* Empty State for Movements */
.vdp-no-data i {
    margin-right: 8px;
    opacity: 0.7;
}

/* Responsive Design for Movements Table */
@media (max-width: var(--breakpoint-md)) {
    .vdp-movimientos-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .vdp-movimientos-table th,
    .vdp-movimientos-table td {
        padding: var(--space-sm) var(--space-sm);
        font-size: var(--font-size-xs);
        white-space: nowrap;
    }

    .vdp-movimientos-table th.vdp-mov-material {
        min-width: 150px;
    }

    .vdp-movimientos-table th.vdp-mov-fecha {
        display: none;
    }

    .vdp-movimientos-table td.vdp-mov-fecha-cell {
        display: none;
    }

    .vdp-movimiento-badge {
        padding: var(--space-xs) var(--space-sm);
        font-size: var(--font-size-xs);
    }

    .vdp-cantidad-badge {
        min-width: 40px;
        height: 24px;
        font-size: var(--font-size-xs);
        padding: var(--space-xs) var(--space-sm);
    }

    .vdp-ver-detalle-btn {
        width: 32px;
        height: 32px;
        font-size: var(--font-size-sm);
    }
}

@media (max-width: var(--breakpoint-sm)) {
    .vdp-movimientos-table {
        font-size: var(--font-size-xs);
    }

    .vdp-movimientos-table th,
    .vdp-movimientos-table td {
        padding: var(--space-xs) var(--space-xs);
    }

    .vdp-mov-material-cell {
        max-width: 120px;
    }

    .vdp-mov-usuario-cell {
        display: none;
    }

    .vdp-movimientos-table th.vdp-mov-usuario {
        display: none;
    }
}

.vdp-detalle-movimiento-modal .vdp-modal-header {
    background: linear-gradient(135deg, #1d2327, #3c434a);
}

.vdp-detalle-solicitud-modal .vdp-modal-header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
}

.vdp-detalle-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vdp-detalle-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.vdp-detalle-section h4 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vdp-detalle-section h4 i {
    color: #3498db;
    font-size: 18px;
}

.vdp-detalle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.vdp-detalle-row:last-child {
    border-bottom: none;
}

.vdp-detalle-row strong {
    color: #34495e;
    font-weight: 600;
    min-width: 150px;
    font-size: 14px;
}

.vdp-detalle-row span {
    color: #2c3e50;
    font-weight: 500;
    text-align: right;
    flex: 1;
}

.vdp-detalle-solicitud {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e1e1;
}

.vdp-detalle-solicitud h4 {
    color: #2271b1;
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

/* Materiales Lista en Detalles */
.vdp-materiales-lista {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vdp-material-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e1e8ed;
    transition: all 0.3s ease;
}

.vdp-material-item:hover {
    background: #f8f9fa;
    border-color: #3498db;
    transform: translateX(5px);
}

.vdp-material-numero {
    background: #3498db;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.vdp-material-nombre {
    color: #2c3e50;
    font-weight: 500;
    flex: 1;
}

/* Información Adicional */
.vdp-otro-material {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e1e8ed;
    color: #34495e;
    line-height: 1.5;
    font-style: italic;
}

/* Respuestas/Entregas */
.vdp-respuestas-content {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e1e8ed;
    color: #34495e;
    line-height: 1.6;
    white-space: pre-line;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

/* Mensaje sin materiales */
.vdp-no-materiales {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 20px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e1e8ed;
}

/* Material Image Styles */
.vdp-material-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #e1e8ed;
    transition: all 0.3s ease;
}

.vdp-material-thumb:hover {
    transform: scale(1.1);
    border-color: #3498db;
}

.vdp-no-image {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-size: 20px;
}

.vdp-imagen-cell {
    text-align: center;
}

/* Code Column */
.vdp-col-codigo code,
code {
    background: #f8f9fa;
    color: #e74c3c;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    border: 1px solid #dee2e6;
}

/* Category Column */
.vdp-categoria-cell {
    max-width: 150px;
}

.vdp-categoria-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transition: all 0.3s ease;
}

.vdp-categoria-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.vdp-categoria-badge i {
    font-size: 11px;
    opacity: 0.9;
}

/* Title Column */
.vdp-titulo-cell strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Description Column */
.vdp-descripcion-cell {
    color: #555;
    line-height: 1.4;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Section Actions */
.vdp-section-actions {
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

/* Material Modal Styles */
.vdp-modal-material .vdp-modal-body {
    max-width: 700px;
    width: 90vw;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xxl);
    max-height: 90vh;
    overflow: hidden;
    animation: modalShow var(--transition) ease-out;
    z-index: var(--z-modal);
}

.vdp-modal-material .vdp-modal-content {
    max-height: 80vh;
}

.vdp-modal-material .vdp-form-group {
    margin-bottom: 20px;
}

.vdp-modal-material .vdp-form-label {
    font-weight: 600;
    color: #23282d;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vdp-modal-material .vdp-form-input,
.vdp-modal-material .vdp-form-textarea,
.vdp-modal-material .vdp-form-file {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.vdp-modal-material .vdp-form-input:focus,
.vdp-modal-material .vdp-form-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.vdp-modal-material .vdp-form-textarea {
    resize: vertical;
    min-height: 80px;
}

.vdp-modal-material .vdp-form-file {
    padding: 10px;
    background: #f8f9fa;
    border-style: dashed;
}

.vdp-modal-material .vdp-form-file:hover {
    background: #e9ecef;
}

/* Image Preview */
.vdp-imagen-preview {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #f8f9fa;
    text-align: center;
}

.vdp-imagen-preview img {
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* Field Descriptions */
.vdp-field-description {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 4px;
    font-style: italic;
}

/* Modal Actions for Material Modal */
.vdp-modal-material .vdp-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid #e1e1e1;
    margin-top: 30px;
    background: #f8f9fa;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.vdp-modal-material .vdp-btn-save,
.vdp-modal-material .vdp-btn-cancel {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vdp-modal-material .vdp-btn-save {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.vdp-modal-material .vdp-btn-save:hover:not(:disabled) {
    background: linear-gradient(135deg, #218838, #17a2b8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.vdp-modal-material .vdp-btn-save:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.vdp-modal-material .vdp-btn-cancel {
    background: #6c757d;
    color: white;
}

.vdp-modal-material .vdp-btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Loading State for Material Modal */
.vdp-modal-material .vdp-form-loading {
    opacity: 0.7;
    pointer-events: none;
}

.vdp-modal-material .vdp-form-loading .vdp-btn-save::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

/* Responsive Design for Materials Table */
@media (max-width: 768px) {
    .vdp-modal-material .vdp-modal-body {
        width: 95vw;
        margin: 10px auto;
    }

    .vdp-modal-material .vdp-modal-content {
        padding: 20px;
    }

    .vdp-material-thumb,
    .vdp-no-image {
        width: 40px;
        height: 40px;
    }
}

/* ==========================================================================
   CONFIGURATION SECTION STYLES
   ========================================================================== */

.vdp-config-header {
    margin-bottom: 40px;
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 8px 32px rgba(34, 113, 177, 0.15);
}

.vdp-config-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.vdp-config-title .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.vdp-config-subtitle {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
    font-weight: 400;
}

.vdp-config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .vdp-config-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.vdp-config-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.vdp-config-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.vdp-config-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 25px;
    border-bottom: 1px solid #dee2e6;
}

.vdp-config-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vdp-config-card-title .dashicons {
    color: var(--primary-color);
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.vdp-config-card-body {
    padding: 25px;
}

/* Enhanced Form Styles */
.vdp-form-group-enhanced {
    margin-bottom: 30px;
}

.vdp-form-label-enhanced {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.vdp-form-label-enhanced .dashicons {
    color: var(--primary-color);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.vdp-input-wrapper {
    position: relative;
    margin-bottom: 8px;
}

.vdp-textarea-enhanced {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.vdp-textarea-enhanced:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.vdp-textarea-enhanced.valid {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.vdp-textarea-enhanced.invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.vdp-input-feedback {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 12px;
}

.vdp-char-count {
    color: #6c757d;
    font-weight: 500;
}

.vdp-validation-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.vdp-validation-status.valid {
    color: #28a745;
}

.vdp-validation-status.invalid {
    color: #dc3545;
}

.vdp-help-text-enhanced {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #6c757d;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.vdp-help-text-enhanced .dashicons {
    color: var(--secondary-light);
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-top: 1px;
}

/* Enhanced Form Actions */
.vdp-form-actions-enhanced {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.vdp-btn-large {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-width: 160px;
    justify-content: center;
}

.vdp-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(34, 113, 177, 0.3);
}

.vdp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 113, 177, 0.4);
}

.vdp-btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.vdp-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.vdp-btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.1);
}

.vdp-btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 113, 177, 0.3);
}

/* Info List Styles */
.vdp-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vdp-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: background-color 0.3s;
}

.vdp-info-item:hover {
    background: #e9ecef;
}

.vdp-info-item .dashicons {
    color: var(--primary-color);
    font-size: 18px;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.vdp-info-content {
    flex: 1;
}

.vdp-info-content strong {
    display: block;
    margin-bottom: 4px;
    color: #2c3e50;
    font-size: 14px;
}

.vdp-info-content span {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.4;
}

/* Configuration Status */
.vdp-config-status {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.vdp-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.vdp-status-item:last-child {
    border-bottom: none;
}

.vdp-status-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.vdp-status-value {
    font-weight: 500;
    color: var(--primary-color);
    font-size: 14px;
}

/* Tags System Styles */
.vdp-tags-container {
    margin-bottom: 15px;
}

.vdp-tags-input-wrapper {
    position: relative;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 12px 16px;
    background: white;
    min-height: 60px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.vdp-tags-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.vdp-tags-input-wrapper.valid {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.vdp-tags-input-wrapper.invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.vdp-email-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.vdp-email-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    animation: tagAppear 0.3s ease-out;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.2);
}

.vdp-email-tag.invalid {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.vdp-email-tag-remove {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: white;
    transition: background-color 0.2s;
    line-height: 1;
}

.vdp-email-tag-remove:hover {
    background: rgba(255, 255, 255, 0.5);
}

.vdp-tags-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    padding: 8px 0;
    flex: 1;
    min-width: 200px;
    color: #2c3e50;
}

.vdp-tags-input::placeholder {
    color: #adb5bd;
}

.vdp-tags-feedback {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 12px;
}

.vdp-tags-count {
    color: #6c757d;
    font-weight: 500;
}

.vdp-tags-validation {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.vdp-tags-validation.valid {
    color: #28a745;
}

.vdp-tags-validation.invalid {
    color: #dc3545;
}

@keyframes tagAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(5px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Success Alert Styles */
.vdp-success-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(40, 167, 69, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.5s ease-out, fadeOut 0.5s ease-in 2.5s forwards;
    max-width: 400px;
}

.vdp-success-alert-icon {
    font-size: 24px;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.vdp-success-alert-content {
    flex: 1;
}

.vdp-success-alert-title {
    font-weight: 600;
    font-size: 16px;
    margin: 0 0 4px 0;
}

.vdp-success-alert-message {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .vdp-config-header {
        padding: 20px 15px;
        margin-bottom: 30px;
    }
    
    .vdp-config-title {
        font-size: 24px;
        flex-direction: column;
        gap: 10px;
    }
    
    .vdp-config-card-body {
        padding: 20px;
    }
    
    .vdp-form-actions-enhanced {
        flex-direction: column;
    }
    
    .vdp-btn-large {
        min-width: auto;
        width: 100%;
    }
    
    .vdp-tags-input {
        min-width: 150px;
    }
    
    .vdp-success-alert {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}