/* ==========================================================================
   Canhoto Digital · sistema de design
   Painel (menu lateral), páginas de visitante e página pública do entregador.
   Mobile first; quebras em 640px (tablet), 1024px (menu lateral fixo).
   ========================================================================== */

:root {
    --bg: #f2f5f7;
    --surface: #ffffff;
    --surface-2: #f7f9fa;
    --text: #0f1b2a;
    --text-2: #344255;
    --muted: #64748b;
    --border: #e2e8ee;
    --border-forte: #cbd5e1;

    --primary: #0f766e;
    --primary-escuro: #0b5d57;
    --primary-claro: #e6f4f2;
    --primary-texto: #0b5d57;

    --ok: #15803d;
    --ok-bg: #e8f6ee;
    --warn: #a16207;
    --warn-bg: #fdf4dc;
    --danger: #c62828;
    --danger-bg: #fdecec;
    --info: #1d4ed8;
    --info-bg: #e9effd;

    --menu-bg: #0c1a2b;
    --menu-texto: #b6c3d4;
    --menu-ativo: #ffffff;

    --raio: 12px;
    --raio-sm: 8px;
    --sombra: 0 1px 2px rgba(15, 27, 42, .05), 0 1px 3px rgba(15, 27, 42, .06);
    --sombra-alta: 0 10px 30px rgba(15, 27, 42, .14);
    --largura-menu: 252px;
    --altura-campo: 44px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font: 15px/1.55 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--primary-escuro); }
img, svg { vertical-align: middle; }
h1, h2, h3 { line-height: 1.25; color: var(--text); letter-spacing: -.01em; }
h1 { font-size: 1.5rem; margin: 0 0 .25rem; font-weight: 700; }
h2 { font-size: 1.08rem; margin: 0 0 1rem; font-weight: 650; }
h3 { font-size: .95rem; margin: 0 0 .5rem; font-weight: 650; }
p { margin: 0 0 1rem; }
small, .muted { color: var(--muted); }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .86em; word-break: break-all; }
.icone { width: 18px; height: 18px; flex: none; }
.oculto { display: none !important; }
.centro { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* ---------------------------------------------------------------- Estrutura do painel */

.app { min-height: 100vh; }

.sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 40;
    width: var(--largura-menu); max-width: 86vw;
    background: var(--menu-bg); color: var(--menu-texto);
    display: flex; flex-direction: column;
    transform: translateX(-100%); transition: transform .22s ease;
    overflow-y: auto;
}
.sidebar.aberto { transform: none; box-shadow: var(--sombra-alta); }
.sidebar-fundo { position: fixed; inset: 0; z-index: 30; background: rgba(12, 26, 43, .45); }

.sidebar .marca {
    display: flex; align-items: center; gap: .65rem; padding: 1.1rem 1.15rem;
    color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem;
}
.sidebar .marca small { display: block; font-weight: 500; font-size: .74rem; color: var(--menu-texto); }

.sidebar .seletor { padding: 0 1rem 1rem; }
.sidebar .seletor label { color: var(--menu-texto); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin-bottom: .35rem; }
.sidebar .seletor select {
    background-color: rgba(255,255,255,.07); color: #fff; border-color: rgba(255,255,255,.14);
    min-height: 40px; font-size: .9rem;
}
.sidebar .seletor select option { color: var(--text); }

.menu-grupo { padding: .25rem .75rem .75rem; }
.menu-grupo > span { display: block; padding: .5rem .5rem .35rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 650; color: #7d8ea4; }
.menu-item {
    display: flex; align-items: center; gap: .7rem; padding: .62rem .7rem; margin-bottom: 2px;
    border-radius: var(--raio-sm); color: var(--menu-texto); text-decoration: none; font-weight: 550;
}
.menu-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.menu-item.ativo { background: rgba(20, 184, 166, .16); color: var(--menu-ativo); box-shadow: inset 3px 0 0 #2dd4bf; }
.menu-item .contagem { margin-left: auto; background: #f59e0b; color: #1f1300; font-size: .72rem; font-weight: 700; border-radius: 99px; padding: .05rem .5rem; }

.sidebar .usuario { margin-top: auto; padding: 1rem; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar .usuario strong { display: block; color: #fff; font-size: .9rem; }
.sidebar .usuario small { color: var(--menu-texto); }
.sidebar .usuario .acoes-usuario { display: flex; gap: .5rem; margin-top: .75rem; }
.sidebar .usuario .acoes-usuario a, .sidebar .usuario .acoes-usuario button {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .5rem; border-radius: var(--raio-sm); border: 1px solid rgba(255,255,255,.14);
    background: transparent; color: var(--menu-texto); font: inherit; font-size: .82rem; cursor: pointer; text-decoration: none;
}
.sidebar .usuario .acoes-usuario a:hover, .sidebar .usuario .acoes-usuario button:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.sidebar .usuario form { flex: 1; display: flex; }

.appbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; gap: .75rem;
    padding: .7rem 1rem; background: var(--menu-bg); color: #fff;
}
.appbar .marca { display: flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; font-weight: 700; }
.botao-menu { background: none; border: 0; color: #fff; padding: .35rem; border-radius: var(--raio-sm); cursor: pointer; display: inline-flex; }
.botao-menu:hover { background: rgba(255,255,255,.1); }

.app-conteudo { display: flex; flex-direction: column; min-height: 100vh; }
.pagina { width: 100%; max-width: 1240px; margin: 0 auto; padding: 1.25rem 1rem 2rem; flex: 1 0 auto; }
.pagina.estreita { max-width: 720px; }

@media (min-width: 1024px) {
    .sidebar { transform: none; }
    .sidebar-fundo, .appbar { display: none; }
    .app-conteudo { margin-left: var(--largura-menu); }
    .pagina { padding: 2rem 2.25rem 2.5rem; }
}

/* ---------------------------------------------------------------- Cabeçalho de página */

.pagina-topo { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.pagina-topo p { margin: .25rem 0 0; color: var(--muted); max-width: 62ch; }
.pagina-topo .acoes { display: flex; flex-wrap: wrap; gap: .5rem; }
.voltar { display: inline-flex; align-items: center; gap: .25rem; margin-bottom: .6rem; font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--muted); }
.voltar:hover { color: var(--primary); }

/* ---------------------------------------------------------------- Cartões e grades */

.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--raio);
    box-shadow: var(--sombra); padding: 1.25rem; margin-bottom: 1.25rem; min-width: 0;
}
.card > :last-child { margin-bottom: 0; }
.card-topo { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card-topo h2 { margin: 0; }
.card.sem-padding { padding: 0; overflow: hidden; }
.card.sem-padding > .card-topo { padding: 1.1rem 1.25rem 0; }
@media (min-width: 640px) { .card { padding: 1.5rem; } .card.sem-padding > .card-topo { padding: 1.25rem 1.5rem 0; } }

.grid { display: grid; gap: 1.25rem; }
.grid > .card { margin-bottom: 0; }
@media (min-width: 900px) {
    .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3-1, .grid-principal { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
    .grid-1-2 { grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr); }
}
.pilha { display: grid; gap: 1.25rem; align-content: start; }
.pilha > .card { margin-bottom: 0; }

.linha { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.entre { justify-content: space-between; }

/* Indicadores */
.indicadores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
@media (min-width: 760px) { .indicadores { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.indicador {
    display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--raio);
    padding: 1rem 1.1rem; text-decoration: none; color: inherit; box-shadow: var(--sombra); transition: border-color .15s, transform .15s;
}
a.indicador:hover { border-color: var(--primary); transform: translateY(-1px); color: inherit; }
.indicador .rotulo { font-size: .8rem; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: .4rem; }
.indicador strong { display: block; font-size: 1.75rem; line-height: 1.2; margin-top: .25rem; }
.indicador.ativo { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-claro); }

/* Lista de dados (rótulo · valor) */
dl.dados { display: grid; grid-template-columns: minmax(96px, max-content) 1fr; gap: .55rem 1.25rem; margin: 0; }
dl.dados dt { color: var(--muted); font-size: .88rem; }
dl.dados dd { margin: 0; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- Botões */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    min-height: 42px; padding: .55rem 1.05rem; border-radius: var(--raio-sm);
    border: 1px solid transparent; background: var(--primary); color: #fff;
    font: inherit; font-weight: 600; font-size: .93rem; text-decoration: none; cursor: pointer;
    transition: background .15s, border-color .15s, box-shadow .15s; white-space: nowrap;
}
.btn:hover { background: var(--primary-escuro); color: #fff; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(15, 118, 110, .3); }
.btn-sec { background: var(--surface); color: var(--text-2); border-color: var(--border-forte); }
.btn-sec:hover { background: var(--surface-2); color: var(--text); border-color: #94a3b8; }
.btn-fantasma { background: transparent; color: var(--text-2); }
.btn-fantasma:hover { background: var(--surface-2); color: var(--text); }
.btn-ok { background: var(--ok); }
.btn-ok:hover { background: #116a32; }
.btn-danger { background: var(--surface); color: var(--danger); border-color: #f1b8b8; }
.btn-danger:hover { background: var(--danger-bg); color: var(--danger); }
.btn-whats { background: #16a34a; }
.btn-whats:hover { background: #12843d; }
.btn-grande { width: 100%; min-height: 52px; font-size: 1.05rem; }
.btn-peq { min-height: 34px; padding: .3rem .7rem; font-size: .84rem; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-icone { width: 38px; min-height: 38px; padding: 0; }

/* ---------------------------------------------------------------- Formulários */

label { display: block; font-weight: 600; font-size: .88rem; color: var(--text-2); margin-bottom: .4rem; }
label small { font-weight: 400; }
.campo { margin-bottom: 1.1rem; }
.ajuda { display: block; margin-top: .35rem; font-size: .83rem; color: var(--muted); }

input[type=text], input[type=email], input[type=password], input[type=date], input[type=tel],
input[type=number], input[type=search], select, textarea {
    width: 100%; min-height: var(--altura-campo); padding: .6rem .85rem;
    font: inherit; font-size: 16px; color: var(--text);
    background-color: var(--surface); border: 1px solid var(--border-forte); border-radius: var(--raio-sm);
    transition: border-color .15s, box-shadow .15s;
}
@media (min-width: 640px) {
    input[type=text], input[type=email], input[type=password], input[type=date], input[type=tel],
    input[type=number], input[type=search], select, textarea { font-size: .95rem; }
}
textarea { min-height: 88px; resize: vertical; }
select {
    appearance: none; padding-right: 2.4rem; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .8rem center;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 118, 110, .16); }
input::placeholder, textarea::placeholder { color: #94a3b8; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--primary); vertical-align: -3px; margin: 0 .45rem 0 0; flex: none; }

.form-grid { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.form-acoes { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }
.opcao { display: flex; align-items: flex-start; gap: .1rem; font-weight: 500; color: var(--text); padding: .7rem .85rem; border: 1px solid var(--border); border-radius: var(--raio-sm); cursor: pointer; margin-bottom: .5rem; }
.opcao:hover { border-color: var(--border-forte); background: var(--surface-2); }
.opcao:has(input:checked) { border-color: var(--primary); background: var(--primary-claro); }
.opcao small { display: block; font-weight: 400; }
.checklist { display: grid; gap: .5rem; }

.erro { color: var(--danger); font-size: .85rem; margin-top: .35rem; }
.campo-atencao { border-color: #f59e0b !important; box-shadow: 0 0 0 3px #fdf0cf !important; }

/* Filtros */
.filtros { display: grid; gap: .75rem 1rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); align-items: end; }
.filtros .campo { margin: 0; }
.filtros .form-acoes { margin: 0; }
details.filtros-recolhiveis > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-weight: 650; color: var(--text); }
details.filtros-recolhiveis > summary::-webkit-details-marker { display: none; }
details.filtros-recolhiveis[open] > summary { margin-bottom: 1rem; }
@media (min-width: 900px) {
    details.filtros-recolhiveis > summary { display: none; }
}

/* ---------------------------------------------------------------- Alertas */

.alerta { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--raio-sm); margin-bottom: 1.25rem; border: 1px solid transparent; }
.alerta .icone { margin-top: 2px; }
.alerta > div { flex: 1; min-width: 0; }
.alerta-ok { background: var(--ok-bg); color: #14532d; border-color: #c6ead3; }
.alerta-erro { background: var(--danger-bg); color: #7f1d1d; border-color: #f6c9c9; }
.alerta-aviso { background: var(--warn-bg); color: #713f12; border-color: #f3e0a6; }
.alerta-info { background: var(--info-bg); color: #1e3a8a; border-color: #cfdcfb; }
.alerta ul { margin: .35rem 0 0; padding-left: 1.1rem; }

/* ---------------------------------------------------------------- Etiquetas */

.status { display: inline-flex; align-items: center; gap: .35rem; padding: .18rem .6rem; border-radius: 99px; font-size: .76rem; font-weight: 650; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pendente { background: var(--warn-bg); color: var(--warn); }
.status-entregue { background: var(--ok-bg); color: var(--ok); }
.status-recusado { background: var(--danger-bg); color: var(--danger); }
.status-ignorado { background: #eef1f4; color: var(--muted); }
.status-distribuir { background: var(--info-bg); color: var(--info); }
.tag-empresa { display: inline-block; padding: .12rem .5rem; border-radius: 6px; background: var(--primary-claro); color: var(--primary-texto); font-size: .76rem; font-weight: 650; white-space: nowrap; }
.tag-tipo { display: inline-block; padding: .1rem .45rem; border-radius: 6px; background: #eef1f4; color: var(--muted); font-size: .68rem; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; vertical-align: 1px; }

/* ---------------------------------------------------------------- Tabelas */

.tabela-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .8rem .9rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; background: var(--surface-2); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
td.acoes { text-align: right; white-space: nowrap; }
tr.clicavel { cursor: pointer; }
tr.clicavel:hover td { background: #f8fbfb; }
.celula-principal strong { display: block; }
.celula-principal small { display: block; }

@media (max-width: 760px) {
    table.responsiva thead { display: none; }
    table.responsiva, table.responsiva tbody { display: block; }
    table.responsiva tr { display: block; padding: .85rem 1rem; border-bottom: 1px solid var(--border); }
    table.responsiva td { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border: 0; padding: .3rem 0; text-align: right; }
    table.responsiva td::before { content: attr(data-rotulo); color: var(--muted); font-size: .82rem; text-align: left; font-weight: 600; }
    table.responsiva td:not([data-rotulo])::before { content: none; }
    table.responsiva td.acoes { justify-content: flex-end; padding-top: .6rem; }
    table.responsiva td.celula-principal { display: block; text-align: left; padding-bottom: .4rem; }
    table.responsiva td.celula-principal::before { content: none; }
}

.paginacao { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .9rem 1rem; border-top: 1px solid var(--border); flex-wrap: wrap; }

/* Estado vazio */
.vazio { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.vazio .icone { width: 40px; height: 40px; color: #94a3b8; margin-bottom: .75rem; }
.vazio strong { display: block; color: var(--text); font-size: 1.02rem; margin-bottom: .25rem; }
.vazio p { margin-bottom: 1rem; }

/* ---------------------------------------------------------------- Lista de itens (cadastros) */

.lista { list-style: none; margin: 0; padding: 0; }
.lista > li { display: flex; align-items: center; gap: .9rem 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.lista > li:last-child { border-bottom: 0; }
.lista .lista-principal { flex: 1 1 220px; min-width: 0; }
.lista .lista-principal strong { display: block; }
.lista .lista-principal small { display: block; overflow-wrap: anywhere; }
.lista .lista-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.lista .lista-acoes { display: flex; gap: .4rem; margin-left: auto; flex-wrap: wrap; }
.lista > li.inativo .lista-principal { opacity: .55; }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: .9rem; background: var(--primary-claro); color: var(--primary-texto); }
@media (min-width: 640px) { .lista > li { padding: 1rem 1.5rem; } }

/* ---------------------------------------------------------------- Janela (dialog) */

dialog.modal {
    width: min(560px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem);
    padding: 0; border: 0; border-radius: 16px; box-shadow: var(--sombra-alta); color: var(--text);
}
dialog.modal[open] { display: flex; flex-direction: column; }
dialog.modal > form { display: flex; flex-direction: column; min-height: 0; }
dialog.modal::backdrop { background: rgba(12, 26, 43, .5); }
.modal-topo { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--border); }
.modal-topo h2 { margin: 0; }
.modal-corpo { padding: 1.4rem; overflow-y: auto; }
.modal-rodape { display: flex; justify-content: flex-end; gap: .6rem; padding: 1rem 1.4rem; border-top: 1px solid var(--border); background: var(--surface-2); flex-wrap: wrap; }

/* ---------------------------------------------------------------- Upload */

.upload {
    position: relative; border: 2px dashed var(--border-forte); border-radius: var(--raio);
    padding: 2.25rem 1.25rem; text-align: center; background: var(--surface-2); cursor: pointer;
    transition: background .15s, border-color .15s;
}
.upload:hover { border-color: var(--primary); }
.upload.arrastando { border-color: var(--primary); background: var(--primary-claro); }
.upload.com-arquivos { border-style: solid; border-color: var(--ok); background: #f3fbf6; }
.upload-icone { width: 56px; height: 56px; margin: 0 auto .85rem; border-radius: 50%; display: grid; place-items: center; background: var(--primary-claro); color: var(--primary); }
.upload-icone .icone { width: 26px; height: 26px; }
.upload strong { font-size: 1.02rem; }
.upload-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-lista { margin: 1rem auto 0; text-align: left; display: inline-block; max-width: 100%; }
.upload-lista:empty { display: none; }
.upload-lista ul { margin: .35rem 0 0; padding-left: 1.2rem; word-break: break-all; }
.upload-dicas { display: grid; gap: .75rem; margin-top: 1.25rem; text-align: left; }
@media (min-width: 640px) { .upload-dicas { grid-template-columns: 1fr 1fr; } }
.upload-dicas div { padding: .85rem 1rem; border-radius: var(--raio-sm); background: var(--surface); border: 1px solid var(--border); font-size: .88rem; color: var(--text-2); }

/* ---------------------------------------------------------------- Barra de ações em lote */

.barra-lote {
    position: sticky; bottom: 1rem; z-index: 15; margin-top: 1rem;
    display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
    padding: .8rem 1rem; border-radius: var(--raio); background: var(--menu-bg); color: #fff; box-shadow: var(--sombra-alta);
}
.barra-lote strong { margin-right: auto; }
.barra-lote select { width: auto; min-width: 210px; min-height: 40px; flex: 1 1 210px; }
.barra-lote .btn-sec { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.barra-lote .btn-sec:hover { background: rgba(255,255,255,.1); }

/* ---------------------------------------------------------------- Diversos */

.copiar { display: flex; gap: .5rem; }
.copiar input { flex: 1; min-width: 0; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; background-color: var(--surface-2); }
.progresso { height: 8px; border-radius: 99px; background: #e9eef3; overflow: hidden; }
.progresso > span { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.conferencia-pdf iframe { width: 100%; height: 75vh; min-height: 460px; border: 1px solid var(--border); border-radius: var(--raio-sm); background: #fff; }
.pin-destaque { font-family: ui-monospace, Consolas, monospace; font-size: 1.7rem; letter-spacing: .35rem; font-weight: 700; }
.assinatura-img { max-width: 100%; border: 1px solid var(--border); border-radius: var(--raio-sm); background: #fff; }

/* ---------------------------------------------------------------- Visitante (login etc.) */

.tela-visitante { min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(160deg, #0c1a2b 0%, #0f3b3b 60%, #0f766e 140%); }
.tela-visitante main { flex: 1 0 auto; display: grid; place-items: center; padding: 2rem 1rem; }
.cartao-visitante { width: 100%; max-width: 430px; background: var(--surface); border-radius: 18px; box-shadow: var(--sombra-alta); padding: 2rem 1.5rem; }
@media (min-width: 640px) { .cartao-visitante { padding: 2.5rem 2.25rem; } }
.marca-login { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.75rem; }
.marca-login strong { display: block; font-size: 1.35rem; line-height: 1.2; }
.marca-login small { color: var(--muted); }
.tela-visitante .rodape-app { border-top: 0; color: #a9b7c6; }
.tela-visitante .rodape-app a, .tela-visitante .rodape-licenca strong { color: #e2e8f0; }

/* ---------------------------------------------------------------- Rodapé */

.rodape-app { padding: 1.25rem 1rem; border-top: 1px solid var(--border); text-align: center; font-size: .8rem; color: var(--muted); line-height: 1.8; }
.rodape-licenca strong { color: var(--text-2); font-weight: 600; }
.rodape-autoria { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .15rem .45rem; }
.rodape-marca { display: inline-flex; align-items: center; gap: .35rem; color: inherit; text-decoration: none; }
.rodape-marca:hover { color: inherit; }
.rodape-marca:hover strong { text-decoration: underline; }
.rodape-marca img { border-radius: 50%; }
@media (max-width: 480px) { .rodape-sep { display: none; } .rodape-autoria { flex-direction: column; } }
body.com-rodape { min-height: 100vh; display: flex; flex-direction: column; }
body.com-rodape > main { flex: 1 0 auto; width: 100%; }

/* ---------------------------------------------------------------- Página pública (entregador) */

.publico-topo { background: var(--menu-bg); color: #fff; padding: .9rem 1rem; display: flex; align-items: center; justify-content: center; gap: .7rem; }
.publico-topo strong { display: block; font-size: 1.08rem; line-height: 1.2; }
.publico-topo span { font-size: .84rem; opacity: .85; }
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 1.25rem 1rem; }
.container.estreito { max-width: 560px; }

.itens { list-style: none; padding: 0; margin: .5rem 0 0; }
.itens li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--border); }
.itens li:last-child { border-bottom: 0; }
details > summary { cursor: pointer; font-weight: 600; color: var(--primary); }

.assinatura-area { position: relative; border: 2px solid var(--border-forte); border-radius: var(--raio); background: #fff; touch-action: none; }
.assinatura-area canvas { display: block; width: 100%; height: 230px; }
.assinatura-area .linha-base { position: absolute; left: 1rem; right: 1rem; bottom: 48px; border-bottom: 1px dashed #b8c2cf; pointer-events: none; }
.assinatura-area .dica { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; font-size: .8rem; color: var(--muted); pointer-events: none; }

.geo { font-size: .88rem; padding: .6rem .85rem; border-radius: var(--raio-sm); background: #eef2f6; }
.geo.ok { background: var(--ok-bg); color: var(--ok); }
.geo.falhou { background: var(--warn-bg); color: var(--warn); }
.icone-grande { font-size: 3.2rem; line-height: 1; margin-bottom: .5rem; }
.pin-input { width: 11rem !important; margin: 0 auto; display: block; text-align: center; font-size: 2rem !important; letter-spacing: .6rem; min-height: 60px !important; }

/* Rota do entregador */
.rota-item { display: block; padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: var(--raio); background: var(--surface); margin-bottom: .75rem; color: inherit; box-shadow: var(--sombra); }
.rota-item.feito { opacity: .7; background: var(--surface-2); box-shadow: none; }
.rota-cabeca { display: flex; gap: .75rem; align-items: flex-start; }
.rota-num { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--primary-claro); color: var(--primary-texto); font-weight: 750; font-size: .85rem; flex: none; }
.rota-item.feito .rota-num { background: var(--ok-bg); color: var(--ok); }
.rota-item .rota-acoes { display: flex; gap: .5rem; margin-top: .85rem; flex-wrap: wrap; }
.rota-item .rota-acoes .btn { flex: 1 1 140px; }

@media (min-width: 640px) { .filtros .campo-largo { grid-column: span 2; } }

/* ---------------------------------------------------------------- Menu: nome da conta abreviado e modo recolhido */

.sidebar-topo { display: flex; align-items: center; gap: .25rem; padding-right: .6rem; }
.sidebar-topo .marca { flex: 1; min-width: 0; }
.marca-texto { min-width: 0; display: block; }
.sidebar .marca small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.botao-recolher { display: none; background: none; border: 0; color: var(--menu-texto); padding: .4rem; border-radius: var(--raio-sm); cursor: pointer; }
.botao-recolher:hover { background: rgba(255,255,255,.08); color: #fff; }
.usuario-id { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.usuario-texto { min-width: 0; }
.usuario-texto strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar .usuario .avatar { background: rgba(255,255,255,.1); color: #fff; }

@media (min-width: 1024px) {
    .botao-recolher { display: inline-flex; }
    .sidebar, .app-conteudo { transition: width .2s ease, margin-left .2s ease; }

    html.menu-recolhido { --largura-menu: 72px; }
    html.menu-recolhido .sidebar { overflow-x: hidden; }
    html.menu-recolhido .sidebar-topo { flex-direction: column; padding: .75rem 0 .5rem; gap: .5rem; }
    html.menu-recolhido .sidebar .marca { padding: .25rem; justify-content: center; flex: none; }
    html.menu-recolhido .marca-texto,
    html.menu-recolhido .sidebar .seletor,
    html.menu-recolhido .menu-grupo > span,
    html.menu-recolhido .menu-item > span,
    html.menu-recolhido .usuario-texto,
    html.menu-recolhido .acoes-usuario span { display: none; }
    html.menu-recolhido .botao-recolher .icone { transform: scaleX(-1); }
    html.menu-recolhido .menu-grupo { padding: .25rem .6rem .5rem; border-top: 1px solid rgba(255,255,255,.06); }
    html.menu-recolhido .menu-item { justify-content: center; padding: .7rem 0; position: relative; }
    html.menu-recolhido .menu-item .contagem { position: absolute; top: 2px; right: 4px; padding: 0 .35rem; font-size: .65rem; display: inline; }
    html.menu-recolhido .usuario { padding: .75rem .5rem; }
    html.menu-recolhido .usuario-id { justify-content: center; }
    html.menu-recolhido .acoes-usuario { flex-direction: column; }
    html.menu-recolhido .acoes-usuario a, html.menu-recolhido .acoes-usuario button { padding: .5rem 0; }
}

/* ---------------------------------------------------------------- Painel (dashboard) */

.numeros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
@media (min-width: 760px) { .numeros { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .numeros { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); } }
.numeros span { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; }
.numeros strong { display: block; font-size: 1.45rem; line-height: 1.25; margin-top: .15rem; white-space: nowrap; }
.numero-destaque strong { color: var(--primary-texto); }
@media (max-width: 759px) { .numero-destaque { grid-column: 1 / -1; } }

.legenda { display: flex; gap: 1rem; font-size: .82rem; color: var(--text-2); flex-wrap: wrap; }
.legenda span { display: inline-flex; align-items: center; gap: .4rem; }
.legenda i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

.grafico svg { width: 100%; height: auto; display: block; overflow: visible; }
.grafico .grade { stroke: #e8edf2; stroke-width: 1; }
.grafico .base { stroke: #cbd5e1; stroke-width: 1; }
.grafico .eixo { font-size: 11px; fill: var(--muted); }
.grafico .alvo { fill: transparent; }
.grafico .coluna:hover .alvo { fill: rgba(15, 118, 110, .07); }

.barra-horizontal { margin-bottom: .85rem; }
.barra-horizontal .linha { margin-bottom: .3rem; font-size: .9rem; flex-wrap: nowrap; }
.barra-horizontal .linha span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- Relatórios, LGPD e textos legais */

.relatorio-card { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
.relatorio-card p { margin: 0; }
.relatorio-card .avatar .icone { width: 20px; height: 20px; }

.lista-check { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.lista-check li { display: flex; gap: .55rem; align-items: flex-start; font-size: .92rem; color: var(--text-2); }
.lista-check .icone { color: var(--ok); margin-top: 2px; }

.aviso-privacidade { font-size: .85rem; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--raio-sm); padding: .65rem .85rem; }
.aviso-privacidade summary { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--text-2); }
.aviso-privacidade p { margin: .6rem 0 0; }

.texto-legal { line-height: 1.7; }
.texto-legal h1 { font-size: 1.6rem; }
.texto-legal h2 { font-size: 1.1rem; margin: 1.75rem 0 .5rem; color: var(--primary-texto); }
.texto-legal ul { padding-left: 1.2rem; }
.texto-legal li { margin-bottom: .45rem; }
@media (min-width: 640px) { .texto-legal { padding: 2.25rem 2.5rem; } }

/* ---------------------------------------------------------------- Site público (início, cadastro) */

body.site { background: var(--surface); }
.site-largura { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .site-largura { padding: 0 1.5rem; } }
.site-topo { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-topo .site-largura { min-height: 64px; }
.site-marca { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); font-weight: 700; line-height: 1.15; }
.site-marca small { display: block; font-weight: 500; font-size: .75rem; color: var(--muted); }
.site-nav { gap: .35rem; flex-wrap: nowrap; }
.site-nav > a:not(.btn) { padding: .5rem .7rem; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: .92rem; }
.site-nav > a:not(.btn):hover { color: var(--primary); }
.site-nav .btn { min-height: 40px; padding: 0 1rem; }
@media (max-width: 760px) { .esconder-celular { display: none; } .site-marca small { display: none; } }

.hero { background: linear-gradient(160deg, #0c1a2b 0%, #0f3b3b 65%, #0f766e 140%); color: #e2e8f0; padding: 3rem 0 3.5rem; overflow: hidden; }
.hero-grade { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero { padding: 4.5rem 0 5rem; } .hero-grade { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.12; letter-spacing: -.02em; margin: 1rem 0; }
.hero h1 span { color: #5eead4; }
.selo-hero { display: inline-block; padding: .35rem .8rem; border-radius: 99px; background: rgba(94,234,212,.12); color: #99f6e4; font-size: .8rem; font-weight: 600; border: 1px solid rgba(94,234,212,.3); }
.hero-texto { font-size: 1.08rem; line-height: 1.6; max-width: 56ch; margin: 0 0 1.75rem; color: #cbd5e1; }
.hero-nota { margin: 1rem 0 0; font-size: .85rem; color: #94a3b8; }
.hero .btn-sec { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.hero .btn-sec:hover { background: rgba(255,255,255,.08); }

.celular-mock { justify-self: center; width: 280px; max-width: 100%; padding: 12px; border-radius: 38px; background: #0b1220; box-shadow: 0 30px 60px rgba(0,0,0,.45), inset 0 0 0 2px #26324a; }
.celular-tela { border-radius: 28px; overflow: hidden; background: var(--bg); color: var(--text); }
.celular-topo { display: flex; align-items: center; gap: .5rem; padding: .9rem 1rem; background: var(--menu-bg); color: #fff; font-weight: 700; font-size: .9rem; }
.celular-corpo { padding: 1rem; display: grid; gap: .55rem; }
.mock-campo { padding: .6rem .75rem; border: 1px solid var(--border); border-radius: var(--raio-sm); background: #fff; font-size: .85rem; }
.mock-assinatura { border: 1px dashed var(--border-forte); border-radius: var(--raio-sm); background: #fff; padding: .25rem; }
.mock-assinatura svg { display: block; width: 100%; height: 60px; }
.mock-geo { font-size: .78rem; color: var(--ok); }
.mock-botao { text-align: center; padding: .7rem; border-radius: var(--raio-sm); background: var(--primary); color: #fff; font-weight: 700; font-size: .9rem; }

.secao { padding: 3.5rem 0; }
.secao-alt { background: var(--bg); }
@media (min-width: 900px) { .secao { padding: 5rem 0; } }
.titulo-secao { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.titulo-secao h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.01em; margin: 0 0 .6rem; }
.titulo-secao p { color: var(--muted); margin: 0; font-size: 1.05rem; }

.cards-3 { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cards-3 .card { margin: 0; }
.cards-3 h3 { margin: .9rem 0 .4rem; }
.cards-3 p { margin: 0; }
.icone-circulo { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-claro); color: var(--primary); }

.passos { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .passos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .passos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.passos li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--raio); padding: 1.5rem; }
.passos li > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; }
.passos h3 { margin: 1rem 0 .4rem; }
.passos p { margin: 0; color: var(--muted); }

.recursos { display: grid; gap: 1rem 2rem; }
@media (min-width: 760px) { .recursos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.recurso { display: flex; gap: .9rem; align-items: flex-start; padding: .5rem 0; }
.recurso > .icone { flex: none; width: 24px; height: 24px; color: var(--primary); margin-top: .1rem; }
.recurso p { margin: .2rem 0 0; color: var(--muted); }

.planos { display: grid; gap: 1.25rem; align-items: stretch; }
@media (min-width: 640px) { .planos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .planos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plano { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--raio); padding: 1.75rem 1.5rem; box-shadow: var(--sombra); }
.plano h3 { margin: 0; font-size: 1.2rem; }
.plano > .muted { margin: .35rem 0 0; min-height: 2.6em; font-size: .92rem; }
.plano .lista-check { flex: 1; margin: 1.25rem 0 1.5rem; }
.plano-destaque { border: 2px solid var(--primary); box-shadow: var(--sombra-alta); }
.plano-selo { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: .2rem .8rem; border-radius: 99px; background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700; }
.plano-preco { margin-top: 1rem; font-size: 2.3rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.plano-preco small { font-size: .9rem; font-weight: 600; color: var(--muted); margin: 0 .15rem; }

.faq details { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.02rem; }
.faq details p { margin: .7rem 0 0; color: var(--text-2); line-height: 1.6; }

.cta-final { padding: 4rem 0; background: linear-gradient(135deg, var(--primary-escuro), var(--primary)); color: #e6f4f2; }
.cta-final h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 .6rem; }
.cta-final p { margin: 0 auto 1.75rem; max-width: 56ch; }

.site-rodape { background: var(--menu-bg); color: var(--menu-texto); padding: 2.5rem 0 1.5rem; font-size: .9rem; }
.site-rodape a { color: #e2e8f0; text-decoration: none; }
.site-rodape a:hover { text-decoration: underline; }
.site-copy { margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; color: #8695a8; }

.cadastro-grade { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .cadastro-grade { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 3rem; } }
.cadastro-grade h1 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); letter-spacing: -.01em; margin: 0 0 .6rem; }

/* ---------------------------------------------------------------- PIX */

.pix-grade { display: grid; gap: 1.25rem; align-items: center; }
@media (min-width: 640px) { .pix-grade { grid-template-columns: 220px minmax(0, 1fr); } }
.pix-qr { width: 220px; max-width: 100%; aspect-ratio: 1; margin: 0 auto; padding: .5rem; background: #fff; border: 1px solid var(--border); border-radius: var(--raio-sm); }
.pix-qr svg { display: block; width: 100%; height: 100%; }

/* ---------------------------------------------------------------- Menu: rolagem só da lista, barra discreta */

.sidebar { overflow: hidden; }
.sidebar .marca { font-size: 1rem; }
.sidebar .marca-texto { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-rolagem {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
    scrollbar-width: thin; scrollbar-color: transparent transparent; transition: scrollbar-color .2s;
}
.sidebar-rolagem:hover, .sidebar-rolagem:focus-within { scrollbar-color: rgba(255,255,255,.22) transparent; }
.sidebar-rolagem::-webkit-scrollbar { width: 6px; }
.sidebar-rolagem::-webkit-scrollbar-track { background: transparent; }
.sidebar-rolagem::-webkit-scrollbar-thumb { background: transparent; border-radius: 99px; }
.sidebar-rolagem:hover::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); }
.sidebar .usuario { flex: none; margin-top: 0; }
@media (max-height: 760px) { .menu-item { padding-top: .5rem; padding-bottom: .5rem; } .menu-grupo { padding-bottom: .4rem; } }

/* ---------------------------------------------------------------- Ajuda */

.link-ajuda { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: .3rem; vertical-align: middle; border-radius: 50%; color: var(--muted); text-decoration: none; }
.link-ajuda .icone { width: 18px; height: 18px; }
.link-ajuda:hover, .link-ajuda:focus-visible { color: var(--primary); background: var(--primary-claro); }

.ajuda-hero { display: grid; gap: 1rem; align-items: end; margin-bottom: 1.5rem; }
@media (min-width: 900px) { .ajuda-hero { grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); } }
.ajuda-hero p { margin: .25rem 0 0; color: var(--muted); }
.ajuda-busca { position: relative; }
.ajuda-busca > .icone { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.ajuda-busca input { padding-left: 2.6rem; min-height: 48px; border-radius: 99px; background-color: var(--surface); box-shadow: var(--sombra); }

.ajuda-grade { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 1024px) { .ajuda-grade { grid-template-columns: 230px minmax(0, 1fr); } }
.ajuda-indice { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; }
.ajuda-indice a { flex: none; display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .8rem; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); text-decoration: none; font-size: .88rem; font-weight: 550; white-space: nowrap; }
.ajuda-indice a:hover { color: var(--primary); border-color: var(--primary); }
.ajuda-indice .icone { width: 16px; height: 16px; color: var(--muted); }
@media (min-width: 1024px) {
    .ajuda-indice { position: sticky; top: 1.5rem; flex-direction: column; overflow: visible; gap: 2px; }
    .ajuda-indice a { border: 0; background: none; border-radius: var(--raio-sm); padding: .5rem .7rem; }
    .ajuda-indice a:hover { background: var(--surface); }
}
.ajuda-conteudo { min-width: 0; }
.ajuda-conteudo > * { scroll-margin-top: 1rem; }
.ajuda-topico { margin-bottom: 2rem; }
.ajuda-topico > h2 { display: flex; align-items: center; gap: .55rem; font-size: 1.15rem; margin-bottom: .75rem; }
.ajuda-topico > h2 .icone { color: var(--primary); }
.ajuda-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--raio-sm); margin-bottom: .5rem; }
.ajuda-item > summary { list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; color: var(--text); font-weight: 600; }
.ajuda-item > summary::-webkit-details-marker { display: none; }
.ajuda-item > summary::after { content: '+'; color: var(--muted); font-weight: 400; font-size: 1.2rem; line-height: 1; }
.ajuda-item[open] > summary::after { content: '–'; }
.ajuda-item > summary:hover { color: var(--primary); }
.ajuda-item > div { padding: 0 1rem 1rem; color: var(--text-2); line-height: 1.6; }
.ajuda-item > div p, .ajuda-item > div ul, .ajuda-item > div ol { margin: 0 0 .5rem; }
.ajuda-item > div > :last-child { margin-bottom: 0; }
.ajuda-item li { margin-bottom: .3rem; }
.ajuda-vazio { padding: 2rem; text-align: center; color: var(--muted); }
.ajuda-suporte { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; background: var(--primary-claro); border-color: #c4e6e1; }
.ajuda-suporte h2 { margin-bottom: .25rem; }
.ajuda-suporte p { margin: 0; }
.mensagem-pronta { width: 100%; font: inherit; font-size: .9rem; line-height: 1.55; background: var(--surface-2); resize: vertical; }

.fluxo { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin-bottom: 1rem; }
.fluxo > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--raio-sm); padding: .8rem; }
.fluxo span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .78rem; font-weight: 700; margin-bottom: .4rem; }
.fluxo strong { display: block; }
.fluxo small { color: var(--muted); }

/* Primeiros passos (Ajuda e Painel) */
.passos-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.passos-lista li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .7rem .85rem; border: 1px solid var(--border); border-radius: var(--raio-sm); }
.passos-lista li p { margin: .15rem 0 0; color: var(--muted); font-size: .9rem; }
.passos-lista li.feito { background: var(--surface-2); }
.passos-lista li.feito strong { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--border-forte); }
.passo-marca { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border-forte); color: var(--text-2); font-weight: 700; font-size: .9rem; }
.feito .passo-marca { background: var(--ok); border-color: var(--ok); color: #fff; }
.feito .passo-marca .icone { width: 18px; height: 18px; }
@media (max-width: 640px) { .passos-lista li { grid-template-columns: 32px minmax(0, 1fr); } .passos-lista li > .btn { grid-column: 2; justify-self: start; } }
.passos-compacto li p { display: none; }
@media (min-width: 900px) { .passos-compacto { grid-template-columns: repeat(2, minmax(0, 1fr)); } .passos-compacto li p { display: block; } }
.cartao-passos { border-color: #c4e6e1; }
.cartao-passos h2 { display: flex; align-items: center; gap: .5rem; margin: 0; }
.cartao-passos h2 .icone { color: var(--primary); }

/* ---------------------------------------------------------------- Páginas de erro */

.tela-erro { text-align: center; }
.tela-erro h1 { margin: .5rem 0 .6rem; font-size: 1.35rem; }
.tela-erro p { line-height: 1.6; }
.codigo-erro { display: block; margin-top: 1rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; color: var(--muted); }

/* Dica de que a lista do menu continua (some ao chegar no fim, graças ao respiro embaixo) */
.sidebar-rolagem { padding-bottom: 1.25rem; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); }
.appbar-ajuda { margin-left: auto; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #cbd5e1; }
.appbar-ajuda:hover { background: rgba(255,255,255,.08); color: #fff; }

/* Site: link para a Web Orago */
.site-nav .link-externo { display: inline-flex; align-items: center; gap: .3rem; }
.site-nav .link-externo .icone { width: 14px; height: 14px; opacity: .7; }
.secao-fornecedor { padding: 2.5rem 0; border-top: 1px solid var(--border); }
.fornecedor-faixa { display: grid; gap: 1rem; align-items: center; }
@media (min-width: 760px) { .fornecedor-faixa { grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.25rem; } }
.fornecedor-faixa img { border-radius: 12px; }
.fornecedor-faixa strong { font-size: 1.05rem; }
.fornecedor-faixa p { margin: .25rem 0 0; color: var(--muted); }
.fornecedor-faixa .btn .icone { width: 16px; height: 16px; }
