:root {
  --navy: #060649;
  --ink: #181b32;
  --muted: #626577;
  --line: #dfdcd9;
  --paper: #f7f6f4;
  --warm: #f2eeeb;
  --silver: #dcd8d5;
  --lav: #edecf7;
  --accent: #38386e;
  --green: #25644e;
  --red: #983f39;
  --fonte-destaque: Arial, Helvetica, sans-serif;
  color: var(--ink);
  font:
    14px/1.45 Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #7772b5;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 8px 12px;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
button:hover {
  background: var(--warm);
  border-color: #b9b4b1;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
.primary,
.primary:hover {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.ghost {
  border: 0;
  background: transparent;
}
.small {
  font-size: 12px;
  padding: 5px 9px;
}
.icon {
  width: 19px;
  height: 19px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
.metric strong,
table {
  font-family: var(--fonte-destaque);
}
h1 {
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: clamp(33px, 3.2vw, 52px);
  color: var(--navy);
  line-height: 1.12;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.5px;
  color: var(--navy);
}
h3 {
  font-size: 14px;
}
p,
small {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.shell {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--warm);
  border-right: 1px solid var(--line);
  padding: 27px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 0;
  height: 100dvh;
}
.logo {
  width: 128px;
  display: block;
  margin-left: 9px;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav button {
  justify-content: flex-start;
  background: transparent;
  border: 0;
  border-radius: 8px;
  gap: 12px;
  color: #545367;
  padding: 11px 13px;
}
.nav button.active {
  background: var(--navy);
  color: white;
}
.profile {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 18px 2px 0;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--lav);
  color: var(--navy);
  font-weight: 650;
  flex: none;
}
.avatar.t1 {
  background: #f0e4d9;
  color: #704c37;
}
.avatar.t2 {
  background: #dceae3;
  color: #315b4a;
}
.row,
.top,
.identity,
.toolbar,
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.row.wrap,
.actions,
.toolbar {
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.grow {
  flex: 1;
  min-width: 0;
}
.workspace {
  padding: 0 clamp(14px, 2.7vw, 46px) 25px;
  min-width: 0;
}
.top {
  min-height: 57px;
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: #6c8378;
}
.head {
  margin: 26px 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.head p {
  margin-top: 6px;
}
.board {
  display: grid;
  grid-template-columns: minmax(215px, 0.88fr) minmax(270px, 1.7fr) minmax(
      180px,
      0.75fr
    );
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  min-height: 520px;
  height: calc(100dvh - 199px);
  box-shadow: 0 3px 13px #18132a06;
}
.list,
.chat,
.sheet {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.list {
  border-right: 1px solid var(--line);
}
.listhead,
.chathead,
.sheethead {
  padding: 15px;
  border-bottom: 1px solid var(--line);
}
.listhead {
  display: grid;
  gap: 10px;
}
.listhead select {
  font-weight: 650;
  color: var(--navy);
}
input,
textarea,
select {
  border: 1px solid #cfcbd0;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  padding: 9px 11px;
  max-width: 100%;
}
textarea {
  resize: vertical;
  min-height: 60px;
}
input:disabled {
  background: var(--warm);
}
.search {
  display: flex;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0 9px;
  border-radius: 7px;
  color: var(--muted);
}
.search input {
  border: 0;
  background: transparent;
  min-width: 0;
  width: 100%;
  padding: 7px;
}
.scroll {
  overflow: auto;
  min-height: 0;
}
.case {
  width: 100%;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #efedeb;
  background: white;
  display: flex;
  align-items: flex-start;
  text-align: left;
  gap: 10px;
  padding: 14px 12px;
  font-weight: 400;
}
.case.selected {
  background: var(--lav);
  box-shadow: inset 3px 0 var(--navy);
}
.case strong,
.one {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.case small {
  display: block;
}
.preview {
  font-size: 12px;
  margin-top: 4px;
  color: #666676;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--lav);
  color: #49466f;
  font-size: 11px;
  font-weight: 650;
}
.badge.warn {
  background: #f7e8d5;
  color: #785225;
}
.badge.error {
  background: #f6dedb;
  color: #86382f;
}
.badge.good {
  background: #dfede3;
  color: #315d45;
}
.chat {
  background: #fbfaf8;
}
.chathead {
  background: white;
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 65px;
}
.thread {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bubble {
  max-width: 88%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 0 12px 12px 12px;
  align-self: flex-start;
  padding: 10px 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bubble.out {
  background: #eeedf7;
  border-color: #e1dff0;
  align-self: flex-end;
  border-radius: 12px 0 12px 12px;
}
.meta {
  display: block;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.15px;
  color: #68677b;
  margin-bottom: 3px;
}
.bubble a,
.record a {
  color: var(--navy);
  font-weight: 600;
}
.composer {
  background: white;
  border-top: 1px solid var(--line);
  padding: 12px;
}
.composer textarea {
  width: 100%;
  min-height: 45px;
  height: 46px;
}
.composer .row {
  justify-content: space-between;
  margin-top: 6px;
}
.sheet {
  border-left: 1px solid var(--line);
  background: #fff;
}
.sheetbody {
  padding: 14px;
  display: grid;
  gap: 17px;
  align-content: start;
}
.sheetbody .actions {
  gap: 6px;
}
.sheetbody button {
  font-size: 12px;
}
.kv {
  display: grid;
  gap: 2px;
  overflow-wrap: anywhere;
}
.kv small,
.field > span {
  font-size: 12px;
  color: var(--muted);
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  width: 100%;
  margin: 0;
}
.empty {
  display: grid;
  text-align: center;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 32px 18px;
  flex: 1;
  color: var(--muted);
}
.empty .icon {
  width: 27px;
  height: 27px;
  color: #676783;
}
.empty strong {
  color: var(--navy);
  font-weight: 600;
}
.empty p {
  max-width: 310px;
  font-size: 13px;
}
.panel,
.metric,
.record {
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 18px;
}
.panel {
  margin-bottom: 16px;
}
.panel h2,
.panel h3 {
  margin-bottom: 12px;
}
.grid,
.metrics,
.forms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 12px;
}
.metrics {
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  margin: 14px 0;
}
.metric strong {
  display: block;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  font-size: 32px;
  color: var(--navy);
}
.stack,
.forms {
  display: grid;
  gap: 12px;
}
.field {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.field input,
.field select,
.field textarea {
  width: 100%;
}
.field input[type="checkbox"] {
  width: 18px;
  justify-self: start;
}
.field textarea {
  min-height: 74px;
}
.record {
  padding: 13px 15px;
  overflow-wrap: anywhere;
}
.record + .record {
  margin-top: 8px;
}
.subtle {
  background: var(--paper);
  border: 0;
}
.notice {
  background: #faf1e5;
  color: #674324;
  padding: 8px 12px;
  font-size: 12px;
}
.note {
  color: var(--muted);
  font-size: 12px;
}
.agendaDay {
  color: var(--navy);
  font-size: 21px;
  margin: 19px 0 8px;
}
.toolbar {
  margin-bottom: 14px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  width: min(520px, 94vw);
  max-height: 86dvh;
  color: var(--ink);
  box-shadow: 0 20px 80px #17163524;
}
dialog::backdrop {
  background: #13132e66;
}
dialog .topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  align-items: center;
}
dialog form {
  display: grid;
  gap: 13px;
}
.foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 8px;
}
.errorText {
  color: var(--red);
  font-weight: 550;
}
.login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: var(--warm);
  padding: 22px;
}
.loginbox {
  background: white;
  padding: clamp(24px, 5vw, 50px);
  border: 1px solid var(--line);
  border-radius: 20px;
  width: min(620px, 100%);
}
.loginbox .logo {
  margin: 0 0 22px;
  width: 145px;
}
.loginbox p {
  margin: 12px 0 22px;
}
.loginbox .grid {
  grid-template-columns: 1fr 1fr;
}
.loginbox button {
  justify-content: flex-start;
  padding: 13px;
}
.mobileOnly {
  display: none;
}
#toast {
  display: none;
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: white;
  padding: 11px 20px;
  border-radius: 8px;
  z-index: 20;
  max-width: 90vw;
}
#toast.show {
  display: block;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
th,
td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--muted);
}
.wide {
  overflow-x: auto;
}
summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
}
details[open] > summary {
  margin-bottom: 10px;
}
audio {
  max-width: 100%;
  height: 32px;
}
.rating {
  border-left: 5px solid var(--silver);
}
.red {
  border-left-color: #a94c40;
}
.orange {
  border-left-color: #ce8144;
}
.yellow {
  border-left-color: #b59a39;
}
.green {
  border-left-color: #478467;
}
@media (max-width: 1200px) {
  .shell {
    grid-template-columns: 150px 1fr;
  }
  .sidebar {
    padding: 23px 8px;
  }
  .logo {
    width: 110px;
  }
  .workspace {
    padding: 0 17px 20px;
  }
  .board {
    grid-template-columns: minmax(190px, 0.82fr) minmax(250px, 1.35fr) minmax(
        166px,
        0.65fr
      );
  }
}
@media (max-width: 970px) {
  .shell {
    grid-template-columns: 70px 1fr;
  }
  .sidebar {
    padding: 16px 6px;
    align-items: center;
  }
  .sidebar .logo {
    width: 59px;
    margin: 0;
  }
  .nav button {
    justify-content: center;
    padding: 12px;
  }
  .nav span,
  .profile .who,
  .profile .logoutText {
    display: none;
  }
  .profile {
    display: grid;
    gap: 8px;
  }
  .profile .row {
    justify-content: center;
  }
  .board {
    grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1.2fr) minmax(
        150px,
        0.65fr
      );
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    gap: 9px;
    padding: 7px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .logo {
    width: 63px;
  }
  .nav {
    display: flex;
    margin-left: auto;
    gap: 1px;
  }
  .nav button {
    padding: 9px;
  }
  .profile {
    margin: 0;
    border: 0;
    padding: 0;
  }
  .profile .identity {
    display: none;
  }
  .workspace {
    padding: 0 10px 12px;
  }
  .top {
    min-height: 37px;
  }
  .head {
    margin: 15px 0;
  }
  .head h1 {
    font-size: 32px;
  }
  .head p {
    font-size: 12px;
  }
  .board {
    height: calc(100dvh - 192px);
    min-height: 390px;
    display: flex;
  }
  .list,
  .chat,
  .sheet {
    width: 100%;
    border: 0;
  }
  .board .chat,
  .board .sheet,
  .board.chatmode .list,
  .board.sheetmode .list,
  .board.sheetmode .chat {
    display: none;
  }
  .board.chatmode .chat,
  .board.sheetmode .sheet {
    display: flex;
  }
  .mobileOnly {
    display: inline-flex;
  }
  .listhead {
    grid-template-columns: 1fr 1fr;
  }
  .head button {
    padding: 7px 10px;
  }
  .chathead,
  .sheethead {
    padding: 10px;
  }
  .thread {
    padding: 13px;
  }
  .board .empty {
    min-height: 130px;
  }
  .loginbox .grid {
    grid-template-columns: 1fr;
  }
  .top small {
    font-size: 10px;
  }
  .profile .ghost {
    padding: 7px;
  }
}
@media (max-width: 760px) {
  .shell:has(.board) {
    height: 100dvh;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .shell:has(.board) .sidebar {
    flex: none;
  }
  .workspace:has(.board) {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }
  .workspace:has(.board) .top,
  .workspace:has(.board) .head {
    flex: none;
  }
  .board {
    flex: 1;
    height: auto;
    min-height: 0;
  }
  .workspace:has(.chatmode) .head,
  .workspace:has(.sheetmode) .head {
    margin: 8px 0;
  }
  .workspace:has(.chatmode) .head p,
  .workspace:has(.sheetmode) .head p {
    display: none;
  }
}
.ads {
  min-width: 0;
}
.ads .panel th[scope="row"] {
  min-width: 170px;
  color: var(--navy);
}
.ads .panel th small {
  display: block;
  font-weight: 400;
  color: var(--muted);
}
.ads .panel td {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 400px) {
  .sidebar .nav button {
    padding: 7px 5px;
  }
  .sidebar .logo {
    width: 52px;
  }
}
.homeStats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:28px; }
.homeStat { justify-content:flex-start; text-align:left; gap:16px; padding:18px; }
.homeStat > .icon { color:var(--accent); width:24px; height:24px; }
.homeStat strong, .homeStat small { display:block; }
.homeStat strong { font:700 28px/1.2 var(--fonte-destaque); color:var(--navy); }
#boardTitle { margin-bottom:12px; }
.pipeline { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(214px, 24%); gap:12px; overflow-x:auto; padding:0 1px 14px; align-items:start; }
.pipelineLane { background:var(--warm); border:1px solid var(--line); border-radius:12px; padding:12px; min-height:132px; }
.pipelineLane header { display:flex; align-items:center; justify-content:space-between; gap:6px; margin-bottom:12px; }
.pipelineLane h3 { font:600 15px/1.3 var(--fonte-destaque); color:var(--navy); margin:0; }
.pipelineLane header span { padding:2px 8px; background:white; border-radius:12px; color:var(--accent); }
.pipelineCard { display:flex; width:100%; align-items:flex-start; flex-direction:column; gap:5px; text-align:left; margin:7px 0; padding:12px; overflow-wrap:anywhere; }
.pipelineCard strong { color:var(--navy); }
.pipelineCard span { font-weight:400; }
.pipelineCard small { color:var(--muted); font-weight:400; }
.laneEmpty { font-size:12px; margin:16px 0; }
.imageThumb { display:block; padding:0; overflow:hidden; margin:5px 0; cursor:zoom-in; max-width:100%; }
.imageThumb img { display:block; max-width:100%; width:210px; height:145px; object-fit:contain; background:var(--paper); }
dialog:has(.fullImage) { width:fit-content; max-width:94vw; }
.fullImage { display:block; max-width:100%; max-height:63dvh; object-fit:contain; margin:0 auto 10px; }
.voicePreview { width:100%; margin:14px 0; }
@media (max-width:760px) {
  .homeStats { gap:6px; margin-bottom:20px; }
  .homeStat { padding:10px; min-width:0; flex-direction:column; align-items:flex-start; gap:6px; }
  .homeStat strong { font-size:23px; }
  .pipeline { grid-auto-columns:minmax(210px,78%); }
}
.pipeline { grid-template-rows:auto; scroll-snap-type:x proximity; }
.pipelineLane { min-width:0; scroll-snap-align:start; }
.laneCards { max-height:clamp(230px,50vh,560px); overflow-y:auto; scrollbar-gutter:stable; }
.boardHeading { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.boardHeading .actions { flex-wrap:nowrap; }

@media (max-width:760px) {
  .sidebar .nav { min-width:0; overflow-x:auto; }
  .sidebar .nav button { flex:none; }
}

.metrics {
  grid-template-columns: repeat(auto-fit, minmax(min(205px, 100%), 1fr));
}
.metric { min-width: 0; container-type: inline-size; }
.metric strong {
  font-size: clamp(18px, 12cqi, 30px);
  line-height: 1.25;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.ads .metrics { align-items: stretch; }
.salesMonth th, .salesMonth td { vertical-align: top; }
.salesMonth td small { display: block; color: var(--muted); }

.conversationActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: white;
  border-bottom: 1px solid var(--line);
}

.originMark { display:inline-flex; vertical-align:-.16em; margin-inline-end:.35em; align-items:center; justify-content:center; }
.originMark .icon { width:1.05em; height:1.05em; stroke-width:2; }
.origin-paid { color:var(--navy); }
.origin-organic { color:#28714a; }
.origin-review,.origin-excluded { color:var(--muted); }
.originLegend { display:flex; flex-wrap:wrap; gap:.35em 1em; font-size:.76rem; color:var(--muted); margin:0 0 .65rem; }
.originLegend > span { white-space:nowrap; }
.list > .originLegend { padding:.45rem .8rem; margin:0; border-bottom:1px solid var(--line); }

/* Início: precisa de você e números do vendedor */
.attention{display:grid;gap:6px}
.attentionRow{display:grid;grid-template-columns:1fr;gap:2px;text-align:left;padding:10px 12px;border:1px solid var(--line,#e4e1de);border-radius:10px;background:#fff}
.attentionRow span{color:#4a4a5a;font-size:.92rem}.attentionRow small{color:#7a7a86}
.attentionRow.urgent{border-color:#c0392b;background:#fff6f5}
.panel.vendedor .metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}
.metric{display:grid;gap:2px;padding:12px;border:1px solid var(--line,#e4e1de);border-radius:10px;background:#fff;text-align:left}
.metric strong{font-size:1.35rem;color:#060649}.metric span,.metric small{color:#6b6b78;font-size:.85rem}
.metric.link{cursor:pointer}.metric.link:hover{border-color:#060649}
/* Quadro compacto */
.quadro{display:grid;grid-template-columns:repeat(6,minmax(170px,1fr));gap:10px;overflow-x:auto}
.qcoluna{background:#f6f3f0;border-radius:10px;padding:8px;display:flex;flex-direction:column;gap:4px;min-height:120px}
.qcoluna header{display:flex;justify-content:space-between;align-items:center;padding:2px 4px 6px}
.qcoluna h3{font-size:.9rem;margin:0}.qcoluna header span{font-size:.8rem;color:#6b6b78}
.qlinha{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:6px;padding:6px 8px;border-radius:7px;background:#fff;border:1px solid #ebe7e3;text-align:left;font-size:.85rem}
.qnome{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.qtempo{color:#7a7a86;font-size:.75rem}
.qaviso{grid-column:1/-1;color:#a0522d;font-size:.75rem}.qdono{font-size:.7rem;background:#060649;color:#fff;border-radius:50%;width:18px;height:18px;display:grid;place-items:center}

/* Ficha: emergência, anotações do agente */
.emergencia{display:grid;gap:6px;padding:10px 12px;margin-bottom:10px;border-radius:10px;background:#fff1ef;border:1px solid #c0392b}
.emergencia.leve{background:#fff8ec;border-color:#e0a24a;font-size:.9rem}
.anotado{margin-top:8px;padding:8px 10px;border-radius:10px;background:#f6f3f0}
.anotado h3{font-size:.85rem;margin:0 0 4px}
/* Orçamento com calculadora */
.orcOpcao{border:1px solid #e4e1de;border-radius:10px;padding:10px;display:grid;gap:6px;margin-bottom:8px}
.orcGrade{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.orcPrevia{white-space:pre-wrap;background:#e9f6ee;border-radius:10px;padding:10px;font-size:.9rem}
.orcProblemas{color:#a83232;font-size:.88rem}
.decisao{border-bottom:1px solid #eee;padding:8px 0;font-size:.9rem}

/* Indicadores: funil */
.funil{display:grid;gap:8px}
.etapa{display:grid;grid-template-columns:220px 1fr 60px 170px;align-items:center;gap:10px}
.ebarra{background:#f0ece8;border-radius:6px;height:14px;overflow:hidden}.ebarra i{display:block;height:100%;background:#060649;border-radius:6px}
.etapa strong{text-align:right}.etapa small{color:#6b6b78}
@media (max-width:700px){.etapa{grid-template-columns:1fr 50px}.ebarra,.etapa small{grid-column:1/-1}}
.orcAvisos{color:#8a6100;font-size:.86rem}

/* ==========================================================================
   Identidade visual da Alma Vista (apresentação da marca, 26/11/2026)
   Paleta: #040328 (azul-marinho), #529DAC (azul-petróleo), #EFEBE8 (cinza quente).
   Tipografia: Montserrat (licença SIL OFL, arquivos em public/fonts/).
   ========================================================================== */
@font-face { font-family: "Montserrat"; src: url("/fonts/Montserrat-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/Montserrat-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/Montserrat-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/Montserrat-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --navy: #040328;
  --petroleo: #529dac;
  --petroleo-claro: #e3f0f3;
  --areia: #efebe8;
  --paper: #efebe8;
  --warm: #f7f5f3;
  --line: #e2ddd8;
  --accent: #529dac;
  --lav: #e3f0f3;
  --fonte-destaque: "Montserrat", -apple-system, "Segoe UI", sans-serif;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
h1 { font-weight: 600; letter-spacing: -0.02em; }
h2 { font-weight: 600; letter-spacing: -0.2px; }

/* Menu lateral em azul-marinho, com o logo claro e a borboleta */
.sidebar { background: var(--navy); border-right: 0; }
.sidebar .logo { filter: brightness(0) invert(1); opacity: .95; }
.nav button { color: #c9c8d6; text-align: left; line-height: 1.25; }
.nav button span { text-align: left; }
.nav button:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav button.active { background: var(--petroleo); color: #fff; }
.profile { border-top-color: rgba(255, 255, 255, .12); }
.profile strong { color: #fff; }
.profile small, .profile .logoutText { color: #a9a8bd; }
.profile .avatar { background: var(--petroleo); color: #fff; }
.profile button { color: #c9c8d6; }

/* Botões e destaques */
.primary, .primary:hover { background: var(--navy); border-color: var(--navy); }
.badge.good { background: var(--petroleo-claro); color: #1f5f6c; }
.panel, .metric, .homeStat { border-radius: 14px; }
.homeStat svg, .homeStat .icon { color: var(--petroleo); }
.metric strong { color: var(--navy); font-weight: 600; }

/* Quadro: divisória entre colunas e entre fichas */
.quadro { gap: 0; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.qcoluna { background: transparent; border-radius: 0; border-left: 1px solid var(--line); padding: 10px 10px 14px; gap: 6px; }
.qcoluna:first-child { border-left: 0; }
.qcoluna header { border-bottom: 2px solid var(--petroleo); margin-bottom: 4px; }
.qlinha { background: var(--warm); border: 1px solid var(--line); border-left: 3px solid var(--petroleo); }
.qlinha:hover { border-color: var(--petroleo); }
.qdono { background: var(--navy); }

/* Indicadores: funil em etapas, mais leve */
.funilEtapas { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 10px; align-items: stretch; }
.funilEtapa { position: relative; background: var(--warm); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 12px; display: grid; gap: 4px; }
.funilEtapa strong { font-size: 28px; font-weight: 600; color: var(--navy); line-height: 1; }
.funilEtapa span { font-size: 12.5px; color: var(--muted); }
.funilEtapa .trilho { height: 4px; border-radius: 4px; background: #e6e1dc; overflow: hidden; margin-top: 6px; }
.funilEtapa .trilho i { display: block; height: 100%; background: var(--petroleo); border-radius: 4px; }
.funilEtapa em { position: absolute; top: 12px; right: 12px; font-style: normal; font-size: 11.5px; font-weight: 600; color: #1f5f6c; background: var(--petroleo-claro); border-radius: 999px; padding: 2px 8px; }
.funilResumo { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.funilResumo b { color: var(--navy); font-weight: 600; }
@media (max-width: 900px) { .funilEtapas { grid-template-columns: repeat(2, 1fr); } }
.orcTratamentos{display:flex;gap:16px;flex-wrap:wrap}.orcTratamentos label{display:flex;gap:6px;align-items:center;font-weight:500}
/* Início: os 4 números numa linha */
.homeStats{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px}
.homeStat{padding:12px 14px!important;min-height:0!important}.homeStat strong{font-size:22px!important}
@media (max-width:760px){.homeStats{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* Início: "Precisa de você" em cartões compactos lado a lado */
.attention{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}
.attentionRow{min-height:92px;align-content:start;border-radius:12px;border-left:3px solid var(--petroleo);overflow:hidden}
.attentionRow strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.attentionRow span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.86rem}
.attentionRow small{font-size:.75rem}
.attentionRow.urgent{border-left-color:#c0392b}
.vendedores{display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:12px}
.vendedores .panel{margin:0}
.panel.vendedor .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
.campPrevia{margin-top:10px;padding:10px 12px;border-radius:12px;background:var(--petroleo-claro);display:grid;gap:4px}
.anotado.historico{background:var(--petroleo-claro)}.anotado.historico p{color:#2c3e50;font-size:.88rem;margin:2px 0 6px}

/* Ficha: classificação do contato e contexto para o agente */
.classificacao { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 4px; }
.classificacao > span { font-size: 12px; color: var(--muted, #6b6b80); }
.contextoEquipe { display: grid; gap: 6px; }
.contextoEquipe h3 { margin: 0; }
.contextoEquipe small { color: var(--muted, #6b6b80); }
.contextoEquipe textarea { width: 100%; min-height: 84px; resize: vertical; font: inherit; padding: 8px 10px; border: 1px solid rgba(4,3,40,.15); border-radius: 10px; }
.contextoEquipe button { justify-self: start; }
