.payments-ledger-toolbar {
    align-items: flex-start;
    background: linear-gradient(180deg, #fff, #fbfcfd);
}

.payments-ledger-panel {
    border-color: #dfe3ea;
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.08);
}

.payments-ledger-table {
    min-width: 920px;
}

.payments-ledger-table th {
    background: #0f172a;
    color: #f8fafc;
    border-bottom: 0;
}

.payments-ledger-table td {
    vertical-align: middle;
}

.payments-ledger-table .ledger-row td {
    border-bottom-color: #edf0f4;
}

.payments-ledger-table .ledger-row:hover td {
    background: #fff8f8;
}

.ledger-date-cell {
    min-width: 122px;
}

.ledger-date-cell strong,
.ledger-date-cell span {
    display: block;
}

.ledger-date-cell span {
    margin-top: 2px;
    color: #8a93a2;
    font-size: 12px;
    font-weight: 700;
}

.ledger-entry-title {
    display: grid;
    gap: 6px;
}

.ledger-entry-title strong {
    color: #111827;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.ledger-type {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.ledger-type-invoice {
    color: #175cd3;
    background: #eaf2ff;
}

.ledger-type-cheque {
    color: #067647;
    background: #e7f6ef;
}

.ledger-category-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    color: #475467;
    background: #f2f4f7;
    font-size: 12px;
    font-weight: 800;
}

.ledger-amount {
    font-weight: 900;
    white-space: nowrap;
}

.text-right {
    text-align: right;
}

.amount-positive {
    color: #067647;
    font-weight: 850;
}

.amount-negative {
    color: #b42318;
    font-weight: 850;
}

.details-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    border: 1px solid #ffd1d6;
    border-radius: 8px;
    padding: 7px 10px;
    color: #b00010;
    background: #fff5f6;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.details-link:hover {
    color: #fff;
    background: var(--dream-red);
    border-color: var(--dream-red);
}

.cheque-detail-card {
    border-color: #dfe3ea;
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.08);
}

.cheque-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.cheque-detail-item {
    min-width: 0;
    padding: 14px;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #fbfcfd;
}

.cheque-detail-item span {
    display: block;
    color: #667085;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.cheque-detail-item strong {
    display: block;
    margin-top: 7px;
    color: #101828;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.cheque-detail-money {
    background: #fff7ed;
    border-color: #fed7aa;
}

.cheque-detail-deduction {
    background: #fff5f6;
    border-color: #ffd1d6;
}

.cheque-detail-net {
    background: #ecfdf3;
    border-color: #bbf7d0;
}

.cheque-detail-money strong,
.cheque-detail-deduction strong,
.cheque-detail-net strong {
    font-size: 22px;
}

.cheque-detail-net strong {
    color: #067647;
}

@media (max-width: 1180px) {
    .cheque-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .cheque-detail-grid {
        grid-template-columns: 1fr;
    }

    .text-right {
        text-align: left;
    }
}
