/* Painel do Nexus Barber. Tema escuro preto/cromado (mesmo padrão do painel da Nexus).
   Sem fontes externas, sem estilos inline (CSP). A cor da marca do revendedor entra em --marca via JS. */

:root {
  color-scheme: dark;
  --bg: #050506;
  --surface: #0d0e11;
  --surface-2: #14161b;
  --surface-3: #1b1e24;
  --line: #20232a;
  --line-2: #2c3038;
  --text: #eceef2;
  --text-2: #b9bec8;
  --dim: #959ca8;
  --chrome: #d9dde3;
  --marca: #d9dde3;
  --marca-texto: #0b0c0e;
  --wa: #25d366;
  --good: #0ca30c;
  --good-text: #3fd16a;
  --warn: #fab219;
  --serious: #ec835a;
  --critical: #e66767;
  /* Paleta categórica (ordem fixa, validada para fundo escuro). */
  --s1: #3987e5;
  --s2: #d95926;
  --s3: #199e70;
  --s4: #c98500;
  --s5: #d55181;
  --s6: #008300;
  --s7: #9085e9;
  --s8: #e66767;
  --radius: 14px;
  --side: 252px;
  --font-text: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Segoe UI Variable Display', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', Consolas, 'Liberation Mono', monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: calc(100dvh / var(--z, 1));
  -webkit-text-size-adjust: 100%;
}

[hidden] {
  display: none !important;
}

*:focus-visible {
  outline: 2px solid var(--chrome);
  outline-offset: 2px;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

img {
  max-width: 100%;
}

.num {
  font-variant-numeric: tabular-nums;
}

.mono {
  font-family: var(--font-mono);
}

/* ------------------------------------------------------------ moldura */

.adm-side {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--side);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 16px 18px;
  background: #000;
  border-right: 1px solid var(--line);
}

.adm-marca {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  text-decoration: none;
  min-width: 0;
}

.adm-marca img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
  flex: none;
}

.adm-marca__letra {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #000;
  border: 1px solid var(--line-2);
  color: var(--marca);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
}

.adm-marca span:last-child {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  color: var(--chrome);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adm-selo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: -6px 8px 0;
  padding: 3px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.adm-selo--super {
  border-color: #5c4a1d;
  background: #1d170a;
  color: #f2cf7a;
}

.adm-nav {
  display: grid;
  gap: 2px;
  overflow-y: auto;
  align-content: start;
}

.adm-nav__grupo {
  margin: 12px 10px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #858b96;
}

.adm-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--dim);
  text-decoration: none;
  font-weight: 500;
  font-size: 14.5px;
}

.adm-nav a svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.adm-nav a:hover {
  color: var(--text);
  background: #0f1013;
}

.adm-nav a[aria-current='page'] {
  color: var(--text);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.adm-nav a[aria-current='page']::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--marca);
}

.adm-nav__qtd {
  margin-left: auto;
  min-width: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--warn);
  color: #1a1204;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.adm-conta {
  margin-top: auto;
  padding: 14px 10px 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.adm-conta p {
  font-size: 13px;
  color: var(--dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adm-conta p b {
  display: block;
  color: var(--text-2);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adm-topo-movel {
  display: none;
}

.adm-main {
  margin-left: var(--side);
  padding: 28px clamp(16px, 3vw, 40px) 18px;
  min-width: 0;
  min-height: calc(100dvh / var(--z, 1));
  display: flex;
  flex-direction: column;
}

.adm-tela {
  max-width: 1440px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
}

#tela:focus {
  outline: none;
}

.faixa-alerta {
  margin: 0 auto 18px;
  max-width: 1440px;
  width: 100%;
  min-width: 0;
}

@media (max-width: 1023px) {
  .adm-side {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    visibility: hidden;
  }

  .menu-aberto .adm-side {
    transform: none;
    visibility: visible;
    box-shadow: 0 0 0 100vmax rgb(0 0 0 / 0.6);
  }

  .adm-topo-movel {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 12px 0 8px;
    background: #000;
    border-bottom: 1px solid var(--line);
  }

  .adm-main {
    margin-left: 0;
    padding-top: 20px;
    min-height: calc(calc(100dvh / var(--z, 1)) - 60px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .adm-side {
    transition: none;
  }
}

/* ------------------------------------------------------------ peças */

.cab {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.cab h1 {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
}

.cab p {
  margin-top: 4px;
  color: var(--dim);
  font-size: 14px;
}

.cab__acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.voltar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--dim);
  font-size: 13.5px;
  text-decoration: none;
}

.voltar:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  background: var(--surface-3);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.btn--pri {
  background: var(--marca);
  border-color: var(--marca);
  color: var(--marca-texto);
}

.btn--pri:hover {
  background: var(--marca);
  filter: brightness(1.12);
}

.btn--wa {
  background: var(--wa);
  border-color: var(--wa);
  color: #06210f;
}

.btn--perigo {
  color: #ffb4ad;
  border-color: #4a2523;
  background: #1c0f0f;
}

.btn--perigo:hover {
  background: #2a1414;
}

.btn--perigo-forte {
  color: #fff;
  border-color: #b3261e;
  background: #8c1d18;
}

.btn--perigo-forte:hover {
  background: #a3221c;
}

.btn--fantasma {
  background: transparent;
  border-color: transparent;
  color: var(--dim);
}

.btn--fantasma:hover {
  color: var(--text);
  background: var(--surface-2);
}

.btn--peq {
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
}

.btn--icone {
  width: 38px;
  padding: 0;
}

.btn--peq.btn--icone {
  width: 32px;
}

.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.campo {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
  min-width: 0;
}

.campo > span:first-child {
  font-weight: 500;
}

.campo small,
.contador {
  font-size: 12px;
  color: var(--dim);
}

.contador {
  justify-self: end;
}

.contador.excedeu {
  color: #ff8f86;
}

.entrada {
  min-height: 38px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
}

.entrada:disabled {
  opacity: 0.6;
}

textarea.entrada {
  min-height: 96px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.5;
}

select.entrada {
  padding-right: 30px;
}

input[type='color'].entrada {
  padding: 3px;
  width: 56px;
  cursor: pointer;
}

.entrada::placeholder {
  color: #79808c;
}

.painel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-width: 0;
}

.painel__cab {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 14px;
}

.painel__cab h2 {
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.painel__cab span,
.painel__nota {
  font-size: 12.5px;
  color: var(--dim);
}

.painel__nota {
  margin-top: 10px;
}

.grade {
  display: grid;
  gap: 16px;
}

.g-kpi {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.g-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.g-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.g-21 {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

@media (max-width: 1100px) {
  .g-21 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.mt {
  margin-top: 16px;
}

.mt-g {
  margin-top: 28px;
}

/* KPIs */

.kpi {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}

a.kpi:hover {
  border-color: var(--line-2);
  background: #101115;
}

.kpi__rot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--dim);
}

.kpi__rot i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: none;
}

.kpi__val {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.1;
  color: var(--text);
  overflow-wrap: anywhere;
}

.delta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--dim);
}

.delta b {
  font-weight: 600;
}

.delta--sobe b {
  color: var(--good-text);
}

.delta--desce b {
  color: #ff8f86;
}

/* Filtros */

.filtros {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 10px;
  background: #08090b;
  border: 1px solid var(--line);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.seg button {
  min-height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--dim);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.seg button:hover {
  color: var(--text);
}

.seg button[aria-pressed='true'] {
  background: var(--surface-3);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.filtros .entrada {
  width: auto;
  min-width: 150px;
  min-height: 36px;
}

.filtros__datas {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--dim);
  font-size: 13px;
}

.filtros__datas input.entrada {
  min-width: 0;
  width: 150px;
}

.filtros__busca {
  flex: 1 1 220px;
}

@media (max-width: 640px) {
  .filtros .entrada,
  .filtros__busca {
    flex: 1 1 100%;
  }

  .filtros__datas input.entrada {
    flex: 1 1 120px;
  }

  .so-desk {
    display: none;
  }
}

/* Abas */

.abas {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}

.abas button,
.abas a {
  position: relative;
  flex: none;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: var(--dim);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.abas button:hover,
.abas a:hover {
  color: var(--text);
}

.abas [aria-selected='true'],
.abas [aria-current='page'] {
  color: var(--text);
}

.abas [aria-selected='true']::after,
.abas [aria-current='page']::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--marca);
}

.abas .ok-ponto {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--good-text);
  vertical-align: middle;
}

/* Tabelas */

.tabela-wrap {
  overflow-x: auto;
  margin: 0 -20px;
  padding: 0 20px;
}

table.tabela {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.tabela th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--dim);
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.tabela td {
  padding: 11px 12px;
  border-bottom: 1px solid #16181d;
  vertical-align: middle;
}

.tabela tr:last-child td {
  border-bottom: 0;
}

.tabela .dir {
  text-align: right;
}

.tabela tbody tr[data-href] {
  cursor: pointer;
}

.tabela tbody tr[data-href]:hover td {
  background: #111317;
}

.tabela .fraco {
  color: var(--dim);
  font-size: 13px;
}

.tabela td .entrada {
  min-height: 34px;
  font-size: 13.5px;
}

.tabela--edit td {
  padding: 8px 6px;
  vertical-align: top;
}

.nome-lead {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.nome-lead b {
  font-weight: 600;
  color: var(--text);
}

.nome-lead span {
  font-size: 12.5px;
  color: var(--dim);
}

.acoes-linha {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .tabela--cartoes thead {
    display: none;
  }

  .tabela--cartoes,
  .tabela--cartoes tbody {
    display: block;
  }

  .tabela--cartoes tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 14px 0;
    border-bottom: 1px solid #16181d;
  }

  .tabela--cartoes td {
    padding: 0;
    border: 0;
  }

  .tabela--cartoes td[data-rot]::before {
    content: attr(data-rot) ': ';
    color: var(--dim);
    font-size: 12.5px;
  }

  .tabela--cartoes td.dir {
    text-align: left;
  }

  .tabela--cartoes .acoes-linha {
    justify-content: flex-start;
  }
}

.vazio {
  padding: 36px 16px;
  text-align: center;
  color: var(--dim);
  font-size: 14px;
}

.vazio b {
  display: block;
  color: var(--text-2);
  font-weight: 600;
  margin-bottom: 4px;
}

/* Etiquetas */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  background: #16181d;
  color: var(--text-2);
  border: 1px solid var(--line-2);
}

.tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: currentColor;
}

.st-ok {
  color: #7ee39a;
  border-color: #1d4a2a;
  background: #0b1a10;
}

.st-alerta {
  color: #f3d07a;
  border-color: #4d3d14;
  background: #1a1408;
}

.st-erro {
  color: #ffaaa3;
  border-color: #4a2523;
  background: #1c0f0f;
}

.st-info {
  color: #9cc6ff;
  border-color: #1e3a5f;
  background: #0c1828;
}

.st-roxo {
  color: #c9c1ff;
  border-color: #352d66;
  background: #141127;
}

.st-neutro {
  color: #a9aeb7;
  border-color: #2c3038;
  background: #121318;
}

/* Gráficos */

.graf {
  position: relative;
}

.graf svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.graf text {
  fill: var(--dim);
  font-size: 11px;
  font-family: var(--font-text);
}

.graf .grade-linha {
  stroke: #1c1f25;
  stroke-width: 1;
}

.graf .base {
  stroke: #2c3038;
  stroke-width: 1;
}

.graf .mira {
  stroke: #4a4f59;
  stroke-width: 1;
}

.legenda {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: var(--text-2);
}

.legenda span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legenda i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.dica {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  min-width: 150px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #1d2026;
  border: 1px solid #343944;
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.5);
  font-size: 12.5px;
  color: var(--text);
  transform: translate(-50%, calc(-100% - 12px));
  white-space: nowrap;
}

.dica__t {
  color: var(--dim);
  margin-bottom: 6px;
}

.dica__l {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dica__l i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.dica__l b {
  margin-left: auto;
  padding-left: 14px;
  font-variant-numeric: tabular-nums;
}

/* Barras horizontais em HTML */

.barras {
  display: grid;
  gap: 10px;
}

.barra {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(48px, 1fr) auto;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
}

.barra__rot {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.barra__rot i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: none;
}

.barra__trilho {
  height: 10px;
  border-radius: 0 4px 4px 0;
  background: #121419;
  overflow: hidden;
}

.barra__val {
  display: block;
  height: 100%;
  border-radius: 0 4px 4px 0;
  min-width: 2px;
}

.barra__num {
  font-variant-numeric: tabular-nums;
  color: var(--text);
  font-weight: 600;
  min-width: 40px;
  text-align: right;
}

/* Uso x limite do plano */

.uso {
  display: grid;
  gap: 6px;
}

.uso__topo {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  font-size: 13.5px;
  color: var(--text-2);
}

.uso__topo b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.uso__trilho {
  height: 12px;
  border-radius: 6px;
  background: #121419;
  overflow: hidden;
}

.uso__val {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: var(--s1);
  min-width: 2px;
}

.uso__val.alto {
  background: var(--warn);
}

.uso__val.estourou {
  background: var(--critical);
}

.mini-uso {
  display: grid;
  gap: 3px;
  min-width: 120px;
  font-size: 12.5px;
  color: var(--dim);
}

.mini-uso .uso__trilho {
  height: 6px;
}

/* Gaveta e modal */

.gaveta,
.modal {
  padding: 0;
  border: 0;
  background: var(--surface);
  color: var(--text);
}

.gaveta {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 50;
  width: min(560px, 100vw);
  max-width: 100vw;
  max-height: calc(100dvh / var(--z, 1));
  height: calc(100dvh / var(--z, 1));
  margin: 0 0 0 auto;
  border-left: 1px solid var(--line-2);
  overflow: auto;
}

.modal {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(calc(100dvh / var(--z, 1)) - 24px);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  overflow: auto;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.6);
}

.modal--largo {
  width: min(820px, calc(100vw - 24px));
}

.gaveta::backdrop,
.modal::backdrop {
  background: rgb(0 0 0 / 0.65);
}

.modal__topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 0;
}

.modal__topo h2 {
  font-size: 19px;
  font-weight: 600;
}

.modal__corpo {
  display: grid;
  gap: 16px;
  padding: 16px 20px 20px;
}

.modal__acoes {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.dados {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px 14px;
  font-size: 14px;
}

.dados dt {
  color: var(--dim);
}

.dados dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .dados {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }

  .dados dd {
    margin-bottom: 8px;
  }
}

/* Formulários */

.form {
  display: grid;
  gap: 14px;
}

.form__linha {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

.form__rodape {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 6px;
}

.form__rodape .ajuda {
  flex: 1 1 260px;
}

.ajuda {
  font-size: 12.5px;
  color: var(--dim);
  line-height: 1.5;
}

.ajuda code,
.copiar code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-2);
}

.ajuda ol,
.ajuda ul {
  margin: 6px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.copiar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #08090b;
  overflow: hidden;
}

.copiar code {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aviso {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #4d3d14;
  background: #1a1408;
  color: #f3d07a;
  font-size: 13.5px;
  line-height: 1.5;
}

.aviso--info {
  border-color: #1e3a5f;
  background: #0c1828;
  color: #b9d6ff;
}

.aviso--ok {
  border-color: #1d4a2a;
  background: #0b1a10;
  color: #9be8b0;
}

.aviso--erro {
  border-color: #4a2523;
  background: #1c0f0f;
  color: #ffc0ba;
}

.aviso b {
  color: inherit;
}

.aviso .btn {
  margin-top: 10px;
}

.marcar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
}

.marcar input {
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--chrome);
}

/* Interruptor (liga/desliga) */

.chave {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-2);
}

.chave input {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 44px;
  height: 24px;
  flex: none;
  margin: 0;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #22252c;
  cursor: pointer;
}

.chave input::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--dim);
  transition: transform 0.15s ease;
}

.chave input:checked {
  background: var(--good);
  border-color: var(--good);
}

.chave input:checked::after {
  transform: translateX(20px);
  background: #fff;
}

.chave input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Etapas de onboarding */

.etapas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--dim);
}

.etapas span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.etapas span::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
}

.etapas .feito {
  color: var(--text-2);
}

.etapas .feito::before {
  border-color: var(--good-text);
  background: var(--good-text);
  box-shadow: inset 0 0 0 2px var(--surface);
}

/* Horários */

.horarios {
  display: grid;
  gap: 0;
}

.dia {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid #16181d;
}

.dia:last-child {
  border-bottom: 0;
}

.dia__nome {
  padding-top: 7px;
  font-weight: 600;
  font-size: 14px;
}

.dia__faixas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.faixa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #08090b;
  font-size: 13px;
  color: var(--dim);
}

.faixa .entrada {
  width: 104px;
  min-height: 32px;
  padding: 0 8px;
}

.dia__fechado {
  color: var(--dim);
  font-size: 13.5px;
  padding: 0 4px;
}

@media (max-width: 640px) {
  .dia {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .dia__nome {
    padding-top: 0;
  }
}

/* Cartões de lista (profissionais, planos) */

.cartoes {
  display: grid;
  gap: 12px;
}

.cartao {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #0a0b0d;
}

.cartao__topo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lista-check {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.planos {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.plano {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: #0a0b0d;
}

.plano--atual {
  border-color: var(--marca);
}

.plano h3 {
  font-size: 18px;
  font-weight: 600;
}

.plano__preco {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
}

.plano__preco small {
  font-size: 13px;
  color: var(--dim);
  font-family: var(--font-text);
}

.plano ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--text-2);
  display: grid;
  gap: 4px;
}

/* Conversas */

.conversas {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 16px;
  min-height: 560px;
}

.conversas__lista {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-height: calc(calc(100dvh / var(--z, 1)) - 210px);
  min-height: 420px;
  overflow: hidden;
  padding: 0;
}

.conversas__filtros {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.conversas__itens {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
}

.conversa-item a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #16181d;
  text-decoration: none;
}

.conversa-item a:hover {
  background: #111317;
}

.conversa-item a[aria-current='true'] {
  background: var(--surface-2);
  box-shadow: inset 3px 0 0 var(--marca);
}

.conversa-item b {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversa-item time {
  font-size: 12px;
  color: var(--dim);
  white-space: nowrap;
}

.conversa-item p {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversa-item .tag {
  justify-self: end;
}

.chat-painel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-height: calc(calc(100dvh / var(--z, 1)) - 210px);
  min-height: 420px;
  padding: 0;
  overflow: hidden;
}

.chat-topo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.chat-topo h2 {
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}

.chat-topo p {
  font-size: 12.5px;
  color: var(--dim);
}

.chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  overflow-y: auto;
  background: #08090b;
}

.msg {
  max-width: min(78%, 560px);
  display: grid;
  gap: 3px;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.msg--in {
  align-self: flex-start;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  border-bottom-left-radius: 4px;
}

.msg--out {
  align-self: flex-end;
  background: #13241a;
  border: 1px solid #1d4a2a;
  border-bottom-right-radius: 4px;
}

.msg--humano {
  background: #0f1b2b;
  border-color: #1e3a5f;
}

.msg--sistema {
  align-self: center;
  max-width: 90%;
  background: transparent;
  border: 1px dashed var(--line-2);
  color: var(--dim);
  font-size: 13px;
}

.msg__autor {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-2);
  white-space: normal;
}

.msg__rodape {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  font-size: 11px;
  color: var(--dim);
  white-space: normal;
}

.msg__rodape .falhou {
  color: #ff8f86;
}

.msg__tipo {
  font-size: 12px;
  color: var(--dim);
  font-style: italic;
}

.digitando {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  color: var(--dim);
  font-size: 13px;
}

.digitando i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dim);
  animation: pulo 1s infinite ease-in-out;
}

.digitando i:nth-child(2) {
  animation-delay: 0.15s;
}

.digitando i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes pulo {
  0%,
  80%,
  100% {
    opacity: 0.3;
  }

  40% {
    opacity: 1;
  }
}

.chat-envio {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.chat-envio textarea.entrada {
  min-height: 44px;
  max-height: 160px;
  resize: none;
}

.chat-envio .btn {
  min-height: 44px;
}

.chat-info {
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--dim);
}

.chat-vazio {
  margin: auto;
  text-align: center;
  color: var(--dim);
  padding: 24px;
}

@media (max-width: 900px) {
  .conversas {
    grid-template-columns: minmax(0, 1fr);
  }

  .conversas--aberta .conversas__lista,
  .conversas:not(.conversas--aberta) .chat-painel {
    display: none;
  }

  .conversas__lista,
  .chat-painel {
    max-height: none;
    min-height: 0;
  }

  .chat {
    min-height: calc(50dvh / var(--z, 1));
    max-height: calc(62dvh / var(--z, 1));
  }

  .msg {
    max-width: 88%;
  }
}

/* Agenda */

.agenda-dia {
  display: grid;
  gap: 0;
}

.agenda-dia + .agenda-dia {
  margin-top: 18px;
}

.agenda-dia h2 {
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-2);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.agendamento {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #16181d;
}

.agendamento:last-child {
  border-bottom: 0;
}

.agendamento__hora {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.agendamento__info {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.agendamento__info b {
  font-weight: 600;
}

.agendamento__info span {
  font-size: 13px;
  color: var(--dim);
  overflow-wrap: anywhere;
}

.agendamento__acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.agendamento__acoes select.entrada {
  width: auto;
  min-height: 32px;
  font-size: 13px;
}

@media (max-width: 640px) {
  .agendamento {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .agendamento__acoes {
    grid-column: 2;
    justify-content: flex-start;
  }
}

/* Marca */

.previa-marca {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: #000;
  border: 1px solid var(--line);
}

.previa-marca img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.previa-marca b {
  font-family: var(--font-display);
  font-size: 15px;
}

.previa-marca .amostra {
  margin-left: auto;
}

.cor-amostra {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  vertical-align: middle;
}

.qr {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  width: fit-content;
  max-width: 100%;
}

.qr img {
  width: 260px;
  height: 260px;
  image-rendering: pixelated;
}

.qr p {
  color: #121316;
  font-size: 13px;
}

/* Toast e carregando */

.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border-radius: 10px;
  background: #1d2026;
  border: 1px solid #343944;
  color: var(--text);
  font-size: 14px;
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.5);
}

.toast--erro {
  border-color: #6b2a26;
  color: #ffc0ba;
}

.carregando {
  display: grid;
  place-items: center;
  min-height: 240px;
  color: var(--dim);
}

.carregando--peq {
  min-height: 80px;
}

.carga-inicial {
  min-height: calc(100dvh / var(--z, 1));
}

.giro {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  border-top-color: var(--chrome);
  animation: giro 0.8s linear infinite;
}

@keyframes giro {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .giro {
    animation-duration: 2.4s;
  }

  .digitando i {
    animation: none;
    opacity: 0.7;
  }

  .chave input::after {
    transition: none;
  }
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------------------------------------ login */

.entrar {
  min-height: calc(100dvh / var(--z, 1));
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: 24px 16px 14px;
  background: radial-gradient(1200px 600px at 50% -10%, #15171c 0%, transparent 60%), var(--bg);
}

.entrar__caixa {
  width: min(440px, 100%);
  display: grid;
  gap: 18px;
  padding: 30px 26px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.entrar__marca {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
}

.entrar__marca img,
.entrar__marca .adm-marca__letra {
  width: 42px;
  height: 42px;
}

.entrar h1 {
  font-size: 24px;
  font-weight: 600;
}

.entrar__sub {
  font-size: 14px;
  color: var(--dim);
  margin-top: 4px;
}

.entrar .entrada {
  min-height: 46px;
  font-size: 16px;
}

.entrar .btn {
  min-height: 46px;
  font-size: 15px;
}

.entrar__erro {
  font-size: 14px;
  color: #ff8f86;
}

.entrar__erro:empty {
  display: none;
}

.entrar__rodape {
  display: flex;
  justify-content: center;
}

.codigo-2fa {
  letter-spacing: 0.3em;
  text-align: center;
  font-size: 22px !important;
  font-variant-numeric: tabular-nums;
}

.passos-2fa {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--text-2);
}

.chave-2fa {
  display: block;
  padding: 12px;
  border-radius: 10px;
  background: #08090b;
  border: 1px dashed var(--line-2);
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-align: center;
  word-break: break-all;
  color: var(--text);
}

.codigos-rec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 12px;
  margin: 0;
  list-style: none;
  border-radius: 10px;
  background: #08090b;
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 15px;
  text-align: center;
}

.senha-unica {
  display: block;
  padding: 14px;
  border-radius: 10px;
  background: #08090b;
  border: 1px dashed var(--line-2);
  font-family: var(--font-mono);
  font-size: 17px;
  text-align: center;
  word-break: break-all;
  user-select: all;
}

.regras {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--dim);
  display: grid;
  gap: 2px;
}

.regras li.ok {
  color: var(--good-text);
}

.linha-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.linha-flex--entre {
  justify-content: space-between;
}

.texto-fraco {
  color: var(--dim);
  font-size: 13.5px;
}

.quebra {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.sub-titulo {
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 8px;
}

fieldset {
  margin: 0;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px 14px;
}

fieldset legend {
  padding: 0 6px;
  font-size: 13px;
}

.voltar svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* ============================================================ marketing, tempo real, campanhas */

.mb {
  margin-bottom: 14px;
}

.painel__cab h3 {
  font-family: var(--font-text);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0;
}

/* Painel dentro de painel (seção Marketing e anúncios) */
.painel--interno {
  background: #0a0b0d;
  padding: 16px;
}

.painel--interno .tabela-wrap {
  margin: 0 -16px;
  padding: 0 16px;
}

.tabela td a {
  color: var(--text);
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}

.tabela td a:hover {
  text-decoration-color: currentColor;
}

/* Filtros extras (canal e campanha) entram direto no fluxo da barra de filtros */
.filtros__grupo {
  display: contents;
}

/* Indicador "Ao vivo" */
.vivo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #1d4a2a;
  border-radius: 999px;
  background: #0b1a10;
  color: #9be8b0;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.vivo__ponto {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good-text);
  flex: none;
  animation: vivo-pulso 2s ease-in-out infinite;
}

.vivo--pausado {
  border-color: var(--line-2);
  background: #121318;
  color: var(--dim);
}

.vivo--pausado .vivo__ponto {
  background: var(--dim);
  animation: none;
}

.vivo--erro {
  border-color: #4d3d14;
  background: #1a1408;
  color: #f3d07a;
}

.vivo--erro .vivo__ponto {
  background: var(--warn);
}

@keyframes vivo-pulso {
  50% {
    opacity: 0.35;
  }
}

/* Topo do dashboard: números + "Acontecendo agora" ao lado */
.dash-topo {
  align-items: start;
}

.feed {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  max-height: calc(calc(100dvh / var(--z, 1)) - 32px);
  padding-bottom: 8px;
}

.feed__lista {
  margin: 0 -8px;
  padding: 0;
  list-style: none;
  overflow-y: auto;
  min-height: 120px;
  scrollbar-width: thin;
}

.feed__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 9px 8px;
  border-radius: 8px;
  border-bottom: 1px solid #16181d;
}

.feed__item:last-child {
  border-bottom: 0;
}

.feed__ponto {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  flex: none;
}

.feed__corpo p {
  font-size: 13.5px;
  color: var(--text);
  overflow-wrap: anywhere;
}

.feed__meta {
  font-size: 12px;
  color: var(--dim);
}

.feed__vazio {
  padding: 24px 8px;
  color: var(--dim);
  font-size: 13.5px;
  text-align: center;
}

.feed__item--novo {
  animation: feed-novo 6s ease-out both;
}

@keyframes feed-novo {
  from {
    background: rgb(57 135 229 / 0.2);
  }

  to {
    background: transparent;
  }
}

@media (max-width: 1100px) {
  .feed {
    position: static;
    max-height: 460px;
  }
}

/* Insights automáticos */
.insights {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.insight {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--s1);
  border-radius: 10px;
  background: #0a0b0d;
  font-size: 13.5px;
  color: var(--text-2);
}

.insight b {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.insight--bom {
  border-left-color: var(--good);
}

.insight--bom b {
  color: var(--good-text);
}

.insight--alerta {
  border-left-color: var(--warn);
}

.insight--alerta b {
  color: #f3d07a;
}

.insight--info {
  border-left-color: var(--s1);
}

.insight--info b {
  color: #9cc6ff;
}

/* Funil */
.funil {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.funil__etapa {
  display: grid;
  grid-template-columns: minmax(110px, 0.9fr) minmax(60px, 1.6fr) auto;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
}

.funil__rot {
  color: var(--text-2);
}

.funil__trilho {
  height: 22px;
  border-radius: 6px;
  background: #121419;
  overflow: hidden;
}

.funil__val {
  display: block;
  height: 100%;
  border-radius: 6px;
}

.funil__num {
  min-width: 48px;
  text-align: right;
  font-weight: 600;
  color: var(--text);
}

.funil__taxa {
  padding-left: 4px;
  font-size: 12.5px;
  color: var(--dim);
}

.funil__taxa b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* Conversas: mensagem de campanha (disparo em massa) */
.msg--campanha {
  background: #171430;
  border-color: #352d66;
}

/* Campanhas */
.progresso {
  display: grid;
  gap: 4px;
  min-width: 140px;
  font-size: 12.5px;
  color: var(--dim);
}

.progresso .uso__trilho {
  height: 8px;
}

.boas-praticas {
  position: sticky;
  top: 16px;
}

.boas-praticas ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--text-2);
}

@media (max-width: 1100px) {
  .boas-praticas {
    position: static;
  }
}

.vars {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vars .btn {
  font-family: var(--font-mono);
  font-weight: 500;
}

.previas {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  background: #08090b;
}

.previas .msg {
  max-width: 100%;
  justify-self: end;
}

.campo-erro {
  color: #ff8f86;
  font-size: 12.5px;
}

.campo-erro:empty {
  display: none;
}

/* Página pública do dashboard compartilhado */
.publico {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px clamp(16px, 3vw, 40px) 64px;
}

.publico__topo {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 18px;
}

.publico__topo h1 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.publico__topo p {
  margin-top: 4px;
  color: var(--dim);
  font-size: 14px;
}

.publico__rodape {
  margin-top: 32px;
  color: var(--dim);
  font-size: 12.5px;
  text-align: center;
}

/* Crédito discreto no fim de cada layout do painel e da página compartilhada. */
.credito {
  margin: 28px 0 0;
  padding: 0;
  color: #6f7682;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}

.credito a {
  color: inherit;
  text-decoration: none;
}

.credito a:hover {
  text-decoration: underline;
}

.entrar > .credito {
  justify-self: stretch;
  margin: 12px 0 0;
}

.adm-main > .credito {
  margin-top: auto;
  padding-top: 28px;
}

body:has(> .publico) {
  min-height: calc(100dvh / var(--z, 1));
  display: flex;
  flex-direction: column;
}

body:has(> .publico) > .publico {
  flex: 1 0 auto;
  width: 100%;
  min-width: 0;
  padding-bottom: 20px;
}

body:has(> .publico) > .credito {
  margin-top: 0;
  padding: 0 16px 16px;
}

.publico__erro {
  max-width: 520px;
  margin: calc(12vh / var(--z, 1)) auto 0;
  text-align: center;
}

.publico__erro h1 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .vivo__ponto {
    animation: none;
  }

  /* Sem animação: o item novo fica marcado por uma faixa fixa até a próxima atualização. */
  .feed__item--novo {
    animation: none;
    background: rgb(57 135 229 / 0.12);
    box-shadow: inset 3px 0 0 var(--s1);
  }
}

/* ------------------------------------------------------------ cadastro (Nexus Barber) */

.entrar--largo .entrar__caixa {
  width: min(620px, 100%);
}

.escolha-planos {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
}

.escolha-plano {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #0a0b0d;
  cursor: pointer;
}

.escolha-plano input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.escolha-plano:has(input:checked) {
  border-color: var(--marca);
  box-shadow: 0 0 0 1px var(--marca);
}

.escolha-plano:has(input:focus-visible) {
  outline: 2px solid var(--marca);
  outline-offset: 2px;
}

.escolha-plano b {
  font-size: 16px;
}

.escolha-plano__preco {
  font-family: var(--font-display);
  font-size: 20px;
}

.escolha-plano__preco small,
.escolha-plano span {
  font-size: 13px;
  color: var(--dim);
}

.campo-oculto {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__linha--uf {
  grid-template-columns: 1fr 110px;
}

.lista-check {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.lista-check li b {
  color: var(--text-2);
}

.lista-check li.ok b {
  color: var(--good-text);
}

.qr-link {
  width: 200px;
  height: 200px;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
}

/* ---------------------------------------------------------------- conversas: chave geral, apagar, anexo */
.secretaria-chave {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.secretaria-chave__estado { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.secretaria-chave__estado i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.secretaria-chave__estado.ligada i { background: #3ddc84; box-shadow: 0 0 0 4px rgb(61 220 132 / 0.15); }
.secretaria-chave__estado.pausada i { background: #f5b942; box-shadow: 0 0 0 4px rgb(245 185 66 / 0.15); }
.msg--apagada > span:not(.msg__autor):not(.msg__rodape) { text-decoration: line-through; opacity: 0.55; }
.msg__apagar {
  border: 0;
  background: none;
  color: var(--dim);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 2px;
  margin: -4px 0;
}
.msg__apagar:hover { color: #ff8f86; }
.chat-envio__clipe { min-height: 44px; min-width: 44px; display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.chat-envio__clipe svg { width: 20px; height: 20px; }
.anexo-escolhido {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 12px;
  padding: 8px 12px;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  font-size: 14px;
  min-width: 0;
}
.anexo-escolhido span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anexo-escolhido svg { width: 16px; height: 16px; flex: none; }
.anexo-escolhido[hidden] { display: none; }

/* ---------------------------------------------------------------- desempenho da secretária */
.desemp-lista {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.desemp-item {
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) minmax(0, 2fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.015);
}

.desemp-item:hover {
  border-color: var(--line-2);
  background: var(--surface-2);
}

.desemp-item__quem,
.desemp-item__res {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.desemp-item__quem b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desemp-item small {
  color: var(--dim);
  font-size: 12px;
}

.desemp-item__msg {
  color: var(--dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.desemp-item__res {
  justify-items: end;
  text-align: right;
}

.selo {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  color: #0b0c0e;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.seg button b {
  margin-left: 4px;
  opacity: 0.7;
}

@media (max-width: 720px) {
  .desemp-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .desemp-item__msg {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* ---------------------------------------------------------------- campanhas: versões e balões */
.variacoes {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
}

.variacoes__cab {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.variacoes__acoes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.variacao {
  display: grid;
  gap: 6px;
  justify-items: start;
  margin-bottom: 8px;
}

.variacao .campo {
  width: 100%;
}

.previa-grupo {
  display: grid;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.previa-grupo:last-child {
  border-bottom: 0;
}

.previas[data-exemplo] {
  display: grid;
  gap: 6px;
}

/* ---------------------------------------------------------------- o que a secretária pode fazer */
.permissoes__grade {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px 16px;
  margin-top: 10px;
}

.ajuda.ajuda--ok {
  color: var(--good-text);
}

/* ---------------------------------------------------------------- plano com secretária (convite) */
.adm-nav__ia {
  margin-left: auto;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.upsell {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.upsell h2 {
  margin: 0;
}

.upsell__preco {
  display: grid;
  gap: 2px;
  margin: 4px 0;
}

.upsell__preco b {
  font-size: 28px;
}

.upsell__preco small {
  color: var(--dim);
  font-size: 13px;
}

.recursos-ia {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.recursos-ia li {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
}

.recursos-ia span {
  color: var(--dim);
  font-size: 14px;
}

.plano__divisao {
  color: var(--dim);
  font-size: 13px;
  margin-top: -4px;
}

.escolha-ia {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.escolha-plano__div {
  display: block;
  font-family: var(--font-texto, inherit);
}

/* WhatsApp: passos para ler o QR code e lista de como funciona */
.passos-qr { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; font-size: .95rem; }
.lista-ok { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lista-ok li { position: relative; padding-left: 26px; line-height: 1.45; }
.lista-ok li::before { content: ''; position: absolute; left: 4px; top: .45em; width: 10px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); opacity: .8; }

/* Intervalo entre horários: atalhos + valor livre */
.seg--intervalo { width: fit-content; flex-wrap: wrap; }
.campo-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--text-2, #c9ccd3); font-size: 14px; }
.campo-inline small { color: var(--dim); }
.entrada--curta { width: 96px; }

/* Profissionais: foto e redes sociais (opcionais) */
.visualmente-oculto { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.foto-prof { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; margin-bottom: 14px; }
.foto-prof__img {
  width: 72px; height: 72px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--sup2, rgba(255, 255, 255, .06)); border: 1px solid var(--borda, rgba(255, 255, 255, .12));
  font-weight: 700; font-size: 22px; letter-spacing: .02em; color: var(--texto-fraco, #aaa);
}
.foto-prof__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-prof__acoes { display: grid; gap: 4px; min-width: 0; }
.foto-prof__acoes .linha-flex { margin-top: 6px; flex-wrap: wrap; }
.foto-prof label.btn { position: relative; cursor: pointer; }
.redes-prof { display: grid; gap: 10px; margin-top: 14px; }
.rede-linha { display: grid; grid-template-columns: minmax(130px, 170px) 1fr auto; gap: 8px; align-items: center; }
.rede-previa { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--texto-fraco, #aaa); min-height: 0; }
.rede-previa:empty { display: none; }
.rede-previa svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@media (max-width: 560px) {
  .rede-linha { grid-template-columns: 1fr auto; }
  .rede-linha select { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- Agenda: agora e conclusão do atendimento */

.btn--largo { width: 100%; justify-content: center; }

.agora { margin-bottom: 22px; }
.agora__cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.agora__cab h2 { margin: 0; font-size: 17px; }
.agora__grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.agora__cartao {
  display: grid; gap: 6px; padding: 16px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: var(--surface-2);
}
.agora__cartao--cadeira {
  border-color: rgb(63 209 106 / 0.55);
  background: linear-gradient(160deg, rgb(63 209 106 / 0.13), rgb(63 209 106 / 0.02) 60%), var(--surface-2);
  box-shadow: 0 0 0 1px rgb(63 209 106 / 0.18), 0 18px 40px -24px rgb(63 209 106 / 0.6);
}
.agora__cartao--concluir { border-color: rgb(250 178 25 / 0.45); background: linear-gradient(160deg, rgb(250 178 25 / 0.1), transparent 60%), var(--surface-2); }
.agora__cartao--proximo { background: var(--surface); }
.agora__topo { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.agora__selo { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 650; letter-spacing: .02em; color: var(--text-2); text-transform: uppercase; }
.agora__cartao--cadeira .agora__selo { color: var(--good-text); }
.agora__cartao--concluir .agora__selo { color: var(--warn); }
.agora__pulso { width: 9px; height: 9px; border-radius: 50%; background: var(--good-text); box-shadow: 0 0 0 0 rgb(63 209 106 / 0.6); animation: pulso-agora 1.8s ease-out infinite; }
@keyframes pulso-agora { 70% { box-shadow: 0 0 0 9px rgb(63 209 106 / 0); } 100% { box-shadow: 0 0 0 0 rgb(63 209 106 / 0); } }
.agora__hora { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text-2); }
.agora__nome { font-size: 20px; font-weight: 650; line-height: 1.2; }
.agora__info { color: var(--dim); font-size: 13.5px; }
.agora__concluir { margin-top: 8px; min-height: 46px; font-size: 15px; }

.agendamento--agora { position: relative; background: linear-gradient(90deg, rgb(63 209 106 / 0.09), transparent 70%); border-radius: 10px; padding-left: 10px; padding-right: 10px; margin: 0 -10px; }
.agendamento--agora::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--good-text); }
.agendamento--feito .agendamento__hora, .agendamento--feito .agendamento__info b { color: var(--dim); }

.selo-pg { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; border: 1px solid; white-space: nowrap; }
.selo-pg--ok { color: #7ee39a; border-color: #1d4a2a; background: #0b1a10; }
.selo-pg--espera { color: #ffd27a; border-color: #4d3a10; background: #1b1405; }
.selo-pg--falta { color: #f2a08a; border-color: #4f261a; background: #1d0e09; }

@media (prefers-reduced-motion: reduce) { .agora__pulso { animation: none; } }

/* Modal de concluir */
.modal--fech { width: min(560px, calc(100vw - 16px)); }
.fech { display: grid; gap: 12px; }
.fech__cliente { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.fech__cliente b { font-size: 18px; }
.fech__cliente span { color: var(--dim); font-size: 13.5px; }
.fech__tit { margin: 6px 0 0; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); font-weight: 650; }
.fech__itens { display: grid; gap: 8px; }
.fech__item { display: grid; grid-template-columns: minmax(0, 1fr) 128px 36px; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.fech__item--principal { border-color: var(--line-2); }
.fech__nome { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; overflow-wrap: anywhere; }
.fech__nome small { font-size: 11px; font-weight: 600; color: var(--dim); border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 7px; }
.fech__valor-campo { display: flex; align-items: center; gap: 6px; }
.fech__valor-campo span { color: var(--dim); font-size: 13px; }
.fech__valor-campo .entrada { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; min-height: 38px; }
.fech__tirar { width: 36px; height: 36px; }
.fech__pergunta { margin: 4px 0 0; font-weight: 600; color: var(--text-2); }
.fech__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fech__chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px 0 10px; border-radius: 999px;
  border: 1px dashed var(--line-2); background: transparent; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.fech__chip svg { width: 16px; height: 16px; color: var(--dim); }
.fech__chip small { color: var(--dim); font-weight: 600; font-variant-numeric: tabular-nums; }
.fech__chip:hover { border-style: solid; background: var(--surface-2); }
.fech__chip--outro { color: var(--text-2); }
.fech__desconto { display: flex; gap: 10px; align-items: center; }
.fech__desconto .seg button { min-height: 36px; padding: 0 16px; font-size: 14px; }
.fech__desconto .entrada { max-width: 160px; min-height: 40px; }
.fech__resumo { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: #08090b; border: 1px solid var(--line); }
.fech__linha { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; color: var(--text-2); font-variant-numeric: tabular-nums; }
.fech__linha--menos b { color: var(--dim); }
.fech__linha--total { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--text); }
.fech__linha--total b { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.fech__modo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fech__modo button {
  display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer;
}
.fech__modo button span { font-size: 12.5px; color: var(--dim); }
.fech__modo button[aria-checked='true'] { border-color: var(--chrome); box-shadow: inset 0 0 0 1px var(--chrome); background: var(--surface-3); }
.fech__modo button:disabled { opacity: .5; cursor: not-allowed; }
.fech__envio { display: grid; gap: 10px; }
.fech__envio .marcar { align-items: flex-start; }
.marcar--off { opacity: .55; cursor: not-allowed; }
.fech__enviar { min-height: 50px; font-size: 16px; margin-top: 4px; }

.fech__cob, .fech__fim { display: grid; gap: 12px; justify-items: center; text-align: center; }
.fech__rot { font-size: 13px; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; font-weight: 650; }
.fech__valor { margin: 0; font-family: var(--font-display); font-size: 38px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fech__enviado { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; justify-items: start; text-align: left; width: 100%; }
.fech__enviado li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); }
.fech__enviado li svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--good-text); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.fech__enviado li b { width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #4d3a10; color: #ffd27a; font-size: 12px; }
.fech__qr { padding: 12px; background: #fff; border-radius: 16px; line-height: 0; }
.fech__qr img { width: min(240px, 62vw); height: auto; image-rendering: pixelated; }
.fech__cob .copiar { width: 100%; text-align: left; }
.fech__cob .copiar code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fech__st { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; color: #ffd27a; }
.fech__st--parado { color: var(--critical); }
.fech__pulso { width: 10px; height: 10px; border-radius: 50%; background: #ffd27a; animation: pulso-pix 1.4s ease-in-out infinite; }
@keyframes pulso-pix { 50% { opacity: .25; } }
.fech__acoes { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; width: 100%; }
.fech__outro { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; justify-content: center; width: 100%; text-align: left; }
.fech__fim h3 { margin: 0; font-size: 26px; }
.fech__fim p { margin: 0; color: var(--text-2); }
.fech__check { width: 72px; height: 72px; fill: none; stroke: var(--good-text); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fech__check circle { stroke: rgb(63 209 106 / 0.35); }
.fech__check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: tracar 0.5s 0.1s ease-out forwards; }
@keyframes tracar { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .fech__check path { animation: none; stroke-dashoffset: 0; } .fech__pulso { animation: none; } }

@media (max-width: 520px) {
  .fech__item { grid-template-columns: minmax(0, 1fr) 36px; }
  .fech__item .fech__valor-campo { grid-column: 1; grid-row: 2; }
  .fech__item .fech__tirar, .fech__item .fech__tirar-vazio { grid-column: 2; grid-row: 1 / span 2; }
  .fech__modo { grid-template-columns: 1fr; }
  .fech__desconto .entrada { max-width: none; flex: 1; }
}

/* ---------------------------------------------------------------- Super Admin › lojas e provedores */
.lojas__prov { border: 1px solid var(--borda, rgba(255,255,255,.1)); border-radius: 12px; padding: 12px 14px; }
.lojas__prov > summary { cursor: pointer; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; list-style: none; }
.lojas__prov > summary::-webkit-details-marker { display: none; }
.lojas__prov > summary::before { content: '›'; display: inline-block; transition: transform .2s; font-weight: 700; }
.lojas__prov[open] > summary::before { transform: rotate(90deg); }
.entrada--codigo { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; resize: vertical; min-height: 84px; }
@media (prefers-reduced-motion: reduce) { .lojas__prov > summary::before { transition: none; } }

/* ---------------------------------------------------------------- financeiro por moeda */
.fin { margin-bottom: 16px; }
.fin__moeda + .fin__moeda { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--borda, rgba(255,255,255,.1)); }
.fin__moeda h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: .08em; opacity: .75; }
.fin .kpi__val { font-size: clamp(18px, 2vw, 26px); white-space: nowrap; }

/* Países e mercados (Super Admin) */
.tab-paises select.entrada { min-width: 140px; }
.tab-paises input.entrada { min-width: 150px; }
.tab-paises input.entrada--curta { min-width: 80px; max-width: 90px; }
.tab-paises td small { display: block; max-width: 260px; }
