.ccid-table {

}

body .is-layout-constrained .ccid-table-wrap {
    max-width: unset;
}


.ccid-table .dt-column-title {
    line-height: 1.125rem;
    letter-spacing: -0.2px;
    display: block;
    font-size: 0.9em;
    padding-right: 16px;
}

.ccid-table-wrap div.dt-buttons > .dt-button {
    line-height: 1;
    padding: 0.5em 1em;
    margin-bottom: 0;
}


.ccid-table-wrap .dt-layout-cell.dt-start {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.ccid-table-wrap .dt-layout-cell.dt-start .dt-length label {
    margin-right: 4px;
}

.ccid-table-wrap .dt-layout-cell.dt-start .dt-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.ccid-table-wrap .dt-layout-cell.dt-start .dt-buttons::before {
    content: 'Download:';
    margin-right: 4px;
}


table.dataTable.ccid-table > tbody > tr > th,
table.dataTable.ccid-table > tbody > tr > td,
.ccid-table-wrap .dt-info {
    padding: 6px;
}

.ccid-table-wrap.wp-block-table.is-style-stripes {
    border-bottom: 0;
}

.ccid-table td {
    font-size: 1rem;
}

.wp-block-table.ccid-table-wrap thead {
    border-bottom: none;
    background-color: var(--wp--preset--color--base);
}

table.ccid-table.fixedHeader-floating,
table.ccid-table.fixedHeader-locked {
    background-color: var(--wp--preset--color--base);
}

table.dataTable.ccid-table > thead > tr > th,
table.dataTable.ccid-table > thead > tr > td {
    border-bottom: 0;
}

.ccid-table-wrap .dt-scroll-headInner,
table.dataTable.ccid-table.fixedHeader-floating {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.ccid-table-wrap div.dt-container.dt-empty-footer .dt-scroll-body {
    border-bottom: 0;
}


/* .ccid-table-wrap .dt-layout-table > .dt-layout-cell {
    max-width: 100%;
    overflow-x: auto;
} */

.ccid-table-wrap div.dt-container .dt-search {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
}

.ccid-table-wrap div.dt-container .dt-search input {
    padding: 4px 6px;
}

.ccid-table-wrap div.dt-buttons > .dt-button.ccid-table-clear-btn {
    padding: 0.5em 0.5em;
    margin-right: 8px;
}

.ccid-table-clear-btn--hidden {
    visibility: hidden;
}


.ccid-table-wrap .dt-info,
table.dataTable.ccid-table th.dt-empty,
table.dataTable.ccid-table td.dt-empty {
    text-align: left;
    font-size: 0.8rem;
    opacity: 0.8;
}

table.dataTable.ccid-table th.dt-empty,
table.dataTable.ccid-table td.dt-empty {
    font-weight: bold;
    padding: 12px 6px;
}

table.dataTable.ccid-table th.dt-type-numeric,
table.dataTable.ccid-table th.dt-type-date,
table.dataTable.ccid-table td.dt-type-numeric,
table.dataTable.ccid-table td.dt-type-date {
    text-align: left;
}

.ccid-table-wrap .dt-layout-table:has(tbody > tr:only-child > td:only-child.dt-empty) + .dt-layout-row:has(.dt-paging) {
    display: none;
}


.ccid-table-text-filter-cell {
    padding-bottom: 0;
}

.ccid-table-text-filter-cell input {
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 4px 6px;
    opacity: 1;
    transition: opacity 0.2s;
}


.ccid-table-text-filter-cell input:empty {
    opacity: 0.6;
}

.ccid-table-text-filter-cell input:hover,
.ccid-table-text-filter-cell input:focus {
    opacity: 1;
}


.ccid-table-select-filter-cell select {
    min-width: 100%;
    max-width: 200px;
    box-sizing: border-box;
    text-align: left;
    padding: 4px 6px;
    opacity: 1;
    transition: opacity 0.2s;
}

.ccid-table-select-filter-cell select:has(option[value=""]:checked) {
    text-align: center;
}

.ccid-table-select-filter-cell select:not(:hover):not(:focus):has(option[value=""]:checked) {
    opacity: 0.5;
}

.ccid-table-select-filter-cell select:focus,
.ccid-table-select-filter-cell select:hover {
    opacity: 1;
}

table.dataTable.ccid-table > thead > tr > th,
table.dataTable.ccid-table > thead > tr > td {
    padding: 4px 8px;
}

table.dataTable.ccid-table > thead > tr:first-child > th,
table.dataTable.ccid-table > thead > tr:first-child > td {
    padding-top: 2px;
}
table.dataTable.ccid-table > thead > tr:last-child > th,
table.dataTable.ccid-table > thead > tr:last-child > td {
    padding-bottom: 12px;
}


table.dataTable thead > tr > th.dt-orderable-asc span.dt-column-order,
table.dataTable thead > tr > th.dt-orderable-desc span.dt-column-order,
table.dataTable thead > tr > th.dt-ordering-asc span.dt-column-order,
table.dataTable thead > tr > th.dt-ordering-desc span.dt-column-order,
table.dataTable thead > tr > td.dt-orderable-asc span.dt-column-order,
table.dataTable thead > tr > td.dt-orderable-desc span.dt-column-order,
table.dataTable thead > tr > td.dt-ordering-asc span.dt-column-order,
table.dataTable thead > tr > td.dt-ordering-desc span.dt-column-order {
    right: 8px;
}