/*
 * Core: General Layout Style
 * -------------------------
 */
body {
    zoom: 0.9 !important;
}

html,
body {
    overflow-x: hidden;
    min-height: 100%;
}

.vh-120 {
    height: 120vh;
}

.modal-open {
    padding-right: 0px !important;
}

body.swal2-shown {
    padding-right: 0px !important;
}

/* .wrapper {
    overflow: hidden;
    min-height: 100%;
}
body {
    font-family: "Poppins", sans-serif !important;
    zoom: 0.87 !important;
} */

.nav-pills .nav-link {
    border-radius: 0;
}

.nav-pills .nav-link:not(.active):hover {
    color: #777;
}

.card-body .nav-pills {
    border-right: 1px solid #f4f6f9;
}

.card-body .nav-pills .nav-link {
    border-radius: 100px;
}

@media (min-width: 992px) {

    .content-wrapper,
    .main-footer,
    .main-header {
        /* margin-left: 16%; */
        margin-left: 280px;
    }
}

/* .main-footer {
  margin-left: 401px !important;
} */

.main-sidebar,
.main-sidebar:before {
    transition: margin-left 0.3s ease-in-out, width 0.3s ease-in-out;
    width: fit-content;
    min-width: 280px;
    height: 100%;
}

.nav-sidebar .nav-item .nav-icon {
    width: 2.4rem !important;
}

.nav-sidebar>.nav-item .nav-icon.fa-mobile {
    font-size: 1.6rem;
}

.content-header {
    padding: 15px 1.5rem;
}

.content-wrapper>.content {
    padding: 0 1.5rem;
}

.content-headerfixed-top {
    margin-top: 60px;
}

.sidebar {
    padding-left: 0;
    padding-right: 0;
}

body:not(.sidebar-collapse) .main-sidebar .nav-treeview>.nav-item>.nav-link {
    color: #676767;
    padding-left: 2rem;
    font-size: 90% !important;
}

body:not(.sidebar-collapse) .main-sidebar .nav-treeview .nav-treeview .nav-item>.nav-link {
    padding-left: 3rem;
}

body:not(.sidebar-collapse) .main-sidebar .nav-treeview>.nav-item .nav-icon {
    font-size: 95% !important;
}

.small-box .icon i {
    font-size: 90px !important;
}

.pb-35 {
    padding-bottom: 0.9rem !important;
}

.dt-buttons.btn-group {
    display: inline;
}

div.dataTables_wrapper div.dataTables_filter {
    height: 60px;
}

div.dataTables_filter input.form-control.input-sm {
    margin: 0 20px;
}

div.dataTables_wrapper div.dataTables_info {
    float: left;
    padding-top: 10px;
}

div.dataTables_wrapper .dataTables_length {
    float: left;
}

.pagination>li>a {
    display: inline-flex !important;
    justify-content: center !important;
    min-width: fit-content !important;
    /* border-radius: unset !important; */
    border: unset !important;
    /* border-radius: 70px !important; */
    font-size: 12px;
    line-height: 1;
    margin: 0 3px;
    width: 32px;
    height: 32px;
    text-align: center;
    padding: 10px 12px;
}

#dataTableBuilder_previous a,
#dataTableBuilder_next a {
    width: auto !important;
}

/*.pagination > li > a:hover, .pagination > li > span:hover, .pagination > li > a:focus, .pagination > li > span:focus {*/
/*background-color: #a9b6b7;*/
/*border: 1px solid #878a8a !important;*/
/*}*/
.disabled {
    background-color: #dfe4e8 !important;
}

.pagination>.disabled>span,
.pagination>.disabled>span:hover,
.pagination>.disabled>span:focus,
.pagination>.disabled>a,
.pagination>.disabled>a:hover,
.pagination>.disabled>a:focus {
    color: #b9b9b9 !important;
}

/*.pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus {*/
/*background-color: #878a8a;*/
/*}*/

table.dataTable {
    margin-top: 0px !important;
    margin-bottom: 15px !important;
    border-spacing: 0px;
}

.table th,
.table td {
    vertical-align: middle;
}

table.dataTable tr.group.group-start {
    background-color: #e9ecef;
}

table.dataTable tr.group.group-start td {
    padding: 0.4rem 0.75rem;
    font-weight: 600;
}

table.dataTable .btn-group,
.btn-group-vertical {
    align-items: center;
}

.btn-default {
    color: #383838;
    background-color: #f1f1f1;
    border-color: #f1f1f1;
}

.btn-default:hover,
.btn-default:active,
.btn-default:focus,
.btn-default:active:hover {
    color: #000000;
    background-color: #e2e2e2;
    border-color: #e2e2e2;
}

span.input-group-addon {
    width: 43px !important;
    border: 2px solid #dce4ec;
}

div[class|="iradio_flat"] {
    width: 30px;
}

.select2-container--default .select2-selection--single,
.select2-selection .select2-selection--single {
    height: 40px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 35px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 31px;
    right: 5px;
}

.select2-dropdown .select2-search__field:focus,
.select2-search--inline .select2-search__field:focus {
    outline: none;
    border: 1px solid #777;
    border-radius: 2px;
}

.card .card-header .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 22px;
}

.card .card-header .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 25px;
}

.card .card-header .select2-container--default .select2-selection--single,
.select2-selection .select2-selection--single {
    height: 30px;
}

.card .card-body .custom-field-container {
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
}

.card .card-header .select2-container--default .select2-selection__arrow {
    height: 22px;
}

.card .card-header .select2-container--default .select2-selection__rendered {
    line-height: 25px;
}

.card .card-header .select2-container--default,
.card .card-header .select2-selection {
    height: 30px;
}

.card .card-header .select2-container--default .select2-dropdown.select2-dropdown--below {
    margin-top: 2px;
}

.card .card-header .select2-container--default li.select2-selection__choice {
    font-size: 14px;
    padding: 1px 7px;
    line-height: 1.2;
}

.select2-container {
    width: 100% !important;
}

/* Card nav */
.card .card-header .nav-link {
    font-size: 85%;
    padding: 0.5rem 0.6rem;
}

/* icons */
/* .fa {
    font: normal normal normal 16px/1 FontAwesome;
} */

/* Login */
.login-box .login-logo img {
    max-width: 160px;
    max-height: 80px;
}

.login-box span.input-group-text,
.login-box span.input-group-text i {
    width: 50px;
}

.login-box .btn-group .btn+.btn {
    margin-left: 0;
}

.login-box .btn-group .btn {
    border-radius: 0px;
}

.login-box .error-code i.fa {
    font-size: 40px !important;
}

.login-box,
.register-box {
    width: 450px;
    margin: 7% auto;
}

.btn.btn-facebook {
    background-color: #3b5998;
    border-color: #3b5392;
    color: #fff;
}

.btn.btn-google {
    background-color: #dd4b39;
    border-color: #c74a38;
    color: #fff;
}

.btn.btn-twitter {
    background-color: #00aced;
    border-color: #00a4e6;
    color: #fff;
}

/* forms */
.form-text {
    font-size: 80%;
}

@media (min-width: 576px) {
    #mediaModal .card {
        position: initial;
        box-shadow: 0 0px 3px rgba(0, 0, 0, 0.2);
        cursor: pointer;
    }

    #mediaModal .card:hover {
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    }

    #mediaModal .card img {
        border-radius: 3px 3px 0 0;
    }

    #mediaModal .card-footer {
        padding: 0.25rem 0.5rem 0;
    }

    #mediaModal .card:hover .card-footer {
        background-color: rgba(0, 0, 0, 0.08);
    }

    #mediaModal .card .delete-media {
        position: absolute;
        right: 13px;
        top: 5px;
        padding: 0.1rem 0.35rem;
        display: none;
    }

    #mediaModal .modal-footer span {
        width: 100%;
        text-align: left;
        font-size: 90%;
    }

    #mediaModal .card-footer small {
        display: inline-block;
        font-size: 80%;
        font-weight: 400;
        white-space: nowrap;
        text-overflow: ellipsis;
        width: 100%;
        overflow: hidden;
    }

    #mediaModal .modal-body {
        height: 560px;
        overflow: auto;
    }

    #mediaModal #createMediaField {
        display: none;
    }

    #mediaModal .media-item {
        position: relative;
    }
}

@media (min-width: 576px) {
    #driver2Modal .modal.fade .modal-dialog {
        transform: translate(0, 0);
    }

    #driver2Modal .modal-dialog {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
    }

    #driver2Modal .modal-content {
        width: 300px;
    }

    #driver2Modal .card {
        position: initial;
        box-shadow: 0 0px 3px rgba(0, 0, 0, 0.2);
        cursor: pointer;
    }

    #driver2Modal .card:hover {
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    }

    #driver2Modal .card img {
        border-radius: 3px 3px 0 0;
    }

    #driver2Modal .card-footer {
        padding: 0.25rem 0.5rem 0;
    }

    #driver2Modal .card:hover .card-footer {
        background-color: rgba(0, 0, 0, 0.08);
    }

    #driver2Modal .card .delete-media {
        position: absolute;
        right: 13px;
        top: 5px;
        padding: 0.1rem 0.35rem;
        display: none;
    }

    #driver2Modal .modal-footer span {
        width: 300px;
        text-align: left;
        font-size: 90%;
    }

    #driver2Modal .card-footer small {
        display: inline-block;
        font-size: 80%;
        font-weight: 400;
        white-space: nowrap;
        text-overflow: ellipsis;
        width: 300px;
        overflow: hidden;
    }

    #driver2Modal .modal-body {
        height: 140px;
        overflow: auto;
    }

    #driver2Modal #createMediaField {
        display: none;
    }

    #driver2Modal .media-item {
        position: relative;
    }
}

@media (min-width: 576px) {
    #bulkUpdateStatusModal .modal.fade .modal-dialog {
        transform: translate(0, 0);
    }

    #bulkUpdateStatusModal .modal-dialog {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
    }

    #bulkUpdateStatusModal .modal-content {
        width: 300px;
    }

    #bulkUpdateStatusModal .card {
        position: initial;
        box-shadow: 0 0px 3px rgba(0, 0, 0, 0.2);
        cursor: pointer;
    }

    #bulkUpdateStatusModal .card:hover {
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    }

    #bulkUpdateStatusModal .card img {
        border-radius: 3px 3px 0 0;
    }

    #bulkUpdateStatusModal .card-footer {
        padding: 0.25rem 0.5rem 0;
    }

    #bulkUpdateStatusModal .card:hover .card-footer {
        background-color: rgba(0, 0, 0, 0.08);
    }

    #bulkUpdateStatusModal .card .delete-media {
        position: absolute;
        right: 13px;
        top: 5px;
        padding: 0.1rem 0.35rem;
        display: none;
    }

    #bulkUpdateStatusModal .modal-footer span {
        width: 300px;
        text-align: left;
        font-size: 90%;
    }

    #bulkUpdateStatusModal .card-footer small {
        display: inline-block;
        font-size: 80%;
        font-weight: 400;
        white-space: nowrap;
        text-overflow: ellipsis;
        width: 300px;
        overflow: hidden;
    }

    #bulkUpdateStatusModal .modal-body {
        height: 70px;
        overflow: auto;
    }

    #bulkUpdateStatusModal #createMediaField {
        display: none;
    }

    #bulkUpdateStatusModal .media-item {
        position: relative;
    }
}

@media (min-width: 576px) {
    #driver1Modal .modal.fade .modal-dialog {
        transform: translate(0, 0);
    }

    #driver1Modal .modal-dialog {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
    }

    #driver1Modal .modal-content {
        width: 300px;
    }

    #driver1Modal .card {
        position: initial;
        box-shadow: 0 0px 3px rgba(0, 0, 0, 0.2);
        cursor: pointer;
    }

    #driver1Modal .card:hover {
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    }

    #driver1Modal .card img {
        border-radius: 3px 3px 0 0;
    }

    #driver1Modal .card-footer {
        padding: 0.25rem 0.5rem 0;
    }

    #driver1Modal .card:hover .card-footer {
        background-color: rgba(0, 0, 0, 0.08);
    }

    #driver1Modal .card .delete-media {
        position: absolute;
        right: 13px;
        top: 5px;
        padding: 0.1rem 0.35rem;
        display: none;
    }

    #driver1Modal .modal-footer span {
        width: 300px;
        text-align: left;
        font-size: 90%;
    }

    #driver1Modal .card-footer small {
        display: inline-block;
        font-size: 80%;
        font-weight: 400;
        white-space: nowrap;
        text-overflow: ellipsis;
        width: 300px;
        overflow: hidden;
    }

    #driver1Modal .modal-body {
        height: 70px;
        overflow: auto;
    }

    #driver1Modal #createMediaField {
        display: none;
    }

    #driver1Modal .media-item {
        position: relative;
    }
}

@media (min-width: 576px) {
    .cus-popup .modal.fade .modal-dialog {
        transform: translate(0, 0);
    }

    .cus-popup .modal-dialog {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
    }

    .cus-popup .modal-content {
        width: 100%;
    }

    .cus-popup .card {
        position: initial;
        box-shadow: 0 0px 3px rgba(0, 0, 0, 0.2);
        cursor: pointer;
    }

    .cus-popup .card:hover {
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    }

    .cus-popup .card img {
        border-radius: 3px 3px 0 0;
    }

    .cus-popup .card-footer {
        padding: 0.25rem 0.5rem 0;
    }

    .cus-popup .card:hover .card-footer {
        background-color: rgba(0, 0, 0, 0.08);
    }

    .cus-popup .card .delete-media {
        position: absolute;
        right: 13px;
        top: 5px;
        padding: 0.1rem 0.35rem;
        display: none;
    }

    .cus-popup .modal-footer span {
        width: 300px;
        text-align: left;
        font-size: 90%;
    }

    .cus-popup .card-footer small {
        display: inline-block;
        font-size: 80%;
        font-weight: 400;
        white-space: nowrap;
        text-overflow: ellipsis;
        width: 300px;
        overflow: hidden;
    }

    .cus-popup .modal-body {
        height: max-content;
        /* overflow: auto; */
    }

    .cus-popup #createMediaField {
        display: none;
    }

    .cus-popup .media-item {
        position: relative;
    }
}

[data-toggle="tooltip"] {
    display: inline !important;
}

.nmain-header .navbar-nav p {
    margin-bottom: 0;
}

nav.nmain-header .nav-header {
    display: none;
}

nav.nmain-header img.brand-image {
    margin-top: -5px;
    margin-left: 0px;
}

nav.nmain-header .brand-text {
    margin-right: 15px;
}

.dropdown-menu a.dropdown-item {
    color: #212529 !important;
}

.navbar-nav.ml-auto .brand-image {
    float: right;
}

.card-body form div.form-group.col-12.text-right {
    border-top: 1px solid #eee;
    padding-top: 25px;
    margin-top: 15px;
}

.note-editor.note-frame {
    border: 1px solid #ced4da;
    border-radius: 5px;
    box-shadow: none;
}

@media (min-width: 1440px) {
    .container {
        max-width: 1550px;
    }
}

.import-form {
    height: inherit;
    display: inline-block;
    width: fit-content;
}

@import url(https://fonts.googleapis.com/css?family=Open+Sans:700,300);

.import-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    margin-top: -200px;
    margin-left: -200px;
    border-radius: 2px;
    box-shadow: 4px 8px 16px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: linear-gradient(to top right, darkmagenta 0%, hotpink 100%);
    color: #333;
    font-family: "Open Sans", Helvetica, sans-serif;
}

.import-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    height: 260px;
    border-radius: 3px;
    box-shadow: 8px 10px 15px 0 rgba(0, 0, 0, 0.2);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-direction: column;
}

.import-title {
    width: 100%;
    height: 24px;
    border-bottom: 1px solid #999;
    text-align: center;
}

.import-h1 {
    font-size: 16px;
    font-weight: 300;
    color: #666;
}

.import-dropzone {
    width: 100px;
    height: 80px;
    border: 1px dashed #999;
    border-radius: 3px;
    text-align: center;
}

.import-upload-icon {
    margin: 25px 2px 2px 2px;
}

.import-upload-input {
    position: relative;
    top: -62px;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.import-btn {
    display: block;
    width: 140px;
    height: 40px;
    /* background: darkmagenta; */
    color: #fff;
    border-radius: 3px;
    border: 0;
    /* box-shadow: 0 3px 0 0 hotpink; */
    transition: all 0.3s ease-in-out;
    font-size: 14px;
    margin-top: 1rem;
}

/* .import-btn:hover {
	background: rebeccapurple;
	box-shadow: 0 3px 0 0 deeppink;
} */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.form-import-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.import-file-name {
    width: max-content;
}

.comfirm-frame {
    padding: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 30%;
    min-height: 20%;
    border-radius: 3px;
    box-shadow: 8px 10px 15px 0 rgba(0, 0, 0, 0.2);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-direction: column;
}

.nav-item:first-child .driver-modal {
    position: absolute;
    right: 27rem;
}

.nav-item:first-child .driver-modal #drivers {
    overflow: hidden;
    width: 9rem;
}

.datatable-container {
    min-height: 300px;
    max-height: 80vh;
    overflow: auto;
}

.mh-80vh {
    max-height: 80vh;
}

.mh-100vh {
    max-height: 100vh;
}

.datatable-container table thead {
    position: sticky;
    top: 0px;
    background-color: white;
    z-index: 10;
}

/* TreeView container styles */
#tree-view-container .datatable-container,
#filtered-table-container .datatable-container {
    min-height: 300px;
    max-height: 80vh;
    overflow: auto;
}

#tree-view-container .datatable-container table thead,
#filtered-table-container .datatable-container table thead {
    position: sticky;
    top: 0px;
    background-color: white;
    z-index: 10;
}

/* Ensure styles persist after AJAX load */
#filtered-table-container table.dataTable {
    width: 100% !important;
}

/* Fix for TreeView - maintain container height */
#delivery-tree {
    height: 100% !important;
    overflow: auto !important;
}

/* Dropdown menu positioning for card headers */
.card-header .dropdown-menu.show {
    transform: translate3d(-60%, 27px, 0px) !important;
    position: absolute;
    will-change: transform;
}

/* table.dataTable {
    max-height: 90vh;
    overflow: auto;
}
table.dataTable thead{
    position: sticky;
    top: 0px;
    background-color: white;
    z-index: 10;
} */

table.dataTable th,
table.dataTable td {
    display: table-cell !important;
}

/* Tom select custom css */
.tom-select,
.ts-control {
    font-family: inherit !important;
    font-size: inherit !important;
}

.tom-select .ts-dropdown .ts-option,
.tom-select .ts-dropdown .ts-option-selected,
.tom-select .ts-control .item .ts-dropdown-content {
    font-family: inherit !important;
    font-size: inherit !important;
}

.ts-dropdown,
.ts-control,
.ts-control {
    font-family: inherit !important;
    font-size: inherit !important;
}

.ts-control {
    padding: 8px;
    height: 34px;
}

.control-label {
    pointer-events: none;
}

.ts-wrapper.tom-select.disabled {
    border-radius: 0.25rem;
    background: #c5ced6 !important;
    /* Darker gray text */
    color: #495057;
    opacity: 1 !important;
    /* Slight transparency to indicate it's disabled */
    /*cursor: not-allowed;  Change the cursor to indicate it's disabled */
}

.ts-wrapper.tom-select.disabled .item {
    color: #000000;
    /* Ensure that the items inside the select have black text */
}

.total {
    margin-top: 10px;
    justify-content: flex-end;
    /* Move the "total" div to the right */
    gap: 20px;
    /* Space between the labels */
}

.total label,
.total p {
    margin-right: 10px;
}

/* .sub_function_deliveryCoorHistoryTable {
    width: auto;
    height: auto;
    display: block;
    position: absolute;
    right: 14%;
} */
.dropdown-menu {
    max-height: 100vh;
    overflow-y: auto;
}

.z-scrollable-70vh {
    /* min-height: 400px; */
    max-height: 70vh;
    overflow: auto;
}

.z-header-table-sticky {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 10;
    border-collapse: separate !important;
}

.unset-border-collapse {
    border-collapse: unset !important;
}

.z-scrollable-bar {
    flex-direction: column;
    display: flex;
    position: fixed;
    right: 16px;
    opacity: 0.3;
}

.z-scrollable-bar:hover {
    cursor: pointer;
}

.w-10 {
    width: 10% !important;
}

.w-20 {
    width: 20% !important;
}

.w-30 {
    width: 30% !important;
}

.mldk-width {
    width: 45.666%;
}

.mldk-width2 {
    width: 33.333%;
}

@media (min-width: 2200px) {
    .mldk-width2 {
        width: 23.333%;
    }
}

.general-info-label {
    width: 19.333%;
}

.general-info-text-view {
    width: 53.999%;
}

.general-info-width {
    width: 33.333%;
}

.is-invalid {
    border: 1px solid #dc3545 !important;
    border-radius: 5px;
}

.ezy__signin10 {
    /* Bootstrap variables */
    --bs-body-color: #333b7b;
    --bs-body-bg: rgb(255, 255, 255);

    /* Easy Frontend variables */
    --ezy-theme-color: rgb(13, 110, 253);
    --ezy-theme-color-rgb: 13, 110, 253;
    --ezy-form-card-bg: #ffffff;
    --ezy-form-card-shadow: 6px 0px 118px rgba(0, 0, 0, 0.08);

    background-color: var(--bs-body-bg);
    padding: 50px 0;
    overflow: hidden;
}

/* Gray Block Style */
.gray .ezy__signin10,
.ezy__signin10.gray {
    /* Bootstrap variables */
    --bs-body-bg: rgb(246, 246, 246);

    /* Easy Frontend variables */
    --ezy-form-card-bg: #f6f6f6;
    --ezy-form-card-shadow: 6px 0px 118px rgba(20, 20, 20, 0.08);
}

/* Dark Gray Block Style */
.dark-gray .ezy__signin10,
.ezy__signin10.dark-gray {
    /* Bootstrap variables */
    --bs-body-color: #ffffff;
    --bs-body-bg: rgb(30, 39, 53);
    --bs-dark-rgb: 255, 255, 255;

    /* Easy Frontend variables */
    --ezy-form-card-bg: #2c3745;
    --ezy-form-card-shadow: none;
}

/* Dark Block Style */
.dark .ezy__signin10,
.ezy__signin10.dark {
    /* Bootstrap variables */
    --bs-body-color: #ffffff;
    --bs-body-bg: rgb(11, 23, 39);
    --bs-dark-rgb: 255, 255, 255;

    /* Easy Frontend variables */
    --ezy-form-card-bg: #162231;
    --ezy-form-card-shadow: none;
}

.ezy__signin10 .container {
    min-height: 100vh;
}

.ezy__signin10-heading {
    font-weight: bold;
    font-size: 25px;
    line-height: 25px;
    color: var(--bs-body-color);
}

.ezy__signin10-bg-holder {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 150px;
    width: 100%;
    border-radius: 30px;
}

@media (min-width: 768px) {
    .ezy__signin10-bg-holder {
        width: 200%;
    }
}

@media (min-width: 992px) {
    .ezy__signin10-bg-holder {
        width: 150%;
    }
}

.ezy__signin10-form-card {
    background-color: var(--ezy-form-card-bg);
    border: none;
    box-shadow: var(--ezy-form-card-shadow);
    border-radius: 15px;
}

.ezy__signin10-form-card * {
    color: var(--bs-body-color);
}

.ezy__signin10 .form-control {
    min-height: 48px;
    line-height: 40px;
    border-color: transparent;
    background: rgba(163, 190, 241, 0.14);
    border-radius: 10px;
    color: var(--bs-body-color);
}

.ezy__signin10 .form-control:focus {
    border-color: var(--ezy-theme-color);
    box-shadow: none;
}

.ezy__signin10-btn-submit {
    padding: 12px 30px;
    background-color: #333b7b;
    color: #ffffff;
}

.ezy__signin10-btn-submit:hover {
    color: #ffffff;
}

.ezy__signin10-btn {
    padding: 12px 30px;
}

.ezy__signin10-btn,
.ezy__signin10-btn * {
    color: #ffffff;
}

.ezy__signin10-btn:hover {
    color: #ffffff;
}

.ezy__signin10-or-separator {
    position: relative;
}

.ezy__signin10-or-separator hr {
    border-color: var(--bs-body-color);
    opacity: 0.15;
}

.ezy__signin10-or-separator span {
    background-color: var(--ezy-form-card-bg);
    color: var(--bs-body-color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
    opacity: 0.8;
}

.plain-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Hide any editor overlays */
.plain-textarea+.note-editor,
.plain-textarea+.tox-tinymce,
.plain-textarea+.dropzone {
    display: none !important;
}

.tom-select-dropdown,
.ts-dropdown {
    z-index: 9999 !important;
}

.cancelled-input {
    background-color: #ffebee !important;
    border-color: #f44336 !important;
    color: #d32f2f !important;
    cursor: not-allowed !important;
}

.cancelled-input:focus {
    background-color: #ffebee !important;
    border-color: #f44336 !important;
    box-shadow: 0 0 0 0.2rem rgba(244, 67, 54, 0.25) !important;
    outline: none !important;
}

.cancelled-input:hover {
    background-color: #ffebee !important;
    border-color: #f44336 !important;
}

/* Filter input styles with dynamic theme color support */
.filters input.form-control {
    transition: all 0.3s ease;
}

/* DataTable Filter Input Styling */
.filters input.filter-input {
    transition: all 0.3s ease;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    background-color: #fff;
}

.filters input.filter-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: 0;
}

.filters input.filter-input.has-value {
    border-color: #28a745;
    background-color: #f8fff9;
    font-weight: 500;
    box-shadow: 0 0 0 0.1rem rgba(40, 167, 69, 0.15);
}

.filters input.filter-input.has-value:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Theme-based filter styling */
.theme-primary .filters input.filter-input.has-value {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.theme-primary .filters input.filter-input.has-value:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.theme-success .filters input.filter-input.has-value {
    border-color: #28a745;
    background-color: #f8fff9;
}

.theme-success .filters input.filter-input.has-value:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.theme-info .filters input.filter-input.has-value {
    border-color: #17a2b8;
    background-color: #f8fcfd;
}

.theme-info .filters input.filter-input.has-value:focus {
    border-color: #17a2b8;
    box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

.theme-warning .filters input.filter-input.has-value {
    border-color: #ffc107;
    background-color: #fffef8;
}

.theme-warning .filters input.filter-input.has-value:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.theme-danger .filters input.filter-input.has-value {
    border-color: #dc3545;
    background-color: #fdf8f8;
}

.theme-danger .filters input.filter-input.has-value:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* 
 table {
    width: 100% !important;
}

 .filters th {
    padding: 8px 4px;
    vertical-align: middle;
} */

.filters input {
    width: 100%;
    /* min-width: 100px; */
}

/* Responsive styling */
@media (max-width: 768px) {
    .filters input.filter-input {
        font-size: 12px;
        padding: 6px 8px;
    }
}

.vh-80 {
    height: 80vh !important;
}

.auto-filled .ts-control {
    border: 2px solid #28a745 !important;
    background-color: #f8fff8 !important;
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.3) !important;
}

.auto-filled .ts-control:after {
    content: "Auto-filled";
    position: absolute;
    top: -20px;
    right: 0;
    background: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    z-index: 1000;
}

/* TreeView specific styles */
.view-toggle-container .btn-group .btn {
    border-radius: 0;
}

.view-toggle-container .btn-group .btn:first-child {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.view-toggle-container .btn-group .btn:last-child {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.tree-container {
    max-height: calc(100vh - 10%);
    padding: 10px;
}

/* Theme-based TreeView styling */
.jstree-default .jstree-clicked {
    background: #007bff !important;
    color: white !important;
}

/* Theme variations for TreeView */
.theme-primary .jstree-default .jstree-clicked {
    background: #007bff !important;
    color: white !important;
}

.theme-success .jstree-default .jstree-clicked {
    background: #28a745 !important;
    color: white !important;
}

.theme-info .jstree-default .jstree-clicked {
    background: #17a2b8 !important;
    color: white !important;
}

.theme-warning .jstree-default .jstree-clicked {
    background: #ffc107 !important;
    color: black !important;
}

.theme-danger .jstree-default .jstree-clicked {
    background: #dc3545 !important;
    color: white !important;
}

.jstree-default .jstree-hovered {
    background: #f8f9fa !important;
}

#filter-info {
    font-size: 0.75rem;
}

.filtered-table-container {
    min-height: 400px;
}

/* Hide/show view containers */
.view-container {
    display: none;
}

.view-container.active {
    display: block;
}

/* Tree search styling with theme support */
#tree-search-container {
    margin-bottom: 10px;
}

#tree-search {
    border-color: #ced4da;
    transition: all 0.3s ease;
}

#tree-search:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Theme-based search styling */
.theme-primary #tree-search:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.theme-success #tree-search:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.theme-info #tree-search:focus {
    border-color: #17a2b8;
    box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

.theme-warning #tree-search:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.theme-danger #tree-search:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

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

.checkbox-column {
    width: 1px !important;
    min-width: 30px !important;
    max-width: 80px !important;
    text-align: center !important;
}

.datepicker {
    padding: 12px;
    z-index: 1060 !important;
    /* Ensure datepicker shows above other elements */
}

.input-group-sm .datepicker {
    font-size: 0.875rem;
    line-height: 1.5;
}

.input-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Theme-based datepicker styling */
.datepicker-container .datepicker {
    z-index: 1060 !important;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.datepicker-days table thead,
.datepicker-days table tfoot {
    background-color: #f8f9fa;
}

.datepicker-days table tbody td.today {
    color: white !important;
    background-image: none !important;
}

.datepicker-days table tbody td.active {
    background-image: none !important;
    color: white !important;
}

/* Style the calendar icon in the input group */
.input-group.date .input-group-append .input-group-text {
    background-color: var(--primary-color, #007bff);
    color: white;
    border-color: var(--primary-color, #007bff);
}

/* Theme-specific variations */
.theme-primary .input-group.date .input-group-append .input-group-text {
    background-color: var(--primary-color, #007bff);
    border-color: var(--primary-color, #007bff);
}

.theme-success .input-group.date .input-group-append .input-group-text {
    background-color: var(--success-color, #28a745);
    border-color: var(--success-color, #28a745);
}

.theme-info .input-group.date .input-group-append .input-group-text {
    background-color: var(--info-color, #17a2b8);
    border-color: var(--info-color, #17a2b8);
}

.theme-warning .input-group.date .input-group-append .input-group-text {
    background-color: var(--warning-color, #ffc107);
    border-color: var(--warning-color, #ffc107);
}

.theme-danger .input-group.date .input-group-append .input-group-text {
    background-color: var(--danger-color, #dc3545);
    border-color: var(--danger-color, #dc3545);
}

.ts-wrapper {
    width: 100% !important;
    min-width: 200px !important;
}

.ts-wrapper .ts-control {
    min-height: 38px !important;
    height: auto !important;
    padding: 5px 8px !important;
    overflow: visible !important;
}

.ts-wrapper .ts-control .items {
    display: flex !important;
    flex-direction: column !important;
    /* Stack items vertically */
    flex-wrap: nowrap !important;
    /* Don't wrap horizontally */
    gap: 4px !important;
    width: 100% !important;
}

.ts-wrapper .ts-control .item {
    /* background: #007bff !important; */
    /* color: white !important; */
    border-radius: 3px !important;
    padding: 1px 2px !important;
    /* font-size: 12px !important; */
    width: fit-content !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.ts-wrapper .ts-control .item .remove {
    color: red !important;
    margin-left: 8px !important;
    cursor: pointer !important;
}

/* Ensure the input field expands properly */
.ts-wrapper .ts-control input {
    width: 100% !important;
    min-width: 150px !important;
}

/* Make sure the dropdown has enough width */
.ts-wrapper .ts-dropdown {
    min-width: 100% !important;
    width: auto !important;
}

/* Ensure filter dropdown has enough space */
.dropdown-menu-bottom-left {
    min-width: 450px !important;
    max-width: 600px !important;
    top: 100% !important;
    left: -400px !important;
    right: auto !important;
    transform-origin: top left !important;
}

.form-group {
    margin-bottom: 15px !important;
}

.form-group label {
    display: block !important;
    margin-bottom: 5px !important;
    font-weight: 500 !important;
}

.violated-time-row {
    background-color: #ffcccc !important;
}

.violated-time-row td {
    background-color: #ffcccc !important;
}