/* =========================================================================
   Matheria.ai · MT1 — Design system
   Fonte: Manual da Marca v1.0 (nov/2026)
   ========================================================================= */
:root {
  /* Paleta institucional */
  --white: #FFFFFF;
  --black: #0B0D12;
  --blue: #087CFF;          /* Azul elétrico · destaques */
  --cyan: #00C7E8;          /* Ciano · acento e .ai */
  --navy: #0A1930;          /* Azul profundo · fundos escuros */
  --bg: #F3F5F8;            /* Cinza de fundo */
  --text-2: #596579;        /* Cinza de texto */
  --grad: linear-gradient(90deg, #087CFF 0%, #00C7E8 100%);

  /* Neutros de interface */
  --line: #E4E8EE;
  --line-2: #EEF1F5;
  --hover: #F6F8FB;
  --blue-50: #EAF3FF;
  --blue-100: #D6E8FF;
  --green: #0FAD76;
  --green-50: #E7F7F0;
  --amber: #D8A72A;
  --amber-50: #FBF4E1;
  --red: #E5484D;
  --red-50: #FDECEC;
  --wa-green: #1F5E4A;      /* cabeçalho WhatsApp no site */
  --wa-bubble-out: #D9FDD3;
  --wa-bg: #EFEAE2;

  /* Cores dos módulos (manual p.10) */
  --m-compras: #087CFF;
  --m-vendas: #0FAD76;
  --m-qualidade: #8C98A8;
  --m-crm: #9254DE;
  --m-importacao: #00AFA5;
  --m-financeiro: #D8A72A;
  --m-marketplace: #EB4C97;
  --m-logistica: #F47A26;
  --m-estoque: #446B91;
  --m-fiscal: #BD7861;

  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(11,13,18,.05), 0 4px 16px rgba(11,13,18,.06);
  --shadow-lg: 0 10px 40px rgba(11,13,18,.18);
  --sidebar-w: 248px;
  --topbar-h: 56px;
  --font: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
.muted { color: var(--text-2); }
.small { font-size: 12px; }
.xs { font-size: 11px; }
.mono { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; }
.row { display: flex; align-items: center; gap: 8px; }
.col { display: flex; flex-direction: column; gap: 8px; }
.hidden { display: none !important; }

/* ---------- Layout ---------- */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; height: 100vh; }
.app.collapsed { grid-template-columns: 64px 1fr; }
.sidebar {
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 0; background: var(--white);
}
.sidebar .brand { height: var(--topbar-h); display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 18px; }
.sidebar .brand img { height: 22px; }
.sidebar nav { overflow-y: auto; padding: 8px 10px 24px; flex: 1; }
.nav-group { margin-top: 10px; }
.nav-group > .nav-head {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: none; border: 0; padding: 6px 8px; border-radius: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--black); text-align: left;
}
.nav-group > .nav-head:hover { background: var(--hover); }
.nav-group > .nav-head img { width: 18px; height: 18px; }
.nav-group > .nav-head .chev { margin-left: auto; transition: transform .15s; color: var(--text-2); }
.nav-group.closed > .nav-head .chev { transform: rotate(-90deg); }
.nav-group.closed .nav-items { display: none; }
.nav-items { display: flex; flex-direction: column; gap: 1px; margin-top: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 34px;
  border-radius: 8px; color: #2B3340; font-size: 13.5px;
}
.nav-item:hover { background: var(--hover); }
.nav-item.active { background: var(--blue); color: #fff; }
.nav-item .tag { margin-left: auto; font-size: 10px; padding: 1px 6px; border-radius: 99px; background: var(--line-2); color: var(--text-2); font-weight: 600; }
.nav-item.active .tag { background: rgba(255,255,255,.25); color: #fff; }
.app.collapsed .nav-item span, .app.collapsed .nav-head span, .app.collapsed .nav-head .chev, .app.collapsed .brand img, .app.collapsed .nav-item .tag { display: none; }
.app.collapsed .nav-item { padding: 8px; justify-content: center; }
.app.collapsed .nav-items { display: flex !important; }
.sidebar .foot { border-top: 1px solid var(--line); padding: 10px 14px; font-size: 11.5px; color: var(--text-2); }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.topbar {
  height: var(--topbar-h); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 0 20px; flex-shrink: 0;
}
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text-2); min-width: 160px; }
.crumbs b { color: var(--black); font-weight: 500; }
.searchbox {
  flex: 1; max-width: 420px; margin: 0 auto; display: flex; align-items: center; gap: 8px;
  background: var(--bg); border-radius: 8px; padding: 0 12px; height: 34px; color: var(--text-2); cursor: text;
}
.searchbox kbd { margin-left: auto; font-family: inherit; font-size: 11px; background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.topbar .actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 0; background: none; color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center; position: relative;
}
.icon-btn:hover { background: var(--hover); color: var(--black); }
.icon-btn .dot { position: absolute; top: 3px; right: 2px; background: var(--red); color: #fff; font-size: 9px; font-weight: 700; border-radius: 99px; padding: 1px 4px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: #1d4f7a; background: #D8ECFA; flex-shrink: 0;
}
.avatar.sm { width: 26px; height: 26px; font-size: 10.5px; }
.avatar.lg { width: 40px; height: 40px; font-size: 13px; }

.content { flex: 1; overflow: auto; min-height: 0; }
.page { padding: 22px 28px 40px; max-width: 1480px; }
.page.full { padding: 0; max-width: none; height: 100%; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .ico { width: 36px; height: 36px; border-radius: 9px; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; }
.page-head .ico img { width: 26px; height: 26px; }
.page-head h1 { font-size: 24px; }
.page-head .sub { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.page-head .tools { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--black); font-weight: 500;
  white-space: nowrap;
}
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: #0069e0; }
.btn.dark { background: var(--black); border-color: var(--black); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn.danger { color: var(--red); }
.btn:disabled { opacity: .5; cursor: default; }

/* ---------- Tabs / chips ---------- */
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tab { background: none; border: 0; padding: 10px 2px; color: var(--text-2); border-bottom: 2px solid transparent; font-weight: 500; white-space: nowrap; }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab .n { color: inherit; opacity: .8; margin-left: 4px; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { border: 0; background: none; padding: 6px 12px; border-radius: 8px; color: #2B3340; font-weight: 500; }
.pill.active { background: var(--blue); color: #fff; }
.pill .n { opacity: .75; margin-left: 4px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600; background: var(--line-2); color: var(--text-2); white-space: nowrap;
}
.badge.blue { background: var(--blue-50); color: var(--blue); }
.badge.green { background: var(--green-50); color: var(--green); }
.badge.amber { background: var(--amber-50); color: #9a7414; }
.badge.red { background: var(--red-50); color: var(--red); }
.badge.dark { background: var(--navy); color: #fff; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 2px solid currentColor; }
.status-dot.fill { background: currentColor; }

/* ---------- Inputs ---------- */
.input, .select {
  height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: #fff; outline: none;
}
.input:focus, .select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }
.search { position: relative; }
.search input { padding-left: 32px; background: var(--bg); border-color: transparent; width: 100%; }
.search svg { position: absolute; left: 10px; top: 9px; color: var(--text-2); }
textarea.input { height: auto; padding: 8px 10px; resize: vertical; }
label.field, div.field { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text-2); }
label.field .req { color: var(--red); }
.toggle { position: relative; width: 36px; height: 20px; background: #C7CED8; border-radius: 99px; border: 0; padding: 0; transition: background .15s; flex-shrink: 0; }
.toggle::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; top: 2px; left: 2px; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle.on { background: var(--blue); }
.toggle.on::after { left: 18px; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.card.pad { padding: 18px; }
.card h3 { font-size: 15px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.kpi .label { font-size: 12.5px; color: var(--text-2); }
.kpi .value { font-size: 28px; font-weight: 600; margin-top: 6px; letter-spacing: -.02em; }
.kpi .value.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi .hint { font-size: 12px; color: var(--text-2); margin-top: 2px; }

/* ---------- Tables ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; background: #fff; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th {
  text-align: left; font-weight: 500; color: #2B3340; font-size: 12.5px; background: #F7F9FB;
  padding: 10px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; white-space: nowrap; z-index: 1;
}
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; white-space: nowrap; }
table.t td.wrap { white-space: normal; }
table.t tbody tr:nth-child(even) { background: #F1F3F6; }
table.t tbody tr:hover { background: var(--hover); }
table.t tr.clickable { cursor: pointer; }
table.t td.link, .link { color: var(--blue); cursor: pointer; }
table.t .best { background: var(--green-50) !important; color: #0a7a53; font-weight: 600; }
.table-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 2px; color: var(--text-2); font-size: 12.5px; }
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar .search { width: 280px; }
.empty { padding: 40px; text-align: center; color: var(--text-2); }

/* ---------- Modal / drawer / toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(11,13,18,.45); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal { background: #fff; border-radius: 14px; width: min(760px, 100%); max-height: 92vh; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.modal.wide { width: min(1040px, 100%); }
.modal header { display: flex; align-items: center; padding: 18px 22px 8px; }
.modal header h2 { font-size: 19px; }
.modal header .x { margin-left: auto; }
.modal .body { padding: 8px 22px 18px; overflow: auto; }
.modal footer { padding: 12px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.toast-wrap { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 13px; max-width: 360px; animation: slidein .2s ease-out; }
@keyframes slidein { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.menu { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 40; min-width: 220px; }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 8px 10px; border-radius: 7px; text-align: left; }
.menu button:hover { background: var(--hover); }
.menu button img { width: 20px; height: 20px; }
.palette { width: min(560px, 100%); }
.palette input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; height: 48px; padding: 0 18px; width: 100%; font-size: 15px; outline: none; }
.palette .list { max-height: 360px; overflow: auto; padding: 6px; }
.palette .list button { display: flex; width: 100%; gap: 10px; align-items: center; border: 0; background: none; padding: 9px 12px; border-radius: 8px; text-align: left; }
.palette .list button.sel, .palette .list button:hover { background: var(--blue-50); }

/* ---------- Accordion ---------- */
.acc { border-bottom: 1px solid var(--line-2); }
.acc > summary { list-style: none; cursor: pointer; padding: 12px 4px; display: flex; align-items: center; gap: 10px; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary .t { font-weight: 600; font-size: 13.5px; }
.acc > summary .d { font-size: 12.5px; color: var(--text-2); }
.acc > summary .chev { margin-left: auto; color: var(--text-2); transition: transform .15s; }
.acc[open] > summary .chev { transform: rotate(180deg); }
.acc .acc-body { padding: 0 4px 14px; }

/* ---------- Chat (painel de conversas) ---------- */
.chat-layout { display: grid; grid-template-columns: 460px 1fr; height: 100%; min-height: 0; }
.chat-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.chat-list .head { padding: 12px 16px 6px; }
.chat-list .items { overflow: auto; padding: 4px 10px 20px; flex: 1; }
.conv { display: flex; gap: 12px; padding: 11px 12px; border-radius: 10px; cursor: pointer; }
.conv:hover { background: var(--hover); }
.conv.active { background: #EEF2F7; }
.conv .name { font-weight: 500; display: flex; gap: 6px; align-items: center; }
.conv .last { color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .when { margin-left: auto; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.chat-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.chat-pane .strip { padding: 8px 18px; font-size: 12.5px; color: var(--text-2); border-bottom: 1px solid var(--line-2); }
.chat-pane .chead { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.msgs { flex: 1; overflow: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; background: #FBFCFD; }
.msg { max-width: 72%; padding: 9px 13px; border-radius: 12px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; position: relative; font-size: 13.5px; }
.msg .time { display: block; text-align: right; font-size: 11px; opacity: .75; margin-top: 3px; }
.msg.bot { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.msg.human { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.sys { align-self: center; background: var(--line-2); color: var(--text-2); font-size: 12px; padding: 4px 10px; }
.msg .doc { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.16); padding: 8px 10px; border-radius: 8px; margin-bottom: 4px; cursor: pointer; }
.msg.human .doc { background: var(--bg); }
.msg .label { font-size: 11px; opacity: .8; display: block; margin-bottom: 4px; }
.composer { display: flex; align-items: center; gap: 8px; margin: 12px 18px 16px; border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px; }
.composer input, .composer textarea { flex: 1; border: 0; outline: none; min-height: 34px; padding: 8px 6px; resize: none; line-height: 1.35; font: inherit; }
.composer .ai { width: 32px; height: 32px; border-radius: 8px; background: var(--blue); color: #fff; border: 0; display: inline-flex; align-items: center; justify-content: center; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 18px; }
.quick button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 11px; font-size: 12.5px; color: var(--blue); }
.quick button:hover { background: var(--blue-50); }
.typing { align-self: flex-end; background: var(--blue-50); color: var(--blue); padding: 8px 12px; border-radius: 12px; font-size: 12.5px; }

/* ---------- Telefone (estilo WhatsApp) ---------- */
.phone { width: 340px; height: 640px; border-radius: 40px; background: var(--black); padding: 10px; box-shadow: var(--shadow-lg); flex-shrink: 0; }
.phone .scr { width: 100%; height: 100%; border-radius: 31px; overflow: hidden; display: flex; flex-direction: column; background: var(--wa-bg); }
.phone .wa-head { background: var(--wa-green); color: #fff; padding: 22px 14px 10px; display: flex; align-items: center; gap: 10px; }
.phone .wa-head .pic { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.phone .wa-head .pic img { width: 30px; }
.phone .wa-head b { display: block; font-size: 14px; }
.phone .wa-head small { font-size: 11.5px; opacity: .85; }
.phone .wa-msgs { flex: 1; overflow-y: auto; padding: 10px 10px; display: flex; flex-direction: column; gap: 6px; }
.wa { max-width: 84%; padding: 6px 9px 4px; border-radius: 9px; font-size: 13px; line-height: 1.38; white-space: pre-wrap; word-wrap: break-word; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.wa.in { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.wa.out { align-self: flex-end; background: var(--wa-bubble-out); border-top-right-radius: 2px; }
.wa .t { display: block; text-align: right; font-size: 10px; color: #667781; margin-top: 1px; }
.wa .erp { display: block; margin-top: 6px; padding: 6px 8px; border-radius: 6px; background: var(--blue-50); color: #0b4fa3; font-size: 11.5px; font-weight: 500; }
.wa-btns { align-self: flex-start; max-width: 84%; width: 84%; display: flex; flex-direction: column; gap: 3px; margin-top: -3px; }
.wa-btns button { background: #fff; border: 0; border-radius: 8px; padding: 8px; color: #027EB5; font-weight: 500; font-size: 13px; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.wa-btns button:disabled { color: #9aa6b2; cursor: default; }
.wa-carousel { align-self: stretch; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.wa-card { flex: 0 0 210px; background: #fff; border-radius: 10px; overflow: hidden; scroll-snap-align: start; box-shadow: 0 1px 1px rgba(0,0,0,.08); display: flex; flex-direction: column; }
.wa-card .hero { height: 96px; background: linear-gradient(135deg, #EAF3FF, #CFF6FC); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px; }
.wa-card .hero .big { font-size: 20px; font-weight: 700; color: var(--navy); }
.wa-card .hero .sm { font-size: 11px; color: var(--text-2); }
.wa-card .in { padding: 8px 10px; font-size: 12.5px; flex: 1; }
.wa-card .in b { display: block; margin-bottom: 2px; }
.wa-card button { border: 0; border-top: 1px solid #eef0f2; background: #fff; color: #027EB5; padding: 8px; font-weight: 500; }
.wa-receipt { align-self: flex-start; width: 84%; background: #fff; border-radius: 10px; padding: 10px; font-size: 12.5px; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.wa-receipt .h { display: flex; align-items: center; gap: 6px; font-weight: 600; margin-bottom: 6px; }
.wa-receipt .r { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dashed #e5e8ec; }
.wa-receipt .r:last-child { border: 0; font-weight: 700; }
.phone .wa-compose { display: flex; gap: 6px; padding: 8px; align-items: center; }
.phone .wa-compose input { flex: 1; border: 0; border-radius: 99px; height: 38px; padding: 0 14px; outline: none; background: #fff; }
.phone .wa-compose button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #1FA855; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.wa-typing { align-self: flex-start; background: #fff; border-radius: 9px; padding: 7px 12px; font-size: 12px; color: #667781; }

/* ---------- Módulo (landing interna) ---------- */
.mod-hero { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.mod-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mod-tag img { width: 22px; height: 22px; }
.mod-hero h2 { font-size: 34px; margin: 10px 0 8px; letter-spacing: -.02em; }
.mod-hero p.lead { font-size: 16px; color: var(--text-2); margin: 0 0 18px; max-width: 560px; }
.list-check { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.list-check li { display: flex; gap: 10px; align-items: flex-start; }
.list-check li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin-top: 7px; flex-shrink: 0; }
.list-x li::before { background: var(--red); }
.roadmap { border: 1px dashed #c4ccd6; border-radius: var(--radius-lg); padding: 16px 18px; background: #FBFCFD; }

/* ---------- Gráficos simples ---------- */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; }
.bars .b i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: #7FB5FF; min-height: 2px; }
.bars .b.main i { background: var(--blue); }
.bars .b.ghost i { background: repeating-linear-gradient(135deg, #c9dcf5 0 4px, #e7f0fb 4px 8px); }
.bars .b span { font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bars .b em { font-style: normal; font-size: 11.5px; font-weight: 600; }
.donut { width: 120px; height: 120px; border-radius: 50%; position: relative; flex-shrink: 0; }
.donut::after { content: ""; position: absolute; inset: 18px; background: #fff; border-radius: 50%; }
.donut .c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1; }
.progress { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--grad); }

.hero-band { background: linear-gradient(180deg, #EEF5FF 0%, #F6FBFF 100%); border: 1px solid #DCE9FA; border-radius: var(--radius-lg); padding: 18px 20px; }

/* ---------- PME ---------- */
.pme-hero { background: var(--navy); color: #fff; border-radius: 18px; padding: 28px; position: relative; overflow: hidden; }
.pme-hero::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; right: -90px; top: -120px; background: radial-gradient(circle at 30% 30%, rgba(0,199,232,.55), rgba(8,124,255,.25) 50%, transparent 70%); }
.pme-hero h2 { font-size: 30px; max-width: 620px; position: relative; z-index: 1; }
.pme-hero p { color: #B9C6DA; max-width: 560px; position: relative; z-index: 1; }
.pme-grid { display: grid; grid-template-columns: 360px 1fr; gap: 24px; align-items: start; }
.feed-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.feed-item:last-child { border: 0; }
.feed-item .ic { width: 32px; height: 32px; border-radius: 9px; background: var(--bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feed-item .ic img { width: 22px; height: 22px; }
.chip-btn { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 12px; font-size: 12.5px; }
.chip-btn:hover { border-color: var(--blue); color: var(--blue); }
.plan { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.plan.featured { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }
.plan .price { font-size: 26px; font-weight: 700; }

@media (max-width: 1100px) {
  .mod-hero, .pme-grid { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .chat-layout { grid-template-columns: 320px 1fr; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .app.menu-open .sidebar { display: flex; position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 45; box-shadow: var(--shadow-lg); }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .page { padding: 16px; }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-layout.has-active .chat-list { display: none; }
  .chat-layout:not(.has-active) .chat-pane { display: none; }
  .searchbox { display: none; }
  .phone { width: 100%; max-width: 360px; }
}
.only-mobile { display: none; }
@media (max-width: 760px) { .hide-mobile { display: none !important; } }
@media (max-width: 760px) { .only-mobile { display: inline-flex; } }

/* Pesquisa pelo cabeçalho em todas as tabelas (clica no nome da coluna e escreve em cima) */
.th-cell{display:flex;align-items:center;gap:4px}
.th-lbl{cursor:text;border-bottom:1px dashed transparent}
.th-lbl:hover{border-bottom-color:var(--text-3)}
th.th-lbl:hover{color:var(--blue)}
.th-in{flex:1;min-width:80px;height:26px;border:1px solid var(--blue);border-radius:6px;padding:0 7px;font:inherit;font-size:12px;text-transform:none;letter-spacing:0;background:#fff;box-shadow:0 0 0 3px rgba(8,124,255,.12)}
.th-sort{border:0;background:transparent;color:var(--text-3);cursor:pointer;font-size:10px;padding:2px}
.th-sort:hover{color:var(--blue)}

/* Padrão de todas as tabelas: cabeçalho azul e centralizado; linhas intercaladas cinza e branco */
table.t thead th { background: var(--blue) !important; /* mesmo azul dos botões principais */ color: #fff !important; text-align: center !important; font-weight: 600 !important; border-bottom: 0 !important; border-right: 1px solid rgba(255,255,255,.18); }
table.t thead th:last-child { border-right: 0; }
table.t thead th .th-cell { justify-content: center; }
table.t thead th .th-sort { color: rgba(255,255,255,.7); }
table.t thead th .th-sort:hover { color: #fff; }
table.t thead th .th-lbl:hover, table.t thead th.th-lbl:hover { color: #fff !important; border-bottom-color: #fff; }
table.t thead th .th-in { color: var(--text); text-align: left; }
table.t thead th a { color: #fff; }
table.t thead th input[type=checkbox] { accent-color: #fff; }
table.t tbody td { background: transparent; }
table.t tbody tr:nth-child(odd) { background: #fff; }
/* Conteúdo das tabelas centralizado, menos as duas primeiras colunas (identificação) */
table.t tbody td:nth-child(n+3) { text-align: center !important; }
table.t tbody td:nth-child(n+3) .row, table.t tbody td:nth-child(n+3) .th-cell { justify-content: center !important; }

/* coluna de produto mais estreita: quebra a linha de baixo em vez de esticar */
.fin-prodcell { white-space: normal; min-width: 150px; max-width: 190px; line-height: 1.25; }
