/* ------------------------------ */
/* LuizoPiloto(c) 2025            */
/* DataTable style sheet          */
/* ------------------------------ */


.fixed-header {
    position: sticky;
    top: 0;
    z-index: 999;
    text-align: left;
    height: 35px;
}


.data-container {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}




.data-container th {
    position: relative;
    z-index: 998;
    padding-left: 2px;
    padding-right: 2px;
}


.th-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 8px;
    border-radius: 6px;
    box-sizing: border-box;
}




.data-container .filter-btn {
    cursor: pointer;
    font-size: 12px;
    border-radius: 4px;
    padding: 4px;
    margin-left: 2px;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
}


.data-container .open {
    margin-left: 2px;
}


.data-container .sort-toggle {
    margin-left: -3px;
    width: auto;
    min-width: unset;
    padding: 1px 7px 1px 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.sort-arrow-icon {
    display: inline-flex;
    font-size: 20px;
    pointer-events: none;
    line-height: 1;
    letter-spacing: -6px;
    margin-top: 3px;
}


.filter-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    border-radius: 6px;
    box-sizing: border-box;
    max-width: none;
    overflow: hidden;
}


.filter-container .filter-input {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
}


.filter-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    pointer-events: none;
}


.hide-element {
    display: none;
}


.dt-sort-menu {
    position: fixed;
    z-index: 9999;
    border-radius: 4px;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    padding: 2px 0;
}


.dt-sort-menu.hide-element {
    display: none;
}


.dt-sort-opt {
    display: block;
    width: 100%;
    padding: 7px 14px;
    text-align: left;
    border-radius: 0;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
}




.dt-sort-opt.active {
    font-weight: bold;
}


table {
    table-layout: auto;
    border-collapse: collapse;
    box-sizing: border-box;
    display: none;
    width: 100%;
}


td, th {
    font-size: 14px;
    box-sizing: border-box;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 12px;
    padding-right: 12px;
    width: auto;
    height: 28px;
    min-width: 120px;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: "...";
}


th:last-child,
td:last-child {
    width: 100%;
}

.dt-empty-cell {
    min-width: 0 !important;
    max-width: none !important;
    width: 100%;
    white-space: normal;
    font-size: 13px !important;
    font-style: italic;
    padding: 18px 16px;
}


.highlighted {
    border-radius: 6px;
}


.dt-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 2px;
    flex-wrap: wrap;
}

.dt-pagination-sep {
    flex: 1;
}

.dt-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    font-size: 16px;
    line-height: 1;
    padding: 1px 3px;
    border-radius: 3px;
    min-width: 22px;
    height: 22px;
    box-sizing: border-box;
}

.dt-page-btn.dt-page-disabled {
    cursor: default;
    pointer-events: none;
    opacity: 0.35;
}

.dt-page-info {
    font-size: 12px;
    padding: 0 4px;
    white-space: nowrap;
}

.dt-page-size {
    font-size: 12px;
    height: 22px;
    padding: 1px 2px;
    border-radius: 3px;
}


/* ── Autocomplete dropdown ───────────────────────────────────────────────── */

.dt-ac-drop {
    position: fixed;
    z-index: 10000;
    border-radius: 4px;
    overflow-y: auto;
    max-height: 210px;
}

.dt-ac-drop.hide-element {
    display: none;
}

.dt-ac-item {
    padding: 4px 10px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.6;
}


/* ── Responsive font sizes ───────────────────────────────────────────────── */
@media only screen and (max-width: 939px) {
    td, th {
        font-size: 13px;
        padding-left: 8px;
        padding-right: 8px;
    }
}

@media only screen and (max-width: 599px) {
    td, th {
        font-size: 11px;
        padding-left: 6px;
        padding-right: 6px;
        min-width: 70px;
        height: 24px;
    }

    .dt-page-btn { font-size: 14px; }
    .dt-page-info { font-size: 11px; }
    .dt-page-size { font-size: 11px; height: 20px; }
}
