/* Área do gestor de tráfego */
.tf-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; margin: 14px 0; }
.tf-kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tf-kpi b { font-size: 24px; }
.tf-kpi b.bad { color: #ef4444; }
.tf-kpi span { color: var(--muted); font-size: 13px; }
.tf-filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 12px; }
.tf-filters input[type=search] { max-width: 260px; }
.tf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 12px; }
.tf-card { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: inherit; text-decoration: none; min-width: 0; }
.tf-card:hover { border-color: var(--accent, #F97316); }
.tf-card, .tf-card:hover, .tf-card * { text-decoration: none; }
.tf-card.hot { border-left: 4px solid #ef4444; }
.tf-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.tf-name { font-size: 16px; overflow-wrap: anywhere; }
.tf-plats { display: flex; gap: 4px; }
.tf-plats span { font-size: 11px; border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; color: var(--muted); }
.tf-pace { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.tf-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; }
.tf-line > span:first-child { font-weight: 700; font-size: 18px; }
.tf-pace.big .tf-line > span:first-child { font-size: 26px; }
.tf-st { font-size: 12px; font-weight: 700; border-radius: 99px; padding: 2px 10px; margin-left: auto; background: var(--soft, rgba(127,127,127,.15)); color: var(--muted); }
.tf-st.s-ok { background: #16a34a22; color: #22c55e; }
.tf-st.s-acima { background: #ef444422; color: #ef4444; }
.tf-st.s-abaixo { background: #eab30822; color: #eab308; }
.tf-bar { position: relative; height: 10px; border-radius: 99px; background: var(--soft, rgba(127,127,127,.18)); overflow: visible; }
.tf-bar i { display: block; height: 100%; border-radius: 99px; background: #22c55e; }
.tf-bar i.s-acima { background: #ef4444; }
.tf-bar i.s-abaixo { background: #eab308; }
.tf-bar::after { content: ""; position: absolute; left: 83.33%; top: -3px; bottom: -3px; width: 1px; background: var(--muted); opacity: .5; }
.tf-bar em { position: absolute; top: -4px; bottom: -4px; width: 3px; border-radius: 2px; background: var(--fg, #fff); transform: translateX(-50%); }
.tf-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0 2px; }
.tf-mini div, .tf-kpis div, .tf-nums div { display: flex; flex-direction: column; min-width: 0; }
.tf-mini b { font-size: 15px; }
.tf-mini span, .tf-nums span, .tf-kpis span { font-size: 12px; color: var(--muted); }
.tf-mini em, .tf-kpis em { font-style: normal; font-weight: 700; font-size: 12px; }
em.up { color: #22c55e; } em.down { color: #ef4444; }
.tf-al { margin: 4px 0 0; font-size: 13px; line-height: 1.4; padding: 6px 10px; border-radius: 8px; background: var(--soft, rgba(127,127,127,.12)); overflow-wrap: anywhere; }
.tf-al.l-alta { background: #ef444418; border-left: 3px solid #ef4444; }
.tf-al.l-media { background: #eab30818; border-left: 3px solid #eab308; }
.tf-al.l-baixa { border-left: 3px solid var(--muted); }
small.tf-al { display: block; }
.tf-heads { display: flex; gap: 8px; flex-wrap: wrap; }
.tf-mgr { width: auto; display: inline-block; padding: 2px 8px; }
.tf-alerts { display: grid; gap: 6px; margin: 12px 0; }
.tf-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; margin-bottom: 12px; align-items: start; }
.tf-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 14px 0; }
.tf-nums b { font-size: 16px; }
.tf-plat { display: grid; gap: 4px; font-size: 14px; margin-bottom: 8px; }
.tf-plat .tf-st { margin-left: 6px; }
.tf-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.tf-kpis b { font-size: 17px; }
.tf-chart { width: 100%; height: auto; margin-top: 6px; }
.tf-chart rect { fill: var(--accent, #F97316); opacity: .85; }
.tf-chart rect.hi { fill: #ef4444; }
.tf-chart rect.fut { opacity: .15; }
.tf-chart text { font-size: 10px; fill: var(--muted); }
.tf-chart line { stroke: var(--fg, #fff); stroke-dasharray: 4 4; opacity: .6; }
.tf-chart text.lbl { font-size: 11px; fill: var(--fg, #fff); }
.tf-chead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 8px; }
.tf-chead h3 { margin: 0; margin-right: auto; }
.tf-table-wrap { overflow-x: auto; }
.tf-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tf-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tf-table td { padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: top; }
.tf-table td.tf-cn { white-space: normal; min-width: 220px; }
.tf-table td.tf-cn b, .tf-table td.tf-cn small { display: block; }
.tf-table td.bad { color: #ef4444; font-weight: 700; }
.tf-form { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; }
.tf-kinds { margin: 0; }
.tf-log { display: grid; gap: 8px; margin-top: 10px; }
.tf-entry { border-bottom: 1px solid var(--line); padding: 8px 0; }
.tf-entry p { margin: 4px 0; overflow-wrap: anywhere; }
.tf-eh { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.tf-who { margin-left: auto; }
.tf-out { color: #22c55e; font-size: 14px; }
.tf-ea { display: flex; gap: 10px; }
.tf-hrow { flex-direction: column; align-items: stretch !important; }
.tf-hrow .h-t { display: flex; gap: 6px; align-items: center; }
@media (max-width: 900px) { .tf-cols { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .tf-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tf-filters input[type=search] { max-width: none; width: 100%; }
}
