/* Trang Cấu hình máy DeepStream dùng chung (agent-config.js): máy + camera | ảnh để vẽ | thông tin camera + tính năng.
   Giao thông (tc), Bán hàng rong (vc), Tụ tập (cc), Danh tính (fa); lớp tc-* ở traffic-config.css. --ac-top = chiều cao phần
   trên trang (header + thanh tab con) do trang đặt. */
.ac-view { display: none; }
.ac-view.on { display: grid; grid-template-columns: 290px minmax(0, 1fr) 400px; gap: 16px; padding: 16px; height: calc(100vh - var(--ac-top, 103px)); }
body.or-cfg #orderView .tv-body { display: none; }
body.fc-agent #fcView { display: none !important; }
.ac-view.busy .tc-stage, .ac-view.busy .tc-side { opacity: .75; }
.ac-dlg .tc-dlg { width: min(460px, 86vw); display: flex; flex-direction: column; gap: 12px; }
.ac-dlg .row { margin-top: 2px; }
.ac-canvas { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 6px; touch-action: none; user-select: none; }
.ac-canvas.drawing { cursor: crosshair; }
.ac-view .tc-slot .k { border-color: var(--fc); }
.ac-view .vc-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-view .crow .fb { width: auto; min-width: 18px; padding: 0 4px; }
.ac-view .ac-addnote { font-size: 11.5px; color: #fcd34d; }
.vc-dim { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #c9d3df; cursor: pointer; white-space: nowrap; }
@media (max-width: 1400px) { .ac-view.on { grid-template-columns: 250px minmax(0, 1fr) 360px; } }
@media (max-width: 1100px) { .ac-view.on { grid-template-columns: 1fr; height: auto; } .ac-view .tc-canvas { min-height: 320px; } }
