/* 聊城市双碳平台 — 入口 / 登录 / 企业端共用样式 */
:root, html[data-theme="light"], html:not([data-theme]) {
  --portal-bg: linear-gradient(135deg, #0c4a6e 0%, #0369a1 35%, #0ea5e9 100%);
  --portal-card: rgba(255,255,255,0.96);
  --portal-card-border: rgba(255,255,255,0.65);
  --portal-shadow: 0 24px 64px rgba(8,47,73,0.28);
  --portal-text: #0f2744;
  --portal-muted: #64748b;
  --portal-accent: #0284c7;
  --portal-accent2: #059669;
  --portal-danger: #dc2626;
  --portal-warn: #d97706;
  --portal-ok: #16a34a;
  --shell-bg: #f0f7ff;
  --shell-panel: #ffffff;
  --shell-border: rgba(22,119,255,0.14);
  --shell-header: linear-gradient(90deg,#1890ff,#1677ff 55%,#0958d9);
}
html[data-theme="dark"] {
  --portal-bg: linear-gradient(135deg, #020810 0%, #0a2540 40%, #0c4a6e 100%);
  --portal-card: rgba(8,22,48,0.94);
  --portal-card-border: rgba(56,189,248,0.22);
  --portal-shadow: 0 24px 64px rgba(0,0,0,0.55);
  --portal-text: #e2e8f0;
  --portal-muted: #94a3b8;
  --portal-accent: #38bdf8;
  --portal-accent2: #34d399;
  --shell-bg: #020810;
  --shell-panel: rgba(8,22,48,0.96);
  --shell-border: rgba(56,189,248,0.18);
  --shell-header: linear-gradient(90deg,rgba(4,16,36,0.98),rgba(8,32,64,0.96));
  --enter-hover: rgba(56,189,248,0.28);
}
.theme-toggle {
  display:flex; align-items:center; gap:0;
  background:rgba(255,255,255,0.15); border:1px solid rgba(255,255,255,0.35);
  border-radius:6px; overflow:hidden;
}
.theme-toggle button {
  padding:5px 10px; border:none; background:transparent;
  color:rgba(255,255,255,0.85); font-size:12px; cursor:pointer;
}
.theme-toggle button.active {
  background:rgba(255,255,255,0.92); color:#0f2744; font-weight:600;
}
* { margin:0; padding:0; box-sizing:border-box; }
html, body {
  min-height:100%;
  font-family:"PingFang SC","Microsoft YaHei",Arial,sans-serif;
  color:var(--portal-text);
}
.portal-page {
  min-height:100vh;
  background:var(--portal-bg);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:40px 32px 48px;
  position:relative;
  overflow:hidden;
}
.portal-page::before {
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 18% 15%, rgba(56,189,248,0.22) 0%, transparent 42%),
    radial-gradient(circle at 82% 85%, rgba(52,211,153,0.16) 0%, transparent 38%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.06) 0%, transparent 55%);
  pointer-events:none;
}
.portal-page::after {
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size:64px 64px;
  mask-image:radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 75%);
  pointer-events:none;
}
.portal-brand {
  position:relative;
  z-index:1;
  text-align:center;
  margin-bottom:28px;
  color:#fff;
}
.portal-brand .logo-mark {
  width:96px; height:96px; margin:0 auto 20px;
  border-radius:22px;
  background:linear-gradient(135deg,#38bdf8,#34d399);
  display:flex; align-items:center; justify-content:center;
  font-size:46px;
  box-shadow:0 16px 48px rgba(0,0,0,0.28);
}
.portal-brand h1 {
  font-size:48px;
  font-weight:800;
  letter-spacing:6px;
  text-shadow:0 4px 24px rgba(0,0,0,0.28);
}
.portal-brand p {
  margin-top:14px;
  font-size:17px;
  opacity:0.92;
  letter-spacing:2px;
}
.portal-traditional {
  position:relative;
  z-index:1;
  width:var(--portal-content-width, min(1080px, calc(100vw - 48px)));
}
/* 与传统模式「统计条 + 双卡片」区域同宽同高 */
:root {
  --portal-content-width: min(1080px, calc(100vw - 48px));
  --portal-content-height: 520px;
}
.portal-stats {
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:16px;
  margin-bottom:28px;
}
.portal-stat {
  text-align:center;
  padding:18px 12px;
  border-radius:14px;
  background:rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.22);
  backdrop-filter:blur(8px);
  color:#fff;
}
.portal-stat-val {
  display:block;
  font-size:32px;
  font-weight:800;
  line-height:1.1;
  letter-spacing:1px;
}
.portal-stat-lbl {
  display:block;
  margin-top:6px;
  font-size:13px;
  opacity:0.88;
  letter-spacing:0.5px;
}
.portal-cards {
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:32px;
  width:100%;
}
.portal-card {
  background:var(--portal-card);
  border:1px solid var(--portal-card-border);
  border-radius:20px;
  padding:44px 40px 36px;
  min-height:320px;
  box-shadow:var(--portal-shadow);
  text-decoration:none;
  color:inherit;
  transition:transform 0.22s ease, box-shadow 0.22s ease;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.portal-card:hover {
  transform:translateY(-6px);
  box-shadow:0 32px 80px rgba(8,47,73,0.38);
}
.portal-card .icon {
  width:72px; height:72px; border-radius:18px;
  display:flex; align-items:center; justify-content:center;
  font-size:36px;
}
.portal-card.admin .icon { background:linear-gradient(135deg,#3b82f6,#1d4ed8); }
.portal-card.company .icon { background:linear-gradient(135deg,#10b981,#047857); }
.portal-card h2 { font-size:28px; font-weight:800; letter-spacing:1px; }
.portal-card p { font-size:16px; color:var(--portal-muted); line-height:1.75; flex:1; }
.portal-card-tags {
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:4px 0 0;
  padding:0;
}
.portal-card-tags li {
  padding:6px 12px;
  border-radius:20px;
  font-size:12px;
  font-weight:600;
  background:rgba(56,189,248,0.1);
  color:var(--portal-accent);
  border:1px solid rgba(56,189,248,0.2);
}
.portal-card.company .portal-card-tags li {
  background:rgba(16,185,129,0.1);
  color:#059669;
  border-color:rgba(16,185,129,0.25);
}
.portal-card .enter {
  margin-top:8px;
  font-size:16px;
  font-weight:700;
  color:var(--portal-accent);
  padding-top:12px;
  border-top:1px solid var(--shell-border);
}
.login-shell {
  position:relative;
  z-index:1;
  width:min(420px,100%);
  background:var(--portal-card);
  border:1px solid var(--portal-card-border);
  border-radius:16px;
  padding:36px 32px 32px;
  box-shadow:var(--portal-shadow);
}
.login-shell h1 { font-size:22px; font-weight:700; margin-bottom:6px; }
.login-shell .sub { font-size:13px; color:var(--portal-muted); margin-bottom:24px; }
.login-back {
  display:inline-flex; align-items:center; gap:6px;
  font-size:13px; color:var(--portal-muted);
  text-decoration:none; margin-bottom:20px;
}
.login-back:hover { color:var(--portal-accent); }
.form-group { margin-bottom:16px; }
.form-group label {
  display:block; font-size:13px; font-weight:600;
  margin-bottom:6px; color:var(--portal-muted);
}
.form-group input {
  width:100%; padding:11px 14px; border-radius:8px;
  border:1px solid var(--shell-border);
  background:var(--shell-bg);
  color:var(--portal-text);
  font-size:15px; outline:none;
}
.form-group input:focus {
  border-color:var(--portal-accent);
  box-shadow:0 0 0 3px rgba(56,189,248,0.18);
}
.btn-primary {
  width:100%; padding:12px; border:none; border-radius:8px;
  background:linear-gradient(90deg,#0284c7,#0369a1);
  color:#fff; font-size:15px; font-weight:700;
  cursor:pointer; margin-top:8px;
}
.btn-primary:hover { filter:brightness(1.06); }
.login-error {
  display:none;
  margin-top:12px; padding:10px 12px; border-radius:8px;
  background:rgba(220,38,38,0.1);
  color:var(--portal-danger);
  font-size:13px;
}
.login-hint {
  margin-top:16px; font-size:12px; color:var(--portal-muted);
  text-align:center; line-height:1.6;
}
@media (max-width:680px) {
  .portal-traditional { width: calc(100vw - 24px); }
  .portal-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .portal-stat { padding: 14px 10px; }
  .portal-stat-val { font-size: 26px; }
  .portal-cards { grid-template-columns: 1fr; gap: 20px; }
  .portal-brand h1 { font-size: 32px; letter-spacing: 3px; }
  .portal-brand .logo-mark { width: 72px; height: 72px; font-size: 34px; }
  .portal-card { min-height: 0; padding: 32px 24px; }
  .portal-card h2 { font-size: 24px; }
}

/* 企业端布局 — 侧栏 + 顶栏固定，仅主内容区滚动 */
html:has(.ent-app), html:has(.ent-app) body {
  height:100%; overflow:hidden;
}
.ent-app {
  display:flex;
  height:100vh;
  overflow:hidden;
  background:var(--shell-bg);
}
.ent-sidebar {
  width:240px; flex-shrink:0;
  height:100vh;
  background:var(--shell-panel);
  border-right:1px solid var(--shell-border);
  display:flex; flex-direction:column;
  overflow:hidden;
}
.ent-sidebar-head {
  padding:20px 16px;
  border-bottom:1px solid var(--shell-border);
}
.ent-sidebar-head h1 { font-size:15px; font-weight:700; line-height:1.45; }
.ent-sidebar-head small { display:block; font-size:12px; color:var(--portal-muted); margin-top:4px; }
.ent-nav { flex:1; padding:10px 8px; overflow-y:auto; }
.ent-nav a {
  display:flex; align-items:center; gap:10px;
  padding:11px 12px; border-radius:8px;
  text-decoration:none; color:var(--portal-text);
  font-size:14px; margin-bottom:4px;
}
.ent-nav a:hover { background:rgba(56,189,248,0.08); }
.ent-nav a.active {
  background:rgba(56,189,248,0.14);
  color:var(--portal-accent);
  font-weight:600;
}
.ent-sidebar-foot {
  padding:12px;
  border-top:1px solid var(--shell-border);
}
.ent-main {
  flex:1; display:flex; flex-direction:column;
  min-width:0; height:100vh; overflow:hidden;
}
.ent-header {
  height:56px; flex-shrink:0;
  background:var(--shell-header);
  color:#fff;
  display:flex; align-items:center;
  justify-content:space-between;
  padding:0 20px;
  gap:12px;
  box-shadow:0 2px 12px rgba(0,0,0,0.18);
  z-index:300;
}
.ent-subheader {
  flex-shrink:0;
  display:none;
  padding:10px 20px;
  background:var(--shell-bg);
  border-bottom:1px solid var(--shell-border);
  z-index:290;
}
.ent-subheader.visible { display:block; }
.ent-header h2 { font-size:17px; font-weight:700; }
.ent-header-actions { display:flex; align-items:center; gap:10px; font-size:13px; }
.ent-header-actions button:not(.carbon-spirit-btn),
.ent-header-actions a:not(.carbon-spirit-btn) {
  padding:6px 12px; border-radius:6px;
  border:1px solid rgba(255,255,255,0.35);
  background:rgba(255,255,255,0.12);
  color:#fff; text-decoration:none; cursor:pointer; font-size:13px;
}
.ent-header-actions .theme-toggle button {
  padding:6px 14px; border-radius:16px; border:none;
  background:transparent; color:rgba(255,255,255,0.75);
}
.ent-header-actions .theme-toggle button.active {
  background:rgba(255,255,255,0.95); color:#0f2744; font-weight:600;
}
html[data-theme="dark"] .ent-header-actions .theme-toggle {
  background:rgba(56,189,248,0.12); border-color:rgba(56,189,248,0.35);
}
html[data-theme="dark"] .ent-header-actions .theme-toggle button.active {
  background:rgba(56,189,248,0.9); color:#041018;
}
#entPeriodLabel { font-weight:600; color:rgba(255,255,255,0.95); white-space:nowrap; }
.ent-body { flex:1; min-height:0; overflow-y:auto; padding:20px; }
.ent-panel {
  background:var(--shell-panel);
  border:1px solid var(--shell-border);
  border-radius:12px;
  padding:18px 20px;
  margin-bottom:16px;
  box-shadow:0 2px 12px rgba(22,119,255,0.06);
}
.ent-panel-title {
  font-size:16px; font-weight:700;
  margin-bottom:12px;
  padding-left:10px;
  border-left:3px solid var(--portal-accent);
}
.stat-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-bottom:16px;
}
.stat-card {
  background:var(--shell-panel);
  border:1px solid var(--shell-border);
  border-radius:10px;
  padding:16px;
}
.stat-card .lbl { font-size:12px; color:var(--portal-muted); margin-bottom:6px; }
.stat-card .val { font-size:22px; font-weight:700; }
.stat-card .sub { font-size:12px; color:var(--portal-muted); margin-top:4px; }
.deadline-banner {
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:14px 18px; border-radius:10px;
  background:linear-gradient(90deg,rgba(250,140,22,0.12),rgba(250,219,20,0.08));
  border:1px solid rgba(250,140,22,0.35);
  margin-bottom:16px;
}
.deadline-banner strong { color:var(--portal-warn); }
.status-tag {
  display:inline-block; padding:2px 8px; border-radius:4px;
  font-size:12px; font-weight:600;
}
.status-tag.draft { background:#f1f5f9; color:#64748b; }
.status-tag.pending { background:#fff7e6; color:#d46b08; }
.status-tag.review { background:#e6f4ff; color:#1677ff; }
.status-tag.pass { background:#f6ffed; color:#389e0d; }
.status-tag.reject { background:#fff2f0; color:#cf1322; }
.task-list { display:flex; flex-direction:column; gap:10px; }
.task-item {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:14px 16px; border-radius:8px;
  border:1px solid var(--shell-border);
  background:var(--shell-bg);
}
.task-item h3 { font-size:14px; font-weight:600; margin-bottom:4px; }
.task-item p { font-size:12px; color:var(--portal-muted); }
.meta-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px 20px;
  margin-bottom:16px;
}
.meta-grid .field label {
  display:block; font-size:12px; color:var(--portal-muted); margin-bottom:4px;
}
.meta-grid .field input, .meta-grid .field select {
  width:100%; padding:8px 10px; border-radius:6px;
  border:1px solid var(--shell-border);
  background:var(--shell-bg); color:var(--portal-text); font-size:14px;
}
.report-toolbar {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:12px; margin-bottom:12px;
}
.report-toolbar .left { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.report-toolbar select, .report-toolbar input {
  padding:7px 10px; border-radius:6px;
  border:1px solid var(--shell-border);
  background:var(--shell-bg); color:var(--portal-text); font-size:13px;
}
.btn {
  padding:8px 14px; border-radius:6px; border:1px solid var(--shell-border);
  background:var(--shell-panel); color:var(--portal-text);
  font-size:13px; font-weight:600; cursor:pointer;
}
.btn-primary-sm {
  background:linear-gradient(90deg,#0284c7,#0369a1);
  border:none; color:#fff;
}
.btn-success { background:#16a34a; border:none; color:#fff; }
.btn-ghost { background:transparent; }
.table-wrap {
  overflow:auto;
  border:1px solid var(--shell-border);
  border-radius:8px;
  max-height:calc(100vh - 280px);
}
.report-table {
  width:100%; border-collapse:collapse;
  font-size:12px; min-width:1200px;
}
.report-table th, .report-table td {
  border:1px solid var(--shell-border);
  padding:6px 8px;
  text-align:center;
  white-space:nowrap;
}
.report-table th {
  background:rgba(56,189,248,0.1);
  font-weight:600;
  position:sticky; top:0; z-index:2;
}
.report-table td.name { text-align:left; font-weight:500; min-width:120px; position:sticky; left:0; background:var(--shell-panel); z-index:1; }
.report-table th.name { position:sticky; left:0; z-index:3; }
.report-table td.unit { color:var(--portal-muted); }
.report-table input {
  width:72px; padding:4px 6px; border:1px solid transparent;
  border-radius:4px; text-align:right;
  background:transparent; color:var(--portal-text); font-size:12px;
}
.report-table input:focus {
  border-color:var(--portal-accent);
  background:var(--shell-bg);
  outline:none;
}
.report-table input[readonly] { color:var(--portal-muted); background:rgba(148,163,184,0.08); }
.report-table tr.total td { font-weight:700; background:rgba(56,189,248,0.06); }
.validation-box {
  margin-top:12px; padding:12px 14px; border-radius:8px;
  font-size:13px; line-height:1.6;
}
.validation-box.ok { background:rgba(22,163,74,0.1); border:1px solid rgba(22,163,74,0.3); color:#15803d; }
.validation-box.warn { background:rgba(217,119,6,0.1); border:1px solid rgba(217,119,6,0.3); color:#b45309; }
.validation-box.err { background:rgba(220,38,38,0.1); border:1px solid rgba(220,38,38,0.3); color:#b91c1c; }
.spec-list { font-size:14px; line-height:1.75; color:var(--portal-text); }
.spec-list li { margin-bottom:8px; }

.panel-title-row {
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
}
.report-spec-link {
  border:none; background:none; padding:0; font-size:13px; font-weight:500;
  color:var(--portal-accent); cursor:pointer; text-decoration:underline;
  text-underline-offset:3px;
}
.report-spec-link:hover { opacity:0.85; }
.report-spec-modal {
  position:fixed; inset:0; z-index:1000; background:rgba(15,23,42,0.55);
  display:flex; align-items:center; justify-content:center; padding:20px;
}
.report-spec-panel {
  width:min(560px, 100%); max-height:85vh; background:var(--shell-panel);
  border-radius:12px; overflow:hidden; display:flex; flex-direction:column;
  box-shadow:0 20px 60px rgba(0,0,0,0.25);
}
.report-spec-head {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:16px 20px; border-bottom:1px solid var(--shell-border);
}
.report-spec-head h3 { margin:0; font-size:16px; font-weight:600; }
.report-spec-close {
  border:none; background:transparent; font-size:24px; line-height:1;
  cursor:pointer; color:var(--portal-muted); padding:0 4px;
}
.report-spec-body { flex:1; overflow:auto; padding:16px 20px 20px; }
.ledger-list { display:flex; flex-direction:column; gap:8px; }
.ledger-row {
  display:grid; grid-template-columns:100px 1fr 120px 100px;
  gap:12px; align-items:center;
  padding:12px 14px; border-radius:8px;
  border:1px solid var(--shell-border);
  font-size:13px;
}
@media (max-width:1100px) {
  .stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .meta-grid { grid-template-columns:1fr 1fr; }
  .ent-sidebar { width:200px; }
}
@media (max-width:860px) {
  html:has(.ent-app), html:has(.ent-app) body { height:auto; overflow:auto; }
  .ent-app { flex-direction:column; height:auto; min-height:100vh; overflow:visible; }
  .ent-sidebar { width:100%; height:auto; min-height:0; border-right:none; border-bottom:1px solid var(--shell-border); }
  .ent-main { height:auto; min-height:0; overflow:visible; }
  .ent-body { overflow:visible; }
  .ent-nav { display:flex; flex-wrap:wrap; gap:4px; }
}

/* ===== 管理端布局 ===== */
.admin-app { display:flex; min-height:100vh; background:var(--shell-bg); }
.admin-sidebar {
  width:220px; flex-shrink:0; background:var(--shell-panel);
  border-right:1px solid var(--shell-border); display:flex; flex-direction:column;
}
.admin-brand {
  padding:18px 14px; border-bottom:1px solid var(--shell-border);
  display:flex; align-items:center; gap:10px;
}
.admin-brand .mark {
  width:40px; height:40px; border-radius:10px;
  background:linear-gradient(135deg,#38bdf8,#34d399);
  display:flex; align-items:center; justify-content:center; font-size:20px;
}
.admin-brand strong { display:block; font-size:15px; }
.admin-brand small { font-size:11px; color:var(--portal-muted); }
.admin-nav { flex:1; padding:10px 8px; }
.admin-nav-item {
  display:flex; align-items:center; gap:8px; padding:10px 12px;
  border-radius:8px; text-decoration:none; color:var(--portal-text);
  font-size:13px; margin-bottom:4px;
}
.admin-nav-item:hover { background:rgba(56,189,248,0.08); }
.admin-nav-item.active { background:rgba(56,189,248,0.14); color:var(--portal-accent); font-weight:600; }
.admin-foot { padding:12px; border-top:1px solid var(--shell-border); font-size:12px; }
.admin-foot a { color:var(--portal-muted); text-decoration:none; }
.admin-main { flex:1; display:flex; flex-direction:column; min-width:0; min-height:100vh; overflow-y:auto; }
.admin-topbar {
  height:52px; background:var(--shell-header); color:#fff;
  position:sticky; top:0; z-index:300;
  display:flex; align-items:center; justify-content:space-between; padding:0 20px;
  box-shadow:0 2px 12px rgba(0,0,0,0.18);
}
.admin-topbar h1 { font-size:17px; font-weight:700; }
.admin-content { flex:1; overflow:visible; padding:20px; }
.admin-toolbar { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-bottom:16px; }
.admin-toolbar select, .admin-toolbar input {
  padding:7px 10px; border-radius:6px; border:1px solid var(--shell-border);
  background:var(--shell-bg); color:var(--portal-text); font-size:13px;
}
.admin-table { width:100%; border-collapse:collapse; font-size:13px; }
.admin-table th, .admin-table td {
  border:1px solid var(--shell-border); padding:8px 10px; text-align:left;
}
.admin-table th { background:rgba(56,189,248,0.1); font-weight:600; }
.admin-table tr:hover td { background:rgba(56,189,248,0.04); }
.admin-kpi-row { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:16px; }
.admin-kpi { background:var(--shell-panel); border:1px solid var(--shell-border); border-radius:10px; padding:14px; }
.admin-kpi .lbl { font-size:12px; color:var(--portal-muted); }
.admin-kpi .val { font-size:24px; font-weight:700; margin-top:4px; }

/* ===== 月度卡片 ===== */
.month-grid {
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px;
}
.month-card {
  background:var(--shell-panel); border:1px solid var(--shell-border);
  border-radius:12px; padding:16px; cursor:pointer;
  transition:transform 0.15s, box-shadow 0.15s;
}
.month-card:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(22,119,255,0.12); }
.month-card .mc-head { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:10px; }
.month-card .mc-month { font-size:18px; font-weight:700; }
.month-card .mc-sub { font-size:12px; color:var(--portal-muted); margin-top:4px; }
.month-card .mc-coal { font-size:13px; margin-top:8px; color:var(--portal-muted); }
.st-not-started { background:#f1f5f9; color:#64748b; }
.st-filling { background:#e0f2fe; color:#0369a1; }
.st-filled { background:#fef3c7; color:#b45309; }
.st-reviewing { background:#dbeafe; color:#1d4ed8; }
.st-approved { background:#dcfce7; color:#15803d; }
.st-rejected { background:#fee2e2; color:#b91c1c; }
.audit-flow { display:flex; gap:0; margin:16px 0; }
.audit-step {
  flex:1; text-align:center; padding:12px 8px; position:relative;
  border-top:3px solid var(--shell-border); font-size:12px;
}
.audit-step.done { border-color:var(--portal-ok); color:var(--portal-ok); }
.audit-step.current { border-color:var(--portal-accent); color:var(--portal-accent); font-weight:600; }
.audit-step.rejected { border-color:var(--portal-danger); color:var(--portal-danger); }
.audit-step .time { display:block; font-size:11px; color:var(--portal-muted); margin-top:4px; }
.anomaly-item { padding:8px 10px; border-radius:6px; margin-bottom:6px; font-size:13px; }
.anomaly-item.error { background:rgba(220,38,38,0.08); border-left:3px solid var(--portal-danger); }
.anomaly-item.warn { background:rgba(217,119,6,0.08); border-left:3px solid var(--portal-warn); }
@media (max-width:1000px) { .month-grid { grid-template-columns:repeat(3,1fr); } .admin-kpi-row { grid-template-columns:1fr 1fr; } }
@media (max-width:680px) { .month-grid { grid-template-columns:1fr 1fr; } }

/* ===== 企业工作台图表 ===== */
.dash-chart-row {
  display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px;
}
.dash-chart-panel .ent-panel-title { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:6px; }
.dash-chart-panel .panel-sub { font-size:12px; font-weight:400; color:var(--portal-muted); }
.dash-chart { height:280px; width:100%; }
.dash-month-grid { margin-top:8px; }
.dash-month-card .mc-warn { color:var(--portal-danger); }
.chart-empty {
  height:280px; display:flex; align-items:center; justify-content:center;
  color:var(--portal-muted); font-size:13px;
}

/* ===== 智能报告横幅与文档 ===== */
.smart-report-banner {
  display:flex; align-items:center; gap:16px; padding:16px 18px; margin-bottom:14px;
  background:linear-gradient(135deg, rgba(22,119,255,0.08) 0%, rgba(52,211,153,0.08) 100%);
  border:1px solid rgba(22,119,255,0.2); border-radius:12px;
}
.smart-report-banner.empty { opacity:0.85; }
.smart-report-banner .srb-icon { font-size:32px; flex-shrink:0; }
.smart-report-banner .srb-body { flex:1; min-width:0; }
.smart-report-banner h3 { font-size:15px; font-weight:700; margin-bottom:4px; }
.smart-report-banner p { font-size:13px; color:var(--portal-muted); line-height:1.5; }
.report-meta { font-size:12px; color:var(--portal-muted); }
.report-doc {
  background:var(--shell-panel); border:1px solid var(--shell-border);
  border-radius:12px; padding:24px; max-width:900px;
}
.report-cover { text-align:center; margin-bottom:24px; padding-bottom:20px; border-bottom:1px solid var(--shell-border); }
.report-cover h1 { font-size:22px; font-weight:700; }
.report-sub { font-size:13px; color:var(--portal-muted); margin-top:8px; }
.report-score-card {
  display:flex; align-items:center; gap:20px; padding:18px; margin-bottom:24px;
  border:2px solid; border-radius:12px; background:rgba(56,189,248,0.04);
}
.rsc-score { font-size:48px; font-weight:800; line-height:1; }
.rsc-score small { font-size:16px; font-weight:600; margin-left:2px; }
.rsc-body p { font-size:13px; color:var(--portal-muted); margin-top:4px; }
.report-section { margin-bottom:28px; }
.report-section h3 { font-size:15px; font-weight:700; margin-bottom:12px; padding-left:10px; border-left:3px solid var(--portal-accent); }
.report-kpi-row { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.report-kpi { background:var(--shell-bg); border:1px solid var(--shell-border); border-radius:8px; padding:12px; }
.report-kpi .rk-lbl { font-size:12px; color:var(--portal-muted); }
.report-kpi .rk-val { font-size:18px; font-weight:700; margin-top:4px; }
.report-kpi .rk-sub { font-size:11px; color:var(--portal-muted); margin-top:2px; }
.report-chart { height:260px; margin-bottom:12px; }
.report-mini-table { width:100%; border-collapse:collapse; font-size:13px; }
.report-mini-table th, .report-mini-table td { border:1px solid var(--shell-border); padding:8px 10px; text-align:left; }
.report-mini-table th { background:rgba(56,189,248,0.08); }
.report-mini-table tr.total td { font-weight:700; background:rgba(56,189,248,0.04); }
.efficiency-matrix { display:grid; grid-template-columns:1fr 1fr; gap:10px; max-width:480px; }
.eff-cell {
  padding:14px; border-radius:8px; border:1px solid var(--shell-border);
  text-align:center; font-size:13px; color:var(--portal-muted); position:relative;
}
.eff-cell.active { border-color:var(--portal-accent); background:rgba(22,119,255,0.08); color:var(--portal-accent); font-weight:700; }
.eff-cell.active span {
  display:block; font-size:11px; font-weight:600; margin-top:4px; color:var(--portal-accent);
}
.report-note { font-size:13px; color:var(--portal-muted); margin-top:12px; line-height:1.6; }
.report-suggestions { padding-left:20px; font-size:13px; line-height:1.8; }
.report-suggestions li { margin-bottom:6px; }
.report-empty { text-align:center; padding:40px 20px; }
.report-empty p { color:var(--portal-muted); margin-bottom:16px; }

@media (max-width:1000px) {
  .dash-chart-row { grid-template-columns:1fr; }
  .report-kpi-row { grid-template-columns:1fr 1fr; }
}

/* ===== 月度报送填报 ===== */
.report-back-bar { margin-bottom:12px; }
.report-meta-bar { margin-bottom:12px; }
.panel-head-row {
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:16px; flex-wrap:wrap; margin-bottom:14px;
  padding-bottom:12px; border-bottom:1px solid var(--shell-border);
}
.panel-head-left { flex:1; min-width:200px; }
.panel-head-actions {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end;
  gap:8px; flex-shrink:0; max-width:100%;
}
.panel-title-inline { margin-bottom:4px !important; border-left:none !important; padding-left:0 !important; }
.report-form-panel .ent-panel-title:not(.panel-title-inline) { margin-top:20px; }
.report-subsection { margin-top:8px; padding-top:4px; border-top:1px dashed var(--shell-border); }

/* 统计局数据同步 */
.stats-sync-panel {
  display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap;
  margin-top:16px; padding:14px 16px; border-radius:10px;
  background:linear-gradient(135deg, rgba(22,119,255,0.06), rgba(56,189,248,0.04));
  border:1px solid rgba(22,119,255,0.2);
}
.stats-sync-title { font-size:14px; font-weight:600; margin-bottom:6px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.stats-sync-badge {
  font-size:11px; font-weight:500; padding:2px 8px; border-radius:4px;
  background:rgba(245,158,11,0.15); color:#d97706;
}
.stats-sync-hint { font-size:12px; color:var(--portal-muted); line-height:1.6; margin:0 0 10px; }
.stats-sync-hint strong { color:var(--portal-text); font-weight:600; }
.stats-sync-status { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:12px; }
.stats-sync-tag { padding:2px 8px; border-radius:4px; font-weight:600; font-size:11px; }
.stats-sync-tag.pending { background:rgba(148,163,184,0.2); color:#64748b; }
.stats-sync-tag.ok { background:rgba(34,197,94,0.15); color:#16a34a; }
.stats-sync-tag.syncing { background:rgba(56,189,248,0.15); color:#0284c7; }
.stats-sync-meta { color:var(--portal-muted); font-size:11px; }
.stats-sync-msg { margin-top:6px; font-size:11px; color:var(--portal-muted); }
.stats-sync-actions { text-align:right; flex-shrink:0; }
.stats-sync-tip { font-size:11px; color:var(--portal-muted); margin:6px 0 0; }
.stats-sync-btn { white-space:nowrap; }
.table-hint { font-size:12px; color:var(--portal-muted); margin:0 0 8px; }
.btn-dropdown { position:relative; display:inline-block; }
.btn-dropdown-menu {
  display:none; position:absolute; top:100%; left:0; margin-top:4px; min-width:200px;
  background:var(--shell-panel); border:1px solid var(--shell-border); border-radius:8px;
  box-shadow:0 8px 24px rgba(0,0,0,0.12); z-index:20; overflow:hidden;
}
.panel-head-actions .btn-dropdown-menu { right:0; left:auto; }
.btn-dropdown-menu button {
  display:block; width:100%; text-align:left; padding:10px 14px; border:none;
  background:transparent; font-size:13px; cursor:pointer; color:var(--portal-text);
}
.btn-dropdown-menu button:hover { background:rgba(56,189,248,0.1); }
.attach-cell { min-width:140px; font-size:12px; }
.attach-upload { display:flex; flex-direction:column; gap:4px; align-items:flex-start; }
.attach-name {
  max-width:120px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  color:var(--portal-muted); font-size:11px;
}
.attach-view { cursor:pointer; color:var(--portal-accent); }
.btn-ghost-sm {
  padding:3px 8px; font-size:11px; border-radius:4px; border:1px solid var(--shell-border);
  background:transparent; cursor:pointer; color:var(--portal-text);
}
.btn-ghost-sm.attach-btn { position:relative; overflow:hidden; }
.btn-link { border:none; background:none; cursor:pointer; font-size:12px; color:var(--portal-accent); padding:0; }
.btn-link.danger { color:var(--portal-danger); }
.col-act { width:52px; text-align:center; }
.empty-row { text-align:center; color:var(--portal-muted); padding:20px !important; }
.add-row-bar {
  display:flex; align-items:center; gap:10px; margin-top:12px; padding-top:12px;
  border-top:1px dashed var(--shell-border); font-size:13px;
}
.add-row-bar .muted { color:var(--portal-muted); }
.add-row-select {
  padding:6px 10px; border-radius:6px; border:1px solid var(--shell-border);
  background:var(--shell-bg); font-size:13px; min-width:160px;
}

/* ===== 报送明细 ===== */
.report-detail-page { min-height:0; }
.report-detail-panel { padding:0; overflow:hidden; }
.report-detail-head {
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:16px; flex-wrap:wrap; padding:18px 20px 12px;
  border-bottom:1px solid var(--shell-border);
}
.report-detail-title { margin:0 0 4px; font-size:16px; font-weight:600; }
.report-detail-sub { margin:0; font-size:12px; color:var(--portal-muted); }
.report-detail-filter { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.report-detail-filter label { display:flex; align-items:center; gap:6px; font-size:13px; color:var(--portal-muted); }
.report-detail-filter select {
  padding:6px 10px; border-radius:6px; border:1px solid var(--shell-border);
  background:var(--shell-bg); font-size:13px; color:var(--portal-text);
}
.report-detail-tabs {
  display:flex; gap:0; padding:0 20px; border-bottom:1px solid var(--shell-border);
  background:rgba(148,163,184,0.04);
}
.rd-tab {
  position:relative; padding:12px 18px; border:none; background:transparent;
  font-size:14px; font-weight:500; color:var(--portal-muted); cursor:pointer;
  border-bottom:2px solid transparent; margin-bottom:-1px;
}
.rd-tab:hover { color:var(--portal-text); }
.rd-tab.active { color:var(--portal-accent); border-bottom-color:var(--portal-accent); }
.rd-count {
  display:inline-block; min-width:18px; padding:0 6px; margin-left:4px;
  border-radius:10px; font-size:11px; font-weight:600;
  background:rgba(148,163,184,0.15); color:var(--portal-muted);
}
.rd-tab.active .rd-count { background:rgba(22,119,255,0.12); color:var(--portal-accent); }
.report-detail-table-wrap { max-height:calc(100vh - 280px); overflow:auto; }
.report-detail-table td.muted { color:var(--portal-muted); font-size:12px; white-space:nowrap; }
.report-detail-table .rd-row { cursor:pointer; }
.report-detail-table .rd-row:hover td { background:rgba(56,189,248,0.06); }
.report-detail-empty { text-align:center; padding:48px 20px; color:var(--portal-muted); }
.report-detail-empty p { margin:0 0 8px; }
.report-detail-empty .muted { font-size:12px; }

/* ===== 存证台账 ===== */
.evidence-ledger {
  display:grid; grid-template-columns:280px 1fr; gap:0;
  min-height:calc(100vh - 120px); border:1px solid var(--shell-border);
  border-radius:10px; overflow:hidden; background:var(--shell-panel);
}
.evidence-sidebar { border-right:1px solid var(--shell-border); display:flex; flex-direction:column; min-height:0; }
.evidence-filter { padding:16px; border-bottom:1px solid var(--shell-border); }
.evidence-filter-title { font-size:12px; font-weight:600; color:var(--portal-muted); margin-bottom:10px; }
.evidence-filter label { display:block; font-size:12px; color:var(--portal-muted); margin-bottom:8px; }
.evidence-filter select {
  display:block; width:100%; margin-top:4px; padding:6px 8px; border-radius:6px;
  border:1px solid var(--shell-border); background:var(--shell-bg); font-size:13px;
}
.evidence-catalog { flex:1; overflow:auto; padding:8px 0; }
.catalog-group { margin-bottom:8px; }
.catalog-group-title {
  padding:8px 16px 6px; font-size:11px; font-weight:700; letter-spacing:0.04em;
  color:var(--portal-muted); text-transform:none;
}
.catalog-item {
  display:flex; align-items:center; justify-content:space-between; width:100%;
  padding:10px 16px; border:none; background:transparent; text-align:left;
  font-size:13px; cursor:pointer; color:var(--portal-text);
}
.catalog-item:hover { background:rgba(56,189,248,0.06); }
.catalog-item.active { background:rgba(22,119,255,0.1); color:var(--portal-accent); font-weight:600; }
.ci-count {
  font-size:11px; padding:1px 7px; border-radius:10px;
  background:rgba(148,163,184,0.15); color:var(--portal-muted);
}
.catalog-item.active .ci-count { background:rgba(22,119,255,0.15); color:var(--portal-accent); }
.catalog-empty { padding:8px 16px; font-size:12px; color:var(--portal-muted); }
.evidence-main { display:flex; flex-direction:column; min-height:0; min-width:0; }
.evidence-main-head {
  display:flex; align-items:flex-start; justify-content:space-between; gap:12px;
  padding:16px 20px; border-bottom:1px solid var(--shell-border);
}
.evidence-main-head h3 { margin:0 0 4px; font-size:16px; }
.evidence-sub { margin:0; font-size:12px; color:var(--portal-muted); }
.evidence-actions { display:flex; align-items:center; gap:12px; flex-shrink:0; }
.ev-check-all { font-size:13px; display:flex; align-items:center; gap:6px; cursor:pointer; }
.evidence-file-list { flex:1; overflow:auto; padding:8px 12px; }
.evidence-file-row {
  display:flex; align-items:center; gap:12px; padding:12px; margin-bottom:8px;
  border:1px solid var(--shell-border); border-radius:8px; background:var(--shell-bg);
}
.ef-icon { font-size:22px; flex-shrink:0; }
.ef-body { flex:1; min-width:0; }
.ef-name {
  display:block; border:none; background:none; padding:0; font-size:14px; font-weight:500;
  color:var(--portal-accent); cursor:pointer; text-align:left; max-width:100%;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.ef-meta { display:flex; flex-wrap:wrap; gap:8px 16px; margin-top:4px; font-size:12px; color:var(--portal-muted); }
.ef-actions { display:flex; gap:6px; flex-shrink:0; }
.evidence-empty-panel { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; color:var(--portal-muted); padding:40px; }
.evidence-preview-modal {
  position:fixed; inset:0; z-index:1000; background:rgba(15,23,42,0.55);
  display:flex; align-items:center; justify-content:center; padding:20px;
}
.evidence-preview-panel {
  width:min(960px, 100%); max-height:90vh; background:var(--shell-panel);
  border-radius:12px; overflow:hidden; display:flex; flex-direction:column;
  box-shadow:0 20px 60px rgba(0,0,0,0.25);
}
.evidence-preview-head {
  display:flex; align-items:flex-start; justify-content:space-between; gap:12px;
  padding:14px 18px; border-bottom:1px solid var(--shell-border);
}
.evidence-preview-meta { font-size:13px; line-height:1.6; }
.evidence-preview-close {
  border:none; background:transparent; font-size:24px; line-height:1;
  cursor:pointer; color:var(--portal-muted); padding:0 4px;
}
.evidence-preview-body { flex:1; min-height:320px; overflow:auto; background:#1e293b; }
.evidence-preview-body iframe { width:100%; height:min(70vh, 640px); border:none; background:#fff; }
.evidence-preview-body img { display:block; max-width:100%; max-height:70vh; margin:0 auto; }

@media (max-width:900px) {
  .evidence-ledger { grid-template-columns:1fr; }
  .report-detail-head { flex-direction:column; }
}

/* 用电量 · 国网比对 */
.elec-usage-panel {
  margin-top:16px; padding-top:16px; border-top:1px dashed var(--shell-border);
}
.elec-usage-head { margin-bottom:10px; }
.elec-inline-row {
  display:flex; flex-wrap:wrap; align-items:center; gap:10px 12px;
  padding:12px 14px; background:var(--shell-bg, #f8fafc); border:1px solid var(--shell-border); border-radius:8px;
}
.elec-inline-label { font-size:13px; color:var(--portal-text); white-space:nowrap; flex-shrink:0; }
.elec-inline-input {
  flex:1; min-width:140px; max-width:280px; padding:8px 10px;
  border:1px solid var(--shell-border); border-radius:6px; font-size:13px;
}
.elec-unit { font-size:13px; color:var(--portal-muted); white-space:nowrap; }
.elec-compare-btn { margin-left:auto; flex-shrink:0; }
.elec-status-line { font-size:12px; color:var(--portal-muted); margin-top:8px; }
.elec-adopted-banner {
  margin-top:12px; padding:10px 14px; border-radius:8px; font-size:13px;
  background:rgba(82,196,26,0.1); border:1px solid rgba(82,196,26,0.25); color:var(--portal-text);
}
.elec-compare-box {
  margin-top:12px; padding:14px; border:1px solid var(--shell-border); border-radius:10px; background:var(--shell-bg, #f8fafc);
}
.elec-compare-title { font-size:12px; color:var(--portal-muted); margin-bottom:12px; }
.elec-compare-grid { display:grid; grid-template-columns:1fr auto 1fr; gap:12px; align-items:stretch; }
.elec-compare-card {
  padding:14px; border:2px solid var(--shell-border); border-radius:10px; text-align:center; background:var(--shell-panel);
}
.elec-compare-card.selected { border-color:var(--portal-accent); background:rgba(56,189,248,0.06); }
.elec-compare-mid { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; padding:0 4px; }
.ecc-label { font-size:12px; color:var(--portal-muted); margin-bottom:6px; }
.ecc-val { font-size:24px; font-weight:700; color:var(--portal-text); }
.ecc-unit { font-size:11px; color:var(--portal-muted); margin-bottom:10px; }
.ecc-diff { font-size:12px; font-weight:600; padding:4px 10px; border-radius:20px; }
.ecc-diff.ok { background:rgba(82,196,26,0.12); color:#16a34a; }
.ecc-diff.warn { background:rgba(245,158,11,0.12); color:#d97706; }
.ecc-vs { font-size:18px; color:var(--portal-muted); }
.elec-pick-btn { margin-top:4px; }
.elec-compare-hint { margin-top:10px; font-size:12px; color:#d97706; }
.elec-admin-block { padding:4px 0; margin-top:12px; }
.elec-admin-view .elec-compare-box { margin-top:12px; }
.elec-readonly-row { background:var(--portal-surface-2,#f8fafc); border-radius:8px; padding:10px 14px; border:1px solid var(--portal-border,#e2e8f0); }
.elec-readonly-val { font-size:15px; font-weight:600; color:var(--portal-text); }
.elec-from-tag { font-size:11px; color:var(--portal-muted); margin-left:8px; padding:2px 8px; background:var(--portal-surface-2,#f1f5f9); border-radius:4px; }
.elec-reg-tag { font-size:11px; padding:2px 8px; border-radius:4px; margin-left:6px; font-weight:500; }
.elec-reg-tag-auto { background:rgba(56,189,248,0.12); color:#0284c7; }
.elec-reg-tag-ent { background:rgba(34,197,94,0.12); color:#16a34a; }
.elec-regulatory-note { margin-top:10px; font-size:12px; color:var(--portal-muted); line-height:1.5; padding:8px 10px; background:var(--portal-surface-2,#f8fafc); border-radius:6px; border-left:3px solid var(--portal-accent,#38bdf8); }
@media (max-width:768px) {
  .elec-compare-grid { grid-template-columns:1fr; }
  .elec-compare-mid { flex-direction:row; padding:8px 0; }
}

