.saa-cp-page {
    color: #30343b;
}

.saa-cp-filter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 0 32px;
}

.saa-cp-filter-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 7px;
    background: #ddd;
    color: #30343b;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.saa-cp-filter-nav a:hover,
.saa-cp-filter-nav a:focus-visible,
.saa-cp-filter-nav a.active {
    background: #17624b;
    color: #fff;
}

.saa-cp-filter-nav a:focus-visible {
    outline: 3px solid rgba(23, 98, 75, .3);
    outline-offset: 2px;
}

.saa-cp-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #dfe3e6;
    border-radius: 4px;
    background: #fff;
}

.saa-cp-table {
    width: 100%;
    min-width: 2050px;
    margin: 0;
    border-collapse: collapse;
    font-size: .9rem;
}

.saa-cp-table th,
.saa-cp-table td {
    padding: 14px 12px;
    border-right: 1px solid #e3e6e8;
    border-bottom: 1px solid #e3e6e8;
    text-align: left;
    vertical-align: top;
}

.saa-cp-table th:last-child,
.saa-cp-table td:last-child {
    border-right: 0;
}

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

.saa-cp-table th {
    background: #343a40;
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.35;
}

.saa-cp-table tbody tr:nth-child(even) {
    background: #f2f5f4;
}

.saa-cp-table tbody tr:hover {
    background: #e5efeb;
}

.saa-cp-download-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 28px;
}

.saa-cp-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 22px;
    border: 2px solid #176b50;
    border-radius: 6px;
    background: #176b50;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color .2s ease, color .2s ease;
}

.saa-cp-download-button:hover,
.saa-cp-download-button:focus {
    background: #fff;
    color: #176b50 !important;
}

.saa-cp-table th:nth-child(1) { min-width: 180px; }
.saa-cp-table th:nth-child(2) { min-width: 230px; }
.saa-cp-table th:nth-child(3) { min-width: 170px; }
.saa-cp-table th:nth-child(4) { min-width: 155px; }
.saa-cp-table th:nth-child(5) { min-width: 210px; }
.saa-cp-table th:nth-child(6) { min-width: 300px; }
.saa-cp-table th:nth-child(7),
.saa-cp-table th:nth-child(8) { min-width: 145px; }
.saa-cp-table th:nth-last-child(5),
.saa-cp-table th:nth-last-child(4) { min-width: 125px; }
.saa-cp-table th:nth-last-child(3) { min-width: 180px; }
.saa-cp-table th:nth-last-child(2) { min-width: 90px; }
.saa-cp-table th:last-child { min-width: 85px; text-align: center; }

.saa-cp-file-cell {
    text-align: center !important;
}

.saa-cp-file-cell a,
.saa-cp-file-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 4px;
    color: #17624b;
    text-decoration: none;
}

.saa-cp-file-placeholder {
    border: 1px solid #c9cecc;
    background: #eceeed;
    color: #7a807d;
    cursor: not-allowed;
}

.saa-cp-file-cell a:hover,
.saa-cp-file-cell a:focus-visible {
    background: #17624b;
    color: #fff;
}

.saa-cp-empty {
    padding: 20px;
    border: 1px solid #dfe3e6;
    background: #f7f8f8;
}

.saa-cp-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 28px 0 0;
}

.saa-cp-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #d4d8d6;
    border-radius: 5px;
    background: #eee;
    color: #30343b;
    font-weight: 600;
    text-decoration: none;
}

.saa-cp-pagination a.page-numbers:hover,
.saa-cp-pagination a.page-numbers:focus-visible,
.saa-cp-pagination .page-numbers.current {
    border-color: #17624b;
    background: #17624b;
    color: #fff;
}

.saa-cp-pagination a.page-numbers:focus-visible {
    outline: 3px solid rgba(23, 98, 75, .3);
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .saa-cp-filter-nav {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .saa-cp-filter-nav a {
        justify-content: center;
        text-align: center;
    }
}
