/**
 * 园区负责人正式看板 — 移动端 / 平板自适应
 * 仅 @media 内生效，PC（≥1200px）保持原样。
 */

/* 六清：无数据月份 — 灰色柱 + 居中「无」（全端生效） */
.pmsb-bar-col--empty .pmsb-bar-fill--empty {
  background: #cbd5e1 !important;
  min-height: 36px !important;
  max-height: 36px !important;
  height: 36px !important;
  align-items: center !important;
  justify-content: center !important;
  padding-top: 0 !important;
}

.pmsb-bar-col--empty .pmsb-bar-pct,
.pmsb-bar-pct--empty {
  color: #475569 !important;
  text-shadow: none !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1;
}

.pmsb-bar-grade--empty {
  color: #94a3b8;
}

.pmsb-status-big--empty .pmsb-status-big-pct {
  color: #94a3b8;
  font-size: 28px;
  font-weight: 700;
}

.pmsb-status-rate-block--empty .pmsb-status-rank-num {
  color: #64748b;
  font-size: 17px;
  font-weight: 600;
}

/* ── 平板：768px ~ 1199px ── */
@media (max-width: 1199px) {
  /* 个人看板 /special-board */
  .pmsb-header {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px 10px;
  }

  .pmsb-header-left {
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

  .pmsb-header-right {
    width: 100%;
  }

  /* 综合排名：文字居左、按钮居右，互不重叠 */
  .pmsb-header-right {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: start;
    gap: 4px 10px;
  }

  .pmsb-header-right > .pmsb-header-nav {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    white-space: nowrap;
    margin-top: 2px;
  }

  .pmsb-header-right > .pmsb-header-metric:nth-child(2) {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    padding-right: 4px;
  }

  .pmsb-weight-formula-bar {
    box-sizing: border-box;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px 20px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .pmsb-weight-formula-text {
    grid-column: 2;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.4;
    white-space: normal;
    text-align: right;
  }

  .pmsb-header-metric--hidden-grade {
    display: none !important;
  }

  .pmsb-header-metric {
    width: auto;
    line-height: 1.35;
    font-size: 14px;
  }

  /* 六清：图表与状态卡纵向铺满 */
  .pmsb-liuqing .pmsb-chart-block,
  .pmsb-liuqing .pmsb-status-col {
    width: 100%;
    flex: none;
    align-self: stretch;
  }

  .pmsb-status-col {
    gap: 10px;
  }

  .pmsb-status-card {
    width: 100%;
    box-sizing: border-box;
  }

  /* 柱状图：限制在浅蓝背景内 */
  .pmsb-chart-area {
    overflow: hidden;
    min-height: 0;
    height: auto;
    padding: 10px 10px 6px;
    align-items: flex-end;
  }

  .pmsb-bar-col {
    height: auto;
    max-width: none;
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
  }

  .pmsb-bar-track {
    height: 72px;
    min-height: 72px;
    max-height: 72px;
    flex: none;
  }

  .pmsb-bar-label {
    margin-top: 4px;
  }

  .pmsb-bar-month {
    font-size: 13px;
  }

  .pmsb-bar-grade {
    font-size: 12px;
  }

  .pmsb-main {
    grid-template-rows: auto;
    grid-template-columns: 1fr;
    padding: 14px 16px 28px;
  }

  .pmsb-liuqing {
    flex-direction: column;
  }

  .pmsb-meeting-cols {
    flex-direction: column;
  }

  .pmsb-attendance {
    flex-direction: column;
  }

  .pmsb-att-divider {
    display: none;
  }

  .pmsb-att-half {
    padding: 0;
  }

  .pmsb-status-big {
    font-size: 28px;
  }

  .pmsb-star-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* 综合看板 /composite-ranking */
  .pmcr-header {
    padding: 12px 16px;
  }

  .pmcr-main {
    padding: 16px;
  }

  .pmcr-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .pmcr-search {
    width: 100%;
  }

  .pmcr-formula {
    max-width: 100%;
    margin-left: 0;
    font-size: 12px;
    text-align: left;
  }

  .pmcr-formula-note {
    font-size: 11px;
  }

  .pmcr-na {
    color: #94a3b8;
    font-size: 13px;
  }

  .pmcr-table {
    min-width: 960px;
  }

  .pmcr-table-wrap {
    -webkit-overflow-scrolling: touch;
  }

  .pmcr-th-sortable,
  .pmcr-tier-tab {
    min-height: 44px;
  }
}

/* ── 手机：< 768px ── */
@media (max-width: 767px) {
  /* 个人看板 */
  .pmsb-header {
    padding: 6px 10px 8px;
    gap: 6px;
  }

  .pmsb-header-left,
  .pmsb-header-right {
    width: 100%;
    min-width: 0;
  }

  .pmsb-manager-picker-label {
    font-size: 16px;
  }

  .pmsb-manager-picker {
    width: 100%;
  }

  .pmsb-manager-picker-box {
    min-width: 0;
    flex: 1;
    width: 100%;
  }

  .pmsb-manager-picker-input {
    width: 100%;
    max-width: 100%;
  }

  .pmsb-manager-picker-dropdown,
  .pmsb-manager-picker-empty {
    left: 0;
    right: 0;
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .pmsb-header-title {
    white-space: normal;
    font-size: 17px;
    line-height: 1.35;
  }

  .pmsb-header-metric {
    font-size: 15px;
    white-space: normal;
  }

  .pmsb-header-nav {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    font-size: 14px;
  }

  .pmsb-main {
    padding: 12px 12px 24px;
    gap: 12px;
  }

  .pmsb-meeting-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .pmsb-meeting-tab {
    min-height: 44px;
    padding: 10px 8px;
  }

  .pmsb-status-big {
    font-size: 26px;
  }

  .pmsb-liuqing .pmsb-chart-block,
  .pmsb-liuqing .pmsb-status-col {
    width: 100%;
  }

  .pmsb-status-card {
    width: 100%;
  }

  .pmsb-chart-area {
    overflow: hidden;
    padding: 8px 8px 4px;
  }

  .pmsb-bar-track {
    height: 68px;
    min-height: 68px;
    max-height: 68px;
    max-width: 40px;
  }

  .pmsb-bar-fill {
    flex: none;
    min-height: 3px;
    max-height: 100%;
  }

  .pmsb-bar-pct {
    font-size: 10px;
  }

  .pmsb-stalled-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    border-radius: 0;
    padding: 0;
    max-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
  }

  .pmsb-stalled-overlay-head {
    flex-shrink: 0;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #fecaca;
    background: #fff5f5;
  }

  .pmsb-stalled-detail-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    -webkit-overflow-scrolling: touch;
  }

  .pmsb-stalled-overlay-foot {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: stretch;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 2px solid #e2e8f0;
    box-shadow: 0 -6px 16px rgba(15, 23, 42, 0.08);
  }

  .pmsb-stalled-overlay-close {
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #1e48aa, #2858c8);
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(30, 72, 170, 0.28);
    cursor: pointer;
  }

  .pmsb-stalled-overlay-close:active {
    opacity: 0.92;
    transform: scale(0.99);
  }

  .pmsb-liuqing--stalled-detail {
    min-height: 0;
  }

  .pmsb-stalled-detail-btn,
  .pmsb-fl-rules-btn,
  .pmsb-meeting-video-btn,
  .pmsb-meeting-more {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 13px;
  }

  .pmsb-meeting-footer + .pmsb-meeting-video-btn,
  .pmsb-meeting + .pmsb-meeting-video-btn,
  .pmsb-panel-body > .pmsb-meeting-video-btn {
    align-self: flex-end;
    width: auto;
    justify-content: center;
  }

  /* 会议质效：移动端确保「查看视频」在面板内可见（不被 overflow 裁切） */
  .pmsb-meeting-panel,
  .pmsb-panel-body {
    overflow: visible;
  }

  .pmsb-meeting-video-btn {
    display: inline-flex !important;
    width: calc(100% - 8px);
    margin: 10px 4px 14px;
    box-sizing: border-box;
  }

  .pmsb-meeting-footer + .pmsb-meeting-video-btn,
  .pmsb-meeting + .pmsb-meeting-video-btn,
  .pmsb-panel-body > .pmsb-meeting-video-btn {
    align-self: stretch;
    width: calc(100% - 8px);
  }

  .pmsb-footer {
    padding: 0 12px 12px;
    text-align: center;
  }

  /* 综合看板：手机隐藏宽表，由 mobile-ranking.js 渲染卡片 */
  .pmcr-header-meta {
    font-size: 12px;
    line-height: 1.5;
  }

  .pmcr-toolbar {
    gap: 8px;
    margin-bottom: 8px;
  }

  /* 纵向 toolbar 下 flex:1 会把 ABCD/权重块撑满剩余高度，造成大块留白 */
  .pmcr-grade-summary,
  .pmcr-toolbar .pmcr-formula {
    flex: none;
  }

  .pmcr-table-wrap {
    height: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    box-shadow: none;
    background: transparent;
  }

  .pmcr-table-wrap + .pmcr-card-list,
  .pmcr-card-list {
    margin-top: 0;
  }

  /* 个人看板：权重说明单行换行，避免撑破页面 */
  .pmsb-weight-formula-bar {
    display: block;
    padding: 4px 12px 0;
  }

  .pmsb-weight-formula-text {
    grid-column: auto;
    white-space: normal;
    word-break: break-word;
    text-align: left;
    line-height: 1.45;
  }

  .pmcr-tier-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 4px;
  }

  .pmcr-tier-tab {
    flex: 0 0 auto;
    min-width: 108px;
    padding: 10px 14px;
    font-size: 13px;
  }

  /* 表格视觉隐藏但保留 DOM 供 JS 读取 */
  .pmcr-table-wrap > .pmcr-table {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
  }

  .pmcr-table-wrap {
    position: relative;
    min-height: 0;
  }

  .pmcr-table-wrap > .pmcr-loading {
    display: none !important;
  }

  .pmcr-table-wrap + .pmcr-card-list,
  .pmcr-card-list {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
  }

  .pmcr-root .pmcr-loading {
    text-align: center;
    padding: 32px 16px;
    color: #64748b;
    font-size: 15px;
  }

  .pmcr-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  }

  .pmcr-card--top3 {
    border-color: #c7d7f5;
    background: #fafbff;
  }

  .pmcr-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef2f6;
  }

  .pmcr-card-head--compact {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .pmcr-card-rank {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #1e48aa;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pmcr-card-identity {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
  }

  .pmcr-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #1e48aa;
    text-decoration: none;
    line-height: 1.3;
  }

  .pmcr-card-name:hover {
    text-decoration: underline;
  }

  .pmcr-card-identity .pmcr-card-jn {
    margin-top: 0;
    font-size: 12px;
    color: #94a3b8;
    text-align: left;
    line-height: 1.3;
  }

  .pmcr-card-composite {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }

  .pmcr-card-composite-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.2;
    white-space: nowrap;
  }

  .pmcr-card-composite-values {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .pmcr-card-composite-score {
    font-size: 18px;
    font-weight: 700;
    color: #1e48aa;
    line-height: 1;
  }

  .pmcr-card-composite-values .pmcr-grade {
    flex-shrink: 0;
  }

  .pmcr-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    font-size: 13px;
    width: 100%;
    justify-items: stretch;
  }

  .pmcr-card-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 10px;
    background: #f8fafc;
    border-radius: 6px;
    text-align: center;
  }

  .pmcr-card-metric-label {
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    width: 100%;
    text-align: center;
  }

  .pmcr-card-metric-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 700;
    color: #334155;
    width: 100%;
  }

  .pmcr-card-empty {
    text-align: center;
    color: #64748b;
    padding: 24px 16px;
    font-size: 14px;
  }
}

/* 桌面：隐藏 JS 注入的卡片容器 */
@media (min-width: 768px) {
  .pmcr-card-list {
    display: none !important;
  }
}

/* K2.6 直评 — 个人看板会议质效正文 */
.pmsb-meeting-col--direct {
  grid-column: 1 / -1;
}

.pmsb-direct-eval {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pmsb-direct-eval-meta {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.pmsb-direct-eval-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
}

.pmsb-direct-eval-label {
  font-size: 13px;
  font-weight: 600;
  color: #0f766e;
  margin-bottom: 6px;
}

.pmsb-direct-eval-text {
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
  white-space: pre-wrap;
}

.pmsb-direct-eval-score {
  font-size: 22px;
  font-weight: 800;
  color: #1d4ed8;
  line-height: 1.2;
}

.pmsb-meeting-tab-score {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #1d4ed8;
  line-height: 1.2;
}

.pmsb-meeting-strip .pmsb-grade-badge {
  display: none !important;
}

/* 谷安全过期关单明细（嵌套在「过期关单未做」汇总行下方） */
.pmsb-guan-detail-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 0 18px;
  padding-left: 8px;
  border-left: 2px solid #fecaca;
}

.pmsb-guan-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.pmsb-guan-detail-text {
  min-width: 0;
}

.pmsb-guan-detail-main {
  color: #334155;
  font-weight: 500;
}

.pmsb-guan-detail-sub {
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
}

.pmcr-na {
  color: #94a3b8;
  font-size: 13px;
}

/* 综合看板：各段位 ABCD 人数汇总（flex:1 占满搜索右侧，徽章仍靠左，避免 space-between 把 ABCD 顶到最右） */
.pmcr-grade-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
}

.pmcr-grade-summary-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pmcr-grade-summary .pmcr-grade {
  min-width: 34px;
  height: 34px;
  font-size: 17px;
  font-weight: 700;
}

.pmcr-grade-summary-count {
  color: #334155;
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* 综合看板：权重 + 更新时间置于 toolbar 右侧，避免单独占一行形成留白 */
.pmcr-composite-meta-row {
  box-sizing: border-box;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0;
}

.pmcr-composite-meta-row .pmcr-formula {
  max-width: 420px !important;
  margin: 0 !important;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

.pmcr-formula-title {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}

.pmcr-formula-line {
  color: #94a3b8;
}

.pmcr-formula-line strong,
.pmcr-formula-note strong {
  color: #64748b;
  font-weight: 600;
}

.pmcr-formula-note {
  margin-top: 2px;
  color: #b0bcc9;
  font-size: 11px;
}

.pmcr-composite-meta-row .pmcr-panel-freshness,
.pmcr-composite-meta-row .pmsb-panel-freshness {
  margin-top: 4px;
  padding-top: 0;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
  white-space: nowrap;
}

.pmcr-composite-meta-row .pmcr-panel-freshness:empty,
.pmcr-composite-meta-row .pmsb-panel-freshness:empty {
  display: none;
}

@media (min-width: 768px) {
  .pmcr-toolbar {
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
  }

  .pmcr-grade-summary {
    flex: 0 1 auto;
  }
}

/* 综合看板：表头对齐 */
.pmcr-table thead th {
  vertical-align: middle;
  padding: 10px 8px;
  line-height: 1.25;
}

.pmcr-table thead th.pmcr-th-sortable {
  position: relative;
  padding-right: 18px;
}

.pmcr-table thead th .pmcr-th-sort-icon {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  line-height: 1;
  opacity: 0.85;
}

/* 会议质效：查看视频按钮（位于会议模块与数据更新之间，避免 React 重渲染清除） */
.pmsb-meeting-video-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  transition: opacity 0.15s ease, transform 0.15s ease;
  width: auto;
  box-sizing: border-box;
}

.pmsb-meeting-footer + .pmsb-meeting-video-btn,
.pmsb-meeting + .pmsb-meeting-video-btn,
.pmsb-panel-body > .pmsb-meeting-video-btn {
  align-self: flex-end;
  flex-shrink: 0;
  margin-top: 6px;
  margin-right: 4px;
  margin-bottom: 2px;
}

.pmsb-meeting-video-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.pmsb-meeting-video-btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* 个人看板：首行「六清 | 五星园区」两列模块上下对齐（等高） */
.pmsb-main {
  align-items: stretch;
}

.pmsb-panel {
  height: 100%;
}

.pmsb-panel-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.pmsb-panel--star .pmsb-panel-body,
.pmsb-star-table-wrap {
  flex: 1 1 auto;
}

/* 个人看板：header 与主内容之间，右列上方单行权重说明（不影响面板网格） */
.pmsb-weight-formula-bar {
  box-sizing: border-box;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 20px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pmsb-weight-formula-text {
  grid-column: 2;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
  text-align: right;
}

.pmsb-header-metric--hidden-grade,
.pmsb-header-right .pmsb-header-metric + .pmsb-header-metric {
  display: none !important;
}

/* 综合看板：仅隐藏旧版直接插入 toolbar 的公式节点。 */
@media (min-width: 768px) {
  .pmcr-toolbar > .pmcr-formula {
    display: none !important;
  }
}

/* 六清排名：整体字号减一级，分段备注不换行 */
.pmsb-status-rank-line {
  font-size: 13px;
}

.pmsb-status-rank-line[data-six-clear-rank="1"] {
  white-space: nowrap;
}

.pmsb-status-rank-num {
  font-size: 17px;
}

.pmsb-status-rank-total {
  font-size: 12px;
}

/* ── 手机端覆盖（置于文件末尾，避免被全局规则覆盖）── */
@media (max-width: 767px) {
  /* 综合看板：消除 ABCD 与排名卡片之间留白 */
  .pmcr-toolbar {
    gap: 8px;
    margin-bottom: 6px;
  }

  .pmcr-grade-summary,
  .pmcr-toolbar .pmcr-formula {
    flex: none !important;
    min-width: 0;
    max-width: 100%;
    margin-left: 0;
  }

  .pmcr-formula {
    text-align: left;
    font-size: 11px;
    line-height: 1.4;
  }

  .pmcr-toolbar .pmcr-formula,
  .pmcr-formula {
    max-width: 100%;
    margin-left: 0;
    text-align: left;
  }

  .pmcr-composite-meta-row {
    margin: 0 0 8px;
  }

  .pmcr-composite-meta-row .pmcr-formula,
  .pmcr-composite-meta-row .pmcr-panel-freshness,
  .pmcr-composite-meta-row .pmsb-panel-freshness {
    text-align: left;
    white-space: normal;
    word-break: break-word;
  }

  .pmcr-table-wrap {
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
  }

  .pmcr-table-wrap + .pmcr-card-list,
  .pmcr-card-list {
    margin-top: 0 !important;
  }

  /* 个人看板：权重规则从左到右换行显示 */
  .pmsb-weight-formula-bar {
    display: block !important;
    grid-template-columns: none !important;
    padding: 4px 12px 0 !important;
  }

  .pmsb-weight-formula-text {
    display: block !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-break: break-word !important;
    text-align: left !important;
    line-height: 1.45 !important;
  }
}
