.dataTables_length {
    float: left !important;
}

.dataTables_length label,
.dataTables_filter label {
    display: inline-flex !important;
    vertical-align: middle !important;
    align-items: center !important;
    gap: 10px;
}

.dataTables_filter {
    max-width: 40%;
    float: right !important;
    margin-bottom: 10px;
}

.dataTables_paginate {
    float: right !important;
    margin-top: 10px;
}

.dataTables_info {
    float: left !important;
}

.dataTables_wrapper {
    font-family: 'YekanFanum', Sans-serif;
    direction: rtl;
    max-width: 100%;
    padding: 20px;
    overflow-x: auto;
    min-height: 300px;

}

.modern-datatable {
    border-collapse: collapse;
    width: 100%;
    border: none !important;
}

.modern-datatable thead th {
    background-color: #1976d2;
    color: #fff;
    font-size: 15px;
    padding: 12px;
    border: none;
    text-align: right !important;
}

.modern-datatable tbody tr:hover {
    background-color: #e0f2ff;
}

.modern-datatable tbody td {
    padding: 12px;
    font-size: 14px;
    border: none;
}

.modern-datatable tbody tr:nth-child(even) {
    background-color: #fff;
}

.modern-datatable tbody tr:nth-child(odd) {
    background-color: #ffffff;
}



.modern-datatable a {
    color: #0d47a1;
    text-decoration: none;
}

.modern-datatable a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .modern-datatable {
        font-size: 12px;
    }

    .dataTables_wrapper {
        padding: 10px;
    }
}


#contributors-table.modern-datatable thead th,
#invoice-table-full.modern-datatable thead th,
#wc-products-table.modern-datatable thead th,
#wc-orders-table.modern-datatable thead th,
.costs-tabs-wrapper .modern-datatable thead th{
    background-color: #2C3333;
    color: #fff;

}

#contributors-table.modern-datatable tbody tr:hover {
    background-color: #f0f0f0;
}

#contributors-table.modern-datatable tbody td {
    place-content: center;
}


#contributors-table .dropdown-menu {
    display: none;
    transform: translate(12px, 2px);
    position: absolute;
    background: rgb(255, 255, 255);
    border: 1px solid rgb(204, 204, 204);
    z-index: 1000;
    border-radius: 5px;
    width: 110px;
    height: 50px;
    flex-direction: column;
    align-content: center;
    align-items: center;
    justify-content: center;
}

#contributors-table .dropdown-menu .dropdown-item {
    cursor: pointer;
    width: 100%;
    text-align: center;
    height: 25px;
}

#contributors-table .dropdown-menu .dropdown-item:hover {
    background-color: #f0f0f0;
}

#contributors-table td,
#tanxah-costs-table td,
#tanxah-costs-table th {
    white-space: nowrap;
    cursor: default;
}
#tanxah-costs-table td,
#tanxah-costs-table th {
    font-size: 12px;
}

#contributors-table th {
    white-space: nowrap;
}



#wc-orders-table_wrapper.dataTables_wrapper {
    border: unset;
    padding: unset;
    border-radius: unset;
}

#wc-orders-table_wrapper .dt-buttons {
    display: none;
}

.tippy-box[data-theme~='custom'] {
    font-family: "YekanFanum", "Vazir", Tahoma, sans-serif;
    font-size: 13px;
    line-height: 1.25;
    padding: .45rem .6rem;
    border-radius: 8px;
    max-width: 220px;
    text-align: center;
}

.tippy-box[data-theme~='custom'] .tippy-content {
    font-weight: 500;
}

.tippy-box[data-theme~='custom'] .tippy-arrow {
    color: #1b1b1b;
}

/* سایه / استایل کلی */
.tippy-box[data-theme~='custom'] {
    box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
    background: #1b1b1b;
    /* اگر می‌خوای پس‌زمینه عوض بشه */
    color: #fff;
}

#wc-orders-table td,
#wc-orders-table th {
    white-space: nowrap;
}

.table-empty {
    text-align: center;
    font-family: "YekanFanum", Sans-serif;
    margin-top: 40px;
}

#wc-orders-table>tbody>tr>td:nth-child(10),
#user-orders-table>tbody>tr>td:nth-child(8) {
    display: flex;
    gap: 5px;
}

#user-orders-table>tbody>tr>td {
    text-wrap-mode: nowrap;
}

table.dataTable tbody th,
table.dataTable tbody td {
    align-content: center;
}



#invoice-coupons-table th,
#invoice-coupons-table td,
.costs-tabs-wrapper th,
.costs-tabs-wrapper td,
#tanxah-table th,
#tanxah-table td {
    white-space: nowrap!important;
}



.limit-cell {
  display: inline-block;
  width: 20ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tanxah-admin-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tanxah-admin-wrap table { min-width: 720px; } /* یا هر مقدار مناسب */
