/* 后台首页 / 数据概览 */
.dash-main {
	flex: 1;
	min-width: 0;
	height: 100%;
	overflow-y: auto;
	background: #f2f5fa;
}

.dash {
	max-width: 1360px;
	margin: 0 auto;
	padding: 22px 26px 28px;
}

.dash-hero {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 22px;
	padding: 22px 24px;
	border: 1px solid #e2eaf6;
	border-radius: 16px;
	background:
		radial-gradient(circle at 100% 0, rgba(47, 111, 237, .10), transparent 38%),
		linear-gradient(135deg, #ffffff 0%, #f7faff 66%, #eef5ff 100%);
	box-shadow: 0 10px 30px rgba(31, 55, 90, .06);
}
.dash-hero::after {
	content: '';
	position: absolute;
	right: 24px;
	top: -46px;
	width: 150px;
	height: 150px;
	border-radius: 50%;
	background: rgba(47, 111, 237, .05);
}
.dash-eyebrow {
	display: block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 2px;
	color: #2f6fed;
	margin-bottom: 7px;
}
.dash-hero h1 {
	margin: 0;
	font-size: 27px;
	line-height: 1.2;
	letter-spacing: -.4px;
	color: #18263b;
}
.dash-hero p {
	margin: 8px 0 0;
	max-width: 620px;
	font-size: 12.5px;
	line-height: 20px;
	color: #7b899d;
}
.dash-hero-side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	flex-shrink: 0;
	position: relative;
	z-index: 1;
}
.dash-date {
	font-size: 11.5px;
	color: #8b98aa;
}
.dash-pending-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 32px;
	padding: 0 12px;
	border-radius: 999px;
	background: #fff7e8;
	border: 1px solid #f5dfb6;
	color: #a05e08;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}
.dash-pending-pill::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #e9a23b;
}
.dash-pending-pill.hot {
	background: #fff1ee;
	border-color: #f3cfc8;
	color: #c84736;
}
.dash-pending-pill.hot::before { background: #e2483d; }

.dash-msg {
	display: none;
	margin-top: 12px;
	padding: 10px 13px;
	border-radius: 10px;
	background: #fff1ee;
	border: 1px solid #f3d0ca;
	color: #c84736;
	font-size: 12px;
}
.dash-msg.show { display: block; }

.kpi-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
	margin-top: 16px;
}
.kpi-card {
	min-width: 0;
	padding: 15px 15px 13px;
	border: 1px solid #e5ecf7;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(35, 55, 85, .045);
}
.kpi-warn { border-color: #f4e4c7; }
.kpi-top {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}
.kpi-icon {
	width: 30px;
	height: 30px;
	border-radius: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.kpi-icon svg { width: 16px; height: 16px; }
.kpi-icon.blue { color: #2f6fed; background: #edf3ff; }
.kpi-icon.green { color: #14945b; background: #e8f8f0; }
.kpi-icon.amber { color: #d28518; background: #fff5e4; }
.kpi-icon.violet { color: #7455e8; background: #f1edff; }
.kpi-icon.sky { color: #1787c9; background: #eaf7ff; }
.kpi-icon.teal { color: #11968f; background: #e8f8f6; }
.kpi-label {
	font-size: 12px;
	color: #7d8a9d;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.kpi-value {
	margin-top: 9px;
	font-size: 27px;
	line-height: 1;
	font-weight: 700;
	color: #1f2e44;
	letter-spacing: -.7px;
	font-variant-numeric: tabular-nums;
}
.kpi-sub {
	margin-top: 7px;
	font-size: 10.5px;
	color: #96a2b4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.kpi-sub em {
	font-style: normal;
	color: #2f6fed;
	font-weight: 600;
}

.dash-cols {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
	gap: 14px;
	margin-top: 14px;
}
.dash-cols.lower {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.dash-card {
	min-width: 0;
	padding: 16px 17px;
	border: 1px solid #e5ecf7;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(35, 55, 85, .045);
}
.card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}
.card-head h2 {
	margin: 0;
	font-size: 14px;
	line-height: 19px;
	color: #24334a;
}
.card-head p {
	margin: 4px 0 0;
	font-size: 10.5px;
	color: #98a4b6;
}
.card-total {
	font-size: 11px;
	color: #96a2b4;
}
.card-total b {
	color: #2f6fed;
	font-size: 15px;
}

.trend-legend {
	display: flex;
	gap: 12px;
	font-size: 10.5px;
	color: #8592a5;
	white-space: nowrap;
}
.trend-legend span { display: inline-flex; align-items: center; gap: 5px; }
.dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
}
.dot.blue { background: #2f6fed; }
.dot.green { background: #24a76b; }

.trend-chart {
	min-height: 190px;
	display: flex;
	align-items: stretch;
	gap: 2px;
	padding-top: 4px;
}
.chart-loading,
.list-loading {
	padding: 42px 0;
	text-align: center;
	font-size: 12px;
	color: #a3afc1;
	width: 100%;
}
.trend-day {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.trend-count {
	display: flex;
	gap: 4px;
	font-size: 9.5px;
	line-height: 13px;
	font-variant-numeric: tabular-nums;
}
.trend-count em { font-style: normal; font-weight: 600; }
.trend-count .blue { color: #2f6fed; }
.trend-count .green { color: #168653; }
.trend-bars {
	flex: 1;
	width: 100%;
	max-width: 64px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 5px;
	margin-top: 2px;
	padding: 0 4px;
	border-bottom: 1px solid #e8eef7;
	background: linear-gradient(to top, rgba(240, 245, 253, .55) 1px, transparent 1px);
	background-size: 100% 35px;
}
.trend-bars i {
	display: block;
	width: 15px;
	min-height: 3px;
	border-radius: 5px 5px 2px 2px;
	transition: height .35s ease;
}
.trend-bars i.blue { background: linear-gradient(180deg, #5d93ff, #2f6fed); }
.trend-bars i.green { background: linear-gradient(180deg, #54c796, #1f9b64); }
.trend-date {
	height: 32px;
	padding-top: 5px;
	text-align: center;
	font-size: 9.5px;
	line-height: 13px;
	color: #8b98ab;
	white-space: nowrap;
}
.trend-date small {
	display: block;
	font-size: 9px;
	color: #aab4c3;
}

.status-bars {
	padding-top: 2px;
}
.status-row { margin-bottom: 11px; }
.status-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 11px;
	color: #59677b;
	margin-bottom: 5px;
}
.status-head b {
	font-size: 10.5px;
	color: #96a2b4;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}
.status-track {
	height: 7px;
	border-radius: 99px;
	overflow: hidden;
	background: #f1f5fb;
}
.status-track i {
	display: block;
	height: 100%;
	border-radius: 99px;
	transition: width .35s ease;
}
.status-track i.green { background: #2db47a; }
.status-track i.amber { background: #e7a23d; }
.status-track i.red { background: #e36a5b; }
.status-track i.gray { background: #9aa8ba; }
.status-track i.blue { background: #6d9af3; }
.status-foot {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: 12px;
	padding-top: 11px;
	border-top: 1px solid #f1f5fb;
	font-size: 10.5px;
	color: #98a4b6;
}
.status-foot b { color: #43536a; }
.card-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 10px;
	font-size: 11px;
	color: #2f6fed;
	text-decoration: none;
}
.card-link span { font-size: 14px; line-height: 12px; }
.card-link:hover { text-decoration: underline; }
.head-link {
	font-size: 11px;
	color: #2f6fed;
	text-decoration: none;
	white-space: nowrap;
}
.head-link span { font-size: 14px; }
.head-link:hover { text-decoration: underline; }

.dash-list { min-height: 154px; }
.pending-item,
.user-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 3px;
	border-bottom: 1px solid #f2f6fb;
	text-decoration: none;
	color: inherit;
}
.pending-item:last-child,
.user-item:last-child { border-bottom: 0; }
.pending-item:hover,
.user-item:hover { background: #f8fbff; border-radius: 8px; }
.list-ico {
	width: 30px;
	height: 30px;
	border-radius: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 11px;
	font-weight: 700;
}
.list-ico.schematic { background: #eef4ff; color: #2f6fed; }
.list-ico.sim { background: #eaf8f2; color: #168653; }
.list-body { flex: 1; min-width: 0; }
.list-title {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #2a384d;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.list-meta {
	display: block;
	margin-top: 3px;
	font-size: 10px;
	color: #98a4b6;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.list-time {
	flex-shrink: 0;
	font-size: 10px;
	color: #a8b2c1;
	white-space: nowrap;
}
.empty-mini {
	padding: 38px 0;
	text-align: center;
	font-size: 11.5px;
	color: #a3afc1;
}

.avatar {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	object-fit: cover;
	background: #eef4ff;
	flex-shrink: 0;
}
.avatar-fallback {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #edf3ff;
	color: #2f6fed;
	font-size: 12px;
	font-weight: 700;
	flex-shrink: 0;
}
.role-chip {
	display: inline-block;
	margin-left: 5px;
	padding: 1px 5px;
	border-radius: 5px;
	background: #f1f5fb;
	color: #7d8a9e;
	font-size: 9px;
	font-weight: 500;
	vertical-align: 1px;
}

.dash-subgrid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 14px;
	margin-top: 14px;
}
.mini-card h2 {
	margin: 0 0 9px;
	font-size: 13px;
	color: #2a384d;
}
.mini-rows > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 7px 0;
	border-bottom: 1px solid #f3f6fb;
	font-size: 11px;
	color: #758398;
}
.mini-rows > div:last-child { border-bottom: 0; }
.mini-rows b {
	color: #2e3d53;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}
.quick-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
.quick-grid a {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 9px 8px;
	border: 1px solid #e9eff8;
	border-radius: 9px;
	background: #f9fbff;
	color: #526278;
	text-decoration: none;
	font-size: 10.5px;
}
.quick-grid a:hover { border-color: #cfe0ff; background: #f3f8ff; color: #2f6fed; }
.q-ico {
	width: 22px;
	height: 22px;
	border-radius: 7px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	flex-shrink: 0;
}
.q-ico.blue { background: #eaf2ff; color: #2f6fed; }
.q-ico.amber { background: #fff3df; color: #d28518; }
.q-ico.sky { background: #e8f7ff; color: #1787c9; }
.q-ico.rose { background: #fff0ef; color: #de6355; }

.dash-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 18px;
	padding: 0 3px;
	font-size: 10.5px;
	color: #a0abba;
}
.dash-foot b { color: #7d8a9e; font-weight: 500; }

@media (max-width: 1180px) {
	.kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.dash-cols { grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); }
	.dash-subgrid { grid-template-columns: 1fr 1fr; }
	.quick-card { grid-column: span 2; }
}
@media (max-width: 880px) {
	.dash { padding: 18px 16px 24px; }
	.dash-hero { align-items: flex-start; flex-direction: column; }
	.dash-hero-side { flex-direction: row; align-items: center; }
	.kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dash-cols,
	.dash-cols.lower,
	.dash-subgrid { grid-template-columns: 1fr; }
	.quick-card { grid-column: auto; }
	.dash-foot { flex-direction: column; align-items: flex-start; gap: 5px; }
}
@media (max-width: 560px) {
	.kpi-grid { grid-template-columns: 1fr; }
	.dash-hero h1 { font-size: 23px; }
	.dash-hero p { font-size: 12px; }
	.card-head { flex-direction: column; }
	.trend-chart { min-height: 170px; }
}
