/*
 * Khối tổng ngày + biểu đồ tuần cho bảng Trả đơn / Chốt đơn.
 *
 * CSS THUẦN, cố ý không dùng Tailwind: server không bao giờ build lại assets
 * (public/build nằm trong .gitignore và chưa từng được đóng gói), nên class
 * Tailwind mới sẽ không có tác dụng trên production. Xem thêm ghi chú đầu
 * public/css/inbox.css. Sửa file này thì tăng ?v= trong AdminPanelProvider.
 */

.jf-sum { --jf-s-line: #e5e7eb; --jf-s-bg: #ffffff; --jf-s-muted: #6b7280;
  --jf-s-ink: #065f46; --jf-s-soft: #ecfdf5; --jf-s-bar: #10b981;
  border: 1px solid var(--jf-s-line); background: var(--jf-s-bg);
  border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.jf-sum--giao { --jf-s-ink: #1e40af; --jf-s-soft: #eff6ff; --jf-s-bar: #3b82f6; }
:is(.dark) .jf-sum { --jf-s-line: #374151; --jf-s-bg: #111827; --jf-s-muted: #9ca3af; }
:is(.dark) .jf-sum--chot { --jf-s-ink: #6ee7b7; --jf-s-soft: rgba(6,78,59,0.35); }
:is(.dark) .jf-sum--giao { --jf-s-ink: #93c5fd; --jf-s-soft: rgba(30,58,138,0.35); }

.jf-sum-top { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: baseline; }
.jf-sum-item { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.jf-sum-label { font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .03em; color: var(--jf-s-muted); white-space: nowrap; }
.jf-sum-date { font-size: 14px; font-weight: 700; color: var(--jf-s-ink); }
.jf-sum-value { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums;
  color: var(--jf-s-ink); }
.jf-sum-note { margin: 0; font-size: 11px; line-height: 1.5; color: var(--jf-s-muted); }

/* Biểu đồ cột: 7 ngày chia đều, cột cao theo tiền hoa */
.jf-chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px;
  align-items: end; background: var(--jf-s-soft); border-radius: 12px; padding: 8px 6px 6px; }
.jf-chart-col { display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-width: 0; border: 0; background: none; cursor: pointer; padding: 2px 0 4px;
  border-radius: 9px; }
.jf-chart-col:active { transform: scale(.97); }
.jf-chart-col--on { background: rgba(0,0,0,.06); }
:is(.dark) .jf-chart-col--on { background: rgba(255,255,255,.1); }
/* Vùng cột cao cố định để mọi cột cùng đáy, cột rỗng vẫn giữ chỗ */
.jf-chart-col { height: 108px; justify-content: flex-end; }
.jf-chart-num { font-size: 10px; font-weight: 700; color: var(--jf-s-ink);
  font-variant-numeric: tabular-nums; line-height: 1; min-height: 11px; }
.jf-chart-bar { width: 100%; max-width: 30px; background: var(--jf-s-bar);
  border-radius: 5px 5px 2px 2px; min-height: 2px; }
.jf-chart-day { font-size: 11px; font-weight: 700; color: var(--jf-s-muted); line-height: 1; }
.jf-chart-day--today { color: var(--jf-s-bar); }
.jf-chart-date { font-size: 9px; color: var(--jf-s-muted); line-height: 1; }

@media (max-width: 400px) {
  .jf-chart-col { height: 92px; }
  .jf-chart-date { display: none; }
}
