/**
 * DataTables Buttons - Clean Professional Style
 */

/* Reset all DataTables button styles */
.dt-buttons,
.dt-buttons .btn,
.dt-buttons .dt-button,
.dt-button,
.buttons-csv,
.buttons-excel,
.buttons-print,
.buttons-pdf,
.buttons-copy,
.buttons-colvis,
.buttons-collection {
    all: unset !important;
    box-sizing: border-box !important;
}

/* Container */
.dt-buttons {
    display: inline-flex !important;
    flex-direction: row !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}

/* Buttons */
.dt-buttons .btn,
.dt-buttons .dt-button,
.dt-button,
.buttons-csv,
.buttons-excel,
.buttons-print,
.buttons-pdf,
.buttons-copy,
.buttons-colvis,
.buttons-collection {
    display: inline-block !important;
    background: #f8f8f8 !important;
    color: #444 !important;
    border: none !important;
    border-right: 1px solid #ccc !important;
    padding: 10px 18px !important;
    font-family: 'Cairo', Tahoma, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
}

.dt-buttons .btn:last-child,
.dt-buttons .dt-button:last-child {
    border-right: none !important;
}

/* Hover */
.dt-buttons .btn:hover,
.dt-buttons .dt-button:hover {
    background: #e8e8e8 !important;
}

/* Icons inside buttons */
.dt-buttons .btn i,
.dt-buttons .dt-button i {
    margin-left: 6px !important;
    font-size: 13px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .dt-buttons .btn,
    .dt-buttons .dt-button {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
}

/* ==============================================
   حدود جميع الجداول - رمادي غامق
   ============================================== */
.table,
.table th,
.table td,
.dataTable,
.dataTable th,
.dataTable td {
    border-color: #333333 !important;
}

.dataTables_scrollHead table,
.dataTables_scrollHead th {
    border-color: #333333 !important;
}

.table tfoot td,
.dataTable tfoot td {
    border-color: #333333 !important;
}

.table-bordered,
.table-bordered th,
.table-bordered td {
    border-color: #333333 !important;
}

/* ==============================================
   تنسيق جميع الجداول بحدود واضحة
   ============================================== */
.table {
    border: 1px solid #333333 !important;
    border-collapse: collapse !important;
}

.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
    border: 1px solid #333333 !important;
}

/* جدول مرتجعات المبيعات */
#sell_return_table,
#sell_return_table th,
#sell_return_table td {
    border: 1px solid #333333 !important;
}

#sell_return_table thead tr {
    background-color: #3c8dbc !important;
    color: #fff !important;
}

/* جداول أخرى شائعة */
#purchase_return_table,
#purchase_return_table th,
#purchase_return_table td,
#stock_adjustment_table,
#stock_adjustment_table th,
#stock_adjustment_table td {
    border: 1px solid #333333 !important;
}
