/* =========================================================================
   SIVIRINO — FASE 5: NOVA IDENTIDADE VISUAL (25/09/2026)
   Camada por cima de styles.css. So muda aparencia: nenhum seletor aqui
   esconde funcao ou muda comportamento. Para voltar ao visual antigo, basta
   tirar o <link> deste arquivo do index.html.

   Identidade: tinta #0E1726, verde Sivirino #0B8A5E, fundo #F4F6F8,
   cards brancos. Cor so para significado (vermelho = travando, ambar =
   vencendo, verde = em dia, azul = informativo). Fonte unica Plus Jakarta
   Sans, instalada no proprio app (funciona offline).
   ========================================================================= */

@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }

:root {
  --ink: #0E1726;
  --muted: #5B6676;
  --paper: #F4F6F8;
  --panel: #FFFFFF;
  --panel-2: #F1F4F7;
  --line: #E4E8EE;
  --line-2: #D6DCE4;
  --rail: #0E1726;
  --rail-on: #17324A;
  --green: #0B8A5E;
  --green-2: #0A7A53;
  --green-soft: #E6F4EE;
  --green-ink: #0B6B49;
  --gold: #B25E09;
  --gold-soft: #FEF3E2;
  --gold-ink: #8A4B06;
  --red: #B42318;
  --red-soft: #FDECEA;
  --blue: #1D5FD1;
  --blue-soft: #EAF1FE;
  --blue-ink: #1D4FB0;
  --neutral-soft: #EEF1F5;
  --neutral-ink: #3D4756;
  --shadow: 0 1px 2px rgba(14, 23, 38, 0.04);
  --shadow-lg: 0 18px 48px rgba(14, 23, 38, 0.18);
  --radius: 12px;
  --radius-lg: 14px;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

body {
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

strong, b { font-weight: 700; }

/* numeros alinhados em coluna (valores, metas, contadores) */
.metric-card strong, .table td, #sv-stats b, .badge, .progress + span { font-variant-numeric: tabular-nums; }

.sv-i {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  display: block;
}

/* ---------- menu lateral ---------- */
.app-shell { grid-template-columns: 252px minmax(0, 1fr); }

.sidebar {
  background: var(--rail);
  padding: 20px 14px 24px;
  border-right: 1px solid #0B1220;
}

.brand {
  grid-template-columns: 40px 1fr;
  gap: 10px;
  margin: 0 6px 18px;
}
.brand img { width: 40px; height: 40px; }
.brand strong { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.brand small { color: #7C8A9E; font-size: 12px; }

.nav-list { gap: 2px; }

.nav-group { margin: 8px 0 0; }
.nav-group-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #7C8A9E;
  padding: 10px 8px 6px 10px;
  margin: 2px 0;
}
.nav-group-label::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.6px solid #6C7A8E;
  border-bottom: 1.6px solid #6C7A8E;
  transform: rotate(-45deg);
  margin-right: 4px;
}
.nav-group[open] > .nav-group-label::after { transform: rotate(45deg); }
.nav-group .nav-item { margin: 1px 0; }

.nav-item {
  min-height: 40px;
  padding: 8px 12px;
  gap: 12px;
  border: none;
  border-radius: 10px;
  color: #C6CEDA;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.nav-item { width: 100%; box-sizing: border-box; }
.nav-item .ic { width: 20px; font-size: 0; display: flex; align-items: center; justify-content: center; }
.nav-item:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.06); }
.nav-item.active {
  color: #FFFFFF;
  font-weight: 600;
  background: var(--rail-on);
  box-shadow: inset 3px 0 0 #3FC08F;
}
.nav-item:focus-visible, .nav-group-label:focus-visible { outline: 2px solid #3FC08F; outline-offset: 1px; }

/* ---------- topo ---------- */
.main-panel { padding: 0 clamp(20px, 3vw, 36px) 48px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 0 calc(-1 * clamp(20px, 3vw, 36px)) 24px;
  padding: 14px clamp(20px, 3vw, 36px);
  min-height: 76px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.015em; }
.topbar-sub { margin: 2px 0 0; color: var(--muted); font-size: 13px; text-transform: capitalize; }
.topbar-actions { align-items: center; gap: 10px; flex-wrap: nowrap; }

/* indicador unico de sincronizacao (substitui os 4 quadros) */
.sv-status {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--neutral-soft);
  color: var(--neutral-ink);
  white-space: nowrap;
  cursor: default;
}
.sv-status-dot { width: 8px; height: 8px; border-radius: 999px; background: currentColor; flex: none; }
.sv-status[data-estado="ok"] { background: var(--green-soft); color: var(--green-ink); }
.sv-status[data-estado="aviso"] { background: var(--gold-soft); color: var(--gold-ink); }
.sv-status[data-estado="erro"] { background: var(--red-soft); color: var(--red); }
.sv-status-det {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 220px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  font-weight: 500;
  flex-direction: column;
  gap: 6px;
}
.sv-status-det > span { display: flex; justify-content: space-between; gap: 16px; }
.sv-status-det b { color: var(--muted); font-weight: 600; }
.sv-status:hover .sv-status-det, .sv-status:focus .sv-status-det, .sv-status:focus-within .sv-status-det { display: flex; }

/* ---------- botoes ---------- */
.icon-button, .primary-button, .secondary-button, .danger-button, .chip-button, .tab-button {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: none;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.primary-button { background: var(--green); border: 1px solid var(--green); color: #FFFFFF; font-weight: 700; }
.primary-button:hover { background: var(--green-2); border-color: var(--green-2); }
.secondary-button, .icon-button, .chip-button, .tab-button { background: #FFFFFF; border: 1px solid var(--line-2); color: var(--ink); }
.secondary-button:hover, .icon-button:hover, .chip-button:hover, .tab-button:hover { background: var(--panel-2); }
.danger-button { background: #FFFFFF; border: 1px solid #F3C4BE; color: var(--red); font-weight: 700; }
.danger-button:hover { background: var(--red-soft); }
.chip-button { min-height: 34px; padding: 6px 12px; font-size: 13px; border-radius: 999px; }
.tab-button.active { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.sv-icone-only { width: 40px; padding: 0; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
button:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- superficies ---------- */
.status-strip > div, .metric-card, .panel, .list-item, .form-panel, .manager-card, .timeline-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.panel, .form-panel { padding: 20px 22px; }
.view { gap: 20px; }
.grid { gap: 20px; }

.panel-header { margin-bottom: 16px; align-items: center; }
.panel-header h2, .panel-header h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.005em; }
.panel-header p { font-size: 13px; margin-top: 3px; }
.section-subtitle { font-size: 15px; font-weight: 700; margin-top: 24px; }
.fine { font-size: 13px; }
.label { font-size: 12px; font-weight: 600; }

.metric-card { padding: 18px; min-height: 0; display: flex; flex-direction: column; gap: 4px; }
.metric-card > .badge { align-self: flex-start; }
.metric-card strong { font-size: clamp(1.5rem, 2vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 2px; }
.metric-card span { font-size: 13px; }

.list { gap: 10px; }
.list-item { padding: 14px 16px; border-radius: var(--radius); }
.list-item h3 { font-size: 15px; font-weight: 700; }
.task-title { font-weight: 700; }

.timeline-item { border-left: 3px solid var(--green); border-radius: var(--radius); padding: 12px 14px; }

/* ---------- selos (so significado) ---------- */
.badge {
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--neutral-soft);
  color: var(--neutral-ink);
}
.badge.green { background: var(--green-soft); color: var(--green-ink); }
.badge.gold { background: var(--gold-soft); color: var(--gold-ink); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.blue { background: var(--blue-soft); color: var(--blue-ink); }

/* ---------- campos ---------- */
.field { gap: 6px; }
.field span { font-size: 13px; font-weight: 600; color: var(--neutral-ink); }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font-size: 15px;
  color: var(--ink);
  background: #FFFFFF;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(11, 138, 94, 0.16);
}
input::placeholder, textarea::placeholder { color: #8A96A8; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--green); width: 18px; height: 18px; }
.form-grid { gap: 12px; }
.form-more summary, .dash-more summary, .meeting-notes summary { font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---------- progresso, avatar, tabela ---------- */
.progress { height: 6px; background: var(--neutral-soft); }
.progress span { background: var(--green); }
.avatar { width: 40px; height: 40px; font-weight: 800; }
.table th { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
.table th, .table td { padding: 12px 10px; border-bottom: 1px solid var(--line); }
.routine-cell { border-radius: var(--radius); border-color: var(--line); }

/* ---------- avisos e vazio ---------- */
.toast-zone { right: 20px; bottom: 20px; }
.toast { border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); }
.empty-state { border: 1px dashed var(--line-2); border-radius: var(--radius); background: #FAFBFC; font-size: 14px; }

/* ---------- gerentes ---------- */
.manager-grid { gap: 14px; }
.manager-card { padding: 16px; border-radius: var(--radius-lg); }
.manager-card h3 { font-size: 16px; font-weight: 700; }

/* ---------- gaveta "Novo …" (lista primeiro, formulario sob demanda) ----------
   sivirino-ui.js marca os blocos de cadastro (.form-panel "Novo/Nova …")
   com .sv-gaveta e poe um botao "+ Novo …" no bloco da lista. O formulario
   continua o MESMO elemento, com os mesmos campos e o mesmo envio. */
.sv-gaveta { display: none; }
.sv-gaveta.sv-aberta {
  display: block;
  position: fixed;
  z-index: 70;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(460px, 100vw);
  overflow-y: auto;
  border-radius: 0;
  border: none;
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  animation: sv-entra-lado 0.18s ease-out;
}
.sv-gaveta .form-grid { grid-template-columns: 1fr; }
.sv-gaveta form.row { flex-direction: column; align-items: stretch; }
.sv-gaveta-fechar {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: #FFFFFF;
}
.sv-gaveta .panel-header { padding-right: 52px; }
.sv-fundo {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(14, 23, 38, 0.42);
  animation: sv-aparece 0.15s ease-out;
}
.sv-uma-coluna.grid.two, .sv-uma-coluna.grid.three { grid-template-columns: minmax(0, 1fr); }
@keyframes sv-entra-lado { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sv-entra-baixo { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sv-aparece { from { opacity: 0; } to { opacity: 1; } }

/* ---------- cobranca persistente (tela montada pelo sivirino-boot.js) ---------- */
#sv-cobranca-mount .panel-header h2 { font-size: 17px; }
#sv-cobranca-mount #sv-lista li { padding: 16px 0; gap: 14px; }
#sv-cobranca-mount .sv-barra { width: 4px; border-radius: 4px; }
#sv-cobranca-mount .sv-alvo { font-size: 15px; font-weight: 700; }
#sv-cobranca-mount .sv-tag { font-size: 11px; letter-spacing: 0.04em; padding: 3px 9px; }
#sv-cobranca-mount .sv-desc { font-size: 14px; }
#sv-cobranca-mount .sv-meta { font-size: 12px; margin-top: 6px; }
#sv-cobranca-mount .sv-btns button {
  min-height: 34px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: #FFFFFF;
  color: var(--ink);
}
#sv-cobranca-mount .sv-btns button:hover { background: var(--panel-2); }
#sv-cobranca-mount .sv-btns button[data-acao="baixar"] { border-color: var(--green); color: var(--green-ink); }
#sv-cobranca-mount .sv-btns .sv-btn-excluir { color: var(--red); border-color: #F3C4BE; }
#sv-cobranca-mount #sv-trava { background: var(--red-soft) !important; color: var(--red) !important; border: 1px solid #F3C4BE; font-size: 14px; }
#sv-cobranca-mount #sv-legenda { background: var(--blue-soft) !important; border-left-color: var(--blue) !important; }
#sv-cobranca-mount #sv-interruptor { border-radius: var(--radius) !important; background: #FAFBFC; }
#sv-cobranca-mount #sv-nova-form { border-radius: var(--radius) !important; background: #FAFBFC !important; }
#sv-cobranca-mount #sv-stats { gap: 24px; font-size: 12px; }
#sv-cobranca-mount #sv-stats b { font-size: 20px; font-weight: 800; }
.sv-btn-acoes { display: none; }

/* bloco de acesso (login) montado pelo sivirino-boot.js */
#sv-acesso { border-radius: var(--radius-lg) !important; box-shadow: var(--shadow) !important; padding: 24px !important; }

/* o atributo hidden sempre vence (varios botoes ganharam display acima) */
[hidden] { display: none !important; }

/* assistente: campo de texto ocupa o espaco, botoes do tamanho do conteudo */
.sv-ia-form { display: flex !important; }
.sv-ia-form textarea { flex: 1 1 0 !important; min-width: 0 !important; width: auto !important; }
.sv-ia-form > button { flex: none; }
#sv-ia-mic { width: 44px; padding: 0; }

/* =========================================================================
   MAC / DESKTOP — aproveita a tela larga sem amontoar
   ========================================================================= */
@media (min-width: 761px) {
  .main-panel { max-width: 1480px; }
}

/* =========================================================================
   IPHONE — pratico, rapido, objetivo
   ========================================================================= */
@media (max-width: 760px) {
  body { font-size: 16px; }

  .main-panel {
    padding: calc(76px + env(safe-area-inset-top)) 16px calc(96px + env(safe-area-inset-bottom));
    max-width: none;
  }

  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    margin: 0;
    min-height: 0;
    padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
    background: rgba(255, 255, 255, 0.97);
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .topbar-title { flex: 1; min-width: 0; }
  .topbar h1 { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar-sub { font-size: 12px; }
  .topbar-actions { gap: 6px; flex: none; justify-content: flex-end; }
  .topbar-actions .icon-button { min-height: 40px; padding: 0 10px; font-size: 13px; }
  .topbar-actions .primary-button { min-height: 40px; padding: 0 14px; }
  .sv-txt-desk { display: none; }
  #speakSummaryButton { width: 40px; padding: 0; }
  #installButton { display: none !important; }

  /* indicador: so a bolinha no iPhone, detalhe ao tocar */
  .sv-status { width: 32px; height: 32px; padding: 0; justify-content: center; }
  .sv-status-txt { display: none; }
  .sv-status-dot { width: 10px; height: 10px; }

  .view, .grid { gap: 14px; }
  .panel, .form-panel { padding: 16px; border-radius: 16px; }
  .panel-header { flex-wrap: wrap; align-items: flex-start; }
  .panel-header > div:first-child { flex: 1 1 180px; min-width: 0; }
  .toolbar { width: 100%; justify-content: flex-start; }
  .toolbar > * { flex: 1 1 auto; }
  .list-item { padding: 14px; }
  .metric-card { padding: 16px; }
  .grid.metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card strong { font-size: 1.35rem; }

  .primary-button, .secondary-button, .danger-button, .icon-button { min-height: 44px; }
  .chip-button { min-height: 38px; }
  input:not([type="checkbox"]):not([type="radio"]), select, textarea { min-height: 48px; font-size: 16px; }
  input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; }

  /* linhas: continuam lado a lado quebrando linha, em vez de empilhar tudo
     (a regra antiga empilhava e esticava selos e caixas de marcar) */
  .row { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .row > :first-child { flex: 1 1 200px; min-width: 0; }
  .row.start { align-items: flex-start; }
  label.row > :first-child, label.row { flex-wrap: nowrap; }
  label.row > input[type="checkbox"], label.row > input[type="radio"] { flex: none; }
  .badge { align-self: center; }
  .row > .avatar:first-child, .row > .badge:first-child, .row > input:first-child[type="checkbox"] { flex: none; }
  form.row { flex-direction: column; align-items: stretch; }
  form.row > * { flex: none !important; width: 100%; }

  /* rotinas: campo do item em linha propria, periodo e remover embaixo */
  .routine-item-row > .routine-item-label { flex: 1 1 100% !important; }
  .routine-item-row > select { flex: 1 1 0 !important; width: auto !important; min-width: 0; }

  /* tabelas (contatos, ranking) viram cartoes empilhados */
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .table td { border: none; padding: 2px 0; }
  .table td:first-child { font-weight: 700; font-size: 15px; }
  .table td:empty { display: none; }

  /* barra inferior clara, com o verde marcando a aba atual */
  .mobile-tabbar {
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--line);
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 18px rgba(14, 23, 38, 0.05);
  }
  .mobile-tabbar .tab-item {
    color: #6B7688;
    font-size: 11px;
    font-weight: 600;
    gap: 4px;
    min-height: 52px;
  }
  .mobile-tabbar .tab-item .ic { font-size: 0; display: flex; }
  .mobile-tabbar .tab-item .sv-i { width: 24px; height: 24px; }
  .mobile-tabbar .tab-item.active { color: var(--green); background: none; box-shadow: none; }
  .mobile-tabbar .tab-item:hover { background: none; }

  /* "Mais" abre o menu completo como folha escura */
  .sidebar { padding: calc(16px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); }
  .mobile-nav-close {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
  }
  .nav-item { min-height: 48px; font-size: 16px; }
  .nav-group[data-group] { margin-top: 10px; }

  /* toast acima da barra inferior, nunca por cima dela */
  .toast-zone { left: 16px; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .toast { max-width: none; }

  /* gaveta vira folha de baixo para cima */
  .sv-gaveta.sv-aberta {
    top: auto;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 88dvh;
    border-left: none;
    border-radius: 22px 22px 0 0;
    padding: 28px 18px calc(24px + env(safe-area-inset-bottom));
    animation: sv-entra-baixo 0.2s ease-out;
  }
  .sv-gaveta.sv-aberta::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    width: 40px;
    height: 5px;
    margin-left: -20px;
    border-radius: 999px;
    background: var(--line-2);
  }

  /* cobranca: acoes de cada item atras de um botao, lista limpa */
  #sv-cobranca-mount #sv-lista li { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
  #sv-cobranca-mount .sv-barra { width: 4px; height: auto; align-self: stretch; }
  #sv-cobranca-mount .sv-corpo { flex: 1 1 0; }
  .sv-btn-acoes {
    display: inline-flex;
    flex: none;
    width: 44px;
    min-height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--muted);
    border-radius: 10px;
  }
  #sv-cobranca-mount .sv-btns { display: none; width: 100%; padding-left: 14px; }
  #sv-cobranca-mount li.sv-acoes-abertas .sv-btns { display: flex; }
  #sv-cobranca-mount .sv-btns button { flex: 1 1 auto; min-height: 42px; }
  #sv-cobranca-mount .panel-header .toolbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  #sv-cobranca-mount #sv-btn-nova { grid-column: 1 / -1; order: -1; }
}

/* =========================================================================
   27/09 — NENHUMA barra embaixo (pedido do Jean). No iPhone, os atalhos
   (Menu, Meu dia, Cobranca, Pendencias, Equipe) viram uma linha de botoes
   logo abaixo do cabecalho, no topo. Cores mantidas: claro + verde.
   ========================================================================= */
@media (max-width: 760px) {
  html body .mobile-tabbar {
    display: flex !important;
    top: var(--sv-topo, 64px) !important;
    bottom: auto !important;
    left: 0 !important; right: 0 !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 8px 12px !important;
    background: var(--paper, #fff) !important;
    border-top: 0 !important;
    border-bottom: 1px solid var(--line, #E4E8EE) !important;
    box-shadow: none !important;
    z-index: 39 !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  html body .mobile-tabbar::-webkit-scrollbar { display: none; }
  html body .mobile-tabbar .tab-item {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    flex-direction: row !important;
    align-items: center !important;
    min-height: 36px !important;
    padding: 6px 13px !important;
    gap: 6px !important;
    border: 1px solid var(--line, #E4E8EE) !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #0E1726 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
  }
  html body .mobile-tabbar .tab-item .sv-i { width: 18px !important; height: 18px !important; }
  html body .mobile-tabbar .tab-item.active {
    background: #E7F4EE !important;
    color: var(--green, #0B8A5E) !important;
    border-color: var(--green, #0B8A5E) !important;
  }
  html body #mobileMoreButton {
    order: -1;
    background: var(--green, #0B8A5E) !important;
    color: #fff !important;
    border-color: var(--green, #0B8A5E) !important;
  }
  html body .main-panel {
    padding-top: calc(var(--sv-topo, 64px) + 60px) !important;
    padding-bottom: calc(24px + env(safe-area-inset-bottom)) !important;
  }
  html body .toast-zone { bottom: calc(16px + env(safe-area-inset-bottom)) !important; }
  /* dentro do app Meu Sivirino: abre espaco para o botao "Painel" */
  html body.sv-nativo .topbar-title { padding-left: 100px; min-width: 0; }
  html body.sv-nativo .topbar-sub { display: none; }
  html body.sv-nativo .topbar-title h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
