.anuario-filters {
    align-items: center;
    border-radius: 5px;
    display: flex;
    flex-flow: row wrap;
    gap: 20px;
    width: 100%;
}

.anuario-filters .anuario-filters--groups {
    --groups-gap: 20px;
    --groups-width: 25%;
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(
            calc(var(--groups-width) - var(--groups-gap)),
            1fr
        )
    );
    gap: var(--groups-gap);
    width: 100%;
}

.anuario-filters .anuario-filters--group {
    align-items: center;
    display: flex;
    flex-flow: row wrap;
    gap: 8px;
    padding: 0;
    width: 100%;
}

.anuario-filters .anuario-filters--label {
    font-size: 12px;
    font-weight: bold;
    text-wrap: nowrap;
    width: 100%;
}

.anuario-filters--select {
    width: 100%;
}

.anuario-filters .anuario-filters--group .select2-container {
    min-width: 150px;
    width: 100% !important;
}

.anuario-filters .select2-container .select2-selection--multiple,
.anuario-filters .select2-container--default .select2-selection--single {
    --min-height: 40px;
}

.anuario-filters .anuario-filters--actions {
    padding: 0;
    width: 100%;
}

.anuario-filters .anuario-filters--actions .m-button {
    height: 40px;
}

.anuario-filters .anuario-filters--actions .m-button.show-filters {
    margin-left: auto;
}

.anuario-filters--badges {
    display: flex;
    flex-flow: row wrap;
    gap: 10px;
    width: auto;
}

.anuario-filters--badges .filter-badge {
    background-color: var(--color-neutral-200);
    border-radius: 35px;
    display: inline-flex;
    flex-flow: row nowrap;
    font-size: 12px;
    font-weight: bold;
    line-height: 100%;
    gap: 5px;
    padding: 8px 10px;
}

.anuario-filters--badges .filter-badge .remove-filter {
    cursor: pointer;
}

.anuario-filters--clear-all {
    background-color: var(--color-red-200);
    border-radius: 35px;
    border-width: 0;
    color: var(--color-primary-blue);
    cursor: pointer;
    display: inline-flex;
    flex-flow: row nowrap;
    font-size: 12px;
    font-weight: bold;
    line-height: 100%;
    gap: 5px;
    padding: 8px 12px;
    transition: all 0.4s ease;
}

.anuario-filters--clear-all:hover {
    background-color: var(--color-red-300);
}

.search-tools-alert.chapter-five {
    background-color: var(--color-gray-600);
}

.search-tools-alert__title,
.search-tools-alert__description {
    color: var(--color-white);
}

.table-wrapper__title {
    background-color: var(--color-primary-orange);
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    color: var(--color-white);
    font-size: 16px;
    font-weight: normal;
    padding: 15px 10px;
    text-align: center;
}

.table-wrapper__title .chapter__selected-company {
    display: block;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    width: 100%;
}

/* Tabulator */
.tabulator {
    background-color: var(--color-white);
    border-collapse: collapse;
    border: 1px solid var(--color-neutral-200);
    border-radius: 5px;
    max-height: 75vh;
    height: 100%;
    max-width: 100%;
    width: 100%;
}

.tabulator .tabulator-header {
    border-bottom: 1px solid var(--color-neutral-200);
}

.tabulator .tabulator-header .tabulator-col {
    background-color: var(--color-neutral-100);
    border-bottom: none;
    border-right: 1px solid var(--color-neutral-200);
    text-align: left;
}

@media (hover: hover) and (pointer: fine) {
    .tabulator .tabulator-header .tabulator-col.tabulator-sortable.tabulator-col-sorter-element:hover {
        background-color: var(--color-neutral-200);
        cursor: pointer;
    }
}

.tabulator-row.tabulator-row-even {
    background-color: var(--color-white);
}

.tabulator-row.tabulator-row-odd {
    background-color: var(--color-white);
}

.tabulator-row .tabulator-cell,
.tabulator .tabulator-header .tabulator-col .tabulator-col-content {
    font-size: 12px;
    padding: 10px 15px;
    text-wrap: nowrap;
}

.tabulator-row .tabulator-cell {
    border-right: 1px solid var(--color-neutral-200);
}

.tabulator-row .tabulator-cell.tabulator-frozen {
    background-color: var(--color-white) !important;
}

.tabulator-row .tabulator-cell:last-of-type,
.tabulator .tabulator-header .tabulator-col:last-of-type {
    border-right: none;
}

@media (hover: hover) and (pointer: fine) {
    .tabulator-row.tabulator-selectable:hover {
        background-color: var(--color-neutral-100);
        cursor: pointer;
    }

    .tabulator-row.tabulator-selectable:hover .tabulator-cell.tabulator-frozen {
        background-color: var(--color-neutral-100) !important;
    }
}

.tabulator .tabulator-footer {
    background-color: #dbffdd;
    border-top: 1px solid var(--color-neutral-200);
}

.tabulator .tabulator-footer .tabulator-calcs-holder {
    background-color: #dbffdd;
    border-top: none;
    border-bottom: none;
}

.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row {
    background-color: #dbffdd !important;
}

.tabulator .tabulator-header .tabulator-col.text-verticla-middle {
    justify-content: center;
}

.tabulator-row .tabulator-cell.wrap-text {
    white-space: normal !important;
    word-wrap: break-word;
}

.tabulator-row.tabulator-group {
    background-color: var(--color-gray-900);
    border-bottom: 1px solid var(--color-neutral-200);
    border-top: 1px solid var(--color-neutral-200);
    font-size: 12px;
    font-weight: bold;
    padding: 10px;
}

.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-bottom {
    background-color: #dbffdd !important;
    border-top: 1px solid var(--color-neutral-200);
}

.tabulator-col.tabulator-col-group > .tabulator-col-content {
    text-align: center;
}

.tabulator .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols {
    border-color: var(--color-neutral-200);
}

.tabulator .tabulator-header .tabulator-col.text-vertical-bottom {
    justify-content: flex-end;
}

.tabulator .tabulator-header .tabulator-col.vertical-text-column {
    height: auto !important;
}

.tabulator .tabulator-header .tabulator-col.vertical-text-column .tabulator-col-content .tabulator-col-sorter {
    align-items: flex-end;
}

.tabulator .tabulator-header .tabulator-col.vertical-text-column .tabulator-col-content {
    align-items: unset;
    display: inline-flex;
    flex-flow: column nowrap;
    height: 100%;
    justify-content: flex-end;
}

.tabulator .tabulator-header .tabulator-col.vertical-text-column .tabulator-col-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    padding-right: 0;
    height: auto;
    width: auto;
}

@media screen and (max-width: 768px) {
    .anuario-filters .anuario-filters--groups {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}
