.dt-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dt-layout-row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.dt-layout-row:not(.dt-layout-table)>.dt-layout-full {
    width: 100%;
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
}

.dt-layout-row:not(.dt-layout-table)>.dt-layout-full .dt-search {
    min-width: 0;
    flex: 1;
}

.dt-button-background {
    display: none;
}

.dt-layout-row:not(.dt-layout-table)>.dt-layout-full .dt-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
}

.dt-layout-table>.dt-layout-full {
    width: 100%;
    position: relative;
    display: block;
    overflow-x: auto;
}

@media (max-width: 768px) {
    .dt-layout-row:not(.dt-layout-table)>.dt-layout-full {
        flex-wrap: wrap;
    }
}


.dataTable {
    width: 100%;
    text-align: left;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 0;
    border-bottom: 3px solid #E6E6E6;
    border-left: 1px solid #E6E6E6;
    border-right: 1px solid #E6E6E6;
    clear: both;
    border-collapse: separate;
    border-spacing: 0;
    flex-basis: 100%;
}

.dataTable thead th,
.dataTable tfoot th {
    background-color: #efefef;
    padding-top: 12px;
    padding-bottom: 12px;
    color: black;
    position: relative;
}

.dataTable th,
.dataTable td {
    text-align: left;
    font-size: 13px;
    padding: 2px 6px;
}

.dt-info {
    font-size: 14px;
    font-weight: 600;
    padding: 8px 0;
}

.dt-paging>nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 5px;
}

.dt-paging>nav button {
    height: 30px;
    padding: 0 11px;
    border: none;
    background: transparent;
    border-radius: var(--border-radius);
    min-width: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: .1s ease;
}

.dt-paging>nav button.current {
    cursor: default;
    color: var(--color-primary);
}

.dt-container *:not(i) {
    font-family: var(--font-family);
}

.dt-paging>nav button.next,
.dt-paging>nav button.previous {
    color: var(--color-primary);
    box-shadow: none;
    font-size: 15px;
    transition: color, background-color, border-color, background .3s ease;
    text-decoration: none;
    text-align: center;
    border: 1px solid;
    border-color: var(--color-primary);
}

.dt-paging>nav button.next:hover,
.dt-paging>nav button.previous:hover {
    background-color: var(--color-primary);
    color: white;
    border-color: #00000033;
}

.dt-paging>nav button:hover {
    color: var(--color-primary);
}

.dt-paging>nav button:not(.next):not(.previous) {
    padding: 0 7px;
    min-width: auto;
}

.dataTable tr:first-child th:first-child {
    border-radius: var(--border-radius) 0 0 0;
}

.dataTable tr:first-child th:last-child {
    border-radius: 0 var(--border-radius) 0 0;
}

.dataTable thead>tr>th[class*="dt-orderable"]:not(.dt-orderable-none) {
    cursor: pointer;
    padding-right: 25px;
}

.dataTable thead>tr>th[class*="dt-orderable"]:not(.dt-orderable-none):before {
    bottom: 50%;
    content: "\f0d8";
    font-family: "Font Awesome 5 Pro";
    position: absolute;
    display: block;
    opacity: .125;
    right: 10px;
    line-height: 9px;
    font-size: 12px;
}

.dataTable thead>tr>th[class*="dt-orderable"]:not(.dt-orderable-none):after {
    top: 50%;
    content: "\f0d7";
    font-family: "Font Awesome 5 Pro";
    position: absolute;
    display: block;
    opacity: .125;
    right: 10px;
    line-height: 9px;
    font-size: 12px;
}

.dataTable thead>tr>th[class*="dt-orderable"].dt-ordering-desc:before {
    opacity: 1;
}

.dataTable thead>tr>th[class*="dt-orderable"].dt-ordering-asc:after {
    opacity: 1;
}

.dataTable thead th {
    border-bottom: 2px solid rgb(0 0 0 / 5%);
}

.dataTable tbody td {
    background-color: white;
    font-weight: 600;
    transition: box-shadow, background-color .2s ease;
    border-spacing: 0;
    border: none;
    outline: 2px solid transparent;
    border-bottom: 1px solid #e6e6e6;
}

.dataTable tbody>tr:hover>td {
    box-shadow: inset 0px 0px 200px #0000001a;
    color: black;
}

.dt-search input {
    padding-left: 12px;
    padding-right: 12px;
}

.dt-button {
    background: #ffffff;
    border: 1px solid #c5c5c5;
    height: 36px;
    min-width: 36px;
    border-radius: var(--border-radius);
    color: var(--color-primary);
    cursor: pointer;
    transition: .1s ease;
    padding: 0 6px;
}

.dt-button:hover {
    background: white;
    color: var(--color-primary);
}

.dt-search {
    flex: 1;
}

.dt-search input {
    width: 100%;
}

.dt-processing {
    color: var(--color-primary);
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 27px;
    border-radius: var(--border-radius);
    font-size: 14px;
    /* color: white; */
    font-weight: 500;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1;
    border: 1px solid #e3e3e3;
}

.dt-layout-table .dt-processing {
    position: absolute;
    inset: 0;
    z-index: 2;
    min-height: 100%;
    background: rgb(255 255 255 / 80%);
}

.dt-button-collection>[role="menu"] {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    padding: 6px;
    z-index: 1;
    border-radius: var(--border-radius);
    gap: 4px;
    border: 1px solid #c8c8c8;
    width: max-content;
    min-width: 150px;
    max-width: min(200px, calc(100vw - 48px));
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.dt-button-collection {
    margin-top: 3px !important;
    position: absolute !important;
    z-index: 20;
    width: auto;
    pointer-events: auto;
}

.dt-button-collection .dt-button {
    width: 100%;
    min-width: 0;
    height: 32px;
    padding: 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 13px;
    line-height: 1;
    box-sizing: border-box;
}

.dt-button-down-arrow {
    display: none !important;
}

.dt-button[data-dt-idx="0"]::after,
.dt-button-collection>button::after {
    content: none !important;
    display: none !important;
}

.dt-buttons>button.dt-button-collection::after {
    content: none !important;
    display: none !important;
}


.buttons-columnVisibility {
    background-color: #d3d3d3;
    border-color: #d3d3d3;
    color: #3f3f3f;
}

.buttons-columnVisibility.dt-button-active {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Aninhamento de coleções (exportar dentro de buttons) */
.dt-button-collection .dt-button-collection {
    z-index: 21;
    left: 100% !important;
    top: 0 !important;
}

.dt-empty {
    padding: 12px !important;
}


.dt-layout-row.dt-layout-table {
    overflow-y: auto;
    padding: 4px 0;
}


.dataTable tbody td span[onclick] {
    cursor: pointer;
}

.dataTable tbody td span[onclick]:hover {
    color: var(--color-primary);
}

.dataTable tfoot th {
    padding-top: 7px;
    padding-bottom: 7px;
    border-radius: 0 !important;
}

.dt-button:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.dataTable a {
    text-decoration: none;
}
