﻿body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) {
    min-height: 100vh;
    margin: -18px -22px -72px;
    padding: 18px 22px 84px;
    background: #fff;
}
body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .form-group {
    margin-right: 0;
    margin-bottom: 18px;
    margin-left: 0;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .control-label {
    padding-top: 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .form-control,
body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .sp_container .sp_input,
body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .bootstrap-select > .btn,
body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .bootstrap-tagsinput {
    min-height: 36px;
    border-color: #dbe6f4;
    border-radius: 9px;
    box-shadow: none;
    color: #243044;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .form-control,
body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .sp_container .sp_input,
body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .bootstrap-select > .btn {
    padding: 7px 12px;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .form-control:focus,
body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .sp_container .sp_input:focus,
body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .bootstrap-select > .btn:focus,
body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .bootstrap-tagsinput.focus {
    border-color: #9cc7ff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.08);
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .form-control[readonly] {
    background: #f7faff;
    color: #64748b;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) select.form-control {
    padding-right: 34px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    background-image:
        linear-gradient(45deg, transparent 50%, #7b8898 50%),
        linear-gradient(135deg, #7b8898 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) select.form-control::-ms-expand {
    display: none;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) select.form-control option {
    padding: 8px 12px;
    background: #fff;
    color: #243044;
    line-height: 22px;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) select.form-control option:hover,
body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) select.form-control option:focus,
body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) select.form-control option:active,
body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) select.form-control option:checked {
    background: #eef5ff linear-gradient(#eef5ff, #eef5ff);
    box-shadow: 0 0 0 999px #eef5ff inset;
    color: #1677ff;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .input-group-addon {
    border-color: #dbe6f4;
    background: #fff;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .input-group-addon.no-border.no-padding {
    border: 0;
    background: transparent;
    padding-left: 8px;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .input-group-addon.no-border.no-padding span + span {
    margin-left: 6px;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .input-group-addon .btn {
    height: 36px;
    padding: 7px 12px;
    border-radius: 10px;
    line-height: 20px;
    box-shadow: none;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .plupload,
body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .faupload {
    border-color: #d8e8ff !important;
    background: #eef5ff !important;
    color: #1677ff !important;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .fachoose {
    border-color: #dbe6f4 !important;
    background: #fff !important;
    color: #526073 !important;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .plupload-preview,
body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .faupload-preview {
    margin-top: 10px;
    margin-left: 0;
    padding-left: 0;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .plupload-preview li,
body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .faupload-preview li {
    margin: 8px 10px 0 0;
    padding: 0;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .plupload-preview .thumbnail,
body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .faupload-preview .thumbnail {
    margin-bottom: 0;
    padding: 6px;
    border: 1px solid #e4edf8;
    border-radius: 10px;
    background: #f8fbff;
    box-shadow: none;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .plupload-preview a:first-child,
body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .faupload-preview a:first-child {
    height: auto;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .plupload-preview a img,
body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .faupload-preview a img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .radio {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding-top: 2px;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .radio > label {
    display: inline-flex;
    align-items: center;
    position: relative;
    margin: 0;
    min-height: 34px;
    padding: 6px 14px 6px 34px;
    border: 1px solid #dbe6f4;
    border-radius: 999px;
    background: #fff;
    color: #526073;
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;
    overflow: visible;
    transition: all .2s ease;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .radio > label > input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0 !important;
    opacity: 0;
    pointer-events: none;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .radio > label > [class^="iradio_"],
body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .radio > label > [class*=" iradio_"] {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    width: 14px !important;
    height: 14px !important;
    margin: -7px 0 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .radio > label::before,
body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .radio > label::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .radio > label::before {
    left: 14px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border: 1px solid #b8c6d8;
    background: #fff;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .radio > label::after {
    left: 18px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    background: transparent;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .radio > label:hover {
    border-color: #c9defe;
    background: #f8fbff;
    color: #1677ff;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .radio > label.is-checked {
    border-color: #cfe2ff;
    background: #eef5ff;
    color: #1677ff;
    box-shadow: inset 0 0 0 1px rgba(22, 119, 255, 0.05);
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .radio > label:has(input[type="radio"]:checked),
body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .radio > label:has([class^="iradio_"].checked),
body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .radio > label:has([class*=" iradio_"].checked) {
    border-color: #cfe2ff;
    background: #eef5ff;
    color: #1677ff;
    box-shadow: inset 0 0 0 1px rgba(22, 119, 255, 0.05);
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .radio > label.is-checked::before {
    border-color: #1677ff;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .radio > label.is-checked::after {
    background: #1677ff;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .radio > label:has(input[type="radio"]:checked)::before,
body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .radio > label:has([class^="iradio_"].checked)::before,
body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .radio > label:has([class*=" iradio_"].checked)::before {
    border-color: #1677ff;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .radio > label:has(input[type="radio"]:checked)::after,
body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .radio > label:has([class^="iradio_"].checked)::after,
body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .radio > label:has([class*=" iradio_"].checked)::after {
    background: #1677ff;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .bootstrap-tagsinput input {
    min-height: 22px;
    color: #243044;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .bootstrap-tagsinput .tag {
    display: inline-block;
    margin-top: 2px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #1677ff;
    color: #fff;
    font-size: 12px;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .bootstrap-select > .btn,
body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .sp_container .sp_input {
    background: #fff;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .bootstrap-select.open > .btn,
body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .bootstrap-select > .btn:hover,
body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .bootstrap-select > .btn:focus {
    border-color: #9cc7ff;
    background: #f8fbff;
    color: #243044;
    outline: 0 !important;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .bootstrap-select .dropdown-menu,
.layui-layer-page .bootstrap-select .dropdown-menu {
    margin-top: 8px;
    border: 1px solid #dbe6f4;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .bootstrap-select .dropdown-menu > li > a,
.layui-layer-page .bootstrap-select .dropdown-menu > li > a {
    padding: 10px 14px;
    color: #344256;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .bootstrap-select .dropdown-menu > li > a:hover,
body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .bootstrap-select .dropdown-menu > li.selected > a,
.layui-layer-page .bootstrap-select .dropdown-menu > li > a:hover,
.layui-layer-page .bootstrap-select .dropdown-menu > li.selected > a {
    background: #f5f9ff;
    color: #1677ff;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) div.sp_container_combo,
body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) div.sp_container_combo ul.sp_element_box,
body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) div.sp_container_combo .sp_input {
    border-radius: 9px;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) div.sp_container_combo .sp_input {
    border-color: #dbe6f4;
    box-shadow: none;
    background: #fff;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) div.sp_container_combo {
    height: auto !important;
    min-height: 36px;
    overflow: visible;
    padding: 4px 8px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) div.sp_container_combo.sp_container_open,
body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) div.sp_container_combo:focus-within {
    border-color: #9cc7ff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.08);
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) ul.sp_element_box {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 28px;
    padding: 0 24px 0 0;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) ul.sp_element_box > li {
    margin: 0;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) ul.sp_element_box li.selected_tag {
    display: inline-flex;
    align-items: center;
    max-width: calc(33.333% - 8px);
    padding: 0 10px;
    border: 1px solid #d8e8ff;
    border-radius: 999px;
    background: #f5f9ff;
    color: #1677ff;
    font-size: 12px;
    line-height: 28px;
    height: 30px;
    box-shadow: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) ul.sp_element_box li.selected_tag span.tag_close {
    position: static;
    display: inline-flex;
    flex: 0 0 16px;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    border-radius: 50%;
    background: rgba(22, 119, 255, 0.12);
    color: #1677ff;
    vertical-align: middle;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) ul.sp_element_box li.selected_tag span.tag_close:hover {
    background: rgba(22, 119, 255, 0.2);
    color: #0f6ae6;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) ul.sp_element_box li.selected_tag i {
    color: inherit;
    font-size: 10px;
    line-height: 1;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) ul.sp_element_box li.input_box {
    min-width: 120px;
    flex: 1 1 120px;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) ul.sp_element_box li.input_box input.selectpage {
    min-height: 28px;
    padding: 0 4px !important;
    color: #243044;
}

.sp_result_area,
.layui-layer-page .sp_container .sp_result_area {
    box-sizing: border-box;
    margin-top: 6px;
    border: 1px solid #dbe6f4;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    max-height: none;
    overflow: visible;
}

.sp_results {
    box-sizing: border-box;
    width: 100% !important;
    padding: 4px;
    background: transparent;
    max-height: 260px;
    overflow-x: hidden;
    overflow-y: auto;
}

.sp_results > li,
.layui-layer-page .sp_container .sp_results > li {
    padding: 8px 12px;
    border-bottom: 1px solid #eef3f9;
    color: #344256;
    line-height: 20px;
    font-size: 13px;
    transition: background-color .2s ease, color .2s ease;
}

.sp_results > li:last-child,
.layui-layer-page .sp_container .sp_results > li:last-child {
    border-bottom: 0;
}

.sp_results > li:hover,
.sp_results > li.sp_over,
.layui-layer-page .sp_container .sp_results > li:hover,
.layui-layer-page .sp_container .sp_results > li.sp_over {
    background: #f5f9ff;
    color: #1677ff;
}

.sp_results > li.sp_selected,
.layui-layer-page .sp_container .sp_results > li.sp_selected {
    background: #fbfdff;
    color: #9aa7b8;
}

.sp_result_area .sp_pagination,
.layui-layer-page .sp_container .sp_pagination {
    box-sizing: border-box;
    display: block !important;
    width: 100% !important;
    height: 34px !important;
    line-height: 34px !important;
    padding: 4px 8px !important;
    border-top: 1px solid #eef3f9;
    background: #fbfdff;
    overflow: hidden;
}

.sp_result_area .sp_pagination ul,
.layui-layer-page .sp_container .sp_pagination ul {
    display: flex !important;
    align-items: center;
    width: 100%;
    height: 26px;
    margin: 0;
    padding: 0;
}

.sp_result_area .sp_pagination li,
.layui-layer-page .sp_container .sp_pagination li {
    display: block !important;
    flex: 0 0 auto;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.sp_result_area .sp_pagination li.pageInfoBox,
.layui-layer-page .sp_container .sp_pagination li.pageInfoBox {
    flex: 1 1 auto;
}

.sp_result_area .sp_pagination > ul > li > a,
.layui-layer-page .sp_container .sp_pagination > ul > li > a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 26px;
    min-width: 30px;
    padding: 0 6px;
    border-radius: 6px;
    background: transparent;
    color: #5f6f85 !important;
    opacity: 1 !important;
}

.sp_result_area .sp_pagination > ul > li > a:hover,
.layui-layer-page .sp_container .sp_pagination > ul > li > a:hover {
    background: #eef5ff !important;
    color: #1677ff !important;
}

.sp_result_area .sp_pagination > ul > li.disabled > a,
.layui-layer-page .sp_container .sp_pagination > ul > li.disabled > a {
    background: transparent !important;
    color: #c4cfdd !important;
    cursor: not-allowed;
}

.sp_result_area .sp_pagination > ul > li.pageInfoBox > a,
.layui-layer-page .sp_container .sp_pagination > ul > li.pageInfoBox > a {
    width: 100% !important;
    color: #7b8798 !important;
    cursor: default;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .layer-footer {
    margin: 0;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .layer-footer .btn {
    min-width: 90px;
    height: 36px;
    padding: 7px 16px;
    border-radius: 10px;
    line-height: 20px;
    box-shadow: none;
}

body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .layer-footer .btn + .btn {
    margin-left: 8px;
}

@media (max-width: 767px) {
    body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) {
        margin: -18px -15px -72px;
        padding: 14px 12px 84px;
    }

    body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .control-label {
        padding-top: 0;
        margin-bottom: 7px;
        text-align: left;
    }

    body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .input-group {
        display: block;
    }

    body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .input-group .form-control {
        float: none;
        width: 100%;
    }

    body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .input-group-addon.no-border.no-padding {
        display: flex;
        gap: 8px;
        padding-top: 10px;
        padding-left: 0;
    }

    body.is-dialog .content form.form-horizontal:not(.goods-editor-form):not(.banner-form) .input-group-addon.no-border.no-padding span + span {
        margin-left: 0;
    }
}

/* Global dialog and form polish */
.layui-layer.layui-layer-iframe,
.layui-layer.layui-layer-page {
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16) !important;
}

.layui-layer.layui-layer-iframe .layui-layer-title,
.layui-layer.layui-layer-page .layui-layer-title {
    height: 48px;
    padding: 0 58px 0 22px;
    border-bottom: 1px solid #e6edf6;
    background: #fff;
    color: #172033;
    font-size: 15px;
    font-weight: 700;
    line-height: 48px;
}

.layui-layer.layui-layer-iframe .layui-layer-setwin,
.layui-layer.layui-layer-page .layui-layer-setwin {
    top: 15px !important;
    right: 18px !important;
}

.layui-layer.layui-layer-iframe .layui-layer-content,
.layui-layer.layui-layer-page .layui-layer-content {
    background: #fff;
}

.layui-layer.layui-layer-iframe iframe {
    border-radius: 0 0 8px 8px;
}

body.is-dialog .content form.form-horizontal {
    background: #fff;
}

body.is-dialog .content form.form-horizontal .form-control,
body.is-dialog .content form.form-horizontal .sp_container .sp_input,
body.is-dialog .content form.form-horizontal .bootstrap-select > .btn,
body.is-dialog .content form.form-horizontal .bootstrap-tagsinput {
    min-height: 36px;
    border: 1px solid #dbe6f4;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    color: #243044;
}

body.is-dialog .content form.form-horizontal .bootstrap-select.form-control {
    height: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

body.is-dialog .content form.form-horizontal .bootstrap-select > select.bs-select-hidden,
body.is-dialog .content form.form-horizontal .bootstrap-select > select.selectpicker {
    position: absolute !important;
    bottom: 0;
    left: 50%;
    display: block !important;
    width: .5px !important;
    height: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none;
}

body.is-dialog .content form.form-horizontal .bootstrap-select > .dropdown-toggle {
    display: flex;
    align-items: center;
    min-height: 36px;
    height: 36px;
    padding: 7px 34px 7px 12px;
    line-height: 20px;
}

body.is-dialog .content form.form-horizontal .bootstrap-select.btn-group .dropdown-toggle .filter-option {
    min-width: 0;
    line-height: 20px;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.is-dialog .content form.form-horizontal .bootstrap-select.btn-group .dropdown-toggle .caret {
    right: 14px;
}

body.is-dialog .content form.form-horizontal .form-control:focus,
body.is-dialog .content form.form-horizontal .sp_container .sp_input:focus,
body.is-dialog .content form.form-horizontal .bootstrap-select.open > .btn,
body.is-dialog .content form.form-horizontal .bootstrap-select > .btn:focus,
body.is-dialog .content form.form-horizontal .bootstrap-tagsinput.focus {
    border-color: #9cc7ff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, .08);
    outline: 0;
}

body.is-dialog .content form.form-horizontal select.form-control {
    padding-right: 34px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    background-image:
        linear-gradient(45deg, transparent 50%, #7b8898 50%),
        linear-gradient(135deg, #7b8898 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

body.is-dialog .content form.form-horizontal select.form-control::-ms-expand {
    display: none;
}

body.is-dialog .content form.form-horizontal .bootstrap-select .dropdown-menu,
.layui-layer-page .bootstrap-select .dropdown-menu,
.layui-layer-iframe .bootstrap-select .dropdown-menu {
    margin-top: 7px;
    border: 1px solid #dbe6f4;
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
    overflow: hidden;
}

body.is-dialog .content form.form-horizontal .bootstrap-select .dropdown-menu > li > a,
.layui-layer-page .bootstrap-select .dropdown-menu > li > a,
.layui-layer-iframe .bootstrap-select .dropdown-menu > li > a {
    padding: 9px 13px;
    color: #344256;
}

body.is-dialog .content form.form-horizontal .bootstrap-select .dropdown-menu > li > a:hover,
body.is-dialog .content form.form-horizontal .bootstrap-select .dropdown-menu > li.selected > a,
.layui-layer-page .bootstrap-select .dropdown-menu > li > a:hover,
.layui-layer-page .bootstrap-select .dropdown-menu > li.selected > a,
.layui-layer-iframe .bootstrap-select .dropdown-menu > li > a:hover,
.layui-layer-iframe .bootstrap-select .dropdown-menu > li.selected > a {
    background: #f5f9ff;
    color: #1677ff;
}

body.is-dialog .content form.form-horizontal .radio {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding-top: 2px;
}

body.is-dialog .content form.form-horizontal .radio > label {
    display: inline-flex;
    align-items: center;
    position: relative;
    min-height: 32px;
    margin: 0;
    padding: 5px 13px 5px 32px;
    border: 1px solid #dbe6f4;
    border-radius: 999px;
    background: #fff;
    color: #526073;
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;
    overflow: visible;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

body.is-dialog .content form.form-horizontal .radio > label > input,
body.is-dialog .content form.form-horizontal .radio > label > [class^="iradio_"],
body.is-dialog .content form.form-horizontal .radio > label > [class*=" iradio_"] {
    position: absolute !important;
    left: 13px !important;
    top: 50% !important;
    width: 14px !important;
    height: 14px !important;
    margin: -7px 0 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.is-dialog .content form.form-horizontal .radio > label::before,
body.is-dialog .content form.form-horizontal .radio > label::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

body.is-dialog .content form.form-horizontal .radio > label::before {
    left: 13px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border: 1px solid #b8c6d8;
    background: #fff;
}

body.is-dialog .content form.form-horizontal .radio > label::after {
    left: 17px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    background: transparent;
}

body.is-dialog .content form.form-horizontal .radio > label:hover {
    border-color: #c9defe;
    background: #f8fbff;
    color: #1677ff;
}

body.is-dialog .content form.form-horizontal .radio > label.is-checked,
body.is-dialog .content form.form-horizontal .radio > label:has(input[type="radio"]:checked),
body.is-dialog .content form.form-horizontal .radio > label:has([class^="iradio_"].checked),
body.is-dialog .content form.form-horizontal .radio > label:has([class*=" iradio_"].checked) {
    border-color: #cfe2ff;
    background: #eef5ff;
    color: #1677ff;
}

body.is-dialog .content form.form-horizontal .radio > label.is-checked::before,
body.is-dialog .content form.form-horizontal .radio > label:has(input[type="radio"]:checked)::before,
body.is-dialog .content form.form-horizontal .radio > label:has([class^="iradio_"].checked)::before,
body.is-dialog .content form.form-horizontal .radio > label:has([class*=" iradio_"].checked)::before {
    border-color: #1677ff;
}

body.is-dialog .content form.form-horizontal .radio > label.is-checked::after,
body.is-dialog .content form.form-horizontal .radio > label:has(input[type="radio"]:checked)::after,
body.is-dialog .content form.form-horizontal .radio > label:has([class^="iradio_"].checked)::after,
body.is-dialog .content form.form-horizontal .radio > label:has([class*=" iradio_"].checked)::after {
    background: #1677ff;
}

body.is-dialog input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0 5px 0 0;
    border: 1px solid #b8c6d8;
    border-radius: 4px;
    background: #fff;
    vertical-align: -3px;
    accent-color: #1677ff;
}

body.is-dialog .text-muted > label {
    margin-right: 12px;
    color: #526073;
    font-weight: 500;
}

body.is-dialog #treeview,
body.is-dialog .jstree {
    max-width: 100%;
    min-height: 120px;
    padding: 10px 12px;
    border: 1px solid #e6edf6;
    border-radius: 8px;
    background: #fbfdff;
    overflow: auto;
}

body.is-dialog #treeview .jstree-leaf,
body.is-dialog #treeview .jstree-node {
    color: #344256;
}

body.is-dialog #treeview .jstree-anchor,
body.is-dialog .jstree-default .jstree-anchor {
    min-height: 26px;
    border-radius: 6px;
    color: #344256;
    line-height: 26px;
}

body.is-dialog #treeview .jstree-hovered,
body.is-dialog #treeview .jstree-clicked,
body.is-dialog .jstree-default .jstree-hovered,
body.is-dialog .jstree-default .jstree-clicked {
    background: #eef5ff;
    box-shadow: none;
    color: #1677ff;
}

body.is-dialog #treeview .jstree-checkbox,
body.is-dialog .jstree-default .jstree-checkbox {
    margin-right: 4px;
    border-radius: 4px;
}

@media (max-width: 767px) {
    .layui-layer.layui-layer-iframe,
    .layui-layer.layui-layer-page {
        border-radius: 6px !important;
    }

    body.is-dialog .content form.form-horizontal .radio {
        gap: 7px;
    }

    body.is-dialog .content form.form-horizontal .radio > label {
        min-height: 30px;
        padding: 4px 11px 4px 30px;
        font-size: 12px;
    }
}
