/* STADIA */
.sp4ib-list-stage-bar {
    border:1px solid #C5C9CE;
    border-radius:4px;
    height:8px;
    min-width: 150px;
    max-width:250px;
    position:relative;
}

.sp4ib-list-stage-bar-table {
    border-spacing:0;
    height:8px;
    width:100%;
}

.sp4ib-list-stage-bar {box-sizing: content-box;}
.sp4ib-list-stage-bar table {box-sizing: content-box;}
.sp4ib-list-stage-bar tr {box-sizing: content-box;}
.sp4ib-list-stage-bar td {box-sizing: content-box;}
.sp4ib-list-stage-bar div {box-sizing: content-box;}

.sp4ib-list-stage-bar-part {
    border-left:1px solid rgba(0,0,0,.1);
    padding:0;
}

.sp4ib-list-stage-bar-part:first-child {border:none;}

.sp4ib-list-stage-bar-block {
    cursor:pointer;
    height:8px;
    min-width:5px;
    position:relative;
}

.sp4ib-list-stage-bar-part:first-child .sp4ib-list-stage-bar-block {border-radius:3px 0 0 3px}
.sp4ib-list-stage-bar-part:first-child:hover .sp4ib-list-stage-bar-block {border-radius:0px;}
.sp4ib-list-stage-bar-part:last-child .sp4ib-list-stage-bar-block {border-radius:0 3px 3px 0}

.sp4ib-list-stage-bar-btn {
    border-top:3px solid rgba(111,113,115,.39);
    border-bottom:3px solid rgba(111,113,115,.39);
    display:none;
    height:100%;
    left:0px;
    top:-3px;
    position:absolute;
    width:100%;
}

.sp4ib-list-stage-bar-part:first-child .sp4ib-list-stage-bar-btn {border-left:3px solid rgba(111,113,115,.39); left: -3px; border-radius:6px 0 0 6px;}
.sp4ib-list-stage-bar-part:last-child .sp4ib-list-stage-bar-btn {border-right:3px solid rgba(111,113,115,.39); border-radius:0 6px 6px 0;}

.sp4ib-list-stage-bar-block:hover .sp4ib-list-stage-bar-btn {display:block;}

.sp4ib-list-stage-bar-title {
    color: #a5a9ab;
    font-size: 11px;
    padding: 5px 0 0 3px;
    line-height: 14px!important;
}

/* INDICATOR */
.sp4ib-indicator-view {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 20px;
    line-height: 20px;
    vertical-align: middle;
}

.sp4ib-indicator-view.is-dot-only {
    display: flex;
    justify-content: center;
    width: 100%;
}

.sp4ib-indicator {display:inline-block; flex: 0 0 auto; width:12px; height:12px; border-radius:6px; margin-top: 0;}

.sp4ib-indicator-text {
    color: #333;
    font-size: 13px;
    line-height: 20px;
    white-space: nowrap;
}

/* PASSWORD */
.sp4ib-password-container-edit,
.sp4ib-password-container-view {
    --sp4ib-password-height: 40px;
    --sp4ib-password-border: #c6cdd3;
    --sp4ib-password-action-bg: #eef8ff;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: var(--sp4ib-password-height);
    white-space: nowrap;
    overflow: visible;
    position: relative;
    vertical-align: middle;
}

.sp4ib-password-container-edit input[type="password"],
.sp4ib-password-container-edit input[type="text"],
.sp4ib-password-container-view .sp4ib-password-input,
.sp4ib-password-container-view .sp4ib-password-dots,
.sp4ib-password-container-view .sp4ib-password-vis-pass {
    width: 257px;
    max-width: min(257px, 100%);
    height: var(--sp4ib-password-height);
    min-height: var(--sp4ib-password-height);
    padding: 0 13px;
    border: 1px solid var(--sp4ib-password-border);
    border-radius: 4px 0 0 4px;
    background: #fff;
    box-sizing: border-box;
    font: 15px/38px var(--ui-font-family-primary, var(--ui-font-family-helvetica)) !important;
    color: #333 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp4ib-password-container-view .sp4ib-password-dots,
.sp4ib-password-container-view .sp4ib-password-vis-pass {
    width: 128px;
    letter-spacing: 1px;
}

.sp4ib-password-container-view .sp4ib-password-vis-pass {
    letter-spacing: 0;
}

.sp4ib-password-container-edit input[type="button"] {
    width: auto;
    min-width: 152px;
    height: var(--sp4ib-password-height);
    padding: 0 18px;
    border: 0;
    border-radius: 4px;
    background: #bbed21;
    color: #535c69 !important;
    font: 700 13px/40px var(--ui-font-family-primary, var(--ui-font-family-helvetica)) !important;
    text-transform: uppercase;
    cursor: pointer;
}

.sp4ib-password-container-edit input[type="button"]:hover {
    background: #d2f95f;
}

.sp4ib-password-container-view input[id^="show_password_"] {
    width: auto;
    min-width: 132px;
    height: 32px;
    min-height: 32px;
    padding: 0 13px;
    border: 1px solid #c6cdd3;
    border-radius: 4px;
    background: #eef8ff;
    color: #2067b0 !important;
    font: 600 13px/30px var(--ui-font-family-primary, var(--ui-font-family-helvetica)) !important;
    cursor: pointer;
    box-sizing: border-box;
    text-align: center;
    vertical-align: middle;
}

.sp4ib-password-container-view input[id^="show_password_"]:hover {
    background: #e1f3ff;
    border-color: #9dc8e8;
}

.sp4ib-password-container-edit .sp4ib-password-eye,
.sp4ib-password-container-edit .sp4ib-password-copy,
.sp4ib-password-container-view .sp4ib-password-eye,
.sp4ib-password-container-view .sp4ib-password-copy,
.sp4ib-password-container-edit .sp4ib-password-unlock,
.sp4ib-password-container-view .sp4ib-password-unlock {
    width: 18px;
    height: 18px;
    cursor: pointer;
    opacity: .84;
    vertical-align: middle;
}

.sp4ib-password-container-edit .sp4ib-password-eye,
.sp4ib-password-container-view .sp4ib-password-eye {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--sp4ib-password-height);
    height: var(--sp4ib-password-height);
    margin: 0 0 0 -1px;
    padding: 8px;
    border: 1px solid var(--sp4ib-password-border);
    border-radius: 0;
    background: #fff;
    box-sizing: border-box;
}

.sp4ib-password-container-edit .span-mess-copy,
.sp4ib-password-container-view .span-mess-copy,
.sp4ib-password-container-edit a[id^="submit_code_"],
.sp4ib-password-container-edit a[id^="repeat_code_"],
.sp4ib-password-container-view a[id^="submit_code_"],
.sp4ib-password-container-view a[id^="repeat_code_"] {
    align-items: center;
    justify-content: center;
    width: var(--sp4ib-password-height);
    height: var(--sp4ib-password-height);
    margin-left: -1px;
    border: 1px solid var(--sp4ib-password-border);
    background: var(--sp4ib-password-action-bg);
    box-sizing: border-box;
}

.sp4ib-password-container-edit .span-mess-copy,
.sp4ib-password-container-view .span-mess-copy {
    display: inline-flex;
    border-radius: 0 4px 4px 0;
}

.sp4ib-password-container-edit .span-mess-copy:has(.sp4ib-password-copy[style*="display:none"]),
.sp4ib-password-container-edit .span-mess-copy:has(.sp4ib-password-copy[style*="display: none"]),
.sp4ib-password-container-view .span-mess-copy:has(.sp4ib-password-copy[style*="display:none"]),
.sp4ib-password-container-view .span-mess-copy:has(.sp4ib-password-copy[style*="display: none"]) {
    display: none;
}

.sp4ib-password-container-edit a[id^="submit_code_"],
.sp4ib-password-container-edit a[id^="repeat_code_"],
.sp4ib-password-container-view a[id^="submit_code_"],
.sp4ib-password-container-view a[id^="repeat_code_"] {
    border-radius: 0;
}

.sp4ib-password-container-edit a[id^="submit_code_"][style*="inline-block"],
.sp4ib-password-container-edit a[id^="repeat_code_"][style*="inline-block"],
.sp4ib-password-container-view a[id^="submit_code_"][style*="inline-block"],
.sp4ib-password-container-view a[id^="repeat_code_"][style*="inline-block"],
.sp4ib-password-container-edit a[id^="submit_code_"][style*="inline-flex"],
.sp4ib-password-container-edit a[id^="repeat_code_"][style*="inline-flex"],
.sp4ib-password-container-view a[id^="submit_code_"][style*="inline-flex"],
.sp4ib-password-container-view a[id^="repeat_code_"][style*="inline-flex"] {
    display: inline-flex !important;
}

.sp4ib-password-container-edit:has(.span-mess-copy .sp4ib-password-copy[style*="display:none"]) a[id^="repeat_code_"][style*="inline-block"],
.sp4ib-password-container-edit:has(.span-mess-copy .sp4ib-password-copy[style*="display: none"]) a[id^="repeat_code_"][style*="inline-block"],
.sp4ib-password-container-edit:has(.span-mess-copy .sp4ib-password-copy[style*="display:none"]) a[id^="repeat_code_"][style*="inline-flex"],
.sp4ib-password-container-edit:has(.span-mess-copy .sp4ib-password-copy[style*="display: none"]) a[id^="repeat_code_"][style*="inline-flex"],
.sp4ib-password-container-view:has(.span-mess-copy .sp4ib-password-copy[style*="display:none"]) a[id^="repeat_code_"][style*="inline-flex"],
.sp4ib-password-container-view:has(.span-mess-copy .sp4ib-password-copy[style*="display: none"]) a[id^="repeat_code_"][style*="inline-flex"] {
    border-radius: 0 4px 4px 0;
}

.sp4ib-password-container-edit > *:last-child,
.sp4ib-password-container-view > *:last-child {
    border-radius: 0 4px 4px 0;
}

.sp4ib-password-container-edit .sp4ib-password-edit {
    cursor: pointer;
}

.sp4ib-password-container-edit .sp4ib-password-edit:hover,
.sp4ib-password-container-edit .span-mess-copy:hover,
.sp4ib-password-container-view .span-mess-copy:hover,
.sp4ib-password-container-edit .sp4ib-password-eye:hover,
.sp4ib-password-container-view .sp4ib-password-eye:hover {
    filter: brightness(.97);
}

.sp4ib-password-container-view .sp4ib-password-input {
    width: 160px !important;
    max-width: min(160px, 100%);
    border-radius: 4px 0 0 4px;
    box-shadow: none;
}

.sp4ib-password-list-mask {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 12px;
    background: #eef2f4;
    color: #6a737f;
    font: 600 13px/24px var(--ui-font-family-primary, var(--ui-font-family-helvetica));
    letter-spacing: 1px;
    vertical-align: middle;
    white-space: nowrap;
}

.mess-copy {
    position: absolute;
    background-color: #000000BB;
    color: #FFFFFF;

    top: 0;
    margin-left: 0;
    height: 100%;
    padding: 0 5px;
    border-radius: 3px;
    pointer-events: none;

    opacity: 0;

    display: flex;
    justify-content: center;
    align-items: center;
    width: calc(100% - 48px);
}

.web-message__user .ui-tile-selector-selector-wrap  {
    width: 435px;
}


body table.bx-edit-table td.bx-field-value > input[type=text]:not(.ui-tile-selector-input),
body table.bx-edit-table td.adm-detail-content-cell-r > input[type=text]:not(.ui-tile-selector-input),
body table.bx-edit-table td.bx-field-value table td > input[type=text]:not(.ui-tile-selector-input) {
    width: 257px;
    height: var(--ui-field-size);
    padding: 0 11px;
    border: 1px solid #b9bcbe;
    border-radius: var(--ui-field-border-radius, 2px);
    font: 14px var(--ui-font-family-primary, var(--ui-font-family-helvetica)) !important;
    color: #535c69 !important;
    box-sizing: border-box;
    vertical-align: middle;
}

body table.bx-edit-table td.bx-field-value > select,
body table.bx-edit-table td.adm-detail-content-cell-r > select,
body table.bx-edit-table td.bx-field-value table td > select {
    width: 257px;
    height: var(--ui-field-size);
    min-height: var(--ui-field-size);
    padding: 0 32px 0 11px;
    border: 1px solid #c6cdd3;
    border-radius: var(--ui-field-border-radius, 2px);
    background-color: #fff;
    color: #535c69 !important;
    font: 14px var(--ui-font-family-primary, var(--ui-font-family-helvetica)) !important;
    box-sizing: border-box;
    vertical-align: middle;
}

body table.bx-edit-table td.bx-field-value > textarea,
body table.bx-edit-table td.adm-detail-content-cell-r > textarea,
body table.bx-edit-table td.bx-field-value table td > textarea {
    width: min(620px, 100%) !important;
    min-height: 82px;
    padding: 10px 11px;
    border: 1px solid #c6cdd3;
    border-radius: var(--ui-field-border-radius, 2px);
    background-color: #fff;
    color: #535c69 !important;
    font: 14px/20px var(--ui-font-family-primary, var(--ui-font-family-helvetica)) !important;
    box-sizing: border-box;
    vertical-align: middle;
}

body table.bx-edit-table td.bx-field-value > input[type=text]:focus,
body table.bx-edit-table td.adm-detail-content-cell-r > input[type=text]:focus,
body table.bx-edit-table td.bx-field-value table td > input[type=text]:focus,
body table.bx-edit-table td.bx-field-value > select:focus,
body table.bx-edit-table td.adm-detail-content-cell-r > select:focus,
body table.bx-edit-table td.bx-field-value table td > select:focus,
body table.bx-edit-table td.bx-field-value > textarea:focus,
body table.bx-edit-table td.adm-detail-content-cell-r > textarea:focus,
body table.bx-edit-table td.bx-field-value table td > textarea:focus {
    border-color: #2fc6f6;
    outline: 0;
    box-shadow: 0 0 0 1px rgba(47,198,246,.25);
}

body table.bx-edit-table input[type=text][name^="USER_TYPE_SETTINGS"],
body table.bx-edit-table select[name^="USER_TYPE_SETTINGS"] {
    width: min(520px, 100%) !important;
}

.simai-property4iblock-settings-note {
    display: inline-block;
    margin-left: 10px;
    color: #6a737f;
    font: 13px/18px var(--ui-font-family-primary, var(--ui-font-family-helvetica));
    vertical-align: middle;
}

.ui-ctl.sp4ib-enum-select {
    width: 520px !important;
    max-width: 100%;
    min-width: 280px;
    box-sizing: border-box;
}

.ui-ctl.sp4ib-stadia-select:not(.is-filter),
.ui-ctl.sp4ib-indicator-select:not(.is-filter) {
    width: 520px !important;
    max-width: 100%;
    min-width: 280px;
    box-sizing: border-box;
}

.ui-ctl.sp4ib-enum-select.is-filter {
    width: 100% !important;
    max-width: none;
    min-width: 0;
    height: 100%;
    margin: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.ui-ctl.sp4ib-enum-select.is-filter .ui-ctl-element {
    height: 100%;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding-left: 0;
}

.ui-ctl.sp4ib-enum-select.is-filter.ui-ctl-after-icon .ui-ctl-element {
    padding-right: 36px;
}

.main-ui-control.main-ui-multi-select.sp4ib-stadia-filter-multi {
    position: relative;
    display: block !important;
    width: 100%;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    box-sizing: border-box;
    overflow: visible !important;
}

.main-ui-custom:has(.sp4ib-stadia-filter-multi) {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.main-ui-filter-wield-with-label.sp4ib-filter-field-open {
    position: relative;
    z-index: 1500;
}

.sp4ib-stadia-filter-multi.is-open {
    z-index: 1500;
}

.sp4ib-stadia-filter-trigger {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 38px;
    padding: 0 34px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-sizing: border-box;
    color: #535c69;
    cursor: pointer;
    font: 14px var(--ui-font-family-primary, var(--ui-font-family-helvetica));
    line-height: 38px;
    text-align: left;
}

.sp4ib-stadia-filter-trigger:hover {
    color: #333;
}

.sp4ib-stadia-filter-trigger:focus {
    outline: none;
}

.sp4ib-stadia-filter-caption {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: nowrap;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.sp4ib-stadia-filter-caption.is-placeholder {
    color: #a8adb4;
}

.sp4ib-stadia-filter-placeholder {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp4ib-stadia-filter-tag {
    gap: 7px;
    max-width: 160px;
    height: 28px;
    padding: 0 9px 0 10px;
    border-radius: 7px;
    background: #e7f2ff;
    color: #2067b0;
    box-sizing: border-box;
    line-height: 28px;
}

.sp4ib-stadia-filter-search {
    min-width: 1px;
}

.sp4ib-stadia-filter-search .main-ui-square-search-item {
    width: 1px;
    min-width: 1px;
    cursor: pointer;
}

.sp4ib-stadia-filter-tag-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp4ib-stadia-filter-tag-remove {
    flex: 0 0 auto;
    color: #9bbfe9;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.sp4ib-stadia-filter-tag-remove:hover {
    color: #6b9fd5;
}

.sp4ib-stadia-filter-arrow {
    position: absolute;
    right: 13px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid #7a8694;
    border-bottom: 2px solid #7a8694;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

.sp4ib-stadia-filter-options {
    position: absolute;
    z-index: 1501;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 14px;
    min-width: 220px;
    padding: 16px 18px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 32px rgba(83, 92, 105, 0.18);
    box-sizing: border-box;
}

.sp4ib-stadia-filter-multi.is-open .sp4ib-stadia-filter-options {
    display: flex;
}

.sp4ib-stadia-filter-option {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 26px;
    font: 14px var(--ui-font-family-primary, var(--ui-font-family-helvetica));
    color: #6a737f;
    cursor: pointer;
    user-select: none;
}

.sp4ib-stadia-filter-option input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
}

/* OTP */
.sp4ib-otp-edit {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 320px;
    max-width: 560px;
}

.sp4ib-otp-edit__configured {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sp4ib-otp-edit__replace {
    display: none;
    width: min(560px, 100%);
}

.sp4ib-otp-edit__replace-row {
    display: inline-flex;
    align-items: center;
    width: 100%;
}

.sp4ib-otp-edit.is-editing .sp4ib-otp-edit__configured {
    display: none;
}

.sp4ib-otp-edit.is-editing .sp4ib-otp-edit__replace {
    display: block;
}

.sp4ib-otp-edit__status,
.sp4ib-otp-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 12px;
    font: 13px var(--ui-font-family-primary, var(--ui-font-family-helvetica));
    line-height: 24px;
    white-space: nowrap;
}

.sp4ib-otp-edit__status.is-configured,
.sp4ib-otp-status.is-configured {
    background: #eaf7d9;
    color: #4f7d00;
}

.sp4ib-otp-edit__status.is-empty,
.sp4ib-otp-status.is-empty {
    background: #f1f5f8;
    color: #7a869a;
}

.sp4ib-otp-edit__input {
    width: 100%;
    height: var(--ui-field-size, 39px);
    padding: 0 11px;
    border: 1px solid #b9bcbe;
    border-radius: var(--ui-field-border-radius, 2px);
    box-sizing: border-box;
    font: 14px var(--ui-font-family-primary, var(--ui-font-family-helvetica)) !important;
    color: #535c69 !important;
}

.sp4ib-otp-edit__replace-row .sp4ib-otp-edit__input {
    border-radius: var(--ui-field-border-radius, 2px) 0 0 var(--ui-field-border-radius, 2px);
}

.sp4ib-otp-edit__hint {
    color: #7a869a;
    font: 12px/16px var(--ui-font-family-primary, var(--ui-font-family-helvetica));
}

.sp4ib-otp-edit__clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #525c69;
    font: 13px var(--ui-font-family-primary, var(--ui-font-family-helvetica));
}

.sp4ib-otp-edit__action,
.sp4ib-otp-edit__change {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: var(--ui-field-size, 39px);
    min-width: var(--ui-field-size, 39px);
    height: var(--ui-field-size, 39px);
    padding: 0;
    border: 1px solid #c6cdd3;
    border-radius: var(--ui-field-border-radius, 2px);
    background: #fff;
    color: #6a737f;
    cursor: pointer;
    box-sizing: border-box;
}

.sp4ib-otp-edit__action:hover,
.sp4ib-otp-edit__change:hover {
    background: #f6f8f9;
    color: #535c69;
}

.sp4ib-otp-edit__replace-row .sp4ib-otp-edit__action {
    margin-left: -1px;
    border-radius: 0 var(--ui-field-border-radius, 2px) var(--ui-field-border-radius, 2px) 0;
}

.sp4ib-otp-edit__change-icon,
.sp4ib-otp-edit__back-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.sp4ib-otp-edit__change-icon {
    -webkit-mask: url('/bitrix/js/ui/icon-set/main/images/edit-pencil.svg') center / contain no-repeat;
    mask: url('/bitrix/js/ui/icon-set/main/images/edit-pencil.svg') center / contain no-repeat;
}

.sp4ib-otp-edit__back-icon {
    -webkit-mask: url('/bitrix/js/ui/icon-set/outline/images/arrow-left-m.svg') center / contain no-repeat;
    mask: url('/bitrix/js/ui/icon-set/outline/images/arrow-left-m.svg') center / contain no-repeat;
}

.sp4ib-otp-card {
    display: inline-flex;
    align-items: stretch;
    flex: 0 0 auto;
    overflow: hidden;
    min-width: 210px;
    width: auto !important;
    max-width: 100%;
    height: var(--ui-field-size, 39px);
    min-height: var(--ui-field-size, 39px);
    border: 1px solid #c6cdd3;
    border-radius: var(--ui-field-border-radius, 2px);
    background: #fff;
    color: #535c69;
    box-shadow: inset 0 0 0 1px rgba(82,92,105,.02);
    vertical-align: middle;
}

.sp4ib-otp-card.is-compact {
    align-items: center;
    gap: 6px;
    min-width: 0;
    height: 24px;
    min-height: 24px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.sp4ib-otp-card__main {
    display: flex;
    flex: 0 0 108px;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 0 12px;
}

.sp4ib-otp-card.is-compact .sp4ib-otp-card__main {
    flex-basis: 82px;
    padding: 0 8px 0 0;
}

.sp4ib-otp-card__pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-width: 86px;
    height: 24px;
    padding: 0 10px;
    border-radius: 12px;
    background: #eef2f4;
    box-sizing: border-box;
    vertical-align: middle;
}

.sp4ib-otp-card__pill-progress {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: #c9f0c2;
    transition: width .2s linear;
}

.sp4ib-otp-card__pill.is-warning {
    background: #fff0f0;
}

.sp4ib-otp-card__pill.is-warning .sp4ib-otp-card__pill-progress {
    background: #ff7772;
}

.sp4ib-otp-card__code {
    font-size: 18px;
    font-weight: 600;
    line-height: var(--ui-field-size, 39px);
    letter-spacing: 0;
    white-space: nowrap;
    color: #333;
}

.sp4ib-otp-card.is-compact .sp4ib-otp-card__code {
    position: relative;
    z-index: 1;
    font-size: 13px;
    font-weight: 600;
    line-height: 24px;
    color: #535c69;
}

.sp4ib-otp-card__timer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    margin: 6px 8px;
    overflow: hidden;
    border-radius: 14px;
    background: #eef2f4;
    color: #535c69;
    font-size: 14px;
    font-weight: 600;
}

.sp4ib-otp-card.is-compact .sp4ib-otp-card__timer {
    width: 40px;
    height: 22px;
    margin: 3px 6px 3px 0;
    border-radius: 11px;
    font-size: 12px;
}

.sp4ib-otp-card__timer span {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: #4ecb39;
    opacity: .85;
    transition: width .2s linear;
}

.sp4ib-otp-card__timer.is-warning {
    background: #fff0f0;
    color: #d0021b;
}

.sp4ib-otp-card__timer.is-warning span {
    background: #ff5752;
}

.sp4ib-otp-card__timer b {
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.sp4ib-otp-card__copy {
    flex: 0 0 auto;
    width: var(--ui-field-size, 39px);
    min-width: var(--ui-field-size, 39px);
    padding: 0;
    border: 0;
    border-left: 1px solid #d5dde6;
    background: #ecf7fd;
    color: #2067b0;
    cursor: pointer;
    position: relative;
}

.sp4ib-otp-card.is-compact .sp4ib-otp-card__copy {
    width: 24px;
    min-width: 24px;
    height: 24px;
    border-left: 0;
    background: transparent;
}

.sp4ib-otp-card__copy:hover {
    background: #dff1fb;
    color: #164d86;
}

.sp4ib-otp-card.is-compact .sp4ib-otp-card__copy:hover {
    background: #ecf7fd;
}

.sp4ib-otp-card__copy-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    background: currentColor;
    transform: translate(-50%, -50%);
    -webkit-mask: url('/bitrix/js/ui/icon-set/actions/images/copy-plates.svg') center / contain no-repeat;
    mask: url('/bitrix/js/ui/icon-set/actions/images/copy-plates.svg') center / contain no-repeat;
}

.sp4ib-otp-card.is-compact .sp4ib-otp-card__copy-icon {
    width: 15px;
    height: 15px;
}

.sp4ib-otp-card__copy.is-copied {
    background: #eaf7d9;
    color: #4f7d00;
}

.sp4ib-otp-card.is-compact .sp4ib-otp-card__copy.is-copied {
    background: transparent;
}

.sp4ib-otp-card__copy.is-copied .sp4ib-otp-card__copy-icon {
    -webkit-mask-image: url('/bitrix/js/ui/buttons/icons/images/ui-success.svg');
    mask-image: url('/bitrix/js/ui/buttons/icons/images/ui-success.svg');
}

.sp4ib-otp-filter {
    min-width: 170px;
}

/* ELEMENT WITH FIELDS */
.sp4ib-element-fields-edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    vertical-align: middle;
}

.sp4ib-element-fields-edit__input {
    width: 86px !important;
    min-width: 86px;
}

.sp4ib-element-fields-edit__button {
    min-width: 28px;
    padding-left: 9px;
    padding-right: 9px;
}

.sp4ib-element-fields-edit__title {
    color: #535c69;
    font: 13px var(--ui-font-family-primary, var(--ui-font-family-helvetica));
    line-height: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp4ib-select-field_container {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    min-width: 220px;
    max-width: 520px;
    padding: 10px 12px;
    border: 1px solid #d5dde6;
    border-radius: 8px;
    background: #fff;
    color: #535c69;
    font: 13px var(--ui-font-family-primary, var(--ui-font-family-helvetica));
    line-height: 18px;
}

.sp4ib-select-field_name {
    font-weight: 600;
}

.sp4ib-select-field_name a {
    color: #2067b0;
    text-decoration: none;
}

.sp4ib-select-field_name a:hover {
    color: #164d86;
    text-decoration: underline;
}

.sp4ib-select-field_entity,
.sp4ib-select-field-row {
    display: grid;
    grid-template-columns: minmax(100px, max-content) minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}

.sp4ib-select-field_entity__type,
.sp4ib-select-field-row__label {
    color: #7a869a;
}

.sp4ib-select-field_entity__value,
.sp4ib-select-field-row__value {
    min-width: 0;
    overflow-wrap: anywhere;
}

.sp4ib-select-field-image {
    display: block;
    max-width: 72px;
    max-height: 72px;
    border-radius: 6px;
    object-fit: cover;
}

/* LINK */
.sp4ib-link-edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    vertical-align: middle;
}

.sp4ib-link-edit__protocol {
    width: 118px !important;
    min-width: 118px;
}

.sp4ib-link-edit__input {
    width: 260px !important;
    min-width: 180px;
}

.sp4ib-link-edit__description {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #7a869a;
}

.sp4ib-link-view {
    color: #2067b0;
    text-decoration: none;
}

.sp4ib-link-view:hover {
    color: #164d86;
    text-decoration: underline;
}

/* TAGS */
.sp4ib-tags-view {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    vertical-align: middle;
}

.sp4ib-tags-view__item {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 12px;
    background: #eef6ff;
    color: #2067b0;
    font: 12px var(--ui-font-family-primary, var(--ui-font-family-helvetica));
    text-decoration: none;
}

.sp4ib-tags-view__item:hover {
    background: #e0f0ff;
    color: #164d86;
}

/* IMAGE */
.sp4ib-image-fileinput-preview {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sp4ib-image-native {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(680px, 100%);
    max-width: 100%;
    vertical-align: top;
}

.sp4ib-image-native--view {
    gap: 8px;
}

.sp4ib-image-native--view .sp4ib-image-native__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.sp4ib-image-native--view .sp4ib-image-native__item {
    flex: 0 1 420px;
    max-width: 100%;
}

.sp4ib-image-native__drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 86px;
    padding: 16px 18px;
    border: 2px dashed #d3d2d2;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
    color: #6a737f;
    cursor: pointer;
    overflow: hidden;
    text-align: center;
}

.sp4ib-image-native__drop:hover,
.sp4ib-image-native__drop:focus-within {
    border-color: #2fc6f6;
    background: #f8fcff;
}

.sp4ib-image-native__drop-title {
    color: #535c69;
    font: 600 14px/20px var(--ui-font-family-primary, var(--ui-font-family-helvetica));
}

.sp4ib-image-native__drop-note {
    margin-top: 2px;
    color: #8a94a6;
    font: 12px/16px var(--ui-font-family-primary, var(--ui-font-family-helvetica));
}

.sp4ib-image-native__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.sp4ib-image-native__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 2px;
}

.sp4ib-image-native__empty-state {
    display: none;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 17px;
    background: #f1f5f8;
    color: #7a869a;
    font: 13px/34px var(--ui-font-family-primary, var(--ui-font-family-helvetica));
    white-space: nowrap;
}

.sp4ib-image-native.is-empty .sp4ib-image-native__empty-state {
    display: inline-flex;
    align-self: flex-start;
}

.sp4ib-image-native__item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 7px 8px;
    border: 1px solid #d5dde5;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
}

.sp4ib-image-native__thumb {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid #e0e5ea;
    border-radius: 4px;
    background: #f5f9f9;
    box-sizing: border-box;
    cursor: pointer;
    overflow: hidden;
}

.sp4ib-image-native__thumb.is-file:before {
    content: "";
    width: 22px;
    height: 22px;
    background: #7a869a;
    -webkit-mask: url('/bitrix/js/ui/icon-set/main/images/file.svg') center / contain no-repeat;
    mask: url('/bitrix/js/ui/icon-set/main/images/file.svg') center / contain no-repeat;
}

.sp4ib-image-native__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp4ib-image-native__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
}

.sp4ib-image-native__name {
    overflow: hidden;
    color: #2067b0;
    font: 14px/18px var(--ui-font-family-primary, var(--ui-font-family-helvetica));
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp4ib-image-native__name:hover {
    color: #164d86;
    text-decoration: underline;
}

.sp4ib-image-native__meta {
    color: #8a94a6;
    font: 12px/16px var(--ui-font-family-primary, var(--ui-font-family-helvetica));
    white-space: nowrap;
}

.sp4ib-image-native__item-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sp4ib-image-native__item-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #c6cdd3;
    border-radius: 5px;
    background: #fff;
    box-sizing: border-box;
    cursor: pointer;
}

.sp4ib-image-native__item-action:hover {
    background: #eef8ff;
}

.sp4ib-image-native__item-action:before {
    content: "";
    width: 17px;
    height: 17px;
    background: #6a737f;
}

.sp4ib-image-native__item-action-preview:before {
    -webkit-mask: url('/bitrix/js/ui/icon-set/outline/images/search.svg') center / contain no-repeat;
    mask: url('/bitrix/js/ui/icon-set/outline/images/search.svg') center / contain no-repeat;
}

.sp4ib-image-native__item-action-download:before {
    -webkit-mask: url('/bitrix/js/ui/icon-set/outline/images/download.svg') center / contain no-repeat;
    mask: url('/bitrix/js/ui/icon-set/outline/images/download.svg') center / contain no-repeat;
}

.sp4ib-image-native__item-action-delete:before {
    -webkit-mask: url('/bitrix/js/ui/icon-set/outline/images/trashcan.svg') center / contain no-repeat;
    mask: url('/bitrix/js/ui/icon-set/outline/images/trashcan.svg') center / contain no-repeat;
}

.sp4ib-image-native__lightbox[hidden] {
    display: none;
}

.sp4ib-image-native__lightbox {
    position: fixed;
    z-index: 12000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px;
    background: rgba(31, 39, 50, .72);
    box-sizing: border-box;
}

.sp4ib-image-native__lightbox-img {
    display: block;
    max-width: min(100%, 1100px);
    max-height: 100%;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0,0,0,.28);
    object-fit: contain;
}

.sp4ib-image-native__lightbox-close {
    position: fixed;
    right: 26px;
    top: 22px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    cursor: pointer;
}

.sp4ib-image-native__lightbox-close:before,
.sp4ib-image-native__lightbox-close:after {
    content: "";
    position: absolute;
    left: 12px;
    top: 19px;
    width: 16px;
    height: 2px;
    border-radius: 1px;
    background: #fff;
}

.sp4ib-image-native__lightbox-close:before {
    transform: rotate(45deg);
}

.sp4ib-image-native__lightbox-close:after {
    transform: rotate(-45deg);
}

.sp4ib-image-view__link {
    color: #2067b0;
    text-decoration: none;
}

.sp4ib-image-view__link:hover {
    color: #164d86;
    text-decoration: underline;
}

.sp4ib-checkbox-field {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    color: var(--ui-color-base-80, #535c69);
    font: 15px/20px var(--ui-font-family-primary, var(--ui-font-family-helvetica));
    vertical-align: middle;
}

.sp4ib-checkbox-field.is-compact {
    min-height: 24px;
    font-size: 14px;
    line-height: 18px;
}

.sp4ib-checkbox-field--settings {
    min-height: 32px;
}

.sp4ib-checkbox-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 auto;
    cursor: pointer;
}

.sp4ib-checkbox-field--view input[type="checkbox"] {
    cursor: default;
}

.sp4ib-checkbox-filter,
.sp4ib-checkbox-settings-select {
    width: 100%;
    max-width: 260px;
}

.sp4ib-settings-control {
    min-width: 270px;
}

.sp4ib-settings-hint {
    margin-top: 6px;
    color: var(--ui-color-base-60, #828b95);
    line-height: 1.4;
}
