/* RBS Desk v1.8.16 — Timeline semântica suave
   Mantém a semântica por cor sem transformar a interação em um bloco escuro.
   As superfícies permanecem claras; cor fica concentrada em accent, ícone, badge e borda. */
:root{
  --rbs-actor-client:#4B5563;
  --rbs-actor-client-soft:#F6F7F8;
  --rbs-actor-client-border:#D5DAE0;
  --rbs-actor-staff:#0B5A68;
  --rbs-actor-staff-soft:#F0F8F9;
  --rbs-actor-staff-border:#C2DDE1;
  --rbs-actor-closed:#23784C;
  --rbs-actor-closed-soft:#F1F8F4;
  --rbs-actor-closed-border:#C5E0CF;
  --rbs-actor-note:#9A6700;
  --rbs-actor-note-soft:#FFFAEA;
  --rbs-actor-note-border:#EEDCA9;
  --rbs-actor-severity:#B42318;
  --rbs-actor-severity-soft:#FFF3F2;
  --rbs-actor-severity-border:#EEC5C1;
}

/* Override intencional do media prefers-color-scheme da v1.8.14.
   O RBS Desk não deve escurecer apenas a timeline quando a preferência do SO é dark
   se a interface exibida está em tema claro. */
.v189-tree-item.actor-client{--actor-accent:var(--rbs-actor-client)!important;--actor-soft:var(--rbs-actor-client-soft)!important;--actor-border:var(--rbs-actor-client-border)!important}
.v189-tree-item.actor-staff{--actor-accent:var(--rbs-actor-staff)!important;--actor-soft:var(--rbs-actor-staff-soft)!important;--actor-border:var(--rbs-actor-staff-border)!important}
.v189-tree-item.actor-closed,.v189-tree-item.closed-event{--actor-accent:var(--rbs-actor-closed)!important;--actor-soft:var(--rbs-actor-closed-soft)!important;--actor-border:var(--rbs-actor-closed-border)!important}
.v189-tree-item.actor-internal,.v189-tree-item.internal{--actor-accent:var(--rbs-actor-note)!important;--actor-soft:var(--rbs-actor-note-soft)!important;--actor-border:var(--rbs-actor-note-border)!important}
.v189-tree-item.actor-severity,.v189-tree-item.severity-alert{--actor-accent:var(--rbs-actor-severity)!important;--actor-soft:var(--rbs-actor-severity-soft)!important;--actor-border:var(--rbs-actor-severity-border)!important}

.v189-tree-item.actor-client>summary,
.v189-tree-item.actor-staff>summary,
.v189-tree-item.actor-closed>summary,
.v189-tree-item.closed-event>summary,
.v189-tree-item.actor-internal>summary,
.v189-tree-item.internal>summary,
.v189-tree-item.actor-severity>summary,
.v189-tree-item.severity-alert>summary{
  background:var(--actor-soft)!important;
  border-left:4px solid var(--actor-accent)!important;
  color:var(--text,#10253c)!important;
}

/* Mantém corpo da mensagem claro e legível ao expandir. */
.v189-tree-item.actor-client .v189-tree-body,
.v189-tree-item.actor-staff .v189-tree-body,
.v189-tree-item.actor-closed .v189-tree-body,
.v189-tree-item.closed-event .v189-tree-body,
.v189-tree-item.actor-internal .v189-tree-body,
.v189-tree-item.internal .v189-tree-body,
.v189-tree-item.actor-severity .v189-tree-body,
.v189-tree-item.severity-alert .v189-tree-body{
  background:var(--card,#fff)!important;
  color:var(--text,#10253c)!important;
}

.v189-tree-item .v189-tree-meta strong{color:var(--text,#10253c)!important}
.v189-tree-item .v189-tree-meta small,
.v189-tree-item .v189-tree-meta p,
.v189-tree-item .v189-tree-chevron{color:var(--muted,#6c7e90)!important}

.v189-tree-item.actor-client .v189-tree-icon{background:#ECEFF1!important;color:#46515C!important;border-color:#D4DADF!important}
.v189-tree-item.actor-staff .v189-tree-icon{background:#E4F2F4!important;color:#0A5360!important;border-color:#BEDCE1!important}
.v189-tree-item.actor-closed .v189-tree-icon,.v189-tree-item.closed-event .v189-tree-icon{background:#E7F4EC!important;color:#1D6E45!important;border-color:#C3E0CE!important}
.v189-tree-item.actor-internal .v189-tree-icon,.v189-tree-item.internal .v189-tree-icon{background:#FFF1C9!important;color:#805700!important;border-color:#E8D28F!important}
.v189-tree-item.actor-severity .v189-tree-icon,.v189-tree-item.severity-alert .v189-tree-icon{background:#FFE5E2!important;color:#9C2118!important;border-color:#EABCB7!important}

.v189-tree-item.actor-client .v189-tree-meta em{color:#3F4851!important;background:#E9ECEF!important}
.v189-tree-item.actor-staff .v189-tree-meta em{color:#084D59!important;background:#DDEFF2!important}
.v189-tree-item.actor-closed .v189-tree-meta em,.v189-tree-item.closed-event .v189-tree-meta em{color:#17623D!important;background:#DFF1E6!important}
.v189-tree-item.actor-internal .v189-tree-meta em,.v189-tree-item.internal .v189-tree-meta em{color:#805700!important;background:#FFF0C8!important}
.v189-tree-item.actor-severity .v189-tree-meta em,.v189-tree-item.severity-alert .v189-tree-meta em{color:#8F1B13!important;background:#FFE0DD!important}

.v189-tree-item.actor-client[open],.v189-tree-item.actor-staff[open],.v189-tree-item.actor-closed[open],.v189-tree-item.closed-event[open],.v189-tree-item.actor-internal[open],.v189-tree-item.internal[open],.v189-tree-item.actor-severity[open],.v189-tree-item.severity-alert[open]{
  border-color:var(--actor-border)!important;
  box-shadow:0 5px 16px color-mix(in srgb,var(--actor-accent) 6%,transparent)!important;
}

@media(max-width:760px){
  .v189-tree-item.actor-client>summary,.v189-tree-item.actor-staff>summary,.v189-tree-item.actor-closed>summary,.v189-tree-item.closed-event>summary,.v189-tree-item.actor-internal>summary,.v189-tree-item.internal>summary,.v189-tree-item.actor-severity>summary,.v189-tree-item.severity-alert>summary{border-left-width:3px!important}
}
