.brand-mark,
.logo-large {
  display: block;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  padding: 1px;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.18));
}

.logo-large {
  width: 118px;
  height: 118px;
  margin-bottom: 24px;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.22));
}

.company-wordmark {
  display: block;
  width: min(285px, 100%);
  height: auto;
  margin: 0 auto 6px;
  object-fit: contain;
}

@media (max-width: 760px) {
  .logo-large {
    width: 92px;
    height: 92px;
  }

  .company-wordmark {
    width: min(250px, 100%);
  }
}

/* v3.3 报销、楼栋成本与用工档案 */
.cost-kpis {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.reimbursement-kpis,
.employee-compliance-kpis {
  grid-template-columns: repeat(4, minmax(170px, 1fr));
}

.metric-rule,
.privacy-note {
  color: #547488;
  font-size: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(79, 164, 206, 0.35);
  background: rgba(232, 247, 253, 0.78);
  border-radius: 10px;
}

.category-stats {
  display: grid;
  gap: 11px;
}

.category-stats > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}

.category-stats small {
  margin-left: 6px;
  color: var(--muted);
}

.reconciliation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.reconcile-card {
  display: grid;
  gap: 6px;
  padding: 15px 17px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid #69a9c9;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.reconcile-card.ok { border-left-color: #1db89b; }
.reconcile-card.warn { border-left-color: #f2a23a; }
.reconcile-card span,
.reconcile-card small { color: var(--muted); font-size: 12px; }
.reconcile-card strong { color: var(--ink); font-size: 17px; }

.building-orders-panel > summary { display:flex; align-items:center; justify-content:space-between; gap:16px; cursor:pointer; }
.building-orders-panel > summary span { color:var(--muted); font-size:12px; font-weight:400; }
.building-orders-panel[open] > summary { margin-bottom:16px; }
.building-order-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:10px; }
.building-order-grid label { min-width:0; padding:10px; border:1px solid #d8e6ec; border-radius:10px; background:#f8fbfc; }
.building-order-grid label span,
.building-order-grid label small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.building-order-grid label span { color:#17394e; font-weight:700; }
.building-order-grid label small { color:#82949f; font-size:9px; }
.building-order-grid input { width:100%; padding:7px 9px; font-weight:700; }
.building-orders-panel form > footer { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-top:16px; padding-top:14px; border-top:1px solid #e2ebef; }
.building-orders-panel form > footer > div { display:flex; flex-wrap:wrap; gap:18px; color:var(--muted); font-size:12px; }
.building-orders-panel form > footer strong { color:#0c7fae; font-size:16px; }
.building-orders-panel form > footer .over-limit strong { color:#c94444; }

.building-operations-panel { background:linear-gradient(145deg,#fafdff,#edf6fa); }
.building-ops-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; }
.building-ops-card { overflow:hidden; min-width:0; border:1px solid #d7e5eb; border-top:4px solid #a7bdc8; border-radius:13px; background:#fff; box-shadow:0 8px 24px rgba(26,78,105,.06); }
.building-ops-card.has-data { border-top-color:#1ba3d2; }
.building-ops-card > header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:12px 14px; border-bottom:1px solid #e4edf1; }
.building-ops-card > header strong,
.building-ops-card > header small { display:block; }
.building-ops-card > header strong { color:#15394c; font-size:17px; }
.building-ops-card > header small { max-width:150px; margin-top:3px; overflow:hidden; color:#8497a1; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.building-ops-card > header > span { flex:none; padding:5px 8px; border-radius:999px; background:#e5f4fa; color:#087ba6; font-size:11px; font-weight:700; }
.building-finance-row { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; padding:11px 14px; background:#f8fbfc; }
.building-finance-row div { min-width:0; }
.building-finance-row small,
.building-finance-row strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.building-finance-row small { color:#82949d; font-size:9px; }
.building-finance-row strong { margin-top:4px; color:#17384a; font-size:12px; }
.building-delivery-team { display:grid; gap:8px; padding:12px 14px; }
.building-delivery-team > div:not(.building-unassigned) { display:grid; grid-template-columns:auto 1fr; align-items:flex-start; gap:8px; }
.building-delivery-team p { display:flex; flex-wrap:wrap; gap:4px 8px; margin:1px 0 0!important; }
.building-delivery-team p b { color:#17394e; font-size:11px; }
.building-delivery-team p b small { margin-left:3px; color:#9a6b19; font-size:9px; font-weight:700; }
.building-delivery-team p a { color:#0a83b2; font-size:10px; text-decoration:none; }
.building-delivery-team p em,
.building-unassigned { color:#9a7b43; font-size:10px; font-style:normal; }
.building-unassigned { padding:8px; border-radius:7px; background:#fff8e7; text-align:center; }
.other-region-strip { display:flex; flex-wrap:wrap; align-items:stretch; gap:9px; margin-top:14px; padding-top:14px; border-top:1px solid #d6e5eb; }
.other-region-strip > strong { align-self:center; color:#667f8b; font-size:11px; }
.other-region-strip > div { display:grid; gap:3px; min-width:180px; padding:9px 11px; border:1px solid #dbe7ec; border-radius:9px; background:#fff; }
.other-region-strip span { color:#163d51; font-size:12px; font-weight:700; }
.other-region-strip b { color:#d78316; font-size:11px; }
.other-region-strip small { color:#718792; font-size:10px; }
.cost-chart-panel > summary,
.cost-detail-panel > summary { cursor:pointer; }
.cost-chart-panel[open] > summary,
.cost-detail-panel[open] > summary { margin-bottom:16px; }

.bar-legend {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 12px;
}

.bar-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 2px;
}

.revenue-dot,
.revenue-bar { background: #0b91dc; }
.cost-dot,
.cost-bar { background: #f2a23a; }

.cost-bars {
  display: grid;
  gap: 13px;
}

.cost-bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 190px) 1fr;
  align-items: center;
  gap: 16px;
}

.cost-bar-label strong,
.cost-bar-label small { display: block; }
.cost-bar-label small { color: var(--muted); margin-top: 4px; font-size: 11px; }

.cost-bar-tracks {
  display: grid;
  gap: 5px;
}

.cost-bar-tracks > div {
  position: relative;
  height: 19px;
  background: #edf4f7;
  border-radius: 4px;
  overflow: hidden;
}

.cost-bar-tracks span {
  display: block;
  height: 100%;
  min-width: 2px;
}

.cost-bar-tracks b {
  position: absolute;
  top: 2px;
  right: 7px;
  z-index: 1;
  color: #17394e;
  font-size: 11px;
  line-height: 15px;
  text-shadow: 0 1px rgba(255,255,255,.75);
}

.cost-entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 18px;
}

.cost-entry-grid .panel { min-width: 0; }
.form-help { min-height: 45px; margin: 0 0 14px !important; }
.compact-records { margin-top: 14px; }
.positive-number { color: #087b9e; }
.negative-number { color: #c85a37; }

.status.已签,
.status.已购买 { background: #def3eb; color: #18684f; }
.status.未签,
.status.未购买,
.status.已到期,
.status.已过期 { background: #ffe1e1; color: #a52929; }
.status.即将到期,
.status.待生效 { background: #fff0c9; color: #876100; }

.employee-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.employee-roster { min-width: 1460px; }
.employee-roster th:nth-child(-n+7),
.employee-roster td:nth-child(-n+7) { white-space: nowrap; }
.employee-roster th:nth-child(2),
.employee-roster td:nth-child(2) { min-width: 76px; }
.employee-roster th:nth-child(3),
.employee-roster td:nth-child(3) { min-width: 145px; }
.phone-input { min-width: 125px; }

.schedule-source-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 15px;
  border: 1px solid rgba(242, 162, 58, 0.35);
  border-left: 4px solid #f2a23a;
  border-radius: 11px;
  background: #fff9e9;
  color: #6e5a2b;
  font-size: 13px;
}

.schedule-source-notice span { color: #8a7441; }
.actual-schedule-notice { border-color: rgba(22, 159, 125, .36); border-left-color: #169f7d; background: #edf9f5; color: #166a56; }
.actual-schedule-notice span { color: #548477; }
.cost-data-warning { display:flex; gap:12px; align-items:center; margin:12px 0 16px; padding:12px 16px; border:1px solid #efc76f; border-left:4px solid #e6a11a; border-radius:10px; background:#fff9e9; color:#6f5a2d; }
.cost-data-warning strong { color:#9b6510; white-space:nowrap; }
.manual-schedule-entry { border-left:4px solid #1ea5d9; }
.manual-schedule-entry form { display:grid; grid-template-columns:minmax(180px,.7fr) minmax(220px,1fr); gap:14px 18px; margin-top:14px; }
.manual-schedule-entry label { display:grid; gap:7px; color:#566b7d; font-size:13px; }
.manual-schedule-entry .schedule-text-label { grid-column:1 / -1; }
.schedule-import-text { min-height:220px; resize:vertical; font:600 15px/1.8 "Microsoft YaHei",sans-serif; letter-spacing:.02em; }
.schedule-format-tip { grid-column:1 / -1; display:flex; gap:10px; align-items:flex-start; padding:11px 13px; border-radius:8px; background:#edf7fb; color:#607889; font-size:13px; }
.schedule-format-tip strong { color:#137da7; white-space:nowrap; }
.manual-schedule-entry .form-actions { grid-column:1 / -1; }
.schedule-kpis { grid-template-columns: repeat(4, minmax(170px, 1fr)); }

.coverage-pill {
  padding: 5px 9px;
  border: 1px solid #c9e6f2;
  border-radius: 999px;
  color: #1688b4;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.support-chain-panel {
  background: linear-gradient(135deg, #f7fcff, #edf8fb);
}

.support-chain {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 12px;
}

.support-card {
  overflow: hidden;
  border: 1px solid #cfe3eb;
  border-radius: 12px;
  background: #fff;
}

.support-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: #0a3448;
  color: #fff;
}

.support-card > header span { font-size: 14px; font-weight: 800; }
.support-card > header small { color: #b9dce9; font-size: 10px; white-space: nowrap; }
.support-card-body { padding: 5px 11px 8px; }

.support-shift {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed #dce8ed;
}

.support-shift:last-child { border-bottom: 0; }
.support-shift > .tag { align-self: start; margin-top: 2px; }
.support-shift p { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; margin: 0 0 5px; }
.support-shift p:last-child { margin-bottom: 0; }
.support-shift strong { font-size: 12px; }
.support-shift a,
.support-shift em { color: #087fb8; font-size: 10px; font-style: normal; text-decoration: none; white-space: nowrap; }
.support-shift em { color: #b26736; }

.location-board-panel {
  background: linear-gradient(145deg, #fafdff, #f1f8fb);
}

.location-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  align-items: start;
  gap: 15px;
}

.location-card {
  overflow: hidden;
  border: 1px solid rgba(120, 172, 201, 0.38);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(21, 79, 111, 0.07);
}

.location-card.uncovered-location { border-color: #e9b86d; }
.actual-region-card > header { background: linear-gradient(100deg, #07364c, #087493); }
.location-card.uncovered-location > header { background: linear-gradient(100deg, #503b21, #8b5a24); }
.coverage-missing { color: #ffd38d !important; }
.coverage-ok { color: #c4dfeb !important; }

.location-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid #dceaf0;
  background: linear-gradient(100deg, #0a2638, #0b4862);
  color: #fff;
}

.location-card > header span {
  color: #4bc4ff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
}

.location-card > header h3 {
  margin: 4px 0 0;
  font-size: 18px;
}

.location-card > header small {
  color: #c4dfeb;
  font-size: 11px;
  white-space: nowrap;
}

.location-shifts { padding: 5px 14px 10px; }

.address-empty {
  display: grid;
  gap: 3px;
  margin: 9px 0 2px;
  padding: 14px;
  border: 1px dashed #e3ad58;
  border-radius: 9px;
  background: #fff8e9;
  color: #8a5d1f;
  text-align: center;
}

.address-empty span { font-size: 11px; }

.location-shift-group {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed #dce7eb;
}

.location-shift-group:last-child { border-bottom: 0; }
.shift-label { padding-top: 7px; }
.location-people { display: grid; gap: 7px; }

.location-person {
  display: grid;
  grid-template-columns: 34px minmax(90px, 1fr) minmax(118px, auto);
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px 9px;
  border-radius: 9px;
  background: #f4f8fa;
}

.location-person.pending-person { background: #fff5df; }
.person-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #dceff7;
  color: #0b709e;
  font-weight: 800;
}

.person-main,
.person-contact { min-width: 0; }
.person-main strong,
.person-main small,
.person-contact a,
.person-contact span,
.person-contact small { display: block; }
.person-main strong { font-size: 14px; }
.person-main small,
.person-contact small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.person-contact { text-align: right; }
.person-contact a,
.table-phone {
  color: #087fb8;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.person-contact span,
.missing-phone-text {
  color: #b26736;
  font-size: 11px;
  white-space: nowrap;
}

.puller-support {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 9px;
  padding: 10px 14px 12px;
  border-top: 1px solid #d9e8ee;
  background: #edf7fa;
}

.puller-support > strong {
  padding-top: 3px;
  color: #0a6f97;
  font-size: 11px;
}

.puller-support p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 7px;
  margin: 0 0 5px;
  font-size: 10px;
}

.puller-support p:last-child { margin-bottom: 0; }
.puller-support p > span { min-width: 26px; color: var(--muted); }
.puller-support b { font-size: 11px; }
.puller-support a { color: #087fb8; font-weight: 700; text-decoration: none; }
.puller-support em { color: #b26736; font-size: 9px; font-style: normal; }

.schedule-detail-panel > summary,
.template-preview > summary { cursor: pointer; }

.schedule-detail-panel[open] > summary { margin-bottom: 16px; }

.employee-file-grid label small {
  color: var(--muted);
  font-size: 11px;
}

.identity-upload-panel { background: linear-gradient(145deg, #fafdff, #edf7fa); }
.identity-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.identity-photo-card { display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 14px; min-width: 0; padding: 12px; border: 1px solid #d4e5eb; border-radius: 13px; background: #fff; }
.identity-photo-preview { display: grid; place-items: center; aspect-ratio: 1.58; overflow: hidden; border: 1px dashed #aac7d2; border-radius: 10px; background: #eef6f8; color: #6d8c99; }
.identity-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.identity-photo-preview span { font-size: 27px; }
.identity-photo-preview strong { margin-top: -18px; font-size: 11px; }
.identity-photo-card > div:last-child strong,
.identity-photo-card > div:last-child small { display: block; }
.identity-photo-card > div:last-child small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; word-break: break-all; }
.identity-upload-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; gap: 12px; margin-top: 15px; }
.identity-upload-form input[type="file"] { width: 100%; padding: 7px; background: #fff; }

@media (max-width: 1250px) {
  .cost-kpis { grid-template-columns: repeat(3, 1fr); }
  .cost-entry-grid { grid-template-columns: repeat(2, 1fr); }
  .employee-compliance-kpis { grid-template-columns: repeat(2, 1fr); }
  .schedule-kpis { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .cost-kpis,
  .reimbursement-kpis,
  .employee-compliance-kpis,
  .reconciliation-grid,
  .cost-entry-grid { grid-template-columns: 1fr; }
  .schedule-kpis,
  .location-board,
  .support-chain { grid-template-columns: 1fr; }
  .schedule-source-notice { align-items: flex-start; flex-direction: column; }
  .location-person { grid-template-columns: 34px 1fr; }
  .person-contact { grid-column: 2; text-align: left; }
  .identity-photo-grid,
  .identity-upload-form { grid-template-columns: 1fr; }
  .identity-photo-card { grid-template-columns: 1fr; }
  .cost-bar-row { grid-template-columns: 1fr; gap: 7px; }
  .metric-rule,
  .privacy-note { width: 100%; }
}

/* 辰远科技视觉系统 */
:root {
  --bg: #edf4f8;
  --panel: #ffffff;
  --ink: #102b3d;
  --muted: #6d8291;
  --green: #0c88d8;
  --green2: #12aec2;
  --mint: #e6f5fb;
  --amber: #f59a23;
  --line: #d5e3ea;
  --shadow: 0 14px 38px rgba(18, 67, 96, 0.08);
}

body {
  background:
    radial-gradient(circle at 85% 5%, rgba(34, 168, 255, 0.09), transparent 28%),
    radial-gradient(circle at 15% 95%, rgba(20, 190, 182, 0.07), transparent 32%),
    var(--bg);
}

.sidebar {
  background: linear-gradient(180deg, #071929 0%, #0a2637 56%, #092e3c 100%);
  border-right: 1px solid rgba(52, 184, 255, 0.2);
  box-shadow: 16px 0 42px rgba(3, 19, 31, 0.18);
}

.sidebar nav a:hover,
.sidebar nav a.active {
  background: rgba(36, 169, 236, 0.15);
  box-shadow: inset 3px 0 #29b9f2;
}

.topbar {
  background: rgba(248, 252, 255, 0.86);
  border-bottom-color: rgba(155, 187, 205, 0.45);
  box-shadow: 0 8px 30px rgba(24, 73, 100, 0.05);
}

.btn.primary {
  background: #0c88d8;
  border-color: #0c88d8;
  box-shadow: 0 8px 18px rgba(12, 136, 216, 0.18);
}

.panel,
.kpi {
  border-color: rgba(158, 188, 204, 0.45);
}

/* 首页运营驾驶舱 */
.page-body.dashboard-page-body {
  width: 100%;
  max-width: none;
  margin: 0;
}

.ops-cockpit {
  --ops-bg: #06121e;
  --ops-panel: #0b1b29;
  --ops-panel-2: #0e2232;
  --ops-border: rgba(73, 159, 205, 0.24);
  --ops-text: #e9f6ff;
  --ops-muted: #7f9aae;
  --ops-cyan: #29a8ff;
  --ops-teal: #20d7b0;
  --ops-orange: #ffad3d;
  min-height: calc(100vh - 74px);
  margin: -26px -28px -44px;
  padding: 24px 28px 46px;
  color: var(--ops-text);
  background-color: var(--ops-bg);
  background-image:
    linear-gradient(rgba(51, 126, 164, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 126, 164, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 85% 0%, rgba(18, 128, 189, 0.2), transparent 31%);
  background-size: 34px 34px, 34px 34px, auto;
}

.ops-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 2px 2px 14px;
  border-bottom: 1px solid rgba(75, 154, 194, 0.18);
}

.ops-eyebrow,
.ops-panel-title > div > span {
  color: #48bfff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.ops-eyebrow i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--ops-teal);
  box-shadow: 0 0 13px var(--ops-teal);
  animation: opsPulse 1.8s infinite;
}

@keyframes opsPulse {
  50% { opacity: 0.45; transform: scale(0.78); }
}

.ops-command h2 {
  margin: 7px 0 4px;
  font-size: 25px;
  letter-spacing: 0.02em;
}

.ops-command p,
.ops-command-meta small,
.ops-panel-title p {
  margin: 0;
  color: var(--ops-muted);
  font-size: 12px;
}

.ops-command-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.ops-alert-pill {
  padding: 7px 12px;
  color: #ffd99b;
  border: 1px solid rgba(255, 173, 61, 0.32);
  border-radius: 999px;
  background: rgba(255, 173, 61, 0.08);
  font-size: 12px;
}

.ops-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(145px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.ops-kpi,
.ops-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ops-border);
  background: rgba(11, 27, 41, 0.94);
  box-shadow: 0 18px 42px rgba(0, 7, 13, 0.22);
}

.ops-kpi {
  min-height: 122px;
  padding: 17px 16px 14px;
  border-radius: 12px;
}

.ops-kpi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 2px;
  background: var(--ops-cyan);
  box-shadow: 0 0 12px var(--ops-cyan);
}

.ops-kpi.warning::before { background: var(--ops-orange); box-shadow: 0 0 12px var(--ops-orange); }
.ops-kpi.danger::before { background: #ff756f; box-shadow: 0 0 12px #ff756f; }

.ops-kpi > span,
.ops-kpi small {
  display: block;
  color: var(--ops-muted);
  font-size: 11px;
}

.ops-kpi strong {
  display: block;
  margin: 12px 0 8px;
  color: #f6fbff;
  font: 700 28px/1 "Bahnschrift", "Microsoft YaHei UI", sans-serif;
  letter-spacing: -0.02em;
}

.ops-kpi.primary strong { color: #51c4ff; }
.ops-kpi.warning strong { color: #ffc36b; }
.ops-kpi.danger strong { color: #ff918c; }
.ops-kpi strong em { color: #688498; font-size: 16px; font-style: normal; }

.ops-grid-primary,
.ops-grid-secondary {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.ops-grid-primary { grid-template-columns: minmax(0, 1.65fr) minmax(310px, 0.75fr); }
.ops-grid-secondary { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ops-panel {
  padding: 18px;
  border-radius: 14px;
}

.ops-panel::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-top: 1px solid rgba(76, 187, 244, 0.42);
  border-right: 1px solid rgba(76, 187, 244, 0.42);
}

.ops-panel-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}

.ops-panel-title h2 {
  margin: 5px 0 4px;
  color: var(--ops-text);
  font-size: 16px;
}

.ops-panel-title a,
.ops-link {
  color: #54bfff;
  font-size: 11px;
  text-decoration: none;
}

.ops-highlight {
  min-width: 96px;
  text-align: right;
}

.ops-highlight small,
.ops-highlight span {
  display: block;
  color: var(--ops-muted);
  font-size: 10px;
}

.ops-highlight strong {
  display: block;
  margin: 4px 0 2px;
  color: var(--ops-orange);
  font: 700 20px/1 "Bahnschrift", sans-serif;
}

.hourly-chart {
  display: grid;
  grid-template-columns: repeat(24, minmax(17px, 1fr));
  align-items: end;
  gap: 5px;
  min-width: 560px;
  height: 220px;
  padding: 24px 4px 0;
  border-bottom: 1px solid #355065;
  background-image: repeating-linear-gradient(to top, transparent 0, transparent 54px, rgba(105, 150, 177, 0.12) 55px);
}

.hourly-panel { overflow-x: auto; }

.hour-slot {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 18px 1fr 18px;
  height: 100%;
  min-width: 0;
  text-align: center;
}

.hour-slot b {
  width: 100%;
  min-width: 0;
  color: #9cc0d5;
  font: 600 9px/1 "Bahnschrift", sans-serif;
}

.hour-slot small {
  min-width: 0;
  max-width: 100%;
}

.hour-bar {
  display: block;
  align-self: end;
  width: 66%;
  min-width: 0;
  min-height: 3px;
  margin: 0 auto;
  border-radius: 3px 3px 0 0;
  background: var(--ops-cyan);
  box-shadow: 0 0 8px rgba(41, 168, 255, 0.26);
}

.hour-bar.peak { background: var(--ops-orange); box-shadow: 0 0 12px rgba(255, 173, 61, 0.5); }
.hour-bar.zero { background: #223b4d; box-shadow: none; }
.hour-slot small { padding-top: 6px; color: #68859a; font-size: 9px; }

.chart-foot {
  display: flex;
  justify-content: space-between;
  min-width: 560px;
  padding-top: 8px;
  color: #5f7c91;
  font-size: 9px;
}

.status-total,
.attention-count {
  color: #eaf7ff;
  font: 700 28px/1 "Bahnschrift", sans-serif;
}

.status-stack {
  display: flex;
  height: 15px;
  overflow: hidden;
  margin: 24px 0 22px;
  border-radius: 3px;
  background: #1b3446;
}

.status-stack span { min-width: 2px; }

.status-legend {
  display: grid;
  gap: 11px;
  margin-bottom: 18px;
}

.status-legend div {
  display: grid;
  grid-template-columns: 8px 1fr auto 42px;
  align-items: center;
  gap: 8px;
  color: #a8bdcc;
  font-size: 11px;
}

.status-legend i { width: 7px; height: 7px; border-radius: 2px; }
.status-legend strong { color: #edf8ff; font-family: "Bahnschrift", sans-serif; }
.status-legend small { color: #678398; text-align: right; }
.status-panel .ops-link { display: block; margin-top: 8px; text-align: right; }

.workforce-number {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 20px 0 10px;
}

.workforce-number strong { color: #55c6ff; font: 700 34px/1 "Bahnschrift", sans-serif; }
.workforce-number span { color: var(--ops-muted); font-size: 11px; }

.tech-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #1b3446;
}

.tech-progress span { display: block; height: 100%; background: var(--ops-cyan); box-shadow: 0 0 9px rgba(41, 168, 255, 0.55); }

.workforce-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: var(--ops-muted);
  font-size: 10px;
}

.workforce-meta b { color: #c9e2f0; }

.ops-note {
  margin: 16px 0 0;
  padding: 9px 10px;
  color: #9eb7c6;
  border-left: 2px solid var(--ops-teal);
  background: rgba(32, 215, 176, 0.06);
  font-size: 10px;
  line-height: 1.55;
}

.ops-note.warning { color: #d9ba82; border-left-color: var(--ops-orange); background: rgba(255, 173, 61, 0.06); }

.weather-tech {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.weather-tech > div:first-child strong,
.weather-tech > div:first-child span { display: block; }
.weather-tech > div:first-child strong { font-size: 20px; }
.weather-tech > div:first-child span { margin-top: 5px; color: #8fa9bb; font-size: 12px; }

.weather-risk {
  text-align: right;
}

.weather-risk small { display: block; color: var(--ops-muted); font-size: 9px; }
.weather-risk b { color: var(--ops-orange); font: 700 24px/1.2 "Bahnschrift", sans-serif; }
.weather-detail-link { display: block; margin-top: 10px; color: #55bded; font-size: 10px; text-align: right; text-decoration: none; }

.icon-button {
  width: 30px;
  height: 30px;
  color: #55c5ff;
  border: 1px solid #254b63;
  border-radius: 7px;
  background: #102a3b;
  cursor: pointer;
}

.finance-ops-values { display: grid; gap: 10px; }
.finance-ops-values div { display: flex; justify-content: space-between; padding-bottom: 9px; border-bottom: 1px solid rgba(81, 131, 160, 0.16); }
.finance-ops-values span { color: var(--ops-muted); font-size: 11px; }
.finance-ops-values strong { font-size: 13px; }

.no-data-state {
  display: grid;
  place-content: center;
  min-height: 118px;
  text-align: center;
}

.no-data-state strong { color: #ffc36b; font-size: 15px; }
.no-data-state span { max-width: 220px; margin-top: 8px; color: var(--ops-muted); font-size: 10px; line-height: 1.6; }

.attention-count { color: var(--ops-orange); }
.attention-list { display: grid; gap: 7px; }

.attention-list a {
  display: grid;
  grid-template-columns: 6px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  color: inherit;
  border: 1px solid rgba(78, 131, 160, 0.14);
  border-radius: 7px;
  background: rgba(13, 36, 52, 0.72);
  text-decoration: none;
}

.attention-list a:hover { border-color: rgba(41, 168, 255, 0.38); }
.attention-list i { width: 4px; height: 25px; border-radius: 3px; }
.level-high { background: #ff716c; }
.level-mid { background: var(--ops-orange); }
.level-low { background: var(--ops-cyan); }
.attention-list span b,
.attention-list span small { display: block; }
.attention-list span b { font-size: 10px; }
.attention-list span small { margin-top: 3px; color: var(--ops-muted); font-size: 8px; }
.attention-list em { color: #55bded; font-size: 9px; font-style: normal; }

.schedule-panel { margin-bottom: 0; }

/* 小时天气营业风险看板 */
.weather-toolbar > div > strong { display: block; margin-bottom: 5px; font-size: 15px; }
.weather-toolbar p { margin: 0; }
.weather-hourly-kpis .weather-period-value { display: block; font-size: 21px; }

.weather-source-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px;
  border-color: #cce4ee;
  background: linear-gradient(105deg, #072b3d, #0b4c63);
  color: #fff;
}

.weather-source-main { display: flex; align-items: center; gap: 11px; }
.weather-source-main .live-dot { width: 8px; height: 8px; border-radius: 50%; background: #21d6ad; box-shadow: 0 0 12px #21d6ad; }
.weather-source-main strong,
.weather-source-main small { display: block; }
.weather-source-main strong { font-size: 14px; }
.weather-source-main small { margin-top: 4px; color: #a9cad8; font-size: 10px; }
.weather-source-meta { display: flex; gap: 22px; }
.weather-source-meta span { color: #8fb4c5; font-size: 9px; text-align: right; }
.weather-source-meta strong { display: block; margin-top: 3px; color: #fff; font-size: 12px; }

.business-weather-panel { background: linear-gradient(145deg, #fafdff, #edf6fa); }
.business-weather-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }

.business-weather-card {
  overflow: hidden;
  border: 1px solid #cee2eb;
  border-top: 4px solid #2bc5a4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(18, 80, 108, .07);
}

.business-weather-card.risk-medium { border-top-color: #eea83b; }
.business-weather-card.risk-high { border-top-color: #ef6d68; }
.business-weather-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border-bottom: 1px solid #deebf0; }
.business-weather-card > header span { color: #668291; font-size: 10px; }
.business-weather-card > header h3 { margin: 3px 0 0; font-size: 17px; }
.business-weather-card > header h3 small { color: #7892a0; font-size: 11px; font-weight: 500; }

.risk-badge { padding: 5px 9px; border-radius: 999px; font-size: 10px; }
.risk-badge.low { color: #16715f; background: #ddf6ef; }
.risk-badge.medium { color: #8b5b13; background: #fff0cf; }
.risk-badge.high { color: #a83d3a; background: #ffe2e0; }

.business-weather-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px 15px 4px; }
.business-weather-summary div { min-width: 0; }
.business-weather-summary small,
.business-weather-summary strong { display: block; }
.business-weather-summary small { color: #8094a0; font-size: 9px; }
.business-weather-summary strong { margin-top: 3px; color: #17394c; font-size: 13px; white-space: nowrap; }

.business-hour-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; padding: 12px 15px; }
.business-hour-cell { min-width: 0; padding: 9px 7px; border: 1px solid #e1ebef; border-radius: 9px; background: #f5f9fb; text-align: center; }
.business-hour-cell.rain-hour { border-color: #ecc985; background: #fff9e9; }
.business-hour-cell time,
.business-hour-cell strong,
.business-hour-cell span,
.business-hour-cell small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.business-hour-cell time { color: #648392; font: 700 10px/1 "Bahnschrift", sans-serif; }
.business-hour-cell strong { margin: 7px 0 3px; color: #0b739d; font-size: 19px; }
.business-hour-cell span { font-size: 10px; }
.business-hour-cell small { margin-top: 5px; color: #7b909b; font-size: 8px; }

.business-weather-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 15px; border-top: 1px solid #deebf0; background: #f2f8fa; }
.business-weather-card > footer span { color: #55727f; font-size: 10px; line-height: 1.5; }
.business-weather-card > footer strong { flex: none; color: #0c789e; font-size: 10px; }
.risk-high > footer strong { color: #c6504c; }
.risk-medium > footer strong { color: #a96d16; }

.weather-empty-state { display: grid; place-items: center; grid-column: 1/-1; min-height: 180px; color: #718b98; }
.weather-empty-state strong,
.weather-empty-state span { display: block; }
.weather-empty-state span { margin-top: 7px; font-size: 12px; }

.hourly-detail-panel > summary,
.daily-forecast-panel > summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.hourly-detail-panel > summary span { color: #66818e; font-size: 11px; }
.hourly-detail-panel[open] > summary,
.daily-forecast-panel[open] > summary { margin-bottom: 17px; }
.hourly-detail-panel table { min-width: 900px; }
.business-hour-row { background: #eef9fb; }
.business-hour-row td:first-child { color: #087da9; font-weight: 700; }
.daily-forecast-panel .forecast-grid { margin: 0; }
.weather-method-note { border-left: 4px solid #1c9fbd; }
.weather-method-note h2 { margin-bottom: 7px; }

.ops-cockpit table { color: #c8dce8; }
.ops-cockpit th { color: #7895a8; background: #0d2231; border-bottom-color: #1d3b4f; }
.ops-cockpit td { border-bottom-color: rgba(65, 110, 136, 0.18); }
.ops-cockpit tbody tr:hover { background: rgba(31, 114, 158, 0.08); }

@media (max-width: 1280px) {
  .building-ops-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .ops-kpis { grid-template-columns: repeat(3, 1fr); }
  .ops-grid-secondary { grid-template-columns: repeat(2, 1fr); }
  .business-weather-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .building-ops-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ops-grid-primary { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .building-ops-grid { grid-template-columns:1fr; }
  .building-orders-panel form > footer { align-items:stretch; flex-direction:column; }
  .building-orders-panel form > footer .btn { width:100%; }
  .manual-schedule-entry form { grid-template-columns:1fr; }
  .manual-schedule-entry .schedule-text-label,
  .manual-schedule-entry .schedule-format-tip,
  .manual-schedule-entry .form-actions { grid-column:1; }
  .schedule-format-tip { flex-direction:column; }
  .ops-cockpit {
    margin: -18px -14px -44px;
    padding: 18px 14px 38px;
  }
  .ops-command { align-items: flex-start; }
  .ops-command-meta { justify-items: start; }
  .ops-command h2 { font-size: 20px; }
  .ops-kpis { grid-template-columns: repeat(2, 1fr); }
  .ops-grid-secondary { grid-template-columns: 1fr; }
  .ops-command { flex-direction: column; }
  .ops-kpi { min-height: 112px; }
  .weather-source-panel { align-items: flex-start; flex-direction: column; }
  .weather-source-meta { width: 100%; justify-content: space-between; }
  .business-weather-summary { grid-template-columns: repeat(2, 1fr); }
  .business-weather-card > footer { align-items: flex-start; flex-direction: column; }
}
