.qg-bind-store-popup {
    border-radius: 6px !important;
    overflow: hidden;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.2) !important;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.qg-bind-store-popup .qgui-qg-title {
    height: 46px;
    line-height: 46px;
    padding-left: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #303133;
    border-bottom-color: #ebeef5;
}

.qg-bind-store-popup .qgui-qg-setwin {
    top: 14px;
    right: 18px;
}

.qg-bind-store-popup .qgui-qg-content {
    height: calc(100% - 108px) !important;
    margin-right: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box;
}

.qg-bind-store-popup .qgui-qg-content-inner,
.qg-bind-store-popup .bind-store-dialog,
.qg-bind-store-popup .qg-bind-store-app,
.qg-bind-store-popup .qg-bind-store-picker {
    height: 100%;
    box-sizing: border-box;
}

.qg-bind-store-popup .qg-bind-store-picker {
    display: flex;
    flex-direction: column;
    padding: 10px 20px 12px;
    color: #303133;
    background: #fff;
}

.qg-bind-store-context {
    display: flex;
    align-items: center;
    min-height: 24px;
    margin-bottom: 8px;
    color: #909399;
    font-size: 12px;
    line-height: 20px;
}

.qg-bind-store-context-label {
    flex: none;
    color: #909399;
}

.qg-bind-store-context-value {
    min-width: 0;
    overflow: hidden;
    color: #606266;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qg-bind-store-quick-action {
    flex: none;
    margin-left: 12px;
}

.qg-bind-store-quick-action .bind-store-create-btn {
    color: #409eff;
    font-size: 12px;
}

.qg-bind-store-notice {
    display: flex;
    align-items: center;
    min-height: 32px;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 2px;
    color: #DF9134;
    background-color: rgba(254, 244, 233);
    box-sizing: border-box;
    font-size: 12px;
    line-height: 20px;
}

.qg-bind-store-notice > i {
    margin-right: 7px;
    color: #e6a23c;
    font-size: 14px;
}

.qg-bind-store-notice.qg-resource-member-only-notice {
    align-items: flex-start;
}

.qg-bind-store-notice.qg-resource-member-only-notice > i {
    flex: none;
    margin-top: 3px;
}

.qg-bind-store-main {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.9fr);
    flex: 1;
    min-height: 0;
    gap: 12px;
}

.qg-bind-store-panel {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dfe4ec;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
}

.qg-bind-store-source .el-tabs__header {
    flex: none;
    margin: 0;
}

.qg-bind-store-source .el-tabs__nav-wrap::after {
    height: 1px;
    background-color: #ebeef5;
}

.qg-bind-store-source .el-tabs__item {
    height: 39px;
    padding: 0 10px;
    color: #606266;
    font-size: 13px;
    line-height: 39px;
}

.qg-bind-store-source .el-tabs__item.is-active {
    color: #409eff;
}

.qg-bind-store-source .el-tabs__content {
    display: none;
}

.qg-bind-store-search {
    flex: none;
    padding: 10px 12px;
    border-bottom: 1px solid #ebeef5;
}

.qg-bind-store-search .el-input__inner {
    height: 30px;
    border-radius: 16px;
    line-height: 30px;
    font-size: 12px;
}

.qg-bind-store-search .el-input__icon {
    line-height: 30px;
}

.qg-bind-store-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: none;
    height: 34px;
    padding: 0 12px;
    color: #909399;
    background: #f5f7fa;
    box-sizing: border-box;
    font-size: 12px;
}

.qg-bind-store-summary strong {
    color: #606266;
    font-weight: 500;
}

.qg-bind-store-popup .el-checkbox {
    display: inline-flex;
    align-items: center;
    color: #303133;
    font-weight: 400;
}

.qg-bind-store-popup .el-checkbox__label {
    padding-left: 7px;
    font-size: 12px;
}

.qg-bind-store-popup .el-checkbox__inner {
    width: 14px;
    height: 14px;
    border-color: #dcdfe6;
    border-radius: 2px;
}

.qg-bind-store-tree-body {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 7px 0 8px;
    scrollbar-width: thin;
}

.qg-bind-store-tree-body::-webkit-scrollbar,
.qg-bind-store-selected-list::-webkit-scrollbar {
    width: 6px;
}

.qg-bind-store-tree-body::-webkit-scrollbar-thumb,
.qg-bind-store-selected-list::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: #cbd1da;
}

/* 批量选择时避免同时触发数百个 Element UI 复选框过渡动画。 */
.qg-bind-store-tree-body .el-checkbox__inner,
.qg-bind-store-tree-body .el-checkbox__inner::after {
    transition: none;
}

.qg-bind-store-branch-row,
.qg-bind-store-row {
    display: flex;
    align-items: center;
    min-height: 26px;
    padding: 1px 12px;
    box-sizing: border-box;
}

.qg-bind-store-branch-row {
    color: #606266;
    background: #fff;
    cursor: pointer;
    font-weight: 400;
    transition: background-color 0.15s ease;
}

.qg-bind-store-branch-row:hover {
    background: #f5f7fa;
}

.qg-bind-store-expand,
.qg-bind-store-remove,
.qg-bind-store-selected-head button {
    padding: 0;
    border: 0;
    outline: none;
    color: #909399;
    background: transparent;
    cursor: pointer;
}

.qg-bind-store-expand {
    width: 17px;
    height: 24px;
    margin-right: 1px;
    color: #c0c4cc;
    font-size: 11px;
    line-height: 24px;
}

.qg-bind-store-row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.qg-bind-store-row:hover {
    background: #f5f7fa;
}

.qg-bind-store-row.is-disabled {
    cursor: not-allowed;
    background: #fafafa;
}

.qg-bind-store-name {
    min-width: 0;
    margin-left: 7px;
    overflow: hidden;
    color: #606266;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    text-decoration: none;
}

.qg-bind-store-lock {
    margin-left: auto;
    color: #c0c4cc;
    font-size: 12px;
}

.qg-bind-store-source.is-hierarchy-view .qg-bind-store-branch-row {
    min-height: 26px;
    padding-right: 14px;
    padding-left: 10px;
}

.qg-bind-store-source.is-hierarchy-view .qg-bind-store-branch-row .el-checkbox__label {
    color: #606266;
    font-size: 14px;
}

.qg-bind-store-source.is-hierarchy-view .qg-bind-store-row {
    min-height: 26px;
    padding-right: 14px;
    padding-left: 45px;
}

.qg-bind-store-selected-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: none;
    height: 40px;
    padding: 0 12px;
    border-bottom: 1px solid #ebeef5;
    color: #303133;
    box-sizing: border-box;
    font-size: 13px;
}

.qg-bind-store-selected-head button {
    color: #909399;
    font-size: 12px;
}

.qg-bind-store-selected-head button:hover:not(:disabled) {
    color: #409eff;
}

.qg-bind-store-selected-head button:disabled,
.qg-bind-store-remove:disabled {
    cursor: not-allowed;
    color: #c0c4cc;
}

.qg-bind-store-selected-list {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 2px 8px 10px;
}

.qg-bind-store-selected-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(90px, 120px) 18px;
    align-items: center;
    min-height: 36px;
    margin-top: 7px;
    padding: 0 10px;
    gap: 8px;
    border: 1px solid #ebeef5;
    border-radius: 3px;
    box-sizing: border-box;
    background: #fff;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.qg-bind-store-selected-item:hover {
    border-color: #c6e2ff;
    background: #f8fbff;
}

.qg-bind-store-selected-name,
.qg-bind-store-platform {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}

.qg-bind-store-selected-name {
    color: #409eff;
    text-decoration: none;
}

.qg-bind-store-platform {
    color: #909399;
    text-align: right;
}

.qg-bind-store-remove {
    width: 18px;
    height: 24px;
    line-height: 24px;
    text-align: center;
}

.qg-bind-store-remove:hover:not(:disabled) {
    color: #409eff;
}

.qg-bind-store-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    flex-direction: column;
    color: #c0c4cc;
    font-size: 12px;
}

.qg-bind-store-empty i {
    margin-bottom: 7px;
    font-size: 24px;
}

.qg-bind-store-popup .qgui-qg-btn {
    display: flex;
    align-items: center;
    height: 62px;
    margin: 0 !important;
    padding: 0 20px;
    border-top: 1px solid #ebeef5;
    box-sizing: border-box;
    text-align: initial;
    font-size: 0;
}

.qg-bind-store-popup .qgui-qg-btn a {
    flex: none;
    height: 34px;
    margin: 0 0 0 10px;
    padding: 0 18px;
    border-radius: 3px;
    line-height: 32px;
    letter-spacing: 0;
}

.qg-bind-store-popup .qgui-qg-btn .qgui-qg-btn0 {
    order: 3;
}

.qg-bind-store-popup .qgui-qg-btn .qgui-qg-btn1 {
    order: 2;
    border-color: #dcdfe6;
    color: #606266;
    background: #fff;
}

.qg-bind-store-footer-controls {
    display: flex;
    align-items: center;
    align-self: stretch;
    order: 1;
    min-width: 0;
    margin-right: auto;
    gap: 14px;
}

.qg-bind-store-footer-option {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.qg-bind-store-footer-controls .el-checkbox {
    min-width: 0;
    margin-right: 0;
    color: #606266;
    white-space: nowrap;
}

.qg-bind-store-footer-controls .el-checkbox__label {
    padding-left: 6px;
    font-size: 12px;
}

.qg-bind-store-footer-controls .qg-bind-store-footer-action {
    color: #606266;
    font-size: 12px;
}

.qg-bind-store-footer-controls .qg-bind-store-footer-action:focus {
    color: #606266;
}

.qg-bind-store-footer-controls .qg-bind-store-footer-action:hover {
    color: #0088FA;
}

.qg-bind-store-footer-controls .qg-bind-store-footer-action.is-active,
.qg-bind-store-footer-controls .qg-bind-store-footer-action.is-active:focus,
.qg-bind-store-footer-controls .qg-bind-store-footer-action.is-active:active,
.qg-bind-store-footer-controls .qg-bind-store-footer-action.is-active:hover {
    color: #0088FA;
}

.qg-bind-store-footer-controls .qg-bind-store-footer-action.is-active [class*="el-icon-"] {
    color: inherit;
}

.qg-bind-store-footer-controls .qg-bind-store-footer-action,
.qg-bind-store-footer-controls .qg-bind-store-footer-action:hover,
.qg-bind-store-footer-controls .qg-bind-store-footer-action:focus,
.qg-bind-store-footer-controls .qg-bind-store-footer-action:active {
    border-color: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none;
}

.qg-bind-store-footer-help {
    margin-left: 4px;
    background: transparent !important;
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
}

.el-tooltip__popper.qg-bind-store-footer-tooltip {
    z-index: 2147483647 !important;
    border: 1px solid #B4D8FA;
    color: #444444;
    background: #F5FAFF !important;
    transition: none !important;
    animation: none !important;
}

.el-tooltip__popper.qg-bind-store-footer-tooltip[x-placement^="top"] .popper__arrow {
    border-top-color: #B4D8FA !important;
}

.el-tooltip__popper.qg-bind-store-footer-tooltip[x-placement^="top"] .popper__arrow::after {
    border-top-color: #F5FAFF !important;
}

.el-tooltip__popper.qg-bind-store-footer-tooltip[x-placement^="bottom"] .popper__arrow {
    border-bottom-color: #B4D8FA !important;
}

.el-tooltip__popper.qg-bind-store-footer-tooltip[x-placement^="bottom"] .popper__arrow::after {
    border-bottom-color: #F5FAFF !important;
}

.el-tooltip__popper.qg-bind-store-footer-tooltip[x-placement^="left"] .popper__arrow {
    border-left-color: #B4D8FA !important;
}

.el-tooltip__popper.qg-bind-store-footer-tooltip[x-placement^="left"] .popper__arrow::after {
    border-left-color: #F5FAFF !important;
}

.el-tooltip__popper.qg-bind-store-footer-tooltip[x-placement^="right"] .popper__arrow {
    border-right-color: #B4D8FA !important;
}

.el-tooltip__popper.qg-bind-store-footer-tooltip[x-placement^="right"] .popper__arrow::after {
    border-right-color: #F5FAFF !important;
}

.qg-bind-store-popup .el-loading-mask {
    background-color: rgba(255, 255, 255, 0.86);
}

@media (max-width: 680px) {
    .qg-bind-store-popup .qg-bind-store-picker {
        padding-right: 12px;
        padding-left: 12px;
    }

    .qg-bind-store-main {
        grid-template-columns: 1fr 0.88fr;
        gap: 8px;
    }

    .qg-bind-store-source .el-tabs__item {
        padding: 0 4px;
        font-size: 12px;
    }

    .qg-bind-store-footer-controls {
        gap: 8px;
    }

    .qg-bind-store-footer-controls .el-checkbox__label {
        display: inline-block;
        max-width: 92px;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: middle;
    }
}
