{% extends "base.html" %}

{% block title %}审核指挥台概览{% endblock %}

{% block content %}
  <section class="page-header">
    <span class="eyebrow">Command View</span>
    <h1 class="page-title">审核指挥台概览</h1>
    <p class="page-lead">用简洁视图展示当前批次状态、主要问题和下一步动作，作为审核指挥台的轻量概览页。</p>
  </section>

  <section class="metric-grid">
    <article class="metric-card">
      <div class="metric-label">当前阶段</div>
      <div class="metric-value">{{ batch.stage }}</div>
    </article>
    <article class="metric-card">
      <div class="metric-label">整体完成度</div>
      <div class="metric-value">{{ batch.completion }}</div>
    </article>
    <article class="metric-card">
      <div class="metric-label">高优先级问题</div>
      <div class="metric-value">03</div>
    </article>
  </section>

  <section class="grid-3">
    <article class="panel">
      <h2 class="section-title">流程</h2>
      <div class="stack" style="margin-top: 14px;">
        {% for step in workflow_overview %}
          <div class="detail-item"><strong>{{ step.title }}</strong><div class="muted">{{ step.detail }}</div></div>
        {% endfor %}
      </div>
    </article>

    <article class="panel">
      <h2 class="section-title">执行记录</h2>
      <div class="stack" style="margin-top: 14px;">
        {% for step in workflow_steps %}
          <div class="detail-item"><strong>{{ step.time }} {{ step.title }}</strong><div class="muted">{{ step.detail }}</div></div>
        {% endfor %}
      </div>
    </article>

    <article class="panel">
      <h2 class="section-title">待处理问题</h2>
      <ul class="risk-list">
        {% for risk in risk_board %}
          <li class="risk-item">
            <strong>{{ risk.title }}</strong>
            <div class="muted">{{ risk.action|default:risk.detail }}</div>
          </li>
        {% endfor %}
      </ul>
    </article>
  </section>
{% endblock %}
