/* traffic: gate traffic summary, entry search, on duty */
.tr-kpi small{display:block;margin-top:4px;color:var(--ink-2);font-size:.78rem;line-height:1.3}
.tr-site{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0 0;color:var(--ink-2);font-size:.9rem}
.tr-site b{color:var(--ink);font-variant-numeric:tabular-nums}
.tr-bar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:14px}
.tr-bar select,.tr-bar input[type=date]{min-height:38px;padding:7px 11px;max-width:220px}
.tr-tbl th.r,.tr-tbl td.r{text-align:right;font-variant-numeric:tabular-nums}
.tr-tbl tr.tr-row{cursor:pointer}
.tr-tbl tr.tr-row:hover td,.tr-tbl tr.tr-row:focus td{background:var(--surface-2)}
.tr-tbl tr.tr-row:focus{outline:2px solid var(--accent);outline-offset:-2px}
.tr-tbl tr.tr-total td{font-weight:700;background:var(--surface-2);border-top:2px solid var(--line)}
.tr-tbl td.zero{color:var(--ink-2);opacity:.55}
.tr-tbl .tr-share{display:flex;align-items:center;justify-content:flex-end;gap:8px}
.tr-tbl .tr-share i{display:block;height:6px;border-radius:3px;background:var(--accent);min-width:2px}
.tr-day .tbl{min-width:760px}
.tr-day th{white-space:normal;max-width:90px}
.tr-hours{display:grid;grid-template-columns:repeat(24,minmax(0,1fr));gap:3px;align-items:end;height:120px}
.tr-hours>div{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;height:100%;gap:3px;font-size:.66rem;color:var(--ink-2)}
.tr-hours i{display:block;width:100%;background:var(--accent);opacity:.55;border-radius:4px 4px 1px 1px;min-height:2px}
.tr-hours .peak i{opacity:1;background:var(--accent-2,var(--accent))}
.tr-hours span{height:1em;line-height:1;font-variant-numeric:tabular-nums}
@media (max-width:560px){.tr-hours{gap:2px}.tr-hours>div{font-size:.58rem}}
.tr-set summary{cursor:pointer;font-weight:650;display:flex;justify-content:space-between;gap:10px;align-items:center}
.tr-set .form{margin-top:12px}
.tr-notes{display:grid;gap:8px;margin-top:14px}
.tr-chips{margin:0 0 12px}
.tr-more{display:flex;justify-content:center;margin:14px 0}
.tr-who{display:inline-block;margin-left:6px;vertical-align:middle}
.tr-duty .li .ic{flex:none}
.tr-site svg{width:20px;height:20px;flex:none}

/* 2.2.1 (UI6 U1): tables fit a phone instead of scrolling sideways. Day by day keeps Day, Total in, Out and Turned away; the split by
   who came in is in "Who came through" above (and in the By-day CSV). */
@media (max-width:560px){
  .tr-tbl{font-size:.8rem}
  .tr-tbl th,.tr-tbl td{padding:7px 5px;white-space:normal}
  .tr-tbl th{font-size:.72rem;line-height:1.2}
  .tr-tbl .tr-share i{display:none}
  .tr-day .tbl{min-width:0}
  .tr-day .tr-who{display:none}
  .tr-day th{max-width:none}
}
@media (max-width:360px){.tr-tbl[data-summary] th:last-child,.tr-tbl[data-summary] td:last-child{display:none}}   /* the smallest phones: the Share column goes (it is in the Summary CSV) */
