.payment-dropdown {
    background: white;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid #e9ecef;
    width: 100%;
    overflow-x: auto;
    animation: dropdownSlide 0.2s ease;
}

.payment-dropdown-table {
    min-width: 340px;
}

@keyframes dropdownSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.payment-dropdown-header {
    padding: 0.6rem 0.9rem;
    font-weight: 600;
    font-size: 0.8rem;
    color: #2d3748;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.payment-dropdown-header i {
    color: var(--color-primary, #0A2B22);
}

.payment-summary {
    padding: 0.5rem 0.9rem;
}

.payment-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    padding: 0.15rem 0;
}

.payment-summary-row strong {
    color: #2d3748;
}

.payment-summary-due {
    color: #e67e22;
}

.payment-summary-due strong {
    color: #e67e22;
}

.payment-summary-credit {
    color: #6c63ff;
    font-size: 0.75rem;
    padding-top: 0.3rem;
}

.payment-summary-credit i {
    margin-right: 0.2rem;
}

.payment-breakdown-section {
    padding: 0.65rem 0.9rem 0.5rem;
    background: #f8fffe;
    border-bottom: 1px solid #e9ecef;
}

.payment-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #9ca3af;
    padding: 0.5rem 0.9rem 0.2rem;
}

.payment-section-label-mt {
    border-top: 1px solid #e9ecef;
    padding-top: 0.6rem;
    margin-top: 0.1rem;
}

.payment-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    padding: 0.18rem 0;
    color: #374151;
}

.payment-original-price {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.78rem;
}

.payment-discount-row {
    color: #16a34a;
    font-size: 0.78rem;
}

.payment-discount-label {
    font-size: 0.7rem;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 4px;
    padding: 1px 5px;
    margin-left: 4px;
}

.payment-discount-amount {
    color: #16a34a;
    font-weight: 600;
    white-space: nowrap;
}

.payment-breakdown-divider {
    height: 1px;
    background: #d1fae5;
    margin: 0.4rem 0 0.3rem;
}

.payment-breakdown-total {
    font-size: 0.85rem;
    font-weight: 700;
    color: #111827;
    padding-bottom: 0.1rem;
}

.payment-breakdown-total strong {
    color: #111827;
}

.payment-footer-summary {
    border-top: 1px solid #e9ecef;
    margin-top: 0;
}

.payment-dropdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.payment-dropdown-table thead th {
    text-align: left;
    padding: 0.4rem 0.6rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e9ecef;
}

.payment-dropdown-table tbody td {
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.payment-dropdown-table tbody tr:hover {
    background: rgba(32, 201, 151, 0.05);
}

.payment-method-cell {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.payment-dropdown-icon {
    font-size: 0.85rem;
    color: #495057;
    width: 18px;
    text-align: center;
}

.payment-dropdown-icon-img {
    height: 14px;
    width: auto;
    object-fit: contain;
}

.payment-amount-cell {
    font-weight: 600;
    color: #2d3748;
    white-space: nowrap;
}

.payment-date-cell {
    color: #6c757d;
    font-size: 0.72rem;
    white-space: nowrap;
}

.payment-status-pill {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
}

.payment-status-completed {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.payment-status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #d4a106;
}

.payment-status-canceled {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.payment-status-refunded {
    background: rgba(23, 162, 184, 0.15);
    color: #17a2b8;
}

.payment-status-superseded {
    background: rgba(156, 39, 176, 0.15);
    color: #7b1fa2;
}

.payment-status-deleted {
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
}

.payment-total-row td {
    border-top: 2px solid #e9ecef;
    border-bottom: none;
    padding-top: 0.5rem;
}

.payment-superseded-section {
    margin-top: 0.5rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.15);
    padding-top: 0.4rem;
    opacity: 0.6;
}

.payment-superseded-header {
    font-size: 0.7rem;
    color: #888;
    padding: 0.2rem 0.5rem;
    font-weight: 600;
}

.payment-superseded-table tbody td {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
}
