/**
 * 周数据填报端样式（移动优先）
 */

.pwr-wrap {
	max-width: 1080px;
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.65;
	color: #1f2328;
}

.pwr-wrap * {
	box-sizing: border-box;
}

/* ------------------------------------------------------------------ 提示条 */

.pwr-notice {
	margin: 0 0 20px;
	padding: 14px 18px;
	border-radius: 8px;
	border: 1px solid #d0d7de;
	border-left-width: 4px;
	background: #f6f8fa;
}

.pwr-notice--success {
	border-color: #a7d8b4;
	border-left-color: #1a7f37;
	background: #eaf6ec;
}

.pwr-notice--error {
	border-color: #f0b8b8;
	border-left-color: #cf222e;
	background: #fdf0ef;
}

.pwr-notice--warn {
	border-color: #eac54f;
	border-left-color: #9a6700;
	background: #fff8e5;
}

.pwr-notice--info {
	border-color: #b6d7f8;
	border-left-color: #0969da;
	background: #eef6fd;
}

.pwr-notice p {
	margin: 0 0 6px;
}

.pwr-notice p:last-child {
	margin-bottom: 0;
}

.pwr-notice__title {
	font-weight: 600;
}

.pwr-notice__foot {
	font-size: 13px;
	color: #57606a;
}

/* ------------------------------------------------------------------ 表单 */

.pwr-form {
	margin: 0;
}

.pwr-fieldset {
	margin: 0 0 22px;
	padding: 18px 20px 20px;
	border: 1px solid #d0d7de;
	border-radius: 10px;
	background: #ffffff;
}

.pwr-legend {
	padding: 0 10px;
	margin-left: -4px;
	font-size: 16px;
	font-weight: 600;
	color: #0b4a8f;
}

.pwr-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 20px;
}

.pwr-field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.pwr-field--full {
	grid-column: 1 / -1;
}

.pwr-label {
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #24292f;
}

.pwr-unit {
	font-weight: 400;
	color: #6e7781;
}

.pwr-required {
	color: #cf222e;
	margin-left: 3px;
}

.pwr-control {
	width: 100%;
	padding: 9px 11px;
	font-size: 15px;
	font-family: inherit;
	color: #1f2328;
	background: #ffffff;
	border: 1px solid #d0d7de;
	border-radius: 6px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	min-height: 42px;
}

.pwr-control:focus {
	outline: none;
	border-color: #0969da;
	box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.15);
}

textarea.pwr-control {
	min-height: 96px;
	resize: vertical;
	line-height: 1.6;
}

.pwr-control--static {
	background: #f0f3f6;
	color: #1f2328;
	font-weight: 600;
	cursor: not-allowed;
	border-style: dashed;
}

.pwr-control--static.pwr-control--invalid {
	color: #cf222e;
	background: #fdf0ef;
	font-weight: 400;
}

.pwr-field--derived .pwr-control--static {
	background: #eef6fd;
	border-color: #b6d7f8;
	color: #0b4a8f;
}

.pwr-help,
.pwr-formula {
	margin: 5px 0 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: #6e7781;
}

.pwr-formula {
	color: #0b4a8f;
	font-style: normal;
}

.pwr-error {
	margin: 5px 0 0;
	font-size: 13px;
	color: #cf222e;
}

.pwr-field--error .pwr-control {
	border-color: #cf222e;
}

.pwr-field--error .pwr-control:focus {
	box-shadow: 0 0 0 3px rgba(207, 34, 46, 0.15);
}

/* ------------------------------------------------------------------ 按钮 */

.pwr-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-top: 8px;
}

.pwr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 26px;
	font-size: 15px;
	font-family: inherit;
	font-weight: 600;
	line-height: 1.2;
	border: 1px solid transparent;
	border-radius: 6px;
	cursor: pointer;
	text-decoration: none;
	min-height: 44px;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.pwr-btn--primary {
	background: #0b4a8f;
	border-color: #0b4a8f;
	color: #ffffff;
}

.pwr-btn--primary:hover {
	background: #09407a;
	color: #ffffff;
}

.pwr-btn--ghost {
	background: #ffffff;
	border-color: #d0d7de;
	color: #24292f;
}

.pwr-btn--ghost:hover {
	background: #f6f8fa;
}

.pwr-btn--link {
	background: transparent;
	color: #0969da;
	padding-left: 6px;
	padding-right: 6px;
}

/* ------------------------------------------------------------------ 摘要 */

.pwr-summary {
	margin-top: 12px;
	padding: 14px 18px;
	background: #ffffff;
	border: 1px solid #d0d7de;
	border-radius: 8px;
}

.pwr-summary__title {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 600;
	color: #0b4a8f;
}

.pwr-summary__list {
	margin: 0;
}

/* 切换片区重新拉取汇总时的过渡态 */
.pwr-summary__list--loading {
	opacity: 0.55;
}

.pwr-summary__row {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	padding: 6px 0;
	border-bottom: 1px dashed #e6e9ec;
}

.pwr-summary__row:last-child {
	border-bottom: none;
}

.pwr-summary__row dt {
	flex: 0 0 130px;
	margin: 0;
	font-size: 13.5px;
	color: #6e7781;
}

.pwr-summary__row dd {
	flex: 1 1 auto;
	margin: 0;
	font-size: 14px;
	font-weight: 600;
}

.pwr-summary__meta {
	margin: 12px 0 0;
	font-size: 12.5px;
	color: #6e7781;
}

/* ==================================================================
   网点周报查询（片区主管端）
   ================================================================== */

.pwr-wrap--query {
	position: relative;
}

/* ---------------------------------------------------------- 登录卡片 */

.pwr-dq-login {
	max-width: 420px;
	margin: 24px auto;
	padding: 26px 24px 28px;
	background: #ffffff;
	border: 1px solid #d0d7de;
	border-radius: 10px;
}

.pwr-dq-login__title {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 600;
	color: #0b4a8f;
	text-align: center;
}

.pwr-dq-login__hint {
	margin: 0 0 18px;
	font-size: 13.5px;
	color: #6e7781;
	text-align: center;
}

/* ---------------------------------------------------------- 页头 */

.pwr-dq-head {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
	align-items: flex-start;
	justify-content: space-between;
	margin: 0 0 16px;
}

.pwr-dq-head__main {
	min-width: 0;
}

.pwr-dq-title {
	margin: 0 0 4px;
	font-size: 19px;
	font-weight: 600;
	color: #0b4a8f;
}

.pwr-dq-sub {
	margin: 0;
	font-size: 13px;
	color: #6e7781;
}

.pwr-dq-head__actions {
	display: flex;
	gap: 8px;
}

/* ---------------------------------------------------------- 筛选栏 */

.pwr-dq-filters {
	margin: 0 0 18px;
	padding: 16px 18px 18px;
	background: #ffffff;
	border: 1px solid #d0d7de;
	border-radius: 10px;
}

.pwr-dq-filters__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px 16px;
}

.pwr-dq-filters__actions {
	margin-top: 16px;
}

/* ---------------------------------------------------------- 结果表格 */

.pwr-dq-table-wrap {
	overflow-x: auto;
	background: #ffffff;
	border: 1px solid #d0d7de;
	border-radius: 10px;
}

.pwr-dq-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.pwr-dq-table th,
.pwr-dq-table td {
	padding: 11px 14px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid #e6e9ec;
}

.pwr-dq-table thead th {
	background: #f6f8fa;
	font-weight: 600;
	color: #24292f;
	white-space: nowrap;
}

.pwr-dq-table tbody tr:last-child td {
	border-bottom: none;
}

.pwr-dq-table tbody tr:hover {
	background: #fafbfc;
}

.pwr-dq-sort {
	color: inherit;
	text-decoration: none;
}

.pwr-dq-sort:hover {
	color: #0969da;
}

.pwr-dq-sort__arrow {
	font-weight: 700;
}

.pwr-dq-th--active .pwr-dq-sort {
	color: #0b4a8f;
}

.pwr-dq-period {
	display: block;
	font-weight: 600;
}

.pwr-dq-range {
	display: block;
	font-size: 12.5px;
	color: #6e7781;
}

.pwr-dq-status {
	display: inline-block;
	padding: 2px 8px;
	font-size: 12.5px;
	border-radius: 10px;
	background: #eaf6ec;
	color: #1a7f37;
	border: 1px solid #a7d8b4;
}

.pwr-dq-view {
	padding: 0;
	min-height: 0;
	font-size: 14px;
}

/* ---------------------------------------------------------- 分页条 */

.pwr-dq-pager {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
	align-items: center;
	justify-content: space-between;
	margin-top: 14px;
}

.pwr-dq-pager__info {
	font-size: 13.5px;
	color: #57606a;
}

.pwr-dq-pager__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.pwr-dq-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	min-height: 34px;
	padding: 4px 10px;
	font-size: 14px;
	color: #24292f;
	text-decoration: none;
	background: #ffffff;
	border: 1px solid #d0d7de;
	border-radius: 6px;
}

.pwr-dq-page:hover {
	border-color: #0969da;
	color: #0969da;
}

.pwr-dq-page--current {
	background: #0b4a8f;
	border-color: #0b4a8f;
	color: #ffffff;
	font-weight: 600;
}

.pwr-dq-page--current:hover {
	color: #ffffff;
}

.pwr-dq-page--disabled {
	background: #f6f8fa;
	color: #9aa4ae;
	cursor: not-allowed;
}

.pwr-dq-page--gap {
	min-width: 24px;
	border-color: transparent;
	background: transparent;
	color: #6e7781;
}

/* 每页条数切换 */

.pwr-dq-pp-form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.pwr-dq-pp-form__label,
.pwr-dq-pp-form__unit {
	font-size: 13.5px;
	color: #57606a;
}

.pwr-dq-pp-form .pwr-control {
	width: auto;
	min-width: 78px;
	min-height: 34px;
	padding: 4px 8px;
	font-size: 14px;
}

.pwr-dq-pp-form__btn {
	min-height: 34px;
	padding: 6px 14px;
	font-size: 14px;
}

/* ---------------------------------------------------------- 详情页 */

.pwr-dq-detail__bar {
	margin-bottom: 14px;
}

.pwr-dq-detail__foot {
	margin-top: 18px;
}

.pwr-dq-detail__card {
	padding: 18px 20px 20px;
	background: #ffffff;
	border: 1px solid #d0d7de;
	border-radius: 10px;
	margin-bottom: 18px;
}

.pwr-dq-detail__title {
	margin: 0 0 14px;
	font-size: 19px;
	font-weight: 600;
	color: #0b4a8f;
}

.pwr-dq-detail__period {
	display: block;
	margin-top: 4px;
	font-size: 14px;
	font-weight: 400;
	color: #57606a;
}

.pwr-dq-meta {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px 18px;
	margin: 0;
}

.pwr-dq-meta__item {
	min-width: 0;
}

.pwr-dq-meta__item dt {
	margin: 0 0 3px;
	font-size: 12.5px;
	color: #6e7781;
}

.pwr-dq-meta__item dd {
	margin: 0;
	font-size: 14.5px;
	font-weight: 600;
	word-break: break-word;
}

.pwr-dq-fields {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px 18px;
}

.pwr-dq-field {
	min-width: 0;
	padding: 10px 12px;
	background: #fafbfc;
	border: 1px solid #e6e9ec;
	border-radius: 6px;
}

.pwr-dq-field--textarea {
	grid-column: 1 / -1;
}

.pwr-dq-field__label {
	margin-bottom: 4px;
	font-size: 12.5px;
	color: #6e7781;
}

.pwr-dq-field__value {
	font-size: 15px;
	font-weight: 600;
	color: #1f2328;
	word-break: break-word;
	white-space: pre-wrap;
}

/* 附件扩展点容器 */

.pwr-dq-attachments {
	margin-top: 8px;
	padding: 14px 18px;
	background: #ffffff;
	border: 1px dashed #d0d7de;
	border-radius: 10px;
}

.pwr-dq-attachments__empty {
	margin: 0;
	font-size: 13px;
	color: #6e7781;
}

/* ---------------------------------------------------------- 加载遮罩 */

.pwr-dq-loading {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 20;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 80px;
	background: rgba(255, 255, 255, 0.72);
}

.pwr-dq-loading[hidden] {
	display: none;
}

.pwr-dq-loading__box {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 600;
	color: #0b4a8f;
	background: #ffffff;
	border: 1px solid #d0d7de;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(31, 35, 40, 0.08);
}

.pwr-dq-loading__spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid #b6d7f8;
	border-top-color: #0b4a8f;
	border-radius: 50%;
	animation: pwr-dq-spin 0.8s linear infinite;
}

@keyframes pwr-dq-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ---------------------------------------------------------- 窄屏适配 */

@media screen and (max-width: 900px) {
	.pwr-dq-filters__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pwr-dq-meta {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pwr-dq-fields {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (max-width: 782px) {
	.pwr-dq-head {
		flex-direction: column;
	}

	.pwr-dq-filters__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.pwr-dq-pager {
		flex-direction: column;
		align-items: stretch;
	}

	.pwr-dq-pager__nav {
		justify-content: center;
	}

	.pwr-dq-pp-form {
		justify-content: flex-start;
	}

	/* 表格横向滚动，避免挤压变形 */
	.pwr-dq-table-wrap {
		-webkit-overflow-scrolling: touch;
	}

	.pwr-dq-table {
		min-width: 720px;
	}
}

@media screen and (max-width: 560px) {
	.pwr-dq-filters__grid {
		grid-template-columns: 1fr;
	}

	.pwr-dq-meta {
		grid-template-columns: 1fr;
	}

	.pwr-dq-fields {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------------- 移动端适配 */

@media screen and (max-width: 782px) {
	.pwr-wrap {
		font-size: 16px;
	}

	.pwr-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.pwr-fieldset {
		padding: 14px 14px 16px;
		margin-bottom: 16px;
	}

	.pwr-legend {
		font-size: 15px;
	}

	/* 移动端输入框至少 16px，避免 iOS Safari 自动放大页面 */
	.pwr-control {
		font-size: 16px;
		min-height: 46px;
	}

	.pwr-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.pwr-btn {
		width: 100%;
		padding: 13px 20px;
	}

	.pwr-summary__row dt {
		flex-basis: 100%;
	}

	.pwr-summary__row dd {
		flex-basis: 100%;
	}
}

@media screen and (max-width: 400px) {
	.pwr-wrap {
		font-size: 15px;
	}

	.pwr-fieldset {
		padding: 12px 10px 14px;
	}
}

/* ==================================================================
 * 片区周报专属配色（暖橙调，与网点周报的蓝色主题形成明显区分）
 * 通过 .pwr-wrap--district 修饰类作用，只影响片区周报表单与汇总视图。
 * ================================================================== */
.pwr-wrap--district .pwr-legend {
	color: #b5651d;
	border-left: 3px solid #b5651d;
	padding-left: 8px;
}

.pwr-wrap--district .pwr-fieldset {
	border-color: #e7c9a3;
}

.pwr-wrap--district .pwr-btn--primary {
	background: #b5651d;
	border-color: #b5651d;
}

.pwr-wrap--district .pwr-btn--primary:hover {
	background: #9c5516;
}

.pwr-wrap--district .pwr-field--derived .pwr-control--static {
	background: #fdf3e7;
	border-color: #f0d3ad;
	color: #8a4b0a;
}

.pwr-wrap--district .pwr-control--static {
	background: #fbf1e6;
	border-color: #ecd2b3;
}

/* CEO 查询视图（口令 prwk2026）仪表盘布局 */
.pwr-wrap--ceo .pwr-ceo-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.pwr-wrap--ceo .pwr-ceo-section {
	margin: 22px 0 10px;
	font-size: 16px;
	font-weight: 600;
	color: #b5651d;
	border-left: 3px solid #b5651d;
	padding-left: 8px;
}

.pwr-wrap--ceo .pwr-dq-table-wrap {
	margin-top: 6px;
}

/* ------------------------------------------------ CEO 查询视图 v2.6.2 组件补全 */
/*
 * CEO 视图既可通过 [puren_ceo_query] 独立渲染，也可内嵌于 [puren_district_query]，
 * 因此统一以 .pwr-ceo 为作用域，不再依赖外层 .pwr-wrap--ceo，保证两个入口表现一致。
 * 以下 .pwr-panel / .pwr-dl / .pwr-badge / .pwr-num 等通用类原先只定义在后台 CSS，
 * 前台未加载，导致 CEO 详情卡无样式，这里按前台配色补齐。
 */

.pwr-ceo .pwr-ceo-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.pwr-ceo .pwr-ceo-head__main {
	min-width: 0;
}

.pwr-ceo .pwr-ceo-section {
	margin: 22px 0 10px;
	font-size: 16px;
	font-weight: 600;
	color: #b5651d;
	border-left: 3px solid #b5651d;
	padding-left: 8px;
}

.pwr-ceo .pwr-dq-table-wrap {
	margin-top: 6px;
}

.pwr-ceo .pwr-panel {
	margin: 0 0 20px;
	padding: 16px 18px 18px;
	background: #ffffff;
	border: 1px solid #ecd2b3;
	border-radius: 10px;
}

.pwr-ceo .pwr-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.pwr-ceo .pwr-panel__head h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #b5651d;
}

.pwr-ceo .pwr-panel__head h4 {
	margin: 14px 0 4px;
	font-size: 14px;
	font-weight: 600;
	color: #8a4b0a;
}

.pwr-ceo .pwr-panel__note {
	margin: 0 0 14px;
	font-size: 13px;
	color: #6e7781;
}

.pwr-ceo .pwr-panel__body p {
	margin: 0 0 10px;
	white-space: pre-wrap;
	word-break: break-word;
}

.pwr-ceo .pwr-dl {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 6px 18px;
	margin: 0;
}

.pwr-ceo .pwr-dl dt {
	font-size: 13.5px;
	color: #6e7781;
}

.pwr-ceo .pwr-dl dd {
	margin: 0;
	font-size: 14px;
	color: #1f2328;
	word-break: break-word;
	white-space: pre-wrap;
}

.pwr-ceo .pwr-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	background: #fdf3e7;
	color: #8a4b0a;
}

.pwr-ceo .pwr-badge--good {
	background: #eaf6ec;
	color: #1a7f37;
}

.pwr-ceo .pwr-num {
	text-align: right;
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum";
}

.pwr-ceo .pwr-down {
	color: #cf222e;
	font-weight: 600;
}

.pwr-fin-mismatch[hidden] {
	display: none;
}
.pwr-fin-mismatch {
	margin-top: 0.5rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid #f0b8b8;
	border-left: 4px solid #cf222e;
	background: #fdf0ef;
	border-radius: 6px;
}
.pwr-fin-mismatch__text {
	color: #cf222e;
	font-weight: 700;
	margin: 0;
}
.pwr-fin-mismatch__dt {
	color: #cf222e;
	font-weight: 700;
}
.pwr-fin-diff {
	font-weight: 600;
}

.pwr-ceo .pwr-nowrap {
	white-space: nowrap;
}

.pwr-ceo .pwr-link {
	color: #b5651d;
	text-decoration: none;
}

.pwr-ceo .pwr-link:hover,
.pwr-ceo .pwr-link:focus {
	text-decoration: underline;
}

.pwr-ceo .pwr-hint {
	margin: 12px 0 0;
	font-size: 13px;
	color: #6e7781;
}

.pwr-ceo .pwr-hint-inline {
	font-size: 12.5px;
	color: #6e7781;
}

.pwr-ceo .pwr-ceo-detail-card {
	border-color: #b5651d;
}

/* 报表类型选择卡（首屏第一步） */

.pwr-ceo .pwr-ceo-types__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.pwr-ceo .pwr-ceo-type-card {
	display: block;
	padding: 18px 20px;
	background: #fffaf3;
	border: 1px solid #ecd2b3;
	border-radius: 10px;
	text-decoration: none;
	color: #1f2328;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.pwr-ceo .pwr-ceo-type-card:hover,
.pwr-ceo .pwr-ceo-type-card:focus {
	border-color: #b5651d;
	background: #fff5e8;
	text-decoration: none;
}

.pwr-ceo .pwr-ceo-type-card__title {
	display: block;
	margin-bottom: 6px;
	font-size: 17px;
	font-weight: 600;
	color: #b5651d;
}

.pwr-ceo .pwr-ceo-type-card__desc {
	display: block;
	font-size: 13.5px;
	line-height: 1.6;
	color: #6e7781;
}

@media (max-width: 680px) {
	.pwr-ceo .pwr-ceo-head {
		flex-direction: column;
	}

	.pwr-ceo .pwr-ceo-types__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.pwr-ceo .pwr-dl {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}

	.pwr-ceo .pwr-dl dd {
		margin-bottom: 8px;
	}
}
