@font-face { font-family: 'DroidArabicKufiRegular'; src: url('assets/DroidArabicKufiRegular.woff') format('woff'), url('assets/DroidArabicKufiRegular.ttf') format('truetype'); font-weight: normal; font-style: normal; } body { font-family: 'DroidArabicKufiRegular'; /* font-weight: bold; */ /* font-size: 18px; */ } body { /* font-family: Arial, sans-serif;*/ margin: 20px; background-color: #f5f5f5; } .container { max-width: 1000px; margin: auto; } table { width: 100%; border-collapse: collapse; margin-bottom: 20px; } table, th, td { border: 1px solid #ccc; } th, td { text-align: center; padding: 10px; } th { background-color: #4CAF50; color: white; } .total-row { /* background-color: #e8f5e9; */ background-color: #f5e8e8; font-weight: bold; } .form-container, .date-container, .actions-container { display: flex; gap: 10px; margin-bottom: 20px; font-family: 'DroidArabicKufiRegular'; font-weight: bold; } select, input, button { padding: 5px; border: 1px solid #ccc; border-radius: 5px; font-size: 14px; } button { background-color: #4CAF50; color: white; cursor: pointer; font-family: 'DroidArabicKufiRegular'; font-weight: bold; } button:hover { background-color: #45a049; } .delete-all { background-color: #f44336; } .delete-all:hover { background-color: #d32f2f; } #category{ font-family: 'DroidArabicKufiRegular'; font-weight: bold; } .actions-container { display: flex; gap: 15px; justify-content: center; margin-top: 20px; } button { padding: 10px 10px; border: none; border-radius: 8px; font-size: 16px; font-family: 'DroidArabicKufiRegular'; font-weight: bold; cursor: pointer; transition: background-color 0.3s, transform 0.2s; } /* زر حذف جميع البيانات */ .delete-all { background-color: #ff4d4d; color: white; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); } .delete-all:hover { background-color: #ff1a1a; transform: scale(1.05); } /* زر إظهار/إخفاء الصفوف */ .toggle-visibility { background-color: #4caf50; color: white; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); } .toggle-visibility:hover { background-color: #45a049; transform: scale(1.05); } /* زر نسخ قيم الإجمالي */ .copy-totals { background-color: #007bff; color: white; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); } .copy-totals:hover { background-color: #0056b3; transform: scale(1.05); } .form-container { display: flex; /* flex-direction: column; */ gap: 15px; /* مسافة بين العناصر */ max-width: 420px; /* تحديد عرض النموذج */ margin: 0 auto; /* توسيط النموذج */ padding: 20px; background-color: #f9f9f9; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* إضافة ظل */ margin-bottom: 10px; } /* استجابة الشاشات */ /* استجابة الشاشات */ @media (max-width: 768px) { .form-container, .date-container, .actions-container { flex-direction: column; align-items: stretch; } .form-container select, .form-container input, .form-container button { max-width: 100%; font-size: 14px; /* تصغير حجم الخط */ padding: 8px; /* تصغير الحشوة */ } button { font-size: 14px; /* تصغير حجم الخط للأزرار */ padding: 8px; /* تصغير الحشوة للأزرار */ } table { font-size: 12px; /* تصغير حجم الخط للجدول */ } h2 { font-size: 20px; /* تصغير حجم العنوان الرئيسي */ } th, td { padding: 8px; /* تصغير الحشوة للخلايا */ } .dataTables_wrapper { overflow-x: auto; /* تفعيل شريط التمرير الأفقي إذا لزم الأمر */ } } @media (max-width: 480px) { .form-container select, .form-container input, .form-container button { font-size: 12px; /* تصغير حجم الخط أكثر للشاشات الصغيرة */ padding: 6px; /* تصغير الحشوة أكثر */ } button { font-size: 12px; /* تصغير حجم الخط للأزرار أكثر */ padding: 6px; /* تصغير الحشوة للأزرار أكثر */ } table { font-size: 9px; /* تصغير حجم الخط للجدول أكثر */ } h2 { font-size: 18px; /* تصغير حجم العنوان الرئيسي أكثر */ } th, td { padding: 2px; /* تصغير الحشوة للخلايا أكثر */ } .actions-container button { font-size: 12px; /* تصغير حجم الخط لأزرار الإجراءات */ padding: 6px; /* تصغير الحشوة لأزرار الإجراءات */ } .dataTables_wrapper { overflow-x: auto; /* تفعيل شريط التمرير الأفقي إذا لزم الأمر */ } }