.upe-table-wrap {
    width: 100%;
    margin: 28px 0;
    overflow-x: auto;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.upe-table {
    width: 100%;
    border-collapse: collapse;
    border: 0;
    background: #ffffff;
    color: #172033;
    font-size: 16px;
    line-height: 1.45;
}

.upe-table th,
.upe-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #e8edf3;
    text-align: left;
    vertical-align: middle;
}

.upe-table th {
    background: #123c69;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.upe-table th:last-child,
.upe-table td:last-child {
    width: 210px;
    text-align: center;
}

.upe-table tbody tr:nth-child(even) {
    background: #f7fafc;
}

.upe-table tbody tr:hover {
    background: #edf7ff;
}

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

.upe-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 142px;
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 6px;
    background: var(--wp--preset--color--primary, var(--wp--preset--color--accent, #123c69));
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
    transition: filter 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.upe-download-btn:hover,
.upe-download-btn:focus {
    color: #ffffff;
    text-decoration: none;
    filter: brightness(0.92);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.24);
    transform: translateY(-1px);
}

.upe-missing-file {
    display: inline-block;
    color: #92400e;
    font-weight: 700;
}

@media (max-width: 640px) {
    .upe-table-wrap {
        margin: 20px 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    .upe-table,
    .upe-table thead,
    .upe-table tbody,
    .upe-table th,
    .upe-table td,
    .upe-table tr {
        display: block;
    }

    .upe-table {
        border: 0;
        background: transparent;
    }

    .upe-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .upe-table tr {
        margin-bottom: 12px;
        border: 1px solid #dce3ea;
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
        overflow: hidden;
    }

    .upe-table tbody tr:nth-child(even),
    .upe-table tbody tr:hover {
        background: #ffffff;
    }

    .upe-table td {
        display: flex;
        flex-direction: column;
        gap: 7px;
        align-items: center;
        padding: 13px 14px;
        border-bottom: 1px solid #e8edf3;
        text-align: left;
    }

    .upe-table td:last-child {
        width: auto;
        text-align: left;
        border-bottom: 0;
    }

    .upe-table td::before {
        content: attr(data-label);
        width: 100%;
        color: #123c69;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0;
        text-transform: uppercase;
    }

    .upe-table td:first-child {
        font-size: 15px;
        font-weight: 700;
    }

    .upe-download-btn {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 42px;
    }
}
