/* Kalku — design system no padrão Connecta V3 (26/11/2026): monocromático quente (#060607 / #f0efec) com um único acento azul (#0867df),
   tipografia Geist e Geist Mono servidas pelo próprio Kalku (licença OFL em /fonts/OFL.txt). Zero fontes ou scripts de terceiros. */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(/fonts/geist-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(/fonts/geist-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/geist-mono-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/geist-mono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f0efec;
  --surface: #ffffff;
  --surface-2: #f6f5f2;
  --surface-3: #e8e7e3;
  --ink: #060607;
  --ink-2: #3b3b3f;
  --muted: #626268;
  --line: #e1dfd9;
  --line-2: #cdcac3;
  --acc: #0867df;
  --acc-strong: #0653b5;
  --acc-ink: #ffffff;
  --acc-soft: #e4edfb;
  --acc-text: #0653b5;
  --foco: #0867df;
  --dark: #060607;
  --dark-hover: #0867df;
  --dark-ink: #f0efec;
  --ok: #12703a;
  --ok-soft: #e0f2e6;
  --warn: #9a5b06;
  --warn-soft: #fbefd9;
  --bad: #b42318;
  --bad-soft: #fbe5e3;
  --info: #0653b5;
  --info-soft: #e4edfb;
  --veu: rgba(6, 6, 7, .42);
  /* situação das obrigações */
  --o-pendente: #8a8880; --o-em_andamento: #6b7bd6; --o-pronta: #0867df; --o-enviada: #3d8bf0; --o-visualizada: #22a06b;
  --o-concluida: #15803d; --o-dispensada: #b3b1aa; --o-atrasada: #d83b3b;
  /* tarefas e pedidos */
  --t-a_fazer: #8a8880; --t-fazendo: #0867df; --t-aguardando: #c27b0a; --t-concluida: #15803d;
  --p-baixa: #8a8880; --p-normal: #0867df; --p-alta: #d9730d; --p-urgente: #d83b3b;
  --c-email: #0867df; --c-whatsapp: #1fa855;
  --f: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r: 14px;
  --r-sm: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sombra: 0 1px 0 rgba(6, 6, 7, .03);
  --sombra-forte: 0 24px 60px -18px rgba(6, 6, 7, .28), 0 0 0 1px rgba(6, 6, 7, .06);
  --z-topo: 10; --z-gaveta: 30; --z-modal: 40; --z-toast: 50;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #060607; --surface: #0c0c0e; --surface-2: #121215; --surface-3: #1a1a1e; --ink: #f0efec; --ink-2: #c9c8c3; --muted: #8e8d88;
    --line: #1d1d21; --line-2: #2f2f35; --acc: #0867df; --acc-strong: #2c7ce8; --acc-ink: #ffffff; --acc-soft: rgba(61, 139, 240, .14); --acc-text: #85baff; --foco: #3d8bf0;
    --dark: #f0efec; --dark-hover: #0867df; --dark-ink: #060607; --ok: #4ade80; --ok-soft: rgba(34, 197, 94, .13); --warn: #e3a23c; --warn-soft: rgba(227, 162, 60, .13);
    --bad: #f87171; --bad-soft: rgba(248, 113, 113, .13); --info: #85baff; --info-soft: rgba(61, 139, 240, .14); --veu: rgba(0, 0, 0, .62);
    --o-pendente: #8e8d88; --o-dispensada: #55555b; --t-a_fazer: #8e8d88; --c-email: #3d8bf0;
    --sombra: 0 1px 0 rgba(0, 0, 0, .4); --sombra-forte: 0 24px 60px -18px rgba(0, 0, 0, .85), 0 0 0 1px rgba(240, 239, 236, .08);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #060607; --surface: #0c0c0e; --surface-2: #121215; --surface-3: #1a1a1e; --ink: #f0efec; --ink-2: #c9c8c3; --muted: #8e8d88;
  --line: #1d1d21; --line-2: #2f2f35; --acc: #0867df; --acc-strong: #2c7ce8; --acc-ink: #ffffff; --acc-soft: rgba(61, 139, 240, .14); --acc-text: #85baff; --foco: #3d8bf0;
  --dark: #f0efec; --dark-hover: #0867df; --dark-ink: #060607; --ok: #4ade80; --ok-soft: rgba(34, 197, 94, .13); --warn: #e3a23c; --warn-soft: rgba(227, 162, 60, .13);
  --bad: #f87171; --bad-soft: rgba(248, 113, 113, .13); --info: #85baff; --info-soft: rgba(61, 139, 240, .14); --veu: rgba(0, 0, 0, .62);
  --o-pendente: #8e8d88; --o-dispensada: #55555b; --t-a_fazer: #8e8d88; --c-email: #3d8bf0;
  --sombra: 0 1px 0 rgba(0, 0, 0, .4); --sombra-forte: 0 24px 60px -18px rgba(0, 0, 0, .85), 0 0 0 1px rgba(240, 239, 236, .08);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f); font-size: 14px; line-height: 1.5; letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; font-feature-settings: "ss01"; }
::selection { background: color-mix(in srgb, var(--acc) 28%, transparent); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--foco); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; font-weight: 550; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; }
.mono, .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.pequeno { font-size: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 15px; height: 15px; }
svg.i.lg { width: 24px; height: 24px; }
.link { background: none; border: 0; padding: 0; color: var(--acc-text); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: color-mix(in srgb, var(--acc) 35%, transparent); }

/* ---------- estrutura ---------- */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100%; }
.lateral { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 18px 12px; gap: 2px; overflow-y: auto; }
.marca { display: flex; align-items: center; gap: 10px; padding: 4px 10px 16px; font-weight: 600; font-size: 18px; letter-spacing: -0.03em; }
.marca .logo { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); display: grid; place-items: center; color: var(--bg); font-weight: 700; font-size: 16px; letter-spacing: -0.04em; box-shadow: inset 0 -2px 0 var(--acc); }
.marca small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); letter-spacing: 0; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login-form .marca small { max-width: none; }
.nav-grupo { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 16px 10px 6px; }
.nav a { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 450; transition: background .18s var(--ease), color .18s var(--ease); }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--acc-soft); color: var(--acc-text); font-weight: 550; }
.nav a[aria-current="page"] svg { color: var(--acc-text); }
.nav a .cont { margin-left: auto; font-size: 11px; font-family: var(--f-mono); background: var(--dark); color: var(--dark-ink); border-radius: 999px; padding: 1px 7px; }
.nav a .cont.alerta { background: var(--bad); color: #fff; }
.lateral .rodape { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 6px; }
.eu-card { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; min-width: 0; }
.eu-card > div { min-width: 0; }
.eu-card b { display: block; font-weight: 550; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eu-card span { font-size: 12px; color: var(--muted); }

.principal { min-width: 0; display: flex; flex-direction: column; }
.topo { position: sticky; top: 0; z-index: var(--z-topo); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); display: flex; align-items: center; gap: 10px; padding: 14px 28px; flex-wrap: wrap; }
.busca-global { flex: 1 1 280px; max-width: 480px; position: relative; }
.busca-global input[type=search] { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px 10px 38px; }
.busca-global > svg { position: absolute; left: 13px; top: 20px; transform: translateY(-50%); color: var(--muted); }
.busca-res { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sombra-forte); max-height: 440px; overflow-y: auto; z-index: 25; padding: 6px; }
.busca-res h4 { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); padding: 8px 10px 4px; font-weight: 500; }
.busca-res a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; text-decoration: none; }
.busca-res a:hover, .busca-res a.ativo { background: var(--surface-2); }
.busca-res a span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.topo .espaco { flex: 1; }
.conteudo { padding: 8px 28px 60px; display: grid; gap: 20px; align-content: start; min-width: 0; }
.conteudo > * { min-width: 0; }
#conteudo:focus { outline: none; }
.cabecalho { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 6px; }
.cabecalho h1 { font-size: 32px; line-height: 1.08; font-weight: 550; letter-spacing: -0.035em; }
.cabecalho p { color: var(--muted); margin-top: 6px; max-width: 70ch; }
.cabecalho p b { color: var(--ink); font-weight: 550; }
.acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- componentes ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line-2); background: transparent; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 500; font-size: 13.5px; text-decoration: none; white-space: nowrap; min-height: 36px; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease); color: var(--ink); }
.btn:hover { border-color: var(--acc); color: var(--acc-text); background: var(--acc-soft); }
.btn.acc { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.btn.acc:hover { background: var(--acc-strong); border-color: var(--acc-strong); color: var(--acc-ink); box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--acc) 70%, transparent); }
.btn.dark { background: var(--dark); border-color: var(--dark); color: var(--dark-ink); }
.btn.dark:hover { background: var(--acc); border-color: var(--acc); color: #fff; box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--acc) 70%, transparent); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-3); color: var(--ink); border-color: transparent; }
.btn.perigo { color: var(--bad); }
.btn.perigo:hover { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
.btn.dark.perigo { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.dark.perigo:hover { filter: brightness(1.08); box-shadow: none; }
.btn.sm { min-height: 30px; padding: 4px 11px; font-size: 13px; }
.btn.icone { padding: 0; width: 36px; }
.btn.icone.sm { width: 30px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn .carregando, .carregando { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: gira .7s linear infinite; display: inline-block; flex: none; }
@keyframes gira { to { transform: rotate(360deg); } }
.btn-wa { color: var(--c-whatsapp); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sombra); min-width: 0; }
.card-pad { padding: 18px; }
.card-tit { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.card-tit .e { display: flex; align-items: center; gap: 8px; }
.card-tit a, .card-tit button.link { text-transform: none; letter-spacing: 0; font-size: 13px; font-family: var(--f); }
.card.destaque { background: var(--dark); border-color: var(--dark); color: var(--dark-ink); }
.card.destaque .muted, .card.destaque .card-tit { color: color-mix(in srgb, var(--dark-ink) 66%, transparent); }

.campo { display: grid; gap: 5px; font-size: 12px; color: var(--muted); font-weight: 500; min-width: 0; align-content: start; }
.campo > input, .campo > select, .campo > textarea, .campo > .linha > input { color: var(--ink); font-size: 14px; font-weight: 400; }
.campo small { font-weight: 400; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], input[type=month], input[type=tel], input[type=number], input[type=url], input[type=time], input[type=datetime-local], select, textarea {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 8px 11px; min-height: 38px; width: 100%; min-width: 0; color: var(--ink);
}
textarea { resize: vertical; min-height: 84px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
input.compacto, select.compacto { min-height: 32px; padding: 4px 9px; font-size: 13px; width: auto; }
.chk { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--ink); font-weight: 400; }
.chk input { width: 16px; height: 16px; accent-color: var(--acc); flex: none; }
.grade { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.form-grade { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grade .inteiro { grid-column: 1 / -1; }
.form-grade.tres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .form-grade, .form-grade.tres { grid-template-columns: 1fr; } }
.linha { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.linha.entre { justify-content: space-between; }
.linha.fim { justify-content: flex-end; }
.pilha { display: grid; gap: 10px; align-content: start; }
.erro-campo { color: var(--bad); font-size: 12px; }
.dica { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--ink-2); display: flex; gap: 10px; align-items: flex-start; }
.dica.acc { background: var(--acc-soft); border-color: transparent; color: var(--acc-text); }
.dica.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.dica.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.dica.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.dica svg { margin-top: 1px; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 3px 10px 3px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; color: var(--ink-2); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--muted)); flex: none; }
.pill.sem-ponto { padding-left: 10px; }
.pill.sem-ponto::before { display: none; }
.pill.acc { background: var(--acc-soft); border-color: transparent; color: var(--acc-text); }
.pill.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.pill.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.pill.info { background: var(--info-soft); border-color: transparent; color: var(--info); }
.pill.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.tag { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.av { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 600; color: #fff; background: var(--c, #6d6d7c); flex: none; text-transform: uppercase; }
.av.lg { width: 34px; height: 34px; font-size: 13px; }
.av.sm { width: 22px; height: 22px; font-size: 10px; }
.canal { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-2); }
.canal i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* chips e segmentado */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 500; white-space: nowrap; color: var(--ink); }
.chip:hover { border-color: var(--line-2); }
.chip[aria-pressed="true"] { background: var(--dark); border-color: var(--dark); color: var(--dark-ink); }
.chip .n { font-family: var(--f-mono); font-size: 12px; opacity: .7; }
.chip .ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.seg { display: inline-flex; background: var(--surface-3); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 6px 13px; border-radius: 999px; cursor: pointer; font-weight: 500; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--sombra); }
.barra-filtros { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }

/* ---------- KPIs ---------- */
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.kpi { padding: 16px 18px 14px; display: grid; gap: 6px; align-content: start; }
.kpi .rot { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.kpi .val { font-size: 30px; font-weight: 550; letter-spacing: -0.04em; display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.kpi .val small { font-size: 13px; color: var(--muted); letter-spacing: 0; font-weight: 400; }
.kpi .sub { font-size: 12px; color: var(--muted); }
.kpi.alerta .val { color: var(--bad); }
.kpi.destaque { background: var(--dark); border-color: var(--dark); color: var(--dark-ink); }
.kpi.destaque .rot, .kpi.destaque .sub, .kpi.destaque .val small { color: color-mix(in srgb, var(--dark-ink) 66%, transparent); }
a.kpi { text-decoration: none; transition: border-color .12s; }
a.kpi:hover { border-color: var(--acc); }
.progresso { position: relative; height: 5px; background: var(--surface-3); border-radius: 4px; margin-top: 6px; overflow: hidden; }
.progresso > i { position: absolute; inset: 0 auto 0 0; background: var(--acc); border-radius: 4px; }
.progresso.ok > i { background: var(--ok); }
.kpi.destaque .progresso { background: color-mix(in srgb, var(--dark-ink) 18%, transparent); }
.kpi.destaque .progresso > i { background: var(--acc); }

.paineis { display: grid; gap: 14px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
@media (max-width: 1180px) { .span-3, .span-4, .span-5, .span-7, .span-8 { grid-column: span 12; } .span-6 { grid-column: span 12; } }

/* gráfico de barras */
.grafico { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 6px; height: 190px; padding-top: 6px; }
.eixo-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; line-height: 12px; color: var(--muted); font-family: var(--f-mono); text-align: right; margin: -6px 0; }
.barras-v { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; align-items: end; border-bottom: 1px solid var(--line); }
.barras-v::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), var(--surface-3) calc(25% - 1px), var(--surface-3) 25%); pointer-events: none; }
.coluna { position: relative; display: flex; flex-direction: column-reverse; height: 100%; justify-content: flex-start; }
.coluna .seg-b { width: 100%; max-width: 24px; margin: 0 auto; }
.coluna .seg-b:last-child { border-radius: 4px 4px 0 0; }
.coluna .dia { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--muted); font-family: var(--f-mono); white-space: nowrap; }
.coluna:hover .seg-b { filter: brightness(.92); }
.legenda { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-top: 26px; }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.legenda i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }

.lista-barras { display: grid; gap: 11px; }
.lb { display: grid; grid-template-columns: minmax(90px, 170px) minmax(0, 1fr) 70px; gap: 10px; align-items: center; font-size: 13px; }
.lb .t { height: 8px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.lb .t i { display: block; height: 100%; background: var(--c, var(--acc)); border-radius: 4px; }
.lb .n { text-align: right; font-family: var(--f-mono); font-size: 12px; }

.relogio-grande { display: flex; align-items: baseline; gap: 10px; }
.relogio-grande b { font-size: 46px; font-weight: 550; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }

/* listas simples */
.lista { display: grid; }
.lista > .it { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.lista > .it:last-child { border-bottom: 0; }
.lista > .it.clic { cursor: pointer; padding-left: 8px; padding-right: 8px; border-radius: 8px; }
.lista > .it.clic:hover { background: var(--surface-2); }
.lista .tt { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lista .st { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- tabelas ---------- */
.tabela-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 500; font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); position: sticky; top: 0; z-index: 1; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr.clic { cursor: pointer; }
tbody tr.clic:hover td { background: var(--surface-2); }
tbody tr.sel td { background: var(--acc-soft); }
tbody tr:last-child td { border-bottom: 0; }
td.nome b { display: block; font-weight: 550; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td.nome span { font-size: 12px; color: var(--muted); }
td.n, th.n { text-align: right; font-family: var(--f-mono); white-space: nowrap; }
td.chk-col, th.chk-col { width: 36px; padding-right: 0; }
td.acoes-col { text-align: right; white-space: nowrap; }
.paginacao { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.barra-lote { position: sticky; bottom: 16px; z-index: 5; background: var(--dark); color: var(--dark-ink); border-radius: 999px; padding: 8px 8px 8px 18px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; box-shadow: var(--sombra-forte); }
.barra-lote .btn { background: transparent; border-color: color-mix(in srgb, var(--dark-ink) 25%, transparent); color: var(--dark-ink); }
.barra-lote .btn:hover { background: color-mix(in srgb, var(--dark-ink) 12%, transparent); }
.barra-lote .btn.acc { background: var(--acc); border-color: var(--acc); color: #fff; }
.barra-lote select { background: transparent; border-color: color-mix(in srgb, var(--dark-ink) 25%, transparent); color: var(--dark-ink); min-height: 32px; padding: 4px 10px; width: auto; border-radius: 999px; }
.barra-lote select option { color: var(--ink); background: var(--surface); }

.filtros-av { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); padding: 14px 18px; border-bottom: 1px solid var(--line); }

/* ---------- gaveta ---------- */
.veu { position: fixed; inset: 0; background: var(--veu); z-index: var(--z-gaveta); }
.gaveta { position: fixed; top: 0; right: 0; bottom: 0; width: min(780px, 100%); background: var(--bg); z-index: calc(var(--z-gaveta) + 1); display: flex; flex-direction: column; box-shadow: var(--sombra-forte); }
@media (prefers-reduced-motion: no-preference) { .gaveta { animation: entra .2s ease-out; } @keyframes entra { from { transform: translateX(30px); opacity: .5; } } }
.g-cab { background: var(--surface); border-bottom: 1px solid var(--line); padding: 18px 22px 0; display: grid; gap: 10px; position: relative; }
.g-cab h2 { font-size: 23px; line-height: 1.15; letter-spacing: -0.03em; padding-right: 44px; overflow-wrap: anywhere; }
.g-cab .sub { color: var(--muted); font-size: 13px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.g-fechar { position: absolute; top: 14px; right: 16px; }
.g-corpo { overflow-y: auto; padding: 18px 22px 48px; display: grid; gap: 14px; align-content: start; flex: 1; }
.abas { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.abas button { border: 0; background: none; padding: 10px 12px; cursor: pointer; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.abas button .n { font-family: var(--f-mono); font-size: 11px; background: var(--surface-3); border-radius: 999px; padding: 0 6px; color: var(--ink-2); }
.abas button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--acc); }
.abas.caixa { border-bottom: 1px solid var(--line); }
.dados { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 14px; font-size: 13px; margin: 0; }
.dados dt { color: var(--muted); }
.dados dd { margin: 0; overflow-wrap: anywhere; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.linha-tempo { list-style: none; margin: 0; padding: 0; display: grid; }
.linha-tempo li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.linha-tempo li:last-child { border-bottom: 0; }
.linha-tempo .ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); }
.linha-tempo .ic.acc { background: var(--acc-soft); color: var(--acc-text); }
.linha-tempo .ic.ok { background: var(--ok-soft); color: var(--ok); }
.linha-tempo .ic.bad { background: var(--bad-soft); color: var(--bad); }
.linha-tempo .meta { font-size: 12px; color: var(--muted); }
.linha-tempo .txt { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 3px; }

/* conversa (pedidos dos clientes, comentários) */
.conversa { display: grid; gap: 10px; }
.msg { max-width: 85%; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; justify-self: start; }
.msg.minha { justify-self: end; background: var(--acc-soft); border-color: transparent; }
.msg .meta { font-size: 11px; color: var(--muted); margin-bottom: 3px; white-space: normal; }

/* ---------- área de soltar arquivos ---------- */
.soltar { border: 2px dashed var(--line-2); border-radius: var(--r); padding: 32px 20px; text-align: center; display: grid; gap: 8px; justify-items: center; background: var(--surface); cursor: pointer; transition: border-color .12s, background .12s; }
.soltar:hover, .soltar.sobre { border-color: var(--acc); background: var(--acc-soft); }
.soltar b { font-size: 16px; font-weight: 550; }
.soltar .ic-grande { width: 48px; height: 48px; border-radius: 14px; background: var(--acc-soft); color: var(--acc-text); display: grid; place-items: center; }
.soltar.compacta { padding: 16px; }

/* confiança da leitura */
.conf { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; }
.conf i { width: 8px; height: 8px; border-radius: 50%; }
.conf.alta i { background: var(--ok); } .conf.media i { background: var(--warn); } .conf.baixa i { background: var(--bad); }

/* ---------- kanban ---------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: start; }
.kcol { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); display: grid; align-content: start; min-height: 220px; }
.kcol.alvo { outline: 2px dashed var(--acc); outline-offset: -4px; }
.kcol-cab { padding: 12px 14px 10px; border-top: 4px solid var(--c); border-radius: var(--r) var(--r) 0 0; display: flex; justify-content: space-between; align-items: center; }
.kcol-cab b { font-weight: 550; }
.kcol-cab span { font-size: 12px; color: var(--muted); font-family: var(--f-mono); }
.kcards { display: grid; gap: 8px; padding: 4px 10px 12px; }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: grab; display: grid; gap: 6px; box-shadow: var(--sombra); }
.kcard:active { cursor: grabbing; }
.kcard.arrastando { opacity: .5; }
.kcard b { font-weight: 550; overflow-wrap: anywhere; }
.kcard .cli { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kcard .rod { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.kcard .rod .e { display: flex; gap: 8px; align-items: center; }
.prazo.atras { color: var(--bad); font-weight: 550; }
.prazo.hoje { color: var(--warn); font-weight: 550; }
.prio { width: 8px; height: 8px; border-radius: 50%; background: var(--c); display: inline-block; }

/* ---------- agenda (mês) ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal .sem { padding: 8px 10px; font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.cal .dia { min-height: 118px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px 7px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; min-width: 0; }
.cal .dia:hover { background: var(--surface-2); }
.cal .dia.fora { background: var(--surface-2); color: var(--muted); }
.cal .dia.fim-semana { background: color-mix(in srgb, var(--surface-2) 60%, var(--surface)); }
.cal .dia.hoje .d { background: var(--acc); color: #fff; }
.cal .dia.sel { box-shadow: inset 0 0 0 2px var(--acc); }
.cal .d { font-family: var(--f-mono); font-size: 12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.cal .ev { font-size: 11px; padding: 2px 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 3px solid var(--c, var(--muted)); }
.cal .ev.feito { opacity: .55; text-decoration: line-through; }
.cal .ev.feriado { background: var(--warn-soft); color: var(--warn); border-left-color: var(--warn); }
.cal .mais { font-size: 11px; color: var(--muted); }
@media (max-width: 800px) { .cal .dia { min-height: 64px; } .cal .ev { display: none; } .cal .dia.tem::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); } }

/* ---------- modal, toast, avisos ---------- */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); background: var(--veu); display: grid; place-items: center; padding: 16px; }
.modal-caixa { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px; display: grid; gap: 14px; box-shadow: var(--sombra-forte); }
.modal-caixa.largo { width: min(860px, 100%); }
.modal-caixa.enorme { width: min(1180px, 100%); }
.modal-caixa h2 { font-size: 21px; letter-spacing: -0.03em; }
.modal-rod { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: var(--z-toast); display: grid; gap: 8px; max-width: min(420px, calc(100vw - 40px)); }
.toast { background: var(--dark); color: var(--dark-ink); border-radius: 12px; padding: 11px 14px; display: flex; gap: 12px; align-items: center; box-shadow: var(--sombra-forte); font-size: 13px; }
.toast.erro { background: var(--bad); color: #fff; }
.toast button { background: var(--acc); color: #fff; border: 0; border-radius: 999px; padding: 4px 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.sino { position: relative; }
.sino .bolinha { position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 10px; display: grid; place-items: center; padding: 0 4px; font-weight: 600; }
.pop-avisos { position: absolute; right: 0; top: calc(100% + 8px); width: min(380px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sombra-forte); max-height: 440px; overflow-y: auto; z-index: 45; }
.pop-avisos .pop-cab { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.pop-avisos .pop-cab b { font-size: 13px; font-weight: 600; }
.veu-menu { display: none; }
.pop-avisos .it { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13px; cursor: pointer; display: grid; gap: 3px; }
.pop-avisos .it:hover { background: var(--surface-2); }
.pop-avisos .it.novo { background: var(--acc-soft); box-shadow: inset 2px 0 0 var(--acc); }
.pop-avisos .it time { font-size: 11px; color: var(--muted); }
.vazio { text-align: center; padding: 36px 18px; color: var(--muted); display: grid; gap: 8px; justify-items: center; }
.vazio b { color: var(--ink); font-weight: 550; font-size: 15px; }
.vazio.pequeno { padding: 18px; }
.esqueleto { background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3)); background-size: 200% 100%; border-radius: 8px; height: 14px; animation: brilho 1.2s infinite; }
@keyframes brilho { to { background-position: -200% 0; } }

.banner-avisos { margin: 0 28px 6px; background: var(--acc-soft); color: var(--acc-text); border: 1px solid color-mix(in srgb, var(--acc) 22%, transparent); border-radius: 12px; padding: 9px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.banner-avisos .e { display: flex; align-items: center; gap: 8px; }
.qr-box { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.qr-box img { width: 220px; height: 220px; padding: 10px; background: #ffffff; border-radius: 12px; border: 1px solid var(--line); object-fit: contain; }
@media (max-width: 900px) { .banner-avisos { margin: 0 16px 6px; } }
/* ---------- login ---------- */
.login { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.login-form { display: grid; place-items: center; padding: 32px 20px; background: var(--surface); }
.login-form form { width: min(380px, 100%); display: grid; gap: 14px; }
.login-form h1 { font-size: 34px; font-weight: 550; letter-spacing: -0.04em; }
.login-arte { background: #060607; color: #f0efec; padding: 48px 56px; display: grid; align-content: space-between; position: relative; overflow: hidden; isolation: isolate; }
.login-arte::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(240, 239, 236, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(240, 239, 236, .045) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 80%); }
.login-arte h2 { font-size: clamp(32px, 3.4vw, 46px); font-weight: 550; line-height: 1.04; letter-spacing: -0.045em; max-width: 15ch; position: relative; }
.login-arte h2 em { font-style: normal; color: #3d8bf0; }
.login-arte ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; color: rgba(240, 239, 236, .7); position: relative; max-width: 46ch; }
.login-arte li { display: flex; gap: 12px; align-items: center; }
.login-arte li svg { color: #3d8bf0; flex: none; }
.login-arte .pill.acc { background: rgba(6, 6, 7, .55); border: 1px solid rgba(240, 239, 236, .14); color: rgba(240, 239, 236, .85); font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 14px; }
.login-arte .grade-pontos { position: absolute; left: 56px; right: 56px; bottom: 40px; height: 1px; background: linear-gradient(90deg, rgba(240, 239, 236, .2), transparent); }
.login-arte .brilho { position: absolute; z-index: -1; width: 620px; height: 620px; right: -220px; top: -220px; background: radial-gradient(closest-side, rgba(8, 103, 223, .38), transparent); filter: blur(10px); }
.login-form .btn.dark { min-height: 46px; font-size: 14.5px; }
@media (max-width: 860px) { .login { grid-template-columns: 1fr; } .login-arte { display: none; } }

/* páginas públicas (link expirado) */
.aviso-publico { display: grid; place-items: center; padding: 20px; }
.cartao-aviso { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px; max-width: 440px; display: grid; gap: 10px; text-align: center; justify-items: center; box-shadow: var(--sombra); }
.cartao-aviso h1 { font-size: 24px; }
.cartao-aviso p { color: var(--muted); }
.marca-mini { width: 44px; height: 44px; border-radius: 13px; background: var(--ink); color: var(--bg); box-shadow: inset 0 -3px 0 var(--acc); display: grid; place-items: center; font-weight: 700; font-size: 22px; }

/* ---------- portal do cliente ---------- */
.portal { min-height: 100%; display: grid; grid-template-rows: auto 1fr auto; }
.portal-topo { background: var(--surface); border-bottom: 1px solid var(--line); }
.portal-topo .in { max-width: 1040px; margin: 0 auto; padding: 14px 20px 0; display: grid; gap: 12px; }
.portal-topo .cab { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.portal-topo .esc { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.portal-main { max-width: 1040px; width: 100%; margin: 0 auto; padding: 22px 20px 60px; display: grid; gap: 18px; align-content: start; }
.portal, .portal-main, .portal-topo .in, .portal-acoes { grid-template-columns: minmax(0, 1fr); }
.portal-acoes .btn { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.portal-verificacao { max-width: 680px; }
.portal-verificacao [data-item]:empty { display: none; }
.portal-main h1 { font-size: 30px; font-weight: 550; letter-spacing: -0.035em; }
.guia-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 16px 18px; }
.guia-card.foco { box-shadow: 0 0 0 2px var(--acc), var(--sombra); }
.guia-card .valor { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.guia-card .acoes { justify-content: flex-end; }
.linha-dig { font-family: var(--f-mono); font-size: 12px; background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: 8px; padding: 6px 10px; overflow-wrap: anywhere; grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.portal-rodape { text-align: center; color: var(--muted); font-size: 12px; padding: 20px; }
@media (max-width: 640px) { .guia-card { grid-template-columns: 1fr; } .guia-card .acoes { justify-content: flex-start; } }

/* ---------- atendimento (WhatsApp) ---------- */
.atd { display: grid; grid-template-columns: 330px minmax(0, 1fr); height: calc(100dvh - 120px); min-height: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.atd.com-painel { grid-template-columns: 330px minmax(0, 1fr) 290px; }
.atd-lista { display: flex; flex-direction: column; min-height: 0; min-width: 0; border-right: 1px solid var(--line); }
.atd-lista-cab { display: grid; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.atd-lista-cab > * { min-width: 0; }
.atd-lista-cab h1 { font-size: 22px; }
.atd-lista-cab .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.atd-lista-cab .chip { flex: none; }
.atd-filtros { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.atd-filtros input[type=search], .atd-filtros .chk { grid-column: 1 / -1; }
.atd-filtros select { width: 100%; min-width: 0; }
.atd-itens { overflow-y: auto; flex: 1; }
.atd-item { display: grid; gap: 4px; width: 100%; padding: 12px 14px; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font: inherit; cursor: pointer; }
.atd-item > * { min-width: 0; }
.atd-item:hover { background: var(--surface-2); }
.atd-item.ativo { background: var(--acc-soft); }
.atd-item-l1, .atd-item-l2 { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.atd-item-l1 b, .atd-prev { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.atd-item time, .atd-prev { font-size: 12px; color: var(--muted); }
.atd-item time { flex: none; }
.atd-item-l3 { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.atd-nao-lidas { flex: none; background: var(--bad); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.atd-conversa { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
.atd-vazio { margin: auto; }
.atd-cab { display: flex; gap: 10px; align-items: center; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.atd-quem { display: grid; flex: 1; min-width: 0; }
.atd-quem > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atd-barra { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.atd-barra select { width: auto; max-width: 190px; }
.atd-msgs { flex: 1; min-height: 80px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.atd-msgs .msg { align-self: flex-start; max-width: min(85%, 560px); white-space: normal; }
.atd-txt, .atd-transcricao { white-space: pre-wrap; }
.atd-msgs .msg.minha { align-self: flex-end; }
.atd-msgs .msg.nota { align-self: center; background: var(--warn-soft); border-color: transparent; }
.atd-msgs .msg.marcada { outline: 2px solid var(--acc); }
.atd-sistema { align-self: center; text-align: center; font-size: 12px; color: var(--muted); max-width: 90%; overflow-wrap: anywhere; }
.atd-entrega.lida { color: var(--info); }
.atd-entrega.falhou { color: var(--bad); }
.atd-midia { display: grid; gap: 6px; margin-top: 4px; }
.atd-midia-area img { max-width: 100%; max-height: 320px; border-radius: 10px; }
.atd-midia-area audio { width: 100%; min-width: 220px; }
.atd-acoes { flex-wrap: wrap; gap: 4px; }
.atd-transcricao { margin-top: 6px; font-size: 13px; color: var(--ink-2); border-left: 2px solid var(--line-2); padding-left: 8px; }
.atd-selecao { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 14px; background: var(--acc-soft); }
.atd-compor { display: grid; gap: 8px; padding: 10px 14px; background: var(--surface); border-top: 1px solid var(--line); }
.atd-compor.nota { background: var(--warn-soft); }
.atd-compor .linha { flex-wrap: wrap; }
.atd-sugestoes { display: grid; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.atd-sugestoes[hidden] { display: none; }
.atd-sugestoes button { border: 0; background: none; text-align: left; padding: 8px 12px; cursor: pointer; font: inherit; color: inherit; }
.atd-sugestoes button:hover { background: var(--surface-2); }
.atd-painel { display: none; min-width: 0; border-left: 1px solid var(--line); background: var(--surface); overflow-y: auto; }
.atd.com-painel .atd-painel { display: block; }
.atd-painel-cab { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.atd-bloco { padding: 12px 14px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; overflow-wrap: anywhere; justify-items: start; }
.atd-bloco > .campo, .atd-bloco > ul { width: 100%; }
.atd-bloco h3 { font-size: 13px; }
.atd-bloco ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.atd-bloco li { display: grid; justify-items: start; }
.atd-rapidas { display: grid; gap: 6px; max-height: 320px; overflow-y: auto; margin: 8px 0; }
.atd-rapida { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; text-align: left; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 12px; background: var(--surface); color: inherit; font: inherit; overflow-wrap: anywhere; }
button.atd-rapida { cursor: pointer; }
.atd-rapida > span:not(.pill) { flex: 1 1 60%; min-width: 0; }
.atd-voltar { display: none; }
@media (max-width: 1180px) {
  .atd, .atd.com-painel { grid-template-columns: 290px minmax(0, 1fr); }
  .atd.com-painel .atd-painel { position: fixed; inset: 0 0 0 auto; width: min(360px, 100%); z-index: 33; box-shadow: var(--sombra-forte); }
}
@media (max-width: 900px) {
  .atd, .atd.com-painel { display: block; height: auto; min-height: 0; overflow: visible; }
  .atd-lista { border-right: 0; }
  .atd-conversa { display: none; }
  .atd.com-conversa .atd-conversa { display: flex; position: fixed; inset: 0; z-index: 32; }
  .atd.com-painel .atd-painel { width: 100%; }
  .atd-voltar { display: inline-flex; }
  .atd-barra { flex-wrap: nowrap; overflow-x: auto; }
  .atd-barra > * { flex: none; }
}

/* ---------- responsivo ---------- */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .veu-menu { position: fixed; inset: 0; background: var(--veu); z-index: 34; }
  .app.menu-aberto .veu-menu { display: block; }
  .lateral { position: fixed; inset: 0 auto 0 0; width: min(280px, 84vw); height: 100dvh; z-index: 35; transform: translateX(-105%); transition: transform .2s ease-out; box-shadow: var(--sombra-forte); }
  .app.menu-aberto .lateral { transform: none; }
  .topo { padding: 10px 14px; gap: 8px; backdrop-filter: none; background: var(--bg); border-bottom: 1px solid var(--line); }
  .topo .busca-global { order: 10; flex: 1 0 100%; max-width: none; }
  .topo .espaco { flex: 1; }
  .pop-avisos { position: fixed; left: 12px; right: 12px; top: 62px; width: auto; max-height: min(70dvh, 460px); z-index: 45; }
  .conteudo { padding: 8px 14px 60px; }
  .banner-avisos { margin: 0 14px 6px; }
  .cabecalho h1 { font-size: 26px; }
  .so-desktop { display: none !important; }
  .dados { grid-template-columns: 1fr; gap: 2px 0; }
  .dados dd { margin-bottom: 8px; }
  .lb { grid-template-columns: minmax(80px, 120px) minmax(0, 1fr) 54px; gap: 8px; }
  .modal { padding: 10px; }
  .modal-caixa { padding: 18px; max-height: calc(100dvh - 20px); }
  .toasts { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .barra-lote { border-radius: 16px; padding: 10px 12px; }
}
/* celular: alvos de toque de 44 px e campos com 16 px (o iOS dá zoom automático abaixo disso) — R261119-VIS-11 */
@media (max-width: 640px) {
  .btn.icone, .btn.icone.sm { min-width: 44px; min-height: 44px; }
  input:not([type]), input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], input[type=month], input[type=tel], input[type=number], input[type=url], select, textarea,
  .campo > input, .campo > select, .campo > textarea, .campo > .linha > input, input.compacto, select.compacto { font-size: 16px; }
  input:not([type=checkbox]):not([type=radio]):not([type=file]), select, select.compacto { min-height: 44px; }
}
/* celular: botões, chips e links de texto com área de toque confortável (VIS-11, R2611-VIS-KALKU-01 a 04) */
@media (max-width: 640px) {
  .btn, .btn.sm { min-height: 44px; }
  /* R261130-VIS-KALKU-01: menu lateral e caixas de seleção (mínimo de 24 px, WCAG 2.5.8) */
  .nav a { min-height: 44px; }
  input[type=checkbox], input[type=radio] { width: 24px; height: 24px; }
  td.chk-col, th.chk-col { width: 44px; }
  .chip, .seg button, .abas button { min-height: 40px; }
  .lateral .rodape .btn, .lateral .rodape button { min-height: 44px; }
  a.link, button.link, .login-form p a, .conteudo a:not([class]) { display: inline-block; min-height: 24px; padding-block: 3px; line-height: 18px; }
}
@media (min-width: 901px) { .so-mobile { display: none !important; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .lateral, .topo, .acoes, .barra-lote { display: none !important; } .app { display: block; } body { background: #fff; } }

/* ---------- ferramentas do escritório (honorários, contratos, escala, mural) ---------- */
fieldset.sem-borda { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.sem-borda legend { padding: 0; margin-bottom: 6px; }
.hon-valor { font-size: 38px; font-weight: 550; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hon-memo { display: grid; gap: 4px; margin: 14px 0 10px; font-size: 13px; border-top: 1px solid var(--line); padding-top: 10px; }
.hon-memo > div { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); }
.hon-memo > div span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hon-memo .tot { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 4px; font-weight: 600; color: var(--ink); }
.hon-servicos { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.hon-servicos .chk { align-items: flex-start; }
.cnae-busca { position: relative; }
.cnae-res { position: absolute; z-index: 5; top: 100%; left: 0; right: 0; max-height: 300px; overflow: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); box-shadow: var(--sombra-forte); padding: 4px; display: grid; }
.cnae-res button { display: grid; grid-template-columns: auto 1fr; gap: 10px; text-align: left; border: 0; background: none; padding: 8px; border-radius: 8px; cursor: pointer; color: var(--ink); font-size: 13px; }
.cnae-res button:hover, .cnae-res button:focus-visible { background: var(--surface-2); }
.cnae-res code { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
table.faixas input, .tabela-wrap td > input[type=text] { min-width: 90px; }
.ferr-quadro { width: 100%; min-height: calc(100vh - 210px); border: 0; border-radius: var(--r); background: var(--surface); display: block; }
.ferr-lista { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ferr-lista a { text-decoration: none; color: inherit; display: grid; gap: 6px; padding: 16px; }
.ferr-lista a:hover { border-color: var(--line-2); }
.ferr-lista b { font-weight: 600; display: flex; gap: 8px; align-items: center; }
.modelo-corpo { font-family: var(--f-mono); font-size: 12.5px; min-height: 340px; }
.recado { padding: 14px 16px; display: grid; gap: 8px; }
.recado.fixado { border-color: var(--acc); }
.recado .txt { white-space: pre-wrap; overflow-wrap: anywhere; }
/* escala de folgas: grade do mês que nunca passa da largura da tela */
.esc-layout { display: grid; gap: 14px; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
@media (max-width: 900px) { .esc-layout { grid-template-columns: minmax(0, 1fr); } }
.esc-funcs { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 900px) { .esc-funcs { flex-direction: row; overflow-x: auto; padding-bottom: 4px; } .esc-funcs > button { flex: 0 0 auto; max-width: 14rem; } }
.esc-funcs > button { text-align: left; border: 1px solid transparent; background: none; border-radius: 10px; padding: 8px 10px; cursor: pointer; color: var(--ink); display: grid; gap: 4px; min-width: 0; }
.esc-funcs > button[aria-pressed="true"] { background: var(--dark); color: var(--dark-ink); }
.esc-funcs > button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.esc-pincel { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.esc-pincel button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; font-size: 11px; min-width: 0; }
.esc-pincel button[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.esc-pincel button span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.esc-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; width: 100%; max-width: 28rem; margin: 0 auto; }
.esc-cal .sem { text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); }
.esc-cal .sem.dom { color: var(--bad); }
.esc-dia { aspect-ratio: 1; min-width: 0; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; font-size: 14px; line-height: 1; padding: 0; position: relative; }
button.esc-dia { cursor: pointer; }
.esc-dia small { font-size: 10px; font-weight: 700; margin-top: 3px; }
.esc-dia.destaque { background: var(--bad-soft); color: var(--bad); }
.esc-dia.feriado::after { content: ""; position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--warn); }
.cod { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 26px; padding: 2px 6px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.cod-T, .esc-dia.cod-T { background: var(--surface-3); color: var(--ink-2); }
.cod-F, .esc-dia.cod-F { background: var(--ok-soft); color: var(--ok); }
.cod-X, .esc-dia.cod-X { background: var(--bad-soft); color: var(--bad); }
.cod-AT, .esc-dia.cod-AT { background: var(--warn-soft); color: var(--warn); }
.cod-FE, .esc-dia.cod-FE { background: var(--info-soft); color: var(--info); }
.esc-resumo { font-size: 13px; }
.esc-resumo td { vertical-align: top; }
@media (max-width: 640px) { .hon-valor { font-size: 32px; } .esc-dia { font-size: 12px; border-radius: 6px; } .esc-dia small { font-size: 9px; } }
@media print { .lateral, .topo, .banner-avisos, .nao-imprimir { display: none !important; } .principal, .conteudo { padding: 0 !important; margin: 0 !important; } }

/* ---------- Notícias (28/11/2026): uma cor por tipo, capa com imagem ou cor do tema ---------- */
.not-filtros { display: flex; flex-wrap: wrap; gap: 8px; }
.not-filtro { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.not-filtro i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.not-filtro .n { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.not-filtro:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.not-filtro[aria-selected="true"] { background: color-mix(in srgb, var(--c) 14%, var(--surface)); border-color: color-mix(in srgb, var(--c) 60%, var(--line)); color: var(--ink); }
.not-filtro[aria-selected="true"] .n { color: var(--ink-2); }
.not-grade { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.not-card { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; border-top: 3px solid var(--c); transition: transform .18s, box-shadow .18s; }
.not-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -14px color-mix(in srgb, var(--c) 55%, transparent); }
.not-card.destaque { grid-column: span 2; }
@media (max-width: 700px) { .not-card.destaque { grid-column: auto; } }
.not-capa { position: relative; display: block; aspect-ratio: 16 / 9; background: color-mix(in srgb, var(--c) 12%, var(--surface-2)); overflow: hidden; }
.not-card.destaque .not-capa { aspect-ratio: 21 / 9; }
.not-capa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; z-index: 1; }
.not-capa img.ok { opacity: 1; }
.not-capa-vazia { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: color-mix(in srgb, var(--c) 75%, var(--ink)); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c) 28%, transparent), transparent 60%), radial-gradient(90% 80% at 100% 100%, color-mix(in srgb, var(--c) 18%, transparent), transparent 60%); }
.not-capa-vazia svg { width: 28px; height: 28px; opacity: .85; }
.not-corpo { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; min-width: 0; }
.not-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.not-tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; color: color-mix(in srgb, var(--c) 80%, var(--ink)); background: color-mix(in srgb, var(--c) 14%, var(--surface)); }
.not-titulo { color: var(--ink); font-weight: 600; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; }
.not-titulo:hover { color: color-mix(in srgb, var(--c) 70%, var(--ink)); text-decoration: underline; }
.not-card.destaque .not-titulo { font-size: 1.15rem; }
.not-resumo { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.not-meta { margin-top: auto; display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); padding-top: 6px; }
.not-meta b { color: var(--ink-2); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .not-card, .not-capa img { transition: none; } .not-card:hover { transform: none; } }
