/* ========================================
   SISTEMA INTERNO DE PEDIDOS - QUIMPO
   Diseño Minimalista Moderno
   Color Principal: #2e3094
   ======================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores principales */
    --primary: #2e3094;
    --primary-light: #4a4fb8;
    --primary-dark: #1f2166;
    --accent: #6b9fff;
    --accent-light: #a8c7ff;
    
    /* Colores de estado */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Grises */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Bordes */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--gray-50);
    min-height: 100vh;
}

/* ========================================
   SIDEBAR LAYOUT
   ======================================== */

body.has-sidebar {
    display: flex;
    min-height: 100vh;
    flex-direction: row;
}

.sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-header .logo svg {
    width: 36px;
    height: 36px;
    color: var(--accent-light);
}

.sidebar-header .logo h1 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.sidebar-header .logo p {
    font-size: 11px;
    margin: 0;
    opacity: 0.7;
    font-weight: 500;
}

.sidebar-user {
    padding: 20px;
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.user-sede {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

.user-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(107, 159, 255, 0.25);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-light);
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
}

.sidebar .nav-menu {
    list-style: none;
    padding: 0 12px;
    margin: 0;
}

.sidebar .nav-menu li {
    display: block;
    width: 100%;
    margin: 0 0 4px 0;
}

.sidebar .nav-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: var(--radius-sm);
    position: relative;
}

.sidebar .nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar .nav-menu li.active a {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 8px rgba(107, 159, 255, 0.3);
}

.sidebar .nav-menu a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    color: #fca5a5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    width: 100%;
    justify-content: center;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
}

body.has-sidebar .main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    min-height: 100vh;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 32px 0 32px;
}

.notifications-link {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 8px;
    right: 12px;
    background: var(--danger);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

/* Mobile menu toggle - hidden on desktop */
.mobile-menu-toggle {
    display: none;
}

/* Sidebar overlay - hidden on desktop */
.sidebar-overlay {
    display: none;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* ========================================
   PAGE COMPONENTS
   ======================================== */

.page-header {
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.dashboard-subtitle {
    font-size: 15px;
    color: var(--gray-600);
    font-weight: 500;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
    border: 1px solid var(--gray-200);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card.stat-primary .stat-icon { 
    background: linear-gradient(135deg, #2e3094 0%, #4a4fb8 100%);
}
.stat-card.stat-info .stat-icon { 
    background: linear-gradient(135deg, #6b9fff 0%, #a8c7ff 100%);
}
.stat-card.stat-warning .stat-icon { 
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}
.stat-card.stat-success .stat-icon { 
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    box-shadow: var(--shadow-md);
}

.stat-content { 
    flex: 1; 
}

.stat-label { 
    font-size: 13px; 
    color: var(--gray-600); 
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value { 
    font-size: 32px; 
    font-weight: 700; 
    color: var(--primary);
    letter-spacing: -1px;
}

/* Dashboard Cards */
.section-header { 
    margin-bottom: 28px; 
}

.section-header h2 { 
    font-size: 22px; 
    font-weight: 700; 
    color: var(--primary);
    letter-spacing: -0.5px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.dashboard-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--gray-200);
}

.dashboard-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card-icon-svg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    color: white;
    box-shadow: 0 4px 12px rgba(46, 48, 148, 0.3);
}

.dashboard-card:nth-child(2) .card-icon-svg { 
    background: linear-gradient(135deg, var(--success) 0%, #34d399 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.dashboard-card:nth-child(3) .card-icon-svg { 
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    box-shadow: 0 4px 12px rgba(107, 159, 255, 0.3);
}

.dashboard-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.dashboard-card p {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Content Box */
.content-box {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid var(--gray-200);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.btn:active { 
    transform: translateY(1px); 
}

.btn-primary { 
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(46, 48, 148, 0.3);
}

.btn-primary:hover { 
    box-shadow: 0 4px 12px rgba(46, 48, 148, 0.4);
    transform: translateY(-2px);
}

.btn-secondary { 
    background-color: var(--gray-200); 
    color: var(--gray-700); 
}

.btn-secondary:hover { 
    background-color: var(--gray-300); 
}

.btn-danger { 
    background-color: var(--danger); 
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover { 
    background-color: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-success { 
    background: linear-gradient(135deg, var(--success) 0%, #34d399 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-success:hover { 
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.btn-sm { 
    padding: 8px 16px; 
    font-size: 13px; 
}

.btn svg { 
    width: 16px; 
    height: 16px; 
}

/* ========================================
   TABLES
   ======================================== */

.table-container {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    background: white;
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--gray-100) 100%);
}

table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 2px solid var(--primary);
}

table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 14px;
    color: var(--gray-900);
}

table tbody tr {
    transition: background-color 0.2s;
}

table tbody tr:hover {
    background-color: var(--gray-50);
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* ========================================
   FORMS
   ======================================== */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.form-input,
.form-select,
textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    background: white;
}

.form-input:focus,
.form-select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 48, 148, 0.1);
}

.form-help {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--gray-500);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 24px;
    border-top: 2px solid var(--gray-200);
    margin-top: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--gray-700);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Search Box */
.search-box {
    position: relative;
    flex: 1;
}

.search-box svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    font-size: 14px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 48, 148, 0.1);
}

.catalog-header {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    align-items: center;
}

.search-form {
    display: flex;
    gap: 12px;
    flex: 1;
}

/* ========================================
   ALERTS & BADGES
   ======================================== */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    border-left: 4px solid;
}

.alert svg {
    flex-shrink: 0;
}

.alert-error {
    background-color: #fef2f2;
    border-color: var(--danger);
    color: #991b1b;
}

.alert-success {
    background-color: #d1fae5;
    border-color: var(--success);
    color: #065f46;
}

.alert-warning {
    background-color: #fff7ed;
    border-color: var(--warning);
    color: #92400e;
}

.info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-left: 4px solid var(--info);
    border-radius: var(--radius-sm);
    color: #1e40af;
    font-size: 14px;
    margin-top: 16px;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-gray { background-color: #f3f4f6; color: #374151; }
.badge-blue { background-color: #dbeafe; color: #1e40af; }
.badge-green { background-color: #d1fae5; color: #065f46; }
.badge-yellow { background-color: #fef3c7; color: #92400e; }
.badge-red { background-color: #fee2e2; color: #991b1b; }
.badge-purple { background-color: #e9d5ff; color: #6b21a8; }
.badge-orange { background-color: #fed7aa; color: #9a3412; }
.badge-pink { background-color: #fce7f3; color: #9f1239; }
.badge-indigo { background-color: #e0e7ff; color: #3730a3; }
.badge-teal { background-color: #ccfbf1; color: #115e59; }

.badge-pendiente { background-color: #fef3c7; color: #92400e; }
.badge-en_preparacion,
.badge-en-preparacion { background-color: #dbeafe; color: #1e40af; }
.badge-procesado,
.badge-listo { background-color: #d1fae5; color: #065f46; }
.badge-enviado,
.badge-completado { background-color: #d1fae5; color: #065f46; }
.badge-cancelado { background-color: #fee2e2; color: #991b1b; }

/* ========================================
   LOGIN PAGE
   ======================================== */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, 20px); }
}

.login-container {
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 1;
}

.login-box {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 48px;
    backdrop-filter: blur(10px);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo img {
    max-width: 100%;
    height: auto;
}

.login-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-header p {
    font-size: 15px;
    color: var(--gray-600);
    font-weight: 500;
}

.login-error {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid var(--danger);
    border-radius: var(--radius-sm);
    color: var(--danger);
    margin-bottom: 28px;
    font-weight: 600;
}

.login-error svg {
    flex-shrink: 0;
}

.login-form .form-group {
    margin-bottom: 24px;
}

.login-form .form-label {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.login-form .form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.login-form .form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 48, 148, 0.1);
}

.btn-login {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(46, 48, 148, 0.3);
    margin-top: 32px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 48, 148, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.login-footer {
    margin-top: 32px;
    text-align: center;
    padding-top: 24px;
    border-top: 2px solid var(--gray-200);
}

.login-footer p {
    font-size: 13px;
    color: var(--gray-500);
    margin: 0;
}

.login-contact-info {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
    text-align: left;
}

.login-contact-info .contact-item {
    font-size: 13px;
    color: var(--gray-700);
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-contact-info .contact-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .login-box {
        padding: 32px 24px;
    }
    
    .login-header h1 {
        font-size: 28px;
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    /* Sidebar mobile */
    .sidebar {
        width: 280px;
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        transition: left 0.3s ease;
        z-index: 1001;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    /* Mobile menu toggle button */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 16px;
        left: 16px;
        width: 48px;
        height: 48px;
        background: var(--primary);
        color: white;
        border: none;
        border-radius: var(--radius);
        cursor: pointer;
        z-index: 1000;
        box-shadow: var(--shadow-lg);
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: var(--primary-light);
        transform: scale(1.05);
    }
    
    .mobile-menu-toggle svg {
        width: 24px;
        height: 24px;
    }
    
    /* Sidebar overlay */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }
    
    /* Main content adjustments */
    body.has-sidebar .main-content {
        margin-left: 0;
        width: 100%;
        padding-top: 80px;
    }
    
    body.has-sidebar .app-footer {
        margin-left: 0;
        width: 100%;
    }
    
    .content-wrapper {
        padding: 24px 16px 0 16px;
    }
    
    /* Page header mobile */
    .page-header {
        padding: 0 16px 24px 16px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .dashboard-subtitle {
        font-size: 13px;
    }
    
    /* Stats grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    /* Dashboard cards */
    .dashboard-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Form actions */
    .form-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Catalog header */
    .catalog-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .search-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-box {
        width: 100%;
    }
    
    /* Tables */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .data-table {
        min-width: 600px;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* Content box */
    .content-box {
        padding: 20px 16px;
    }
    
    .form-section {
        padding: 20px 0;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    padding: 24px 0;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    background: white;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.pagination-btn:hover {
    background: var(--gray-50);
    border-color: var(--primary);
}

.pagination-btn.disabled {
    color: var(--gray-400);
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.5;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    background: white;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.pagination-number:hover {
    background: var(--gray-50);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-number.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-color: var(--primary);
    color: white;
    cursor: default;
    box-shadow: 0 2px 8px rgba(46, 48, 148, 0.3);
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    font-size: 14px;
    color: var(--gray-500);
}

/* ========================================
   CATALOG PAGE
   ======================================== */

.catalog-info {
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.catalog-info p {
    margin: 0;
    font-size: 14px;
    color: var(--gray-700);
}

.catalog-info strong {
    color: var(--primary);
    font-weight: 700;
}

.clear-search {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--gray-400);
    transition: color 0.2s;
    cursor: pointer;
}

.clear-search:hover {
    color: var(--danger);
}

.search-box input {
    padding-right: 44px;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-500);
}

.empty-state svg {
    margin-bottom: 20px;
    color: var(--gray-400);
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 15px;
    margin-bottom: 24px;
    color: var(--gray-600);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.data-table thead {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--gray-100) 100%);
}

.data-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 2px solid var(--primary);
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 14px;
    color: var(--gray-900);
}

.data-table tbody tr:hover {
    background-color: var(--gray-50);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.code-cell {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--primary);
}

.price-cell {
    font-weight: 700;
    color: var(--success);
    text-align: right;
}

.badge-floor {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ========================================
   UPLOAD PAGE
   ======================================== */

.upload-instructions {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 28px;
    border-radius: var(--radius);
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(46, 48, 148, 0.3);
}

.upload-instructions h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.upload-instructions ul {
    margin-left: 24px;
    line-height: 1.8;
}

.upload-instructions ul ul {
    margin-top: 10px;
    margin-bottom: 10px;
}

.upload-instructions li {
    margin-bottom: 10px;
}

.upload-instructions strong {
    font-weight: 700;
    color: var(--accent-light);
}

.upload-form-container {
    max-width: 700px;
    margin: 0 auto;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 48px 24px;
    border: 3px dashed var(--gray-300);
    border-radius: var(--radius);
    background: var(--gray-50);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.file-label:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.file-label svg {
    color: var(--primary);
}

.file-label span {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-700);
}

.form-group small {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--gray-500);
}

.form-group small a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.form-group small a:hover {
    text-decoration: underline;
}

.upload-form .form-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 2px solid var(--gray-200);
}

.upload-form .form-actions .btn {
    min-width: 180px;
}

/* ========================================
   ORDER CREATE PAGE
   ======================================== */

.order-info-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    padding: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius);
    margin-bottom: 36px;
    box-shadow: 0 4px 12px rgba(46, 48, 148, 0.3);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.info-value {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.form-section {
    margin-bottom: 36px;
}

.form-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--primary);
}

.products-selection-table .product-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.products-selection-table .quantity-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.2s;
}

.products-selection-table .quantity-input:disabled {
    background-color: var(--gray-100);
    cursor: not-allowed;
    opacity: 0.6;
}

.products-selection-table .quantity-input:not(:disabled) {
    border-color: var(--primary);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.products-selection-table .quantity-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 48, 148, 0.1);
}

.order-summary {
    position: sticky;
    top: 24px;
    background: white;
    border: none;
    border-radius: var(--radius);
    padding: 0;
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
}

.order-summary h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--primary);
}

.summary-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    max-height: 320px;
    overflow-y: auto;
}

.summary-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 14px;
}

.summary-list li:last-child {
    border-bottom: none;
}

.summary-product {
    flex: 1;
    font-weight: 600;
    color: var(--gray-900);
}

.summary-quantity {
    color: var(--gray-600);
    font-weight: 700;
    margin-left: 14px;
}

.order-total {
    padding: 18px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(46, 48, 148, 0.3);
}

.empty-summary {
    text-align: center;
    padding: 48px 24px;
    color: var(--gray-500);
}

.empty-summary svg {
    margin-bottom: 14px;
    color: var(--gray-400);
}

.submit-order-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
}

/* ========================================
   ORDERS LIST PAGE
   ======================================== */

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    gap: 20px;
    flex-wrap: wrap;
}

.info-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--gray-700);
    font-weight: 600;
}

.info-box svg {
    color: var(--primary);
}

.orders-table .order-number-cell {
    font-family: 'Courier New', monospace;
    color: var(--primary);
    font-weight: 700;
}

.orders-table .order-number-cell strong {
    font-weight: 700;
}

.orders-table .price-cell {
    font-weight: 700;
    color: var(--success);
    text-align: right;
}

.orders-table .actions-cell {
    display: flex;
    gap: 8px;
}

/* ========================================
   NOTIFICATIONS
   ======================================== */

.notification-item {
    background: white;
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.notification-item:hover {
    box-shadow: var(--shadow-md);
}

.notification-item.unread {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left-color: var(--accent);
}

/* ========================================
   CONFIG PAGE
   ======================================== */

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.config-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.config-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.config-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.config-card p {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 20px;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
    .order-info-box {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
    }
    
    .page-header h1 {
        font-size: 26px;
    }
    
    .stat-value {
        font-size: 28px;
    }
}

/* ========================================
   ORDERS TABLE ENHANCEMENTS
   ======================================== */

.orders-table td {
    vertical-align: middle;
}

.orders-table .order-number-cell strong {
    font-size: 15px;
    letter-spacing: 0.3px;
}

.orders-table .badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.orders-table .price-cell {
    font-size: 16px;
    font-weight: 700;
}

.orders-table .btn-sm {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
}

/* Status Badge Colors - Enhanced */
.badge-pendiente {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fbbf24;
}

.badge-en_preparacion,
.badge-en-preparacion {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #60a5fa;
}

.badge-procesado,
.badge-listo {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #34d399;
}

.badge-enviado,
.badge-completado {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #10b981;
}

.badge-cancelado {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #f87171;
}

/* Orders Header Enhancement */
.orders-header {
    background: white;
    padding: 20px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    border: 1px solid var(--gray-200);
}

.orders-header .info-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(46, 48, 148, 0.3);
}

.orders-header .info-box svg {
    color: white;
}

.orders-header .info-box strong {
    font-weight: 700;
}

/* Empty State Enhancement */
.empty-state {
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 80px 32px;
}

.empty-state svg {
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 22px;
    color: var(--primary);
}

/* Table Hover Effect */
.orders-table tbody tr {
    transition: all 0.2s;
}

.orders-table tbody tr:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

/* Responsive Table */
@media (max-width: 768px) {
    .orders-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .orders-header .btn {
        width: 100%;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .orders-table {
        min-width: 800px;
    }
}

/* ========================================
   ORDER DETAIL PAGE
   ======================================== */

.order-details-box {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    margin-bottom: 28px;
    border: 1px solid var(--gray-200);
}

.order-header-section {
    margin-bottom: 32px;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.info-card {
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.info-card-highlight {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: var(--accent);
}

.info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(46, 48, 148, 0.3);
}

.info-card-highlight .info-card-icon {
    background: linear-gradient(135deg, var(--success) 0%, #34d399 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.info-card-content {
    flex: 1;
}

.info-card-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.info-card-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

/* Status Update Section */
.status-update-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 28px;
    box-shadow: 0 4px 12px rgba(46, 48, 148, 0.3);
}

.status-update-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.status-form .form-group-inline {
    display: flex;
    gap: 12px;
    align-items: center;
}

.status-form .form-select {
    flex: 1;
    background: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.status-form .btn {
    white-space: nowrap;
    background: white;
    color: var(--primary);
    border: 2px solid white;
}

.status-form .btn:hover {
    background: var(--accent-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Order Items Box */
.order-items-box {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    margin-bottom: 28px;
    border: 1px solid var(--gray-200);
}

.order-items-box h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--primary);
}

/* Floor Group */
.floor-group {
    margin-bottom: 32px;
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 24px;
    border: 2px solid var(--gray-200);
}

.floor-header {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: var(--radius-sm);
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(107, 159, 255, 0.3);
}

.floor-group .table-container {
    background: white;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.floor-group table tfoot {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--gray-100) 100%);
    font-weight: 700;
}

.floor-group table tfoot td {
    padding: 16px;
    border-top: 2px solid var(--primary);
    font-size: 16px;
}

/* Order Summary Box */
.order-summary-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius);
    padding: 28px;
    margin-top: 32px;
    box-shadow: 0 4px 12px rgba(46, 48, 148, 0.3);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.summary-value {
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.summary-total {
    margin-top: 12px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.summary-total .summary-label {
    font-size: 18px;
    color: white;
}

.summary-total .summary-value {
    font-size: 28px;
    color: white;
}

/* Empty Message */
.empty-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
    font-size: 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 2px dashed var(--gray-300);
}

/* Export Note */
.export-note {
    display: block;
    margin-top: 8px;
    color: var(--gray-600);
    font-size: 13px;
    font-style: italic;
}

/* Print Styles */
@media print {
    .page-header nav,
    .form-actions,
    .status-update-section,
    .btn,
    .export-note,
    .sidebar,
    .page-header .dashboard-subtitle {
        display: none !important;
    }
    
    body.has-sidebar .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .content-wrapper {
        max-width: 100%;
        padding: 0;
    }
    
    .floor-group {
        page-break-inside: avoid;
    }
    
    .order-details-box,
    .order-items-box {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .order-info-grid {
        grid-template-columns: 1fr;
    }
    
    .status-form .form-group-inline {
        flex-direction: column;
    }
    
    .status-form .btn {
        width: 100%;
    }
    
    .floor-group {
        padding: 16px;
    }
    
    .order-summary-box {
        padding: 20px;
    }
}

/* ========================================
   ORDER CREATE PAGE ENHANCEMENTS
   ======================================== */

/* Order Summary Container */
.order-summary-container {
    background: white;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.order-summary-container .order-summary {
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
    background: white;
}

.order-summary-container .summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.order-summary-container .summary-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    transition: background 0.2s;
}

.order-summary-container .summary-list li:hover {
    background: var(--gray-50);
}

.order-summary-container .summary-list li:last-child {
    border-bottom: none;
}

.order-summary-container .summary-product {
    flex: 1;
    font-weight: 600;
    color: var(--gray-900);
}

.order-summary-container .summary-product strong {
    color: var(--primary);
    font-family: 'Courier New', monospace;
    margin-right: 8px;
}

.order-summary-container .summary-quantity {
    color: var(--gray-600);
    font-weight: 700;
    margin-left: 14px;
    white-space: nowrap;
}

.order-summary-container .empty-summary {
    text-align: center;
    padding: 60px 24px;
    color: var(--gray-500);
}

.order-summary-container .empty-summary svg {
    margin-bottom: 16px;
    color: var(--gray-400);
    opacity: 0.5;
}

.order-summary-container .empty-summary p {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
}

.order-summary-container .order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 -2px 8px rgba(46, 48, 148, 0.2);
}

/* Products Selection Table */
.products-selection-table tbody tr {
    transition: all 0.2s;
}

.products-selection-table tbody tr:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.products-selection-table .product-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.products-selection-table .quantity-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
}

.products-selection-table .quantity-input:disabled {
    background-color: var(--gray-100);
    cursor: not-allowed;
    opacity: 0.5;
    border-color: var(--gray-300);
}

.products-selection-table .quantity-input:not(:disabled) {
    border-color: var(--primary);
    background: linear-gradient(135deg, #eff6ff 0%, white 100%);
}

.products-selection-table .quantity-input:not(:disabled):focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 48, 148, 0.1);
    background: white;
}

/* Catalog Header Enhancement */
.catalog-header {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    border: 1px solid var(--gray-200);
}

/* Form Section Headers */
.form-section h2 {
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--primary);
}

/* Submit Button Enhancement */
.submit-order-btn {
    min-width: 200px;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 28px;
}

.submit-order-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--gray-400);
}

/* Catalog Info Enhancement */
.catalog-info {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border: none;
    color: white;
    padding: 14px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(107, 159, 255, 0.3);
}

.catalog-info p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.catalog-info strong {
    color: white;
    font-weight: 700;
}

/* Empty State for Create Order */
.form-section .empty-state {
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    border: 3px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 80px 32px;
    text-align: center;
}

.form-section .empty-state svg {
    opacity: 0.4;
    margin-bottom: 20px;
}

.form-section .empty-state h3 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 12px;
}

.form-section .empty-state p {
    font-size: 15px;
    color: var(--gray-600);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .order-summary-container .order-summary {
        max-height: 300px;
    }
    
    .products-selection-table {
        font-size: 13px;
    }
    
    .products-selection-table th,
    .products-selection-table td {
        padding: 10px 8px;
    }
    
    .submit-order-btn {
        width: 100%;
    }
}

/* ========================================
   UPLOAD PAGE ENHANCEMENTS
   ======================================== */

.upload-instructions {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 32px;
    border-radius: var(--radius);
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(46, 48, 148, 0.3);
}

.upload-instructions h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
    display: flex;
    align-items: center;
}

.instructions-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.instruction-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(10px);
}

.instruction-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.instruction-text {
    flex: 1;
    color: white;
    line-height: 1.7;
}

.instruction-text strong {
    font-weight: 700;
    color: var(--accent-light);
    display: block;
    margin-bottom: 8px;
}

.instruction-text ul {
    margin: 12px 0 0 20px;
    padding: 0;
}

.instruction-text ul li {
    margin-bottom: 8px;
}

.instruction-text ul li strong {
    display: inline;
    color: white;
}

/* Upload Form Container */
.upload-form-container {
    max-width: 700px;
    margin: 0 auto;
}

.upload-form .form-group {
    margin-bottom: 28px;
}

.upload-form .form-label {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.upload-form .form-select {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    background: white;
}

.upload-form .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 48, 148, 0.1);
}

/* File Label Enhancement */
.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 32px;
    border: 3px dashed var(--gray-300);
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.file-label:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.file-label svg {
    color: var(--primary);
    transition: transform 0.3s;
}

.file-label:hover svg {
    transform: translateY(-4px);
}

.file-label span {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-700);
}

.file-label small {
    font-size: 13px;
    color: var(--gray-500);
}

/* Form Help Text */
.form-help {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
}

.form-help svg {
    display: inline;
    vertical-align: middle;
}

/* Upload Form Actions */
.upload-form .form-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid var(--gray-200);
}

.upload-form .form-actions .btn {
    min-width: 160px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .upload-instructions {
        padding: 24px;
    }
    
    .instruction-item {
        flex-direction: column;
        text-align: center;
    }
    
    .instruction-icon {
        margin: 0 auto;
    }
    
    .upload-form .form-actions {
        flex-direction: column;
    }
    
    .upload-form .form-actions .btn {
        width: 100%;
    }
    
    .file-label {
        padding: 40px 20px;
    }
}

/* ========================================
   CATALOG PAGE ENHANCEMENTS
   ======================================== */

/* Catalog Header - Outside content box */
.catalog-header {
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    border: 1px solid var(--gray-200);
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.catalog-header .search-form {
    display: flex;
    gap: 12px;
    flex: 1;
    min-width: 300px;
}

.catalog-header .search-box {
    flex: 1;
}

.catalog-header .btn {
    white-space: nowrap;
}

/* Catalog Info Enhancement */
.catalog-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border: none;
    color: white;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(107, 159, 255, 0.3);
}

.catalog-info svg {
    flex-shrink: 0;
    color: white;
}

.catalog-info p {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: white;
}

.catalog-info strong {
    color: white;
    font-weight: 700;
}

/* Data Table Enhancement for Catalog */
.data-table tbody tr {
    transition: all 0.2s;
}

.data-table tbody tr:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.data-table .code-cell {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
}

.data-table .price-cell {
    font-weight: 700;
    color: var(--success);
    text-align: right;
    font-size: 15px;
}

.data-table .badge-floor {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(107, 159, 255, 0.3);
}

/* Empty State Enhancement */
.empty-state {
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    border: 3px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 80px 32px;
    text-align: center;
}

.empty-state svg {
    opacity: 0.4;
    margin-bottom: 24px;
    color: var(--primary);
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 28px;
    line-height: 1.6;
}

.empty-state p strong {
    color: var(--primary);
}

.empty-state .btn {
    min-width: 200px;
}

/* Search Box Enhancement */
.search-box {
    position: relative;
    flex: 1;
}

.search-box svg:first-child {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 12px 48px 12px 44px;
    font-size: 14px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 48, 148, 0.1);
}

.search-box .clear-search {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--gray-400);
    transition: all 0.2s;
    cursor: pointer;
    border-radius: 50%;
}

.search-box .clear-search:hover {
    color: white;
    background: var(--danger);
}

/* Responsive Catalog */
@media (max-width: 768px) {
    .catalog-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .catalog-header .search-form {
        flex-direction: column;
        min-width: 100%;
    }
    
    .catalog-header .btn {
        width: 100%;
    }
    
    .catalog-info {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   NOTIFICATIONS PAGE
   ======================================== */

/* Notification Badge in Menu */
.notification-badge-menu {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--danger);
    color: white;
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
    min-width: 24px;
    height: 24px;
    text-align: center;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}



/* Notification Badge in Header */
.notification-badge-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-left: 12px;
    vertical-align: middle;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Notifications Actions */
.notifications-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.notifications-actions form {
    display: inline;
}

/* Notifications List */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notification-item {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s;
    position: relative;
}

.notification-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.notification-item.unread {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: var(--accent);
    border-left-width: 4px;
}

.notification-item.read {
    opacity: 0.8;
}

.notification-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(46, 48, 148, 0.3);
}

.notification-item.unread .notification-icon {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    box-shadow: 0 2px 8px rgba(107, 159, 255, 0.3);
}

.notification-content {
    flex: 1;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 16px;
}

.notification-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.notification-time {
    font-size: 12px;
    color: var(--gray-500);
    white-space: nowrap;
    font-weight: 600;
}

.notification-content p {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.notification-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s;
}

.notification-action:hover {
    color: var(--primary-light);
    gap: 8px;
}

/* Removed notification badge dot - using background color instead */

/* Empty State for Notifications */
.notifications-list + .empty-state,
.content-box > .empty-state {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .notification-item {
        flex-direction: column;
        padding: 20px;
    }
    
    .notification-icon {
        width: 40px;
        height: 40px;
    }
    
    .notification-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .notification-time {
        align-self: flex-start;
    }
    
    .notifications-actions {
        justify-content: stretch;
    }
    
    .notifications-actions .btn {
        width: 100%;
    }
}

/* ========================================
   CONFIG PAGES ENHANCEMENTS
   ======================================== */

/* Config Actions */
.config-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.config-actions .btn {
    min-width: 180px;
}

/* Users Table Enhancements */
.data-table .code-cell {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
}

/* Badge Enhancements for Config */
.badge-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Config */
@media (max-width: 768px) {
    .config-actions {
        justify-content: stretch;
    }
    
    .config-actions .btn {
        width: 100%;
    }
}

/* ========================================
   APP FOOTER
   ======================================== */

.app-footer {
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 24px 32px;
    text-align: center;
    margin-top: 60px;
    width: 100%;
    clear: both;
}

body.has-sidebar .app-footer {
    margin-left: 0;
    width: 100%;
}

.app-footer p {
    margin: 0;
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.8;
}

.footer-credits {
    margin-top: 8px;
    font-size: 12px;
    color: var(--gray-500);
}

.app-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.app-footer a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Login Credits */
.login-credits {
    margin-top: 12px;
    font-size: 12px;
    color: var(--gray-500);
}

.login-credits a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.login-credits a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .app-footer {
        padding: 16px 20px;
    }
    
    .app-footer p {
        font-size: 12px;
    }
}

/* Shopping Cart Styles */
.cart-header {
    padding: 18px 20px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: var(--radius) var(--radius) 0 0;
    margin: -20px -20px 0 -20px;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.2);
}

.cart-header h4 {
    margin: 0;
    color: white;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cart-header h4::before {
    content: "🛒";
    font-size: 22px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px;
    margin: 8px 0;
    background: white;
    border-radius: var(--radius);
    border: 2px solid var(--gray-200);
    gap: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cart-item:hover {
    background: #f8fafc;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.cart-item:last-child {
    margin-bottom: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    background: white;
    padding: 4px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
}

.cart-qty-input {
    width: 50px;
    padding: 6px 8px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.cart-qty-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-sm {
    padding: 6px 8px;
    font-size: 12px;
    min-width: auto;
    line-height: 1;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.btn-sm:hover {
    transform: scale(1.1);
}

.btn-sm svg {
    display: block;
}

.add-to-cart-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 8px 12px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.add-to-cart-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.add-to-cart-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.summary-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 16px 0;
    margin: 0;
    list-style: none;
}

.summary-list::-webkit-scrollbar {
    width: 8px;
}

.summary-list::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

.summary-list::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

.summary-list::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

.empty-summary {
    text-align: center;
    color: var(--gray-500);
    padding: 40px 20px;
}

.empty-summary svg {
    opacity: 0.2;
    margin-bottom: 16px;
    color: var(--gray-400);
}

.empty-summary p {
    margin: 0;
    font-style: italic;
    font-size: 15px;
}

.summary-product {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    color: #1e293b;
    font-weight: 500;
}

.summary-product strong {
    color: white;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    background: var(--primary);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: inline-block;
    margin-right: 6px;
}

.summary-quantity {
    display: inline-block;
    font-size: 14px;
    color: #475569;
    background: #e0f2fe;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid #bae6fd;
    font-weight: 600;
}

.order-summary-container {
    background: white;
    border-radius: var(--radius);
    border: 2px solid var(--gray-200);
    overflow: hidden;
}

.order-summary {
    padding: 20px;
    min-height: 200px;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-top: 2px solid var(--primary);
    font-weight: 600;
    font-size: 16px;
}

.order-total span:first-child {
    color: white;
    font-size: 15px;
}

.order-total span:last-child {
    color: #1e40af;
    font-size: 24px;
    background: white;
    padding: 8px 20px;
    border-radius: var(--radius);
    border: 2px solid white;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================
   SHOPPING CART STYLES - Clean & Modern Design
   ============================================ */

/* Cart Container */
.order-summary-container {
    background: #ffffff;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.order-summary {
    padding: 0;
    min-height: 150px;
}

/* Cart Header */
.cart-header {
    background: #3b82f6;
    padding: 16px 20px;
    margin: 0;
}

.cart-header h4 {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-header h4::before {
    content: "🛒";
    font-size: 18px;
}

/* Cart Items List */
.summary-list {
    list-style: none;
    padding: 16px;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
}

/* Individual Cart Item */
.cart-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.cart-item:last-child {
    margin-bottom: 0;
}

.cart-item:hover {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

/* Cart Item Info */
.cart-item-info {
    flex: 1;
    min-width: 0;
}

.summary-product {
    display: block;
    font-size: 14px;
    color: #111827;
    margin-bottom: 6px;
    line-height: 1.4;
}

.summary-product strong {
    display: inline-block;
    background: #3b82f6;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    margin-right: 6px;
}

.summary-quantity {
    display: inline-block;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

/* Cart Item Actions */
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.cart-qty-input {
    width: 50px;
    height: 32px;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.cart-qty-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Cart Buttons */
.btn-sm {
    padding: 8px;
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-sm:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.btn-sm.btn-secondary {
    color: #6b7280;
}

.btn-sm.btn-secondary:hover {
    color: #111827;
    background: #e5e7eb;
}

.btn-sm.btn-danger {
    color: #dc2626;
    border-color: #fecaca;
    background: #fef2f2;
}

.btn-sm.btn-danger:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.btn-sm svg {
    width: 14px;
    height: 14px;
}

/* Add to Cart Button */
.add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.add-to-cart-btn svg {
    width: 14px;
    height: 14px;
}

/* Cart Total */
.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #3b82f6;
    border-top: 1px solid #2563eb;
    font-weight: 600;
}

.order-total span:first-child {
    color: #ffffff;
    font-size: 14px;
}

.order-total span:last-child {
    background: #ffffff;
    color: #1e40af;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
}

/* Empty Cart State */
.empty-summary {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.empty-summary svg {
    opacity: 0.3;
    margin-bottom: 12px;
}

.empty-summary p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

/* Scrollbar Styling */
.summary-list::-webkit-scrollbar {
    width: 6px;
}

.summary-list::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.summary-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.summary-list::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}


/* Fix for Add to Cart Button */
.add-to-cart-btn.btn-primary {
    background: #3b82f6;
    color: white;
    border: none;
}

.add-to-cart-btn.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.add-to-cart-btn.btn-success {
    background: #10b981;
    color: white;
    border: none;
}

.add-to-cart-btn.btn-success:hover {
    background: #059669;
}


/* Override all previous order-summary-container borders */
.form-section .order-summary-container,
.order-summary-container {
    border: none !important;
}


/* Remove double scroll from cart */
.summary-list {
    max-height: none !important;
    overflow-y: visible !important;
}

.order-summary {
    max-height: none !important;
    overflow-y: visible !important;
}

.order-summary-container .order-summary {
    max-height: none !important;
    overflow-y: visible !important;
}


/* Fix action buttons (edit, delete) colors */
.btn-sm.btn-primary {
    background: #3b82f6 !important;
    color: white !important;
    border: 1px solid #3b82f6 !important;
}

.btn-sm.btn-primary:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
}

.btn-sm.btn-secondary {
    background: #6b7280 !important;
    color: white !important;
    border: 1px solid #6b7280 !important;
}

.btn-sm.btn-secondary:hover {
    background: #4b5563 !important;
    border-color: #4b5563 !important;
}

.btn-sm.btn-danger {
    background: #ef4444 !important;
    color: white !important;
    border: 1px solid #ef4444 !important;
}

.btn-sm.btn-danger:hover {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
}

.btn-sm.btn-success {
    background: #10b981 !important;
    color: white !important;
    border: 1px solid #10b981 !important;
}

.btn-sm.btn-success:hover {
    background: #059669 !important;
    border-color: #059669 !important;
}

.btn-sm.btn-warning {
    background: #f59e0b !important;
    color: white !important;
    border: 1px solid #f59e0b !important;
}

.btn-sm.btn-warning:hover {
    background: #d97706 !important;
    border-color: #d97706 !important;
}

/* Fix for action buttons in tables */
.action-buttons .btn-sm,
.table-actions .btn-sm,
td .btn-sm {
    min-width: 70px;
}


/* Notification Permission Prompt */
.notification-prompt {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.notification-prompt-content {
    background: white;
    border-radius: 12px;
    padding: 32px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.notification-prompt-content svg {
    margin-bottom: 16px;
}

.notification-prompt-content h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    color: #111827;
}

.notification-prompt-content p {
    margin: 0 0 24px 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.notification-prompt-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.notification-prompt-actions .btn {
    flex: 1;
    max-width: 150px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* Highlight products in cart */
.products-selection-table tr.in-cart {
    background-color: #ecfdf5 !important;
    border-left: 3px solid #10b981;
}

.products-selection-table tr.in-cart:hover {
    background-color: #d1fae5 !important;
}

.products-selection-table tr.in-cart .code-cell {
    font-weight: 700;
    color: #059669;
}
