/* 考勤模块新版样式
 * 适用页面：absence / abnormalattend / c3attendance / workovertime / rest
 * 设计令牌：主渐变 #005EFF → #2ADFE4，主文字 #162040，辅助文字 #6B7488 / #8A94A6，
 *           卡片底 #FFF，浅蓝底 #F2F6FF，警示 #FF8C00，圆角 14px
 */

/* ============ 基础 ============ */
body {
	background-color: #F2F5FA !important;
}

[v-cloak] {
	display: none !important;
}

.att-page {
	background-color: #F2F5FA !important;
	color: #162040;
	font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
	-webkit-tap-highlight-color: transparent;
	padding-bottom: 30px;
}

.att-page a {
	color: inherit;
	text-decoration: none;
}

.att-page .hero,
.att-page .leave-card,
.att-page .panel,
.att-page .pcd-card,
.att-page .mode-row,
.att-page .tip-card,
.att-page .table-head,
.att-page .att-row,
.att-page .month-bar {
	box-sizing: border-box;
}

/* 通用箭头 */
.chev,
.chev-r {
	display: inline-block;
	width: 9px;
	height: 9px;
	border-left: 1.8px solid currentColor;
	border-bottom: 1.8px solid currentColor;
	border-radius: 1px;
	transform: rotate(45deg);
}

.chev-r {
	transform: rotate(225deg);
}

.arrow-r {
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 4px;
	border-right: 1.4px solid #B9C2D0;
	border-bottom: 1.4px solid #B9C2D0;
	transform: rotate(-45deg);
}

/* ============ 顶部渐变区 ============ */
.hero {
	position: relative;
	overflow: hidden;
	padding: 14px 12px 18px;
	color: #fff;
	border-radius: 0 0 22px 22px;
	background-image: linear-gradient(135deg, #0B62FF 0%, #1E9BFF 55%, #2ADFE4 100%);
}

.hero::before,
.hero::after {
	content: '';
	position: absolute;
	pointer-events: none;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, .13);
}

.hero::before {
	top: -100px;
	right: -70px;
	width: 190px;
	height: 190px;
}

.hero::after {
	right: 24px;
	bottom: -74px;
	width: 120px;
	height: 120px;
	background-color: rgba(255, 255, 255, .09);
}

.hero-bar {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 34px;
}

.hero-back {
	display: flex;
	align-items: center;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: .5px;
	color: #fff;
}

.hero-back .chev {
	margin-right: 7px;
	border-color: #fff;
}

.hero-date {
	display: flex;
	align-items: center;
	padding: 4px 10px 4px 8px;
	font-size: 11px;
	font-variant-numeric: tabular-nums;
	color: #fff;
	border-radius: 20px;
	background-color: rgba(255, 255, 255, .2);
}

/* 日历图标：让右上角数字一眼看出是"日期" */
.hero-cal {
	position: relative;
	display: inline-block;
	width: 11px;
	height: 10px;
	margin-right: 5px;
	border: 1.2px solid rgba(255, 255, 255, .95);
	border-radius: 2px;
}

.hero-cal::before {
	content: '';
	position: absolute;
	top: 2px;
	left: 0;
	right: 0;
	height: 1.2px;
	background-color: rgba(255, 255, 255, .95);
}

.hero-cal::after {
	content: '';
	position: absolute;
	top: -2px;
	left: 2px;
	width: 2px;
	height: 3px;
	border-radius: 1px;
	background-color: rgba(255, 255, 255, .95);
	box-shadow: 5px 0 0 rgba(255, 255, 255, .95);
}

.hero-user {
	position: relative;
	z-index: 1;
	margin-top: 6px;
	font-size: 13px;
	letter-spacing: .3px;
	color: rgba(255, 255, 255, .85);
}

/* 我的假期 */
.leave-card {
	position: relative;
	z-index: 1;
	margin-top: 14px;
	overflow: hidden;
	background-color: #fff;
	border-radius: 16px;
	box-shadow: 0 6px 14px rgba(8, 48, 124, .14);
}

.leave-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px 0;
}

.leave-title {
	display: flex;
	align-items: center;
	font-size: 14px;
	font-weight: 600;
	color: #162040;
}

.leave-title::before {
	content: '';
	width: 4px;
	height: 14px;
	margin-right: 6px;
	border-radius: 2px;
	background-image: linear-gradient(180deg, #005EFF, #2ADFE4);
}

.leave-more {
	display: flex;
	align-items: center;
	font-size: 12px;
	color: #8A94A6;
}

.leave-list {
	display: flex;
	align-items: center;
	padding: 12px 0 14px;
}

.leave-item {
	position: relative;
	flex: 1;
	min-width: 0;
	text-align: center;
}

.leave-item + .leave-item::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	width: 1px;
	height: 22px;
	transform: translateY(-50%);
	background-color: #EFF3F9;
}

.leave-val {
	font-size: 19px;
	font-weight: 700;
	line-height: 1.15;
	color: #162040;
}

.leave-label {
	margin-top: 4px;
	font-size: 11px;
	color: #8A94A6;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* 假期卡内的签到入口 */
.sign-chip {
	display: block;
	margin: 0 12px 12px;
	padding: 9px;
	font-size: 13px;
	text-align: center;
	color: #8A5B00;
	border-radius: 20px;
	background-image: linear-gradient(90deg, #FFBF83 0%, #FFEBBD 100%);
	box-shadow: 0 6px 12px rgba(255, 181, 70, .28);
}

/* ============ 顶部胶囊页签（attendance 组件） ============ */
.tabs-wrap {
	margin-top: 12px;
	padding: 0 12px;
}

.tabs-wrap > div {
	margin: 0 !important;
}

.att-page .mui-segmented-control {
	display: flex;
	align-items: center;
	padding: 4px;
	overflow: hidden;
	border: none;
	border-radius: 14px;
	background-color: #fff;
	box-shadow: 0 2px 10px rgba(19, 60, 138, .06);
}

.att-page .mui-segmented-control .mui-control-item {
	display: block;
	flex: 1;
	width: auto;
	margin: 0;
	padding: 9px 0;
	border: none;
	border-radius: 10px;
	font-size: 12px;
	line-height: 1;
	text-align: center;
	color: #6B7488;
	white-space: nowrap;
	transition: background-color .2s, color .2s;
}

.att-page .mui-segmented-control .mui-control-item.mui-active {
	font-weight: 600;
	color: #fff;
	background-image: linear-gradient(135deg, #0B62FF, #2ADFE4);
}

.att-page .mui-segmented-control .mui-control-item.mui-active::after {
	display: none;
	content: none;
	background: none;
}

/* ============ 派出地 / 派驻地 ============ */
.pcd-card {
	margin: 12px 12px 0;
	padding: 12px 14px;
	background-color: #fff;
	border-radius: 14px;
	box-shadow: 0 2px 10px rgba(19, 60, 138, .06);
}

.pcd-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.pcd-label {
	font-size: 13px;
	color: #6B7488;
}

.pcd-right {
	display: flex;
	align-items: center;
}

.pcd-value {
	margin-right: 10px;
	font-size: 13px;
	font-weight: 600;
	color: #005EFF;
}

.pcd-tip {
	margin-top: 8px;
	padding: 6px 10px;
	font-size: 12px;
	line-height: 1.5;
	color: #FF8C00;
	border-radius: 8px;
	background-color: #FFF8EC;
}

/* ============ 日历模式开关行 ============ */
.mode-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 12px 12px 0;
	padding: 12px 14px;
	background-color: #fff;
	border-radius: 14px;
	box-shadow: 0 2px 10px rgba(19, 60, 138, .06);
}

/* 嵌在卡片内的开关行：去掉独立卡片的间距与阴影 */
.panel .mode-row {
	margin: 0;
	padding: 12px 14px;
	border-bottom: 1px solid #F0F4FA;
	border-radius: 0;
	box-shadow: none;
}

.mode-row .mode-label {
	font-size: 14px;
	font-weight: 600;
	color: #162040;
}

/* ============ 提示卡 / 图例 ============ */
.tip-card {
	display: flex;
	align-items: center;
	margin: 12px 12px 0;
	padding: 12px 14px;
	border-radius: 14px;
	background-color: #FFF8EC;
}

.tip-card img {
	width: 20px;
	height: 20px;
	margin-right: 8px;
}

.tip-card .tip-text {
	flex: 1;
	font-size: 13px;
	color: #8A5B00;
}

.tip-card .arrow-r {
	border-color: #D0A468;
}

.legend {
	margin: 12px 12px 0;
	padding: 10px 12px;
	font-size: 12px;
	line-height: 1.6;
	color: #8A94A6;
	border-radius: 14px;
	background-color: #fff;
}

/* ============ 月份切换 ============ */
.panel {
	margin: 12px 12px 0;
	background-color: #fff;
	border-radius: 14px 14px 0 0;
	box-shadow: 0 2px 10px rgba(19, 60, 138, .06);
}

.panel.single {
	padding-bottom: 6px;
	border-radius: 14px;
}

.month-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 10px 6px;
}

.month-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	color: #fff;
	border-radius: 50%;
	background-image: linear-gradient(135deg, #0B62FF 0%, #2ADFE4 100%);
	box-shadow: 0 4px 10px rgba(11, 98, 255, .26);
	transition: opacity .2s, box-shadow .2s, background-color .2s;
}

.month-btn .chev,
.month-btn .chev-r {
	width: 7px;
	height: 7px;
	border-width: 2px;
}

.month-btn:active {
	opacity: .82;
	box-shadow: 0 2px 6px rgba(11, 98, 255, .22);
}

/* 不可点击：灰底 + 浅灰箭头 + 去掉阴影 */
.month-btn.is-disabled {
	color: #C2CBD9;
	background-image: none;
	background-color: #F1F4F9;
	box-shadow: none;
	opacity: 1;
	pointer-events: none;
}

.month-title {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .5px;
	color: #162040;
}

/* ============ 表头 / 列表 ============ */
.table-head {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 9px 10px;
	overflow: hidden;
	border-top: 1px solid #F0F4FA;
	background-image: linear-gradient(to right, rgba(0, 94, 255, .08), rgba(42, 223, 228, .08));
}

.table-head .th {
	padding-right: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #4A5468;
	text-align: center;
	white-space: nowrap;
}

.table-head .th:first-child {
	padding-left: 4px;
	text-align: left;
}

.table-head .th:last-child {
	padding-right: 0;
	text-align: left;
}

#pullrefresh {
	top: 255px;
	right: 12px;
	bottom: 0;
	left: 12px;
	width: auto;
	overflow: hidden;
	background-color: #fff;
	border-radius: 0 0 14px 14px;
	box-shadow: 0 2px 10px rgba(19, 60, 138, .06);
}

/* 数据量多时列表区域自身滚动：使用原生滚动，避免 mui-scroll 未初始化时内容被裁剪 */
#pullrefresh.native-scroll {
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

/* 原生滚动时滚动内容需回到文档流，保证滚动高度计算正确 */
#pullrefresh.native-scroll .mui-scroll {
	position: relative;
	min-height: 100%;
}

.att-list {
	margin: 0;
	padding: 0 10px 34px;
	list-style: none;
}

.att-list.flush {
	padding: 0 10px 6px;
}

.att-row {
	display: flex;
	align-items: center;
	padding: 12px 0;
	font-size: 13px;
	border-bottom: 1px solid #F1F5FA;
}

.att-row:last-child {
	border-bottom: none;
}

.att-row .cell {
	overflow: hidden;
	padding-right: 6px;
	text-align: center;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.att-row .cell:last-child {
	padding-right: 0;
}

.att-row .cell-date {
	padding-left: 4px;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	text-align: left;
	color: #162040;
}

.att-row .cell-main {
	font-weight: 600;
	color: #0B62FF;
}

.att-row .cell-remark {
	text-align: left;
	color: #8A94A6;
}

.att-row .cell-wrap {
	white-space: normal;
	word-break: break-word;
	line-height: 1.5;
}

.att-row .cell-detail {
	text-align: left;
	line-height: 1.5;
	color: #162040;
}

.att-row.total {
	margin-top: 8px;
	padding: 12px;
	border-bottom: none;
	border-radius: 10px;
	font-weight: 700;
	background-image: linear-gradient(to right, rgba(0, 94, 255, .08), rgba(42, 223, 228, .08));
}

.att-row.total .cell {
	color: #005EFF;
}

.att-row.total .cell-date {
	color: #162040;
}

/* ============ 旧版年度列表 ============ */
.legacy-row {
	display: flex;
	align-items: flex-start;
	padding: 12px 12px;
	border-bottom: 1px solid #F1F5FA;
	list-style: none;
}

.legacy-row:last-child {
	border-bottom: none;
}

.legacy-date {
	width: 56px;
	font-size: 14px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: #162040;
}

.legacy-main {
	flex: 1;
	min-width: 0;
}

.legacy-line {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.legacy-type {
	padding: 3px 8px;
	font-size: 12px;
	color: #005EFF;
	border-radius: 6px;
	background-color: #EEF4FF;
}

.legacy-hours {
	font-size: 13px;
	color: #162040;
}

.legacy-hours b {
	font-size: 15px;
	color: #0B62FF;
}

.legacy-remark {
	margin-top: 6px;
	font-size: 12px;
	line-height: 1.5;
	color: #8A94A6;
}

/* SAP 打卡：日期 + 时间段 */
.punch-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 12px;
	border-bottom: 1px solid #F1F5FA;
	list-style: none;
}

.punch-row:last-child {
	border-bottom: none;
}

.punch-date {
	font-size: 14px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: #162040;
}

.punch-time {
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	color: #6B7488;
}

.punch-time b {
	color: #0B62FF;
}

/* 打卡时间点集合 */
.punch-row .punch-items {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.punch-row .punch-item {
	padding: 3px 8px;
	margin: 2px 0 2px 6px;
	font-size: 12px;
	color: #0B62FF;
	border-radius: 6px;
	background-color: #EEF4FF;
}

/* ============ 日历模式 ============ */
.cal-wrap {
	padding: 2px 6px 12px;
}

.cal-total {
	margin: 6px 8px 0;
	font-size: 14px;
	font-weight: 600;
	color: #162040;
}

/* ============ 空数据 ============ */
.empty {
	padding: 54px 0 46px;
	text-align: center;
	background-color: #fff;
	border-radius: 0 0 14px 14px;
}

.empty.card {
	margin: 12px 12px 0;
	border-radius: 14px;
}

/* 空态并入月份卡时收紧留白 */
.panel .empty {
	padding: 34px 0 26px;
	border-radius: 0 0 14px 14px;
}

.empty img {
	display: block;
	width: 110px;
	margin: 0 auto 12px;
}

.empty-circle {
	position: relative;
	width: 56px;
	height: 56px;
	margin: 0 auto 10px;
	border-radius: 50%;
	background-color: #F1F6FF;
}

.empty-circle::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 2px;
	border-radius: 1px;
	background-color: #C7D6F0;
	transform: translate(-50%, -50%);
}

.empty-text {
	font-size: 13px;
	color: #8A94A6;
}
