/* Painel da barbearia */

/* ---------- Entrar / primeiro acesso ---------- */
.tela-auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-caixa { width: 100%; max-width: 400px; }
.auth-larga { max-width: 520px; }
.auth-marca { display: block; text-align: center; font-size: 22px; font-weight: 800; text-decoration: none; margin-bottom: 18px; letter-spacing: -.01em; }
.auth-marca::before { content: "✂"; color: var(--gold); margin-right: 8px; }
.abas-auth { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.abas-auth button { border: 0; background: none; min-height: 40px; border-radius: 9px; font-weight: 600; color: var(--muted); }
.abas-auth button.ativo { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.auth-intro { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.auth-ok { background: var(--ok-soft); color: var(--ok); padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 12px; }
.auth-rodape { text-align: center; margin-top: 10px; }
.onb-titulo { font-size: 22px; margin-bottom: 6px; }
.onb-barbeiro { margin-bottom: 16px; }
.convite-card { text-align: center; }
.convite-selo {
  display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px;
  background: var(--gold-soft); color: var(--gold-ink); font-weight: 700; font-size: 13px;
}
.convite-card .sub { margin-bottom: 18px; }
#onb-slug-status.ok { color: var(--ok); font-weight: 600; }
#onb-slug-status.nao { color: var(--danger); font-weight: 600; }

/* ---------- Cabeçalho e abas ---------- */
.topo { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 50; }
.topo-conteudo {
  max-width: 980px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.topo-marca { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topo-avatar { width: 40px; height: 40px; background: #2b2621; color: var(--gold); }
.topo-textos { display: flex; flex-direction: column; min-width: 0; }
.topo-textos strong { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo-textos a { font-size: 13px; color: #cfc6b8; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo-textos a:hover { color: #fff; text-decoration: underline; }

.abas {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(var(--n-abas, 5), 1fr);
  background: var(--card); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.abas a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 60px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-decoration: none;
  min-width: 0; white-space: nowrap;
}
.abas a svg { width: 23px; height: 23px; }
.abas a.ativa { color: var(--ink); }
.abas a.ativa svg { color: var(--gold-ink); }

.conteudo { max-width: 980px; margin: 0 auto; padding: 16px 16px 100px; }
#aviso-inativa { margin-bottom: 16px; }
#aviso-inativa a { font-weight: 700; }

@media (min-width: 820px) {
  .abas {
    position: static; display: flex; justify-content: flex-start; gap: 4px;
    max-width: 980px; margin: 0 auto; padding: 0 12px; background: transparent; border: 0;
  }
  .abas a {
    flex-direction: row; min-height: 46px; padding: 0 14px; font-size: 15px; gap: 8px;
    color: #cfc6b8; border-bottom: 3px solid transparent;
  }
  .abas a svg { width: 19px; height: 19px; }
  .abas a:hover { color: #fff; }
  .abas a.ativa { color: #fff; border-bottom-color: var(--gold); }
  .abas a.ativa svg { color: var(--gold); }
  .conteudo { padding: 24px 16px 60px; }
  #toasts { bottom: 24px; }
}

/* ---------- Elementos comuns do painel ---------- */
.cab-aba { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cab-aba h2 { font-size: 22px; }
.lista { display: flex; flex-direction: column; gap: 10px; }
.linha-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.linha-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.linha-info strong { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.linha-info small { color: var(--muted); font-size: 14px; }
.item-oculto { opacity: .65; }
.inativos { margin-top: 20px; }
.inativos summary { cursor: pointer; color: var(--muted); font-weight: 600; padding: 8px 0; }
.inativos .lista { margin-top: 8px; opacity: .75; }
.botoes-linha { display: flex; gap: 8px; flex-wrap: wrap; }
.link-box {
  padding: 12px 14px; margin-bottom: 12px; border-radius: 10px;
  background: var(--gold-soft); border: 1px dashed var(--gold);
  font-weight: 700; word-break: break-all; color: var(--gold-ink);
}
.subtitulo { font-size: 16px; margin: 22px 0 10px; }
.passos-lista { margin: 6px 0 16px; padding-left: 22px; color: var(--ink-2); }
.passos-lista li { margin-bottom: 6px; }
.tela-centro-mini { display: grid; place-items: center; padding: 40px 0; }
.input-sm { min-height: 40px !important; padding: 6px 12px !important; font-size: 15px !important; width: auto !important; }
.btn-icone {
  width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--line-2);
  background: var(--card); font-size: 24px; line-height: 1; padding-bottom: 3px;
}
.btn-icone:hover { border-color: var(--ink); }
.segmentado { display: inline-flex; background: #ebe6de; border-radius: 999px; padding: 3px; }
.segmentado button { border: 0; background: none; min-height: 36px; padding: 0 16px; border-radius: 999px; font-weight: 600; color: var(--muted); font-size: 14px; }
.segmentado button.ativo { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }

/* ---------- Agenda ---------- */
.agenda-topo { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.nav-data { display: flex; align-items: center; gap: 8px; }
.input-data { width: 160px !important; min-height: 42px !important; padding: 6px 10px !important; font-weight: 600; }
.agenda-filtros { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.agenda-acoes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.agenda-cabecalho { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.agenda-cabecalho h2 { font-size: 19px; }
.agenda-cabecalho p { color: var(--muted); font-size: 14px; font-weight: 600; }

/* Grade de horários do barbeiro: cada cartão ocupa a duração real do atendimento. */
.agenda-grade-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--card); box-shadow: var(--shadow); }
.agenda-grade-dia { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: center; color: var(--gold-ink); font-weight: 800; text-transform: capitalize; }
.agenda-grade-legenda { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 7px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.agenda-grade-legenda span::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 5px; border: 1px solid #bcb5ad; border-radius: 3px; vertical-align: -1px; }
.agenda-grade-legenda .ocupado::before { background: #7b45d9; border-color: #6234b3; }
.agenda-grade-legenda .livre::before { background: #fff; }
.agenda-grade-legenda .fechado::before { background: #eeeae5; }
.agenda-grade-dia-todo { display: block; width: calc(100% - 16px); margin: 8px; padding: 10px 12px; border: 1px solid #b9b4ad; border-radius: 9px; text-align: left; background: #edeae5; color: var(--ink-2); font-weight: 700; }
.agenda-grade-aviso { margin: 10px 12px; padding: 10px 12px; border-radius: 9px; background: var(--warn-soft); color: var(--warn); font-size: 13px; }
.agenda-grade { position: relative; min-height: 300px; background: #fff; }
.agenda-grade-fechado { position: absolute; left: 56px; right: 0; background: #eeeae5; pointer-events: none; }
.agenda-grade-linha { position: absolute; left: 0; right: 0; height: 1px; border-top: 1px solid #e4e1df; z-index: 1; pointer-events: none; }
.agenda-grade-linha time { position: absolute; top: -10px; left: 5px; width: 46px; padding: 2px 3px; background: var(--card); color: var(--muted); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.agenda-grade-evento, .agenda-grade-bloqueio { position: absolute; z-index: 2; left: 58px; right: 6px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; overflow: hidden; min-width: 0; border-radius: 8px; padding: 6px 9px; text-align: left; cursor: pointer; }
.agenda-grade-evento { border: 1px solid #6234b3; background: #7b45d9; color: #fff; box-shadow: 0 2px 6px #49308125; }
.agenda-grade-evento:hover, .agenda-grade-evento:focus-visible { background: #6935c7; outline: 2px solid #40207f; outline-offset: 1px; }
.agenda-grade-evento.espera { border-color: #a66a13; background: #a96b17; }
.agenda-grade-evento.alerta-falta { border-color: #8c321f; background: #ae4e2e; }
.agenda-grade-evento.alerta-falta:hover, .agenda-grade-evento.alerta-falta:focus-visible { background: #923c22; outline-color: #742b1b; }
.agenda-grade-topline { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; }
.agenda-grade-nome { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 800; }
.agenda-grade-badge { flex: none; display: inline-block; padding: 1px 5px; border-radius: 999px; background: #268c55; color: #fff; font-size: 10px; font-weight: 800; }
.agenda-grade-evento.espera .agenda-grade-badge { background: #fff2c6; color: #744506; }
.agenda-grade-badge.falta { background: #fff1d5; color: #78300f; }
.agenda-grade-evento small, .agenda-grade-bloqueio small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; line-height: 1.25; }
.agenda-grade-evento.curto { padding-top: 2px; padding-bottom: 2px; }
.agenda-grade-evento.curto small { display: none; }
.agenda-grade-bloqueio { border: 1px solid #b8b2aa; background: #dcd7d0; color: #403b36; }
.agenda-grade-bloqueio strong { display: block; font-size: 12px; }
.agenda-grade-detalhe { padding: 0 12px; }
.agenda-grade-detalhe:not(:empty) { padding-top: 16px; padding-bottom: 16px; border-top: 1px solid var(--line); }
.agenda-grade-detalhe-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.agenda-grade-detalhe-topo h3 { font-size: 16px; }
.agenda-grade-historico { padding: 12px; border-top: 1px solid var(--line); }
.agenda-grade-historico summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.agenda-grade-historico .ag-lista { margin-top: 12px; }
.agenda-fab { position: fixed; z-index: 40; right: max(16px, calc((100vw - 950px) / 2)); bottom: calc(80px + env(safe-area-inset-bottom)); min-height: 46px; padding: 0 18px; border: 0; border-radius: 11px; background: #208e52; color: #fff; box-shadow: 0 5px 16px #173c2860; font-weight: 800; }
.agenda-fab:hover, .agenda-fab:focus-visible { background: #157643; outline: 2px solid #0e5e35; outline-offset: 2px; }
@media (min-width: 820px) { .agenda-fab { bottom: 24px; } }
@media (max-width: 480px) {
  .nav-data { width: 100%; gap: 6px; }
  .nav-data .input-data { flex: 1; min-width: 0; width: auto !important; font-size: 13px; }
  .nav-data .btn-icone { width: 36px; height: 38px; }
  .nav-data .btn-sm { padding: 0 10px; min-height: 38px; }
  .agenda-grade-evento, .agenda-grade-bloqueio { left: 50px; right: 4px; padding-left: 5px; padding-right: 5px; }
  .agenda-grade-fechado { left: 49px; }
  .agenda-grade-linha time { width: 40px; left: 2px; }
}

.ag-lista { display: flex; flex-direction: column; gap: 10px; }
.ag-item {
  display: flex; gap: 14px; padding: 14px 16px;
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.ag-apagado { border-left-color: var(--line-2); }
.ag-apagado .ag-cliente, .ag-apagado .ag-hora strong { color: var(--muted); }
.ag-bloqueio { border-left-color: #9e968b; background: repeating-linear-gradient(135deg, #fbfaf8, #fbfaf8 10px, #f4f1ec 10px, #f4f1ec 20px); }
.ag-hora { flex: none; width: 52px; display: flex; flex-direction: column; }
.ag-hora strong { font-size: 17px; }
.ag-hora small { color: var(--muted); font-size: 13px; }
.ag-corpo { flex: 1; min-width: 0; }
.ag-linha1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ag-cliente { font-size: 16px; }
.ag-detalhe { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.ag-obs { font-size: 14px; margin-top: 6px; padding: 6px 10px; background: var(--bg); border-radius: 8px; color: var(--ink-2); }
.ag-feitos { font-size: 13px; color: var(--ok); margin-top: 6px; font-weight: 600; }
.ag-acoes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.ag-acoes .btn { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.ag-acoes .btn svg { width: 15px; height: 15px; }
.badge-leve { background: transparent; border: 1px solid var(--line-2); color: var(--muted); font-weight: 600; }
.ag-espera { border-left-color: #e0a526; border-left-style: dashed; }
.ag-item.ag-alerta-falta { border-left-color: #ae4e2e; background: #fff2ec; }
.badge-falta { background: #f9d9c8; color: #7b2f18; }
.modelo-mensagem { padding: 14px 0; border-bottom: 1px solid var(--line); }
.modelo-mensagem .campo { margin-bottom: 5px; }
.modelo-mensagem textarea { min-height: 100px; resize: vertical; }
.modelo-mensagem .dica { display: block; margin-bottom: 8px; }
.ag-pix {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 3px 10px;
  border-radius: 999px; font-size: 13px; font-weight: 700; background: #e8f6f3; color: #0f6b5c;
}
.ag-pix svg { width: 15px; height: 15px; }
.ag-pix-espera { background: var(--warn-soft); color: var(--warn); }
.ag-pix-devolvido { background: #efebe4; color: var(--muted); }
.texto-aviso { color: var(--warn); font-weight: 600; }
.acesso-box {
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  padding: 12px 14px; margin-bottom: 14px; border-radius: 12px;
  background: var(--gold-soft); border: 1px solid #efdcae; font-size: 14px;
}
.acesso-ok { background: var(--ok-soft); border-color: #bfe3cf; color: var(--ok); }
.acesso-ok a { color: inherit; font-weight: 700; }
.resumo-barbeiro { padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: 14px; line-height: 1.6; }
.linha-pix { display: inline-flex; align-items: center; gap: 5px; color: #0f6b5c !important; font-weight: 600; }
.linha-pix svg { width: 14px; height: 14px; }
.modal-botoes-coluna { flex-direction: column; align-items: stretch; }
.modal-botoes-coluna .btn-link { align-self: center; }

/* ---------- Pix (Ajustes) ---------- */
.pix-conectado {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 10px;
  border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: 14px;
}
.pix-conectado svg { width: 18px; height: 18px; flex: none; }
.whats-conexao { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.plano-valores { background: var(--bg); border-radius: 12px; padding: 4px 14px; }
.plano-valores div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.plano-valores div:last-child { border-bottom: 0; }
.plano-valores span { color: var(--muted); }
.plano-total strong { font-size: 17px; }
#aviso-inativa .btn { margin-left: 8px; }
.qr-area { display: grid; place-items: center; min-height: 240px; margin-bottom: 12px; }
.qr-area .pix-qr { width: 240px; height: 240px; }

.ag-dia { margin-bottom: 18px; }
.ag-dia-titulo {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  border: 0; background: none; padding: 8px 2px; margin-bottom: 4px; text-align: left;
  font-weight: 700; font-size: 16px; border-bottom: 1px solid var(--line);
}
.ag-dia-titulo small { color: var(--muted); font-weight: 600; font-size: 13px; }
.ag-dia-titulo.hoje span::after { content: " • hoje"; color: var(--gold-ink); }
.ag-dia-titulo:hover span { text-decoration: underline; }

.sugestoes { margin: -4px 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; max-height: 136px; overflow-y: auto; }
.chip {
  min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--card); font-weight: 600; font-size: 14px;
}
.chip:hover { border-color: var(--ink); }
.chip.ativo { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Clientes ---------- */
.barra-busca { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 14px; }
.barra-busca .input { min-height: 46px; }
@media (min-width: 640px) { .barra-busca { grid-template-columns: 1fr 240px; } }
.lista-clientes { display: flex; flex-direction: column; gap: 8px; }
.cli-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.cli-item:hover { border-color: var(--ink-2); }
.cli-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cli-info small { color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cli-num { display: flex; flex-direction: column; align-items: center; min-width: 52px; }
.cli-num strong { font-size: 18px; }
.cli-num small { color: var(--muted); font-size: 12px; }
.cli-cabecalho { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding-right: 36px; }
.cli-cabecalho h2 { margin: 0 0 2px; padding: 0; }
.cli-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.cli-stats div { background: var(--bg); border-radius: 12px; padding: 10px; text-align: center; display: flex; flex-direction: column; }
.cli-stats strong { font-size: 17px; }
.cli-stats small { color: var(--muted); font-size: 12.5px; }
.historico { display: flex; flex-direction: column; }
.hist-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hist-item div { display: flex; flex-direction: column; min-width: 0; }
.hist-item small { color: var(--muted); font-size: 13.5px; }

/* ---------- Fotos ---------- */
.foto-editor { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.foto-botoes { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }

/* ---------- Editor de horário ---------- */
.he { display: flex; flex-direction: column; margin-bottom: 14px; border-top: 1px solid var(--line); }
.he-dia { display: grid; grid-template-columns: 118px 1fr; align-items: start; gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.he-nome { display: flex; align-items: center; gap: 10px; min-height: 42px; font-weight: 600; cursor: pointer; }
.he-nome input { width: 20px; height: 20px; accent-color: var(--ink); }
.he-campos { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.he-faixa, .he-pausa { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.he-faixa span, .he-pausa span { color: var(--muted); font-size: 14px; }
.he .input { width: 112px; min-height: 42px; padding: 6px 10px; }
.he-pausa .input { width: 104px; }
.he-rm { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); font-size: 18px; line-height: 1; color: var(--muted); }
.he-add { font-size: 14px; padding: 0; }
.he-fechado-txt { display: none; color: var(--muted); font-size: 14px; align-self: center; }
.he-dia.fechado .he-campos { display: none; }
.he-dia.fechado .he-fechado-txt { display: block; }
.he-dia.fechado .he-nome { color: var(--muted); }
.he-resumo { margin: -2px 0 6px 30px; }
@media (max-width: 420px) {
  .he-dia { grid-template-columns: 1fr; }
  .he-dia.fechado { grid-template-columns: 1fr auto; }
  .he .input { width: 104px; }
  .he-pausa { column-gap: 6px; }
  .he-pausa > span:first-child { width: 100%; }
  .he-pausa .input { width: 96px; }
}

/* ---------- Ajustes ---------- */
.ajustes { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.ajuda { margin: -4px 0 14px; font-size: 14px; color: var(--ink-2); }
.ajuda summary { cursor: pointer; color: var(--gold-ink); font-weight: 600; }
.ajuda ol { margin: 8px 0 0; padding-left: 20px; }
.ajuda li { margin-bottom: 4px; }

/* ---------- Sino de notificacoes ---------- */
.topo-botoes { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-sino {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid #3b3530; background: #2b2621; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.btn-sino svg { width: 21px; height: 21px; }
.btn-sino:hover { border-color: var(--gold); color: var(--gold); }
.sino-conta {
  position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--gold); color: #1a1714;
  font-size: 11.5px; font-weight: 800; line-height: 19px; text-align: center;
}

/* ---------- Inicio do barbeiro ---------- */
.ini-saudacao { margin-bottom: 16px; }
.ini-saudacao h2 { font-size: 22px; }
.ini-saudacao .sub { color: var(--muted); font-size: 14px; }
.grade-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grade-stats.grade-3 { grid-template-columns: repeat(3, 1fr); }
.stat {
  display: flex; flex-direction: column; gap: 2px; padding: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stat small { font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.stat strong { font-size: 22px; line-height: 1.2; }
.stat span { font-size: 13px; color: var(--muted); }
.stat-ouro { background: var(--gold-soft); border-color: #eadcbb; }
.stat-ouro strong { color: var(--gold-ink); }
@media (max-width: 380px) {
  .grade-stats.grade-3 { grid-template-columns: 1fr 1fr; }
  .stat strong { font-size: 19px; }
}

.prox-cliente { margin-top: 16px; }
.prox-linha { display: flex; align-items: center; gap: 14px; }
.prox-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prox-info strong { font-size: 17px; }
.prox-info span { font-size: 14px; color: var(--muted); }
.prox-valor { font-weight: 600; color: var(--ink-2) !important; }

.linha-compacta { padding: 12px 14px; }
.hora-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 56px; padding: 6px 8px; border-radius: 12px;
  background: var(--bg); font-weight: 700; font-size: 14px;
}
.hora-chip small { font-weight: 600; font-size: 12px; color: var(--muted); }
.valor-linha { font-weight: 700; white-space: nowrap; }
.valor-fraco { color: var(--muted); font-weight: 600; }
.linha-fat { color: var(--gold-ink) !important; font-weight: 600; }

/* ---------- Meu dinheiro ---------- */
.segmentado-largo { display: flex; width: 100%; margin-bottom: 16px; }
.segmentado-largo button { flex: 1; padding: 0 8px; }
.barra-ocupacao { height: 12px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.barra-ocupacao span { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.hist-lista { display: flex; flex-direction: column; }
.hist-lista .hist-item span { font-size: 14px; }

/* ---------- Notificacoes ---------- */
.check-cartao { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.check-cartao span { display: flex; flex-direction: column; gap: 2px; }
.check-cartao small { color: var(--muted); font-size: 13.5px; }
.aviso-item { align-items: flex-start; }
.aviso-ico {
  width: 38px; height: 38px; border-radius: 50%; background: var(--bg);
  display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0;
}
.aviso-item.nao-lida { border-color: var(--gold); background: var(--gold-soft); }
.aviso-item .linha-info small { white-space: normal; }

/* ---------- Menu "Mais" ---------- */
.menu-lista { display: flex; flex-direction: column; gap: 8px; }
.menu-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.menu-item:hover { border-color: var(--ink-2); }
.menu-ico { width: 24px; height: 24px; color: var(--gold-ink); flex-shrink: 0; }
.menu-ico svg { width: 24px; height: 24px; }
.menu-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.menu-txt small { color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-seta { color: var(--muted); font-size: 22px; line-height: 1; }

/* Permissões individuais no painel do dono. */
.acessos-lista { display: grid; gap: 10px; margin: 18px 0; }
.acesso-item { display: flex; align-items: flex-start; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.acesso-item input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 20px; margin: 3px 0 0; accent-color: var(--gold); }
.acesso-item span { display: grid; gap: 5px; min-width: 0; }
.acesso-item strong { font-size: 14px; }
.acesso-item small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.acesso-item:has(input:disabled) { opacity: .55; }
.acesso-item:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }


.recebimentos-config .provedor-card{margin-top:12px;background:var(--fundo,#f7f7f5);box-shadow:none}.provedor-card h3{display:flex;align-items:center;gap:8px;margin-bottom:4px}.provedor-card .campo{margin-top:10px}

.servico-preco-proprio{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,220px);gap:14px;align-items:end;padding:12px 0;border-bottom:1px solid var(--borda)}.servico-preco-proprio .campo{margin:0}.servico-preco-proprio .check{align-self:center}@media(max-width:560px){.servico-preco-proprio{grid-template-columns:1fr}}
