﻿/* CDN 服务仅供平台体验和调试使用，平台不承诺服务的稳定性，企业客户需下载字体包自行发布使用并做好备份。 */
@font-face {
    font-family: "alibaba";
    font-weight: 400;
    src: url("/fonts/alibaba/alibaba-Thin.woff2") format("woff2"), url("/fonts/alibaba/alibaba-Thin.woff") format("woff");
    font-display: swap;
}
/* 使用 ::v-deep 确保样式覆盖到模态框的 DOM */
 .modal-fullscreen .modal-dialog {
    max-width: 100%;
    width: 100%;
    margin: 0;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100vh;
    display: flex;
    position: fixed;
    z-index: 100000;
}

 .modal-fullscreen .modal-content {
    border: 0;
    border-radius: 0;
    min-height: 100%;
    /* 可选：支持内容滚动 */
    overflow-y: auto;
}

 .modal-fullscreen .modal-body {
    /*max-height: calc(100vh - 60px);*/ /* 留出标题和底部空间 */
    overflow-y: auto; /* 确保内容可滚动 */
    position:relative;
}

.modal-fullscreen .formrenderbox {
    display: flex;
    width: 100%;
    flex-direction: column;
    min-height: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;

}
    .modal-fullscreen .formrenderbox > .kj-form-item-container
  {
        flex-flow: wrap;
        flex-grow: 0;
        overflow: auto;
    }

    .modal-fullscreen .formrenderbox > .tabs {
        display: flex;
        flex-direction: column;
        flex-grow: 0;
        overflow: auto;
    }
        .modal-fullscreen .formrenderbox > .tabs>.tab-content{
            flex:1;
            overflow:auto;
        }
        .modal-fullscreen .kj-form-button-container {
            margin-top: auto;
        }
.modal-header .close {
    padding: 0;
 
    margin: 0;
    margin-left: 0.7rem;
}
.modal-fullscreen .modal-dialog-scrollable{
    min-height:100% !important;
}
::-webkit-scrollbar {
    background-color: var(--webkit-scrollbar-bgcolor);
    width: 5px;
    height: 5px;
    transition: width 0.3s ease;
}

    ::-webkit-scrollbar:hover {
        width:10px;
        background-color: var(--webkit-scrollbar-hover-bgcolor);
    }

::-webkit-scrollbar-button {
    display: none;
}

::-webkit-scrollbar-track {
    display: none;
}

::-webkit-scrollbar-thumb {
    background-color: var(--webkit-scrollbar-thumb-bgcolor);
    border-radius: 5px;
}

    ::-webkit-scrollbar-thumb:hover {
        background-color: var(--webkit-scrollbar-thumb-hover-bgcolor);
    }
/*//定义右下角拖动块的样式（位置7）*/
::-webkit-resizer {
    background-color: transparent;
}
/* //边角（位置6）*/
::-webkit-scrollbar-corner {
    background-color: var(--webkit-scrollbar-corner-bgcolor);
}
.unselected {
     -moz-user-select: none; 
    -webkit-user-select: none; 
    -ms-user-select: none; 
    -khtml-user-select: none;
    user-select: none;
}

/*字体图标重写*/
.kcf {
    font-size: inherit;
}
.table td, .table th {
    padding: var(--table-td-padding);
}
.table-sm td, .table-sm th {
    padding: 0.3rem;
}
.list-group-item.active {
    background-color: var(--primary);
    border-color: var(--primary);
}
body {
    flex-direction: column;
    display: flex;
    background-color: var(--wb-bodybgcolor);
    font-size: 12px;
    overflow: hidden
}
.wrap-outer {
    display: flex;
    flex-direction: column;
    height: 100vh;
}
.wrap-blur {
    -webkit-filter: blur(2px) contrast(.8) brightness(.8);
    -moz-filter: blur(2px);
    -o-filter: blur(2px);
    -ms-filter: blur(2px);
    filter: blur(2px) contrast(.8) brightness(.8);
    transition: 1.0s filter;
}



#header {
    height: var(--wb-head-height);
    display: flex;
    border: 1px solid var(--wb-head-brcolor);
    border-width: 0px 0px 1px 0px;
    width: 100%;
    background-color: var(--wb-headerbg);
}

.header-left {
    
    text-align: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    color: var(--wb-head-left-color);
    padding-left: 7px;
    border-top: 1px solid var(--wb-head-left-bordertopcolor);
    justify-content: center;
}

.header-center {
    flex-direction: column;
/*    text-align: center;
    align-items: center;
    justify-content: center;*/
    border-top: 1px solid var(--wb-head-center-bordertopcolor);
    flex: 1; /* 随父级变化 */
    display:flex;
}


/*禁止拖拽*/
#sidebar, #header {
    -webkit-app-region: drag;
}

.sidebar-item, button, button i, .window-nav-item {
    -webkit-app-region: no-drag;
}


.window-nav {
    padding-left: 15px;
    padding-right: 15px;
    flex: 1;
    display: flex;
    overflow: hidden;
    
}
.window-nav-box {
    flex: 1;
    display: flex;
  /*  align-items: flex-end;*/
    color: #eee;
    overflow: hidden;
    width: 0;

    padding-top:5px;
    padding-bottom:5px;
}

.window-nav-item {
    padding: 5px;
    padding-left: 8px;
    padding-right: 45px;
    margin: 0px 3px;
    background-color: #2D2D32;
    border-radius: 4px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    display:flex;
    align-items:center;
}
    .window-nav-item:hover{
        opacity:.8;
    }
    .window-nav-item span {
    }
    .window-nav-item.active {
        background-color: var(--primary);
    }
    .window-nav-item a.win-close {
        color: #eeeeee;
        cursor: pointer;
        display: none;
        position: absolute;
        right: 8px;
        top: 8px;
    }
    .window-nav-item  .win-needsave{
        font-size:9px;
        color:orangered;
    }
    .window-nav-item a.win-pin {
        color: #eeeeee;
        cursor: pointer;
        display: none;
        position: absolute;
        right: 20px;
        top: 8px;
    }
    .window-nav-item a.win-pined i{
        -moz-transform: rotate(45deg);
        -webkit-transform: rotate(45deg);
    }
    .window-nav-title{
        overflow:hidden;
        text-overflow:ellipsis;
    }

    .window-nav-item:hover a.win-pin, .window-nav-item.active a.win-pin {
        display: block;
    }

    .window-nav-item:hover a.win-close, .window-nav-item.active a.win-close {
        display: block;
    }
    .header-right {
        border-top: 1px solid var(--wb-head-right-bordertopcolor);
        text-align: center;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding-right: 3px;
    }
 .header-right .btn {
 
    color: #ddd;
    border: 1px solid #111;
}

 .header-right .btn:hover {
        background-color: var(--primary);
    }



.wrap {
    margin: 0 auto;
    width: 100%;
    flex: auto;
    display: flex;
    /*flex-direction: row-reverse;*/ /*控制左右*/
}

#sidebar {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: var(--wb-sidebar-width);
    background-color: var(--wb-sidebar-bg);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--wb-sidebar-brcolor);
}

.sidebar-top {
    min-height: 40px;
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.sidebar-middle {
    flex: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sidebar-bottom {
    min-height: 40px;
    text-align: center;
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-item a, .sidebar-item span,
.sidebar-item .kj-left-sidebar-icon {
    color: #cccccc !important;
}

.sidebar-item a {
    display: block;
    height: 40px;
    font-size: 18px;
    line-height: 40px;
}
.sidebar-item sup {
    line-height: 12px;
    border-radius: 10px;
    padding: 2px 5px;
    font-size:12px;
    background-color: red;
    color: #fff;
    position:absolute;
    right:1px;
    top:0px;
}

.sidebar-item {
    position: relative;
    width: 100%;
}

    .sidebar-item:hover {
        background-color: #000000;
    }

    .sidebar-item span {
        display: none;
        position: absolute;
        left: 40px;
        /*right:40px;*/
        top: 0px;
        z-index: 999999;
        background-color: #000000;
        white-space: nowrap;
        height: 40px;
        line-height: 40px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .sidebar-item:hover span {
        display: block;
    }

    .sidebar-item .active {
        background-color: var(--primary);
    }



.appmainbody {
    flex: 1;
    display: flex;
    background-image: url(../images/a.svg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 64px 64px;
    overflow: auto;
}
.pagecontainer{
    display:none;
}
.pagecontainer.active{
    display:flex;
    flex:1;
}

.btn-group-flex2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.kj-card {
    padding: 8px;
    border-bottom: 1px solid var(--kc-border-bottom-color);
    border-top: 1px solid var(--kc-border-top-color);
    justify-content: space-between;
    align-items: center;
    color: var(--light);
}

    .kj-card h1 {
        font-size: 14px;
        font-weight: bold;
        margin: 0px;
        padding: 0px;
    }


.ckeditor-flex{
    position:absolute;
    left:0px; top:0px; right:0px; border:0px; height:100%;width:100%; display:flex;
}
.ckeditor-flex .ck-editor {
    flex: 1;
    display: flex;
    flex-direction: column;
}
    .ckeditor-flex .ck-editor__main {
        flex: 1;
        overflow: auto;
        display:flex;
    }
    .ckeditor-flex .ck-editor__editable_inline {
        flex: 1;
        overflow: auto;
    }

/*.monaco-editor .lines-content, .monaco-editor .view-lines, .monaco-editor .line-numbers{
    font-size:12px !important;
}*/

.sortable-ghost {
    background-color: rgba(245,166,5,.4)
}
.draghandler{
    cursor:move;
}
div[v-cloak]{
    display:none;
}

.tabbody-fill{
    height:100%;
    overflow:auto;
}
.tbcontentrel{position:relative;}


div[ui-monacoeditor] {
    min-height: 400px;
}

.monaco-editor-fullscreen-modal-dialog {
    z-index: 1050;
    position: fixed !important;
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
    max-height: initial;
    height: initial;
    width: 100% !important;
    margin: 0px !important;
    max-width:initial;
}
.monaco-editor-fullscreen-modal-dialog2 {
    z-index: 1050;
    position: fixed !important;
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
    max-height: initial;
    height: 100% !important;
    width: 100% !important;
    margin: 0px !important;
    max-width: initial;
}
.monaco-editor-fullscreen {
    z-index: 1050;
    position: fixed !important;
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
    height: initial !important;
    max-height: initial;
    background-color: #2a2a2a;
    padding-top: 40px;
}



/*from item placeholder box*/

.ipluginitem-ctrlbox {
    position: fixed;
    z-index:1000;
}

.iformitem-ctrlbox {
    position: absolute;
}
    .iformitem-ctrlbox button, .ipluginitem-ctrlbox button{
        border-radius: 0px;
    }
    .iformitem-ctrlbox .dropdown-menu, .ipluginitem-ctrlbox .dropdown-menu {
        padding-top: 0px;
        padding-bottom: 0px;
        font-size: 12px;
        border-radius: 0px;
    }
    /*  .iformitem-ctrlbox button {
        border-color: #80bdff;
        background-color: #80bdff;
    }*/
.form-cfg-box-h {
    position: absolute;
    border-top: 1px dashed #80bdff;
    height: 1px;
    z-index:1;
}
.form-cfg-box-v {
    position: absolute;
    border-left: 1px dashed #80bdff;
    width: 1px;
    z-index: 1;
}
.form-cfg-box-h-active {
    position: absolute;
    border-top: 2px solid #006cff;
    height: 1px;
    z-index: 1;
    /* box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);*/
}
.form-cfg-box-v-active {
    position: absolute;
    z-index: 1;
    border-left: 2px solid #006cff;
    width: 1px;
    /*  box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);*/
}





.popover-body{
    font-size:12px;
}
.form-group{
    word-break:break-all;
    margin-bottom:0.5rem;
}
.attrenderbox .tabs {
    margin: -0.5rem !important;
    margin-bottom: 0px !important;
}
.attrenderbox .kj-card {
    margin-left: -0.5rem !important;
    margin-right: -0.5rem !important;
    margin-bottom: 0.5rem !important;
}
    .attrenderbox .kj-card + .table {
        margin-left: -0.5rem !important;
        margin-right: -0.5rem !important;
        margin-top:-0.5rem !important;
    }
    .attrenderbox .tabs .kj-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
    }
.attrenderbox > .kj-card:first-child {
    margin-top: -0.5rem;
}
.kc-dropdown-xs{
    font-size:12px;
    margin:0px;
    padding:0px;
  
}
.no-radius .dropdown-menu {
    border-radius: 0;
}

.row-ctrl-td {
    height: 45px;
    vertical-align: middle !important;
}

.kj-form-container .form-row{
    margin-left:0px;
    padding-left:0px;
    padding-right:0px;
    margin-right:0px;
}

.word-icon{
    font-style:normal;
}
.kj-abs-fixed{
    position:absolute;
    top:0;bottom:0;left:0;right:0;
}

.kj-pagebuilder-drag-handle{
    border:1px dashed #80bdff;
    height:10px;
    background-color:aliceblue;
}

.kj-form-itemplaceholder-tip{
    background-color:var(--primary);
    color:#fff;
    padding-left:3px; padding-right:3px;
}
.kj-drag-ghost {
    background: #ffffff;
    padding: 5px;
    border:1px solid #dddddd;
    display:flex;
    max-width:100px;
}

.form-control:focus{
    color:var(--light);
}
.form-control {
    font-size:var(--body-font-size);
}
.kj-bd-b-1 {
    border-bottom: 1px solid var(--kc-border-bottom-color);
}
.kj-bd-r-1 {
    border-right: 1px solid var(--kc-border-right-color);
}
    .kj-bd-t-1{
        border-top:1px solid var(--kc-border-top-color);
    }
    .kj-pagebuilder-slidepluginbox {
        background-color: var(--kj-pagebuilder-slidepluginbox-bgcolor);
    }

/*.ck-body-wrapper {
    z-index: 10000;
}*/
:root {
    --ck-z-default: 10555 !important;
    --ck-z-modal: calc(var(--ck-z-default) + 999) !important;
}

.kj-input-detail {
    color: var(--light);
    min-height: calc(var(--body-font-size) * 2.2) !important;
}
.kj-input-detail img {
    max-width: 100% !important;
}
.kj_status_select_list, .kj_status_select_list button{
    border-width:0 !important;
}
.kj_status_select_list button:disabled .badge {
    cursor: not-allowed;
    color: #ccc !important;
}
.kj_status_select_list button:disabled .badge i{
    opacity:.5;
}

.kj-formmodal-box-fixed .formrenderbox {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0px;
    bottom: 0px;
    right: 0px;
    left: 0px;
}
.kj-formmodal-box-fixed .formrenderbox>div.tabs {
    overflow:auto;
}
    .kj-formmodal-box-fixed .kj-form-button-container {
     
        padding-top: 15px;
        padding-bottom: 15px;
    }
.kj-formmodal-box-fixed .kj-form-item-container{
    overflow:auto;
}
.kj-formmodal-box-fixed .quicksearchform .kj-form-item-container {
    overflow:initial;
}
.modal-dialog-scrollable .kj-formmodal-box-fixed {
    height: calc(100vh - 9.6rem);
    position:relative;
}
    .modal-dialog-scrollable .kj-formmodal-box-fixed .formrenderbox > div.tabs {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
    }
        .modal-dialog-scrollable .kj-formmodal-box-fixed .formrenderbox > div.tabs > .tab-content {
            flex-direction: column;
            flex: 1 1 auto;
            overflow:auto;
        }
        .kj-formmodal-detailbox .formrenderbox {
            padding: 0.5rem;
        }

.btn-group-sm .btn, .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: calc( var(--body-font-size) * var(--font-size-sm));
    line-height: 1.5;
    border-radius: 0.2rem;
}
.custom-select.is-invalid, .was-validated .custom-select:invalid {
    background-color: var(--kc-formcontrol-bgcolor) !important;
}
.custom-select.is-valid, .was-validated .custom-select:valid {
    background-color: var(--kc-formcontrol-bgcolor) !important;
}

.input-group .btn {
    border-color: var(--kc-formcontrol-border-color);
}
.input-group-sm > .custom-select, .input-group-sm > .form-control, .input-group-sm > .input-group-append > .btn, .input-group-sm > .input-group-append > .input-group-text, .input-group-sm > .input-group-prepend > .btn, .input-group-sm > .input-group-prepend > .input-group-text {
    font-size: calc(var(--body-font-size) * var(--font-size-sm));
}
.custom-select-sm, .form-control-sm {
    font-size: calc(var(--body-font-size) * var(--font-size-sm)) !important;
}
.dropdown-menu {
    font-size: var(--body-font-size);
}

.form-control.is-invalid, .wasnot-validated .form-control:invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}


.form-control.is-invalid, .form-control.is-valid, .wasnot-validated .form-control:invalid, .wasnot-validated .form-control:valid {
    background-position: right calc(0.375em + 0.1875rem) center;
}
.input-group-border .input-group-text{
    border-width:0 !important;
}
.fa-rotate-320 {
    -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";
    -webkit-transform: rotate(320deg);
    transform: rotate(320deg);
}
.kj-link-text{
    color:var(--info);
    cursor:pointer;
}
.body-item-no-border-raduis {

}
    .body-item-no-border-raduis input,
    .body-item-no-border-raduis select,
    .body-item-no-border-raduis button,
    .body-item-no-border-raduis textarea,
    .body-item-no-border-raduis .modal-header,
    .body-item-no-border-raduis .dropdown-menu,
    .body-item-no-border-raduis .window-nav-item,
    .body-item-no-border-raduis .pagination,
    .body-item-no-border-raduis .modal-footer,
    .body-item-no-border-raduis .modal-content,
    .body-item-no-border-raduis .card-header,
    .body-item-no-border-raduis .card,
    .body-item-no-border-raduis .btn,
    .body-item-no-border-raduis .page-link,
    .body-item-no-border-raduis .form-control,
    .body-item-no-border-raduis .rounded-circle,
    .body-item-no-border-raduis .b-avatar-img,
    .body-item-no-border-raduis .input-group-text
    {
        border-top-left-radius: 0 !important;
        border-top-right-radius: 0 !important;
        border-radius: 0px !important;
        border-bottom-right-radius: 0 !important;
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
    }


.visiblehidden {
    visibility: hidden !important;
}
.toolbar-render-column > .btn-group {
    flex-direction: column;
}

    .toolbar-render-column > .btn-group>.btn {
        margin-bottom: 0.2rem;
        margin-left:0px !important;
    }

.ck-source-editing-area {
    width: 100% !important;
}

    .ck-source-editing-area > textarea {
        overflow: auto !important;
    }
.no-edit {
    pointer-events: none;
}

.kj-theme-dark .dropdown-menu {
    background-color:var(--dark);
    color:var(--light);
}
.kj-theme-dark .dropdown-item {
    color: var(--light);
}
    .kj-theme-dark .dropdown-item:focus, .kj-theme-dark .dropdown-item:hover {
        background-color: var(--secondary);
    }

.nowrap{
    white-space:nowrap;
}
.toast-top-center {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width:300px;
}
.table-dark.border {
    border-color: var(--kc-table-border-color) !important;
}




/* 可调整列宽的 Table 样式 */
.resizable-table-wrapper {
    overflow-x: auto;
    position: relative;
}

    .resizable-table-wrapper .table {
        table-layout: fixed;
    }

.resizable-header-cell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 8px;
}

.resize-handle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    cursor: col-resize;
    user-select: none;
    z-index: 10;
    background: transparent;
    transition: background-color 0.2s;
}

    .resize-handle:hover {
        background-color: rgba(0, 123, 255, 0.2);
    }

    .resize-handle::after {
        content: '';
        position: absolute;
        right: 3px;
        top: 50%;
        transform: translateY(-50%);
        width: 2px;
        height: 50%;
        background-color: rgba(0, 0, 0, 0.1);
        transition: background-color 0.2s;
    }

    .resize-handle:hover::after {
        background-color: rgba(0, 123, 255, 0.5);
    }

/* 调整时的样式 */
body[style*="cursor: col-resize"] .resize-handle {
    background-color: rgba(0, 123, 255, 0.3);
}

/* 表格单元格溢出处理 */
.resizable-table-wrapper .table td,
.resizable-table-wrapper .table th {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .resizable-table-wrapper {
        overflow-x: scroll;
    }
}

/* 表头样式优化 */
.resizable-table-wrapper .table thead th {
    position: relative;
    padding-right: 12px;
}

/* 防止拖拽时选中文本 */
.resizable-table-wrapper.resizing,
.resizable-table-wrapper.resizing * {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}
