[comp-datatable] {
    overflow-x: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

[comp-datatable] table {
    text-align: left;
    width: 100% !important;
    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;
}

[comp-datatable] table thead tr,
[comp-datatable] table tfoot tr {
    font-size: 13px;
    border-bottom: 1px solid #e8e8e8;
    font-weight: 600;
    overflow: hidden;
}

[comp-datatable] table 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;
}

[comp-datatable] p.id {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

[comp-datatable] table tr[restrito] td {
    background-color: #e6e6e6;
    cursor: default;
}


[comp-datatable] table tr:nth-child(2n+1) {
    background: #f8f8f8;
}

[comp-datatable] table thead th,
[comp-datatable] table tfoot th,
[comp-datatable] table tbody td {
    padding: 7px 10px;
    font-size: 13px;
    line-height: 1.3;
}

[comp-datatable] table thead th,
[comp-datatable] table tfoot th {
    background-color: #efefef;
    padding-top: 12px;
    padding-bottom: 12px;
    color: black;
}

[comp-datatable] table [item] td {
    font-size: 12px;
}

[comp-datatable] table .checkbox i {
    font-size: 16px;
    font-weight: 300;
    vertical-align: middle;
    cursor: pointer;
}

[comp-datatable] table tr.selected .fa-square:before {
    content: "\f14a";
    font-weight: 600;
}

[comp-datatable] table tr .selecionado .fa-square:before {
    content: "\f14a";
    font-weight: 600;
}

[comp-datatable] table td.checkbox:before,
[comp-datatable] table th.checkbox:before {
    content: "\f0c8";
    font-family: 'Font Awesome 5 Pro';
    font-size: 16px;
    font-weight: 300;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

[comp-datatable] table tr.selected td.checkbox:before,
[comp-datatable] table tr.selected th.checkbox:before,
[comp-datatable] table tr .selecionado.checkbox:before {
    content: "\f14a";
    font-weight: 600;
}

[comp-datatable] table thead th.checkbox,
[comp-datatable] table tbody td.checkbox,
[comp-datatable] table tfoot th.checkbox {
    padding: 0 15px;
}

[comp-datatable] label,
[comp-datatable] .dataTables_wrapper .dataTables_info {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 11px;
}

[comp-datatable] .dataTables_processing {
    width: 100%;
    background: white;
    margin: 0;
    left: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    font-size: 14px;
    margin-top: 50px;
    max-height: calc(100% - 50px);
}

[comp-datatable] .dataTables_wrapper .dataTables_filter input {
    width: 100%;
}


[comp-datatable] .dataTables_paginate {
    display: flex;
    gap: 6px;
    align-items: center;
}

[comp-datatable] .dataTables_paginate .previous,
[comp-datatable] .dataTables_paginate .next {
    color: var(--color-primary);
    box-shadow: none;
    height: 37px;
    border-radius: var(--border-radius);
    min-width: 37px;
    font-weight: 600;
    gap: 7px;
    font-size: 15px;
    transition: color, background-color, border-color, background .3s ease;
    padding: 12px 15px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    border-color: var(--color-primary);
}

[comp-datatable] .dataTables_paginate .previous:active,
[comp-datatable] .dataTables_paginate .next:active {
    border-width: 1px;
}

[comp-datatable] .dataTables_length {
    text-align: left;
    float: inherit;
    display: inline-block;
}

[comp-datatable] .dataTables_filter {
    text-align: left;
    min-width: calc(100% - 870px);
    flex: 1;
    float: inherit;
    display: inline-block;
    max-width: inherit;
}

[comp-datatable] .dataTables_wrapper .dataTables_paginate .previous:hover,
[comp-datatable] .dataTables_wrapper .dataTables_paginate .next:hover {
    background-color: var(--color-primary);
    color: white;
    border-color: #00000033;
}

[comp-datatable] .dataTables_paginate span a {
    font-weight: 600;
    font-size: 15px;
    min-width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

[comp-datatable] .dataTables_wrapper .dataTables_info {
    clear: both;
    float: left;
    margin: 0px 0;
    font-size: 12px;
    color: #000000;
    font-weight: 700;
    padding: 10px 0;
}

[comp-datatable] .dataTables_wrapper .dataTables_paginate {
    float: none;
    margin: 0px 0 0px 20px;
    flex: 1;
    display: flex;
    justify-content: flex-end;
    padding: 0;
}

[comp-datatable] table.dataTable thead th,
[comp-datatable] table.dataTable thead td,
[comp-datatable] table.dataTable tfoot th {
    border-bottom: 2px solid rgb(0 0 0 / 5%);
    padding: 12px 8px;
}

[comp-datatable] table.dataTable tfoot th {
    padding-top: 10px;
    padding-bottom: 10px;
}

[comp-datatable] .dataTables_wrapper .dataTables_paginate span .paginate_button {
    background: transparent;
    background-color: transparent;
    border: none;
    box-shadow: none;
    cursor: pointer;
    color: #000000;
    font-weight: 700;
}

[comp-datatable] .dataTables_wrapper .dataTables_paginate .previous.disabled,
[comp-datatable] .dataTables_wrapper .dataTables_paginate .next.disabled {
    color: #a9a9a9;
    background-color: #ececec;
    border-color: transparent;
}

[comp-datatable] .dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--color-primary);
}

[comp-datatable] table tbody>tr:hover>td {
    box-shadow: inset 0px 0px 200px #0000001a;
    color: black;
}

[comp-datatable] table tbody>tr.selected:hover>td {
    color: white;
}

[comp-datatable] table tbody>tr.selected>td {
    background-color: var(--color-primary);
    color: white !important;
}

[comp-datatable] .dataTables_wrapper .dataTables_paginate span {
    display: flex;
    gap: 5px;
}

[comp-datatable] .dataTables_wrapper .dataTables_paginate span .paginate_button.current,
[comp-datatable] .dataTables_wrapper .dataTables_paginate span .paginate_button:hover {
    color: var(--color-primary);
    font-weight: 800;
}

[comp-datatable] .dataTables_scrollHeadInner {
    width: 100% !important;
}

[comp-datatable] .dataTables_empty {
    padding: 20px 0;
    font-size: 13px;
    font-style: italic;
    color: gray;
}

[comp-datatable] table.dataTable .center {
    text-align: center;
}

[comp-datatable] table.dataTable .right {
    text-align: right;
}

[comp-datatable] .dataTables_wrapper .dataTables_scroll {
    width: 100%;
}

/* PERSONALIZACAO */
[comp-datatable] table tbody td [acoes] {
    display: flex;
    gap: 4px;
}

[comp-datatable] table tbody td [acoes] [btn][mini] {
    width: 34px;
}

[comp-datatable] td[center]>*,
[comp-datatable] th[center]>*,
[comp-datatable] td[center],
[comp-datatable] th[center] {
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
    justify-items: center !important;
    margin: auto;
}

[comp-datatable] td[right]>div,
[comp-datatable] th[right]>div {
    justify-content: end;
}

[comp-datatable] th[right],
[comp-datatable] td[right] {
    text-align: right;
}

[comp-datatable] .dt-datetime-table {
    margin: 0;
}

[comp-datatable] .dt-datetime-table th {
    padding: 9px 5px;
}

[comp-datatable] .dt-datetime-table td {
    padding: 0;
}

[comp-datatable] div.dt-datetime {
    width: inherit;
    padding: 10px 15px 24px;
}

[comp-datatable] button.dtsb-delete.dtsb-button,
[comp-datatable] button.dtsb-left.dtsb-button,
[comp-datatable] button.dtsb-right.dtsb-button {
    padding: 0;
    font-weight: 500;
    border-radius: var(--border-radius);
    background-color: white;
    color: black;
    border: 1px solid #00000029;
    white-space: nowrap;
    border-bottom: 3px solid #00000029;
    transition: .2s ease;
    font-size: 20px;
    width: 35px;
    height: 35px;
}

[comp-datatable] button.dtsb-add.dtsb-button {
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--border-radius);
    background-color: white;
    color: black;
    border: 1px solid #00000029;
    white-space: nowrap;
    border-bottom: 3px solid #00000029;
    transition: .2s ease;
    border-color: var(--color-primary);
    cursor: pointer;
    color: var(--color-primary);
}


[comp-datatable] tr.selected td p,
[comp-datatable] tr.selected td span,
[comp-datatable] tr.selected td a i,
[comp-datatable] tr.selected td a,
[comp-datatable] tr.selected td span {
    color: white !important;
    border-color: white;
}

[comp-datatable] p,
[comp-datatable] span {
    font-size: 12px;
}

[comp-datatable] table td a:not([btn]) {
    text-decoration: none;
    color: black;
    transition: .2s ease;
    display: inline-block;
}

[comp-datatable] table td a:not([btn]) i {
    color: var(--color-primary);
    padding: 0 3px;
}

[comp-datatable] table td a:hover {
    color: var(--color-primary);
}


[comp-datatable] table tbody td [mark] {
    background-color: var(--color-primary);
    color: white !important;
    border-radius: 4px;
    /* width: 15px; */
    height: 15px;
    line-height: 1;
    display: inline-block;
    align-items: center;
    justify-content: center;
    padding: 2px 3px;
    font-size: 9px !important;
    vertical-align: text-top;
    border: 1px solid transparent;
}

[comp-datatable] table tbody td [mark] i {
    color: white;
}

[comp-datatable] table tbody td [mark=transparent] {
    background: transparent;
    color: var(--color-primary) !important;
    border-color: var(--color-primary);
    font-weight: 800;
    font-size: 10px !important;
}

[comp-datatable] table tbody td [mark=transparent].orange {
    color: var(--color-orange) !important;
}

[comp-datatable] table tbody td [mark=transparent].green {
    color: var(--color-green) !important;
}

[comp-datatable] [tabela] [top] {
    text-align: right;
    padding-bottom: 10px;
}

[comp-datatable] div.dtsb-searchBuilder {
    display: inline-block;
    margin: 0;
}

[comp-datatable] div.dataTables_wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 6px;
}

[comp-datatable] div.dtsb-searchBuilder div.dtsb-group {
    margin: 0;
}

[comp-datatable] .dataTables_filter label,
[comp-datatable] .dataTables_length label {
    margin: 0;
}

[comp-datatable] table.dataTable tfoot th,
[comp-datatable] table.dataTable tfoot td {
    border-top: none;
}


[comp-datatable] table tr:first-child th:first-child {
    border-radius: var(--border-radius) 0 0 0 !important;
}

[comp-datatable] table tr:first-child th:last-child {
    border-radius: 0 var(--border-radius) 0 0 !important;
}

[comp-datatable] table tr:last-child td:first-child {
    border-radius: 0 0 0 var(--border-radius) !important;
}

[comp-datatable] table tr:last-child td:last-child {
    border-radius: 0 0 var(--border-radius) 0 !important;
}
