<div class="card border-0 shadow-sm h-100">
  <div class="card-header bg-white border-0 pt-3 pb-0 d-flex align-items-center justify-content-between">
    <h6 class="fw-semibold mb-0" style="font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;color:#64748b;">
      {% if icon %}<span class="bi {{ icon }} me-2" style="color:var(--cab-primary);"></span>{% endif %}
      {{ title }}
    </h6>
    {% if subtitle %}
    <span class="text-muted" style="font-size:.75rem;">{{ subtitle }}</span>
    {% endif %}
  </div>
  <div class="card-body p-0">
    <ul class="list-group list-group-flush">
      {% for item in items %}
      <li class="list-group-item border-0 d-flex align-items-center justify-content-between px-3 py-2
                 {% if not forloop.last %}border-bottom{% endif %}"
          style="border-color:#f1f5f9 !important;">
        <div class="d-flex align-items-center gap-2">
          {% if item.avatar %}
          <span class="rounded-circle d-flex align-items-center justify-content-center fw-bold text-white flex-shrink-0"
                style="width:30px;height:30px;background:var(--cab-primary);font-size:.65rem;">
            {{ item.avatar }}
          </span>
          {% endif %}
          <div>
            <div style="font-size:.875rem;">{{ item.label }}</div>
            {% if item.sublabel %}
            <div class="text-muted" style="font-size:.75rem;">{{ item.sublabel }}</div>
            {% endif %}
          </div>
        </div>
        <div class="text-end flex-shrink-0 ms-2">
          <div style="font-size:.875rem;font-weight:600;">{{ item.value }}</div>
          {% if item.subvalue %}
          <div class="text-muted" style="font-size:.75rem;">{{ item.subvalue }}</div>
          {% endif %}
        </div>
      </li>
      {% empty %}
        No data
      {% endfor %}
    </ul>
  </div>
</div>
