        :root {
            --if-primary: #000051; --if-primary-light: #1a1a8c; --if-primary-dark: #000033;
            --if-accent: #FF8C00; --if-accent-hover: #e67e00; --if-accent-light: #fff5e6;
            --if-success: #10b981; --if-success-light: #d1fae5; --if-warning: #f59e0b; --if-warning-light: #fef3c7;
            --if-danger: #ef4444; --if-danger-light: #fee2e2; --if-info: #3b82f6; --if-info-light: #dbeafe;
            --if-white: #ffffff; --if-gray-50: #f8fafc; --if-gray-100: #f1f5f9; --if-gray-200: #e2e8f0;
            --if-gray-300: #cbd5e1; --if-gray-400: #94a3b8; --if-gray-500: #64748b; --if-gray-600: #475569;
            --if-gray-700: #334155; --if-gray-800: #1e293b; --if-gray-900: #0f172a;
            --font-titles: 'Montserrat', sans-serif; --font-body: 'Inter', sans-serif;
            --radius-sm: 8px; --radius: 12px; --radius-lg: 16px; --radius-xl: 20px;
            --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05); --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
            --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1); --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
            --sidebar-width: 250px;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
        html { font-size: 16px; }
        body { font-family: var(--font-body); background: linear-gradient(135deg, var(--if-gray-50) 0%, #f0f4f8 100%); color: var(--if-gray-800); line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100vh; }
        
        .login-screen { position: fixed; inset: 0; background: linear-gradient(135deg, var(--if-primary) 0%, var(--if-primary-light) 100%); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
        .login-container { background: var(--if-white); border-radius: var(--radius-xl); padding: 40px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); animation: slideUp 0.5s ease; }
        @keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
        .login-logo { text-align: center; margin-bottom: 32px; }
        .login-logo img { 
            height: 55px; 
            margin-bottom: 12px; 
            filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
            transition: all 0.3s ease;
        }
        .login-logo img:hover {
            transform: scale(1.03);
            filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
        }
        .login-logo h1 { font-family: var(--font-titles); font-size: 24px; font-weight: 700; color: var(--if-primary); }
        .login-logo h1 span { color: var(--if-accent); }
        .login-form .form-group { margin-bottom: 20px; }
        .login-form .form-label { display: block; font-size: 13px; font-weight: 600; color: var(--if-gray-700); margin-bottom: 8px; }
        .login-form .form-input { width: 100%; padding: 14px 16px; border: 2px solid var(--if-gray-200); border-radius: var(--radius); font-size: 15px; transition: all 0.3s ease; background-color: var(--if-white); }
        .login-form .form-input:focus { outline: none; border-color: var(--if-accent); box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.1); }
        .password-field { position: relative; }
        .password-field .form-input { padding-right: 50px; }
        .toggle-password { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--if-gray-400); cursor: pointer; font-size: 18px; padding: 8px; transition: all 0.3s ease; z-index: 10; line-height: 1; }
        .toggle-password:hover { color: var(--if-accent); }
        .login-btn { width: 100%; padding: 14px; background: linear-gradient(135deg, var(--if-accent) 0%, var(--if-accent-hover) 100%); color: var(--if-white); border: none; border-radius: var(--radius); font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4); }
        .login-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 140, 0, 0.5); }
        .login-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
        .login-error { background: var(--if-danger-light); color: var(--if-danger); padding: 12px 16px; border-radius: var(--radius); font-size: 13px; margin-bottom: 16px; margin-top: 4px; display: none; align-items: center; gap: 8px; }
        .login-error.show { display: flex; }
        
        .admin-panel { position: fixed; inset: 0; background: var(--if-gray-50); z-index: 999; display: none; flex-direction: column; }
        .admin-panel.active { display: flex; }
        .admin-header { background: linear-gradient(135deg, var(--if-primary) 0%, var(--if-primary-light) 100%); padding: 20px 28px; display: flex; justify-content: space-between; align-items: center; }
        .admin-header h2 { color: var(--if-white); font-family: var(--font-titles); font-size: 20px; }
        .admin-content { flex: 1; padding: 28px; overflow-y: auto; }
        .admin-card { background: var(--if-white); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
        .admin-card h3 { font-family: var(--font-titles); font-size: 18px; color: var(--if-primary); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
        .admin-card h3 i { color: var(--if-accent); }
        .users-table { width: 100%; border-collapse: collapse; font-size: 14px; }
        .users-table th { background: var(--if-gray-50); padding: 14px 16px; text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; color: var(--if-gray-600); border-bottom: 2px solid var(--if-gray-200); }
        .users-table td { padding: 14px 16px; border-bottom: 1px solid var(--if-gray-100); }
        .users-table tr:hover { background: var(--if-gray-50); }
        .role-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
        .role-badge.admin { background: var(--if-accent-light); color: var(--if-accent); }
        .role-badge.partner { background: var(--if-info-light); color: var(--if-info); }
        .btn-icon { width: 36px; height: 36px; border-radius: var(--radius); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: all 0.3s ease; background: var(--if-gray-100); color: var(--if-gray-500); }
        .btn-icon:hover { background: var(--if-primary); color: var(--if-white); }
        .btn-icon.danger:hover { background: var(--if-danger); }
        .add-user-form { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px; align-items: end; }
        
        .app-container { display: none; min-height: 100vh; }
        .app-container.active { display: grid; grid-template-columns: var(--sidebar-width) 1fr; grid-template-rows: 56px 1fr; grid-template-areas: "header header" "sidebar main"; }

        .header { grid-area: header; background: linear-gradient(135deg, var(--if-primary) 0%, var(--if-primary-light) 100%); height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; box-shadow: var(--shadow-lg); z-index: 100; }
        .header-brand { display: flex; align-items: center; gap: 12px; }
        .header-brand img { 
            height: 38px; 
            filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
            transition: all 0.3s ease;
        }
        .header-brand:hover img {
            transform: scale(1.05);
            filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
        }
        .header-brand h1 { font-family: var(--font-titles); font-size: 18px; font-weight: 700; color: var(--if-white); letter-spacing: -0.5px; }
        .header-brand h1 span { color: var(--if-accent); }
        .header-actions { display: flex; align-items: center; gap: 12px; }
        .user-info { display: flex; align-items: center; gap: 10px; color: var(--if-white); font-size: 13px; }
        .user-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--if-accent); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
        .btn-sync { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--if-accent); color: var(--if-white); border: none; border-radius: 50px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
        .btn-sync:hover { background: var(--if-accent-hover); transform: translateY(-1px); }
        .btn-sync.loading { opacity: 0.7; cursor: not-allowed; }
        .btn-sync.loading i { animation: spin 1s linear infinite; }
        @keyframes spin { to { transform: rotate(360deg); } }
        .btn-logout { width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(255,255,255,0.1); color: var(--if-white); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
        .btn-logout:hover { background: rgba(255,255,255,0.2); transform: scale(1.05); }
        .btn-admin { padding: 8px 14px; background: rgba(255,255,255,0.15); color: var(--if-white); border: none; border-radius: var(--radius); font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
        .btn-admin:hover { background: rgba(255,255,255,0.25); }
        
        .sidebar { grid-area: sidebar; background: var(--if-white); border-right: 1px solid var(--if-gray-200); display: flex; flex-direction: column; z-index: 90; }
        .sidebar-header { background: linear-gradient(135deg, var(--if-primary) 0%, var(--if-primary-light) 100%); padding: 20px; color: var(--if-white); }
        .sidebar-header h3 { font-family: var(--font-titles); font-size: 18px; margin-bottom: 4px; }
        .sidebar-header p { font-size: 12px; opacity: 0.8; }
        .sidebar-nav { flex: 1; padding: 16px 0; overflow-y: auto; }
        .sidebar-nav .nav-item { display: flex; align-items: center; gap: 14px; padding: 14px 20px; color: var(--if-gray-700); text-decoration: none; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; border-left: 4px solid transparent; margin: 2px 0; }
        .sidebar-nav .nav-item:hover { background: var(--if-gray-50); color: var(--if-primary); border-left-color: var(--if-accent); }
        .sidebar-nav .nav-item.active { background: linear-gradient(90deg, var(--if-accent-light) 0%, transparent 100%); color: var(--if-primary); border-left-color: var(--if-accent); }
        .sidebar-nav .nav-item i { width: 24px; text-align: center; font-size: 18px; color: var(--if-gray-500); transition: all 0.2s ease; }
        .sidebar-nav .nav-item:hover i, .sidebar-nav .nav-item.active i { color: var(--if-accent); }
        .sidebar-nav .nav-badge { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; background: var(--if-accent); color: var(--if-white); font-size: 10px; font-weight: 700; line-height: 1; padding: 0 6px; border-radius: 999px; min-width: 22px; height: 18px; text-align: center; }
        .sidebar-footer { padding: 16px 20px; border-top: 1px solid var(--if-gray-200); }
        .sidebar-footer .version { display: block; font-size: 12px; color: var(--if-gray-400); text-align: center; text-decoration: none; cursor: pointer; transition: color 0.2s ease; }
        .sidebar-footer .version:hover { color: var(--if-accent); text-decoration: underline; }
        
        .mobile-menu-btn { display: none; width: 40px; height: 40px; border: none; background: rgba(255,255,255,0.1); color: var(--if-white); border-radius: var(--radius); cursor: pointer; font-size: 18px; align-items: center; justify-content: center; transition: all 0.3s ease; }
        .mobile-menu-btn:hover { background: rgba(255,255,255,0.2); }
        
        .mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 85; display: none; opacity: 0; transition: opacity 0.3s ease; }
        .mobile-overlay.active { display: block; opacity: 1; }
        
        .main-wrapper { grid-area: main; padding: 24px; overflow-y: auto; background: linear-gradient(135deg, var(--if-gray-50) 0%, #f0f4f8 100%); }
        
        .page-section { display: none; animation: fadeIn 0.3s ease; }
        .page-section.active { display: block; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
        .page-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
        .page-title h2 { font-family: var(--font-titles); font-size: 26px; font-weight: 700; color: var(--if-primary); margin-bottom: 4px; }
        .page-title p { font-size: 14px; color: var(--if-gray-500); }
        .page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
        
        .card { background: var(--if-white); border: 1px solid var(--if-gray-200); border-radius: var(--radius-lg); margin-bottom: 20px; box-shadow: var(--shadow-sm); overflow: hidden; transition: all 0.3s ease; }
        .card:hover { box-shadow: var(--shadow-md); }
        .card-header { padding: 18px 24px; border-bottom: 1px solid var(--if-gray-200); display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, var(--if-white) 0%, var(--if-gray-50) 100%); flex-wrap: wrap; gap: 12px; }
        .card-title { font-family: var(--font-titles); font-size: 16px; font-weight: 600; color: var(--if-primary); display: flex; align-items: center; gap: 10px; }
        .card-title i { color: var(--if-accent); font-size: 18px; }
        .card-body { padding: 24px; }
        
        .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
        .stat-card { background: var(--if-white); border: 1px solid var(--if-gray-200); border-radius: var(--radius-lg); padding: 20px; display: flex; align-items: center; gap: 14px; transition: all 0.3s ease; box-shadow: var(--shadow-sm); }
        .stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
        .stat-icon { width: 50px; height: 50px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; transition: all 0.3s ease; }
        .stat-icon.pendientes { background: linear-gradient(135deg, var(--if-danger-light) 0%, #fef2f2 100%); color: var(--if-danger); }
        .stat-icon.citados { background: linear-gradient(135deg, var(--if-info-light) 0%, #eff6ff 100%); color: var(--if-info); }
        .stat-icon.finalizados { background: linear-gradient(135deg, var(--if-success-light) 0%, #f0fdf4 100%); color: var(--if-success); }
        .stat-icon.total { background: linear-gradient(135deg, var(--if-accent-light) 0%, #fff7ed 100%); color: var(--if-accent); }
        .stat-info h3 { font-family: var(--font-titles); font-size: 28px; font-weight: 800; color: var(--if-primary); line-height: 1; margin-bottom: 6px; }
        .stat-info p { font-size: 12px; color: var(--if-gray-500); text-transform: uppercase; letter-spacing: 0.5px; }
        
        .dashboard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
        .dashboard-stat { background: linear-gradient(135deg, var(--if-primary) 0%, var(--if-primary-light) 100%); border-radius: var(--radius-lg); padding: 24px; color: var(--if-white); transition: all 0.3s ease; }
        .dashboard-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
        .dashboard-stat.accent { background: linear-gradient(135deg, var(--if-accent) 0%, var(--if-accent-hover) 100%); }
        .dashboard-stat.success { background: linear-gradient(135deg, var(--if-success) 0%, #059669 100%); }
        .dashboard-stat.info { background: linear-gradient(135deg, var(--if-info) 0%, #2563eb 100%); }
        .dashboard-stat h4 { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.7); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
        .dashboard-stat .number { font-family: var(--font-titles); font-size: 36px; font-weight: 800; margin-bottom: 6px; }
        .dashboard-stat .label { font-size: 13px; opacity: 0.9; }
        
        .map-container { height: 500px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--if-gray-200); position: relative; }
        #map { width: 100%; height: 100%; z-index: 1; }
        .map-legend { display: flex; gap: 20px; padding: 14px 20px; background: var(--if-gray-50); border-radius: var(--radius); margin-top: 16px; flex-wrap: wrap; }
        .map-legend-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--if-gray-600); font-weight: 500; }
        .map-legend-dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
        .map-legend-dot.pendiente { background: var(--if-danger); }
        .map-legend-dot.citado { background: var(--if-info); }
        .map-legend-dot.finalizado { background: var(--if-success); }
        
        .filters-bar { display: flex; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--if-gray-200); background: var(--if-gray-50); flex-wrap: wrap; }
        .search-box { position: relative; flex: 1; min-width: 250px; max-width: 400px; }
        .search-box input { width: 100%; padding: 12px 16px 12px 44px; border: 2px solid var(--if-gray-200); border-radius: 50px; font-size: 14px; background-color: var(--if-white); transition: all 0.3s ease; }
        .search-box input:focus { outline: none; border-color: var(--if-accent); box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.1); }
        .search-box i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--if-gray-400); font-size: 14px; }
        .filter-select { padding: 12px 36px 12px 16px; border: 2px solid var(--if-gray-200); border-radius: 50px; font-size: 14px; color: var(--if-gray-800); background: var(--if-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 14px center; cursor: pointer; appearance: none; transition: all 0.3s ease; }
        .filter-select:focus { outline: none; border-color: var(--if-accent); box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.1); }
        
        .table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
        .data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
        .data-table th { background: linear-gradient(135deg, var(--if-gray-50) 0%, var(--if-gray-100) 100%); padding: 14px 16px; text-align: left; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--if-gray-600); border-bottom: 2px solid var(--if-gray-200); white-space: nowrap; }
        .data-table td { padding: 14px 16px; border-bottom: 1px solid var(--if-gray-100); vertical-align: middle; }
        .data-table tbody tr { transition: all 0.2s ease; }
        .data-table tbody tr:hover { background: var(--if-gray-50); }
        
        .badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
        .badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
        .badge-pendiente { background: var(--if-danger-light); color: var(--if-danger); }
        .badge-pendiente::before { background: var(--if-danger); }
        .badge-citado { background: var(--if-info-light); color: var(--if-info); }
        .badge-citado::before { background: var(--if-info); }
        .badge-finalizado { background: var(--if-success-light); color: var(--if-success); }
        .badge-finalizado::before { background: var(--if-success); }
        .badge-facturado { background: var(--if-accent-light); color: var(--if-accent); }
        .badge-facturado::before { background: var(--if-accent); }
        .badge-pagado { background: var(--if-success-light); color: var(--if-success); }
        .badge-pagado::before { background: var(--if-success); }
        
        .action-btns { display: flex; gap: 8px; }
        .action-btn { width: 36px; height: 36px; border-radius: var(--radius-sm); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: all 0.3s ease; background: var(--if-gray-100); color: var(--if-gray-500); }
        .action-btn:hover { background: var(--if-primary); color: var(--if-white); transform: scale(1.05); }
        .action-btn.primary:hover { background: var(--if-accent); }
        .action-btn.success:hover { background: var(--if-success); }
        .action-btn.warning { background: var(--if-warning-light); color: var(--if-warning); }
        .action-btn.warning:hover { background: var(--if-warning); color: white; }
        .action-btn.danger { background: var(--if-danger-light); color: var(--if-danger); }
        .action-btn.danger:hover { background: var(--if-danger); color: white; }
        
        .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 50px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: all 0.3s ease; }
        .btn-primary { background: linear-gradient(135deg, var(--if-primary) 0%, var(--if-primary-light) 100%); color: var(--if-white); }
        .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 81, 0.3); }
        .btn-accent { background: linear-gradient(135deg, var(--if-accent) 0%, var(--if-accent-hover) 100%); color: var(--if-white); }
        .btn-accent:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4); }
        .btn-success { background: linear-gradient(135deg, var(--if-success) 0%, #059669 100%); color: var(--if-white); }
        .btn-success:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }
        .btn-outline { background: var(--if-white); color: var(--if-gray-700); border: 2px solid var(--if-gray-300); }
        .btn-outline:hover { border-color: var(--if-accent); color: var(--if-accent); background: var(--if-accent-light); }
        .btn-sm { padding: 10px 16px; font-size: 13px; }
        
        .modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 51, 0.7); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
        .modal-overlay.active { display: flex; }
        .modal { background: var(--if-white); border-radius: var(--radius-xl); width: 100%; max-width: 650px; max-height: 90vh; overflow: hidden; transform: scale(0.9); opacity: 0; transition: all 0.3s ease; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
        .modal-overlay.active .modal { transform: scale(1); opacity: 1; }
        .modal-lg { max-width: 900px; }
        .modal-xl { max-width: 1100px; }
        .modal-header { padding: 24px; border-bottom: 1px solid var(--if-gray-200); display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, var(--if-gray-50) 0%, var(--if-white) 100%); }
        .modal-title { font-family: var(--font-titles); font-size: 20px; font-weight: 700; color: var(--if-primary); display: flex; align-items: center; gap: 12px; }
        .modal-close { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--if-gray-200); color: var(--if-gray-500); cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
        .modal-close:hover { background: var(--if-danger); color: var(--if-white); transform: rotate(90deg); }
        .modal-body { padding: 24px; overflow-y: auto; flex: 1; }
        .modal-footer { padding: 20px 24px; border-top: 1px solid var(--if-gray-200); display: flex; justify-content: flex-end; gap: 12px; background: var(--if-gray-50); flex-shrink: 0; }
        
        .form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
        .form-group { margin-bottom: 20px; }
        .form-group:last-child { margin-bottom: 0; }
        .form-label { display: block; font-size: 13px; font-weight: 600; color: var(--if-gray-700); margin-bottom: 8px; }
        .form-input, .form-select, .form-textarea { width: 100%; padding: 14px 16px; border: 2px solid var(--if-gray-200); border-radius: var(--radius); font-size: 14px; transition: all 0.3s ease; background: var(--if-white); }
        .form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--if-accent); box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.1); }
        .form-textarea { resize: vertical; min-height: 100px; }
        
        .dropzone { border: 2px dashed var(--if-gray-300); border-radius: var(--radius); padding: 40px 24px; text-align: center; cursor: pointer; background: var(--if-gray-50); transition: all 0.3s ease; }
        .dropzone:hover { border-color: var(--if-accent); background: var(--if-accent-light); }
        .dropzone i { font-size: 42px; color: var(--if-accent); margin-bottom: 12px; }
        .dropzone p { margin: 0; font-weight: 600; color: var(--if-gray-700); font-size: 15px; }
        .dropzone span { font-size: 13px; color: var(--if-gray-400); }
        
        .foto-preview-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 16px; }
        .foto-preview-item { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--if-gray-200); transition: all 0.3s ease; }
        .foto-preview-item:hover { border-color: var(--if-accent); }
        .foto-preview-item img { width: 100%; height: 100%; object-fit: cover; }
        .foto-preview-item .remove-btn { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; background: var(--if-danger); color: white; border: none; border-radius: 50%; cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
        .foto-preview-item .remove-btn:hover { background: #dc2626; transform: scale(1.1); }
        
        .photos-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
        .photo-item { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--if-gray-200); cursor: pointer; transition: all 0.3s ease; }
        .photo-item:hover { border-color: var(--if-accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
        .photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
        .photo-item:hover img { transform: scale(1.05); }
        
        @media (max-width: 900px) {
            .charts-row-2, .charts-row-3 { grid-template-columns: 1fr !important; }
        }
