/* 数据统计页面专属样式（仅 system/data/enroll.blade.php 引用） */

/* ---------- 卡片容器 ---------- */
#calendar-index .stat-card{
	background: #ffffff;
	margin-top: 20px;
	padding: 4px 20px 18px;
	border-radius: 10px;
	border: 1px solid #eef1f7;
	box-shadow: 0 1px 2px rgba(16, 42, 86, .04), 0 10px 24px rgba(16, 42, 86, .05);
}
#calendar-index .stat-card-head{
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding: 14px 0 12px;
	border-bottom: 1px solid #f0f3f9;
	margin-bottom: 14px;
}
#calendar-index .stat-card-title{
	position: relative;
	padding-left: 12px;
	font-size: 16px;
	font-weight: 600;
	line-height: 22px;
	color: #1f2d3d;
}
#calendar-index .stat-card-title::before{
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 3px;
	height: 16px;
	border-radius: 2px;
	background: #5B8FF9;
}
#calendar-index .stat-card-tools{
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

/* ---------- 表单控件（覆盖 index.css 中的绝对定位写法） ---------- */
#calendar-index .stat-input,
#calendar-index #enroll-search,
#calendar-index #enroll-people-search,
#calendar-index #staff-enroll-search,
#calendar-index #enroll-table-search,
#calendar-index .stat-select{
	position: static;
	width: 220px;
	height: 34px;
	line-height: 32px;
	margin: 0;
	padding: 0 10px;
	border: 1px solid #dbe3ef;
	border-radius: 6px;
	background: #fff;
	color: #34495e;
	font-size: 13px;
	z-index: auto;
	transition: border-color .15s ease, box-shadow .15s ease;
}
#calendar-index .stat-select{
	width: auto;
	min-width: 122px;
	padding: 0 8px;
	cursor: pointer;
}
#calendar-index .stat-input-sm{
	width: 168px;
}
/* 时间段控件：需要容纳「起始 至 结束」完整文本 */
#calendar-index #enroll-summary-search,
#calendar-index #enroll-table-search{
	width: 212px;
}

/* ---------- 日期面板（挂在 body 下，不受 #calendar-index 作用域限制） ---------- */
/* 本页未配置预设范围，隐藏空的预设栏，避免它挤占面板宽度 */
.daterangepicker.show-calendar .ranges{
	display: none;
}
/* 宽度按内容自适应，并留出屏幕边距 */
.daterangepicker.show-calendar{
	width: auto;
	max-width: calc(100vw - 16px);
}
@media (min-width: 620px){
	/* 桌面下保证两个日历并排所需宽度，避免被压缩折行 */
	.daterangepicker.show-calendar{
		min-width: 556px;
	}
}
/* 开始、结束两个日历固定并排，不再折成上下两行 */
.daterangepicker.show-calendar .calendar{
	float: left;
	clear: none;
	margin: 4px;
}
.daterangepicker.show-calendar .calendar-table{
	float: none;
}
@media (max-width: 600px){
	/* 窄屏放不下两个日历，恢复上下排列 */
	.daterangepicker.show-calendar .calendar{
		float: none;
	}
}
#calendar-index .stat-input::placeholder{
	color: #9aa8bb;
}
#calendar-index .stat-input:hover,
#calendar-index .stat-select:hover{
	border-color: #b8cbe8;
}
#calendar-index .stat-input:focus,
#calendar-index .stat-select:focus{
	border-color: #5B8FF9;
	box-shadow: 0 0 0 3px rgba(91, 143, 249, .15);
	outline: none;
}
#calendar-index .stat-tools-divider{
	width: 1px;
	height: 20px;
	background: #e8edf5;
}
#calendar-index .stat-btn{
	display: inline-flex;
	align-items: center;
	height: 34px;
	margin: 0;
	padding: 0 16px;
	border: none;
	border-radius: 6px;
	background: #2f80ed;
	font-size: 13px;
	line-height: 1;
	box-shadow: 0 2px 6px rgba(47, 128, 237, .25);
	transition: background .15s ease, box-shadow .15s ease;
}
#calendar-index .stat-btn:hover,
#calendar-index .stat-btn:focus{
	background: #1c6dd0;
	box-shadow: 0 4px 12px rgba(47, 128, 237, .3);
}

/* ---------- 顶部招聘概览 ---------- */
#calendar-index .enroll-summary-body{
	display: flex;
	flex-direction: column;
	gap: 14px;
}
#calendar-index .enroll-summary-group{
	padding: 12px 14px 14px;
	border: 1px solid #e8eef6;
	border-radius: 10px;
}
/* 招聘人数分组：蓝色调 */
#calendar-index .enroll-summary-group.is-count{
	border-color: #dbe8fb;
	background: linear-gradient(180deg, #f5f9ff 0%, #fbfdff 100%);
}
/* 时段统计分组：浅蓝色调 */
#calendar-index .enroll-summary-group.is-period{
	border-color: #d7e6fb;
	background: linear-gradient(180deg, #f4f9ff 0%, #fafdff 100%);
}
#calendar-index .enroll-summary-group-head{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	min-height: 30px;
}
#calendar-index .enroll-summary-group-title{
	position: relative;
	padding-left: 11px;
	color: #40536b;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}
#calendar-index .enroll-summary-group-title:before{
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 3px;
	height: 14px;
	margin-top: -7px;
	border-radius: 2px;
	background: #2f80ed;
}
#calendar-index .enroll-summary-group.is-period .enroll-summary-group-title:before{
	background: #4a9cf5;
}
#calendar-index .enroll-summary-group-tip{
	margin-left: 6px;
	color: #93a2b6;
	font-size: 12px;
	font-weight: 400;
}
#calendar-index .enroll-summary-group-tools{
	flex: 0 0 auto;
}
#calendar-index .enroll-summary{
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
}
#calendar-index .enroll-summary-item{
	padding: 14px 16px;
	border: 1px solid #eef2f8;
	border-radius: 8px;
	background: #fff;
}
#calendar-index .enroll-summary-label{
	color: #7b8aa1;
	font-size: 13px;
	line-height: 1.4;
}
#calendar-index .enroll-summary-value{
	margin-top: 6px;
	color: #1f2d3d;
	font-size: 26px;
	font-weight: 600;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}
#calendar-index .enroll-summary-group.is-count .enroll-summary-value{
	color: #2b5fbf;
}
@media (max-width: 991px){
	#calendar-index .enroll-summary{
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	#calendar-index .enroll-summary-group-head{
		flex-wrap: wrap;
	}
}

/* ---------- 图表 ---------- */
#calendar-index .stat-chart{
	height: 400px;
}

/* ---------- 部门业绩排名表格 ---------- */
#calendar-index .enroll-rank-table-wrap{
	max-height: 480px;
	overflow: auto;
	border: 1px solid #e8eef6;
	border-radius: 8px;
}
#enroll-rank-table{
	margin-bottom: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	white-space: nowrap;
	font-size: 13px;
}
#enroll-rank-table > thead > tr > th{
	position: sticky;
	top: 0;
	z-index: 3;
	padding: 11px 14px;
	background: #f4f7fc;
	border: 0;
	border-bottom: 1px solid #e3eaf4;
	color: #54657e;
	font-size: 13px;
	font-weight: 600;
}
#enroll-rank-table > tbody > tr > td,
#enroll-rank-table > tfoot > tr > td{
	padding: 10px 14px;
	border: 0;
	border-bottom: 1px solid #eef2f8;
	color: #34495e;
	font-variant-numeric: tabular-nums;
}
#enroll-rank-table > thead > tr > th:first-child{
	position: sticky;
	left: 0;
	z-index: 4;
	background: #f4f7fc;
	text-align: left;
}
#enroll-rank-table > tbody > tr > td:first-child{
	position: sticky;
	left: 0;
	z-index: 2;
	background: #fff;
	text-align: left;
	font-weight: 500;
	color: #1f2d3d;
}
#enroll-rank-table > tbody > tr:nth-child(even) > td{
	background: #fbfcfe;
}
#enroll-rank-table > tbody > tr:hover > td{
	background: #f1f6ff;
}
#enroll-rank-table .col-rank-money{
	color: #1f2d3d;
	font-weight: 600;
}
#enroll-rank-table .col-rank-rate{
	color: #1c6dd0;
}
#enroll-rank-table > tfoot > tr > td{
	position: sticky;
	bottom: 0;
	z-index: 3;
	background: #eef4ff;
	border-top: 1px solid #dbe6f8;
	font-weight: 600;
	color: #1f2d3d;
}
#enroll-rank-table > tfoot > tr > td:first-child{
	z-index: 4;
	background: #eef4ff;
}
#enroll-rank-table td.enroll-empty{
	padding: 28px 14px;
	color: #9aa8bb;
}

/* ---------- 部门招聘统计表格 ---------- */
#calendar-index .enroll-people-table-wrap{
	margin-top: 0;
	max-height: 480px;
	overflow: auto;
	border: 1px solid #e8eef6;
	border-radius: 8px;
}
#enroll-people-table{
	margin-bottom: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	white-space: nowrap;
	font-size: 13px;
}
#enroll-people-table > thead > tr > th{
	position: sticky;
	top: 0;
	z-index: 3;
	padding: 11px 14px;
	background: #f4f7fc;
	border: 0;
	border-bottom: 1px solid #e3eaf4;
	color: #54657e;
	font-size: 13px;
	font-weight: 600;
}
#enroll-people-table > tbody > tr > td,
#enroll-people-table > tfoot > tr > td{
	padding: 10px 14px;
	border: 0;
	border-bottom: 1px solid #eef2f8;
	color: #34495e;
}
#enroll-people-table .col-group{
	border-left: 1px solid #f3f6fb;
}
#enroll-people-table > tbody > tr > td.col-business{
	position: sticky;
	left: 0;
	z-index: 2;
	background: #fff;
	text-align: left;
	font-weight: 500;
	color: #1f2d3d;
}
#enroll-people-table > thead > tr > th.col-business{
	z-index: 4;
	background: #f4f7fc;
}
#enroll-people-table > tbody > tr:nth-child(even) > td{
	background: #fbfcfe;
}
#enroll-people-table > tbody > tr:hover > td{
	background: #f1f6ff;
}
#enroll-people-table > tbody > tr:hover > td.col-business{
	background: #f1f6ff;
}
#enroll-people-table .col-total{
	background: #f6faff;
	font-weight: 600;
	color: #1f2d3d;
}
#enroll-people-table > tbody > tr:nth-child(even) > td.col-total{
	background: #f6faff;
}
#enroll-people-table .col-group-other{
	color: #98a6bb;
}
#enroll-people-table > tfoot > tr > td{
	position: sticky;
	bottom: 0;
	z-index: 3;
	background: #eef4ff;
	border-top: 1px solid #dbe6f8;
	font-weight: 600;
	color: #1f2d3d;
}
#enroll-people-table > tfoot > tr > td.col-business{
	z-index: 4;
	background: #eef4ff;
}
#enroll-people-table .num{
	font-variant-numeric: tabular-nums;
}
#enroll-people-table td.enroll-empty{
	padding: 28px 14px;
	color: #9aa8bb;
}

/* ---------- 每日人数统计表格 ---------- */
#test-div{
	overflow: auto;
}
#enroll-table{
	margin-bottom: 0;
	font-size: 13px;
}
#enroll-table > thead > tr > th{
	padding: 10px 8px;
	background: #f4f7fc;
	border-color: #e3eaf4;
	color: #54657e;
	font-weight: 600;
	white-space: nowrap;
}
#enroll-table > tbody > tr > td{
	padding: 7px 8px;
	border-color: #eef2f8;
	color: #34495e;
	font-variant-numeric: tabular-nums;
}
#enroll-table > thead > tr > th:first-child,
#enroll-table > tbody > tr > td:first-child{
	position: sticky;
	left: 0;
	z-index: 2;
	background: #fff;
	text-align: left;
	min-width: 120px;
}
#enroll-table > thead > tr > th:first-child{
	z-index: 3;
	background: #f4f7fc;
}
/* 离职行由脚本设置行背景，首列跟随，避免固定列出现白块 */
#enroll-table > tbody > tr[style] > td:first-child{
	background: inherit;
}
#enroll-table > tbody > tr:first-child > td{
	font-weight: 600;
}
/* 合计行（第一行）：与部门业绩排名、部门招聘统计的合计行同色 */
#enroll-table > tbody > tr.enroll-summary-row > td,
#enroll-table > tbody > tr.enroll-summary-row > td:first-child{
	background: #eef4ff;
	border-top: 1px solid #dbe6f8;
	font-weight: 600;
	color: #1f2d3d;
}
/* 总和列：与合计列同色 */
#enroll-table > thead > tr > th.enroll-col-total,
#enroll-table > tbody > tr > td.enroll-col-total{
	background: #f6faff;
	font-weight: 600;
	color: #1f2d3d;
}
#enroll-table > tbody > tr.enroll-summary-row > td.enroll-col-total{
	background: #eef4ff;
}
#enroll-table_wrapper .dataTables_filter input{
	height: 32px;
	border: 1px solid #dbe3ef;
	border-radius: 6px;
	padding: 0 10px;
}
#enroll-table_wrapper .dataTables_length select{
	height: 32px;
	border: 1px solid #dbe3ef;
	border-radius: 6px;
}
#enroll-table_wrapper .dataTables_paginate .paginate_button{
	border-radius: 6px !important;
}
