/* Editing this file without clear understanding of the context is strictly prohibited */
/* as any change can impact the whole app. Contact the author if a change is required. */
/* Restrain from changing the naming, changing the order or removing any style in this file. */
/* THIS IS A WARNING!!! */

/* Poppins Light (300) */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Poppins Regular (400) */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Poppins Medium (500) */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Poppins SemiBold (600) */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Poppins Bold (700) */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Plus Jakarta Sans */
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/Plus_Jakarta_Sans/PlusJakartaSans-VariableFont_wght.ttf') format('truetype');
    font-style: normal;
    font-display: swap;
}

html, body {
    font-family: 'Plus Jakarta Sans', 'sans-serif' !important;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.pace .pace-progress {
    background: var(--pace-bar-bg) !important;
    height: var(--pace-bar-height) !important;
    top: 0;
}

.card-header {
    background-color: var(--gray-50) !important;
    color: var(--foreground) !important;
}

.card-body, .card {
    background: var(--background) !important;
    color: var(--foreground) !important;
}

.main-footer {
    background: var(--background) !important;
    color: var(--foreground) !important;
    border: 1px solid var(--border) !important;
    padding: 1.3rem 1rem;
}

.select2-container--default.select2-container--disabled .select2-selection--multiple, .ranges {
    background-color: var(--gray-100) !important;
}

.select2-selection__placeholder {
    color: var(--icon) !important;
}

.select2-container--default.select2-container--disabled .select2-selection--multiple,
.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: var(--disabled);
    color: var(--icon-disabled);
    opacity: 0.6;
}

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    color: var(--foreground);
    background: var(--background);
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    font-size: 15px;
}

.select2-container--default .select2-selection--single {
    height: 40px;
}

.select2.select2-hidden-accessible {
    width: auto !important;
}

.select2-dropdown {
    background: var(--background) !important;
    color: var(--foreground) !important;
    border: 1px solid var(--gray-300) !important;
    border-radius: 8px !important;
    margin-top: 8px;
    margin-bottom: 8px;
    overflow: hidden;
    min-height: 40px;
}

.select2-search--dropdown {
    background: var(--gray-50) !important;
    border-bottom: 1px solid var(--border) !important;
}

.select2-dropdown .select2-search__field {
    background: var(--background) !important;
    color: var(--foreground) !important;
    border: 1px solid var(--gray-300) !important;
    border-radius: 8px !important;
}

.select2-dropdown .select2-search__field:focus {
    border: 1px solid var(--primary) !important;
}

.select2-container--default .select2-results__option {
    border-radius: 8px !important;
}

.select2-container--default .select2-results__option:hover {
    background: var(--gray-100) !important;
    color: var(--foreground) !important;
}

.select2-container--default .select2-results__option--highlighted {
    background: var(--gray-100) !important;
    color: var(--foreground) !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background: var(--background) !important;
    color: var(--primary) !important;
}

.select2-container--default .select2-results__option[aria-selected=true]:hover {
    background: var(--gray-100) !important;
}

.select2-results__options {
    padding: 4px;
    font-size: 15px;
    transition: all 0.2s ease;
}

body.dark-mode .ranges {
    background-color: var(--gray) !important;
}

body.dark-mode .ranges li:hover {
    background-color: var(--border) !important;
}

.bg-subtle-dark {
    background-color: var(--background) !important;
    border-color: var(--gray-200) !important;
}

.bg-subtle-gray {
    background-color: var(--layout) !important;
    border-color: var(--gray-100) !important;
}

body.dark-mode .table td, .table th {
    border-bottom: 1px solid var(--border) !important;
    background-color: transparent !important;
}

body.dark-mode .select2-container--default .select2-selection--single {
    border-color: var(--border);
}

body.dark-mode .period-picker-end,
body.dark-mode #last-login-range-filter,
body.dark-mode #create-date-range {
    background: var(--background) !important;
    border: 1px solid var(--border) !important;
}

body.dark-mode td,
body.dark-mode .card-header-config {
    color: var(--foreground) !important;
}

body.dark-mode .list-group-item {
    background: var(--background) !important;
    color: var(--foreground) !important;
}

body.dark-mode .daterangepicker,
body.dark-mode .daterangepicker .calendar-table {
    background: var(--background) !important;
    color: var(--foreground) !important;
    border-color: var(--border) !important;
}

body.dark-mode .daterangepicker td {
    background: transparent !important;
}

body.dark-mode .daterangepicker td.in-range {
    background: var(--primary-100) !important;
}

body.dark-mode .daterangepicker td.ends {
    background: #fff !important
}

body.dark-mode .daterangepicker td.active {
    background: #2196f3 !important;
}

body.dark-mode .style-card-color,
body.dark-mode .config-card {
    background-color: var(--background) !important;
    border-color: var(--border) !important;
}

body.dark-mode input[type="date"]::-webkit-calendar-picker-indicator {
    color: var(--foreground);
    filter: invert(100%) sepia(0%) saturate(100%) hue-rotate(0deg);
}

.form-control[readonly] {
    background: var(--disabled) !important;
    border: 1px solid var(--border) !important;
}

.dropdown-menu {
    background-color: var(--background) !important;
    color: var(--foreground) !important;
    border: 1px solid var(--border) !important;
}

.dropdown-divider {
    border-color: var(--border) !important;
}

.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl {
    padding-right: 0;
    padding-left: 0;
}

.content-wrapper > .content {
    padding: 0;
}

.content-header {
    padding: 0 0 24px 0;
}

/* Breadcrumb */

.page-header {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.page-title {
    font-size: 28px !important;
    font-weight: 700;
}

.page-subtitle {
    font-size: 20px !important;
    font-weight: 700;
}

.custom-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.custom-breadcrumb i {
    color: var(--icon);
    font-size: 16px;
}

.custom-breadcrumb a {
    color: var(--icon);
    font-weight: 500;
}

.custom-breadcrumb a:hover {
    color: var(--gray-600) !important;
}

.custom-breadcrumb span {
    color: var(--primary) !important;
}

/* Card utility classes */
.custom-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 1px 2px 0 #1018280A;
}

.custom-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    border-radius: 16px 16px 0 0;
}

.custom-card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    margin-bottom: 0px;
}

.custom-card-body {
    padding: 20px;
}

.custom-card-overlay {
    display: none;
    inset: 0;
    position: absolute;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 0 0 16px 16px;
    z-index: 50;
    width: 100%;
    height: 100%
}

.chart-loading-overlay {
    border-radius: 16px;
}

.custom-grid-columns-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.custom-grid-span-full {
    grid-column: 1 / -1;
}

.custom-grid-last {
    grid-column: -2 / -1;
}

.custom-grid-items-end {
    align-items: end;
}

.card-column-gap-16 {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: start;
}

.card-child-align-end {
    align-self: end;
}

.w-fit {
    width: fit-content !important;
}

.h-fit {
    height: fit-content !important;
}

.custom-section-title {
    font-weight: 600;
    font-size: 24px;
    line-height: 28px;
    margin: 0 !important;
}

.svg-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Table styles */

.custom-table td {
    padding: 20px 24px;
    border-top: 1px solid var(--border) !important;
}

.custom-table th {
    padding: 16px 24px;
    color: var(--icon);
    font-size: 15px;
    font-weight: 500 !important;
    line-height: 20px;
}

.custom-table.table-header-border th:not(:first-child) {
    border-left: 1px solid var(--border) !important;
}

.custom-table.table-header-border .parent-row,
.custom-table.table-header-border #parent-row {
    border-bottom: 1px solid var(--border) !important;
}

.custom-table.table-header-border .child-th {
    border-left: 1px solid var(--border) !important;
}

.custom-table {
    border: 1px solid var(--border);
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    position: relative;
}

.custom-table thead {
    background: var(--gray-50);
}

.table-card table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control,
table.dataTable.custom-table.dtr-inline.collapsed > tbody > tr > td.dtr-control {
    position: relative;
    padding-left: 54px;
    cursor: pointer;
}

.table-card table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before, table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before,
table.dataTable.custom-table.dtr-inline.collapsed > tbody > tr > td.dtr-control:before, table.dataTable.custom-table.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
    top: 50%;
    left: 20px;
    height: 18px;
    width: 18px;
    padding: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    color: var(--icon);
    border: 1.5px solid var(--icon);
    border-radius: 1em;
    box-shadow: none;
    box-sizing: content-box;
    text-align: center;
    content: "\f054";
    background-color: var(--background);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
    line-height: 1em;
    text-indent: 0 !important;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.table-card table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control:before, table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th.dtr-control:before,
table.dataTable.custom-table.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control:before, table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th.dtr-control:before {
    transform: rotate(90deg);
    background-color: var(--background);
}

.table-card table tr.child ul.dtr-details,
table.custom-table tr.child ul.dtr-details {
    background: var(--gray-50);
    width: 100%;
    padding: 16px !important;
    border-radius: 0 0 8px 0;
}

.table-card table.dataTable > tbody > tr.child span.dtr-title,
table.dataTable.custom-table > tbody > tr.child span.dtr-title {
    font-weight: 600;
}

.table-card table.dataTable > tbody > tr.child ul.dtr-details > li,
table.dataTable.custom-table > tbody > tr.child ul.dtr-details > li {
    border-bottom: none;
    display: flex;
    gap: 12px;
    align-items: center;
}

.table-card table tr.child td.child,
table.custom-table tr.child td.child {
    padding: 0 0 0 50px;
}

.custom-table th.sorting::before,
.custom-table th.sorting::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 8px;
    font-size: 0.75rem;
    display: block !important;
    color: var(--icon);
    opacity: 0.5;
}

.custom-table th.sorting::before {
    content: "\f077" !important; /* chevron-up */
    top: calc(40% - 6px);
}

.custom-table th.sorting::after {
    content: "\f078" !important; /* chevron-down */
    top: calc(40% + 6px);
}

.custom-table th.sorting,
.custom-table th.sorting_asc,
.custom-table th.sorting_desc {
    position: relative;
    padding-right: 30px !important;
}

.custom-table th.sorting_asc::before,
.custom-table th.sorting_asc::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 8px;
    font-size: 0.75rem;
    display: block !important;
}

.custom-table th.sorting_asc::before {
    content: "\f077" !important; /* chevron-up */
    top: calc(40% - 6px);
    color: var(--primary);
    opacity: 1;
}

.custom-table th.sorting_asc::after {
    content: "\f078" !important; /* chevron-down */
    top: calc(40% + 6px);
    color: var(--icon);
    opacity: 0.5;
}

table.dataTable.custom-table > thead .sorting:before,
table.dataTable.custom-table > thead .sorting:after{
    right: 0.5rem;
}

table.dataTable.custom-table th.sorting_desc::before,
table.dataTable.custom-table th.sorting_desc::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 8px !important;
    font-size: 0.75rem;
    display: block !important;
}

.custom-table th.sorting_desc::before {
    content: "\f077" !important; /* chevron-up */
    top: calc(40% - 6px);
    color: var(--icon);
    opacity: 0.5;
}

.custom-table th.sorting_desc::after {
    content: "\f078" !important; /* chevron-down */
    top: calc(40% + 6px);
    color: var(--primary);
    opacity: 1;
}

table.dataTable.dtr-inline.collapsed.custom-table > tbody > tr > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed.custom-table > tbody > tr > th.dtr-control:before {
    content: "\f054" !important;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
    line-height: 1em;
    text-indent: 0 !important;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

table.dataTable.dtr-inline.collapsed.custom-table > tbody > tr.parent > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed.custom-table > tbody > tr.parent > th.dtr-control:before {
    transform: rotate(90deg) !important;
    background-color: var(--background) !important;
}

.custom-table tr.child td.child {
    width: 100% !important;
    position: relative;
}

.custom-table tr.child td.child .dtr-details-sibling {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 20px;
}

.custom-table tr.child td.child .dtr-line-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.custom-table tr.child td.child .dtr-vertical-line {
    position: absolute;
    top: 0;
    left: 33px;
    height: 50%;
    width: 2px;
    background-color: var(--border);
}

.custom-table tr.child td.child .dtr-corner-element {
    position: absolute;
    top: 50%;
    left: 33px;
    height: 16px;
    width: 17px;
    border-bottom-left-radius: 8px;
    border-bottom: 2px solid var(--border);
    border-left: 2px solid var(--border);
    opacity: 0 !important;
    transform: scale(0) !important;
    transition: opacity 0.3s ease-out 0.3s, transform 0.3s ease-out 0.3s;
}

.custom-table tr.child td.child .dtr-sibling-visible .dtr-corner-element {
    opacity: 1 !important;
    transform: scale(1) !important;
}

.dataTables_processing.card {
    z-index: 1051;
    border: 1px solid var(--border) !important;
    background-color: var(--gray-100) !important;
    color: var(--primary) !important;
}

/* Animation styles for responsive line drawing */
.custom-table tr.child td.child .dtr-details-sibling {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.custom-table tr.child td.child .dtr-details-sibling.dtr-sibling-visible {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.custom-table tr.child td.child .dtr-vertical-line {
    height: 0 !important;
    transition: height 0.5s ease-out;
}

.custom-table tr.child td.child .dtr-sibling-visible .dtr-vertical-line {
    height: 50% !important;
}

.table-card-body {
    background: var(--background);
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow-y: visible;
    overflow-x: auto;
    width: 100%;
    position: relative;
}

.table-card-body-with-header {
    border-radius: 0 0 16px 16px;
}

.table-card-header {
    background: var(--background);
    border-radius: 16px 16px 0 0;
    border: 1px solid var(--border);
    border-bottom: none;
    padding: 16px 24px;
}

.table-card-title {
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
}

.table-card .dataTables_length,
.dataTables_wrapper .dataTables_length {
    margin-top: 16px;
}

.table-card .dataTables_length label,
.dataTables_wrapper .dataTables_length label {
    margin-bottom: 0;
    font-weight: 400 !important;
    color: var(--gray);
}

.table-card .dataTables_length label select,
.dataTables_wrapper .dataTables_length label select {
    margin-left: 12px;
    color: var(--gray) !important;
}

.table-card .dataTables_filter,
.dataTables_wrapper .dataTables_filter {
    position: relative;
}

.table-card .dataTables_filter label,
.dataTables_wrapper .dataTables_filter label {
    margin-bottom: 0;
    font-size: 0;
    display: inline-block;
    position: relative;
}

.table-card .dataTables_filter label::before,
.dataTables_wrapper .dataTables_filter label::after {
    content: "\f002";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--icon);
    pointer-events: none;
    font-size: 16px;
    z-index: 1;
}

.table-card .dataTables_filter input[type="search"],
.dataTables_wrapper .dataTables_filter input[type="search"] {
    position: relative;
    margin-left: 0;
    margin-bottom: 10px;
    display: block;
    width: 100%;
    padding: 12px 16px 12px 38px;
    font-size: 15px;
    line-height: 1.5;
    border: 1px solid var(--border) !important;
    outline: none;
    box-shadow: 0 1px 2px 0 #1018280A;
    color: var(--foreground);
    background-color: var(--background) !important;
    transition: all 0.2s ease;
    border-radius: 8px;
    height: 40px;
}

.table-card .dataTables_filter input[type="search"]:hover,
.dataTables_wrapper .dataTables_filter input[type="search"]:hover,
.table-card .jump-to-page input:hover,
.dataTables_wrapper .jump-to-page input:hover {
    background: var(--gray-50) !important;
}

.table-card .dataTables_filter input[type="search"]:focus,
.dataTables_wrapper .dataTables_filter input[type="search"]:focus,
.table-card .jump-to-page input:focus,
.dataTables_wrapper .jump-to-page input:focus {
    border-color: var(--primary-stroke);
    box-shadow: 0 0 0 0.2rem var(--primary-focus);
}

.table-card .dt-controls-wrapper,
.dataTables_wrapper .dt-controls-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    margin-bottom: 16px;
}

.table-card .dt-controls-wrapper .dt-buttons,
.dataTables_wrapper .dt-controls-wrapper .dt-buttons {
    margin: 0;
    height: 40px;
}

.table-card .dt-controls-wrapper .dataTables_length,
.dataTables_wrapper .dt-controls-wrapper .dataTables_length {
    margin: 0;
}

.table-card .dt-controls-wrapper .dataTables_filter,
.dataTables_wrapper .dt-controls-wrapper .dataTables_filter {
    margin: 0;
}

.table-card .dt-controls-wrapper .dataTables_filter label input,
.dataTables_wrapper .dt-controls-wrapper .dataTables_filter label input {
    margin: 0;
}

.table-card .dt-footer-wrapper,
.dataTables_wrapper .dt-footer-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
}

.table-card .dt-footer-wrapper .dataTables_info,
.dataTables_wrapper .dt-footer-wrapper .dataTables_info{
    margin: 0;
}

.table-card .dt-footer-wrapper .dataTables_paginate,
.dataTables_wrapper .dt-footer-wrapper .dataTables_paginate {
    margin: 0;
    gap: 16px;
}

.table-card .dt-footer-wrapper .jump-to-page,
.dataTables_wrapper .dt-footer-wrapper .jump-to-page {
    margin: 0 !important;
}

.table-card .dt-buttons .buttons-colvis,
.table-card .dt-buttons .buttons-colvis:active,
.table-card .dt-buttons .buttons-colvis:hover,
.dataTables_wrapper .dt-buttons .buttons-colvis,
.dataTables_wrapper .dt-buttons .buttons-colvis:active,
.dataTables_wrapper .dt-buttons .buttons-colvis:hover {
    border-radius: 8px 0 0 8px;
    background: var(--background) !important;
    color: var(--gray) !important;
    border: 1px solid var(--border) !important;
}

.table-card .dt-buttons .buttons-excel,
.table-card .dt-buttons .buttons-pdf,
.dataTables_wrapper .dt-buttons .buttons-excel,
.dataTables_wrapper .dt-buttons .buttons-pdf {
    border-radius: 0 8px 8px 0;
    background: var(--background) !important;
    color: var(--foreground) !important;
    border-color: var(--border);
    border-width: 1px;
}

.table-card .dt-buttons .buttons-pdf,
.dataTables_wrapper .dt-buttons .buttons-pdf {
    border-radius: 8px 0 0 8px;
}

.table-card .dt-buttons .buttons-csv ,
.dataTables_wrapper .dt-buttons .buttons-csv {
    background: var(--background) !important;
    color: var(--foreground) !important;
    border-color: var(--border);
    border-width: 1px;
}

.table-card .dataTables_info,
.dataTables_wrapper .dataTables_info{
    color: var(--gray)
}

.table-card .jump-to-page input,
.table-card .custom-select,
.dataTables_wrapper .jump-to-page input,
.dataTables_wrapper .custom-select {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 15px;
    line-height: 1.5;
    border: 1px solid var(--border) !important;
    outline: none;
    box-shadow: 0 1px 2px 0 #1018280A;
    color: var(--foreground);
    background-color: var(--background) !important;
    transition: all 0.2s ease;
    border-radius: 8px;
    height: 40px;
    text-transform: capitalize;
}

.table-card .jump-to-page input,
.dataTables_wrapper .jump-to-page input {
    margin-bottom: 0px;
    padding: 12px;
}

.table-card .page-item .page-link,
.dataTables_wrapper .page-item .page-link {
    border-radius: 8px;
}

.table-card .pagination .paginate_button.previous .page-link,
.table-card .pagination .page-item.previous .page-link,
.dataTables_wrapper .pagination .paginate_button.previous .page-link,
.dataTables_wrapper .pagination .page-item.previous .page-link {
    font-size: 0 !important;
    position: relative;
    text-indent: 0 !important;
}

.table-card .pagination .paginate_button.previous .page-link::before,
.table-card .pagination .page-item.previous .page-link::before,
.dataTables_wrapper .pagination .paginate_button.previous .page-link::before,
.dataTables_wrapper .pagination .page-item.previous .page-link::before {
    content: "\f060";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.table-card .pagination .paginate_button.next .page-link,
.table-card .pagination .page-item.next .page-link,
.dataTables_wrapper .pagination .paginate_button.next .page-link,
.dataTables_wrapper .pagination .page-item.next .page-link {
    font-size: 0 !important;
    position: relative;
    text-indent: 0 !important;
}

.table-card .pagination .paginate_button.next .page-link::before,
.table-card .pagination .page-item.next .page-link::before,
.dataTables_wrapper .pagination .paginate_button.next .page-link::before,
.dataTables_wrapper .pagination .page-item.next .page-link::before {
    content: "\f061";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.table-card .pagination,
.dataTables_wrapper .pagination{
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.table-card .pagination .paginate_button .page-link,
.dataTables_wrapper .pagination .paginate_button .page-link{
    color: var(--gray);
    border-color: var(--border);
    background: var(--background);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.table-card .pagination .paginate_button .page-link:hover,
.dataTables_wrapper .pagination .paginate_button .page-link:hover {
    background: var(--gray-50);
}

.table-card .pagination .paginate_button.active .page-link,
.dataTables_wrapper .pagination .paginate_button.active .page-link {
    border-color: var(--border);
    background: var(--primary-400);
    color: #fff;
}

.table-card .pagination .paginate_button.disabled a,
.table-card .page-item.disabled .page-link,
.dataTables_wrapper .pagination .paginate_button.disabled a,
.dataTables_wrapper .page-item.disabled .page-link {
    background: var(--gray-100) !important;
    border-color: var(--border) !important;
    color: var(--gray) !important;
}

.table-card .pagination .paginate_button.active .page-link:hover,
.dataTables_wrapper .pagination .paginate_button.active .page-link:hover{
    background: var(--primary-500);
}

.table-card .dataTables_paginate,
.dataTables_wrapper .dataTables_paginate {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
}

.table-card div.dataTables_wrapper div.dataTables_info,
div.dataTables_wrapper div.dataTables_info {
    padding-top: 0;
    color: var(--foreground);
    font-size: 14px;
    font-weight: 500;
}

.table-card .dtr-data .dropdown .dropdown-menu,
.table-card .dropdown .dropdown-menu,
.dataTables_wrapper .dtr-data .dropdown .dropdown-menu,
.dataTables_wrapper .dropdown .dropdown-menu{
    padding: 8px;
}

.table-card .dtr-data .dropdown .dropdown-menu .dropdown-item,
.table-card .dropdown .dropdown-menu .dropdown-item,
.dataTables_wrapper .dtr-data .dropdown .dropdown-menu .dropdown-item,
.dataTables_wrapper .dropdown .dropdown-menu .dropdown-item {
    border-radius: 8px;
    font-size: 15px;
}

.table-card .dtr-data .dropdown .dropdown-menu .dropdown-item:hover,
.table-card .dropdown .dropdown-menu .dropdown-item:hover,
.dataTables_wrapper .dtr-data .dropdown .dropdown-menu .dropdown-item:hover,
.dataTables_wrapper .dropdown .dropdown-menu .dropdown-item:hover{
    background: var(--primary-50) !important;
    color: var(--foreground) !important;
}

.table-card td a:not(.btn):not(.dropdown-item),
.dataTables_wrapper td a:not(.btn):not(.dropdown-item),
.underline-link {
    color: var(--foreground);
    text-decoration: underline;
    transition: color 0.3s;
    cursor: pointer;
}

.table-card td a:not(.btn):not(.dropdown-item):hover,
.dataTables_wrapper td a:not(.btn):not(.dropdown-item):hover,
.underline-link:hover {
    color: var(--gray-500) !important;
}

.dt-button-collection .dropdown-menu:has(.dt-button.dropdown-item.buttons-columnVisibility) {
    border-radius: 8px;
    padding: 4px 0 !important;
}

.dt-button-collection .dropdown-menu .dt-button.dropdown-item.buttons-columnVisibility {
    font-size: 14px !important;
    padding: 10px 40px 10px 16px;
    border: 1px solid var(--border);
}

.dt-button-collection .dropdown-menu .dt-button.dropdown-item.buttons-columnVisibility:hover {
    background: var(--gray-50) !important;
    color: var(--foreground) !important;
}

.dt-button-collection .dropdown-menu .dt-button.dropdown-item.buttons-columnVisibility.active {
    position: relative;
    background-color: var(--gray-100) !important;
}

.dt-button-collection .dropdown-menu .dt-button.dropdown-item.buttons-columnVisibility.active::after {
    content: "";
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;

    background-color: var(--foreground);

    -webkit-mask-image: url("data:image/svg+xml;utf8,\
        <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'>\
        <path d='M20 6 9 17l-5-5'/>\
        </svg>");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;

    mask-image: url("data:image/svg+xml;utf8,\
        <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'>\
        <path d='M20 6 9 17l-5-5'/>\
        </svg>");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.dt-button-collection.dropdown-menu {
    min-width: 100% !important;
}

.dt-button-collection {
    width: 100%;
}

@media (max-width: 850px) {
    .table-card .dt-footer-wrapper,
    .dataTables_wrapper .dt-footer-wrapper {
        flex-direction: column;
    }
}

/* Table Badge Styles */
.custom-badge {
    padding: 1px 8px;
    border-radius: 128px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    white-space: nowrap;
    width: fit-content;
}

.custom-badge-sm-radius {
    border-radius: 8px;
}

.custom-badge-success {
    border: 1px solid var(--border-success, #10b981);
    background: var(--success-100, #d1fae5);
    color: var(--success, #059669);
}

.custom-badge-warning {
    border: 1px solid var(--border-warning, #f59e0b);
    background: var(--warning-100, #fef3c7);
    color: var(--warning, #d97706);
}

.custom-badge-danger {
    border: 1px solid var(--border-danger, #ef4444);
    background: var(--danger-100, #fee2e2);
    color: var(--danger, #dc2626);
}

.custom-badge-primary {
    border: 1px solid var(--border-primary, #00aee0);
    background: var(--primary-50);
    color: var(--primary);
}

.custom-badge-info {
    border: 1px solid var(--border-info);
    background: var(--info-50);
    color: var(--info);
}

.custom-badge-purple {
    border: 1px solid var(--border-purple);
    background: var(--purple-50);
    color: var(--purple);
}

.custom-badge-purple-light {
    border: 1px solid var(--border-purple-light);
    background: var(--purple-light-50);
    color: var(--purple-light);
}

.custom-badge-purple-dark {
    border: 1px solid var(--border-purple-dark);
    background: var(--purple-dark-50);
    color: var(--purple-dark);
}

.custom-badge-dark {
    border: 1px solid var(--foreground, #ef4444);
    background: var(--foreground, #fee2e2);
    color: var(--background, #dc2626);
}

.custom-badge-default {
    border: 1px solid var(--icon, #6b7280);
    background: var(--gray-50, #f9fafb);
    color: var(--icon, #6b7280);
}

.border-border {
    border-color: var(--border) !important;
}

.page-title {
    font-size: 28px !important;
    line-height: 38px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: var(--foreground) !important;
}

/* Default filters grid layout */
.filters-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 1600px) {
    .filters-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .filters-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.filters-grid .select2.select2-container.select2-container--default {
    width: 100% !important;
}

/* Modal styles */
.ui-button {
    margin-right: 0;
}

/* Modal transitions - longer animation */
.modal.fade .modal-dialog {
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    transform: translate(0, -50px);
    opacity: 0;
}

.modal.show .modal-dialog {
    transform: translate(0, 0);
    opacity: 1;
}

.modal.fade {
    transition: opacity 0.4s ease-out;
}

.modal.show {
    opacity: 1;
}

.modal-backdrop.fade {
    transition: opacity 0.4s ease-out;
}

.modal-backdrop.show {
    opacity: 0.5;
}

.modal-content {
    border-radius: 10px;
    padding: 24px;
    background: var(--background) !important;
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-body {
    padding: 0;
}

.modal-header {
    padding: 0 0 24px 0;
    border: none;
}

.modal-footer {
    padding: 24px 0 0 0;
    border: none;
    display: flex;
    gap: 16px;
}

.modal-header .close {
    padding: 12px;
    color: var(--foreground);
}

.modal-title {
    color: var(--foreground);
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
}

.modal-title-icon-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--primary);
}

.modal-footer > * {
    margin: 0;
}

.jconfirm .jconfirm-box {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-radius: 10px;
    background: var(--background) !important;
}

.jconfirm .jconfirm-box .jconfirm-buttons {
    padding-bottom: 0;
    display: flex;
    gap: 16px;
}

.jconfirm.jconfirm-modern .jconfirm-box .jconfirm-buttons button {
    margin-left: 0 !important;
    text-transform: capitalize;
    border-radius: 8px;
}

.jconfirm.jconfirm-modern .jconfirm-box div.jconfirm-title-c {
    color: var(--foreground);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-align: start;
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 0;
}

.jconfirm.jconfirm-modern .jconfirm-box div.jconfirm-content {
    color: var(--foreground);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    margin-bottom: 0;
    text-align: start;
}

.jconfirm .jconfirm-box div.jconfirm-content-pane {
    margin-bottom: 0;
}

.jconfirm.jconfirm-modern .jconfirm-bg {
    background: black !important;
}

.notification {
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.notification-warning {
    background: var(--warning-100);
    color: var(--warning);
    border: 1px solid var(--border-warning);
}

.notification-danger {
    background: var(--danger-100);
    color: var(--danger);
    border: 1px solid var(--border-danger);
}

.range-picker-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}

.card-header-tabs {
    margin-right: 0;
    margin-left: 0;
}

@media (max-width: 500px) {
    .range-picker-container {
        flex-direction: column;
    }

    .range-picker-container > * {
        width: 100% !important;
    }
}

.dropdown-hide-arrow {
    position: relative;
}

.dropdown-hide-arrow:after {
    display: none !important;
}

.break-word {
    word-wrap: break-word;
}

.word-break-all {
    word-break: break-all;
}

.form-group label,
.custom-form-group > label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500 !important;
    font-size: 14px;
}

.icon-button {
    color: #fff !important;
    height: 40px !important;
    width: 40px !important;
    font-size: 16px !important;
}

.icon-button:hover,
.icon-button:active,
.icon-button:focus {
    color: #fff !important;
}

.ui-button.icon-button i {
    margin-left: 6px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.modal-xxl {
    max-width: 1900px;
}

textarea.form-control, input[type="date"].form-control {
    background: var(--background) !important;
    border-color: var(--border) !important;
    color: var(--foreground) !important;
    border-radius: 8px !important;
}

textarea.form-control:disabled {
    background: var(--gray-100) !important;
    border-color: var(--border) !important;
    color: var(--foreground) !important;
    border-radius: 8px !important;
}

.border-md {
    border-radius: 8px !important;
}

.border-xl {
    border-radius: 16px !important;
}

.color-foreground,
.color-foreground:hover {
    color: var(--foreground) !important;
}

.color-warning,
.color-warning:hover {
    color: var(--warning) !important;
}

.color-success,
.color-success:hover {
    color: var(--success) !important;
}

.color-danger,
.color-danger:hover {
    color: var(--danger) !important;
}

.color-primary,
.color-primary:hover {
    color: var(--primary) !important;
}

.color-muted,
.color-muted:hover {
    color: #888E96 !important;
}

.actions-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    .actions-container {
        flex-direction: column;
    }

    .actions-container > * {
        width: 100%;
    }

    .actions-container > .dropdown > * {
        width: 100%;
    }
}

/* Accordion styles */
.accordion-button {
    background: var(--background);
    color: var(--foreground);
    border-radius: 16px !important;
    padding: 16px 24px;
}

.accordion-item {
    background: var(--background) !important;
    color: var(--foreground) !important;
    border: 1px solid var(--border);
}

.accordion-item:first-of-type {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.accordion-item:last-of-type {
    border-bottom-right-radius: 16px;
    border-bottom-left-radius: 16px;
}

.accordion-button::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 600;
    content: "\f078" !important;
    color: var(--gray);
    background-image: none !important;
}

.cursor-pointer {
    cursor: pointer !important;
}

.bg-primary,
body.dark-mode .bg-primary {
    background: var(--primary) !important;
}

.bg-warning,
body.dark-mode .bg-warning {
    background: var(--warning) !important;
}

.bg-danger,
body.dark-mode .bg-danger {
    background: var(--danger) !important;
}

.bg-info,
body.dark-mode .bg-info {
    background: var(--info) !important;
}

.bg-success,
body.dark-mode .bg-success {
    background: var(--success) !important;
}

.table-wrapper {
    background-color: var(--background);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.table-wrapper-title {
    text-transform: capitalize;
    font-weight: 600;
    font-size: 16px;
    padding: 16px 24px;
}

.progress {
    height: 6px;
    border-radius: 3px;
    background-color: #f1f3f4;
}

.progress-bar {
    border-radius: 3px;
    background-color: var(--primary);
}

.number-badge {
    padding: 0 6px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
}

.number-badge.info-badge {
    background: var(--primary);
    border: 1.2px solid var(--primary-stroke);
    color: #fff;
}

.number-badge.warning-badge {
    background: var(--warning);
    border: 1.2px solid var(--warning-600);
    color: #fff;
}

.number-badge.danger-badge {
    background: var(--danger);
    border: 1.2px solid var(--danger-600);
    color: #fff;
}

.empty-placeholder-container {
    background: var(--background);
    border-radius: 16px;
    border: 1px solid var(--border);
    color: var(--gray-600);
    box-shadow: 0px 1px 2px 0px #1018280A;
    min-height: 480px;
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

/* Stepper */
.custom-stepper {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.custom-stepper .step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    padding: 4px 6px;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color .2s, background .2s, color .2s;
    color: var(--gray);
    border: 1px solid var(--border);
}

.custom-stepper .step-circle:hover {
    background: var(--gray-50);
}

.custom-stepper .step-circle.active {
    background: var(--primary-600);
    border-color: var(--primary);
    color: #fff;
}

.custom-stepper .step-circle.completed {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.custom-stepper .step-line {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 6px;
    max-width: 24px;
    gap: 2px;
}

.custom-stepper .step-line-segment {
    flex: 0 0 auto;
    height: 2px;
    border-radius: 999px;
    background: var(--border);
}

.custom-stepper .step-line-segment:first-child,
.custom-stepper .step-line-segment:last-child {
    width: 4px;
}

.custom-stepper .step-line-segment {
    width: 6px;
}

.custom-stepper .step-circle.active + .step-line .step-line-segment,
.custom-stepper .step-circle.completed + .step-line .step-line-segment {
    background: var(--primary);
}

.step-content-panel {
    display: none;
}

.step-content-panel.active {
    display: block;
}