/* Merli360: tema escuro por padrão (preto, azul, verde). Sem estilos inline: tudo por classes. */
:root {
  --bg: #05080d;
  --surface: #0c131b;
  --surface2: #131d28;
  --line: #1f2d3b;
  --text: #e9f2fa;
  --dim: #9db0c2;
  --blue: #4aa3ff;
  --green: #3ddc97;
  --red: #ff8595;
  --amber: #f0c04a;
  --on-accent: #03121b;
  --grad: linear-gradient(135deg, #4aa3ff 0%, #3ddc97 100%);
  --radius: 18px;
  --tab-h: 62px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

/* Claro: só quando a pessoa escolhe em Mais > Aparência (Claro, ou Automático seguindo o aparelho). */
:root[data-tema="claro"] {
  --bg: #f3f7fb; --surface: #ffffff; --surface2: #e9f0f7; --line: #cfdae5; --text: #0a1620; --dim: #475a6c;
  --blue: #0b63c4; --green: #0a7a52; --red: #b3202f; --amber: #8a5d00; color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root[data-tema="auto"] {
    --bg: #f3f7fb; --surface: #ffffff; --surface2: #e9f0f7; --line: #cfdae5; --text: #0a1620; --dim: #475a6c;
    --blue: #0b63c4; --green: #0a7a52; --red: #b3202f; --amber: #8a5d00; color-scheme: light;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, p { margin: 0; }
a { color: var(--blue); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--dim); }
.pad { padding: 14px 16px; }

/* ---------- boot ---------- */
.boot {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  background: var(--bg);
}
.boot img { border-radius: 22px; animation: pulsa 1.4s ease-in-out infinite; }
@keyframes pulsa { 0%, 100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1); } }

/* ---------- botões e campos ---------- */
.primary, .ghost, .danger, .linkbtn {
  min-height: 48px; padding: 0 20px; border-radius: 14px; border: 1px solid transparent;
  font-weight: 600; display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
.primary { background: var(--grad); color: var(--on-accent); }
.primary:disabled { opacity: .55; }
.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.ghost.small, .small { min-height: 44px; padding: 0 14px; font-size: 14px; }
.danger { background: transparent; border-color: var(--red); color: var(--red); }
.linkbtn { background: var(--surface2); border-color: var(--line); color: var(--text); flex: 1 1 0; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 14px; border: 0; background: transparent; color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:active, .ghost:active, .linkbtn:active { background: var(--surface2); }

label { display: block; font-size: 14px; color: var(--dim); margin: 14px 0 6px; }
input[type="text"], input[type="password"], textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 16px;
}
input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(74, 163, 255, .25); }

.msg-erro { color: var(--red); font-size: 14px; margin: 12px 0 0; }
.msg-ok { color: var(--green); font-size: 14px; margin: 12px 0 0; }

/* ---------- login ---------- */
.login {
  position: fixed; inset: 0; overflow-y: auto; display: flex; align-items: center; justify-content: center;
  padding: calc(24px + var(--sat)) calc(20px + var(--sar)) calc(24px + var(--sab)) calc(20px + var(--sal));
  background: radial-gradient(120% 60% at 50% 0%, rgba(74, 163, 255, .16), transparent 60%),
              radial-gradient(90% 50% at 50% 100%, rgba(61, 220, 151, .1), transparent 60%), var(--bg);
}
.login-card { width: 100%; max-width: 380px; margin: auto; }
.login-logo { display: block; margin: 0 auto 10px; border-radius: 22px; }
.login-card h1 {
  text-align: center; font-size: 30px; letter-spacing: .5px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.login-card > .muted { text-align: center; margin-bottom: 10px; }
.pw { position: relative; }
.pw input { padding-right: 96px; }
.pw-btn { position: absolute; right: 4px; top: 2px; min-height: 44px; padding: 0 12px; border: 0; font-size: 14px; color: var(--blue); }
.check { display: flex; align-items: center; gap: 12px; min-height: 48px; margin: 8px 0 0; color: var(--text); font-size: 16px; }
.check input { width: 24px; height: 24px; accent-color: #3ddc97; margin: 0; }
.login-card .primary { width: 100%; margin-top: 14px; }

/* ---------- shell ---------- */
.app { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
.views { position: relative; flex: 1 1 0; min-height: 0; }
.view {
  position: absolute; inset: 0; display: flex; flex-direction: column; min-height: 0;
  animation: entra .18s ease-out;
}
@keyframes entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.top {
  flex: 0 0 auto; display: flex; align-items: center; gap: 4px; min-height: calc(56px + var(--sat));
  padding: var(--sat) calc(8px + var(--sar)) 0 calc(8px + var(--sal)); border-bottom: 1px solid var(--line); background: var(--bg);
}
.top-title { flex: 1 1 0; min-width: 0; font-size: 18px; padding: 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tabbar {
  flex: 0 0 auto; display: flex; background: var(--surface); border-top: 1px solid var(--line);
  padding: 0 var(--sar) var(--sab) var(--sal);
}
.app.kb .tabbar { display: none; }
.tab {
  flex: 1 1 0; min-height: var(--tab-h); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; background: transparent; border: 0; color: var(--dim); font-size: 12px; font-weight: 600; position: relative;
}
.tab[aria-current="page"] { color: var(--green); }
.tab[aria-current="page"]::before {
  content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--grad);
}
.tab-ico { position: relative; display: inline-flex; }
.badge {
  position: absolute; top: -6px; right: -12px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--red); color: #1a0509; font-size: 12px; font-weight: 800; line-height: 20px; text-align: center;
}

.update-bar, .offline-bar { flex: 0 0 auto; padding-top: var(--sat); background: var(--surface2); }
.update-bar button {
  width: 100%; min-height: 48px; border: 0; background: var(--blue); color: var(--on-accent); font-weight: 700; padding: 0 12px;
}
.offline-bar { background: #3a2a05; color: #ffd98a; text-align: center; font-size: 14px; padding: 6px 12px; }
:root[data-tema="claro"] .offline-bar { background: #fff1cc; color: #5c3b00; }
@media (prefers-color-scheme: light) { :root[data-tema="auto"] .offline-bar { background: #fff1cc; color: #5c3b00; } }

.scroll { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* ---------- conversa ---------- */
.msgs {
  flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 14px 8px;
  display: flex; flex-direction: column; gap: 10px; outline: none;
}
.vazio { margin: auto; text-align: center; color: var(--dim); }
.vazio img { border-radius: 16px; opacity: .9; margin-bottom: 8px; }
.vazio-txt { text-align: center; color: var(--dim); padding: 40px 16px; }

.msg { display: flex; flex-direction: column; max-width: 88%; }
.msg.user { align-self: flex-end; align-items: flex-end; }
.msg.assistant { align-self: flex-start; max-width: 94%; }
.bolha {
  padding: 10px 14px; border-radius: var(--radius); overflow-wrap: anywhere; word-break: break-word;
}
.msg.user .bolha { background: var(--grad); color: var(--on-accent); border-bottom-right-radius: 6px; }
.msg.user .bolha a { color: var(--on-accent); }
.msg.assistant .bolha { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.erro .bolha { border-color: var(--red); color: var(--red); }
.msg.digitando .bolha:empty::after { content: "…"; color: var(--dim); animation: pisca 1s steps(2) infinite; }
@keyframes pisca { 50% { opacity: .2; } }

.bolha > :first-child { margin-top: 0; }
.bolha > :last-child { margin-bottom: 0; }
.bolha p { margin: 0 0 .6em; }
.bolha h3, .bolha h4 { margin: .6em 0 .3em; font-size: 1.05em; }
.bolha ul, .bolha ol { margin: 0 0 .6em; padding-left: 1.3em; }
.bolha li { margin: .15em 0; }
.bolha code { font-family: var(--mono); font-size: .9em; background: var(--surface2); padding: .1em .35em; border-radius: 6px; }
.bolha pre {
  margin: .4em 0 .6em; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.4;
}
.bolha pre code { background: none; padding: 0; font-size: inherit; }
.msg.user .bolha code { background: rgba(3, 18, 27, .15); }

.chips { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin: 2px 0; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 32px; padding: 4px 12px; border-radius: 16px;
  background: var(--surface2); border: 1px solid var(--line); font-size: 14px; color: var(--dim);
}
.chip-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.iniciada { color: var(--text); border-color: var(--blue); }
.chip.iniciada .chip-ico { animation: gira 1.1s linear infinite; }
.chip.concluida { color: var(--green); border-color: rgba(61, 220, 151, .45); }
.chip.erro { color: var(--red); border-color: var(--red); }
@keyframes gira { to { transform: rotate(360deg); } }
.chip-ico { display: inline-block; }

.aprov {
  align-self: stretch; padding: 14px; border-radius: var(--radius); background: var(--surface);
  border: 2px solid var(--amber);
}
.aprov h3 { font-size: 16px; color: var(--amber); margin-bottom: 8px; }
.aprov pre {
  margin: 8px 0; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  font-family: var(--mono); font-size: 13.5px; white-space: pre-wrap; overflow-wrap: anywhere;
}
.aprov pre { max-height: 40vh; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.aprov-aviso { margin: 4px 0 8px; padding: 10px 12px; border-radius: 12px; background: var(--red); color: #1a0509; font-weight: 700; }
.aprov.substituida { opacity: .6; }
.dom { color: var(--dim); font-size: .9em; }
.aprov .motivo { color: var(--dim); font-size: 14px; }
.aprov-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.aprov-btns button { width: 100%; }
.aprov.resolvida { border-color: var(--line); }
.aprov.resolvida h3 { color: var(--dim); }
.aprov-res { margin-top: 8px; font-weight: 600; }

.fundo-btn {
  position: absolute; right: 16px; bottom: calc(var(--tab-h) + 80px + var(--sab)); z-index: 3; min-height: 44px; padding: 0 16px;
  border-radius: 22px; border: 1px solid var(--blue); background: var(--surface); color: var(--blue); font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
}
.app.kb .fundo-btn { bottom: 80px; }

.composer {
  flex: 0 0 auto; display: flex; align-items: flex-end; gap: 8px;
  padding: 8px calc(10px + var(--sar)) 10px calc(10px + var(--sal)); background: var(--bg); border-top: 1px solid var(--line);
}
.composer textarea {
  flex: 1 1 0; min-width: 0; resize: none; max-height: 150px; min-height: 48px; border-radius: 24px; padding: 11px 16px; line-height: 1.4;
}
.send, .stop {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; border: 0; display: inline-flex; align-items: center; justify-content: center;
}
.send { background: var(--grad); color: var(--on-accent); }
.send:disabled { opacity: .45; }
.stop { background: var(--red); color: #1a0509; }

/* ---------- gaveta ---------- */
.drawer-fundo { position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, .6); animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 21; width: min(86vw, 340px); background: var(--surface);
  border-right: 1px solid var(--line); display: flex; flex-direction: column;
  padding: var(--sat) 0 var(--sab) var(--sal); animation: desliza .2s ease-out;
}
@keyframes desliza { from { transform: translateX(-100%); } to { transform: none; } }
.drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 6px 16px; }
.drawer-top h2 { font-size: 18px; }
.drawer-nova { margin: 6px 16px 10px; }
.sessoes { list-style: none; margin: 0; padding: 0 8px; overflow-y: auto; flex: 1 1 0; }
.sessoes button {
  width: 100%; min-height: 56px; padding: 8px 12px; text-align: left; border: 0; border-radius: 12px; background: transparent;
  display: flex; flex-direction: column; justify-content: center;
}
.sessoes button[aria-current="true"] { background: var(--surface2); box-shadow: inset 3px 0 0 var(--green); }
.sessoes .s-tit { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sessoes .s-data { font-size: 13px; color: var(--dim); }

/* ---------- escritório ---------- */
.office-bar {
  flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: calc(4px + var(--sat)) calc(8px + var(--sar)) 4px calc(12px + var(--sal));
  border-bottom: 1px solid var(--line); min-height: 52px;
}
.office-resumo { flex: 1 1 0; min-width: 0; font-size: 13.5px; color: var(--dim); display: flex; flex-wrap: wrap; gap: 2px 10px; }
.svc { white-space: nowrap; }
.svc-ok { color: var(--green); }
.svc-aviso { color: var(--amber); }
.svc-erro { color: var(--red); }
.office-wrap { position: relative; flex: 1 1 0; min-height: 0; background: #1a1423; }
.office-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #1a1423; }
.office-wrap.cheia { position: fixed; inset: 0; z-index: 40; }
.office-sair { position: absolute; top: calc(8px + var(--sat)); right: 8px; z-index: 2; background: var(--surface); }

/* ---------- avisos ---------- */
.ptr { height: 0; overflow: hidden; text-align: center; color: var(--dim); font-size: 14px; line-height: 40px; }
.ptr.ativo { height: 40px; }
.avisos { list-style: none; margin: 0; padding: 8px 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.aviso {
  width: 100%; display: flex; gap: 12px; text-align: left; padding: 12px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--line); min-height: 64px; align-items: flex-start;
}
.aviso.nao-lida { border-color: rgba(74, 163, 255, .55); background: var(--surface2); }
.aviso.nivel-aviso { box-shadow: inset 4px 0 0 var(--amber); }
.aviso.nivel-urgente { box-shadow: inset 4px 0 0 var(--red); }
.aviso-ico { font-size: 24px; line-height: 1.2; flex: 0 0 auto; }
.aviso-corpo { flex: 1 1 0; min-width: 0; }
.aviso-tit { display: block; overflow-wrap: anywhere; }
.aviso.nao-lida .aviso-tit { font-weight: 800; }
.aviso-txt { display: block; color: var(--dim); font-size: 14px; overflow-wrap: anywhere; margin-top: 2px; }
.aviso-meta { display: block; color: var(--dim); font-size: 12.5px; margin-top: 4px; }
.aviso-ponto { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); margin-top: 8px; }
.aviso-acoes { display:flex; gap:.5rem; padding:.35rem .75rem .65rem 3.25rem; }
.aviso-acoes button { min-height:2.5rem; }

/* ---------- mais ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card .primary, .card .danger { width: 100%; margin-top: 12px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.row .primary, .row .ghost { flex: 1 1 140px; margin-top: 12px; }
.links { display: flex; gap: 8px; }
.disp { list-style: none; margin: 0; padding: 0; }
.disp li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.disp li:first-child { border-top: 0; }
.disp .d-info { flex: 1 1 0; min-width: 0; }
.disp .d-nome { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.disp .d-sub { display: block; color: var(--dim); font-size: 13px; }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 10px; background: var(--grad); color: var(--on-accent); font-weight: 700; margin-left: 6px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 16px; right: 16px; bottom: calc(var(--tab-h) + 16px + var(--sab)); z-index: 60; max-width: 420px; margin: 0 auto;
  padding: 12px 16px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--blue); text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
.toast.erro { border-color: var(--red); }

/* ---------- telas largas (teste em desktop) ---------- */
@media (min-width: 760px) {
  .app { max-width: 720px; margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  .toast { bottom: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* nomes de cor usados por módulos mais novos */
:root { --muted: var(--dim); --border: var(--line); --borda: var(--line); --accent: var(--blue); --surface-2: var(--surface2); --danger: var(--red); }

/* campos e botões compartilhados pelos módulos */
.input, select, input[type="search"], input[type="email"], input[type="tel"], input[type="date"], input[type="datetime-local"], input[type="number"] {
  width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit;
}
.quiet { min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text); }
button:disabled { opacity: .5; cursor: default; }
.danger.small, .primary.small { min-height: 44px; padding: 0 14px; font-size: 14px; }
a.small { display: inline-flex; align-items: center; }

/* janelas */
.dlg { width: min(560px, calc(100vw - 24px)); max-height: 86vh; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text); }
.dlg::backdrop { background: rgba(0, 0, 0, .6); }
.dlg-form { padding: 16px; }
.dlg-titulo { font-size: 18px; margin-bottom: 8px; overflow-wrap: anywhere; }
.dlg-pe { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.dlg-pe button { min-height: 44px; padding: 0 14px; font-size: 14px; }

/* conteúdo centralizado em tela larga, navegação lateral com todas as áreas */
.tab-extra, .nav-marca { display: none; }
@media (min-width: 900px) {
  .app { flex-direction: row; max-width: none; border: 0; }
  .views { order: 2; }
  .tabbar { order: 1; flex: 0 0 216px; flex-direction: column; overflow-y: auto; padding: 12px 8px; gap: 2px; border-top: 0; border-right: 1px solid var(--line); }
  .nav-marca { display: block; padding: 6px 12px 14px; font-size: 18px; font-weight: 800; }
  .tab, .tab-extra { display: flex; flex: 0 0 auto; flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: 14px; }
  .tab:hover { background: var(--surface2); }
  .tab[aria-current="page"] { background: var(--surface2); }
  .tab[aria-current="page"]::before { display: none; }
  .view.scroll, .view .scroll { padding-left: max(20px, calc((100% - 1080px) / 2)); padding-right: max(20px, calc((100% - 1080px) / 2)); }
}

/* offline.html */
.offline-txt { text-align: center; margin: 8px 0 18px; }
.offline-btn { width: 100%; }

/* aparência */
.seg { display: flex; gap: 8px; }
.seg button { flex: 1 1 0; min-height: 48px; border-radius: 14px; border: 1px solid var(--line); background: transparent; font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--grad); color: var(--on-accent); border-color: transparent; }
.nota { font-size: 13px; margin-top: 10px; }

/* ---------- sistema (somente leitura) ---------- */
.sis-quando { margin: 0 0 12px; }
.sis-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.sis-num { background: var(--surface2); border-radius: 12px; padding: 10px 8px; text-align: center; min-width: 0; }
.sis-num-v { display: block; font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sis-num-r { display: block; font-size: 12px; color: var(--dim); margin-top: 2px; }
.sis-num.alto .sis-num-v { color: var(--amber); }
.sis-sub { margin: 16px 0 6px; font-size: 14px; color: var(--dim); font-weight: 700; }
.medidor { height: 12px; border-radius: 6px; background: var(--surface2); overflow: hidden; border: 1px solid var(--line); }
.medidor-v { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--grad); }
.medidor.m-aviso .medidor-v { background: var(--amber); }
.medidor.m-erro .medidor-v { background: var(--red); }
.medida { margin-bottom: 14px; }
.medida-t { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.medida .nota { margin-top: 4px; }
.grafico { width: 100%; }
.grafico svg { display: block; width: 100%; height: auto; max-height: 190px; }
.grafico .gb { fill: var(--blue); }
.grafico .gb.hoje { fill: var(--green); }
.grafico .gb.alto { fill: var(--amber); }
.grafico .gl { stroke: var(--amber); stroke-width: 1; stroke-dasharray: 4 3; }
.grafico .gt { fill: var(--dim); font-size: 10px; text-anchor: middle; font-family: system-ui, sans-serif; }
.grafico .gv { fill: var(--text); font-size: 10px; text-anchor: middle; font-family: system-ui, sans-serif; font-weight: 700; }
.sis-lista { list-style: none; margin: 0; padding: 0; }
.sis-lista li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); min-width: 0; }
.sis-lista li:first-child { border-top: 0; }
.sis-lista .l-nome { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
.sis-lista .l-sub { display: block; color: var(--dim); font-size: 13px; }
.sis-lista .l-val { flex: 0 0 auto; font-variant-numeric: tabular-nums; font-weight: 600; }
.sis-lista .l-est { flex: 0 0 auto; font-weight: 800; }
.sis-lista .l-est.est-ok { color: var(--green); }
.sis-lista .l-est.est-aviso { color: var(--amber); }
.sis-lista .l-est.est-erro { color: var(--red); }
