File size: 5,477 Bytes
3fb7857 405b9b5 3fb7857 ba59cdf 5442503 3fb7857 191c3ac 5442503 3fb7857 5442503 3fb7857 5442503 3fb7857 5442503 3fb7857 5442503 3fb7857 5442503 3fb7857 5442503 3fb7857 5442503 3fb7857 405b9b5 3fb7857 5442503 3fb7857 5442503 191c3ac 3fb7857 5442503 3fb7857 5442503 3fb7857 405b9b5 3fb7857 191c3ac 5442503 3fb7857 5442503 191c3ac 3fb7857 191c3ac 3fb7857 191c3ac 3fb7857 5442503 191c3ac 3fb7857 5442503 191c3ac 3fb7857 5442503 3fb7857 6592fb2 3fb7857 191c3ac 3fb7857 191c3ac 3fb7857 8b3226f 3fb7857 8b3226f 3fb7857 8b3226f 405b9b5 3fb7857 8b3226f 3fb7857 8b3226f 3fb7857 405b9b5 3fb7857 8b3226f 3fb7857 8b3226f 3fb7857 8b3226f 3fb7857 191c3ac 8b3226f 3fb7857 8b3226f 3fb7857 8b3226f 6592fb2 3fb7857 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 |
/* إعدادات عامة */
* {
box-sizing: border-box;
font-family: 'Tajawal', 'Segoe UI', system-ui, sans-serif;
}
html, body {
margin: 0;
padding: 0;
background: #f5f7fb;
color: #111827;
direction: rtl;
}
/* زر الوضع الليلي */
.theme-btn {
position: fixed;
top: 16px;
left: 16px;
padding: 8px 14px;
background: #2563eb;
color: #fff;
border: none;
border-radius: 10px;
cursor: pointer;
font-size: 13px;
box-shadow: 0 4px 8px rgba(37, 99, 235, 0.25);
transition: all 0.2s ease;
z-index: 20;
}
.theme-btn:hover {
background: #1e40af;
}
/* الحاوية العامة */
.container {
max-width: 1100px;
margin: 80px auto 40px;
background: #fff;
border-radius: 16px;
padding: 28px;
box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}
/* العنوان الرئيسي */
h1 {
margin: 0 0 4px;
font-size: 26px;
font-weight: 700;
color: #111827;
text-align: center;
}
.credit {
text-align: center;
font-size: 13px;
color: #6b7280;
margin-bottom: 20px;
}
/* أدوات البحث */
.tools {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
margin-bottom: 16px;
gap: 8px;
}
.search-wrap {
position: relative;
flex: 1;
min-width: 260px;
}
#searchBox {
width: 100%;
padding: 12px 40px 12px 12px;
border: 1px solid #d1d5db;
border-radius: 12px;
font-size: 14px;
outline: none;
transition: 0.2s;
}
#searchBox:focus {
border-color: #2563eb;
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.clear-btn {
position: absolute;
top: 50%;
left: 10px;
transform: translateY(-50%);
border: none;
background: transparent;
cursor: pointer;
font-size: 16px;
color: #9ca3af;
}
.clear-btn:hover {
color: #111827;
}
/* اختيار عدد الصفوف */
#pageSize {
padding: 8px 10px;
border-radius: 10px;
border: 1px solid #d1d5db;
font-size: 13px;
background: #fff;
cursor: pointer;
}
/* عدد النتائج */
.count {
font-size: 14px;
color: #374151;
text-align: right;
margin: 6px 0 14px;
}
/* كارد الجدول */
.card {
border: 1px solid #e5e7eb;
border-radius: 14px;
overflow: hidden;
background: #fff;
}
/* تغليف الجدول */
.table-wrap {
overflow-x: auto;
}
/* الجدول */
table {
width: 100%;
border-collapse: collapse;
table-layout: fixed; /* الأعمدة متساوية */
}
thead {
background: #f3f4ff;
}
/* القاعدة العامة للأعمدة */
th,
td {
width: 33.33%; /* ثلاث أعمدة متساوية */
padding: 10px 8px;
border-bottom: 1px solid #e5e7eb;
text-align: center;
font-size: 13px;
white-space: nowrap; /* افتراضياً: لا يلف السطر */
overflow: hidden;
text-overflow: ellipsis; /* نقاط للنص الطويل */
}
/* عنوان الأعمدة */
th {
font-weight: 600;
font-size: 14px;
color: #374151;
}
/* ✅ السماح لاسم البند أن يظهر كاملاً مع لفّ منظم */
th:nth-child(1),
td:nth-child(1) {
white-space: normal; /* يسمح بتعدد الأسطر */
text-overflow: clip; /* بدون نقاط */
text-align: right; /* محاذاة لليمين لقراءة أوضح */
line-height: 1.5;
padding-right: 10px;
}
/* الكمية + وحدة البند تبقى في سطر واحد ومرتّبة */
th:nth-child(2),
td:nth-child(2),
th:nth-child(3),
td:nth-child(3) {
text-align: center;
}
/* صفوف */
tbody tr:nth-child(even) {
background: #f9fafb;
}
tbody tr:hover {
background: #eff6ff;
transition: background-color 0.2s ease;
}
/* النص عند عدم وجود نتائج */
.no-results {
text-align: center;
padding: 14px;
font-size: 13px;
color: #9ca3af;
}
/* تمييز نتيجة البحث */
.hl {
background: #fffbeb;
padding: 0 2px;
border-radius: 3px;
}
/* الترقيم */
.pagination {
display: flex;
justify-content: center;
align-items: center;
gap: 6px;
padding: 12px;
flex-wrap: wrap;
}
.page-btn {
border: none;
padding: 6px 12px;
border-radius: 8px;
background: #e5e7eb;
cursor: pointer;
font-size: 13px;
transition: 0.2s;
}
.page-btn:hover {
background: #dbeafe;
}
.page-btn.active {
background: #2563eb;
color: #fff;
}
.page-btn.ghost {
opacity: 0.8;
}
.dots {
color: #9ca3af;
font-size: 13px;
padding: 0 4px;
}
/* تأثير تحميل */
.skeleton {
display: grid;
gap: 8px;
margin: 16px 0;
}
.sk-row {
height: 16px;
background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
background-size: 200% 100%;
animation: loading 1.5s infinite;
border-radius: 6px;
}
@keyframes loading {
0% { background-position: 200% 0; }
100% { background-position: -200% 0; }
}
/* التذييل */
.footer {
text-align: center;
font-size: 13px;
color: #6b7280;
margin-top: 16px;
padding: 10px;
}
/* الوضع الليلي */
.dark body {
background: #0f172a;
color: #e2e8f0;
}
.dark .container {
background: #1e293b;
color: #e2e8f0;
}
.dark table {
color: #e2e8f0;
}
.dark thead {
background: #334155;
}
.dark tbody tr:nth-child(even) {
background: #111827;
}
.dark .card {
border-color: #4b5563;
background: #0f172a;
}
.dark .page-btn {
background: #334155;
color: #e2e8f0;
}
.dark .page-btn.active {
background: #2563eb;
color: #fff;
}
.dark .theme-btn {
background: #475569;
color: #fff;
}
|