@import './variables.module.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';
@import './common.scss';
@import './reset.scss';
@import 'animate.css';
// @import 'element-plus/dist/index.css';

body {
	height: 100%;
	margin: 0;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
	font-weight: 700;
}

html {
	height: 100%;
	box-sizing: border-box;
}

html.dark .svg-icon,
html.dark svg {
	fill: var(--el-text-color-regular);
}

#app {
	height: 100%;
}

*,
*:before,
*:after {
	box-sizing: inherit;
}

.no-padding {
	padding: 0px !important;
}

.padding-content {
	padding: 4px 0;
}

a:focus,
a:active {
	outline: none;
}

a,
a:focus,
a:hover {
	cursor: pointer;
	color: inherit;
	text-decoration: none;
}

div:focus {
	outline: none;
}

.fr {
	float: right;
}

.fl {
	float: left;
}

.pr-5 {
	padding-right: 5px;
}

.pl-5 {
	padding-left: 5px;
}

.block {
	display: block;
}

.pointer {
	cursor: pointer;
}

.inlineBlock {
	display: block;
}

.clearfix {
	&:after {
		visibility: hidden;
		display: block;
		font-size: 0;
		content: ' ';
		clear: both;
		height: 0;
	}
}

aside {
	background: #eef1f6;
	padding: 8px 24px;
	margin-bottom: 20px;
	border-radius: 2px;
	display: block;
	line-height: 32px;
	font-size: 16px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
		sans-serif;
	color: #2c3e50;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;

	a {
		color: #337ab7;
		cursor: pointer;

		&:hover {
			color: rgb(32, 160, 255);
		}
	}
}

//main-container全局样式
.app-container {
	//padding: 20px;
}

// search面板样式
.panel,
.search {
	border-radius: 0.25rem;
	//border: 1px solid var(--el-border-color-light);
	background-color: var(--el-bg-color-overlay);
	transition: all ease 0.3s;

	&:hover {
		// box-shadow: 0 2px 12px #0000001a;
		transition: all ease 0.3s;
	}
}

.components-container {
	margin: 30px 50px;
	position: relative;
}

.pagination-container {
	margin-top: 30px;
}

.text-center {
	text-align: center;
}

.sub-navbar {
	height: 50px;
	line-height: 50px;
	position: relative;
	width: 100%;
	text-align: right;
	padding-right: 20px;
	transition: 600ms ease position;
	background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

	.subtitle {
		font-size: 20px;
		color: #fff;
	}

	&.draft {
		background: #d0d0d0;
	}

	&.deleted {
		background: #d0d0d0;
	}
}

.link-type,
.link-type:focus {
	color: #337ab7;
	cursor: pointer;

	&:hover {
		color: rgb(32, 160, 255);
	}
}

.filter-container {
	padding-bottom: 10px;

	.filter-item {
		display: inline-block;
		vertical-align: middle;
		margin-bottom: 10px;
	}
}

// 列表页面公共样式
.list-card{
	display: flex;
	flex-direction: column;
	width: 100%;

	.el-card__header {
		padding: 16px 20px 0px;
		.el-input, .el-select, .sle-user-el-input{
			min-width: 200px;
		}
	}
	.el-card__body {
		flex: 1;
		height: 0;
	}
	.el-select{
		width: 200px;
	}
}
.el-table{
	.link{
		color: var(--el-color-primary);
		cursor: pointer;
	}
	.el-popper{
		max-width: 30%;
	}
}
.list-card-follow{
	display: flex;
	flex-direction: column;
	height: 100%;

	.el-card__header {
		padding: 16px 16px 0px;
		:deep(.el-input, .el-select, .sle-user-el-input){
			min-width: 200px;
		}
	}
	.el-form--inline .el-form-item{
		margin-right: 12px;
	}
	.card_css{
		flex: 1;
		height: 0;
		overflow: auto;
	}
	.el-timeline-item{
		padding-bottom: 10px;
	}
}
.search .el-form--inline .el-form-item {
	margin-right: 12px;
}

.search .el-form-item--default {
	margin-bottom: 16px;
}

.el-table__empty-block {
	width: 100% !important;
}

// 弹窗样式
.el-dialog {
	.el-dialog__header {
		padding-bottom: var(--el-dialog-padding-primary);
		padding-right: 0 !important;

		.el-dialog__title {
			display: block;
			font-weight: bold;
			text-align: center;
		}

		&::after {
			position: absolute;
			left: 0;
			width: 100%;
			content: '';
			border-bottom: 1px solid #e8eaec;
			padding-top: 16px;
		}
	}
}

// 基本信息样式
.form_area {
	border-top: 1px solid #dcdee2;
	border-bottom: 0;

	.form_item {
		flex: 1;

		.label {
			background-color: #f8fafc;
			color: #333;
			width: 200px;
		}

		.value {
			color: #666;
			flex: 1;
		}

		.label,
		.value {
			padding: 13px 19px;
			border-right: 1px solid #dcdee2;
			border-bottom: 1px solid #dcdee2;
			min-height: 48px;
		}
	}
	.form_item:first-child{
		border-left: 1px solid #dcdee2;
	}
}

// 新增&编辑页面公共样式
.add-area {
	width: 100%;
	background: #fff;
	display: flex;
	flex-direction: column;
	border-radius: 8px;

	.header {
		height: 52px;
		justify-content: space-between;
		padding: 0 30px;
		border-bottom: 1px solid #dcdee2;
	}

	.content {
		padding: 24px 0 18px;
		flex: 1;
		overflow: auto;

		.el-form {
			justify-content: center;
			column-gap: 50px;

			.el-input,
			.el-select,
			.el-row,
			.el-textarea{
				width: 330px;

				.el-input__wrapper {
					width: 100%;
				}
			}
		}
	}

	.footer {
		justify-content: center;
		padding: 24px 0;
	}
}

// 顶部tab切换样式
.top_nav {
	margin-bottom: 20px;

	.nav_list {
		font-size: 14px;
		color: #333;
		margin-right: 38px;
		cursor: pointer;
	}

	i.on {
		display: block;
		width: 30px;
		height: 4px;
		background-color: #1874ff;
		margin: auto;
		border-radius: 4px;
	}
}

// 创建任务-任务标记
.sign-div{
	column-gap: 8px;
	.sign{
		width: 16px;
		height: 16px;
		border-radius: 50%;
		cursor: pointer;
	}
}

// 详情页面样式
.detail_area {
	width: 100%;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	.detail_header {
		background-color: #fff;
		border-radius: 4px;
		width: 100%;
		padding: 20px;

		.detail_company {
			justify-content: space-between;
			margin-bottom: 18px;

			.company_logo {
				width: 52px;
				height: 52px;
				margin-right: 12px;
			}

			.company_name {
				font-weight: bold;
				color: #333;
				font-size: 16px;
				margin-bottom: 3px;
			}

			.company_user {
				span {
					margin-right: 14px;
					color: #666;
				}
			}


		}
	}
	.header_right {
		div{
			cursor: pointer;
			border: 1px solid #999;
			padding: 0 10px;
			height: 30px;
			line-height: 33px;
		}
		.left{
			border-top-left-radius: 4px;
			border-bottom-left-radius: 4px;
		}
		.right{
			border-top-right-radius: 4px;
			border-bottom-right-radius: 4px;
		}
	}

	.detail_main {
		background-color: #fff;
		margin-top: 16px;
		border-radius: 4px;
		flex: 1;
		height: 0;
		display: flex;
		flex-direction: column;
		.main_nav {
			border-bottom: 1px solid #dcdee2;
			justify-content: space-between;
			padding: 17px 15px 12px;

			.item {
				cursor: pointer;
			}

			.on {
				color: #1874ff;
				font-weight: bold;

				i {
					background-color: #1874ff;
					width: 30px;
					height: 2px;
					display: block;
					margin: auto;
					margin-top: 2px;
				}
			}
		}

		.nav_detail {
			padding: 12px 16px;
			flex: 1;
			height: 0;
			overflow: auto;
			.nav_sec {
				margin-bottom: 24px;

				.title {
					justify-content: space-between;
					align-items: center;
					margin-bottom: 8px;

					.bold {
						font-size: 16px;
						font-weight: bold;
						color: #333;
					}
				}
				.el-timeline {
					.el-timeline-item__timestamp.is-top{
						font-size: 16px;
						font-weight: bold;
						color: #333;
						padding-top: 2px;
					}
				}
			}

			.company_data {
				box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.1);
				border-radius: 5px;
				padding: 20px 30px;

				.item {
					text-align: center;

					.item_num {
						color: #333;
						font-weight: bold;
						font-size: 16px;
						margin-bottom: 2px;
					}

					.item_name {
						color: #666;
					}
				}
			}

			.nav_detail_search{
				.el-form-item{
					margin-bottom: 0;
					margin-right: 12px;
					.el-select, .el-input{
						width: 200px;
					}
				}
			}
		}
	}
}
// 批量编辑弹窗
.bulk_area{
	.field_list{
		flex-wrap: wrap;
		margin: 10px 0;
		div{
			border:1px solid #999;
			border-radius: 4px;
			padding: 4px 15px;
			margin-right: 20px;
			margin-bottom: 8px
		}
		.on{
			background-color: #1874FF;
			color:#fff
		}
	}
	.bulk_top{
		height: 32px;
		line-height: 32px;
		.desc{
			font-weight: bold;
			margin-right: 16px
		}
	}
}

.el-col-lg-4-8 {
    width: 20% !important;
}

// 动态相关样式
.follow_item{
    img{
        width: 36px;
        height: 36px;
        border-radius: 100%;
    }
    .follow_content{
        flex:1;
        padding-top: 10px;
        margin-left: 8px;
        color:#666;
        font-size: 14px;
        .text_black{
            color: #333;
            margin-right:8px;
        }
        .follow_desc{
            margin:8px 0 16px;
        }
    }
}

// 统计页面相关样式
.charts_area{
	width: 100%;
    overflow-y: auto;
    padding-right: 10px;
	.top_nav{
        margin: 0;
    }
    .search .el-form-item--default{
        margin-bottom:0;
    }
	.el-input, .el-select, .sle-user-el-input{
		min-width: 200px;
	}
    .echarts-body{
        background-color: #fff;
        border-radius: 4px;
        margin:16px 0;
        padding:10px 0;
    }
    .table-body{
        background-color: #fff;
        border-radius: 4px;
        padding:16px;
    }
}
.sle-user-el-input{
	min-height: 32px;
}
.vertical{
    text-overflow: -o-ellipsis-lastline;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.follow_list{
	.el-timeline {
		.el-timeline-item__timestamp.is-top{
			margin-bottom: 0
		}
	}
}
.btn-grey{
	cursor: no-drop;
    opacity: 0.5;
}

// 邮箱相关样式
.email{
	background: var(--el-bg-color-page);
	height: 100vh;
	.left{
		width: 170px;
		background: #FFF;
		padding: 12px 10px;
		.write-btn{
			margin: 24px 0 10px;
			.el-button{
				width: 100%;
				margin-bottom: 10px;
			}
		}
		.email-btn{
			.el-button{
				width: 100%;
				height: 32px;
				line-height: 32px;
				justify-content: flex-start;
				padding-left: 10px;
				margin-bottom: 8px;
				svg{
					margin-right: 5px;
				}
			}
			.el-button.active{
				background: #ECF5FF;
				color: var(--el-color-primary);
			}
		}
		.el-divider{
			margin: 10px 0 18px;
		}
		.el-button+.el-button{
			margin-left: 0;
		}
	}
	.right{
		flex-direction: column;
		flex: 1;
		width: 0;
		.top-search{
			width: 100%;
			background: #FFF;
			height: 56px;
			padding-left: 10px;
			border-left: 1px solid #F0F0F0;
			.el-form-item{
				margin-bottom: 0;
				margin-right: 12px
			}
		}
		.content{
			padding: 15px;
			background: #FFF;
			flex: 1;
			margin: 16px;
			flex-direction: column;
			height: 0;
			position: relative;
			.table-div{
				flex: 1;
				height: 0;
			}
			.detail{
				flex-direction: column;
				height: 100%;
				.detail-header{
					height: 48px;
					background: #F8FAFC;
					column-gap: 50px;
					padding: 0 16px;
					border-bottom: 1px solid #DCDEE2;
					.el-tooltip__trigger{
						flex: 1;
						overflow: hidden;
						white-space: nowrap;
						text-overflow: ellipsis;
					}
					.first-popover{
						max-width: 650px;
						flex: none;
					}
				}
				.detail-content{
					padding: 12px 16px;
					color: #666666;
					flex: 1;
					height: 0;
					overflow: auto;
					display: flex;
				}
			}
		}
	}
	.email_file{
		width: 240px;
		border-left:1px solid #DCDEE2;
		padding-left: 16px;
    	flex-direction: column;
		.file{
			border-radius: 2px;
			border: 1px solid #1874FF;
			padding:4px 17px;
			color: #1874FF;
			margin: 0 0 10px 0;
			display: flex;
			flex-direction: column;
			cursor: pointer;
			word-break: break-all;
		}
	}
	.email_title{
		margin-left: 8px;
		display: flex;
		flex-direction: column;
		white-space: nowrap;
		overflow: hidden;
		span{
			overflow: hidden;
			text-overflow: ellipsis;
		}
	}
}
.send-ckeditor .cke_chrome{
	border-bottom: none!important;
}
.send-ckeditor .cke_bottom{
	display: none!important;
}
.resizable-container {
	position: absolute;
	width: 100%;
	bottom: 0;
	left: 0;
	z-index: 999;
}
.resizable-handle {
	position: absolute;
	top: -2px; /* 边框宽度的一半 */
	left: 0;
	height: 4px; /* handle的高度 */
	width: 100%;
	cursor: ns-resize;
	background-color: #eeeeee;
}
.resizable-content {
	width: 100%;
	background-color: #fff;
	overflow: auto;
	ul{
		padding-inline-start: 20px;
		margin-block-end: 0;
		margin-block-start: 0;
		li{
			list-style: disc !important;
		}

	}
	ol{
		padding-inline-start: 20px;
		margin-block-end: 0;
		margin-block-start: 0;
		li{
			list-style: decimal !important;
		}

	}
	p{
		line-height: 32px;
	}
	a{
		text-decoration: underline;
		color: #1874FF;
	}
	img{
		max-width: 100%;
	}
}
.follow_style{
	width: 72px;
    height: 72px;
    box-shadow: 0px 0px 8px 0px rgba(24,116,255,0.3);
    text-align: center;
    border-radius: 100%;
    cursor: pointer;
    position: relative;
	p{
		position: absolute;
		margin-top: -11px;
		font-size: 12px;
		margin-left: 11px;
	}
}

.table_area{
    .el-select,.el-input,.el-date-editor,.el-form-item{
        width: 100% !important;
    }
}
.detail-editor{
	img{
		max-width: 100%;
		height: auto !important;
	}
	p{
		line-height: 32px;
	}
	ul{
		padding-inline-start: 20px;
		margin-block-end: 0;
		margin-block-start: 0;
		li{
			list-style: disc !important;
		}
	}
	ol{
		padding-inline-start: 20px;
		margin-block-end: 0;
		margin-block-start: 0;
		li{
			list-style: decimal !important;
		}
	}
	a{
		text-decoration: underline;
		color: #1874FF;
	}
}
