/* Tables that already have the site's editor-table class use the site's stylesheet. */
:where(.ch-staff-section, body.ch-staff-table-editor)
    table:where(:not(.vyturio-redaktoriaus-lentele, .silt-table, .silt-category, .ch-reports,
        [role="presentation"], [role="none"])) {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-collapse: collapse;
    border-spacing: 0;
    border-radius: 0;
    box-shadow: none;
    background-color: #fff;
    color: #474747;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    text-align: start;
}

:where(.ch-staff-section, body.ch-staff-table-editor)
    table:where(:not(.vyturio-redaktoriaus-lentele, .silt-table, .silt-category, .ch-reports,
        [role="presentation"], [role="none"])) > :is(thead, tbody, tfoot) > tr > :is(td, th) {
    border: 1px solid #e4e4e4;
    border-radius: 0;
    padding: 10px;
    color: #474747;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    vertical-align: middle;
}
:where(.ch-staff-section, body.ch-staff-table-editor)
    table:where(:not(.vyturio-redaktoriaus-lentele, .silt-table, .silt-category, .ch-reports,
        [role="presentation"], [role="none"])) > :is(tbody, tfoot) > tr > td:not([data-mce-selected]) {
    background-color: #fff;
}

/* A row containing only header cells does not count as a data row. */
:is(.ch-staff-section, body.mce-content-body.ch-staff-table-editor)
    table:where(:not(.vyturio-redaktoriaus-lentele, .silt-table, .silt-category, .ch-reports,
        [role="presentation"], [role="none"])) > tbody > tr:nth-child(odd of :has(> td)) > td:not([data-mce-selected]) {
    background-color: #f8fcf9;
}

:where(.ch-staff-section, body.ch-staff-table-editor)
    table:where(:not(.vyturio-redaktoriaus-lentele, .silt-table, .silt-category, .ch-reports,
        [role="presentation"], [role="none"])) > :is(thead, tbody, tfoot) > tr > th,
:where(.ch-staff-section, body.ch-staff-table-editor)
    table:where(:not(.vyturio-redaktoriaus-lentele, .silt-table, .silt-category, .ch-reports,
        [role="presentation"], [role="none"])) > thead > tr > td {
    padding: 14px 12px;
    color: #303030;
    font-weight: 700;
    text-align: start;
}
:where(.ch-staff-section, body.ch-staff-table-editor)
    table:where(:not(.vyturio-redaktoriaus-lentele, .silt-table, .silt-category, .ch-reports,
        [role="presentation"], [role="none"])) > :is(thead, tbody, tfoot) > tr > th:not([data-mce-selected]),
:where(.ch-staff-section, body.ch-staff-table-editor)
    table:where(:not(.vyturio-redaktoriaus-lentele, .silt-table, .silt-category, .ch-reports,
        [role="presentation"], [role="none"])) > thead > tr > td:not([data-mce-selected]) {
    background-color: var(--silt-category-tint, #f1f8f2);
}
:where(.ch-staff-section, body.ch-staff-table-editor)
    table:where(:not(.vyturio-redaktoriaus-lentele, .silt-table, .silt-category, .ch-reports,
        [role="presentation"], [role="none"])) > tbody > tr > th[colspan] {
    padding: 10px 12px;
    font-weight: 600;
}
:where(.ch-staff-section, body.ch-staff-table-editor) :is(td, th) > p:last-child {
    margin-bottom: 0;
}

.ch-staff-list .ch-staff-details:has(table) {
    overflow-x: auto;
}
