:root {
    --primary-color: #2184be;
    --secondary-color: #9dc8e2;
    --light-color: #f2f3f4;
    --border-radius: 0.75rem;
    --transition: all 0.3s ease;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --form-padding: 1rem;
    --form-padding-left: 1.5rem;
    --form-margin: 1.5rem;
    --header-font-size: 1.2rem;
    --border-color: #dee2e6;
    --text-color: #2c3e50;
    --text-muted: #6c757d;
    --wizard-arrow-size: 20px;
}
@media (max-width: 767px) {
    :root {
        --form-padding-left: 0.5rem;
        --form-margin: 0.5rem;
        --form-padding: 0.5rem;
        --border-radius: 0.5rem;
        --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        --header-font-size: 1.1rem;
    }
}
.dynamic-table {
    padding: 0;
}
body {
    font-family: "nbsp-only", Futura, KhmerMef1, Hanuman, Montserrat, serif;
}
.input-group-addon {
    font-size: 13px !important;
    min-height: 31px !important;
    padding: unset;
    border: unset;
    border-right: none;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}
fieldset > section:has(> section) > div {
    margin-bottom: 10px;
    padding: 15px 0px;
}

fieldset > section > section,
fieldset > section:has(> section) > div {
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 1rem;
}
fieldset > section:not(:has(> section)) {
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 1rem;
    & > * {
        padding: 1.25rem;
    }
}

fieldset > section > header {
    width: 100%;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--gray-200);
}

fieldset > section > header > h4,
h5 {
    margin: 0;
}

fieldset:has(section) {
    display: flex;
    flex-direction: column;
    & > section {
        padding: 0 !important;
    }
}

.form-group .required > label:after {
    content: "*";
    color: red;
}
th label.required:after {
    content: " *";
    color: red;
}

.wizard .content {
    background: none;
    min-height: unset;
    height: auto;
    margin: 2rem 0 0 0;
}

.wizard > .content > .body {
    width: 100%;
    height: auto;
    position: relative;
    padding: 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);

    label {
        margin-bottom: 0.5rem;
        color: #2c3e50;
        font-size: 1rem;
    }
    .en {
        font-size: 0.75rem;
        margin-bottom: 0;
        color: #6c757d;
        margin-left: 0.25rem;
    }
}

fieldset section:not(:has(> section)) {
    background: #fff;
    border-radius: var(--border-radius);
    margin-bottom: var(--form-margin);

    & > * {
        padding: var(--form-padding);
    }

    & > header {
        background: transparent;
        border-bottom: 1px solid var(--border-color);
        padding: 0.75rem var(--form-padding);
        width: 100%;
        font-size: var(--header-font-size);

        h4,
        h5 {
            color: var(--text-color);
            font-weight: 600;
            margin: 0;
            font-size: var(--header-font-size);
        }
    }
}

.wizard {
    .content {
        background: none;
        min-height: unset;
        height: auto;
        margin: 2rem 0 0 0;
    }

    > .content > .body {
        width: 100%;
        height: auto;
        position: relative;
        padding: 0;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        transition: var(--transition);

        label {
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: var(--text-color);
        }

        .en {
            font-size: 0.75rem;
            margin-bottom: 0;
            color: var(--text-muted);
        }

        input,
        textarea {
            border-radius: var(--border-radius);
            border: 1px solid var(--border-color);
            padding: 0.75rem var(--form-padding);
            transition: var(--transition);

            &:focus {
                border-color: var(--primary-color);
                box-shadow: 0 0 0 0.2rem rgba(33, 132, 190, 0.15);
            }
        }
    }

    > .steps {
        overflow: auto;
        a {
            background: #f8f9fa;
            color: #495057;
            border-radius: 0px;
            margin: 0 0.25rem;
            transition: var(--transition);
            padding: 0.5em 1em;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 1.25rem;

            &.current {
                background: var(--primary-color);
                color: white;
            }

            &:hover {
                background: var(--secondary-color);
                color: var(--text-color);
            }
        }

        > ul {
            display: flex;
            /* gap: var(--form-padding); */
        }
    }
}

.select2-container--bootstrap {
    .select2-selection.form-control {
        height: 40px !important;
        padding: 6px var(--form-padding) !important;
        border-radius: var(--border-radius);
    }

    .select2-selection--single .select2-selection__placeholder {
        color: var(--text-muted);
        opacity: 0.6;
        font-size: 1rem;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }

    .select2-search--dropdown .select2-search__field {
        border-radius: var(--border-radius);
    }

    .select2-results__option {
        padding: 0.5rem var(--form-padding);
    }
}

.wizard > .content > .body input,
.wizard > .content > .body textarea,
.select2-container--bootstrap .select2-selection.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    transition: var(--transition);

    &:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(33, 132, 190, 0.15);
    }
}
/* .wizard > .steps {
    margin: 15px;
} */
/* .wizard > .steps > ul {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
} */
.wizard > .steps > ul > li:not(:first-child) {
    margin-left: -15px !important;
}
.wizard > .steps > ul > li {
    clip-path: polygon(0% 0%,calc(100% - var(--wizard-arrow-size)) 0%,100% 50%,calc(100% - var(--wizard-arrow-size)) 100%,0% 100%,var(--wizard-arrow-size) 50%);
    text-align: center;
}

.wizard > .steps > ul > li:first-child {
    clip-path: polygon(0% 0%,calc(100% - var(--wizard-arrow-size)) 0%,100% 50%,calc(100% - var(--wizard-arrow-size)) 100%,0% 100%);
    > a {
        border-radius: 25px 0px 0px 25px;
    }
}

.wizard > .steps > ul > li:last-child {
    clip-path: polygon(0% 0%,100% 0%,100% 100%,0% 100%,var(--wizard-arrow-size) 50%);
    > a {
        border-radius: 0px 25px 25px 0px;
    }
}

.wizard > .steps > ul > li > a,
.wizard > .actions > ul > li > a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 20px;
}


.wrapoff {
    width: 200px;
    border: 2px solid blue;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}
.wrapoff:after {
    content: "...";
    position: absolute;
    right: 0;
    top: 0;
    background-color: white;
    padding: 0 5px;
}
#service-result-container.loading::before {
    content: " ";
    position: absolute;
    background: #edf0f2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    max-height: 58px;
    border-radius: 5px;
    margin-top: 2em;
    border: 1px solid #ddd;
}
#service-result-container.loading::after {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    max-height: 58px;
    margin-top: 2em;
}
#service-result-container.loading.full-loading::before,
#service-result-container.loading.full-loading::after {
    max-height: calc(100% - 6px);
    margin: 0;
}
#service-result-container.loading.one-row::before,
#service-result-container.loading.one-row::after {
    max-height: 38px;
    margin: 0;
    top: 28px;
}
#service-result-container .select2-container {
    display: none;
}
.select2-container.loading::before {
    content: " ";
    position: absolute;
    background: #fff;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    max-height: 58px;
    border-radius: 5px;
    border: 1px solid #ddd;
}
.select2-container.loading::after,
.select2-container.loading::after {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    max-height: 58px;
}

.thr-list-item {
    padding: 5px;
}

.thr-list-item .thr-list-item-inner {
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
}

.thr-list-item .thr-list-item-number {
    display: inline-block;
    min-width: 30px;
    min-height: 30px;
    line-height: 30px;
    background: rgb(14, 0, 138);
    text-align: center;
    border-radius: 50%;
    margin: 5px;
    color: #fff;
}

#service-template {
    min-height: 100px;
}
#service-template.loading::before {
    content: " ";
    position: absolute;
    background: #fff;
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: 15px;
}
#service-template.loading::after {
    left: calc(50% - 40px);
    top: calc(50% - 12px);
    z-index: 2;
}

/* .wizard > .steps a, .wizard > .steps a:hover, .wizard > .steps a:active {
    padding: 0.5em 1em;
    transform: skew(0deg);
    border-radius: unset;
} */

.select2CustomModal {
    padding: 0 !important;
}
.select2CustomModalBody .select2-container,
.select2CustomModalBody .select2-dropdown {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: unset;
}
.select2CustomModalBody .select2-dropdown {
    padding: 0;
}
.select2CustomModalBody .select2-results {
    height: calc(100% - 45px);
}
#find-service-container .select2-results {
    padding: 0 15px;
}
.select2CustomModalBody .select2-results__options {
    /* height: 100%; */
    max-height: 100% !important;
}

.select2CustomModalBody .modal-header {
    pointer-events: none;
}

.select2CustomModal .modal-prevent-click {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1100;
}
.select2CustomModal .select2-search--dropdown {
    padding: 5px 10px;
}
.select2CustomModal .modal-header {
    padding: 8px 15px 5px;
    min-height: unset;
}
.select2CustomModal .modal-header > .close {
    padding: 5px;
}

#requesters-advanced-form
    .select2-container--bootstrap.select2-container--open.select2-container--below
    .select2-selection {
    box-shadow: 0 0 0 0.1rem rgb(0 123 255 / 25%);
}
.select2-dropdown {
    box-shadow: 0 0 0 0.1rem rgb(0 123 255 / 25%);
    clip-path: inset(0 -0.2rem -0.1rem -0.1rem);
}

.select2ItemCustom span {
    display: inline-block;
    width: calc(100% - 38px);
    line-height: 1.8 !important;
    font-size: 1rem !important;
}
.select2ItemCustom i {
    display: inline-block;
    vertical-align: auto;
    padding: 5px;
    font-size: 1rem;
}
@media (max-width: 615px) {
    .select2ItemCustom i {
        vertical-align: super;
        font-size: 20px;
    }
}
@media (max-width: 700px) {
    .select2ItemCustom i {
        vertical-align: super;
        font-size: 20px;
    }
}
@media (max-width: 1010px) {
    .select2ItemCustom i {
        vertical-align: super;
        font-size: 19px;
    }
}

.search-scale .select2ItemCustom span {
    width: calc(100% - 50px);
}
.search-scale .select2ItemCustom i {
    padding-top: 0.5em;
}
.relative {
    position: relative;
}
.relative textarea {
    padding-right: 130px;
}
.th-inner-btn {
    position: absolute;
    width: 100px;
    right: 15px;
    bottom: 7px;
}
.th-inner-btn select,
.th-inner-btn .select2-container {
    position: absolute;
    top: 0px;
    cursor: pointer;
    width: 100%;
}
.one-row .th-inner-btn {
    bottom: 6px;
}
.opacity-0 {
    opacity: 0 !important;
}
.dropdown-menu.th-custom {
    min-width: 350px;
    width: 350px !important;
    /* left: -39px !important; */
}

.dropdown-menu.th-custom label {
    color: rgb(20, 20, 20) !important;
}

.btn-group > button {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: unset;
    border-top-right-radius: 3px !important;
    border-bottom-right-radius: 3px !important;
}
.custom-select2-search {
    font-size: 14px;
}
.custom-select2-search li,
.select2-results li {
    line-height: 1.5 !important;
}
.custom-select2-search .sector-group .select2-selection__clear {
    display: none !important;
}
.custom-select2-search .select2-selection__choice {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.select2-results__option.select2-results__option--highlighted[aria-selected="true"] {
    background-color: #b46f5f;
}
.modal .modal-dialog {
}
.dropdown-item:hover,
.dropdown-item:active {
    background: unset;
    background-color: unset;
}
.custom-select2-search .select2-search.select2-search--dropdown {
    padding: 0 15px 5px;
}
.custom-select2-search .select2-search__field {
    height: 38px;
    padding: 0 78px 0 8px;
}
.select2-container--bootstrap .select2-results__option {
    padding: 0.5rem 15px;
}
.custom-select2-search .select2-search--inline > .select2-search__field {
    border: unset;
    font-size: 4rem;
}
.custom-select2-search #service-search-filter {
    position: absolute;
    top: 0;
    right: 15px;
}
.custom-select2-search #service-search-filter button {
    height: 38px;
}
.custom-select2-search .modal-header button.close {
    padding: 10px;
}
#generalModal #generalModalTitle {
    padding-top: 5px;
    font-size: 2rem;
}
.fileupload_single_file_ows,
.fileupload_single_file_ows_foreign {
    min-height: 200px;
    display: flex;
    position: relative;
    border-radius: 20px;
    border: 2px dashed;
}
#form-dynamic-attachments > div > div {
    overflow: unset !important;
}
.fileupload_single_file_ows .dz-message,
.fileupload_single_file_ows_foreign .dz-message {
    padding: 30px;
    flex: 1 1 auto;
}
.fileupload_single_file_ows.custom-preview .dz-details,
.fileupload_single_file_ows_foreign.custom-preview .dz-details {
    opacity: 1 !important;
    min-height: 155px;
    position: relative !important;
}
.fileupload_single_file_ows .dz-image img,
.fileupload_single_file_ows_foreign .dz-image img {
    width: 100%;
}
.fileupload_single_file_ows .dz-progress,
.fileupload_single_file_ows_foreign .dz-progress {
    width: 200px !important;
    left: calc(50% - 60px) !important;
    top: 60% !important;
    background-color: #fff !important;
}
.fileupload_single_file_ows .dz-progress .dz-upload,
.fileupload_single_file_ows_foreign .dz-progress .dz-upload {
    background: #2184bd !important;
}
.fileupload_single_file_ows.hide-preview .dz-image,
.fileupload_single_file_ows_foreign.hide-preview .dz-image {
    display: none !important;
}
.fileupload_single_file_ows.dz-image img,
.fileupload_single_file_ows_foreign.dz-image img {
    width: 100%;
}
.fileupload_single_file_ows.dropzone .dz-preview .dz-image,
.fileupload_single_file_ows_foreign.dropzone .dz-preview .dz-image {
    width: auto !important;
    height: 100%;
    /*min-height: 155px;*/
    background: #f3f3f3;
    border-radius: 20px;
}

/** preview in attachments page**/
.custom-preview.fileupload_single_file_ows.dropzone .dz-preview .dz-image {
    height: calc(100% - 150px);
}

.fileupload_single_file_ows.dropzone.custom-preview .dz-preview .dz-image {
    position: relative;
    top: -5px;
}
.fileupload_single_file_ows.dropzone .dz-preview {
    min-width: 200px;
    min-height: 200px;
    background: #fff;
    border-radius: 20px;
}
.fileupload_single_file_ows.dropzone.custom-preview
    .dz-preview:hover
    .dz-image
    img {
    -webkit-transform: none;
    -moz-transform: none;
    -ms-transform: none;
    -o-transform: none;
    transform: none;
    -webkit-filter: none;
    filter: none;
}

.modal .modal-content {
    color: #1e2223;
}

.fileupload_single_file_ows > .dz-image {
    padding: 0 15px 15px;
}
.dz-remove {
    height: 26px;
    padding: 6px 7px !important;
}
.active-btn {
    color: #2d74d6 !important;
    /* animation: active .5s infinite; */
}

.fileupload_single_file_ows label.error {
    display: none !important;
}
.fileupload_single_file_ows .hidden-input {
    position: absolute;
    opacity: 0;
    height: 0;
    border: unset !important;
    cursor: pointer;
}

#foreign-passport .dropzone .dz-preview {
    border-radius: 20px !important;
}
.fileupload_single_file_ows.error {
    border: 2px dashed #ff5c6c;
    padding: 0px;
}
.dz-bg-color {
    background-color: white !important;
    opacity: 0;
    transition: tran;

    /*display: block;*/
    width: 100%;
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
}

.form-control:active,
.form-control:focus {
    border-color: #80bdff !important;
    box-shadow: 0 0 0 0.1rem rgb(0 123 255 / 25%);
}

.inline-input-btn {
    background: #167ec0;
    position: absolute;
    bottom: 2px;
    right: 5px;
    z-index: 2;
    border: none;
    font-size: 13px;
    cursor: pointer;
    color: white;
    width: 30%;
    max-width: 100px;
    height: 28px !important;
}
.mw-420 {
    max-width: 420px;
}
.mw-800 {
    max-width: 800px;
}
.timer-text {
    display: inline-block;
    min-width: 20px;
}
.active-color {
    color: #052d90;
}

.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary-blue {
    background-color: var(--primary-color);
    color: white;
    &:hover {
        background-color: darken(#2184be, 10%);
        color: white;
    }
}

.wizard > .steps a {
    background: #f8f9fa;
    color: #495057;
    /* border-radius: var(--border-radius) !important; */
    margin: 0 0.25rem;
    transition: var(--transition);

    &.current {
        background: var(--primary-color);
        color: white;
    }

    &:hover {
        background: var(--secondary-color);
        color: #2c3e50;
    }
}

.form-group {
    /* margin-bottom: 1.5rem; */
    label {
        color: #2c3e50;
        margin-bottom: 0.5rem;
    }

    .required > label:after {
        content: "*";
        color: #dc3545;
        margin-left: 0.25rem;
    }
}

.dynamic-table {
    border-radius: var(--border-radius);
    table {
        background: white;
    }

    thead {
        border-bottom: 1px solid #dee2e6;
    }

    th,
    td {
        padding: 1rem;
        border-color: #dee2e6;
    }

    tr:hover {
        background-color: #f8f9fa;
    }
}

.select2-container--bootstrap .select2-selection.form-control {
    height: 40px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    border-radius: 8px;
}

.select2-container--bootstrap
    .select2-selection--single
    .select2-selection__placeholder {
    color: gray;
    opacity: 0.6;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

[type="checkbox"]:not(:checked),
[type="checkbox"]:checked {
    position: unset !important;
}

.confirm-guarantee {
    display: flex;
    gap: 1rem;
}

.confirm-guarantee input {
    position: relative !important;
    left: 0 !important;
    opacity: 1 !important;
    transform: scale(1.5);
}

.swal2-styled.swal2-confirm:focus {
    box-shadow: unset !important;
}
.select2-container--bootstrap .select2-search--dropdown .select2-search__field {
    border-radius: 0.5rem;
}

.hide_show {
    display: none !important;
}

.btn-dynamic-upload > button {
    border-radius: 10px;
}

.curriculum-vitae .btn-toggle-container .btn-toggle {
    border-radius: 10px;
}

/* .dynamic-table {
    overflow: auto;
} */
#physical_person_information-architecture_project_experience_reports table thead,
#physical_person_information-engineer_project_experience_reports table thead,
#physical_person_information-architecture_project_experiences table thead,
#physical_person_information-engineer_project_experiences table thead,
.technician thead {
    border: unset;
}

#physical_person_information-architecture_project_experience_reports table thead th:last-child,
#physical_person_information-engineer_project_experience_reports table thead th:last-child,
#physical_person_information-architecture_project_experiences table thead th:last-child,
#physical_person_information-engineer_project_experiences table thead th:last-child,
.extra-fields-technician-repeater {
    position: absolute;
    top: -75px;
    right: 40px;
}

#physical_person_information-architecture_project_experience_reports table thead th:first-child,
#physical_person_information-engineer_project_experience_reports table thead th:first-child,
#physical_person_information-architecture_project_experiences table thead th:first-child,
#physical_person_information-engineer_project_experiences table thead th:first-child,
.number-column{
    position: absolute;
    left: -5px;
    top: 0px;
}

#physical_person_information-architecture_project_experience_reports table tbody tr,
#physical_person_information-engineer_project_experience_reports table tbody tr,
#physical_person_information-architecture_project_experiences table tbody tr,
#physical_person_information-engineer_project_experiences table tbody tr{
    border-bottom: 1px solid #dee2e6;
}

.dropzone .dz-preview.dz-file-preview .dz-details {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.contract-inputs {
    font-size: 20px !important;
}

.review-application .btn-toggle-container .btn-toggle {
    border-radius: 10px;
}

.wizard > .steps a,
.wizard > .steps a:hover,
.wizard > .steps a:active {
    padding: 0.5em 1.5em !important;
    margin: 0px;
    cursor: pointer;
}

.border {
    border: unset !important;
}

.review-application
    .content-container
    fieldset.each-step.active
    .fileupload_single_file_ows {
    overflow: unset;
}

.wizard > .steps > ul > li {
    flex: 1;
    max-width: 300px;
    width: fit-content;
}

.docs_ows_label {
    padding-left: 1.5rem;
}

textarea.form-control {
    padding-top: calc((90px - (1.5em * 2)) / 2);
    padding-bottom: calc((40px - (1.5em * 2)) / 2);
}

.select2-container--bootstrap.select2-container--disabled .select2-selection,
.select2-container--bootstrap.select2-container--disabled
    .select2-selection--multiple
    .select2-selection__choice {
    background-color: #f3f4f6;
}
 #requesters-advanced-form textarea {
    max-height: 112px;
 }

 .input-datepicker[readonly][disabled] {
    background-color: var(--gray-100) !important;
 }

 .input-datepicker[readonly]:not(#auth_dob):not(.input-datepicker.error[readonly]) {
    background-color: unset;
 }

 #register-advanced-form > .steps {
    margin-top: 10px;
}
