﻿/*Стандартный инпут*/
:root {
    --ui-input-disabled-text: #B2B7C2;
    --ui-input-disabled-background: #FBFBFB;
    --ui-input-disabled-border: #D2D2D4;
}

.uiInput {
    display: flex;
    padding: 4px 8px 4px 12px;
    color: #433E3E;
    font-family: Inter;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid #D2D2D4;
}

    .uiInput:read-only {
        color: var(--ui-input-disabled-text);
        background-color: var(--ui-input-disabled-background);
        border-color: var(--ui-input-disabled-border);
    }

    .uiInput::placeholder {
        color: #BDC2CB;
        font-family: Inter;
        font-size: 14px;
        font-weight: 500;
    }

    .uiInput.px36 {
        height: 36px;
    }

    .uiInput.px44 {
        height: 44px;
    }

/* Тексты */
.uiText23 {
    cursor: default;
    font-family: Inter;
    font-size: 23px;
    font-style: normal;
    font-weight: 600;
    line-height: 30px
}

.uiText20 {
    cursor: default;
    font-family: Inter;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px
}

.uiText16 {
    cursor: default;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px
}

.uiText14 {
    cursor: default;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px
}

.uiText13 {
    cursor: default;
    font-family: Inter;
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px
}

.uiText12 {
    cursor: default;
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px
}

.uiSelect.input-validation-error + .chosen-container > .chosen-single {
    border-color: var(--danger-red);
}

.uiSelect:not(.input-validation-error) + .chosen-container > .chosen-single {
    border-color: var(--border-grey) !important;
}

.uiSelect:disabled + .chosen-container > .chosen-single {
    color: var(--ui-input-disabled-text);
    background-color: var(--ui-input-disabled-background);
    border-color: var(--ui-input-disabled-border);
}

/*Цвета текстов*/
.uiTextGray {
    color: #767889;
}

.uiTextRed {
    color: #F03727;
}

.uiTextGreen {
    color: #0CAF89;
}

/*Чекбокс*/
.uiCheckBoxBlock {
    display: block;
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    color: #433E3E;
    font-family: Inter;
    font-size: 14px;
    font-weight: 500;
    width: max-content;
}

    .uiCheckBoxBlock.px20 {
        padding-left: 28px;
        line-height: 20px;
    }

    .uiCheckBoxBlock.px24 {
        padding-left: 28px;
        line-height: 24px;
    }

    .uiCheckBoxBlock input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

.uiCheckBoxCheckMark {
    border-radius: 6px;
    border: 1px solid #D3D7E4;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #EBEFFF;
    transition: 0.3s;
}

.uiCheckBoxBlock.px20 > .uiCheckBoxCheckMark {
    height: 20px;
    width: 20px;
}

.uiCheckBoxBlock.px24 > .uiCheckBoxCheckMark {
    height: 24px;
    width: 24px;
}

.uiCheckBoxBlock:hover input ~ .uiCheckBoxCheckMark {
    border: 1px solid #BABFCF;
    background: #EBEFFF;
}

.uiCheckBoxBlock input:checked ~ .uiCheckBoxCheckMark {
    background-color: #0CAF89;
    border: 1px solid #0CAF89;
}

.uiCheckBoxBlock:hover input:checked ~ .uiCheckBoxCheckMark {
    border: 1px solid #089F7C;
    background: #089F7C;
}

.uiCheckBoxCheckMark:after {
    content: "";
    position: absolute;
    display: none;
}

.uiCheckBoxBlock input:checked ~ .uiCheckBoxCheckMark:after {
    display: block;
}

.uiCheckBoxBlock .uiCheckBoxCheckMark:after {
    border: solid white;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.uiCheckBoxBlock.px20 .uiCheckBoxCheckMark:after {
    left: 6px;
    top: 1px;
    width: 7px;
    height: 12px;
}

.uiCheckBoxBlock.px24 .uiCheckBoxCheckMark:after {
    left: 7px;
    top: 2px;
    width: 8px;
    height: 14px;
}

/*Свитч*/
.uiSwitch {
    position: relative;
    margin-bottom: 0;
    width: max-content;
    cursor: pointer;
    display: flex;
}

    .uiSwitch.px20 {
        height: 20px;
        padding-left: 44px;
    }

    .uiSwitch.px24 {
        height: 24px;
        padding-left: 56px;
    }

    .uiSwitch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.uiSwitchSlider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #DCE0EF;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
    border: 1px solid #C6CBDF;
}

.uiSwitch:hover > .uiSwitchSlider {
    background-color: #C9CDDE;
    border: 1px solid #BDC1D4;
}

.uiSwitch.px20 > .uiSwitchSlider {
    width: 36px;
}

.uiSwitch.px24 > .uiSwitchSlider {
    width: 48px;
}

.uiSwitchSlider:before {
    position: absolute;
    content: "";
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 12px;
    z-index: 2;
    border: 1px solid #B9BCC9;
}

.uiSwitch.px20 > .uiSwitchSlider:before {
    height: 16px;
    width: 16px;
    left: 1px;
    bottom: 1px;
}

.uiSwitch.px24 > .uiSwitchSlider:before {
    height: 20px;
    width: 20px;
    left: 1px;
    bottom: 1px;
}

input:checked + .uiSwitchSlider {
    background-color: #0CAF89;
    border: 1px solid #0CAF89;
}

    input:checked + .uiSwitchSlider:before {
        border: 1px solid #0D886B;
    }

.uiSwitch:hover > input:checked + .uiSwitchSlider {
    background-color: #089F7C;
    border: 1px solid #089F7C;
}

    .uiSwitch:hover > input:checked + .uiSwitchSlider:before {
        border: 1px solid #0D886B;
    }

.uiSwitch.px20 > input:checked + .uiSwitchSlider:before {
    -webkit-transform: translateX(16px);
    -ms-transform: translateX(16px);
    transform: translateX(16px);
}

.uiSwitch.px24 > input:checked + .uiSwitchSlider:before {
    -webkit-transform: translateX(24px);
    -ms-transform: translateX(24px);
    transform: translateX(24px);
}

.uiSwitchText {
    color: #433E3E;
    font-family: Inter;
    font-size: 14px;
    font-weight: 500;
}

.uiSwitch.px20 > .uiSwitchText {
    line-height: 20px;
}

.uiSwitch.px24 > .uiSwitchText {
    line-height: 24px;
}

/*Блок не найдено компонентов*/
.uiNotFoundItemsBlock {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 320px;
    background: #FAFAFA;
    border-radius: 16px;
    flex-direction: column;
    gap: 4px;
}

.uiInput[data-clearable]:placeholder-shown + button[data-clear-field-button] {
    display: none;
}

/*Кнопки*/
.uiWhiteButton {
    outline: none;
    color: #0CAF89;
    font-family: Inter;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    height: 44px;
    padding: 10px 24px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    background: white;
    border: none;
    border-radius: 8px;
    border: 1px solid #95CEC1;
}

.uiGreenButton {
    outline: none;
    color: white;
    font-family: Inter;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    height: 44px;
    padding: 10px 24px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    background: #0CAF89;
    border: none;
    border-radius: 8px;
}

/* Select */
.uiSelect + .chosen-container {
    max-width: 440px;
    height: 46px;
}

.uiSelect.px44 + .chosen-container {
    height: 44px;
}

.uiSelect.w-100 + .chosen-container {
    max-width: 100%;
}

.uiSelect + .chosen-container > .chosen-single {
    border: 1px solid #D7D7D7;
    align-items: center;
    display: flex;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-size: 15px;
    line-height: 24px;
    color: rgba(27, 31, 59, 0.8) !important;
    background-clip: unset;
}

.uiSelect.valid + .chosen-container > .chosen-single {
    border: 1px solid red;
}

.uiSelect + .chosen-container > .chosen-single.chosen-default {
    color: #858585 !important;
    font-weight: 400;
}

.uiSelect + .chosen-container-single .chosen-single div {
    width: 25px;
}

    .uiSelect + .chosen-container-single .chosen-single div b {
        display: block;
        width: 100%;
        height: 100%;
        background: url(/Img/ListHospitals/arrowselect.svg) no-repeat 0px 19px;
        transition: 0.3s;
    }

.uiSelect + .chosen-container-active.chosen-with-drop .chosen-single div b {
    transform: rotateX(-180deg);
    background-position: 0;
    background-position-y: 19px;
}

.uiSelect + .chosen-container-active .chosen-single {
    -webkit-box-shadow: none;
    box-shadow: none;
}

.uiSelect + .chosen-container .chosen-drop {
    -webkit-box-shadow: none;
    box-shadow: none;
}

.uiSelect + .chosen-container .chosen-drop {
    -webkit-box-shadow: none;
    box-shadow: none;
}

.uiSelect + .chosen-container-single .chosen-single abbr {
    top: 11px;
    right: 35px;
}

.uiSelect + .chosen-container-single .chosen-single span {
    line-height: 46px;
    font-weight: 500;
    font-size: 13px;
    font-family: 'Inter';
    color: #08110E;
}

.uiSelect + .chosen-container-single .chosen-default span {
    color: #cdcdcd;
}