.form__element {
    width: 100%;
    display: block;
    margin-bottom: 20px;
}

.form__element--task {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 45px;
}

.form__element--service {
    background: #efece8;
    padding: 30px 15px 30px 30px;
    border-bottom: 2px solid #4d4d4d;
}

.form__element--center {
    width: 350px;
    margin: 0 auto 30px auto;
}

.form__element--task-sm {
    width: 150px;
    padding-right: 20px;
    align-self: flex-start;
    left: 20px;
}

.form__element--task-lg {
    flex: 1;
    align-self: flex-start;
}

.form__label {
    width: 100%;
    display: block;
}

.form__element--task .form__label {
    padding: 5px;
    align-items: center;
    justify-content: center;
    display: flex !important;
    margin-bottom: 0 !important;
    font-size: 15px;
    font-weight: 600;
    width: auto;
}

.form__element--center .form__label {
    width: 100%;
    align-items: normal;
    justify-content: normal;
    display: block;
    padding-bottom: 5px;
}

.form__label--red {
    color: #b50e0f;
}

.form__element--task .form__label--top {
    align-items: start;
}

.form__element--task.form__label--top .form__label {
    align-items: start;
}

.phone-input-container {
    width: 100%;
}

.phone-input-container .phone-multiple {
    margin-bottom: 5px;
}

.phone-input-container .phone-input-box {
    display: inline-block;
    width: calc(100% - 21px);
}

.phone-input-container .phone-action,
.form_container .phone-action {
    display: inline-block;
    width: 22px;
    padding: 6px 8px;
    margin-right: -4px;
    background: #ccc;
    text-decoration: none;
}

.form__input {
    border: 1px solid #9F9F9F;
    border-radius: 25px;
    padding: 0.8rem 1rem;
}

.form__element--task .form__input {
    border: 1px solid #9F9F9F;
    border-radius: 25px;
    padding: 0.8rem 1rem;
    align-items: center;
    justify-content: center;
}

.form__element--center .form__input {
    margin: 0;
}

.form__element--task .form__input--select,
.new_select {
    border: 1px solid #9F9F9F;
    border-radius: 25px;
    width: 200px;
    padding: 0.8rem 1rem;
    appearance: unset;
    position: relative;
    /* background: url(../img/arrow_close.svg) no-repeat; */
    background: url(../img/down_modal.png) no-repeat;
    background-position-x: 10px;
    background-position-y: center;
}

.form__input--suffix {
    padding-right: 5px;
    align-items: center;
    justify-content: center;
    display: flex;
}

.form__element--task .form__input--textarea {
    height: 110px;
    resize: none;
}

.form__element--service .form__input--textarea {
    height: 165px;
}

.form__input--auth {
    height: 48px;
    line-height: 48px;
    padding: 0 15px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #FFFFFF;
    font-size: 18px;
}

.form__input--auth::-webkit-input-placeholder {
    /* WebKit, Blink, Edge */
    color: #FFFFFF;
}

.form__input--auth:-moz-placeholder {
    /* Mozilla Firefox 4 to 18 */
    color: #FFFFFF;
    opacity: 1;
}

.form__input--auth::-moz-placeholder {
    /* Mozilla Firefox 19+ */
    color: #FFFFFF;
    opacity: 1;
}

.form__input--auth:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: #FFFFFF;
}

.form__input--auth::-ms-input-placeholder {
    /* Microsoft Edge */
    color: #FFFFFF;
}

.form__input--auth::placeholder {
    /* Most modern browsers support this now. */
    color: #FFFFFF;
}

.form__action {
    display: table;
    width: 100%;
}

.form__action .btn--login {
    float: left;
}

.form__help-text--auth {
    color: #FFFFFF;
    float: right;
    margin-top: 13px;
    font-size: 18px;
}

.form__help-text--link {
    text-decoration: underline;
    cursor: pointer;
}

.form__help-block--error {
    width: 100%;
    text-shadow: none;
    color: #ff1744;
}

.form__has-error .form__input {
    box-shadow: inset 0 1px 8px rgba(255, 23, 68, 0.2);
    border-color: #ff1744;
}

.task__body .form__has-error .form__input {
    /*background: rgba(255,23,68, 0.2);*/
}

.task__body .form__help-block--error {
    display: block;
    width: 100%;
    color: #ff1744;
}

.form__element--service .form__help-block--error {
    padding-right: 45px;
}

.form__element--camera-holder {
    width: 93px;
    height: 109px;
    border: 1px solid #999999;
    display: block;
    text-align: center;
    color: #b50e0f;
    font-size: 15px;
    margin-bottom: 10px;
    overflow: hidden;
}

.form__element--camera-holder img,
.js__take-photo img {
    /* width: 100%; */
    top: 4px;
    position: relative;
}

.form__element--camera-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: url("../img/camera-icon.png") #b50e0f no-repeat center;
    background-size: 30px;
    margin: 15px auto 10px;
}

.form__element--camera-buttons>button:first-child {
    margin-bottom: 10px;
}

.form__input--signature {
    position: relative;
    width: 350px;
    height: 230px;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.form__input--signature .signature-pad {
    position: absolute;
    left: 0;
    top: 0;
    width: 350px;
    height: 200px;
    background-color: #efece8;
}

.form__has-error .signature-pad {
    border: 1px solid #ff1744;
}

.form__input--signature.form__has-error .form__help-block--error {
    position: absolute;
    bottom: -20px;
}

.form__input--signature .signature-button-panel {
    position: absolute;
    height: 30px;
    width: 350px;
    display: flex;
    bottom: 0;
    padding-top: 10px;
}

.signature-button-panel .btn--gray {
    margin-left: 10px;
}

.form__element-checkbox-wrapper {
    display: inline-block;
    margin-bottom: 0;
}

.form__element-checkbox-wrapper input {
    padding: 0;
    height: initial;
    width: initial;
    margin-bottom: 0;
    display: none;
    cursor: pointer;
}

.form__element-checkbox-wrapper label {
    position: relative;
    cursor: pointer;
    height: 26px;
    line-height: 26px;
    margin: 0;
}

.form__element-checkbox-wrapper label:before {
    content: '';
    -webkit-appearance: none;
    background-color: transparent;
    border: 1px solid #999999;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0px -15px 10px -12px rgba(0, 0, 0, 0.05);
    padding: 12px;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    cursor: pointer;
    margin-right: 5px;
    float: left;
}

.form__element-checkbox-wrapper input:checked+label:after {
    content: '';
    display: block;
    position: absolute;
    top: 2px;
    left: 9px;
    width: 6px;
    height: 14px;
    border: solid #b50e0f;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form__element-checkbox--multiple .form__element-checkbox-wrapper:last-child {
    margin-right: 14px;
}

.form__element--full-inline {
    padding-right: 20px;
    padding-top: 10px;
}

.form__element--full {
    padding-right: 20px;
    padding-top: 10px;
}

.form__element--full .form__label,
.form__element--inline .form__label {
    width: 100%;
    justify-content: start;
    margin-bottom: 5px !important;
}

.form__element--inline .form__label {
    padding-top: 8px;
}

.form__element--full .form__input,
.form__element--inline .form__input {
    margin-right: 0;
}

.form_container .form__input {
    width: 100%;
}

.flatpickr-calendar {
    direction: rtl;
}

.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month {
    left: initial;
    right: 0;
}

.flatpickr-months .flatpickr-next-month.flatpickr-next-month {
    right: initial;
    left: 0;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    transform: rotate(180deg);
}

.autocomplete-wrapper {
    position: relative;
    /* flex: 1; */
}

.autocomplete-suggestions {
    border: 0;
    overflow: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
    border-radius: 0 0 5px 5px;
    background-color: #f9f9f9;
    border: 1px solid #bbb;
    width: fit-content !important;
    display: block;
    right: 0px !important;
    max-height: 200px !important;
    min-width: 200px;
}

.autocomplete-suggestion {
    padding: 8px 8px;
    font-size: 20px;
    white-space: pre-wrap;
    overflow: hidden;
    background-color: #f6f6f6;
    border-color: #ddd;
    border-width: 1px 0 0;
    border-style: solid;
}

.autocomplete-suggestion:hover {
    background-color: #ededed;
}

.autocomplete-selected {
    background: #F0F0F0;
}

.autocomplete-suggestions strong {
    font-weight: bold;
    color: #000;
}

.autocomplete-group {
    padding: 2px 5px;
}

.autocomplete-group strong {
    display: block;
    border-bottom: 1px solid #000;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    text-indent: 1px;
    text-overflow: '';
}

.hiddenField {
    display: none;
}

.form {
    padding: 1em;
}

.form .form_container {
    margin: 1em;
}

textarea.form_control {
    border-radius: 10px;
    width: 100%;
    padding: 10px;
    font-size: 1.3em;
}

input[type=checkbox].form_control {
    position: relative;
    cursor: pointer;
    margin: 0 0.6em 0 1em;
}

input[type=checkbox].form_control:before {
    content: "";
    display: block;
    position: absolute;
    width: 16px;
    height: 16px;
    top: 0;
    left: 0;
    border: 2px solid #555555;
    border-radius: 3px;
    background-color: white;
}

input[type=checkbox].form_control:checked:after {
    content: "";
    display: block;
    width: 5px;
    height: 10px;
    border: solid black;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    position: absolute;
    top: 2px;
    left: 6px;
}

.task__form .agenda__list .form__element {
    margin-bottom: unset;
}

.comments-form-block {
    border-bottom: 1px solid #E5262A;
}

.comments-form-block:last-child {
    border-bottom: unset;
}

.comments-form-inner-block {
    padding: 40px;
}

.styled-checkbox {
    position: absolute;
    opacity: 0;
}

.styled-checkbox+label {
    position: relative;
    cursor: pointer;
    padding: 0;
}

.styled-checkbox+label:before {
    content: "";
    display: inline-block;
    vertical-align: text-top;
    width: 16px;
    height: 16px;
    border: 2px solid #c1c1c1;
    border-radius: 2px;
    margin-left: 7px;
}

.styled-checkbox:hover+label:before {
    background: #E5262A;
    border: 2px solid #E5262A;
}

.styled-checkbox:focus+label:before {
    box-shadow: 0 0 0 3px rgb(247 126 126 / 12%);
}

.styled-checkbox:checked+label:before {
    background: #E5262A;
    border: 2px solid #E5262A;
}

.styled-checkbox:disabled+label {
    color: #b8b8b8;
    cursor: auto;
}

.styled-checkbox:disabled+label:before {
    box-shadow: none;
    background: #ddd;
}

.styled-checkbox:checked+label:after {
    content: "";
    position: absolute;
    right: 13px;
    top: 9px;
    background: white;
    width: 2px;
    height: 2px;
    box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, 4px -4px 0 white, 4px -6px 0 white, 4px -8px 0 white;
    transform: rotate(45deg);
}

.comments-form-inner-block .form__element--task {
    margin-bottom: 13px;
}

.comments-form-inner-block .info_comment_title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.comments-form-inner-block textarea {
    width: 100%;
    border-radius: 10px;
    border: 1.5px solid #c1c1c1;
    resize: none;
    padding: 10px;
}

.form_height_width,
.form_opening_direction {
    width: 23%;
    padding-right: 20px;
    position: relative;
}

.form_opening_direction {
    top: -5px;
}

.form_opening_direction select.meas_data_opening_direction {
    width: 100% !important;
}

.meas_data_app_notes {
    width: 92%;
    padding-right: 20px;
}

.mes_summary .input__datalist,
.mes_task_measuring .input__datalist {
    width: 100%;
    margin-top: 10;
}

.mes_summary .input_other_option,
.mes_task_measuring .input_other_option {
    position: absolute;
    top: 50px;
    width: calc(100% - 20px);
}

.mes_summary select.input__datalist,
.mes_task_measuring select.input__datalist {
    margin-bottom: 10px;
}

img.data-image {
    height: 22px;
    width: auto;
    object-fit: scale-down;
}

.task__summary-col-right .new_select,
.task__summary-col-right .new_select_label {
    font-size: 18px;
    padding: 0.8rem 1rem;
}

.task__summary-col-right {
    margin-bottom: 15px;
}

div[contenteditable]{
    height: unset !important;
    max-height: 200px;
    max-width: 200px;
    min-width: 50px;
    overflow: auto;
}

/* 
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/

@media (min-width: 1281px) {
    /* CSS */
}


/* 
##Device = Laptops, Desktops
##Screen = B/w 1025px to 1280px
*/

@media (min-width: 1025px) and (max-width: 1280px) {
    /* CSS */
}


/* 
##Device = Tablets, Ipads (portrait)
##Screen = B/w 768px to 1024px
*/

@media (min-width: 768px) and (max-width: 1024px) {
    /* CSS */
}


/* 
##Device = Tablets, Ipads (landscape)
##Screen = B/w 768px to 1024px
*/

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    /* CSS */
}


/* 
##Device = Low Resolution Tablets, Mobiles (Landscape)
##Screen = B/w 481px to 767px
*/

@media (min-width: 481px) and (max-width: 767px) {
    .form_height_width,
    .form_opening_direction {
        width: 48%;
    }
    .meas_data_app_notes {
        width: 96%;
    }
}


/* 
##Device = Most of the Smartphones Mobiles (Portrait)
##Screen = B/w 320px to 479px
*/

@media (min-width: 320px) and (max-width: 480px) {
    .form_height_width,
    .form_opening_direction {
        width: 93%;
    }
    .meas_data_app_notes {
        width: 96%;
    }
}