/* Dev Opus Donation Board - Frontend */
.ddb-board-wrap,
.ddb-board-wrap * {
    box-sizing: border-box;
}

.ddb-board-wrap {
    --ddb-green: #23843b;
    --ddb-text: #1f2a24;
    font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    width: 100%;
    color: var(--ddb-text);
    background: #fff;
    padding: 0;
}

.ddb-all-section {
    background: #f0f7f2;
    padding: 40px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.ddb-all-section > * {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.ddb-all-title {
    margin: 0 auto 8px;
    width: 100%;
    font-size: 34px;
    color: #000000;
    font-weight: 600;
    font-family: 'Poppins';
}

.ddb-all-subtitle {
    margin: 0 auto 18px;
    width: 100%;
    color: #323232;
    font-size: 16px;
    font-family: 'Open Sans';
}
.ddb-table-shell {
    overflow-x: auto;
    border: 1px solid #e2ebe4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(20, 55, 30, 0.04);
}

.ddb-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #273129;
}

.ddb-table thead th {
    background: #F8F8F7;
    color: #323232;
    font-weight: 600;
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid #E8E8E8;
    font-size: 18px;
    font-family: 'Poppins';
}

.ddb-table tbody td {
    padding: 18px 20px;
    border-bottom: 1px solid #E8E8E8;
    color: #323232;
    vertical-align: middle;
    font-size: 16px;
    font-family: 'Open Sans';
}

.ddb-table tbody tr:last-child td {
    border-bottom: 0;
}

.ddb-table-name {
    color: #000000;
    font-weight: 400;
    font-size: 16px;
    font-family: 'Poppins';
}

.ddb-table-amount {
    color: #2E7D32;
    font-weight: 500;
    font-size: 16px;
    font-family: 'Poppins';
}

.ddb-empty {
    padding: 18px 20px;
    border-radius: 10px;
    background: #f4faf5;
    border: 1px solid #dcefe0;
    color: #415048;
    font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

table,
td,
th {
    border: none;
}

/* Load more / row limit */
.ddb-row-hidden {
    display: none !important;
}

.ddb-load-more-wrap {
    max-width: 1500px;
    margin: 28px auto 0;
    text-align: center;
}

.ddb-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 28px;
    border: 1px solid #2E7D32;
    border-radius: 999px;
    background: #2E7D32;
    color: #ffffff;
    font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(46, 125, 50, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.ddb-load-more-btn:hover,
.ddb-load-more-btn:focus {
    background: #23843b;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(46, 125, 50, 0.24);
    outline: none;
}

.ddb-load-more-count {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .ddb-board-wrap {
        padding: 0;
    }

    .ddb-all-section {
        background: #f0f7f2;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding: 20px;
    }

    .ddb-all-title {
        font-size: 20px;
        text-align: center;
    }

    .ddb-all-subtitle {
        font-size: 14px;
        text-align: center;
    }

    .ddb-table {
        min-width: 0;
        font-size: 12px;
    }

    .ddb-table thead {
        display: none;
    }

    .ddb-table tbody tr {
        display: block;
        border-bottom: 1px solid #edf1ee;
        padding: 10px 0;
    }

    .ddb-table tbody tr:last-child {
        border-bottom: 0;
    }

    .ddb-table tbody td {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        padding: 10px 16px;
        border: 0;
        text-align: right;
    }

    .ddb-table tbody td::before {
        content: attr(data-label);
        color: #000000;
        font-weight: 500;
        text-align: left;
        font-family: 'Poppins';
    }

    .ddb-load-more-wrap {
        margin-top: 22px;
    }

    .ddb-load-more-btn {
        width: 100%;
        min-height: 46px;
        font-size: 14px;
    }
}


/* Align title/subtitle with table */
.ddb-all-title {
    margin: 0 auto 8px !important;
    width: 100%;
}

.ddb-all-subtitle {
    margin: 0 auto 18px !important;
    width: 100%;
}
