/* Payment Templates Common Styles */
.workflow-header {
    background: white;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.selected-donor {
    margin-bottom: 2rem;
}

.donor-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.donor-avatar {
    width: 40px;
    height: 40px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.quick-actions {
    margin-bottom: 2rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.back-button:hover {
    background: #f1f5f9;
    color: #1e293b;
}

/* Receipt Content Styles */
.receipt-container {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.receipt-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.receipt-header h1 {
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.receipt-number {
    color: #64748b;
    font-size: 0.875rem;
}

.donation-details {
    margin-bottom: 2rem;
}

.info-section {
    margin-bottom: 2rem;
}

.info-section h2 {
    color: #1e293b;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.info-grid {
    display: grid;
    gap: 1rem;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.info-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
}

.label {
    color: #64748b;
    font-weight: 500;
}

.value {
    color: #1e293b;
}

/* Projects Table Styles */
.projects-table {
    overflow-x: auto;
    margin: 20px 0;
}

.projects-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px; /* Ensures table doesn't get too cramped */
}

.projects-table th,
.projects-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.projects-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}


.projects-table tfoot tr {
    font-weight: bold;
    background-color: #f8f9fa;
}

.projects-table .total-label {
    text-align: right;
}

.projects-table .total-value {
    font-weight: bold;
}

.projects-table tbody tr:hover {
    background: #f8fafc;
}

.total-label {
    text-align: right;
    font-weight: 600;
    color: #1e293b;
}

.total-value {
    font-weight: 600;
    color: #10b981;
}




.date-update-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.update-date-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.update-date-btn:hover {
    background: #2563eb;
}

.donation-details-form .form-control {
    width: calc(100% - 40px);
}





/* Payment Summary Styles */
.payment-summary {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row .amount {
    font-weight: 600;
    color: #10b981;
}

.summary-row .status {
    font-weight: 500;
    color: #eab308;
}

/* Action Buttons */
.action-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-confirm {
    background: #10b981;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-confirm:hover {
    background: #059669;
}

.btn-back {
    background: white;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-back:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Main Container Layout */
.main-container {
    display: grid;
    grid-template-columns: 250px minmax(600px, 1fr) 300px;
    gap: 2rem;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .sidebar {
        display: none;
    }

    .info-row {
        grid-template-columns: 120px 1fr;
    }
}