﻿/* Donation page theme alignment */
.donation-section {
    background-color: #ffffff;
}

.donation-intro {
    font-size: 16px;
    color: #344c5d;
}

.donation-card {
    background: #ffffff;
    border: 1px solid #e6eef5;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 24px;
}

    .donation-card h4 {
        margin-bottom: 16px;
        color: #0d2b52;
    }

.donation-table {
    width: 100%;
}

    .donation-table .table {
        margin-bottom: 0;
    }

    .donation-table thead th {
        background-color: #0d6efd;
        color: #ffffff;
        text-transform: uppercase;
        font-weight: 600;
        white-space: nowrap;
    }

    .donation-table tbody td {
        vertical-align: middle;
        color: #1f3344;
    }

    .donation-table .table-hover tbody tr:hover {
        background-color: #f3f6fb;
    }

/* Generic table theme for recruitment and tenders */
.themed-table.table {
    border: 1px solid #e6eef5;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
}

.themed-table thead th {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
    font-size: 13px;
    letter-spacing: .02em;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}

.themed-table tbody tr:nth-child(even) {
    background-color: #f9fbff;
}

.themed-table tbody td,
.themed-table tbody th {
    color: #1f3344;
    vertical-align: middle;
    word-break: break-word;
    white-space: normal;
    padding: 10px 12px;
}

.table-card {
    background: #ffffff;
    border: 1px solid #e6eef5;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    padding: 16px;
}

    /* Utility: responsive scroll with sticky header */
    .table-card.table-responsive {
        overflow-x: auto;
    }

.themed-table.table-hover tbody tr:hover {
    background-color: #eef5ff;
}

/* Action column: keep the View button on one line and consistent size */
.themed-table tbody td:last-child {
    white-space: nowrap;
}

    .themed-table tbody td:last-child a {
        display: inline-block;
        min-width: 72px; /* prevent wrap like 'Vi' + 'ew' */
        text-align: center;
        white-space: nowrap;
        border-radius: 6px;
    }

/* Optional badge style inside table cells */
.table-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e9f2ff;
    color: #0d6efd;
    font-size: 12px;
    font-weight: 600;
}

.donation-note {
    background: #f0f7ff;
    border-left: 3px solid #0d6efd;
    padding: 12px 14px;
    border-radius: 6px;
    margin-top: 10px;
}

/* Responsive */
.donation-table.table-responsive {
    overflow-x: auto;
}
