/* ==========================================================================
   需领导出面 · 升级通道样式
     · 面板：/leader（汇总待处理 / 已处理）
     · 编辑区：工作项详情抽屉「概览」页签顶部的升级通道
   纪律：配色只用 app.css 已有的 CSS 变量，不新增硬编码色值；
        [hidden] 必须显式压掉 display，否则隐藏不生效。
   ========================================================================== */

/* ---------------------------------------------------------------- 导航角标 */
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  margin-left: 5px;
  border-radius: 99px;
  background: var(--st-doing);
  color: var(--on-doing);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  vertical-align: 1px;
}
.nav-badge[hidden] { display: none; }

/* ---------------------------------------------------------------- 面板 */
.ldr-page .page-head { margin-bottom: 14px; }

.ldr-tbl { min-width: 820px; }

.ldr-row { cursor: pointer; }
.ldr-row:hover td { background: var(--surface-2); }
.ldr-row.pending td:first-child { box-shadow: inset 3px 0 0 var(--st-doing); }

.ldr-note {
  max-width: 260px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
  word-break: break-word;
  white-space: pre-wrap;
}

/* ---------------------------------------------------------------- 详情 · 升级通道 */
.ldr-editor {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
}
.ldr-editor.on {
  border-color: var(--warn-line);
  background: var(--warn-soft);
}

.ldr-editor-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}
.ldr-editor-t {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.ldr-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.ldr-check input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: var(--st-doing);
  cursor: pointer;
  flex: none;
}
.ldr-check-t {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.ldr-check-h {
  font-size: 11.5px;
  color: var(--muted);
}

.ldr-field { margin-top: 11px; }
.ldr-field[hidden] { display: none; }

.ldr-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.ldr-req {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid var(--danger-line-2);
  border-radius: 99px;
  padding: 0 6px;
  line-height: 1.5;
}
.ldr-req.soft {
  color: var(--muted);
  background: var(--surface);
  border-color: var(--line);
}
.ldr-field textarea {
  width: 100%;
  resize: vertical;
  font-size: 13px;
  line-height: 1.55;
}

.ldr-warn {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid var(--warn-line);
  border-radius: 9px;
  background: var(--warn-soft);
  color: var(--st-doing);
  font-size: 12px;
  line-height: 1.5;
}
.ldr-warn[hidden] { display: none; }

.ldr-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  color: var(--muted);
}
.ldr-editor.on .ldr-meta { border-top-color: var(--warn-line); }
