form {
    display: block;
}

form.lang_switch {
    width: 100%;
}

form.lang_switch .form-control-container {
    margin: 0;
}

form.select_only .form-control-container,
form.select_only .custom_select {
    margin-bottom: 0;
}

form.scale_form textarea {
    min-height: 24vh;
    min-width: calc(100% - 10px);
}

.pdf_form {
    display: inline-block;
    width: auto;
}

.form_title {
    margin-bottom: 20px;
    display: flex;
}

.form_title__label {
    font-size: 20px;
    font-weight: bold;
    flex: 7;
}

[type=button],
[type=reset],
[type=submit],
button {
    -webkit-appearance: button;
}

[type=button]:not(:disabled),
[type=reset]:not(:disabled),
[type=submit]:not(:disabled),
button:not(:disabled) {
    cursor: pointer;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: 7px 15px;
    font-size: 15px;
    border-radius: 3px;
    transition: all .3s ease-in-out;
    color: #fff;
}

.btn:hover,
button:not(.tablesaw-sortable-btn) {
    color: #fff;
}

.btn-primary {
    background-color: var(--btn-primary-bg);
    border-color: var(--btn-primary-border);
}

.btn-primary-outline {
    color: var(--btn-primary-bg);
    border-color: var(--btn-primary-border);
}

.btn-primary-outline:hover {
    color: var(--btn-primary-bg);
}

.btn-primary:hover {
    background-color: var(--btn-primary-hover-bg);
    border-color: var(--btn-primary-hover-border);
    transition: all .3s ease-in-out;
}

.btn-secondary {
    background-color: var(--btn-secondary-bg);
    border-color: var(--btn-secondary-border);
}

.btn-secondary:hover {
    background-color: var(--btn-secondary-hover-bg);
    border-color: var(--btn-secondary-hover-border);
    transition: all .3s ease-in-out;
}

.btn-delete {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-delete:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
    transition: all .3s ease-in-out;
}
.btn-warning {
    color: white !important;
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.btn-warning:hover {
    background-color: #bb2d3b !important;
    border-color: #b02a37 !important;
    transition: all .3s ease-in-out;
}

.btn-success {
    color: #fff;
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    color: #fff;
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-warning {
    color: #212529;
    background-color: #ffc107;
    border-color: #ffc107;
}

.btn-warning:hover {
    color: #212529;
    background-color: #e0a800;
    border-color: #d39e00;
}

.btn-disabled {
    background-color: #cbcbcb;
    border-color: #cbcbcb;
    cursor: not-allowed;
}

.btn-small {
    font-size: 13px;
    line-height: 13px;
    padding: 6px 8px;
    height: auto;
    gap: 8px;
}

.btn-table {
    font-size: 11px;
    line-height: 11px;
    padding: 4px 8px;
    height: auto;
    gap: 6px;
    white-space: nowrap;
}

.btn-text-href {
    border: 1px solid transparent !important;
    background: transparent;
    color: var(--btn-primary-border) !important;
}

.btn-table i {
    font-size: 9px !important;
}

/* Login Page */
#login_screen {
    min-height: 100vh !important;
    padding: 80px 20px;
    background: var(--main-bg);
    display: flex;
    justify-content: center;
}

#login_screen .banner {
    width: 100%;
    max-width: 1024px;
}

.login-content {
    max-width: 500px;
    width: 100%;
    display: inline-block;
    text-align: center;
}

#login_screen .login_container {
    text-align: left;
    padding: 25px 35px;
    background-color: #fff;
    border-radius: 3px;
}

#login_screen .login_container .login_head {
    margin-bottom: 25px;
    margin-top: 25px;
}

#login_screen .login_container .account-img-container {
/*	width: 60%;*/
}

@media (max-width: 540px) {
    #login_screen .login_container {
        padding: 20px;
    }

    #login_screen {
        padding: 20px;
    }

    #login_screen .login_container .login_head {
        margin-top: 25px;
    }
}

.login_container {
    -webkit-box-shadow: 0 0 5px 0 rgba(43, 43, 43, 0.1), 0 11px 6px -7px rgba(43, 43, 43, 0.3);
    box-shadow: 0 0 5px 0 rgba(43, 43, 43, 0.1), 0 11px 6px -7px rgba(43, 43, 43, 0.3);
    margin-bottom: 20px;
}

#login_screen .powered {
    text-align: center;
    color: #333;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    margin-top: 50px;
}

#login_screen .powered a {
    color: #000;
    font-weight: bold;
}

#login_screen .legal {
    font-size: 13px;
    color: #545454;
}

#login_screen .legal a {
    font-size: 13px;
    color: #545454;
    text-decoration: none;
}

#login_admin_reply {
    padding-top: 15px;
}

.modal_inner_canvas {
    border: 1px solid #ddd;
    height: calc(100% - 42px);
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    background-color: #f2f2f2;
}

@media (max-width: 850px) {
    .modal_inner__topbar {
        border-bottom: 1px solid #ddd;
        border-right: 0 !important;
    }
}

.modal_inner__topbar {
    border-bottom: 1px solid #ddd;
    padding: 15px;
    display: flex;
    justify-content: space-between;
}

.modal_inner__topbar .form-control-container {
    margin-bottom: 0;
}

.modal_inner__topbar_search {
    position: relative;
}

.modal_inner__topbar_search_close {
    position: absolute;
    right: 12px;
    top: 10px;
    color: #eee !important;
    font-size: 12px !important;
    background: #bbb;
    padding: 5px;
    border-radius: 100%;
    cursor: pointer;
    display: none;
}

#modal_inner__main_list {
    padding: 15px;
    overflow-y: auto;
    height: 100%;
    background-color: #fff;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

#modal_load_more_container {
    color: #999;
    font-size: 14px;
    margin-top: 15px;
}

#modal_inner__main_title {
    font-weight: bold;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ddd;
    font-size: 15px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

#prompt_response {
    padding-top: 15px;
}

input::-moz-placeholder {
    color: #aaa;
}

input:-moz-placeholder {
    color: #aaa;
}

input::-webkit-input-placeholder {
    color: #aaa;
}

@media (max-width: 767px) {
    input {
        font-size: 16px !important;
    }
}

.form-control-container.alert-input .form-control,
.form-control-container.alert-input select,
.form-control-container.alert-input .multi-select-button,
.form-control-container.alert-input .multi-select-container,
.form-control-container.alert-input .checkmark,
.form-control-container.alert-input .tox.tox-tinymce {
    border-color: #dc3545 !important;
}

#pw_strength {
    margin: 0 4px;
}

#pw_strength .indicator {
    height: 6px;
    margin-bottom: 2px;
}

#pw_strength .level-3 {
    background: #dc3545;
}

#pw_strength .level-2 {
    background: #ebc131;
}

#pw_strength .level-1 {
    background: #ebc131;
}

#pw_strength .level-0 {
    background: #28a745;
}

.action_below_input {
    margin: 5px 0 10px 4px;
    font-size: 12px;
    line-height: 20px;
    transition: border-color .5s ease;
}

.form-control-container {
    margin-bottom: 15px;
    margin-top: 7px;
    position: relative;
}

.form-control-container.checkbox {
	/*display: flex;*/
	/*align-items: flex-start;*/
}

.form-control-container.checkbox div {
	/*flex: 0 0 25px;*/
	/*padding-top: 1px;*/
}

.form-control-container.checkbox label {
	/*flex: 1;*/
	/*user-select: none;*/
}

.form-control-container.checkbox.reverse {
    flex-direction: row-reverse;
}

.form-control-container.checkbox.reverse div {
    text-align: right;
}

.form-control-container .input_group_wrap {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.form-control-container .input_group_wrap .input_group {
    height: 42px;
    padding: 9px 12px;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    background: #f8f9fa;
    border: 1px solid #ced4da;
    border-right: 0;
}

.form-control-container .input_group_wrap .form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.form-submission-button {
    float: right;
    /*margin-top: 15px;*/
}

.form-cancel-button {
    /*margin-top: 15px;*/
}

.form-control {
    display: block;
    width: 100%;
    height: 42px;
    padding: 9px 12px;
    font-size: 15px;
    line-height: 1.5;
    color: #212529;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 3px;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    outline: none;
}

.form-control:focus {
    outline: 1px solid #222;
    border: 1px solid #222;
}

textarea.form-control {
    height: auto;
}

.form-control-container.update_translation {
    margin-bottom: 0;
    width: 100%;
}

.form-control-container.update_translation input {
    font-size: 14px;
    padding: 6px 9px;
    height: auto;
}

.form-control-container.table-input {
    margin-bottom: 0;
    width: 100%;
}

.form-control-container.table-input input {
    font-size: 14px;
    padding: 6px 9px;
    height: auto;
}

.form-control-container.width-100 input {
    width: 100px;
}

.form-control:disabled,
.form-control[readonly]:not(.flatpickr-cloned),
select:disabled {
    background-color: #e9ecef;
    opacity: 1;
    color: #aaa;
    cursor: not-allowed;
}

input.flatpickr-cloned {
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") no-repeat calc(100% - 12px) center;
    background-size: 17px;
    cursor: pointer;
}



input[type="checkbox"]:disabled {
    background-color: #e9ecef;
    border-color: #aaa;
    cursor: not-allowed;
}

input[type="checkbox"]:disabled:before {
    border-color: #777;
}

.custom_select.disabled:after {
    background-color: #e9ecef;
}

select {
    background: transparent;
    cursor: pointer;
    margin: 0;
    text-align: left;
    white-space: nowrap;
}


/* AUTOCOMPLETE */
.autocomplete_container {
    position: absolute;
    padding: 10px 10px 5px 10px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    background: white;
    width: 100%;
    display: none;
    z-index: 4;
}

.autocomplete_single {
    padding: 3px 10px;
    transition: all .3s;
    cursor: pointer;
    display: inline-block;
    color: #131313;
    font-size: 13px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    margin: 0 5px 5px 0;
}

.autocomplete_single:hover {
    background: #ced4da;
    color: #000;
    transition: all .3s;
}

.custom_select {
    position: relative;
    width: 100%;
    background-size: 15px;
    background: #fff url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='17' height='17' viewBox='0 0 17 17'%3E%3Cg%3E%3C/g%3E%3Cpath d='M16.354 5.075l-7.855 7.854-7.853-7.854 0.707-0.707 7.145 7.146 7.148-7.147 0.708 0.708z' fill='%23000000' /%3E%3C/svg%3E") no-repeat calc(100% - 12px) center;
    border-radius: 3px;
}

.custom_select select {
    padding-right: 40px;
}

.filter.icon .custom_select {
    background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='17' height='17' viewBox='0 0 17 17'%3E%3Cg%3E%3C/g%3E%3Cpath d='M0.54 0l6.46 9.229v7.771h3v-7.771l6.46-9.229h-15.92zM9 8.914v7.086h-1v-7.086l-5.54-7.914h12.080l-5.54 7.914z' fill='%23000000' /%3E%3C/svg%3E");
}

.order.icon .custom_select {
    background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='17' height='17' viewBox='0 0 17 17'%3E%3Cg%3E%3C/g%3E%3Cpath d='M10.646 13.146l0.707 0.707-2.853 2.854-2.854-2.854 0.707-0.707 1.647 1.647v-3.772h1v3.772l1.646-1.647zM8 2.207v3.772h1v-3.772l1.646 1.646 0.707-0.707-2.853-2.853-2.854 2.853 0.707 0.707 1.647-1.646zM0 8v1h17v-1h-17z' fill='%23000000' /%3E%3C/svg%3E");
}

.form_error_container {
    background-color: #ffe0e3;
    border-left: 3px solid #dc3545;
    font-size: 14px;
    margin-top: 10px;
    padding: 10px 10px 10px 15px;
    color: #dc3545;
}

.pagination_button {
    padding: 5px 14px;
    background-color: #fff;
    color: #0d6efd;
    border: 1px solid #dee2e6;
    transition: all .3s;
    display: inline-block;
    margin-left: -1px;
    font-size: 15px;
}

.pagination_button.short {
    padding: 5px 7px;
    color: var(--table-text-color);
}

.pagination_button:hover {
    transition: all .3s;
    color: #0a58ca;
    background-color: #e9ecef;
}

.pagination_button i {
    font-size: 10px;
}

.pagination_button.active {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.pagination_button:last-child {
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}

.pagination_button:first-child {
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    margin-left: 0;
}

.tox .tox-promotion,
.tox-statusbar__right-container {
    display: none !important;
}

.tox:not(.tox-tinymce-inline) .tox-editor-header {
    padding: 0 !important;
}

.tox-tinymce {
    border-radius: 3px !important;
    border: 1px solid #ced4da !important;
}

.show-password {
    position: absolute;
    right: 0;
    top: 0;
    color: #212529;
    cursor: pointer;
    font-size: 17px;
    padding: 12px;
}

input.password-input {
    padding-right: 52px;
}



label:not(.checkbox label):not(.btn) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

label {
    font-size: 15px;
    display: block;
    color: #333;
}

.toggle-container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.toggle-container.inverted {
    flex-direction: row;
    justify-content: space-between;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

input[type="checkbox"],
input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input[type=radio],
input[type=checkbox] {
    width: 16px;
    height: 16px;
    border: solid 1px #cccccc;
    position: relative;
    border-radius: 3px;
    flex: none;
}

[type=radio]:checked::before,
[type=checkbox]:checked::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0;
    width: 4px;
    height: 9px;
    border: solid var(--ci-color);
    border-width: 0 2px 2px 0;
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

textarea {
    resize: vertical;
}

textarea.code {
    font-size: 14px;
    line-height: 19px;
    font-family: monospace;
    height: auto;
}

.custom-file-upload {
    border: 1px solid #ccc;
    display: inline-block;
    padding: 6px 12px;
    cursor: pointer;
}

/* IOS TOGGLE */
.form-switch {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    margin-top: 0;
    margin-bottom: 0 !important;
    line-height: 0;
    width: 44px !important;
    display: block;
}

.form-switch span.label {
    display: inline-block;
    line-height: 24px;
    text-transform: uppercase;
    font-size: 14px;
    margin-left: 10px;
}

.form-switch i {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background-color: #e6e6e6;
    -webkit-border-radius: 23px;
    border-radius: 23px;
    transition: all 0.3s linear;
}

.form-switch i::before {
    content: "";
    position: absolute;
    left: 0;
    width: 40px;
    height: 20px;
    background-color: #fff;
    -webkit-border-radius: 11px;
    border-radius: 11px;
    transform: translate3d(2px, 2px, 0) scale3d(1, 1, 1);
    transition: all 0.25s linear;
}

.form-switch i::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: #fff;
    -webkit-border-radius: 11px;
    border-radius: 11px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.24);
    transform: translate3d(2px, 2px, 0);
    transition: all 0.2s ease-in-out;
}

.form-switch:active i::after {
    width: 28px;
    transform: translate3d(2px, 2px, 0);
}

.form-switch:active input:checked+i::after {
    transform: translate3d(16px, 2px, 0);
}

.form-switch input {
    display: none !important;
}

.form-switch input:checked+i {
    background-color: #0d6efd;
}

.form-switch input:checked+i::before {
    transform: translate3d(18px, 2px, 0) scale3d(0, 0, 0);
}

.form-switch input:checked+i::after {
    transform: translate3d(22px, 2px, 0);
}

.form_field_hint {
    font-size: 13px;
    margin-bottom: 10px;
    padding: 3px;
}

@media (min-width: 1000px) {
    form .half {
        width: 49%;
        float: left;
    }

    form .half:nth-child(2) {
        margin-left: 2%;
    }

    form .third {
        width: 32%;
        float: left;
    }

    form .two-thirds {
        margin-left: 2%;
        width: 66%;
        float: left;
    }

    form .third:nth-child(2),
	form .third:nth-child(3) {
        margin-left: 2%;
    }

    form .quarter {
        width: 23.5%;
        float: left;
    }

    form .two-quarters {
        width: 48%;
        float: left;
        margin-left: 2%;
    }

    form .quarter:nth-child(2),
	form .quarter:nth-child(3),
	form .quarter:nth-child(4) {
        margin-left: 2%;
    }

    .form_row:after {
        visibility: hidden;
        display: block;
        font-size: 0;
        content: " ";
        clear: both;
        height: 0;
    }
}

#ml_counter {
    text-align: right;
    font-size: 12px;
    margin-bottom: 10px;
}

.filter_sort {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: space-between;
}

.sort_overview,
.filter_overview,
.pagination_overview {
    width: 100%;
}

@media (max-width: 449px) {

    .sort_overview .worcs_select,
	.filter_overview .worcs_select {
        width: 100%;
    }
}

input[type=range]:focus {
    outline: none;
}

input[type=range] {
    -webkit-appearance: none;
    margin: 15px 0 18px;
    width: calc(100% - 80px);
    height: 10px;
    border: 0;
    padding: 0;
    display: inline-block;
}

.range_container_indicator {
    width: 100px;
    display: inline-block;
}

.range_container_indicator {
    display: inline-block;
    position: relative;
    width: 60px;
    line-height: 20px;
    text-align: center;
    border-radius: 3px;
    background: #ced4da;
    padding: 5px 10px;
    margin-left: 10px;
}

.range_container_indicator:after {
    position: absolute;
    top: 8px;
    left: -7px;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-right: 7px solid #ced4da;
    border-bottom: 7px solid transparent;
    content: "";
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 10px;
    cursor: pointer;
    background-color: #ced4da;
    border-radius: 5px;
    margin-bottom: 2px;
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 10px;
    cursor: pointer;
    background-color: silver;
    border-radius: 5px;
    margin-bottom: 2px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    border: 8px solid var(--btn-primary-bg);
    height: 30px;
    width: 30px;
    border-radius: 50%;
    background-color: #fff;
    cursor: pointer;
    margin-top: -10px;
}

input[type=range]::-moz-range-thumb {
    border: 8px solid var(--btn-primary-bg);
    height: 30px;
    width: 30px;
    border-radius: 50%;
    background-color: #fff;
    cursor: pointer;
    margin-top: -10px;
}

input[type=range]:disabled::-webkit-slider-thumb {
    border-color: #aaa;
}

input[type=range]:disabled::-moz-range-thumb {
    border-color: #aaa;
}

.flex-row .captcha-img {
    flex: 1;
}

.flex-row .captcha-img img {
    max-width: 250px;
}

.form-control-container:not(.checkbox) label:not(.form-switch) {
    position: absolute;
    transform: translateY(-50%);
    color: #545454;
    pointer-events: none;
    transition: .3s;
    z-index: 3;
    top: -2px;
    left: 4px;
    font-size: 13px;
    padding: 0 6px;
    background: #fff;
    border-radius: 5px;
}

.form-control-container:not(.checkbox) .input_group_wrap label:not(.form-switch) {
    left: 45px;
}

.inline-form {
    display:flex;
    gap: 10px;
    align-items: baseline;
}
.inline-form br {
    display:none;
}
.inline-form .form-submission-button {
    margin:0;
    float:none;
}
.inline-form .form-control-container   {
    margin-bottom:0;
    flex: 1;
}
.inline-form .form-control   {
    height: auto;
    padding: 3px 8px;
    font-size: 13px;
}

.form-control-container.error input,
.form-control-container.error .input_group_wrap .input_group,
.form-control-container.error .tox-tinymce {
    border-color:#dc3545 !important;
}

.form-error {
    background-color: #ffe0e3;
    border-left: 3px solid #dc3545;
    font-size: 13px;
    margin-top: 3px;
    padding: 5px 5px 5px 10px;
    color: #dc3545;
}

.auth-code-container {
    display: flex;
    justify-content: center;
    gap:7px;
}

.auth-code {
    width: 40px;
    height: 45px;
    font-size: 22px;
    text-align: center;
    border: 2px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.2s ease-in-out;
    background-color: #f6f6f6;
}

.auth-code:focus {
    border-color: #007bff;
    outline: none;
    background-color: #fff;
}

/* Hide spin buttons for number inputs (optional) */
.auth-code::-webkit-outer-spin-button,
.auth-code::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
