/* Mini Store — painel administrativo, instalação e login. */
/* Fontes servidas pelo próprio site: nenhum dado do usuário vai para terceiros ao abrir o painel. */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
:root {
  --ink: #151C2C; --muted: #535D70; --brand: #174EA6; --brand-deep: #0E3473; --yellow: #FFD60A;
  --red: #A61D24; --paper: #F2F4F8; --card: #FFFFFF; --line: #D9DFEA;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.5 var(--body); }
h1, h2 { font-family: var(--display); line-height: 1.15; margin: 0 0 1rem; letter-spacing: -.01em; }
h1 { font-size: 1.9rem; font-weight: 800; }
h2 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 .75rem; }
a { color: var(--brand); }
img { max-width: 100%; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.muted, .help { color: var(--muted); font-size: .92rem; }
.crumb { margin-bottom: .25rem; font-size: .9rem; font-weight: 600; }

/* Barra superior e menu */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: .9rem; background: var(--brand-deep); color: #fff; padding: calc(.6rem + env(safe-area-inset-top, 0px)) 1rem .6rem; }
.bar__brand { color: #fff; text-decoration: none; font: 800 1.15rem/1 var(--display); margin-right: auto; }
.bar__user { display: none; font-size: .9rem; color: #D5E0F5; }
.bar form { margin: 0; }
.bar .link { color: #fff; }
.bar__menu { background: none; border: 1px solid rgba(255, 255, 255, .5); color: #fff; font: 600 .9rem var(--body); padding: .4rem .7rem; border-radius: 8px; min-height: 40px; }
.shell { display: block; }
/* ===== Menu lateral ===== */
.side { display: none; flex-direction: column; background: var(--card); }
.side__head { display: none; }
.side__body { display: flex; flex-direction: column; gap: 2px; padding: .4rem .75rem; }
.side__group { margin: .9rem .75rem .35rem; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5F6B7E; }
.side__group:first-child { margin-top: .4rem; }
.side__link {
  position: relative; display: flex; align-items: center; gap: .8rem; min-height: 46px; padding: 0 .85rem;
  border-radius: 12px; color: #2A3347; text-decoration: none; font-weight: 600; font-size: .98rem;
  transition: background-color 140ms, color 140ms;
}
.side__ic { flex: none; color: #6B7588; transition: color 140ms; }
.side__link[aria-current] { background: #E8EFFB; color: var(--brand-deep); font-weight: 700; }
.side__link[aria-current] .side__ic { color: var(--brand); }
.side__link[aria-current]::before { content: ""; position: absolute; left: -.75rem; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brand); }
.side__link:active { background: var(--paper); }
.side__foot { margin-top: auto; padding: .75rem; display: grid; gap: .6rem; border-top: 1px solid var(--line); }
.side__support {
  display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem; border-radius: 14px;
  background: #E7F6EE; color: #146637; text-decoration: none; transition: background-color 140ms;
}
.side__support span { display: flex; flex-direction: column; line-height: 1.2; }
.side__support strong { font-size: .95rem; }
.side__support small { font-size: .82rem; color: #2F7A4F; }
.side__support[aria-current] { box-shadow: inset 0 0 0 2px #1F8F4E; }
.side__support:active { background: #D3EFDF; }
.side__me { display: flex; align-items: center; gap: .7rem; padding: .25rem .25rem .25rem .35rem; }
.side__avatar { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; font: 700 .95rem/1 var(--body); }
.side__who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; flex: 1; }
.side__who strong { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side__who small { font-size: .8rem; color: var(--muted); }
.side__me form { margin: 0; }
.side__out { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: #5A6477; cursor: pointer; }
.side__out:active { background: var(--paper); }

/* no celular o menu é uma aba lateral que desliza da esquerda, por cima da tela, em qualquer ponto da página */
@media (max-width: 899px) {
  .side, .side.is-open {
    display: flex; position: fixed; z-index: 30; top: 0; bottom: 0; left: 0;
    width: min(320px, 86vw); border-radius: 0 22px 22px 0;
    padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
    overflow-y: auto; overscroll-behavior: contain;
    box-shadow: 12px 0 40px -10px rgba(15, 35, 64, .45);
    transform: translateX(-105%); visibility: hidden;
    transition: transform 280ms cubic-bezier(.22, 1, .36, 1), visibility 0s linear 280ms;
  }
  .side.is-open { transform: none; visibility: visible; transition: transform 280ms cubic-bezier(.22, 1, .36, 1), visibility 0s; }
  .side__head { display: flex; align-items: center; gap: .6rem; padding: 1rem .75rem .6rem 1.1rem; }
  .side__head img { width: 108px; height: auto; }
  .side__tag { padding: .2rem .55rem; border-radius: 999px; background: #E8EFFB; color: var(--brand); font-size: .75rem; font-weight: 700; }
  .side__close { margin-left: auto; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--paper); color: var(--ink); cursor: pointer; }
  .side__close:active { background: var(--line); }
  .menu-veil { position: fixed; inset: 0; z-index: 29; background: rgba(12, 22, 40, .42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: veil-in 200ms ease-out; }
  .menu-veil[hidden] { display: none; }
  @keyframes veil-in { from { opacity: 0; } }
  body.menu-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .side, .side.is-open, .side__link, .menu-veil { transition: none !important; animation: none !important; } }
.main { padding: 1.25rem 1rem 3rem; max-width: 1040px; }

/* Botões e links de ação */
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--brand); color: #fff; border: 2px solid var(--brand); font: 700 .98rem/1 var(--body); padding: .7rem 1.1rem; border-radius: 10px; text-decoration: none; min-height: 44px; cursor: pointer; }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--danger { background: var(--red); border-color: var(--red); }
.btn:active { transform: scale(.97); }
.link { background: none; border: 0; padding: 0; font: 600 .95rem var(--body); color: var(--brand); text-decoration: underline; cursor: pointer; }
.link--danger { color: var(--red); }

/* Avisos */
.flash { padding: .75rem 1rem; border-radius: 10px; font-weight: 600; background: #DDF0DF; border: 1px solid #9CCBA3; }
.flash--erro { background: #FBE1E4; border-color: #E5A1AA; color: #7A0F1D; }
.callout { background: #FFF6C2; border: 2px solid var(--yellow); border-radius: 12px; padding: 1rem; margin-bottom: 1.25rem; }
.callout form { margin: 0; }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: 10px; padding: 1.25rem; color: var(--muted); }

/* Números do painel */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0 0 1.25rem; }
.stats div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.stats dt { color: var(--muted); font-size: .88rem; }
.stats dd { margin: 0; font: 800 2.2rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; margin-bottom: 1.25rem; }
.chart { width: 100%; max-width: 560px; height: auto; display: block; margin-bottom: .5rem; }
.chart rect { fill: var(--brand); }
.chart text { font: 600 8px var(--body); fill: var(--muted); }
.chart .chart__n { fill: var(--ink); }

/* Tabelas */
.title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.title-row h1 { margin: 0; }
.scroll { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
th { font-size: .82rem; color: var(--muted); font-weight: 700; white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.actions { white-space: nowrap; text-align: right; }
.actions form { display: inline; margin: 0 0 0 .75rem; }
.thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; display: block; background: var(--paper); }
.pill { display: inline-block; padding: .15rem .55rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .8rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.pill--on { background: #DDF0DF; border-color: #9CCBA3; color: #0B5A31; }
.pill--wait { background: #FFF6C2; border-color: #E6C200; color: #5C4B00; }
.pager { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; font-size: .92rem; }

/* Formulários */
.form { display: grid; gap: 1rem; max-width: 420px; }
.form--wide { max-width: 640px; }
.form label, .field > label { display: block; font-weight: 600; }
.field > label small, .check small { font-weight: 400; color: var(--muted); }
input, select, textarea { display: block; width: 100%; margin-top: .3rem; font: 400 16px/1.4 var(--body); color: var(--ink); background: #fff; border: 1.5px solid #B4BED0; border-radius: 8px; padding: .65rem .75rem; }
input[type="file"] { padding: .5rem; }
input[aria-invalid], select[aria-invalid], textarea[aria-invalid] { border-color: var(--red); }
.check { display: flex !important; gap: .6rem; align-items: flex-start; font-weight: 600; }
.check input { width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; flex: none; accent-color: var(--brand); }
.check--inline { margin-top: .5rem; font-weight: 400; }
.field .help, .field .err { margin: .3rem 0 0; }
.err { color: var(--red); font-weight: 600; font-size: .9rem; display: block; margin-top: .3rem; }
.preview { display: block; width: 160px; height: 160px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); margin-top: .4rem; }
.form__actions { display: flex; gap: 1.25rem; align-items: center; margin-top: .5rem; }
.form__actions > a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .4rem; font-weight: 600; }

/* QR Codes */
.qrs { display: grid; gap: 1rem; }
.qr { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }
.qr canvas { width: 100%; max-width: 240px; height: auto; display: block; border: 1px solid var(--line); border-radius: 8px; margin-bottom: .75rem; }
.qr__link { word-break: break-all; font-size: .9rem; margin-bottom: .25rem; }
.qr__actions { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; margin-top: .75rem; }

/* Instalação, login e mensagens */
.plain { display: grid; place-items: center; min-height: 100svh; padding: 1rem; background: var(--brand); }
.plain__card { background: var(--card); border-radius: 16px; padding: 1.75rem 1.5rem; width: 100%; max-width: 440px; }
.plain__brand { margin: 0 0 1.25rem; }
.plain__brand img { display: block; width: 180px; height: auto; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
  .btn--danger:hover { background: #8C1021; border-color: #8C1021; }
  .side__link:hover { background: var(--paper); color: var(--ink); }
  .side__link:hover .side__ic { color: var(--ink); }
  .side__link[aria-current]:hover { background: #E8EFFB; color: var(--brand-deep); }
  .side__support:hover { background: #D3EFDF; }
  .side__out:hover { background: var(--paper); color: var(--red); }
  tbody tr:hover { background: #F8FAF4; }
}
@media (min-width: 900px) {
  .bar__menu { display: none; }
  .bar__user { display: inline; }
  .shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: calc(100vh - 56px); }
  .shell { grid-template-columns: 250px minmax(0, 1fr); }
  .side { display: flex; position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; border-right: 1px solid var(--line); padding-top: .5rem; }
  .main { padding: 2rem 2.5rem 4rem; }
  .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .qrs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== Painel no celular: atalhos, envio de imagem e listas em cartões ===== */
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 0 0 1.25rem; }
.quick a { display: flex; flex-direction: column; gap: .15rem; padding: .85rem .95rem; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-height: 64px; }
.quick a strong { font: 700 1.02rem/1.2 var(--display); }
.quick a small { color: var(--muted); font-size: .85rem; }
.quick .quick__main { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: .85rem; background: var(--brand); border-color: var(--brand); color: #fff; padding: 1rem 1.1rem; }
.quick .quick__main svg { flex: none; background: var(--yellow); color: var(--ink); border-radius: 12px; padding: 8px; width: 42px; height: 42px; }
.quick .quick__main span { display: flex; flex-direction: column; gap: .1rem; }
.quick .quick__main strong { font-size: 1.15rem; }
.quick .quick__main small { color: #D5E0F5; }
.quick a:active { transform: scale(.98); }

.btn--big { min-height: 52px; padding: .85rem 1.6rem; font-size: 1.05rem; }
.btn[aria-disabled="true"] { opacity: .75; cursor: progress; }

/* escolha de arquivo: área grande para tocar, com prévia */
.drop { position: relative; display: flex !important; align-items: center; gap: .9rem; margin-top: .35rem; padding: .9rem; border: 2px dashed #B4BED0; border-radius: 14px; background: var(--card); cursor: pointer; font-weight: 400 !important; min-height: 76px; }
.drop.has-file { border-style: solid; border-color: var(--brand); background: #F4F7FD; }
.drop__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; }
.drop__input:focus-visible + .drop__img, .drop__input:focus-visible ~ .drop__text { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.drop__img { flex: none; width: 72px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.drop__text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.drop__text strong { font-weight: 700; color: var(--brand); overflow-wrap: anywhere; }
.drop__text span { color: var(--muted); font-size: .88rem; }
.drop:not(.has-file)::before { content: ""; flex: none; width: 44px; height: 44px; border-radius: 12px; background: #EAF0FB url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23174EA6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4M7 9l5-5 5 5M5 20h14'/%3E%3C/svg%3E") center / 22px no-repeat; }

/* opções menos usadas, recolhidas */
.more-opts { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.more-opts summary { cursor: pointer; padding: .85rem 1rem; font-weight: 700; color: var(--brand); list-style-position: inside; }
.more-opts summary small { display: block; font-weight: 400; color: var(--muted); margin-top: .1rem; padding-left: 1.1rem; }
.more-opts__body { display: grid; gap: 1rem; padding: 0 1rem 1rem; }

/* botões de ação nas listas: grandes o bastante para o dedo */
.act { display: inline-flex; align-items: center; min-height: 44px; padding: .35rem .7rem; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--brand); font: 600 .9rem var(--body); text-decoration: none; cursor: pointer; }
.act--danger { color: var(--red); }
.actions form { margin-left: .4rem; }

@media (max-width: 719px) {
  /* cada linha da tabela vira um cartão */
  .scroll--cards { overflow: visible; background: none; border: 0; }
  table.cards, table.cards tbody { display: block; }
  table.cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.cards tr { display: grid; grid-template-columns: 1fr; gap: .25rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .85rem; margin-bottom: .75rem; }
  table.cards.cards--thumb tr { grid-template-columns: 64px 1fr; column-gap: .85rem; }
  table.cards td { display: block; border: 0; padding: 0; text-align: left; }
  table.cards.cards--thumb td:not(.c-thumb) { grid-column: 2; }
  table.cards td.c-thumb { grid-row: span 6; }
  table.cards td.c-thumb .thumb { width: 64px; height: 86px; }
  table.cards td.c-main { font: 700 1.05rem/1.25 var(--display); }
  table.cards td.c-meta[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .85rem; }
  table.cards td.c-meta { font-size: .92rem; }
  table.cards td.actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; padding-top: .6rem; border-top: 1px solid var(--line); white-space: normal; }
  table.cards td.actions form { margin: 0; }
  table.cards td.actions .act { flex: 1 1 auto; justify-content: center; }
}
@media (min-width: 900px) { .quick { grid-template-columns: 2fr 1fr 1fr 1fr; } .quick .quick__main { grid-column: auto; } }
@media (hover: hover) and (pointer: fine) {
  .quick a:hover { border-color: var(--brand); }
  .act:hover { border-color: currentColor; }
  .drop:hover { border-color: var(--brand); }
}
/* ===== Acessos ===== */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 1rem; }
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.seg a { padding: .55rem .8rem; border-radius: 9px; font-weight: 700; font-size: .9rem; color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.seg a[aria-current] { background: var(--brand); color: #fff; }
.filters__unit select { margin: 0; min-height: 44px; }
.live { display: flex; align-items: flex-start; gap: .9rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.live h2 { margin: 0 0 .25rem; font-size: 1.05rem; }
.live .muted { margin: 0; font-size: .85rem; }
.live__n { margin: 0; font: 800 2.8rem/1 var(--display); font-variant-numeric: tabular-nums; color: var(--ink); }
.live__dot { flex: none; width: 12px; height: 12px; margin-top: .9rem; border-radius: 50%; background: #1E9E5A; box-shadow: 0 0 0 4px rgba(30, 158, 90, .18); }
@media (prefers-reduced-motion: no-preference) { .live__dot { animation: pulse 2s ease-out infinite; } @keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(30, 158, 90, .05); } } }
.stats--acessos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.viz { width: 100%; height: auto; display: block; margin: .25rem 0 .5rem; }
.viz__bar { fill: var(--brand); }
.viz__base { stroke: var(--line); stroke-width: 1; }
.viz__hit { fill: transparent; }
.viz__hit:hover { fill: rgba(23, 78, 166, .06); }
.viz__val { font: 700 12px var(--body); fill: var(--ink); }
.viz__tick { font: 500 11px var(--body); fill: var(--muted); }
.viz__table summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--brand); font-weight: 600; font-size: .9rem; }
.viz__table table { margin-top: .5rem; }
.meter { display: grid; gap: .65rem; }
.meter li { display: grid; grid-template-columns: minmax(0, 9.5rem) 1fr 3rem; align-items: center; gap: .6rem; }
.meter__lbl { font-weight: 600; font-size: .92rem; }
.meter__bar { width: 100%; height: 8px; display: block; }
.meter__track { fill: var(--paper); }
.meter__fill { fill: var(--brand); }
.meter__n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.recent li { display: grid; grid-template-columns: 1fr auto; column-gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.recent li:last-child { border-bottom: 0; }
.recent span { grid-column: 1; color: var(--muted); font-size: .88rem; }
.recent time { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 700; font-size: .88rem; color: var(--ink); white-space: nowrap; }
@media (min-width: 900px) { .stats--acessos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.filters__go[hidden] { display: none; }
.meter, .recent { list-style: none; margin: 0; padding: 0; }
/* busca na listagem (Clientes) */
.search { display: flex; gap: .5rem; align-items: center; margin: 0 0 .6rem; }
.search input { flex: 1; min-width: 0; min-height: 46px; padding: .6rem .85rem; border: 1.5px solid var(--line); border-radius: 12px; font: 500 16px/1.3 var(--body); background: var(--card); color: var(--ink); }
.search input:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.search .btn { min-height: 46px; border: 1.5px solid var(--line); }
.search__clear { font-weight: 600; white-space: nowrap; }
/* Suporte (WhatsApp) */
.bar__help { color: #fff; font-weight: 700; font-size: .9rem; text-decoration: none; padding: .4rem .8rem; border-radius: 999px; background: #17723E; min-height: 44px; display: inline-flex; align-items: center; }
.bar__help:hover { background: #125C32; }
.support { max-width: 640px; }
.support__main { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border-radius: 12px; background: #17723E; color: #fff; text-decoration: none; }
.support__main:hover { background: #125C32; }
.support__main span { display: flex; flex-direction: column; gap: .15rem; }
.support__main strong { font: 800 1.1rem/1.2 var(--display); }
.support__main small { opacity: .9; font-size: .95rem; }
.support h2 { font-size: 1rem; margin: 1.25rem 0 .5rem; }
.support__topics { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
.support__topics a { display: block; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.support__topics a:hover { border-color: #1F8F4E; color: #17723E; }
/* ===== Revisão de UI/UX e LGPD ===== */
.bar { min-height: 60px; }
.bar__brand { display: inline-flex; align-items: center; min-height: 44px; }
.bar__menu { min-height: 44px; }
.qr__actions .link, .qr .link { display: inline-flex; align-items: center; min-height: 44px; }
select { min-height: 46px; }
.check { min-height: 44px; align-items: center; }
.check input { width: 1.5rem; height: 1.5rem; margin: 0; }
.stats--lgpd { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
.stats--lgpd dd { font-size: 1.7rem; }
.callout .btn { margin-top: .25rem; }
.auditlog { list-style: none; margin: 0; padding: 0; }
.auditlog li { display: grid; gap: .1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.auditlog li:last-child { border-bottom: 0; }
.auditlog time { color: var(--muted); font-size: .84rem; }

/* ===== Encartes e clientes separados por unidade ===== */
.side__sub > summary { cursor: pointer; list-style: none; }
.side__sub > summary::-webkit-details-marker { display: none; }
.side__chev { flex: none; margin-left: auto; color: #6B7588; transition: transform 180ms; }
.side__sub[open] .side__chev { transform: rotate(180deg); }
.side__units { display: grid; gap: 2px; margin: 2px 0 .35rem 1.55rem; padding-left: .55rem; border-left: 2px solid var(--line); }
.side__unit { display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-height: 44px; padding: 0 .65rem; border-radius: 10px; color: #3A445A; font-size: .93rem; font-weight: 600; text-decoration: none; }
.side__unit span { min-width: 0; overflow-wrap: anywhere; line-height: 1.2; }
.side__unit small { flex: none; min-width: 1.6rem; padding: .1rem .35rem; border-radius: 999px; background: var(--paper); color: var(--muted); font-size: .78rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.side__unit:active { background: var(--paper); }
.side__unit[aria-current] { background: var(--brand); color: #fff; }
.side__unit[aria-current] small { background: rgba(255, 255, 255, .2); color: #fff; }
.units { display: grid; gap: .6rem; margin: 0 0 1.25rem; }
.unit { display: flex; align-items: center; gap: .75rem; min-height: 72px; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); text-decoration: none; }
.unit__text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.unit__text strong { font: 700 1.05rem/1.2 var(--display); overflow-wrap: anywhere; }
.unit__text small { color: var(--muted); font-size: .88rem; }
.unit > svg { flex: none; margin-left: auto; color: var(--brand); }
.unit:active { transform: scale(.98); }
.unit--all { background: #E8EFFB; border-color: #BFD0EE; }
@media (min-width: 640px) { .units { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .units { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (hover: hover) and (pointer: fine) {
  .unit:hover { border-color: var(--brand); }
  .side__unit:hover { background: var(--paper); color: var(--ink); }
  .side__unit[aria-current]:hover { background: var(--brand-deep); color: #fff; }
}
@media (prefers-reduced-motion: reduce) { .side__chev { transition: none; } .unit:active { transform: none; } }
