@import "../../../../src/theme.less";
:host {
	width: 100%;
	height: 100%;
	// display: flex;
	// text-rendering: optimizeLegibility;
	// -webkit-font-smoothing: antialiased;
	// -moz-osx-font-smoothing: grayscale;
  .add-button {
    margin: 0 auto 16px !important;
  }
  .targetDept {
    overflow: hidden;
    // width: 90px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .dynamic {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    input {
      width: 90%;
    }
    i {
      margin-left: 8px;
      cursor: pointer;
      font-size: 18px;
    }
  }
}

h3{
	margin: 0 !important;
}
/* 修改垂直滚动条 */
::-webkit-scrollbar {
  width: 4px; /* 修改宽度 */
}
 
/* 修改滚动条轨道背景色 */
::-webkit-scrollbar-track {
  background-color: #f1f1f1;
}
 
/* 修改滚动条滑块颜色 */
::-webkit-scrollbar-thumb {
  background-color: #888;
}
 
/* 修改滚动条滑块悬停时的颜色 */
::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

.detail-box{
	display: flex;
	.list-template__content{
		flex:3;
		padding: 0 10px 10px 10px;
		border-radius: 5px;
		border: 1px solid #e5e5e5;
		.list-template__bottom{
			height: calc(100vh - 70px);
			overflow-y: auto;
		}
	}
	.right-content{
		flex: 1;
		margin-left: 10px;
		.right-top{
			border-radius: 5px;
			background: #f9fafb;
			border: 1px solid #e5e5e5;
			padding: 10px;
			.title{
				text-align: center;
				margin-bottom: 10px;
			}
			.right-template{
				display: flex;
				align-items: center;
				margin-top: 10px;
				.label{
					width:55px;
				}
				.ant-select{
					width: 100%;
				}
				.add-class{
					margin-left: 10px;
					cursor: pointer;
					color: #34b349;
				}
			}
			
		}
		.right-bottom{
			border-radius: 5px;
			background: #f9fafb;
			border: 1px solid #e5e5e5;
			padding: 10px;
			margin-top: 20px;
			.title{
				text-align: center;
				margin-bottom: 10px;
			}
			.right-template{
				display: flex;
				align-items: center;
				margin-top: 10px;
				.label{
					width:50px;
				}
				.ant-select{
					width: 100%;
				}
			}
			.dept-box{
				margin-top: 20px;
				height: calc(100vh - 232px);
				overflow-y: auto;
				.dept-item{
					display: flex;
					justify-content: space-between;
					align-items: center;
					cursor: pointer;
					height: 40px;
					padding: 0 10px;
					box-sizing: border-box;
					.transport-lajitong{
						color: #49b856;
						font-size: 18px;
					}
				}
				.activeClass{
					border: 1px solid #49b856;
					background: #E9F7E9;
				}
			}
		}
	}
	.detail-title{
		display: flex;
		justify-content: center;
		align-items: center;
		position: relative;
		height: 42px;
		
		.right-btn{
			position: absolute;
			right: 0;
		}
	}
}

.save {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99;

  .modalBody {
    width: 350px;
    background: #fff;
    border-radius: 5px;
    padding: 10px 20px;
    color: #333;

    .title {
      width: 100%;
      text-align: center;
      font-size: 18px;
      position: relative;

      i {
        position: absolute;
        right: 0;
        top: 0;
        font-size: 20px;
        color: #666;
        cursor: pointer;
        padding: 0 5px;
      }
    }

    .content {
      width: 100%;
      height: 117px;
      background: #f9fafb;
      border: 1px solid #e5e9ed;
      border-radius: 5px;
      overflow: hidden;
      margin-top: 12px;

      div {
        text-align: center;
        margin: 0;

        &.icon {
          margin-top: 17px;

          i {
            color: #34b349;
            font-size: 30px !important;

            &.transport-wenhao {
              color: #f5a523;
            }

            &.transport-shibai {
              color: #ff3a52;
            }
          }
        }

        &.defeat {
          color: #333;
          font-size: 18px;
        }

        &:nth-child(3) {
          font-size: 14px;
          color: #666;
        }
      }
    }

    button {
      margin-top: 10px;

      &.btn {
        margin-left: 8px;
      }
    }
  }

  // 新增
  &.add {
    .modalBody {
      width: 400px;
      height: auto;

      .content {
        width: 100%;
        height: auto;
        padding: 19px 14px 0 14px;
        max-height: 500px;
        overflow-y: auto;
				
				.ant-input-number{
					width: 100%;
				}
				.list-template__bottom {
				  background: #f9fafb;
				  border: 1px solid #e5e9ed;
				  border-radius: 8px;
				  position: relative;
				  .list-template__nzTable {
				    padding: 16px 16px 0;
				
				    .thead {
				      background-image: linear-gradient(to right, @bg-start, @bg-end);
				
				      th {
				        background: transparent;
				        color: #fff;
				        text-align: center;
				      }
				    }
				
				    .ant-table-body {
				      border-bottom: 1px solid #e5e9ed;
				    }
				
				    .ant-table-tbody {
				      tr {
				        text-align: center;
				        color: #333;
				
				        td {
				          border: none;
				
				          &.tab_hover:hover{
				            text-decoration: underline;
				            cursor: pointer;
				          }
				
				          .coop {
				            button{
				              color: #333;
				            }
				            span,button {
				              display: inline-block;
				              padding: 0 8px;
				              cursor: pointer;
				              position: relative;
				
				              &::after {
				                content: "|";
				                position: absolute;
				                top: 0;
				                right: 0;
				              }
				
				              &:hover,
				              &:active {
				                color: @primary-color;
				              }
				
				              &:nth-last-child(1) {
				                &::after {
				                  content: "";
				                }
				              }
				            }
				          }
				        }
				      }
				    }
				  }
				  .list-template__pagination {
				    height: 56px;
				    display: flex;
				    align-items: center;
				    position: absolute;
				    right: 8px;
				  }
				}
				
        .addForm {
					.color-stylr{
						color:red;
					}
          .ant-form-item {
            margin-bottom: 14px;

            .ant-form-item-label {
              line-height: 14px;
              text-align: left;
            }
          }
        }

        .editForm {
          .ant-form-item {
            margin-bottom: 14px;

            .ant-form-item-label {
              line-height: 0;
              text-align: left;
            }
          }
        }
      }

      button {
        &:nth-child(1) {
          margin-right: 20px;
        }
      }
    }
  }
}

.monad{
	padding: 10px;
	border: 1px solid #e7e7e7;
	border-radius: 5px;
	margin-top: 20px;
	.monad-title{
		text-align: center;
		font-weight: 700;
		font-size: 16px;
	}
	.monad-sign{
		display: flex;
		line-height: 30px;
		div{
			margin-right: 15px;
		}
	}
}

.mask-style{
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 999;
	display: flex;
	background: rgba(0,0,0,0.2);
	align-items: center;
	justify-content: center;
}
.spin-style{
	z-index:9999;
}
.sign{
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: red;
	display: inline-block;
}
.red{
	color: red;
}
.green{
	color: #34b349;
}