/* =========================================================
   ACCOUNTING TABLE
   ========================================================= */

.payment-method-row td:nth-child(2) {
    padding-right: 28px;
    opacity: 0.9;
}

.table .debit {
    color: #198754;
    font-weight: 600;
}

.table .credit {
    color: #dc3545;
    font-weight: 600;
}

.table .balance {
    font-weight: 700;
    font-size: 15px;
}

.table .balance-debit {
    color: #dc3545;
}

.table .balance-credit {
    color: #198754;
}

.table tfoot tr {
    background: #f9fafb;
}

.table tfoot tr:first-child {
    border-top: 2px solid #dee2e6;
}

.table tfoot td {
    padding-top: 12px;
    padding-bottom: 12px;
}

.payment-method-row {
    background-color: #f3f4f6;
}

.payment-method-row td {
    font-style: italic;
}

/* =========================================================
   STATEMENT CONTAINER
   ========================================================= */

.statement-container {
    background: #fff;
    border-radius: 6px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    width: 100%;
}

.statement-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* =========================================================
   FILTERS CARD
   ========================================================= */

.filters-card {
    background: linear-gradient(180deg, #fafbfc, #f4f6f9);
    border-radius: 10px;
    padding: 18px 20px 20px;
    margin-bottom: 22px;
    border: 1px solid #e1e5eb;
}

.filter-group {
    margin-bottom: 16px;
}

.filter-label,
.filter-label-inline {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

/* =========================================================
   DATE RANGE
   ========================================================= */

.date-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-prefix {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}

.date-range input {
    min-width: 160px;
}

.date-separator {
    color: #9ca3af;
    font-weight: 600;
}

.btn-reset {
    background: #e5e7eb;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 14px;
    cursor: pointer;
    color: #374151;
}

.btn-reset:hover {
    background: #d1d5db;
}

/* =========================================================
   SUPPLIER SELECT
   ========================================================= */

.supplier-group-inline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.supplier-group-inline select {
    min-width: 260px;
    max-width: 320px;
}

/* =========================================================
   ACTION BUTTONS
   ========================================================= */

.filter-actions {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-search {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

.btn-search:hover:not(:disabled) {
    background: #1d4ed8;
}

.btn-search:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.btn-print {
    background: #374151;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

.btn-print:hover:not(:disabled) {
    background: #1f2937;
}

.btn-print:disabled {
    opacity: .4;
    cursor: not-allowed;
}

/* =========================================================
   RTL / LTR
   ========================================================= */

[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="ltr"] {
    direction: ltr;
    text-align: left;
}
