body {
    overflow-x: hidden;
}

.create .select2-container--bootstrap .select2-selection--single,
.create .select2-container--bootstrap .select2-selection--multiple {
    min-height: 46px;
    border: 1px solid #d5d9e2;
    border-radius: 7px;
}

.create .select2-container--bootstrap .select2-selection--single .select2-selection__rendered,
.create .select2-container--bootstrap .select2-selection--multiple .select2-selection__rendered {
    height: 100%;
    line-height: 32px;
}

.create .select2-container--default .select2-selection--single .select2-selection__arrow,
.create .select2-container--default .select2-selection--multiple .select2-selection__arrow {
    height: 100%;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border-radius: 7px;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    outline: none;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075)
}

[data-theme="dark"] .select2-container--bootstrap .select2-selection--single,
[data-theme="dark"] .select2-container--bootstrap .select2-selection--multiple {
    background-color: #15203c !important;
    border: #15203c !important;
    color: #fff !important;
}

[data-theme="dark"] .select2-search--dropdown {
    background-color: #15203c !important;
    border: #15203c !important;
    color: #fff !important;
}

[data-theme="dark"] .select2-container--bootstrap .select2-results__option {
    background-color: #15203c !important;
    border: #15203c !important;
    color: #fff !important;
}

[data-theme="dark"] .select2-container--bootstrap .select2-results__option:hover {
    background-color: #273b6e !important
}

[data-theme="dark"] .select2-container--bootstrap .select2-results__option--highlighted {
    background-color: #273b6e !important;
}

[data-theme="dark"] .select2-container--bootstrap .select2-search--dropdown .select2-search__field {
    background: #2f3b4f;
    border-color: #4e596c
}

[data-theme="dark"] .select2-container--bootstrap .select2-dropdown {
    border-color: #0f446e
}

.form-control {
    height: 46px;
}

/*
.select2-container{
    width: max-content !important;
}
*/
[dir='rtl'] .select2-container {
    order: 2;
}

div.dt-container .dt-length,
div.dt-container .dt-info,
div.dt-container .dt-processing,
div.dt-container .dt-paging {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
}

div.dt-container .dt-paging .dt-paging-button {
    margin: 0;
    padding: 0
}

div.dt-container .dt-paging .dt-paging-button:hover {
    background: none !important;
    border: 1px solid transparent;
}

div.dt-container .dt-paging .dt-paging-button.active .page-link {
    background: var(--bs-primary) !important;
    border: 1px solid transparent;
    color: #FFF
}

div.table-responsive>div.dt-container>div.row {
    margin-bottom: 10px
}

[dir='rtl'] #tbl_info_wrapper .dt-layout-start {
    margin-right: 0 !important;
    margin-left: auto
}

[dir='rtl'] #tbl_info_wrapper .dt-layout-end {
    margin-left: 0 !important;
    margin-right: auto
}

.button-possion {
    justify-content: flex-start
}

[dir='rtl'] .button-possion {
    justify-content: flex-end
}

/* .default-table-area.style-two .table-responsive .table thead tr th{text-align: center ; vertical-align: middle} */
/* .default-table-area.style-two .table-responsive .table tbody tr td{text-align: center} */

#tbl_info_wrapper .bottom {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    flex-wrap: wrap;
    gap: 10px;
}

#tbl_info_wrapper .top {
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 450px) {
    #tbl_info_wrapper .bottom {
        justify-content: center;
    }

    .dt-search {
        order: 2;
    }

    .default-table-area.style-two .table-responsive .table thead tr th,
    .default-table-area.style-two .table-responsive .table tbody tr td {
        font-size: 12px;
        text-align: left
    }

    [dir='rtl'] .default-table-area.style-two .table-responsive .table thead tr th,
    [dir='rtl'] .default-table-area.style-two .table-responsive .table tbody tr td {
        font-size: 12px;
        text-align: right
    }
}

#tbl_info_info {
    display: none !important
}

.password-container {
    position: relative;
}

.password-container .password-input {
    /* padding-right: 40px; */
    padding-left: 15px;
}

.password-container .material-symbols-outlined {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 14px;
    cursor: pointer;
    left: auto;
}

/* .password-container .is-invalid~.material-symbols-outlined {
    top: 35%;
} */

[dir='rtl'] .password-container .password-input {
    padding-left: 40px;
    /* padding-right: 30px; */
}

[dir='rtl'] .password-container .material-symbols-outlined {
    left: 14px;
    right: auto
}

.create-dropdown li {
    text-align: center;
}

[data-theme="dark"] .create-dropdown {
    background-color: #0a0e19 !important;
}

[data-theme="dark"] .create-dropdown li a:hover {
    background-color: #273b6e !important;
    color: #FFF;
}

.form-select {
    text-align: center;
}

[dir='rtl'] .form-select {
    padding: 0.375rem 0.75rem 0.375rem 2.25rem;
    background-position: left 0.75rem center;
}

[dir='rtl'] .ql-snow .ql-picker-label {
    padding-right: 25px;
}

.select-error,
.select-client-error,
.select-employee-error,
.select-COMP_ID-error,
.select-BRN_ID-error,
.select-frm_id-error,
.select-frm_action-error,
.select-type_id-error,
.select-coin_id-error,
.brn_id-error,
.select-bank_id-error,
.coin_id-error,
.safe_id-error,
.acc_id-error,
.flag-error,
.select-safe_id-error,
.select-acc_id-error,
.select-t_acc_id-error,
.select-t_coin_id-error,
.select-client_id-error,
.select-comp_id-error,
.select-proj_id-error,
.select-cntry_id-error,
.select-gov_id-error,
.select-cty_id-error,
.emp_id-error,
.dept_id-error,
.flag_901-error,
.days_off-error,
.shifts-error,
.absnc_calc-error,
.missing_login-error,
.missing_logout-error,
.maps-error,
.take_from-error,
.is_sal-error,
.cmssion_type-error,
.discount_type-error,
.emp_id-error,
.vac_id-error,
.vac_id_901-error,
.per_id_901-error,
.mngr_id-error,
.job_t_id-error,
.Job_k-error,
.job_id-error,
.inc_on-error,
.job_k_id-error,
.service_id_901-error,
.q_id-error,
.user_id-error,
.grp_id-error,
.advance_id-error,
.item_id-error,
.custdy_id-error,
.settl_type-error,
.vac_type_id-error,
.permit_id-error {
    border: 1px solid red !important
}

div.dt-container div.dt-search,
div.dt-buttons,
div.dt-container div.dt-paging,
div.dt-container .dt-length {
    width: 50%;
    display: inline-block;
    margin: 20px 0;
}

div.dt-container div.dt-search {
    text-align: left;
}

div.dt-buttons,
div.dt-container .dt-length {
    float: right;
    text-align: right;
}

[dir='rtl'] div.dt-buttons,
[dir='rtl'] div.dt-container .dt-length {
    float: left;
    text-align: left;
}

[dir='rtl'] div.dt-container div.dt-search {
    text-align: right
}

@media (max-width: 768px) {

    div.dt-container div.dt-search,
    div.dt-buttons,
    div.dt-container div.dt-paging,
    div.dt-container .dt-length {
        width: 100%;
        text-align: center !important;
    }

    div.dt-container div.dt-search,
    div.dt-container .dt-length {
        margin-top: 0;
    }

    div.dt-buttons button {
        margin-bottom: 5px !important;
    }
}

.filepond--root.profile {
    width: 170px;
    margin: 0 auto;
}

[dir='rtl'] .note-btn-group>.btn:first-child:not(.dropdown-toggle) {
    border-top-right-radius: 0.375rem !important;
    border-bottom-right-radius: 0.375rem !important;
}

.note-btn-group>.btn:last-child:not(.dropdown-toggle) {
    border-top-right-radius: 0.375rem !important;
    border-bottom-right-radius: 0.375rem !important;
}

[dir='rtl'] .note-btn-group>.btn:last-child:not(.dropdown-toggle) {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

[dir='rtl'] .note-btn-group>.btn:not(:last-child):not(.dropdown-toggle),
.btn-group>.btn:not(:first-child):not(.dropdown-toggle) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

[dir='rtl'] .note-btn-group .dropdown-toggle::after {
    margin-right: 0.255em
}

[dir='rtl'] .note-btn-group [title='More Color'].btn {
    padding-left: .95rem !important;
    padding-right: .25rem !important;
}

[dir='rtl'] .btn-group>.btn-group:not(:first-child)>.btn {
    border-top-left-radius: 0.375rem !important;
    border-bottom-left-radius: 0.375rem !important;
}

.overtime {
    margin-bottom: 0;
}

.tabs-group {
    padding-left: 0;
}

.tabs-group input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.tab-group {
    height: 46px;
    background-color: #dde2ef;
    border-top-left-radius: 7px;
    border-bottom-left-radius: 7px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.create__table-header {
    color: #0a0e19;
    font-size: 14px;
    font-weight: normal;
}

.internet_protocol .protocol_input {
    padding-right: 0;
}

.internet_protocol .protocol_input input,
.internet_protocol .protocol_input .select2-selection--single {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.internet_protocol button {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    height: 46px;
}

.bg-not_found {
    background-color: #F8D7DA;
}

.bg-not_found p {
    margin-right: 20px;
}
[data-theme="dark"] .create .select2-container--bootstrap .select2-selection--single .select2-selection__rendered {
    color: #fff;
}
/* Default (Light mode) scrollbar styles */
body {
    --scrollbar-track-color: #f0f0f0; /* Light gray */
    --scrollbar-thumb-color: linear-gradient(90deg, #0056a8, #00b251); /* Blue to green gradient */
    --scrollbar-thumb-hover-color: linear-gradient(90deg, #003f7f, #00873b); /* Darker blue to green on hover */
}

/* Dark mode scrollbar styles */
[data-theme='dark'] body {
    --scrollbar-track-color: #2c2c2c; /* Dark gray */
    --scrollbar-thumb-color: linear-gradient(90deg, #0066cc, #00d86b); /* Bright blue to bright green gradient */
    --scrollbar-thumb-hover-color: linear-gradient(90deg, #004a99, #00a556); /* Slightly darker hover gradient */
}

/* Apply the custom scrollbar styles */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track-color);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb-color);
    border-radius: 6px; /* Rounded scrollbar */
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover-color);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Optional: Styling scrollbars for Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb-color) var(--scrollbar-track-color);
}
