/* Sentinela · painel do TI · leva TI-3 (diário 61): Eventos (A08) + Registro de ações (A05).
   Só seletores com prefixo t3- (não toca em nada do dono, da TI-1 nem da TI-2). Cores só por token. */

main.t3-ocupado .t3-lista, main.t3-ocupado .t3-kpis { opacity: 0.45; transition: opacity 0.15s; }
.t3-sub { font-size: 13px; }
.btn.t3-mini { min-height: 34px; height: 34px; padding: 0 12px; font-size: 12.5px; }

/* ---------- período (componente do Sentinela) ---------- */
.t3-filtros { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-start; }
.t3-periodo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.t3-pchips { display: flex; flex-wrap: wrap; background: var(--sx-1a1f25); border: 1px solid var(--sx-2e353d); border-radius: 4px; padding: 3px; gap: 2px; max-width: 100%; }
.t3-pchips button { flex-shrink: 0; min-height: 32px; padding: 0 11px; border: 0; border-radius: 2px; background: none; color: var(--sx-8a949e); font-size: 13px; cursor: pointer; }
.t3-pchips button.on { background: var(--sx-2a3139); color: var(--sx-f2c46e); font-weight: 500; }
.t3-prot { font-size: 12px; color: var(--sx-8a949e); }
.t3-pers { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.t3-pers label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--sx-8a949e); }
.t3-pers input { height: 34px; padding: 0 8px; background: var(--sx-1a1f25); border: 1px solid var(--sx-2e353d); border-radius: 3px; color: var(--sx-e4e7eb); font: inherit; font-size: 13px; }
.t3-pers input:focus { outline: none; border-color: #E8A93B; }
.t3-sel { flex: 1 1 200px; max-width: 320px; }

/* ---------- chips de tipo e resultado ---------- */
.t3-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.t3-chips button { min-height: 32px; padding: 0 12px; border-radius: 16px; font-size: 12.5px; cursor: pointer; background: var(--sx-151a1f); border: 1px solid var(--sx-2e353d); color: var(--sx-c4cad0); }
.t3-chips button.on { background: var(--sx-2b2214); border-color: #E8A93B; color: var(--sx-f2c46e); }
.t3-resf { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 12.5px; }
.t3-chk { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0; background: none; border: 0; font-size: 12.5px; cursor: pointer; color: var(--sx-8a949e); }
.t3-chk .bx { width: 15px; height: 15px; border-radius: 3px; box-sizing: border-box; border: 1px solid var(--sx-5c6670); display: inline-flex; align-items: center; justify-content: center; color: #E8A93B; }
.t3-chk.on .bx { border-color: #E8A93B; background: var(--sx-2b2214); }
.t3-chk.on.bad { color: var(--sx-f07b7f); } .t3-chk.on.ok { color: var(--sx-6fd39f); } .t3-chk.on.reg { color: var(--sx-c4cad0); } .t3-chk.on.aud { color: var(--sx-f2c46e); }

/* ---------- KPIs ---------- */
.t3-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 1px; background: var(--sx-262c33); border: 1px solid var(--sx-262c33); border-radius: 4px; overflow: hidden; }
.t3-kpis > div { background: var(--sx-151a1f); padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.t3-kpis span { font-size: 12px; color: var(--sx-8a949e); }
.t3-kpis b { font-size: 22px; font-weight: 500; }
.t3-kpis b.bad { color: var(--sx-f07b7f); }

/* ---------- lista (eventos e registro) ---------- */
.t3-duo { display: flex; flex-direction: column; gap: 16px; }
.t3-lista { overflow: hidden; min-width: 0; }
.t3-dia { padding: 8px 16px; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sx-6b7580); background: var(--sx-12161a); border-bottom: 1px solid var(--sx-1f252b); }
.t3-th { display: none; gap: 14px; padding: 10px 16px; background: var(--sx-12161a); border-bottom: 1px solid var(--sx-262c33); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sx-6b7580); }
.t3-tr { display: grid; gap: 4px 14px; padding: 10px 16px; border-bottom: 1px solid var(--sx-1f252b); align-items: center; font-size: 13px; color: var(--sx-e4e7eb); }
.t3-tr:hover { color: var(--sx-e4e7eb); background: var(--sx-161b20); }
.t3-tr.t3-aberta, .t3-ac.t3-aberta > .t3-tr { background: var(--sx-1c1811); box-shadow: inset 2px 0 0 #E8A93B; }
.t3-ev { grid-template-columns: minmax(0, 1fr) auto; }
.t3-ev .t3-q { grid-column: 1 / 2; font-size: 12px; color: var(--sx-8a949e); }
.t3-ev .t3-r { grid-column: 2 / 3; grid-row: 1; justify-self: end; }
.t3-ev .t3-m, .t3-ev .t3-o { grid-column: 1 / -1; }
.t3-m, .t3-o { display: flex; flex-direction: column; min-width: 0; }
.t3-m .mono { font-size: 12.5px; }
.t3-m .faint, .t3-o .muted { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t3-tipo { font-size: 11px; color: var(--sx-8a949e); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-t3-largo { display: none; }
.t3-res { font-size: 11.5px; padding: 2px 7px; border-radius: 3px; white-space: nowrap; border: 1px solid; }
.t3-res.bad { color: var(--sx-f07b7f); background: var(--sx-2a1719); border-color: var(--sx-5a2a2d); }
.t3-res.ok { color: var(--sx-6fd39f); background: var(--sx-13261c); border-color: var(--sx-24503a); }
.t3-res.reg { color: var(--sx-8a949e); background: transparent; border-color: var(--sx-2e353d); }
.t3-res.aud { color: var(--sx-f2c46e); background: var(--sx-2b2214); border-color: var(--sx-5c4521); }
.t3-rodape { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 16px; font-size: 12px; color: var(--sx-6b7580); }
.t3-rodape .ti-link { min-height: 32px; font-family: var(--sans); }
.t3-nada { padding: 28px 16px; text-align: center; color: var(--sx-8a949e); font-size: 13px; }
@media (min-width: 1000px) {
  .so-t3-largo { display: block; }
  .t3-th.so-t3-largo { display: grid; }
  .t3-ev { grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 2.2fr) minmax(0, 1fr) 118px; }
  .t3-ev .t3-q, .t3-ev .t3-r, .t3-ev .t3-m, .t3-ev .t3-o { grid-column: auto; grid-row: auto; justify-self: start; }
}

/* ---------- evento aberto ---------- */
.t3-painel { border-color: var(--sx-38414a); display: flex; flex-direction: column; min-width: 0; }
.t3-fechar { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--sx-8a949e); min-height: 32px; }
.t3-pt { display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--sx-262c33); }
.t3-pt .t3-res { align-self: flex-start; }
.t3-pt b { font-size: 16px; font-weight: 600; }
.t3-pt span:last-child { font-size: 13px; color: var(--sx-c4cad0); }
.t3-kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; padding: 14px 16px; font-size: 13px; border-bottom: 1px solid var(--sx-262c33); }
.t3-kv > span:nth-child(odd) { color: var(--sx-8a949e); }
.t3-kv > span { overflow-wrap: anywhere; }
.t3-kv .mono { font-size: 12.5px; }
.t3-rot { display: block; padding: 12px 16px 4px; }
.t3-json { margin: 0; padding: 6px 16px 14px; font-size: 11.5px; line-height: 1.55; color: var(--sx-c4cad0); white-space: pre-wrap; word-break: break-word; }
.t3-atalhos { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--sx-262c33); }
.t3-atalhos:empty { display: none; }
@media (min-width: 1180px) {
  .t3-duo.aberto { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .t3-duo.aberto .t3-painel { order: 2; position: sticky; top: 0; }
  .t3-duo.aberto .t3-ev { grid-template-columns: minmax(0, 1fr) auto; }
  .t3-duo.aberto .t3-ev .t3-q { grid-column: 1 / 2; }
  .t3-duo.aberto .t3-ev .t3-r { grid-column: 2 / 3; grid-row: 1; justify-self: end; }
  .t3-duo.aberto .t3-ev .t3-m, .t3-duo.aberto .t3-ev .t3-o { grid-column: 1 / -1; }
  .t3-duo.aberto .t3-th, .t3-duo.aberto .t3-tipo { display: none; }
}

/* ---------- vazio "Aguardando o agente" ---------- */
.t3-vazio { border: 1px dashed var(--sx-38414a); border-radius: 6px; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.t3-vazio .ico { width: 56px; height: 56px; border-radius: 50%; background: var(--sx-1c1811); border: 1px solid var(--sx-5c4521); display: flex; align-items: center; justify-content: center; color: #E8A93B; }
.t3-vazio > b { font-size: 17px; font-weight: 600; }
.t3-vazio > span { font-size: 13.5px; color: var(--sx-c4cad0); max-width: 460px; }
.t3-vn { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 12px; color: var(--sx-8a949e); }
.t3-vn .amb { color: var(--sx-f2c46e); }
.t3-voc { display: flex; flex-direction: column; gap: 8px; }
.t3-voc > div { display: flex; flex-wrap: wrap; gap: 6px; }
.t3-voc > div span { font-size: 12px; padding: 3px 8px; border: 1px solid var(--sx-2e353d); border-radius: 3px; color: var(--sx-c4cad0); }

/* ---------- registro de ações ---------- */
.t3-abas button { display: inline-flex; align-items: center; gap: 8px; }
.t3-abas .t3-aba-off { color: var(--sx-4a535c); cursor: not-allowed; }
.t3-abas .t3-aba-off .mono { font-size: 10.5px; }
.t3-acg { grid-template-columns: 52px minmax(0, 1fr); }
.t3-acg .t3-tag { grid-column: 1 / -1; }
.t3-acg .t3-o > span:first-child { font-size: 13px; }
.t3-dif { font-size: 11.5px; color: var(--sx-c4cad0); overflow-wrap: anywhere; white-space: normal !important; }
.t3-al { display: inline-flex; font-size: 11.5px; padding: 1px 7px; border-radius: 3px; white-space: nowrap; border: 1px solid; }
.t3-al.c { color: var(--sx-f07b7f); border-color: var(--sx-5a2a2d); background: var(--sx-2a1719); }
.t3-al.a { color: var(--sx-f2c46e); border-color: var(--sx-5c4521); }
@media (min-width: 1000px) {
  .t3-acg { grid-template-columns: 52px minmax(0, 1fr) 190px; }
  .t3-acg .t3-tag { grid-column: auto; justify-self: end; }
}
.t3-ac { border-bottom: 1px solid var(--sx-1f252b); }
.t3-ac > .t3-tr { border-bottom: 0; }
.t3-det { margin: 0 16px 14px; border: 1px solid var(--sx-262c33); border-radius: 4px; background: var(--sx-12161a); overflow: hidden; }
.t3-dt .th, .t3-dt .tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px 14px; padding: 9px 14px; font-size: 12px; border-bottom: 1px solid var(--sx-1f252b); }
.t3-dt .th { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sx-6b7580); border-bottom-color: var(--sx-262c33); }
.t3-dt .tr { box-shadow: inset 2px 0 0 #E8A93B; }
.t3-dt .tr span { overflow-wrap: anywhere; }
.t3-dt .a { color: var(--sx-f07b7f); } .t3-dt .d { color: var(--sx-6fd39f); }
.t3-imut { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
