/* توسيط محتوى الجدول في صفحة حركات الحساب للعميل */
.accountant-customer-transactions .wp-list-table th,
.accountant-customer-transactions .wp-list-table td {
    text-align: center !important;
}

/* Accountant Plugin Custom Styles */
/* قم بزيادة التحديد هنا لضمان الأولوية القصوى */
.accountant-customer-transactions p span.balance-negative {
    color: red !important;
    font-weight: bold !important;
    font-size: 2.2em !important; /* أضفنا هذا السطر لجعل الخط أكبر قليلاً */
}

.accountant-customer-transactions p span.balance-positive {
    color: green !important;
    font-weight: bold !important;
    font-size: 2.2em !important; /* أضفنا هذا السطر لجعل الخط أكبر قليلاً */}
    
@media (max-width: 768px) {
  .accountant-customer-transactions p span.balance-positive {
    color: green !important;
    font-weight: bold !important;
    font-size: 2.2em !important;
  }
}    
    .accountant-negative {
    color: red !important;
}

.accountant-positive {
    color: green !important;
}



.accountant-customer-transactions table th:nth-child(1),
.accountant-customer-transactions table td:nth-child(1) {
    width: 20%;
        white-space: nowrap; /* لمنع التكسير لو بدك */
}

.accountant-customer-transactions table th:nth-child(2),
.accountant-customer-transactions table td:nth-child(2) {
    width: 60%;
}

.accountant-customer-transactions table th:nth-child(3),
.accountant-customer-transactions table td:nth-child(3) {
    width: 20%;
        white-space: nowrap; /* لمنع التكسير لو بدك */
}

/* شكل الكومبو بوكس */
.accountant-customer-transactions select#per_page {
    width: auto; /* العرض حسب المحتوى */
    min-width: 60px; /* أقل عرض مناسب */
    height: 40px; /* ارتفاع مناسب */
    padding: 5px 10px; /* مسافة داخلية */
    font-size: 18px;
    border-radius: 4px;
}

/* شكل التسمية (اختياري) */
.accountant-customer-transactions label[for="per_page"] {
    margin-left: 10px;
    font-weight: bold;
}
/* ===== Accountant: My Account Tabs as Buttons ===== */
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 15%!important;
}
.woocommerce-account .woocommerce-MyAccount-content {
    width: 80%!important;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* شكل الزر */
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none !important;
    border: 1px solid #e5e7eb;
    background: #a09d94;
    color: #111827;
    font-weight: 600;
    transition: all 0.15s ease-in-out;
}

/* Hover */
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

/* Active Tab */
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: #0ea5e9;        /* لون التبويب المختار */
    border-color: #0ea5e9;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.25);
}

/* مؤشر بسيط عيمين للتاب المختار */
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a::after {
    content: "✓";
    font-weight: 900;
}

/* لو بدك تخليها Grid على الموبايل */
@media (max-width: 768px) {
    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation ul li {
        width: calc(50% - 4px);
    }
    .woocommerce-account .woocommerce-MyAccount-navigation ul li a {
        justify-content: center;
        text-align: center;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a::after {
        content: "";
    }
    .woocommerce-account .woocommerce-MyAccount-navigation {
    width: 100%!important;
}
}

