* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


.donordetail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Donor Profile Header */
.donor-profile-header {
    background: linear-gradient(135deg, #183d4c 0%, #2b5c6b 100%);
    color: white;
    padding: 40px 0 50px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.donor-profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.profile-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 25px;
    align-items: center;
}

.donor-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.avatar-initial {
    font-size: 28px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.donor-main-info {
    min-width: 0;
}

.donor-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.donor-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 15px;
    font-weight: 400;
}

.donor-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.meta-item .icon {
    opacity: 0.8;
}

.donor-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    min-width: 280px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Donation History Section */
.donation-history {
    padding: 40px 0;
    background: white;
    width: 100%;
    overflow-x: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: #183d4c;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #183d4c;
    border-radius: 2px;
}

.filter-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.year-filter,
.purpose-filter {
    padding: 8px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 130px;
}

.year-filter:focus,
.purpose-filter:focus {
    outline: none;
    border-color: #183d4c;
    box-shadow: 0 0 0 3px rgba(24, 61, 76, 0.1);
}

/* Donation Timeline */
.donation-timeline {
    position: relative;
    margin: 30px 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.donation-timeline::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #183d4c, #2b5c6b);
    border-radius: 2px;
}

.donation-entry {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    position: relative;
    animation: slideInUp 0.6s ease-out;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.donation-entry:last-child {
    margin-bottom: 0;
}

.donation-date {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.date-circle {
    width: 56px;
    height: 56px;
    background: white;
    border: 2px solid #183d4c;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    padding: 5px;
    margin-left: 8px;
}

.date-circle .day {
    font-size: 1.1rem;
    font-weight: 700;
    color: #183d4c;
    line-height: 1;
}

.date-circle .month {
    font-size: 0.65rem;
    font-weight: 600;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    margin: 1px 0;
}

.date-circle .year {
    font-size: 0.6rem;
    font-weight: 500;
    color: #6b7280;
    line-height: 1;
}

.donation-content {
    flex: 1;
    margin-top: -3px;
    min-width: 0;
    max-width: 100%;
}

.donation-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 15px 20px 4px 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.donation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #183d4c, #2b5c6b);
}

.donation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.donation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
}

.donation-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    /* flex: 1; */
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.donation-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: #183d4c;
    text-align: right;
    flex-shrink: 0;
    white-space: nowrap;
    min-width: fit-content;
}

.donation-details {
    margin-bottom: 12px;
}

.donation-details p {
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #4b5563;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.donation-details p:last-child {
    margin-bottom: 0;
}

.donation-details span:first-child {
    font-weight: 500;
    min-width: 100px;
    flex-shrink: 0;
}

.donation-details span:last-child {
    font-weight: 600;
    color: #1f2937;
    /* text-align: right; */
}

.donation-status {
    display: flex;
    justify-content: flex-end;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Status indicator for table cells */
.status-indicator {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-block;
    white-space: nowrap;
}

.status-indicator.success {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-indicator.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-indicator.failed {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Donation Summary */
.donation-summary {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.summary-card {
    background: linear-gradient(135deg, #f0f8ff 0%, white 100%);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #183d4c;
}

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.summary-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
    display: block;
}

.summary-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}

.summary-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #183d4c;
    margin-bottom: 3px;
}

.summary-count {
    font-size: 0.85rem;
    color: #4b5563;
    font-weight: 500;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Hidden class for filtering */
.hidden {
    display: none !important;
}

/* Horizontal Table Design - Added without changing existing classes */
.horizontal-table-wrapper {
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.02);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.horizontal-table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.horizontal-table-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.horizontal-table-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.horizontal-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.horizontal-details-table {
    width: 100%;
    min-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.table-header-row {
    background: linear-gradient(135deg, #183d4c 0%, #2b5c6b 50%, #345a6a 100%);
    color: white;
    position: relative;
}

.table-header-row::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #1e40af, #3b82f6);
}

.table-header-cell {
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1.3;
    position: relative;
    transition: all 0.3s ease;
}

.table-header-cell:hover {
    background: rgba(255, 255, 255, 0.1);
}

.table-header-cell:last-child {
    border-right: none;
}

.table-header-icon {
    display: block;
    margin: 0 auto 4px;
    font-size: 1rem;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.table-data-row {
    transition: all 0.3s ease;
    background: white;
}

.table-data-row:hover {
    background: linear-gradient(145deg, #f8fafc 0%, #ffffff 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.table-data-cell {
    padding: 14px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
    border-right: 1px solid #e5e7eb;
    white-space: nowrap;
    vertical-align: middle;
    word-break: break-word;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    transition: all 0.3s ease;
}

.table-data-cell:hover {
    background: rgba(24, 61, 76, 0.03);
    color: #183d4c;
}

.table-data-cell:last-child {
    border-right: none;
}

.table-header-row .table-header-cell:first-child {
    border-top-left-radius: 6px;
}

.table-header-row .table-header-cell:last-child {
    border-top-right-radius: 6px;
}

.table-data-row .table-data-cell:first-child {
    border-bottom-left-radius: 6px;
}

.table-data-row .table-data-cell:last-child {
    border-bottom-right-radius: 6px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .profile-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }

    .donor-stats {
        justify-self: center;
        min-width: auto;
        max-width: 350px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .donordetail-container {
        padding: 0 16px;
        max-width: 100vw;
    }

    .container {
        padding: 0 16px;
    }

    .donor-profile-header {
        padding: 30px 0 40px;
    }

    .donor-title {
        font-size: 1.7rem;
    }

    .donor-meta {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .donor-stats {
        grid-template-columns: 1fr;
        max-width: 220px;
        gap: 12px;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .filter-controls {
        flex-direction: column;
        gap: 10px;
    }

    .year-filter,
    .purpose-filter {
        width: 100%;
    }

    .donation-timeline {
        overflow-x: visible;
        width: 100%;
    }

    .donation-timeline::before {
        left: 30px;
    }

    .donation-entry {
        gap: 15px;
        margin-bottom: 16px;
        max-width: calc(100vw - 32px);
        overflow: visible;
    }

    .donation-content {
        flex: 1;
        min-width: 0;
        max-width: calc(100% - 70px);
    }

    .date-circle {
        width: 55px;
        height: 55px;
        padding: 3px;
        flex-shrink: 0;
    }

    .date-circle .day {
        font-size: 0.95rem;
    }

    .date-circle .month {
        font-size: 0.55rem;
    }

    .date-circle .year {
        font-size: 0.5rem;
    }

    .donation-card {
        padding: 16px;
        border-radius: 10px;
        margin-bottom: 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .donation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 14px;
        width: 100%;
    }

    .donation-title {
        font-size: 1.05rem;
        line-height: 1.4;
        margin-bottom: 0;
        width: 100%;
        word-break: break-word;
    }

    .donation-amount {
        text-align: left;
        font-size: 1.2rem;
        color: #183d4c;
        align-self: stretch;
        width: 100%;
    }

    /* Responsive styles for horizontal table */
    .horizontal-table-wrapper {
        padding: 8px;
        border-radius: 10px;
        background: linear-gradient(145deg, #f9fafb 0%, #f3f4f6 100%);
    }

    .horizontal-details-table {
        min-width: 500px;
        font-size: 0.8rem;
    }

    .table-header-cell {
        padding: 10px 12px;
        font-size: 0.7rem;
        letter-spacing: 0.3px;
    }

    .table-header-icon {
        font-size: 0.9rem;
        margin-bottom: 3px;
    }

    .table-data-cell {
        padding: 10px 12px;
        font-size: 0.75rem;
        max-width: 120px;
        line-height: 1.3;
    }

    .summary-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .donor-profile-header {
        padding: 25px 0 35px;
        margin-top: 60px;
    }

    .donordetail-container {
        padding: 0 12px;
        max-width: 100vw;
    }

    .donation-timeline {
        margin: 20px 0;
        width: 100%;
        overflow-x: visible;
    }

    .donation-entry {
        gap: 10px;
        margin-bottom: 14px;
        max-width: calc(100vw - 24px);
        overflow: visible;
    }

    .donation-content {
        flex: 1;
        min-width: 0;
        max-width: calc(100% - 55px);
    }

    .avatar-circle {
        width: 75px;
        height: 75px;
    }

    .avatar-initial {
        font-size: 22px;
    }

    .donor-title {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .donor-subtitle {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .stat-card {
        padding: 14px;
        border-radius: 10px;
    }

    .stat-number {
        font-size: 1.3rem;
        margin-bottom: 4px;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .donation-details p {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
        margin-bottom: 8px;
    }

    .donation-details span:first-child {
        font-weight: 600;
        font-size: 0.85rem;
        color: #4b5563;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .donation-details span:last-child {
        text-align: left;
        margin-left: 0;
        font-size: 0.9rem;
        font-weight: 700;
        color: #1f2937;
        padding: 2px 0;
    }

    /* Mobile responsive styles for horizontal table */
    .horizontal-table-wrapper {
        padding: 6px;
        background: linear-gradient(145deg, #fafbfc 0%, #f5f6f8 100%);
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }

    .horizontal-table-wrapper::before {
        content: '← Scroll horizontally to see more →';
        display: block;
        text-align: center;
        font-size: 0.65rem;
        color: #64748b;
        margin-bottom: 4px;
        font-weight: 500;
        opacity: 0.8;
    }

    .horizontal-details-table {
        min-width: 450px;
        font-size: 0.75rem;
        border-radius: 6px;
    }

    .table-header-cell {
        padding: 8px 10px;
        font-size: 0.65rem;
        line-height: 1.2;
        letter-spacing: 0.2px;
    }

    .table-header-icon {
        font-size: 0.8rem;
        margin-bottom: 2px;
    }

    .table-data-cell {
        padding: 8px 10px;
        font-size: 0.7rem;
        max-width: 100px;
        line-height: 1.3;
    }

    /* Enhanced mobile scroll indicator */
    .horizontal-table-wrapper {
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 transparent;
    }

    .horizontal-table-wrapper::-webkit-scrollbar {
        height: 6px;
    }

    .horizontal-table-wrapper::-webkit-scrollbar-track {
        background: rgba(203, 213, 225, 0.3);
        border-radius: 3px;
    }

    .horizontal-table-wrapper::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 3px;
    }

    .donation-timeline::before {
        left: 25px;
    }

    .donation-entry {
        gap: 10px;
        margin-bottom: 14px;
    }

    .date-circle {
        width: 50px;
        height: 50px;
        padding: 2px;
        border: 1.5px solid #183d4c;
    }

    .date-circle .day {
        font-size: 0.85rem;
        font-weight: 800;
    }

    .date-circle .month {
        font-size: 0.5rem;
        margin: 0.5px 0;
    }

    .date-circle .year {
        font-size: 0.45rem;
    }

    /* Enhanced donation card improvements for mobile */
    .donation-card {
        padding: 14px;
        border-radius: 8px;
        margin-bottom: 0;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        background: #fefefe;
    }

    .donation-card::before {
        height: 4px;
        background: linear-gradient(90deg, #183d4c, #2b5c6b, #345a6a);
    }

    .donation-header {
        margin-bottom: 12px;
        gap: 8px;
    }

    .donation-title {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 0;
        font-weight: 700;
    }

    .donation-amount {
        font-size: 1.15rem;
        font-weight: 800;
        background: linear-gradient(135deg, #183d4c, #2b5c6b);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .donation-content {
        margin-top: -2px;
    }

    .donation-status {
        margin-top: 12px;
        justify-content: flex-start;
    }

    .status-badge {
        padding: 6px 12px;
        font-size: 0.7rem;
        border-radius: 12px;
        font-weight: 700;
    }
}

/* Extra small screens (iPhone SE, small phones) */
@media (max-width: 375px) {
    .donordetail-container {
        padding: 0 12px;
    }

    .donor-profile-header {
        padding: 20px 0 30px;
        margin-top: 50px;
    }

    .avatar-circle {
        width: 65px;
        height: 65px;
    }

    .avatar-initial {
        font-size: 20px;
    }

    .donor-title {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .donor-subtitle {
        font-size: 0.85rem;
    }

    .stat-card {
        padding: 12px;
        border-radius: 8px;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .section-header h2 {
        font-size: 1.3rem;
    }

    .donation-timeline::before {
        left: 20px;
    }

    .donation-entry {
        gap: 8px;
        margin-bottom: 12px;
    }

    .date-circle {
        width: 40px;
        height: 40px;
        padding: 1px;
        border: 1px solid #183d4c;
    }

    .date-circle .day {
        font-size: 0.75rem;
        font-weight: 800;
    }

    .date-circle .month {
        font-size: 0.45rem;
        margin: 0;
    }

    .date-circle .year {
        font-size: 0.4rem;
    }

    .donation-card {
        padding: 12px;
        border-radius: 6px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    }

    .donation-header {
        margin-bottom: 10px;
        gap: 6px;
    }

    .donation-title {
        font-size: 0.95rem;
        line-height: 1.2;
        font-weight: 600;
    }

    .donation-amount {
        font-size: 1.1rem;
        font-weight: 700;
    }

    .donation-details span:first-child {
        font-size: 0.8rem;
    }

    .donation-details span:last-child {
        font-size: 0.85rem;
        font-weight: 600;
    }

    .horizontal-table-wrapper::before {
        content: '← Swipe to view all details →';
        font-size: 0.6rem;
        padding: 2px 0;
        margin-bottom: 3px;
    }

    .horizontal-details-table {
        min-width: 350px;
        font-size: 0.7rem;
    }

    .table-header-cell {
        padding: 6px 8px;
        font-size: 0.6rem;
        line-height: 1.1;
    }

    .table-header-icon {
        font-size: 0.75rem;
        margin-bottom: 1px;
    }

    .table-data-cell {
        padding: 6px 8px;
        font-size: 0.65rem;
        max-width: 80px;
        line-height: 1.2;
    }

    .status-badge {
        padding: 4px 10px;
        font-size: 0.65rem;
        border-radius: 10px;
    }
}

/* Ultra small screens (Galaxy Fold, etc.) */
@media (max-width: 320px) {
    .donordetail-container {
        padding: 0 10px;
    }

    .donor-title {
        font-size: 1.2rem;
    }

    .donation-card {
        padding: 10px;
    }

    .donation-title {
        font-size: 0.9rem;
    }

    .donation-amount {
        font-size: 1rem;
    }

    .horizontal-details-table {
        min-width: 320px;
        font-size: 0.65rem;
    }

    .table-header-cell {
        padding: 5px 6px;
        font-size: 0.55rem;
    }

    .table-data-cell {
        padding: 5px 6px;
        font-size: 0.6rem;
        max-width: 70px;
    }
}