/* เฟส 5: รายงาน */
.status-card h3 { font-size: 16px; }
.stack-bar { display: flex; gap: 2px; height: 18px; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.stack-bar span { min-width: 4px; transition: flex .6s var(--ease), filter .2s; }
.stack-bar span:hover { filter: brightness(1.12); }
.legend { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--text-2); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend b { color: var(--text); font-weight: 600; }
/* สถานะตามขั้นตอน: น้ำเงิน → ส้ม → เขียว (ส่งคืนเป็นแดง สั่งการโดยไม่มอบเป็นเทา) */
.sb-deputy { background: #3b82f6; }
.sb-director { background: #1d4ed8; }
.sb-returned { background: #dc2626; }
.sb-signed { background: #94a3b8; }
.sb-assigned { background: var(--orange-500); }
.sb-completed { background: #16a34a; }

.report-table .num { text-align: right; font-variant-numeric: tabular-nums; width: 90px; }
.report-table td.num.ok { color: var(--success); font-weight: 500; }
.report-table .warn { color: var(--orange-700); }
.report-table .num .badge { margin-left: 6px; }
.who-col { display: grid; }
.who-col b { font-weight: 500; }
.who-col span { font-size: 12.5px; color: var(--text-3); }
.mini-bar { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; background: var(--surface-2); margin-bottom: 3px; }
.mini-bar .ok { background: #16a34a; transition: width .8s var(--ease); }
.mini-bar .pend { background: var(--orange-400); }
.mini-bar span[style*="width:0%"] { display: none; }

.pending-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 50vh; overflow-y: auto; }
.pending-list a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; color: inherit; text-decoration: none !important; transition: border-color .2s, background .2s; }
.pending-list a:hover { border-color: var(--orange-400); background: var(--orange-50); }
.pending-list span:last-child { display: grid; }
.pending-list b { font-weight: 500; }
.pending-list small { color: var(--text-3); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .report-table .warn { color: var(--orange-400); }
}
