/* Donors list page */
.fundcollector-donors-wrap .search-box {
    float: right;
    margin-bottom: 10px;
}

.fundcollector-donors-table .column-name {
    width: 22%;
}

.fundcollector-donors-table .column-email {
    width: 22%;
}

.fundcollector-donors-table .column-donor-type {
    width: 10%;
}

/* Numeric columns: same idea as Donations list .column-amount (right-aligned, compact width) */
.fundcollector-donors-table .column-donation-count,
.fundcollector-donors-table .column-donation_count {
    width: 8%;
    text-align: right !important;
}

.fundcollector-donors-table .column-total-donated,
.fundcollector-donors-table .column-total_donated {
    width: 11%;
    text-align: right !important;
}

.fundcollector-donors-table .column-date-created,
.fundcollector-donors-table .column-date_created {
    width: 20%;
}

/* Desktop: breathing room before next column (mirrors fundcollector-admin.css .donations .column-amount) */
@media screen and (min-width: 769px) {
    .fundcollector-donors-table .column-donation-count,
    .fundcollector-donors-table .column-donation_count,
    .fundcollector-donors-table .column-total-donated,
    .fundcollector-donors-table .column-total_donated {
        padding-right: 1.5em !important;
    }
}

.fundcollector-donor-company {
    color: #666;
    font-size: 12px;
}

/* Donor detail page */
.fundcollector-back-link {
    text-decoration: none;
    font-size: 14px;
    color: #2271b1;
}

.fundcollector-back-link:hover {
    color: #135e96;
}

.fundcollector-donor-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid #c3c4c7;
    margin-bottom: 20px;
}

.fundcollector-donor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #4caf50;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fundcollector-donor-initials {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
}

.fundcollector-donor-header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fundcollector-donor-name {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
}

.fundcollector-donor-meta-item {
    color: #666;
    font-size: 13px;
}

.fundcollector-donor-meta-item + .fundcollector-donor-meta-item::before {
    content: "·";
    margin: 0 8px;
}

/* Two-column layout */
.fundcollector-donor-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.fundcollector-donor-sidebar {
    flex: 0 0 340px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fundcollector-donor-main {
    flex: 1;
    min-width: 0;
}

@media screen and (max-width: 960px) {
    .fundcollector-donor-content {
        flex-direction: column;
    }

    .fundcollector-donor-sidebar {
        flex: none;
        width: 100%;
    }
}

/* Cards */
.fundcollector-donor-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    padding: 16px 20px;
}

.fundcollector-donor-card h3 {
    margin: 0 0 16px 0;
    padding: 0 0 10px 0;
    border-bottom: 1px solid #f0f0f1;
    font-size: 14px;
}

/* Stats grid */
.fundcollector-donor-stats-grid {
    display: flex;
    gap: 12px;
}

.fundcollector-donor-stat {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    background: #f6f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.fundcollector-donor-stat-value {
    display: block;
    font-size: 22px;
    font-weight: 600;
    color: #4caf50;
    line-height: 1.3;
    margin-bottom: 4px;
}

.fundcollector-donor-stat-label {
    display: block;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fundcollector-donor-stats-note {
    margin: 10px 0 0;
    font-size: 11px;
    color: #888;
    font-style: italic;
}

/* Info table */
.fundcollector-donor-info-table {
    width: 100%;
    border-collapse: collapse;
}

.fundcollector-donor-info-table th,
.fundcollector-donor-info-table td {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f1;
    vertical-align: top;
}

.fundcollector-donor-info-table th {
    width: 100px;
    font-weight: 600;
    color: #1d2327;
    text-align: left;
    font-size: 13px;
}

.fundcollector-donor-info-table td {
    color: #50575e;
    font-size: 13px;
}

.fundcollector-donor-info-table tr:last-child th,
.fundcollector-donor-info-table tr:last-child td {
    border-bottom: none;
}

/* Donation status badges */
.fundcollector-donation-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.fundcollector-status-completed {
    background: #d4edda;
    color: #155724;
}

.fundcollector-status-pending {
    background: #fff3cd;
    color: #856404;
}

.fundcollector-status-failed,
.fundcollector-status-refunded {
    background: #f8d7da;
    color: #721c24;
}
