@media (min-width: 576px) {
    .modal.rt-modal {
        --bs-modal-padding: 0.625rem 0.75rem;
        --bs-modal-width: 390px;
        letter-spacing: 0.03em;
    }

    /*fix*/
    body.modal-open,
    body.modal-open .modal {
        padding-right: 0 !important;
    }

    body.modal-open {
        /*overflow-y: scroll !important;*/
        /*position: fixed;*/
    }

    /*fix*/
}

.modal .btn {
    font-size: 11px;
}

/*  Start: preloader  */
.modal:has(.preloader-form) .modal-body {
    overflow: inherit;
}

.preload-block:has(.preloader-form) {
    overflow: inherit;
}

.preload-block .preloader-form {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    background: rgb(255 255 255 / 72%);
    backdrop-filter: blur(1px);
    z-index: 10;
}
/*  End: preloader  */


/*  Start:.modal-footer  */
.modal-body .error_field {
    border-color: red;
}

.modal-body .error_field_text {
    color: red;
    font-size: 10px;
}

.error_field .select2-selection{
    border-color:red !important;
}
/*  End:.modal-footer  */

/*  Start:.modal-footer  */
.rt-modal .modal-footer {
    .error {
        padding: 10px 0 10px 10px;
        color: var(--color-red);
        font-weight: 300;
        font-size: 0.85rem;
        line-height: 1.3;
    }
}
/*  End:.modal-footer  */


.rt-modal .modal-content {
    border-radius: 15px;

    /*height: 956px;*/
}

.rt-modal .modal-header {
    background: var(--color-rose);
    --bs-modal-header-padding: 0.75rem 2rem;
    color: #FFFFFF;
}

.rt-modal .modal-header .rt {
    color: #FFFFFF;
}

.rt-modal .modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-section {
    border-bottom: 1px solid #C2C2C2;
    padding-top: 14px;
    padding-bottom: 10px;
}

.modal-section + .modal-section {
    border-top: none;
}

.modal-section--title {
    font-size: 19px;
    font-weight: 600;
    text-align: center;
    line-height: 1.6;
    padding-top: 8px;
    padding-bottom: 8px;
}

.modal-body.s-title .modal-section--title {
    font-size: 12px;
}

.rt-modal label {
    line-height: 29px;
}

.rt-modal input[type="text"],
.rt-modal input[type="email"],
.rt-modal input[type="phone"],
.rt-modal input[type="password"] {
    padding: 14px;
}

.modal-btn-row {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rt-modal .btn {
    --fs-btn-default: 19px;
    width: 100%;
    gap: 16px;
}

.rt-modal .btn .rt {
    font-size: 24px;
}


/*  start:employee--info  */
.modal-employee--info {
    gap: 18px;
    padding: 10px 0 10px 10px;
}

.modal-employee--edit {
    padding: 6px 10px;
    position: absolute;
    top: 0;
    right: 0;
}

.modal-employee--edit:hover {
    color: var(--color-rose);
}

.modal-employee--edit .rt {
    font-size: 16px;
}

.modal-employee--avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    width: 80px;
    height: 80px;
    background: #DFDFDF;
    border-radius: 50%;
}

.modal-employee--detail {
    font-size: 13px;
}

.modal-employee--detail > * {
    line-height: 20px;
}

.modal-employee--name {
    font-size: 18px;
    font-weight: 600;
    line-height: 26px;
}

.modal-employee--status {
    display: flex;
    gap: 8px;
}

.modal-employee--status .rt {
    font-size: 20px;
}

/*  end:employee--info  */


/*  start:employee-props  */
.employee-props--list {
    margin-top: 16px;
}

.employee-props--item {
    font-size: 14px;
    letter-spacing: 0;
    padding: 16px 0;
    border-top: 1px solid #C2C2C2;
    border-bottom: 1px solid #C2C2C2;
}

.employee-props--item + .employee-props--item {
    border-top: none;
}

.employee-prop--value {
    font-weight: 700;
}

.employee-prop--value.tg {
    font-weight: 400;
    color: var(--color-rose);
}

/*  calendar    */
.employee-props--item .calendar {
    margin-top: 16px;
    margin-bottom: 13px;
}

.save-row {
    text-align: center;
    margin-bottom: -3px;
}

.save-calendar {
    color: var(--color-rose);
}

.save-calendar.disabled {
    color: #C2C2C2;
    cursor: default;
}

/*  calendar    */

/*  end:employee-props  */


/*  start:employee-access  */
.employee-access--block {
    gap: 16px;
    font-size: 14px;
    margin-top: 15px;
    margin-bottom: 15px;
    letter-spacing: 0;
    position: relative;
}

.employee-access--block .copy-access {
    font-size: 24px;
    position: absolute;
    display: inline-flex;
    right: 0;
    top: -4px;
}

.employee-access--block .copy-access:hover {
    color: var(--color-rose);
}

.employee-access--block .copy-access .rt {
    font-size: 24px;
}

.employee-access--value {
    font-weight: 700;
}

/*  end:employee-access  */

/*  start:employee-remove  */
.employee-remove--form {
    display: flex;
    box-shadow: 0 3px 10px 1px #00000040;
    border-radius: 10px;
    padding: 24px 40px 31px;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    margin: 12px 18px 0;
}

.employee-remove--form .text {
    font-size: 14px;
    line-height: 1.6;
}

.remove-row {
    display: flex;
    gap: 50px;
}

.remove-row .btn {
    padding: 2px 18px;
    border-radius: 4px;
    font-size: 12px;
}

/*  end:employee-remove  */

/*  .rt-modal-info  */


.rt-modal-info .success-block {
    gap: 30px;
    height: 200px;
    font-weight: 500;
}

.rt-modal-info .success-block {
    color: #009846;
}

.rt-modal-info .success-block .rt {
    font-size: 24px;
}

.rt-modal-info .success-block .btn {
    width: 120px;
    padding: 6px 18px;
}

/*  .rt-modal-info  */




/*  .rt-bs-modal.custom */
.rt-bs-modal.custom {
    .modal-body {
        padding: 2.75rem 5rem;
        height: 230px;
    }

    .modal-body--inner {
        font-size: 14px;
        font-weight: 500;
        gap: 2.5rem;
    }

    .modal-body--inner .rt {
        font-size: 25px;
        color: #009846;
    }

    .modal-body--inner .btn-row {
        gap: 3rem;
    }

    .modal-body--inner .btn-row .btn {
        flex: 1 1 100%;
    }

    .modal-body--top {
        gap: 15px;
        padding: 0 25px;
    }

    .modal-body--title {
        font-size: 16px;
        font-weight: 600;
        line-height: 1.6;
        color: var(--color-rose);
    }

    .btn-row.justify-content-center .btn {
        flex: initial;
    }

    .success {
        color: #009846;
    }

    .success .rt {
        font-size: 25px;
    }

    .error-btn {
        display: none;
    }

    .hasError .error-btn {
        display: inline-flex;
    }

    .hasError .success-btn {
        display: none;
    }
}


.modal .alert {
    margin-top: 12px;
    font-size: 14px;
}

/**
TMP??
 */
body.modal-open,
.rt-bs-modal {
    padding-right: 0 !important;
}
/**
TMP??
 */

@media screen and (max-width: 1199px) {
    .rt-bs-modal.custom {
        .modal-body {
            height: 144px;
            padding: 15px 10px;
        }

        .modal-body--top {
            gap: 0;
            font-size: 13px;
        }

        .modal-body--title {
            /*font-size: 13px;*/
        }

        .modal-body--inner .btn-row {
            margin: 0;
        }

        .modal-body--inner .btn-row .btn {
            padding: 2px 0;
        }


    }
}
/*  .rt-bs-modal.custom */

/*  #cancelNote */
#cancelNote {
    .modal-body {
        padding: 15px 65px 45px;
    }

    .modal-body--inner {
        gap: 0;
    }
}

@media screen and (max-width: 1199px) {
    #cancelNote {
        .modal-body {
            padding: 15px 10px;
        }
    }
}
/*  #cancelNote */


#welcomePersonal {
    .image {
        text-align: center;
    }

    .image img {
        max-width: 140px;
    }

    .text {
        max-width: 650px;
        margin-bottom: 16px;
    }

    .text span {
        font-size: 12px;
        line-height: 2;
        font-weight: 700;
    }
}

#locationModal {
    .map-note {
        font-size: 12px;
        line-height: 28px;
    }

    #yandex-map {
        width: 100%;
        height: 160px;
        margin-bottom: 10px;
        border: 1px solid #C2C2C2;
        border-radius: 5px;
        overflow: hidden;
    }

    .repeater-links {
        margin-bottom: 10px;
    }

    .form-group + .form-group {
        margin-top: 10px;
    }

    &[data-mode="add"] .block_image {
        display: none;
    }

    &[data-mode="add"] .block_map {
        display: none;
    }

    &[data-mode="add"] .block_links {
        display: none;
    }
}

#addLocationProduct {
    .modal-section {
        padding: 14px;
    }

    .air-datepicker {
        max-width: 280px;
        /*--adp-width: 100%;*/
        /*--adp-day-cell-height: 42px;*/
        /*--adp-padding: 3px 14px 15px 18px;*/
        /*--adp-cell-border-radius: 8px;*/
        --adp-nav-height: 28px;
        --adp-font-size: 14px;
        /*--adp-font-family: "Montserrat", sans-serif;*/
        --adp-cell-background-color-selected-hover: var(--color-default-60);
        /*--adp-nav-action-size: 38px;*/
        /*--adp-color-secondary: #000;*/
    }

    .air-datepicker-cell {
        /*border-radius: var(--adp-cell-border-radius);*/
        /*box-sizing: border-box;*/
        /*cursor: pointer;*/
        /*display: flex;*/
        /*position: relative;*/
        /*align-items: center;*/
        /*justify-content: center;*/
        /*z-index: 1;*/
    }

    .sku-params-item {
        grid-template-columns: minmax(25%, 3fr) minmax(35%, 4fr) minmax(25%, 3fr);
        gap: 8px;
    }

    .sku-params-item .form-group {
        margin: 0;
    }

    .product-work-time {
        grid-template-columns: minmax(30%, 4fr) 3fr 3fr;
        gap: 8px;
        margin-bottom: 10px;
    }

    .btn {
        gap: 8px;
        padding: 10px;
    }

    .service-criteria-item {
        grid-template-columns: 1fr 1fr;
    }

    .modal-dialog {
        padding-top: 50px;
    }
}

#addChecklist {
    .checklist-add-item {
        display: grid;
        align-items: end;
        grid-template-columns: repeat(6, 1fr);

        grid-template-areas:
                                    "name name name name name name"
                                    "time time time period period period"
                                    "form form form form remove remove";
    }

    .modal-section {
        border: none;
    }

    .checklist-add-item {
        border-bottom: 1px solid #C2C2C2;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .form-group + .form-group {
        margin: 0;
    }

    .name {
        grid-area: name;
    }

    .time {
        grid-area: time;
    }

    .period {
        grid-area: period;
    }

    .form {
        grid-area: form;
    }

    .remove:has(button) {
        grid-area: remove;
    }

    .remove button {
        display: flex;
        gap: 0.5rem;
        border: none;
        outline: none;
        background: none;
        width: 100%;
        align-items: center;
        justify-content: center;
        padding: 1rem 0;
    }

    .remove .rt {
        font-size: 18px;
    }

    .remove span {
        font-size: 13px;
    }
}

#addEmployeeSchedule {
    .form-group + .form-group {
        margin-top: 0;
    }

    /* period-calendar */
    .period-calendar--outer {
        position: relative;
    }

    .period-calendar--outer::before {
        content: "\e938";
        position: absolute;
        font-family: 'rt' !important;
        speak: never;
        font-style: normal;
        font-weight: normal;
        font-variant: normal;
        text-transform: none;
        line-height: 1;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        font-size: 24px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 15px;
    }

    & input.period-calendar {
        padding-left: 50px;
        color: var(--color-rose);
        z-index: 4;
        position: relative;
        background: transparent;
    }

    input.period-calendar[disabled] {
        background: rgb(195 195 195 / 50%);
        color: rgb(240 111 87 / 65%);
    }

    .employee-add-item {
        border-bottom: 1px solid #C2C2C2;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
}

#servOrderProduct {}



@media screen and (max-width: 1199px) {
    .modal.rt-modal {
        --bs-modal-margin: 0.7rem;
        --bs-modal-padding: 0.5rem 0.6rem;
    }

    .rt-modal .modal-header {
        --bs-modal-header-padding: 0.5rem 1.5rem;
    }

    .rt-modal label {
        line-height: 24px;
    }

    .rt-modal input[type="text"],
    .rt-modal input[type="email"],
    .rt-modal input[type="phone"],
    .rt-modal input[type="password"] {
        padding: 10px 14px;
    }

    .rt-modal .form-group + .form-group {
        margin-top: 15px;
    }

    .modal-section--title {
        font-size: 17px;
        margin-top: -4px; /*  !!!!  */
    }

    .rt-modal .btn {
        padding: 7px 0;
        border-radius: 10px;
    }

    .modal-employee--avatar {
        width: 70px;
        height: 70px;
    }

    .modal-employee--info {
        gap: 14px;
    }

    .modal-employee--detail {
        font-size: 12px;
    }

    .modal-employee--name {
        font-size: 16px;
    }

    .modal-employee--edit {
        top: -6px;
    }

    .modal-employee--edit .rt {
        font-size: 22px;
    }

    .employee-props--list {
        margin-top: 10px;
    }

    .employee-props--item {
        font-size: 12px;
        padding: 14px 0;
    }

    .employee-access--block {
        font-size: 12px;
    }

    .employee-remove--form {
        padding: 14px 30px;
        margin: 12px 0 0;
        gap: 12px;
    }

    .rt-modal .employee-remove--form .btn {
        font-size: 14px;
    }
}

@media screen and (max-width: 767px) {
    #addEmployee .modal-content,
    #editEmployee .modal-content,
    #viewEmployee .modal-content {
        margin-top: auto;
    }

    #addEmployee .modal-dialog-scrollable .modal-content,
    #editEmployee .modal-dialog-scrollable .modal-content,
    #viewEmployee .modal-dialog-scrollable .modal-content {
        max-height: calc(100% - 60px);
    }

    .modal-footer {
        margin-top: 8px;
    }

    .rt-modal .modal-title {
        font-size: 17px;
    }

    .rt-modal .btn {
        font-size: 17px;
    }

    #servOrderProduct {}

    #servOrderProduct {
        .modal-dialog {
            padding-top: 70px;
        }
    }
}