body {
    --color-theme: #2693ff;
    --color-white: #ffffff;
    --color-background: #f2f3f5;
    --color-text: #606266;
    --color-divider: #e5e6eb;
    --color-border: #e5e6eb;
    --color-nav: #2f363c;
    --color-gap: #e9e9e9;
    --color-scrollbar-thumb: #9e9e9e;
    --color-background-hover: #e5e6eb;

    --font-size-14: 14px;

    --grap-10: 10px;
    --grap-15: 15px;
    --grap-20: 20px;
    --grap-25: 25px;

    
    --width-border-radius: 2px;
    --width-button: 80px;
    --width-min: 150px;
    --width-min-select: 135px;
    
    --height-button: 30px;
    --height-input: 30px;
    --height-select: 30px;
    --height-table-cell: 41px;
}

.saas-iframe-content {
    background-color: var(--color-background);
    padding: var(--grap-15);
}


/* 按钮 select input样式有关 */
.saas-iframe-content input[type=text]{
    font-weight: normal !important;
    /* min-width: var(--width-min); */
    width: 100%;
    border-radius: var(--width-border-radius)!important;
    border: 1px solid var(--color-border);
    height: var(--height-input)!important;
    line-height: var(--height-input)!important;
    padding: 0 10px!important;
    background-color: var(--color-white)!important;
    transition: all 0.3s;
    margin-left: 0;
}
.saas-iframe-content input[readonly]{
    background-color: var(--color-background-hover)!important;
}
.saas-iframe-content input[type=text]:hover{
    background-color: var(--color-background-hover)!important;
}
.saas-iframe-content input[type=text]:focus{
    background-color: var(--color-white)!important;
    border-color: var(--color-theme)!important;
}
.saas-iframe-content input[type=text]:focus-visible {
    outline: none;
}

.saas-iframe-content input[type=color]{
    font-weight: normal !important;
    /* min-width: var(--width-min); */
    width: 100%;
    border-radius: var(--width-border-radius)!important;
    border: 1px solid var(--color-border);
    height: var(--height-input)!important;
    line-height: var(--height-input)!important;
    padding: 0 10px!important;
    background-color: var(--color-white)!important;
    transition: all 0.3s;
    margin-left: 0;
    box-sizing: content-box;
}
.saas-iframe-content input[type=color]:hover{
    background-color: var(--color-background-hover)!important;
}
.saas-iframe-content input[type=color]:focus{
    background-color: var(--color-white)!important;
    border-color: var(--color-theme)!important;
}
.saas-iframe-content input[type=color]:focus-visible {
    outline: none;
}

.saas-iframe-content input[type=password]{
    font-weight: normal !important;
    /* min-width: var(--width-min); */
    width: 100%;
    border-radius: var(--width-border-radius)!important;
    border: 1px solid var(--color-border);
    height: var(--height-input)!important;
    line-height: var(--height-input)!important;
    padding: 0 10px!important;
    background-color: var(--color-white)!important;
    transition: all 0.3s;
    margin-left: 0;
}
.saas-iframe-content input[type=password]:hover{
    background-color: var(--color-background-hover)!important;
}
.saas-iframe-content input[type=password]:focus{
    background-color: var(--color-white)!important;
    border-color: var(--color-theme)!important;
}
.saas-iframe-content input[type=password]:focus-visible {
    outline: none;
}

.saas-iframe-content input[type=number]{
    font-weight: normal!important;
    /* min-width: var(--width-min); */
    width: 100%;
    border-radius: var(--width-border-radius)!important;
    border: 1px solid var(--color-border);
    height: var(--height-input)!important;
    line-height: var(--height-input)!important;
    padding: 0 10px!important;
    background-color: var(--color-white)!important;
    transition: all 0.3s;
    margin-left: 0;
}
.saas-iframe-content input[type=number]:hover{
    background-color: var(--color-background-hover)!important;
}
.saas-iframe-content input[type=number]:focus{
    background-color: var(--color-white)!important;
    border-color: var(--color-theme)!important;
}
.saas-iframe-content input[type=number]:focus-visible {
    outline: none;
}

.saas-iframe-content input[type=file]{
    font-weight: normal !important;
    /* min-width: var(--width-min); */
    width: 100%;
    border-radius: var(--width-border-radius)!important;
    border: 1px solid var(--color-border);
    height: var(--height-input)!important;
    line-height: var(--height-input)!important;
    background-color: var(--color-white)!important;
    transition: all 0.3s;
    margin-left: 0;
}
.saas-iframe-content input[type=file]:hover{
    background-color: var(--color-background-hover)!important;
}
.saas-iframe-content input[type=file]::file-selector-button{
    /* padding: 5px 10px; */
    background-color: var(--color-theme);
    /* border: 1px solid #1E9FFF; */
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 13px;
    height: 28px;
}
.saas-iframe-content input[type=file]:focus-visible {
    outline: none;
}

.saas-iframe-content input[type=checkbox]{
    cursor: pointer;
}

.saas-iframe-content input[type="checkbox"]:disabled{
    background-color: var(--color-background-hover);
}

.saas-iframe-content input[type="checkbox"]:checked{
    background-color: var(--color-theme);
}

.saas-iframe-content textarea {
    border-radius: 5px;
    border: 1px solid #e9e9e9;
    padding: 5px 10px !important;
    box-sizing: border-box;
}
.saas-iframe-content textarea:focus-visible {
    outline: none;
}
.saas-iframe-content textarea[readonly] {
    background-color: var(--color-background-hover)!important;
}

.saas-iframe-content select{
    appearance:none;
    font-size: 12px!important;
    font-weight: normal!important;
    /* min-width: var(--width-min-select); */
    border-radius: var(--width-border-radius)!important;
    border: 1px solid var(--color-border);
    height: var(--height-select)!important;
    line-height: var(--height-select)!important;
    box-sizing: content-box!important;
    padding: 0 10px!important;
    padding-right: 25px!important;
    background-color: var(--color-white)!important;
    transition: all 0.3s;
    background: url("/ui/erp/images/icon-down-select.png") no-repeat right 5px center;
    margin-left: 0;
}
.saas-iframe-content select[readonly] {
    background-color: var(--color-background-hover)!important;
}
.saas-iframe-content select:hover{
    background-color: var(--color-background-hover)!important;
}
.saas-iframe-content select:focus{
    background-color: var(--color-white)!important;
    border-color: var(--color-theme)!important;
}
.saas-iframe-content select:focus-visible {
    outline: none;
}
.saas-iframe-content select::-ms-expand {
    color: red;
}

.saas-iframe-content select option {
    height: var(--height-select);
    line-height: var(--height-select);
}




/* button:hover{
    background-color: var(--color-background-hover)!important;
} */
.saas-iframe-content button i {
    margin-right: 5px;
}

.saas-iframe-content button:last-child {
    margin-right: 0;
}


/* 列表内容相关 */
.saas-iframe-content .state-default {
    /*
    background-color: #fff !important;
    color: var(--color-text) !important;
    border: 1px solid var(--color-border) !important;
     */

}

.saas-iframe-content .state-no-border {
    background-color: #fff !important;
    color: var(--color-text) !important;
}

.saas-iframe-content .state-danger {
    background-color: #f00 !important;
}

.saas-iframe-content ._grid {
    border: 1px solid var(--color-border) !important;
}

.saas-iframe-content .totalBottomBar {
    bottom: 15px !important;
    left: 30px !important;
    right: 600px !important;
    color: #000;
    color: #f00 !important;
}

.saas-search-box {
    display: flex;
    gap: var(--grap-25);
    flex-wrap: wrap;
    line-height: 32px;
}

.saas-search-button-box {
    justify-content: end;
    /* width: 180px;
    min-width: 180px; */
    display: flex;
    align-items: end;
    gap: 10px;
}

.saas-search-center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: var(--grap-25);
}

.saas-search-box input[type=text] {
    width: var(--width-min) !important;
    font-size: 13px !important;
}

.saas-search-box select {
    width: calc(var(--width-min) - 15px) !important;
    font-size: 13px !important;
}

.saas-content {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    background-color: #f2f3f5;
    /*padding: 15px;*/
}

.saas-search-area {
    height: 32px;
    min-height: 32px;
    /* overflow: hidden; */
    background-color: #fff;
    /* min-height: 20%; */
    border-radius: 5px;
    padding: 15px;
    display: flex;
    margin-bottom: 12px;
    justify-content: space-between;
}

.saas-table-area {
    flex: 1;
    background-color: #fff;
    border-radius: 5px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.saas-custom-tab {
    display: flex;
    border-bottom: 1px solid #f2f3f5;
    background-color: #fff !important;
    margin-bottom: 10px;
    overflow-x: auto;
}

.saas-custom-tab::-webkit-scrollbar {
    height: 8px;
}
   
.saas-custom-tab::-webkit-scrollbar-thumb {
    background-color: rgba(212,212,212); /* 设置滚动条滑块的颜色 */
    border-radius: 4px; /* 设置滚动条滑块的圆角 */
}

.saas-custom-tab div {
    padding: 0 10px;
    text-align: center;
    padding-bottom: 10px;
    margin-right: 5px;
    cursor: pointer;
    font-weight: normal !important;
    background-color: #fff !important;
    white-space: nowrap;
    font-size:13px;
}
.saas-custom-tab .saas-tab-item-selected {
    color: var(--color-theme) !important;
    font-weight: 600 !important;
    position: relative;;
    border-bottom: 2px solid var(--color-theme) !important;

}

.saas-button-area {
    margin-bottom: 10px;
    display: flex;
    justify-content: end;
    gap: 10px;
}

.saas-table-content {
    flex: 1;
    overflow: auto;
}

.saas-table-content table {
    min-width: 100%;
}

.saas-iframe-content ._grid .tablelist td {
    height: var(--height-table-cell) !important;
    padding: 0 var(--grap-15) !important;
    font-size: 12px !important;
}
.saas-iframe-content ._grid table th {
    height: var(--height-table-cell) !important;
    line-height: var(--height-table-cell) !important;
    padding: 0 var(--grap-15) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    background-color: rgba(242,243,245) !important;
    border-right-color: rgba(242,243,245) !important;
}
.saas-iframe-content .xyh {
    background-color: var(--color-background) !important;
}
.saas-iframe-content .yh {
    background-color: var(--color-background) !important;
}

.saas-iframe-content ._grid tr {
    background-color: var(--color-white) !important; 
}

.saas-iframe-content ._grid table td {
    background-color: var(--color-white) !important; 
}

.saas-iframe-content tr:hover td {
    background-color: var(--color-border) !important; 
}

.saas-iframe-content .td-line {
    line-height: 20px;
    height: 20px;
}
.saas-iframe-content .td-line:first-child {
    margin-top: 10px;
}
.saas-iframe-content .td-line:last-child {
    margin-bottom: 10px;
}

/* 弹窗相关 */
.saas-dialog {
    padding: 0;
    background-color: #fff;
}

.saas-dialog .dialog-footer{
    width: auto !important;
    display: flex !important;
    gap: 40px !important;
    justify-content: center !important;
    margin-top: 30px !important;
}


/* 表单相关 */
.addform .saas-form-line {
    display: flex;
    justify-content: space-between;
}
.addform .saas-form-item {
    display: flex;
    width: auto;
    margin-bottom: var(--grap-20);
}
.addform .saas-form-item>input {
    width: 300px;
    font-size: 13px !important;
}
.addform .saas-form-item>select {
    width: calc(300px - 15px);
    font-size: 13px !important;
}
.addform .saas-form-item>textarea {
    width: 300px;
    font-size: 13px !important;
}
.saas-form-item .photo-item img {
    width: 100%;
    height: 100%;
    object-fit:cover;
}

.saas-form-item .photo-item {
    cursor: pointer;
    width: 100px;
    height: 100px;
    background-color: #e9e9e9;
    position: relative;
}
.saas-form-item .photo-item .icon-remove-sign {
    position: absolute;
    font-size: 20px;
    right: -8px;
    top: -8px;
    cursor: pointer;
    background-color: #fff;
    border-radius: 10px;
}
.saas-form-item .photo-upload {
    width: 100px;
    height: 100px;
    text-align: center;
    line-height: 70px;
    color: var(--color-theme);
    font-size: 40px;
    cursor: pointer;
    position: relative;
    border: 1px  dashed #dddcdc;
}
.saas-form-item .photo-upload img {
    opacity: 0;
    z-index: 1;
    position: absolute;
    left: 0; 
    right: 0; 
    top: 0; 
    bottom: 0;
}
.saas-form-item .icon-add {
    width: 20px;
    height: 20px;
    line-height: 20px;
    color: #fff;
    border-radius: 50%;
    font-weight: 600;
    font-size: 20px;
    background-color: var(--color-theme);
}
.saas-form-item .photo-upload-desc {
    font-size: 12px;
    position: absolute;
    top: calc(50% + 10px);
    left: 0;
    text-align: center;
    width: 100%;
    line-height: 15px;
}
.saas-form-item .photo-upload-title {
    font-size: 12px;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    text-align: center;
    width: 100%;
    line-height: 15px;
}
.saas-form-line {
    display: flex !important;
    justify-content: space-between;
    width: 100% !important;
}

.saas-form-line {
    display: flex !important;
    justify-content: space-between;
    width: 100% !important;
}
.saas-form-line>.saas-form-item>span {
    min-width: 100px;
    padding-right: 10px;
    text-align: left;
}
.saas-form-line>.saas-form-item>select {
    width: calc(200px - 15px);
}
.saas-form-line>.saas-form-item>input {
    width: 200px;
}

[_must]:after{
    color:red;
    display:inline-block; 
    content:'*'
}
[_must0]:before{
    color:red;
    display:inline-block;
    content:'*'
}

.saas-iframe-content #expend-button {
    width: 60px !important;
    min-width: 60px !important;
    padding: 0 !important;
    color: var(--color-theme) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-empty {
    position: absolute;
    bottom: 60px;
    left: 0;
    right:0;
    top:60px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #8a8a8a;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge */
    user-select: none;         /* 标准语法 */
}

/** 页面内的一些通用效果 ***/
.wh20{height: 20px; line-height: 20px;width: 20px; text-align: center;}
a:hover{font-weight: bold;}
*:focus { outline : none ;}

/**1.基础配置*****/
body{font-size: 14px; color:#3333;}
.saas-iframe-content ._grid table th{
    color: #333333;
    font-size: 13px !important;
}
.saas-iframe-content ._grid table td{
    color: #333333;
    font-size: 13px !important;
}

input{border: 1px solid #D0D0D0 !important;
    height: 28px;
    line-height: 28px;
    border-radius: 2px;
    padding-left: 6px;
}
input:hover{border: 1px solid #0052D9 !important;}

/*2.按钮、链接、表格内链接*/
.saas-iframe-content button {
    padding: 0px;
    border: none;
    transition: all 0.3s;
    cursor: pointer;
    width: 64px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 5px;
    background-color: #169BD5;
    color:#ffffff;
}
.saas-iframe-content button:hover{
    background-color: #058AC3;
}
.reset-button {
background-color: #DBDBDB !important;
    color: #333333 !important;
}
.reset-button:hover{
    background-color: #ECECEC !important;
}
.delete-button {
    background-color: #EE1919 !important;
}
.delete-button:hover{
    background-color: #C60909 !important;
}
.str3-button {
    width: 70px !important;
}
.str4-button {
    width: 76px !important;
}
.str5-button {
    width: 82px !important;
}
/****表格中一些链接的文字********/
._link,_grid td[onclick],a,._grid td>*[onclick]{
    color: #169BD5 !important;
    cursor: pointer;
}
._link:hover,_grid td[onclick]:hover,a:hover,._grid td>*[onclick]:hover{
    font-weight: bold !important;
}
/*查询表单的控件样式*/
.saas-search-box input{ border-radius: 5px !important;}
.saas-search-box select{ border-radius: 5px !important;}
