table.dataTable {
    clear: both;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    max-width: none !important;
    border-collapse: separate !important;
    border-spacing: 0;
    font-size: 12px;
}

table.dataTable th,
table.dataTable td {
    font-size: var(--body-font-size);
}

.dt-bottom-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    height: 14px;
    margin-top: 2px;
}

.dt-bottom-scroll>div {
    height: 1px;
    min-width: 1px;
}

.dataTables_scrollBody {
    transform: rotateX(180deg);
}

.dataTables_scrollBody table {
    transform: rotateX(180deg);
}

th.dt-nowrap {
    white-space: nowrap;
}

.dt-scroll-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    transform: rotateX(180deg);
}

.dt-scroll-wrap>* {
    transform: rotateX(180deg);
}

.dt-scroll-wrap>table {
    min-width: 1100px;
}

.dt-scroll-wrap .row {
    min-width: 1100px;
    flex-wrap: nowrap !important;
}

.table th {
    padding: 5px 10px 5px 20px;
    vertical-align: top;
    border: none;
    border-bottom: 2px solid var(--border-color);
    color: var(--text);
    font-weight: 600;
}

.table td {
    padding: 5px 10px 5px 20px;
    vertical-align: middle;
    border-top: 1px solid var(--border-color);
    color: var(--text);
    color: var(--text-gray);
}

.table> :not(:last-child)> :last-child>* {
    border-bottom: 2px solid var(--border-color) !important;
}

.table> :not(caption)>*>* {
    border-bottom-width: 0 !important;
}

table.dataTable>thead .sorting::before,
table.dataTable>thead .sorting_asc::before,
table.dataTable>thead .sorting_desc::before,
table.dataTable>thead .sorting_asc_disabled::before,
table.dataTable>thead .sorting_desc_disabled::before {
    display: none !important;
    content: none !important;
}

table.dataTable>thead .sorting::after,
table.dataTable>thead .sorting_asc::after,
table.dataTable>thead .sorting_desc::after {
    content: "\f0dc" !important;
    position: static !important;
    display: inline-block !important;
    margin-left: .25rem;
    width: 1em;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-style: normal;
    line-height: 1;
    color: currentColor;
    opacity: .25 !important;
}

table.dataTable>thead .sorting_asc::after {
    content: "\f0de" !important;
    opacity: 1 !important;
}

table.dataTable>thead .sorting_desc::after {
    content: "\f0dd" !important;
    opacity: 1 !important;
}

table.dataTable>thead .sorting_disabled::after,
table.dataTable>thead .sorting_asc_disabled::after,
table.dataTable>thead .sorting_desc_disabled::after {
    display: none !important;
    content: none !important;
}

.custom-pagination {
    margin-top: 0px;
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.pagination-info {
    display: flex;
    justify-content: end;
    align-items: center;
}

.dataTables_info {
    margin-right: 20px;
    color: var(--text-gray);
    font-size: 12px;
    padding-top: 0 !important;
}

.button-pagination {
    border: none;
    font-weight: 600;
}

.button-pagination i {
    font-size: 12px;
    letter-spacing: .7px;
    color: var(--text);
}

.page-link {
    border: none;
    font-weight: 600;
}

.page-item.active .page-link {
    z-index: 1;
    color: var(--primary) !important;
    background-color: var(--bg-color);
    border: none !important;
    padding: var(--button-padding);
}

.pagination .previous .page-link,
.pagination .next .page-link {
    vertical-align: middle;
    align-content: center;
    align-items: center;
    align-self: center;
    display: inline-block;
    background-color: var(--bg-color);
    border: none !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: var(--text) !important;
    padding: var(--button-padding);
}

.page-item:not(:first-child) .page-link {
    margin-left: 0;
}

.page-item.disabled .page-link {
    padding: var(--button-padding);
    pointer-events: none;
    cursor: auto;
    background-color: var(--bg-color);
    border: none !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: var(--text) !important;
}

.page-link {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: var(--text) !important;
    background-color: var(--bg-color);
    border: none !important;
    padding: var(--button-padding);
    height: 30px !important;
}

.pagination li {
    vertical-align: middle;
    align-content: center;
    align-items: center;
    align-self: center;
    display: inline;
}

td .badge {
    font-size: 12px;
    font-weight: normal;
    padding: var(--badge-padding);
}

td .badge.not-active {
    background-color: var(--bg-red-light) !important;
    color: var(--red);
}

td .badge.active {
    background-color: var(--bg-green-light) !important;
    color: var(--green);
}

.dt-right {
    text-align: right;
}

.toolbar-row {
    row-gap: 12px;
    align-items: center;
}

.toolbar-actions {
    gap: 12px 16px;
}

.toolbar-actions>* {
    margin-bottom: 0 !important;
}

.toolbar-actions .kolone-dropdown-wrapper {
    margin-left: 0 !important;
}

.kolone-dropdown-wrapper.dropdown:hover>.dropdown-content:not(.show) {
    display: none !important;
}

.toolbar-create {
    text-align: right;
}

.dt-scroll-wrap>table>thead>tr>th:first-child,
.dt-scroll-wrap>table>tbody>tr>td:first-child {
    position: sticky;
    left: 0;
    background: var(--card-bg);
    z-index: 2;
    box-shadow: 2px 0 4px -2px rgba(0, 0, 0, 0.08);
}

.dt-scroll-wrap>table>thead>tr>th:first-child {
    background-color: var(--light-gray);
}

.dt-scroll-wrap>table>thead>tr>th:first-child {
    z-index: 3;
}

.dt-scroll-wrap>table>tbody>tr.bg-light>td:first-child {
    background: var(--card-bg);
}

.dataTables_scrollBody table.dataTable>tbody>tr:hover>td:first-child {
    background: var(--bg-blue-light);
}

.d-flex > input.form-control.search,
.view-buttons > input.form-control.search {
    width: auto;
    min-width: 0;
    flex: 0 1 220px;
}

.d-flex:has(> input.form-control.search),
.view-buttons:has(> input.form-control.search) {
    min-width: 0;
    flex-wrap: nowrap !important;
    align-items: center;
}

.d-flex:has(> input.form-control.search) > :not(input.search),
.view-buttons:has(> input.form-control.search) > :not(input.search) {
    flex: 0 0 auto;
}

.d-flex > .me-auto:has(> input.form-control.search),
.d-flex > .me-auto:has(> .d-flex > input.form-control.search) {
    flex: 1 1 0;
    min-width: 0;
}

@media (max-width: 767.98px) {
    .toolbar-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
    }

    .toolbar-actions>* {
        width: 100%;
        margin-left: 0 !important;
    }

    .toolbar-actions .form-control.search {
        max-width: 100% !important;
    }

    .toolbar-actions .button-tertiary,
    .toolbar-actions .kolone-dropdown-wrapper>.button-tertiary {
        text-align: left;
        justify-content: flex-start;
    }

    .toolbar-actions .kolone-dropdown-wrapper .dropdown-content {
        left: 0;
        right: auto;
    }

    .toolbar-create {
        text-align: left;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 4px;
    }
}
  table tr:hover {
    background-color: var(--light-gray) !important;
}
[data-theme="dark"] table tr:hover {
    background-color: var(--bg-blue-light) !important;
}

[data-theme="dark"]  .dt-scroll-wrap>table>thead>tr>th:first-child {
    background-color: var(--bg-blue-light) !important;
}

.table td.table-cell-truncated,
table.dataTable td.table-cell-truncated {
    vertical-align: middle;
}

.table-cell-preview {
    display: block;
    max-width: var(--table-cell-max-width, 280px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.table-cell-preview>p,
.table-cell-preview>div,
.table-cell-preview>ul,
.table-cell-preview>ol,
.table-cell-preview li {
    display: inline;
    margin: 0;
    white-space: nowrap;
}

.table-cell-preview br {
    display: none;
}

.dt-sticky-first {
    position: sticky !important;
    left: 0;
    z-index: 2;
    background-color: var(--card-bg);
    box-shadow: 1px 0 0 var(--border-color, #ddd);
}

thead .dt-sticky-first {
    z-index: 4;
    background-color: var(--card-bg);
}

tr>.dt-sticky-first {
    background-color: var(--card-bg);
}

thead tr>.dt-sticky-first {
    background-color: var(--bg-blue-light);
}

tr:hover {
    background-color: var(--bg-blue-light);
}

.table>tbody>tr:hover>.dt-sticky-first,
table.dataTable>tbody>tr:hover>.dt-sticky-first {
    background-color: var(--bg-blue-light) !important;
    background-image: none !important;
    box-shadow: none;
}

.light-bg {
    background-color: var(--light-gray);
}

[data-theme="dark"] .light-bg {
    background-color: var(--bg-blue-light);
}

.dataTables_scrollBody table.dataTable>thead .sorting::before,
.dataTables_scrollBody table.dataTable>thead .sorting::after,
.dataTables_scrollBody table.dataTable>thead .sorting_asc::before,
.dataTables_scrollBody table.dataTable>thead .sorting_asc::after,
.dataTables_scrollBody table.dataTable>thead .sorting_desc::before,
.dataTables_scrollBody table.dataTable>thead .sorting_desc::after,
.dt-scroll-body table.dataTable>thead .sorting::before,
.dt-scroll-body table.dataTable>thead .sorting::after,
.dt-scroll-body table.dataTable>thead .sorting_asc::before,
.dt-scroll-body table.dataTable>thead .sorting_asc::after,
.dt-scroll-body table.dataTable>thead .sorting_desc::before,
.dt-scroll-body table.dataTable>thead .sorting_desc::after {
    display: none !important;
    content: none !important;
}

.table-view th {
    padding: 8px 10px;
}

.table-view td {
    padding: 5px 10px 5px 20px;
    vertical-align: middle;
    border-top: 1px solid var(--border-color);
    color: var(--text);
    color: var(--text-gray);
}

.dataTables_wrapper .custom-pagination {
    margin: 12px 0 0;
    min-width: 0;
    row-gap: 8px;
}

.dataTables_wrapper .custom-pagination>.pagination-length {
    display: flex;
    align-items: center;
    padding-left: 0;
}

.dataTables_wrapper .custom-pagination [id^="custom-pagination"] {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    margin: 0;
}

.dataTables_wrapper .custom-pagination>.pagination-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    padding-right: 0;
    text-align: right;
}

.dataTables_wrapper .custom-pagination .dataTables_info {
    width: auto;
    margin: 0;
    padding: 0 !important;
    white-space: nowrap;
}

.dataTables_wrapper .custom-pagination .dataTables_paginate {
    width: auto;
    margin: 0;
    padding: 0;
}

.dataTables_wrapper .custom-pagination .pagination {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0;
}

.dataTables_wrapper .custom-pagination .button-pagination,
.dataTables_wrapper .custom-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px !important;
    margin: 0;
    padding: 0 8px !important;
    line-height: 1;
    border-radius: var(--button-radius);
}

@media (max-width: 767.98px) {

    .dataTables_wrapper .custom-pagination>.pagination-length,
    .dataTables_wrapper .custom-pagination>.pagination-info {
        justify-content: center;
        padding: 0;
        text-align: center;
    }

    .dataTables_wrapper .custom-pagination .dataTables_paginate {
        max-width: 100%;
        overflow-x: auto;
    }
}

.dataTables_wrapper .custom-pagination :is(.previous, .next) .page-link {
    font-size: 0 !important;
}

.dataTables_wrapper .custom-pagination :is(.previous, .next) .page-link>* {
    display: none;
}

.dataTables_wrapper .custom-pagination :is(.previous, .next) .page-link::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 4px 0;
    border-color: #888 transparent transparent;
}

.dataTables_wrapper .custom-pagination .previous .page-link::after {
    transform: rotate(90deg);
}

.dataTables_wrapper .custom-pagination .next .page-link::after {
    transform: rotate(-90deg);
}

.dataTables_wrapper .custom-pagination .disabled .page-link::after {
    opacity: .4;
}

.button-pagination .pagination-arrow {
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 4px 0;
    border-color: #888 transparent transparent;
}

.button-pagination .pagination-arrow-prev {
    transform: rotate(90deg);
}

.button-pagination .pagination-arrow-next {
    transform: rotate(-90deg);
}

.button-pagination:is(.disabled, :disabled) .pagination-arrow {
    opacity: .4;
}
.dt-sticky-first,
.table tr > .dt-sticky-first,
table.dataTable tr > .dt-sticky-first {
    position: sticky !important;
    left: 0;
    z-index: 2;
    background-color: var(--card-bg, #fff) !important;
    background-image: none !important;
    background-clip: border-box;
    box-shadow: 1px 0 0 var(--border-color, #ddd) !important;
    opacity: 1;
}
thead tr > .dt-sticky-first,
tfoot tr > .dt-sticky-first,
.table > tbody > tr:hover > .dt-sticky-first,
table.dataTable > tbody > tr:hover > .dt-sticky-first {
    background-color: var(--card-bg, #fff) !important;
    background-image: linear-gradient(var(--bg-blue-light), var(--bg-blue-light)) !important;
}
thead tr > .dt-sticky-first {
    z-index: 4;
}
table :is(td, th) .badge:is(.status, .active, .not-active, .na-cekanju, .u-toku, .zavrseno, .odbijeno, .testiranje, .provera, .badge-success, .badge-secondary, .badge-info, .badge-warning, .badge-danger, .table-status-badge) {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 110px;
    min-height: 28px;
    width: auto;
    height: auto;
    padding: 5px 12px !important;
    margin: 0;
    border: 0;
    border-radius: 100px !important;
    font-family: inherit;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 18px !important;
    letter-spacing: normal;
    text-align: center !important;
    white-space: nowrap;
    vertical-align: middle;
}
table td .badge.badge-success {
    color: var(--green) !important;
    background-color: var(--bg-green-light) !important;
}
table td .badge.badge-danger {
    color: var(--red) !important;
    background-color: var(--bg-red-light) !important;
}
table td .badge.badge-warning {
    color: var(--yellow) !important;
    background-color: var(--bg-yellow-light) !important;
}
table td .badge.badge-info {
    color: var(--primary) !important;
    background-color: var(--bg-blue-light) !important;
}
table td .badge.badge-secondary {
    color: var(--text-gray) !important;
    background-color: var(--bg-grey-light) !important;
}

/* Match the fixed first cell to the hovered row. */
.table > tbody > tr:hover > .dt-sticky-first,
table.dataTable > tbody > tr:hover > .dt-sticky-first,
.dt-scroll-wrap > table > tbody > tr:hover > td:first-child,
.dataTables_scrollBody table.dataTable > tbody > tr:hover > td:first-child {
    background-color: var(--light-gray) !important;
    background-image: none !important;
}

[data-theme="dark"] .table > tbody > tr:hover > .dt-sticky-first,
[data-theme="dark"] table.dataTable > tbody > tr:hover > .dt-sticky-first,
[data-theme="dark"] .dt-scroll-wrap > table > tbody > tr:hover > td:first-child,
[data-theme="dark"] .dataTables_scrollBody table.dataTable > tbody > tr:hover > td:first-child {
    background-color: var(--card-bg) !important;
    background-image: linear-gradient(var(--bg-blue-light), var(--bg-blue-light)) !important;
}
[data-theme="dark"] .dt-scroll-wrap > table > thead > tr > th:first-child {
  background-color: var(--sticky-first-hover) !important;
}

.dt-scroll-wrap > table > thead > tr > th:first-child {
    background-color: #f5f5f5 !important
    }

table td:has(.button-icon),
table td:has(.button-table) {
    white-space: nowrap;
}

table td .d-flex:has(> .button-icon),
table td .d-flex:has(> .button-table) {
    flex-wrap: nowrap !important;
}

table td .button-icon,
table td .button-table {
    flex-shrink: 0;
}
.table tr > .dt-sticky-first,
table.dataTable tr > .dt-sticky-first {
    background-color: var(--card-bg) !important;
    background-image: none !important;
}
.table > tbody > tr.ticket-child > .dt-sticky-first,
table.dataTable > tbody > tr.ticket-child > .dt-sticky-first,
.table > tbody > tr:hover > .dt-sticky-first,
table.dataTable > tbody > tr:hover > .dt-sticky-first,
[data-theme="dark"] .table > tbody > tr:hover > .dt-sticky-first,
[data-theme="dark"] table.dataTable > tbody > tr:hover > .dt-sticky-first {
    background-color: var(--sticky-first-hover) !important;
    background-image: none !important;
}
table,
table tr,
table th,
table td {
    border-color: var(--border-color) !important;
}