:root {
    --black: #262626;
    --black-lighter: #303030;
    --white-dim: #ddd;
    --white: white;
    --primary-color: rgb(229, 145, 96); /* #00a8c7; */
    --primary-color-darker: hsl(189deg 100% 29%);
    --primary-color-light: hsl(189deg 99.85% 41.05%);
    --red: red;
    --green: hsl(120 37% 44% / 1);

    --highlight: hsl(63, 99%, 58%);

    --primary-color-table: 229 145 96;
}

.swal2-container {
    z-index: 999999999;
}

.init-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    z-index: 999;
}
.init-loading .pi {
    color: var(--primary-color);
    font-size: 7rem;
}

.p-component.p-dialog:not(.p-dialog-maximized) {
    max-width: min(800px, 80vw);
}

.swal2-title {
    box-sizing: border-box;
}

.reload-vue-btn {
    position: absolute;
    right: 1.5rem;
    top: -0.5rem;
    width: 1.3rem;
    height: 1.3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    border-radius: 50px;
    background-color: #555;
}

.dt2 {
    max-width: calc(100vw - 1rem);
}

.dt2 .fc {display: flex;align-items: center;}

.dt2 button,
.dt2 .button,
.ccnt2-table-modal button,
.ccnt2-table-modal .button {
    /* margin-top: 1rem;
    padding: 0.2rem 0.5rem;
    border: none;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: var(--white);
    cursor: pointer;
    margin: 0.5rem; */
}

.dt2 .button-cancel {
    background-color: transparent;
    color: var(--black);
    border: 1px solid var(--black);
}

.dt2 .badge {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: var(--white);
    margin: 0.5rem;
}
.dt2 .badge.green {background-color: var(--green);}

.dt2 .ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dt2 .dt2-table {
    overflow-x: auto;
}

/* .dt2 .dt2-table .thead {
    display: grid;
    grid-auto-flow:column;
} */
.dt2 .dt2-table .tbody .virtual-list-wrapper {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); */
    overflow-x: auto;
    /* grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); */
    grid-template-columns: repeat(16, 1fr);
}


.dt2 .dt2-table .virtual-list-item,
.dt2 .dt2-table .tr {
    display: contents;
}

.dt2 .td {
    
}


/* ============================= */
/* TABLE MENUS */
/* ============================= */

.dt2 .table-menus {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* background: var(--black); */
    /* color: white; */
    max-width: calc(100vw - 1rem);
}

.dt2 .table-menus .my-menu-root .menu-list {
    margin: 0;
    padding: 0;
    background-color: var(--black);
    box-shadow: 0 5px 6px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid var(--white-dim);
}

.dt2 .table-menus .my-menu-root .menu-list > * {
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.overlay-column-menu .p-overlaypanel-content {
    padding: 0;
}





.dt2 .table-header {
    margin-top: 0;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* background: var(--black); */
    padding: 0.5rem 1rem;
    /* color: white; */
    max-width: calc(100vw - 1rem);
    box-sizing: border-box;
    overflow: hidden;
    font-size: 1rem;
}

.dt2 .table-header > * {
    display: flex;
    align-items: center;
}

.dt2 .table-header > * > * {
    margin: 0;
    margin-left: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.dt2 .table-header > * > * > .fa-solid {
    font-size: 1rem;
}

.dt2 .table-header .global-search {
    margin-left: 1rem;
}

.dt2 .table-header .rows-per-page select {
    border-radius: 4px;
    height: 1.4rem;
    background: none;
    color: var(--white);
    border: 1px solid var(--white-dim);
    background: var(--black);
    margin: 0 0.5rem;
    padding: 0 1rem;
}

.dt2 .selected-rows-toggle > *:nth-child(2) {
    background-color: var(--green);
    color: white;
    border-radius: 50px;
    padding: 0.3rem 0.8rem;
    display: flex;
    align-items: center;
    margin: 0 0.2rem;
}

.dt2 .table-container {
    position: relative;
    width: 100vw;
    overflow: hidden;
}

.dt2 table.dt2-table {
    display: block;
    position: relative;
    border-collapse: collapse;
    width: 100%;
    /* min-height: 350px; */
    background-color: white; /* #dedede; */
    overflow-x: auto;
}

.dt2 table.dt2-table {
    overflow-x: auto;
    overflow-y: hidden;
    /* max-width: 100vw; */
}
.dt2 .dt2-table::-webkit-scrollbar,
.dt2 .virtual-list-wrapper::-webkit-scrollbar {
    height: 7px;
}
.dt2 .dt2-table::-webkit-scrollbar-track,
.dt2 .virtual-list-wrapper::-webkit-scrollbar-track {
    background: transparent;
  }
.dt2 .dt2-table::-webkit-scrollbar-thumb,
.dt2 .virtual-list-wrapper::-webkit-scrollbar-thumb {
    border-radius: 15px;
    background-color: #aaa;
    cursor: pointer;
}
.dt2 .dt2-table::-webkit-scrollbar-thumb:hover,
.dt2 .virtual-list-wrapper::-webkit-scrollbar-thumb:hover {
    background-color: #333;
}

.dt2 .dt2-table thead,
.dt2 .dt2-table .thead {
    top: 0;
    /* width: 100%; */
}

/* .dt2 .dt2-table > thead > tr {
    background: var(--black);
    color: white;
} */
.dt2 .dt2-table > .thead > .tr {
    /* background: var(--black); */
    /* color: white; */
    max-height: unset;
    display: grid;
    grid-auto-flow: column;
    align-items: stretch;
    /* border-bottom: 1px solid var; */
    /* display: flex; */
}

.dt2 table.dt2-table > thead > tr > th {
    border: none;
    border-bottom: 4px solid var(--black-lighter);
}
.dt2 .dt2-table > .thead > .tr > .th {
    /* display: flex;
    align-items: center; */
    display: flex;
    align-items: center;
    /* flex-wrap: wrap; */
    /* flex: 1; */
    height: 100%;
    /* flex-grow: 1; */
    border: none;
    border-bottom: 2px solid var(--black-lighter);
    /* max-width: min(50vw, 250px); */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: all 0.2s ease-in;
}

.dt2 .dt2-table > thead > tr > th .col-title {
    width: 100%;
}

/* .dt2 .dt2-table > tbody > tr {
    display: grid;
    grid-auto-flow: column;
} */

.dt2 table.dt2-table > thead > tr > th,
.dt2 table.dt2-table > tbody > tr > td {
    max-width: min(50vw, 200px);
    transition: all 0.2s ease-in;
}
.dt2 table.dt2-table > tbody > tr > td {
    transition: all 0.2s ease-in;
    border: none;
    /* display: block; */
    height: 100%;
    padding: calc(0.8 * var(--global--spacing-unit, 10px));
}
/* .dt2 table.dt2-table > thead > tr > th:not(.visible):not(.selection),
.dt2 table.dt2-table > tbody > tr > td:not(.visible):not(.selection) {
    max-width: 0;
    opacity: 0;
    pointer-events: none;
    overflow-x: hidden;
    border-left: none;
    padding: 0;
} */

.dt2 .dt2-table > tbody > .tr > .td,
.dt2 .fixed-columns-container .td {
    /* max-width: min(50vw, 200px); */
    transition: all 0.2s ease-in;
    border: none;
    display: block;
    height: 100%;
    /* max-height: 50px; */
    padding: calc(0.8 * var(--global--spacing-unit, 10px));
}
.dt2 table.dt2-table > thead > tr > th:not(.visible):not(.selection),
.dt2 table.dt2-table > tbody > tr > td:not(.visible):not(.selection) ,
.dt2 .dt2-table > .thead > .tr > .th:not(.visible):not(.selection),
.dt2 .dt2-table > .tbody > .tr > .td:not(.visible):not(.selection) {
    max-width: 0;
    opacity: 0;
    pointer-events: none;
    overflow-x: hidden;
    border-left: none;
    padding: 0;
    /* border-right: none; */
}

.dt2 .selection.all > .check-all-btn {
    border: 1px solid var(--black);
    height: 1rem;
}



/* ==================================== */
/* SELECT ROWS ACTIONS */
/* ==================================== */

.dt2 table.dt2-table .selection > .row-actions,
.dt2 .dt2-table .selection > .row-actions,
.dt2 .td.selection > .row-actions {
    box-sizing: border-box;
    display: flex;
    position: absolute;
    top: 0rem;
    left: 1rem;
    padding: 0.5rem 0.9rem;
    background: var(--black);
    z-index: 111;
    border-radius: 0 4px 4px 0;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease-in;
}
.dt2 .fixed-columns-container .selection > .row-actions > *:not(:first-child),
.dt2 .dt2-table .selection > .row-actions > *:not(:first-child),
.dt2 table.dt2-table .selection > .row-actions > *:not(:first-child) {
    margin-left: 0.6rem;
}

.dt2 table.dt2-table .selection:hover > .row-actions,
.dt2 .dt2-table .selection:hover > .row-actions,
.dt2 .fixed-columns-container .selection:hover > .row-actions {
    transform: translateX(14px);
    opacity: 1;
    pointer-events: all;
}

/* ==================================== */
/* SELECT ROWS CHECKBOXES */
/* ==================================== */

.dt2 table.dt2-table .selection,
.dt2 .dt2-table .selection,
.dt2 .fixed-columns-container .selection {
    position: relative;
    max-width: 33px;
    /* max-height: 50px; */
    cursor: pointer;
    text-align: center;
    background: var(--black);
    color: var(--white);
    /* border-bottom: 2px solid var(--black); */
    padding: 0 9px;
}

.dt2 .dt2-table .selection.all,
.dt2 .fixed-columns-container .selection.all {
    background: none;
    color: var(--black);
}
.dt2 .fixed-columns-container .selection.all {
    display: flex;
    align-items: center;
    background: white;
    max-height: unset;
    border-bottom: 1px solid var(--black);
}

.dt2 .dt2-table .selection.all > *,
.dt2 .fixed-columns-container .selection.all > * {
    font-size: 0.7rem;
    /* padding: 2px; */
}

.dt2 .dt2-table .selection > .check,
.dt2 .fixed-columns-container .selection > .check {
    display: block;
    border: 1px solid var(--white-dim);
    height: 15px;
    width: 15px;
    line-height: 0.7rem;
    /* border-radius: 0.7rem; */
    font-size: 0.5rem;
    text-align: center;
    position: relative;
    z-index: 0;
}

.dt2 .dt2-table .selection > .check.active,
.dt2 .fixed-columns-container .selection > .check.active {
    background: var(--green);
}

.dt2 .dt2-table th.selection > .pi,
.dt2 .dt2-table .th.selection > .pi,
.dt2 .fixed-columns-container .selection > .pi {
    border: 1px solid var(--white-dim);
}

.dt2 .dt2-table .selection > .pi.pi-check,
.dt2 .fixed-columns-container .selection > .pi.pi-check {
    background: green;
    color: white;
    border-color: var(--green);top: -3px;
}

.dt2-table .selection .check .pi.pi-check {
    font-size: 0.6rem;
    line-height: 0.9rem;
}


.dt2 table.dt2-table tr.selected,
.dt2 .dt2-table .tr.selected,
.dt2 .fixed-columns-container .tr.row.selected {
    background: hsl(120deg 54.65% 80.9%);
}




.dt2 .dt2-table > .thead .th,
.dt2 table.dt2-table > thead th {
    position: relative;
}

.dt2 .dt2-table > .thead .th.selected,
.dt2 table.dt2-table > thead th.selected {
    background: #34c76985;
}

.dt2 .dt2-table > .thead .th.dragstart,
.dt2 table.dt2-table > thead th.dragstart {
    /* background: #dedede;
    color: #aaa; */
    opacity: 0.5;
    font-style: italic;
}

.dt2 .dt2-table > .thead .th.dragover:not(.dragstart),
.dt2 table.dt2-table > thead th.dragover:not(.dragstart) {
    color: #2da358d9;
    font-weight: bold;
}

.dt2 .dt2-table > .thead .toggle,
.dt2 table.dt2-table > thead .toggle {
    cursor: pointer;
    width: fit-content;
    padding: 0.2rem;
    padding-left: 0.2rem;
    pointer-events: none;
    opacity: 0;
    transition: all 0.2s ease-in;
    position: absolute;
    bottom: 0;
    right: 0.5rem;
}
.dt2 .dt2-table > thead th:hover .toggle {
    pointer-events: all;
    opacity: 1;
}

.dt2 .dt2-table > .thead .toggle.active,
.dt2 table.dt2-table > thead .toggle.active {
    color: var(--primary-color);
}

.dt2 .dt2-table > .thead .toggle .pi-filter-fill,
.dt2 table.dt2-table > thead .toggle .pi-filter-fill {
    color: #f97316;
}

.dt2 .dt2-table .th .resize-bar,
.dt2 table.dt2-table th .resize-bar {
    position: absolute;
    cursor: w-resize;
    top: 0;
    right: 0;
    width: 4px;
    box-sizing: border-box;
    height: 100%;
}
.dt2 .dt2-table .th .resize-bar:hover,
.dt2 table.dt2-table th .resize-bar:hover {
    border-left: 1px solid #777;
    border-right: 1px solid #777;
}



/* =================================== */
/*          FIXED COLUMNS              */
/* =================================== */

.dt2 .fixed-columns-container {
    position: absolute;
    /* overflow: hidden; */
    top: 0;
    left: 0;
    height: calc(100% - 7px);
    z-index: 1;
    /* background: black; */
}

.dt2 .fixed-columns-container > * {
    height: 100%;
    display: flex;
    flex-direction: column;
}



/* =================================== */
/*           SELECTION                 */
/* =================================== */

.dt2 table.dt2-table td.selection,
.dt2 .dt2-table .td.selection,
.dt2 .fixed-columns-container .td.selection {
    position: relative;
    /* display: flex; */
    /* align-items: center; */
    height: 100%;
    cursor: pointer;
    text-align: center;
    background: var(--black);
    padding: calc(0.8* 11px);
    /* border-bottom: 1px solid var(--black); */
}

.dt2 .fixed-columns-container .thead {
    display: grid;
    grid-auto-flow: column;
    background-color: white;
}

.dt2 .fixed-columns-container .thead .th {
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    font-weight: bold;
}

.dt2 .fixed-columns-container .fixed-selection {
    box-shadow: 1px 0 10px -9px black;
}

.dt2 .fixed-columns-container .td.selection {
    display: flex;
    align-items: center;
    /* height: 48px; */
    /* flex: 1; */
}

.dt2 .fixed-columns-container .td .ccnt2-cell {
    display: flex;
    align-items: center;
}

.dt2 .fixed-columns-container .tr.row {
    display: flex;
    align-items: center;
    height: 100%;
    background: white;
}

.dt2 .fixed-columns-container.fullHeight .tr.row {
    height: 100%;
}

.dt2 .fixed-columns-container .tr.row:nth-child(even):not(.selected) {
    background: rgb(245, 245, 245);
}

.dt2 .fixed-columns-container .tr.row .td {
    display: flex;
    align-items: center;
    height: 100%;
    padding: calc(0.8* 10px);
}



.dt2 table.dt2-table > tbody > tr {
    /* border-bottom: 1px solid #eee; */
}

.dt2 table.dt2-table > tbody:not(.odd) > tr:nth-child(odd):not(.selected):not(:hover):not(.editing),
.dt2 .dt2-table > .tbody:not(.odd) > .tr:nth-child(odd):not(.selected):not(:hover):not(.editing),
.dt2 table.dt2-table > tbody.odd > tr:nth-child(even):not(.selected):not(:hover):not(.editing),
.dt2 .dt2-table > .tbody.odd > .tr:nth-child(even):not(.selected):not(:hover):not(.editing) {
    background: rgb(245 245 245 / 65%);
}

.dt2 table.dt2-table > tbody:not(.odd) > tr:nth-child(even):not(.selected):not(:hover):not(.editing),
.dt2 .dt2-table > .tbody:not(.odd) > .tr:nth-child(even):not(.selected):not(:hover):not(.editing),
.dt2 table.dt2-table > tbody.odd > tr:nth-child(odd):not(.selected):not(:hover):not(.editing),
.dt2 .dt2-table > .tbody.odd > .tr:nth-child(odd):not(.selected):not(:hover):not(.editing) {
    background: white;
}

.dt2 .dt2-table > .tbody .td:not(.gradient):not(.selection),
.dt2 table.dt2-table > tbody > td:not(.gradient):not(.selection) {
    border-right: 1px solid #eee;
}


.dt2 table.dt2-table > tbody > tr:hover,
.dt2 table.dt2-table > tbody > tr.editing,
.dt2 .dt2-table > .tbody > .tr:hover,
.dt2 .dt2-table > .tbody > .tr.editing {
    /* background: hsl(0 1% 80% / 1); */
    background: rgb(var(--primary-color-table) / .2);
}

.dt2 table.dt2-table > tbody > tr.reloading,
.dt2 .dt2-table > .tbody > .tr.reloading {
    opacity: 0.3;
    pointer-events: none;
    font-style: italic;
}
.dt2 .fixed-columns-container .tr.row.reloading {
    pointer-events: none;
    font-style: italic;
}

.dt2 table.dt2-table > tbody > tr > td,
.dt2 .dt2-table > .tbody > .tr > .td {
    position: relative;
}


/* ================================ */
/* ======= CELL SELECTION ========= */
/* ================================ */

/* Excel-like cell selection */
.dt2 table.dt2-table > tbody > tr > td.cell-selected,
.dt2 .dt2-table > .tbody > .tr > .td.cell-selected {
    background-color: rgb(var(--primary-color-table) / 0.15);
    position: relative;
}

/* Add subtle border to selected cells */
.dt2 table.dt2-table > tbody > tr > td.cell-selected::before,
.dt2 .dt2-table > .tbody > .tr > .td.cell-selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgb(var(--primary-color-table) / 0.4);
    pointer-events: none;
    z-index: 1;
}

/* Anchor cell (starting point of selection) - stronger visual */
.dt2 table.dt2-table > tbody > tr > td.cell-anchor,
.dt2 .dt2-table > .tbody > .tr > .td.cell-anchor {
    background-color: rgb(var(--primary-color-table) / 0.25);
}

.dt2 table.dt2-table > tbody > tr > td.cell-anchor::before,
.dt2 .dt2-table > .tbody > .tr > .td.cell-anchor::before {
    border: 2px solid rgb(var(--primary-color-table));
    border-width: 2px;
    z-index: 2;
}

/* Prevent text selection during cell selection */
.dt2 .dt2-table.unselectable,
.dt2 .dt2-table.unselectable * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ================================ */
/* ========= PAGINATION =========== */
/* ================================ */

.dt2 .pagination {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    position: relative;
    font-size: 1rem;
}

.dt2 .pagination:before {
    content: 'Pages : ';
}

.dt2 .pagination > span.indicator {
    height: 1.3rem;
    position: absolute;
    border-radius: 50px;
    top: -2px;
    left: calc(56px + var(--currentPage)* 1.37rem);
    transition: all 0.2s ease-in;
    background: var(--primary-color);
    z-index: 0;
}

.dt2 .pagination > * {
    padding: 0 3px;
    margin-left: 1px;
    cursor: pointer;
    width: 1.3rem;
    text-align: center;
    z-index: 1;
    position: relative;
    transition: all 0.15s ease-in;
}

.dt2 .pagination > *.selected {
    color: var(--white-dim);
    font-weight: bold;
    /* background-color: var(--primary-color-darker); */
    border-radius: 20px;
}

.dt2 .pagination > :not(.selected):hover {
    color: var(--primary-color);
}

.dt2 .pagination .current-page {
    width: 4rem;
    border: none;
    background-color: transparent;
}

/* ============================= */
/* GROUP MENU STYLING */
/* ============================= */

.dt2 .group-menu-container {
    position: relative;
}

.dt2 .group-menu-button {
    background-color: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
}

.dt2 .group-menu-button:hover,
.dt2 .group-menu-button:focus {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.p-menu.group-menu {
    min-width: 250px;
}

.p-menu.group-menu .p-menuitem-content.group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.p-menu.group-menu .p-menuitem-content.group-item:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.p-menu.group-menu .flexcol {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 1rem;
    width: 100%;
}

.p-menu.group-menu .actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.p-menu.group-menu .cursor {
    cursor: pointer;
}

.p-menu.group-menu .cursor:hover {
    text-decoration: underline;
}

.p-menu.group-menu .actions span {
    cursor: pointer;
}

.p-menu.group-menu .actions span:hover {
    color: var(--primary-color);
}