﻿
        :root {
            --primary: #0078B7;
            --primary-dark: #005a87;
            --secondary: #10b981;
            --success: #10b981;
            --light: #f8f9fa;
            --dark: #212529;
            --danger: #ef4444;
            --warning: #f59e0b;
            --info: #3b82f6;
            --font-family: 'Cairo', sans-serif;
            --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.12);
        }
        * {
            box-sizing: border-box;
            font-family: var(--font-family);
            transition: var(--transition);
        }
        body {
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
            color: #333;
            min-height: 100vh;
            margin: 0;
            padding: 0;
            overflow-x: hidden;
            touch-action: manipulation;
        }
        .auth-container {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            animation: fadeIn 0.8s ease-out;
        }
        .auth-card {
            background: white;
            border-radius: 20px;
            box-shadow: var(--shadow);
            padding: 2rem;
            width: 100%;
            max-width: 450px;
            border: 1px solid rgba(0, 120, 183, 0.1);
        }
        .logo {
            text-align: center;
            margin-bottom: 1.5rem;
        }
        .logo img {
            width: 120px;
            height: auto;
            margin-bottom: 1rem;
            transition: var(--transition);
        }
        .password-container {
            position: relative;
        }
        .password-input-container {
            position: relative;
        }
        .password-toggle {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            color: #666;
            font-size: 1rem;
            user-select: none;
            padding: 0 5px;
            z-index: 2;
        }
        .password-toggle:hover {
            color: var(--primary);
        }
        .form-control {
            padding-left: 35px !important;
            border-radius: 10px;
            padding: 0.75rem 1rem;
            border: 2px solid #e9ecef;
            transition: var(--transition);
        }
        .dashboard {
            min-height: 100vh;
            background: #f8f9fa;
            display: flex;
        }
        .sidebar {
            background: linear-gradient(180deg, var(--primary), var(--primary-dark));
            color: white;
            min-height: 100vh;
            padding: 0;
            box-shadow: 3px 0 10px rgba(0, 0, 0, 0.1);
            width: 280px;
            z-index: 1000;
            position: fixed;
            top: 0;
            right: 0;
            transition: transform 0.3s ease;
            overflow-y: auto;
            max-height: 100vh;
        }
        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(100%);
            }
            .sidebar.active {
                transform: translateX(0);
            }
        }
        .sidebar-header {
            padding: 1.5rem;
            text-align: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            background: rgba(0, 0, 0, 0.1);
            position: relative;
        }
        .close-sidebar {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: white;
            font-size: 1.2rem;
            display: none;
            cursor: pointer;
            padding: 8px;
            border-radius: 5px;
        }
        .close-sidebar:hover {
            background: rgba(255, 255, 255, 0.1);
        }
        @media (max-width: 768px) {
            .close-sidebar {
                display: block;
            }
        }
        .sidebar-menu {
            list-style: none;
            padding: 1rem 0;
            margin: 0;
        }
        .sidebar-menu li {
            padding: 0;
            margin: 0.2rem 0;
        }
        .sidebar-menu a {
            display: flex;
            align-items: center;
            padding: 1rem 1.5rem;
            color: white;
            text-decoration: none;
            border-radius: 8px;
            margin: 0.2rem;
            transition: var(--transition);
            border-left: 4px solid transparent;
        }
        .sidebar-menu a:hover, .sidebar-menu a.active {
            background: rgba(255, 255, 255, 0.15);
            border-left: 4px solid white;
        }
        .sidebar-menu i {
            margin-right: 10px;
            font-size: 1.1rem;
            min-width: 24px;
            text-align: center;
        }
        .main-content {
            padding: 1rem;
            background: #f8f9fa;
            width: 100%;
            flex: 1;
            margin-right: 280px;
            transition: margin-right 0.3s ease;
        }
        @media (max-width: 768px) {
            .main-content {
                margin-right: 0;
            }
        }
        .header {
            background: white;
            padding: 1.2rem;
            border-radius: 15px;
            box-shadow: var(--shadow);
            margin-bottom: 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            font-size: 1.5rem;
            color: var(--primary);
            padding: 8px;
            border-radius: 8px;
            transition: var(--transition);
            cursor: pointer;
        }
        .mobile-menu-btn:active {
            background-color: rgba(0, 120, 183, 0.1);
        }
        @media (max-width: 768px) {
            .mobile-menu-btn {
                display: block;
            }
        }
        .wallet-card {
            background: white;
            border-radius: 15px;
            box-shadow: var(--shadow);
            padding: 1.5rem;
            margin-bottom: 1.2rem;
            transition: var(--transition);
            border-top: 5px solid var(--primary);
            position: relative;
            overflow: hidden;
            height: 100%;
        }
        .wallet-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), transparent);
        }
        .wallet-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }
        .wallet-icon {
            font-size: 2.2rem;
            margin-bottom: 1rem;
            opacity: 0.9;
        }
        .wallet-amount {
            font-size: 1.8rem;
            font-weight: bold;
            margin: 0.8rem 0;
            color: var(--primary);
        }
        .wallet-image {
            width: 100%;
            height: 120px;
            object-fit: cover;
            border-radius: 10px;
            margin-bottom: 1rem;
            transition: var(--transition);
        }
        .wallet-image:hover {
            transform: scale(1.02);
        }
        .vodafone { border-top-color: #e60000; }
        .instapay { border-top-color: #5d34a7; }
        .orange { border-top-color: #ff6600; }
        .etisalat { border-top-color: #00a1f1; }
        .we { border-top-color: #ff4081; }
        .meza { border-top-color: #4CAF50; }
        .fawry { border-top-color: #ff9800; }
        .aman { border-top-color: #9c27b0; }
        .besata { border-top-color: #00bcd4; }
        .ahly { border-top-color: #d32f2f; }
        .paypal { border-top-color: #003087; }
        .stats-card {
            background: white;
            border-radius: 15px;
            box-shadow: var(--shadow);
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            transition: var(--transition);
        }
        .stats-card:hover {
            box-shadow: var(--shadow-hover);
        }
        .btn-primary {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 10px;
            font-weight: 600;
            transition: var(--transition);
        }
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 120, 183, 0.4);
        }
        .btn-primary:active {
            transform: translateY(0);
        }
        .btn-danger {
            background: var(--danger);
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 10px;
            font-weight: 600;
            transition: var(--transition);
        }
        .btn-danger:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
        }
        .table th {
            border-top: none;
            font-weight: 700;
            background: rgba(0, 120, 183, 0.05);
        }
        .user-info {
            display: flex;
            align-items: center;
            background: rgba(0, 120, 183, 0.1);
            padding: 0.5rem 1rem;
            border-radius: 50px;
            transition: var(--transition);
        }
        .user-info:hover {
            background: rgba(0, 120, 183, 0.2);
        }
        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: 10px;
            font-weight: bold;
            font-size: 1.1rem;
            transition: var(--transition);
        }
        .loading {
            text-align: center;
            padding: 2rem;
            color: #666;
        }
        .alert {
            border-radius: 12px;
            border: none;
            padding: 1rem 1.5rem;
        }
        .password-requirements {
            font-size: 0.85rem;
            color: #666;
            margin-top: 0.5rem;
        }
        .requirement {
            display: flex;
            align-items: center;
            margin: 0.3rem 0;
        }
        .requirement i {
            margin-left: 0.5rem;
            font-size: 0.8rem;
        }
        .valid {
            color: #10b981;
        }
        .invalid {
            color: #ef4444;
        }
        .tab-content {
            animation: fadeIn 0.5s ease;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .report-actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 20px;
        }
        .report-card {
            background: white;
            border-radius: 15px;
            box-shadow: var(--shadow);
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            transition: var(--transition);
        }
        .report-card:hover {
            box-shadow: var(--shadow-hover);
        }
        .transaction-type-badge {
            padding: 0.35rem 0.75rem;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 600;
        }
        .transaction-deposit {
            background-color: rgba(16, 185, 129, 0.15);
            color: #10b981;
        }
        .transaction-withdraw {
            background-color: rgba(239, 68, 68, 0.15);
            color: #ef4444;
        }
        .export-btn {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .report-header {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            padding: 1.5rem;
            border-radius: 15px;
            margin-bottom: 1.5rem;
        }
        .report-summary {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }
        .summary-card {
            flex: 1;
            min-width: 200px;
            background: white;
            border-radius: 10px;
            padding: 1.2rem;
            box-shadow: var(--shadow);
            text-align: center;
        }
        .summary-card h5 {
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
            color: #666;
        }
        .summary-card .value {
            font-size: 1.5rem;
            font-weight: bold;
        }
        .summary-card.deposits .value {
            color: #10b981;
        }
        .summary-card.withdrawals .value {
            color: #ef4444;
        }
        .summary-card.net .value {
            color: var(--primary);
        }
        .summary-card.count .value {
            color: #f59e0b;
        }
        .report-details {
            background: white;
            border-radius: 15px;
            padding: 1.5rem;
            box-shadow: var(--shadow);
        }
        .report-table {
            width: 100%;
            border-collapse: collapse;
        }
        .report-table th, .report-table td {
            padding: 0.8rem;
            border-bottom: 1px solid #eee;
            text-align: right;
        }
        .report-table th {
            background-color: #f8f9fa;
            font-weight: 600;
        }
        .report-table tr:hover {
            background-color: #f8f9fa;
        }
        .empty-report {
            text-align: center;
            padding: 2rem;
            color: #666;
        }
        .report-period {
            font-size: 1.1rem;
            margin-bottom: 1rem;
            color: #666;
        }
        .dashboard-top-section {
            margin-bottom: 2rem;
        }
        .dashboard-bottom-section {
            margin-top: 2rem;
        }
        .whatsapp-export-btn {
            background-color: #25D366;
            border-color: #25D366;
        }
        .whatsapp-export-btn:hover {
            background-color: #128C7E;
            border-color: #128C7E;
        }
        @media (max-width: 1200px) {
            .sidebar {
                width: 250px;
            }
            .main-content {
                margin-right: 250px;
            }
        }
        @media (max-width: 992px) {
            .sidebar {
                width: 220px;
            }
            .main-content {
                margin-right: 220px;
            }
        }
        @media (max-width: 768px) {
            .main-content {
                margin-right: 0;
            }
            .header {
                padding: 1rem;
            }
            .auth-card {
                padding: 1.5rem;
            }
            .wallet-card {
                padding: 1.2rem;
            }
            .stats-card {
                padding: 1.2rem;
            }
            .wallet-amount {
                font-size: 1.6rem;
            }
            .user-info {
                padding: 0.4rem 0.8rem;
            }
            .user-avatar {
                width: 35px;
                height: 35px;
                font-size: 1rem;
            }
            .logo img {
                width: 100px;
            }
            .table-responsive {
                font-size: 0.9rem;
            }
            .btn {
                padding: 0.75rem 1rem;
                min-height: 44px;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            .sidebar-menu a {
                padding: 1rem 1.2rem;
                min-height: 54px;
            }
            .report-summary {
                flex-direction: column;
            }
            .summary-card {
                min-width: 100%;
            }
        }
        @media (max-width: 576px) {
            .auth-card {
                padding: 1.2rem;
                border-radius: 15px;
            }
            .header {
                flex-direction: column;
                align-items: flex-start;
            }
            .user-info {
                align-self: flex-end;
            }
            .wallet-card {
                padding: 1rem;
            }
            .stats-card {
                padding: 1rem;
            }
            .wallet-amount {
                font-size: 1.4rem;
            }
            .wallet-icon {
                font-size: 1.8rem;
            }
            .btn {
                padding: 0.6rem 1.2rem;
                font-size: 0.9rem;
            }
            .form-control {
                padding: 0.6rem 0.8rem;
            }
            .mobile-menu-btn {
                padding: 6px;
                font-size: 1.3rem;
            }
        }
        @media (max-width: 400px) {
            .auth-container {
                padding: 10px;
            }
            .auth-card {
                padding: 1rem;
            }
            .logo img {
                width: 80px;
            }
            .wallet-card {
                padding: 0.8rem;
            }
            .stats-card {
                padding: 0.8rem;
            }
            .wallet-amount {
                font-size: 1.3rem;
            }
            .wallet-icon {
                font-size: 1.6rem;
            }
            .btn {
                padding: 0.5rem 1rem;
                font-size: 0.85rem;
            }
        }
        @media (max-height: 500px) and (orientation: landscape) {
            .auth-container {
                padding: 10px;
                align-items: flex-start;
            }
            .auth-card {
                padding: 1rem;
                margin-top: 10px;
                margin-bottom: 10px;
            }
            .logo {
                margin-bottom: 1rem;
            }
            .logo img {
                width: 70px;
            }
        }
        @media (prefers-color-scheme: dark) {
            .dashboard {
                background: #121212;
                color: #e0e0e0;
            }
            .header, .wallet-card, .stats-card {
                background: #1e1e1e;
                color: #e0e0e0;
            }
            .table {
                color: #e0e0e0;
            }
            .table th {
                background: rgba(0, 120, 183, 0.1);
            }
            .form-control {
                background: #2d2d2d;
                border-color: #444;
                color: #e0e0e0;
            }
            .form-control:focus {
                background: #2d2d2d;
                color: #e0e0e0;
            }
        }
        .btn, .sidebar-menu a, .mobile-menu-btn, .close-sidebar {
            -webkit-tap-highlight-color: transparent;
            cursor: pointer;
        }
        .btn:active, .sidebar-menu a:active, .mobile-menu-btn:active {
            transform: scale(0.98);
        }
        .animate__animated {
            animation-duration: 0.6s;
        }
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }
        .pulse-animation {
            animation: pulse 2s infinite;
        }
        .tab-content {
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .tab-content.active {
            opacity: 1;
        }
        .main-content {
            overflow: hidden;
        }
        .version-info {
            text-align: center;
            padding: 10px;
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.7);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            margin-top: auto;
        }
        .social-icons {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 10px;
        }
        .social-icons a {
            color: rgba(255, 255, 255, 0.8);
            font-size: 1.2rem;
            transition: var(--transition);
            padding: 5px 10px;
            border-radius: 5px;
            background: rgba(255, 255, 255, 0.1);
        }
        .social-icons a:hover {
            color: white;
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.1);
        }
        .confirmation-modal {
            background: white;
            border-radius: 15px;
            padding: 2rem;
            max-width: 400px;
            margin: 0 auto;
            box-shadow: var(--shadow-hover);
        }
        .confirmation-modal h5 {
            margin-bottom: 1.5rem;
            color: var(--dark);
        }
        .confirmation-modal .btn {
            min-width: 100px;
        }
        .wallet-number-display {
            font-size: 0.9rem;
            color: #666;
            margin-top: 0.5rem;
        }
        .wallet-selector {
            margin-bottom: 1rem;
        }
        .wallet-selector select {
            width: 100%;
            padding: 0.5rem;
            border-radius: 8px;
            border: 1px solid #ddd;
        }
        /* Edit Wallet Modal */
        .edit-wallet-modal {
            background: white;
            border-radius: 15px;
            padding: 2rem;
            max-width: 400px;
            margin: 0 auto;
            box-shadow: var(--shadow-hover);
        }
        .edit-wallet-modal h5 {
            margin-bottom: 1.5rem;
            color: var(--dark);
        }
        .edit-wallet-modal .btn {
            min-width: 100px;
        }
        /* Client Status Badge */
        .client-type-badge {
            padding: 0.35rem 0.75rem;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 600;
        }
        .client-postponed {
            background-color: rgba(255, 193, 7, 0.15);
            color: #f59e0b;
        }
        .client-paid {
            background-color: rgba(16, 185, 129, 0.15);
            color: #10b981;
        }
        .client-search {
            margin-bottom: 1rem;
        }
        .client-actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 20px;
        }
        /* Transaction Type Tabs */
        .transaction-tabs {
            display: flex;
            margin-bottom: 1rem;
            border-bottom: 1px solid #eee;
        }
        .transaction-tab {
            padding: 0.75rem 1.5rem;
            cursor: pointer;
            border: none;
            background: none;
            font-weight: 600;
            color: #666;
            border-radius: 8px 8px 0 0;
            transition: var(--transition);
        }
        .transaction-tab.active {
            color: var(--primary);
            background: white;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            border-bottom: 2px solid var(--primary);
        }
        .transaction-tab:hover:not(.active) {
            color: var(--primary);
        }
        
        /* تحسينات لواجهة عرض المعاملات */
        .recent-transactions-card {
            background: white;
            border-radius: 15px;
            box-shadow: var(--shadow);
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            transition: var(--transition);
            height: 100%;
        }
        .recent-transactions-card:hover {
            box-shadow: var(--shadow-hover);
        }
        .recent-transactions-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            border-bottom: 1px solid #eee;
            padding-bottom: 1rem;
        }
        .recent-transactions-header h5 {
            margin: 0;
            color: var(--primary);
            font-weight: 700;
        }
        .recent-transactions-table {
            width: 100%;
            border-collapse: collapse;
        }
        .recent-transactions-table th {
            background-color: #f8f9fa;
            color: #666;
            font-weight: 600;
            padding: 0.8rem;
            border-bottom: 1px solid #eee;
            text-align: right;
            font-size: 0.9rem;
        }
        .recent-transactions-table td {
            padding: 0.8rem;
            border-bottom: 1px solid #f5f5f5;
            text-align: right;
            font-size: 0.9rem;
        }
        .recent-transactions-table tr:last-child td {
            border-bottom: none;
        }
        .recent-transactions-table tr:hover {
            background-color: #f8f9fa;
        }
        .transaction-amount {
            font-weight: 600;
        }
        .transaction-amount.deposit {
            color: #10b981;
        }
        .transaction-amount.withdraw {
            color: #ef4444;
        }
        .transaction-date {
            color: #666;
            font-size: 0.85rem;
        }
        .transaction-wallet {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .transaction-wallet-icon {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            color: white;
        }
        .transaction-wallet-name {
            font-weight: 500;
        }
        .no-transactions {
            text-align: center;
            padding: 2rem;
            color: #666;
        }
        .no-transactions i {
            font-size: 3rem;
            margin-bottom: 1rem;
            opacity: 0.5;
        }
        .transaction-status {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 0.3rem 0.7rem;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 600;
        }
        .transaction-status.pending {
            background-color: rgba(255, 193, 7, 0.15);
            color: #f59e0b;
        }
        .transaction-status.completed {
            background-color: rgba(16, 185, 129, 0.15);
            color: #10b981;
        }
        .transaction-client {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .transaction-client-avatar {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: var(--primary);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-weight: bold;
        }
        
        /* إضافة أنماط جديدة لحذف المعاملات */
        .transaction-actions {
            display: flex;
            gap: 5px;
            flex-wrap: wrap;
        }
        .transaction-actions .btn {
            padding: 0.3rem 0.6rem;
            font-size: 0.8rem;
        }
        .bulk-actions {
            display: flex;
            gap: 10px;
            align-items: center;
            margin-bottom: 1rem;
            padding: 1rem;
            background: #f8f9fa;
            border-radius: 10px;
        }
        .select-all-checkbox {
            margin-left: 10px;
        }
        .transaction-checkbox {
            margin-left: 10px;
        }
        .selected-count {
            font-weight: bold;
            color: var(--primary);
        }

        /* أنماط جديدة للمنتجات والمبيعات */
        .product-actions {
            display: flex;
            gap: 5px;
            flex-wrap: wrap;
        }
        .sale-item {
            border: 1px solid #eee;
            border-radius: 8px;
            padding: 10px;
            margin-bottom: 10px;
            background: #f9f9f9;
        }
        .sale-summary {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 15px;
            margin-top: 15px;
        }
        .product-search-results {
            max-height: 200px;
            overflow-y: auto;
            border: 1px solid #ddd;
            border-radius: 8px;
            background: white;
            position: absolute;
            width: 100%;
            z-index: 1000;
            display: none;
        }
        .product-search-item {
            padding: 10px;
            border-bottom: 1px solid #eee;
            cursor: pointer;
        }
        .product-search-item:hover {
            background: #f0f0f0;
        }
        .sale-status-badge {
            padding: 0.35rem 0.75rem;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 600;
        }
        .sale-cash {
            background-color: rgba(16, 185, 129, 0.15);
            color: #10b981;
        }
        .sale-postponed {
            background-color: rgba(255, 193, 7, 0.15);
            color: #f59e0b;
        }
        
        /* تحسينات لقسمي المنتجات والمبيعات */
        .section-header {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            padding: 1.5rem;
            border-radius: 15px;
            margin-bottom: 1.5rem;
            box-shadow: var(--shadow);
        }
        .section-header h2 {
            margin: 0;
            font-weight: 700;
        }
        .card-header.bg-primary {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
        }
        
        /* تحسينات لتقارير المبيعات */
        .sales-report-actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 20px;
        }
        .sales-report-card {
            background: white;
            border-radius: 15px;
            box-shadow: var(--shadow);
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            transition: var(--transition);
        }
        .sales-report-card:hover {
            box-shadow: var(--shadow-hover);
        }
        .sales-summary-card {
            flex: 1;
            min-width: 200px;
            background: white;
            border-radius: 10px;
            padding: 1.2rem;
            box-shadow: var(--shadow);
            text-align: center;
            border-top: 4px solid var(--primary);
        }
        .sales-summary-card h5 {
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
            color: #666;
        }
        .sales-summary-card .value {
            font-size: 1.5rem;
            font-weight: bold;
        }
        .sales-summary-card.total .value {
            color: var(--primary);
        }
        .sales-summary-card.cash .value {
            color: #10b981;
        }
        .sales-summary-card.postponed .value {
            color: #f59e0b;
        }
        .sales-summary-card.count .value {
            color: #3b82f6;
        }
        .sales-summary-card.products .value {
            color: #8b5cf6;
        }
        /* إضافة أنماط للخصم */
        .discount-section {
            background: #fff8e1;
            border-radius: 8px;
            padding: 15px;
            margin-top: 15px;
            border: 1px solid #ffd54f;
        }
        .discount-badge {
            background-color: rgba(255, 152, 0, 0.15);
            color: #f57c00;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            font-size: 0.8rem;
            font-weight: 600;
        }
    
