﻿* {
    box-sizing: border-box;
}

html,
body {
    padding: 0;
    margin: 0;
}

[v-cloak] {
    display: none;
}

#libLoading {
    position: absolute;
    z-index: 99999;
    font-size: 40px;
    color: #ccc;
    left: 50%;
    top: 24%;
    transform: translateX(-50%);
}

#app {
    opacity: 0;
    width: 100vw;
    height: 100vh;
}

/*禁用tabindex，如dropdown*/
:focus-visible {
    outline: none;
}

/*方式加载loading时，按钮指针闪烁*/
.el-loading-mask {
    cursor: pointer;
}

/*表单label右边加大间距*/
.el-form-item__label {
    padding-right: 30px;
}

/*toask宽度自适应*/
.cz-message-short {
    min-width: auto;
}

.cz-notify-short {
    width: auto;
    padding-right: 60px;
}

/*dialog*/
.cz-custom-dialog {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    margin-top: 0;
    max-width: 98vw;
}

.cz-custom-dialog.fullscreen {
    width: 100vw;
    max-width: 100vw;
    height: 100%;
}

.cz-custom-dialog .el-dialog__body {
    max-height: 80vh;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.cz-custom-dialog.list .el-dialog__body {
    height: 80vh;
    max-height: 1500px;
}

.cz-custom-dialog.fullscreen .el-dialog__body {
    height: calc(100vh - 60px);
    max-height: calc(100vh - 60px);
}

.cz-custom-dialog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/*drawer*/
.cz-custom-drawer {
    padding: 0;
}

/*数字框宽度*/
.el-input-number--small {
    width: 130px;
}

.cz-number-auto .el-input-number--small,
.cz-number-auto .el-input-number--mini {
    width: auto;
}

/*form*/
.cz-form-suffix {
    font-size: 12px;
    color: #999;
    margin-left: 8px;
}

.cz-form-group {
    border: solid 1px #e4e4e4;
    padding-bottom: 0px;
    margin-bottom: 18px;
    padding-top: 17px;
    border-radius: 5px;
    background: #f5f7fa;
    padding-right: 20px;
}

.cz-form-group .el-form-item__content {
    font-size: 12px;
    color: #999;
}

.cz-form-group-title {
    font-size: 16px;
    color: #409eff;
    border-bottom: dashed 1px #ccc;
    margin-bottom: 15px;
    margin-top: -10px;
    margin-right: -20px;
    padding: 0 0 10px 14px;
}


.cz-form-group-subs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 10px 10px 10px;
}

.cz-form-group-subs button {
    margin-left: 0 !important;
}

/*cz-tab-vertical*/
.cz-tab-vertical {
    height: 100%;
}

.cz-tab-vertical .el-tabs__content {
    padding-left: 10px;
    padding-right: 20px;
    height: 100%;
    overflow: auto;
}

/*el-table remove row hover*/
.cz-form-group .el-table tbody tr:hover>td {
    background-color: transparent !important;
}


/*cz-inside-dialog*/
.cz-inside-dialog .el-dialog {
    display: flex;
    flex-direction: column;
}

.cz-inside-dialog .el-dialog__header,
.cz-inside-dialog .el-dialog__footer {
    flex-shrink: 0;
}

.cz-inside-dialog .el-dialog__body {
    flex-grow: 1;
    overflow: auto;
}

.cz-desc-label {
    width: 150px;
}

/* 描述框 */
.el-descriptions__title {
    font-size: 20px;
}

.el-descriptions .is-bordered .el-descriptions-item__cell {
    height: 46px;
}

.el-descriptions__title {
    display: flex;
    align-items: center;
    gap: 10px;
}



/* cz-editor */
.page-common-editor {
    display: flex;
    flex-direction: column;
}

.cz-editor {
    flex-grow: 1;
    width: 100%;
    border: solid 2px #ccc;
    border-radius: 4px;
    overflow: auto;
    padding: 10px;
    font-size: small;
    color: #333;
    outline: none;
}

.cz-editor:empty::before {
    content: attr(data-placeholder);
    color: #999;
}

.cz-editor-toolbar {
    flex-shrink: 0;
    display: flex;
    gap: 20px;
    background: #ccc;
    padding: 15px 10px 10px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}


/* el-drawer */
.el-drawer {
    max-width: 95vw;
}