/* Payments Page Styles */

.payments-page {
    background: var(--content-bg);
    min-height: 100vh;
}

.payments-header {
    background: white;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.payments-header h1 {
    font-size: 20px;
    font-weight: 500;
    color: #212121;
    margin: 0;
    flex: 1;
}

.export-btn {
    background: none;
    border: none;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.export-btn:hover {
    background-color: rgba(0,0,0,0.05);
}

.payments-content {
    padding: 16px;
}

.payment-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 12px;
    color: #757575;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
    color: #212121;
}

.payments-controls {
    background: white;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.filter-group label {
    font-size: 13px;
    color: #757575;
    font-weight: 500;
    white-space: nowrap;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    flex: 1;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.sort-order-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    color: #333;
    font-size: 18px;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sort-order-btn:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
}

.payments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.no-payments {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
}

.no-payments i {
    color: #ddd;
    margin-bottom: 20px;
}

.no-payments p {
    font-size: 16px;
    color: #999;
}

.payment-card {
    background: white;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.payment-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.payment-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.payment-info {
    flex: 1;
    min-width: 0;
}

.payment-title {
    font-size: 15px;
    font-weight: 500;
    color: #212121;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.payment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.payment-type,
.payment-kasse {
    font-size: 12px;
    color: #757575;
    display: flex;
    align-items: center;
    gap: 4px;
}

.payment-type i,
.payment-kasse i {
    font-size: 11px;
}

.payment-date {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

.payment-date i {
    font-size: 11px;
}

.payment-transaction-id {
    font-size: 11px;
    color: #bbb;
    margin-top: 4px;
    font-family: monospace;
    display: flex;
    align-items: center;
    gap: 4px;
}

.payment-amount {
    text-align: right;
    flex-shrink: 0;
}

.amount-value {
    font-size: 18px;
    font-weight: 600;
    color: #212121;
}

.amount-currency {
    font-size: 12px;
    color: #757575;
    margin-top: 2px;
}

.payment-action {
    color: #bbb;
    font-size: 18px;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .payments-controls {
        flex-wrap: wrap;
    }
    
    .filter-group {
        flex-basis: calc(50% - 6px);
    }
    
    .sort-order-btn {
        flex-basis: 100%;
        width: 100%;
    }
    
    .payment-stats {
        grid-template-columns: 1fr;
    }
}
