/* تنسيق الكونتينر */
.table-container {
    width: 90%;
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow-x: auto; /* لجعل الجدول قابلاً للتمرير في الشاشات الصغيرة */
}

/* تنسيق الجدول */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* تنسيق رأس الجدول */
thead {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

thead th {
    padding: 15px;
    text-align: left;
}

/* تنسيق صفوف الجدول */
tbody tr {
    border-bottom: 1px solid #ddd;
    transition: background 0.3s;
}

/* تأثير عند تمرير الماوس */
tbody tr:hover {
    background-color: #f1f1f1;
}

/* تنسيق خلايا الجدول */
td {
    padding: 12px;
    color: #333;
}

/* تنسيق حقل البحث */
#search-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* تصميم متجاوب للجوال */
@media (max-width: 768px) {
    .table-container {
        width: 95%;
        padding: 15px;
    }
    
    table {
        font-size: 14px;
    }

    td, th {
        padding: 10px;
    }
}

@media (max-width: 768px) {
    /* إخفاء الأعمدة 3 و 4 و 5 في الجدول الرئيسي فقط */
    .table-container table {
        font-size: 10px;
    }
    .table-container table thead th:nth-child(3),
    .table-container table thead th:nth-child(4),
    .table-container table thead th:nth-child(5),
    .table-container table tbody td:nth-child(3),
    .table-container table tbody td:nth-child(4),
    .table-container table tbody td:nth-child(5) {
        display: none;
    }
}
/* تصغير عرض عمود الكمية */
#order-table th:nth-child(3),
#order-table td:nth-child(3) {
    width: 60px; /* يمكن تعديل الحجم حسب الحاجة */
    text-align: center;
}

/* تحسين تصميم مربع إدخال الكمية */
#order-table td input[type="number"] {
    width: 60px; /* تقليل العرض */
    padding: 5px;
    font-size: 14px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease-in-out;
}

/* تأثير عند التركيز */
#order-table td input[type="number"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}
/*================*/
@media (max-width: 768px) {
    /* تصغير حجم النافذة */
    .modal-content {
        width: 95%; /* تكبير العرض ليكون متناسقًا */
        padding: 15px;
        font-size: 12px; /* تصغير حجم الخط */
    }
    /* إخفاء عمود Total USD في الجوال */
    #order-table th:nth-child(5),
    #order-table td:nth-child(5) {
        display: none;
    }
    #order-table td button {
        font-size: 14px; /* تصغير حجم الخط */
        padding: 10px 10px; /* تقليل حجم الزر */
    }
    /* تصغير حجم النصوص في الجدول */
    #order-table th,
    #order-table td {
        font-size: 12px;
        padding: 8px;
    }

    /* تصغير حجم إدخال الكمية */
    #order-table td input[type="number"] {
        width: 50px; /* تصغير العرض */
        font-size: 12px; /* تصغير الخط */
        padding: 4px;
    }

    /* تصغير حجم أزرار النافذة */
    .export-buttons button {
        font-size: 12px;
        padding: 8px;
    }

    /* تصغير حجم عناوين النافذة */
    .modal-content h2 {
        font-size: 14px;
    }

    /* تصغير حجم إدخال البيانات */
    .user-info input {
        font-size: 12px;
        padding: 6px;
    }

    /* تصغير زر الإغلاق */
    .close-button {
        font-size: 16px;
    }
}
