/* =====================================================================
   VENDA FÁCIL — Design System (Bootstrap 5 + camadas próprias)
   Mobile first: bottom nav + cards no celular, sidebar + tabela no PC
   ===================================================================== */
:root {
  --vf-primary: #095dfc;   /* azul vivo da marca */
  --vf-navy: #021b91;      /* azul-marinho da marca */
  --vf-primary-rgb: 9, 93, 252;
  --vf-dark: #06124f;
  --vf-sidebar: #06124f;
  --vf-bg: color-mix(in srgb, var(--vf-primary) 5%, #eceff4);  /* fundo levemente tingido pela cor da empresa */
  --vf-card: #ffffff;
  --vf-border: #d3d9e4;
  --vf-border-input: #c4ccda;
  --vf-muted: #64748b;
  --vf-radius: 14px;
  --vf-sidebar-w: 260px;
  --vf-topbar-h: 64px;
  --vf-bottom-h: 68px;
  --bs-primary: var(--vf-primary);
  --bs-primary-rgb: var(--vf-primary-rgb);
  --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-body-bg: var(--vf-bg);
  --bs-border-radius: 10px;
}

html { -webkit-tap-highlight-color: transparent; }
body { background: var(--vf-bg); color: #1e293b; font-size: .94rem; min-height: 100vh; }
a { text-decoration: none; }

/* ---------- Botões / cores primárias (seguem a cor da empresa) ---------- */
.btn-primary { --bs-btn-bg: var(--vf-primary); --bs-btn-border-color: var(--vf-primary);
  --bs-btn-hover-bg: color-mix(in srgb, var(--vf-primary) 85%, #000); --bs-btn-hover-border-color: color-mix(in srgb, var(--vf-primary) 85%, #000);
  --bs-btn-active-bg: color-mix(in srgb, var(--vf-primary) 75%, #000); --bs-btn-disabled-bg: var(--vf-primary); --bs-btn-disabled-border-color: var(--vf-primary); }
.btn-outline-primary { --bs-btn-color: var(--vf-primary); --bs-btn-border-color: var(--vf-primary); --bs-btn-hover-bg: var(--vf-primary); --bs-btn-hover-border-color: var(--vf-primary); --bs-btn-active-bg: var(--vf-primary); }
.text-primary { color: var(--vf-primary) !important; }
.bg-primary { background-color: var(--vf-primary) !important; }
.bg-primary-soft { background: rgba(var(--vf-primary-rgb), .1); color: var(--vf-primary); }
.btn { border-radius: 10px; font-weight: 500; }
.form-control, .form-select { border-radius: 10px; border-color: var(--vf-border-input); padding: .6rem .85rem; }
.form-control:hover:not(:focus):not(:disabled), .form-select:hover:not(:focus):not(:disabled) { border-color: #aab4c5; }
.form-check-input { border-color: #aab4c5; }
.form-control:focus, .form-select:focus { border-color: var(--vf-primary); box-shadow: 0 0 0 .2rem rgba(var(--vf-primary-rgb), .15); }
.form-label { font-weight: 500; font-size: .85rem; color: #334155; margin-bottom: .3rem; }
.form-check-input:checked { background-color: var(--vf-primary); border-color: var(--vf-primary); }

/* ---------- Sidebar (PC) ---------- */
.vf-sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--vf-sidebar-w); background: var(--vf-sidebar);
  color: #cbd5e1; display: flex; flex-direction: column; z-index: 1040; transition: transform .25s ease;
}
.vf-brand { height: var(--vf-topbar-h); display: flex; align-items: center; gap: .7rem; padding: 0 1.25rem; color: #fff; font-weight: 700; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.vf-brand img { max-height: 36px; max-width: 170px; object-fit: contain; }
.vf-brand img.vf-logo-sistema { max-height: 30px; }
.vf-auth-logo { height: 40px; width: auto; }
.vf-auth-logo-mobile { height: 44px; width: auto; }
.vf-brand-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--vf-primary); display: grid; place-items: center; color: #fff; }
.vf-nav { padding: 1rem .75rem; overflow-y: auto; flex: 1; }
.vf-nav-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #64748b; padding: .9rem .75rem .35rem; }
.vf-nav a { display: flex; align-items: center; gap: .75rem; padding: .62rem .75rem; border-radius: 10px; color: #cbd5e1; font-weight: 500; margin-bottom: 2px; }
.vf-nav a i { font-size: 1.1rem; width: 22px; text-align: center; }
.vf-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.vf-nav a.active { background: var(--vf-primary); color: #fff; box-shadow: 0 6px 16px rgba(var(--vf-primary-rgb), .35); }
.vf-sidebar-footer { padding: 1rem; border-top: 1px solid rgba(255,255,255,.06); }

/* ---------- Topbar ---------- */
.vf-main { margin-left: var(--vf-sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.vf-topbar {
  height: var(--vf-topbar-h); background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--vf-border); display: flex; align-items: center; gap: .75rem;
  padding: 0 1.5rem; position: sticky; top: 0; z-index: 1030;
}
.vf-topbar h1 { font-size: 1.15rem; font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vf-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--vf-primary); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .85rem; }
.vf-content { padding: 1.5rem; flex: 1; }

/* ---------- Bottom nav (mobile / PWA) ---------- */
.vf-bottom-nav { display: none; }

/* ---------- Cards ---------- */
.card { border: 1px solid var(--vf-border); border-radius: var(--vf-radius); box-shadow: 0 1px 3px rgba(15,23,42,.07), 0 1px 2px rgba(15,23,42,.04); }
.card-header { background: transparent; border-bottom: 1px solid var(--vf-border); padding: 1rem 1.25rem; font-weight: 600; }
.vf-stat { padding: 1.15rem 1.25rem; display: flex; gap: 1rem; align-items: center; }
.vf-stat-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem; flex-shrink: 0; }
.vf-stat-value { font-size: 1.4rem; font-weight: 700; line-height: 1.1; }
.vf-stat-label { color: var(--vf-muted); font-size: .8rem; }

/* ---------- Listagens ---------- */
.vf-toolbar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.vf-search { position: relative; flex: 1; min-width: 200px; }
.vf-search i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--vf-muted); }
.vf-search input { padding-left: 2.4rem; }
.vf-table { margin: 0; }
.vf-table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--vf-muted); font-weight: 600; background: #f8fafc; border-bottom: 1px solid var(--vf-border); padding: .8rem 1rem; white-space: nowrap; }
.vf-table td { padding: .85rem 1rem; vertical-align: middle; border-color: var(--vf-border); }
.vf-table tbody tr { transition: background .15s; }
.vf-table tbody tr:hover { background: #f8fafc; }
.vf-table tr.removendo { opacity: 0; transform: translateX(30px); transition: all .3s; }
.vf-acoes { display: flex; gap: .3rem; justify-content: flex-end; }
.btn-icon { width: 36px; height: 36px; padding: 0; display: inline-grid; place-items: center; border-radius: 10px; font-size: 1rem; border: 1px solid transparent; }
.btn-icon.ver      { color: #0ea5e9; background: #e0f2fe; }
.btn-icon.editar   { color: var(--vf-primary); background: rgba(var(--vf-primary-rgb), .1); }
.btn-icon.excluir  { color: #dc2626; background: #fee2e2; }
.btn-icon.whats    { color: #16a34a; background: #dcfce7; }
.btn-icon.neutro   { color: #475569; background: #f1f5f9; }
.btn-icon:hover { filter: brightness(.93); transform: translateY(-1px); }
.vf-empty { text-align: center; padding: 3rem 1rem; color: var(--vf-muted); }
.vf-empty i { font-size: 3rem; opacity: .35; display: block; margin-bottom: .75rem; }
.vf-empty .btn i { font-size: inherit; opacity: 1; display: inline; margin: 0; }
.vf-titulo-cel { font-weight: 600; color: #0f172a; }
.vf-sub-cel { font-size: .8rem; color: var(--vf-muted); }
.badge { font-weight: 500; padding: .4em .7em; border-radius: 6px; }
.badge-soft-success { background: #dcfce7; color: #15803d; }
.badge-soft-danger { background: #fee2e2; color: #b91c1c; }
.badge-soft-secondary { background: #f1f5f9; color: #475569; }
.badge-soft-info { background: #e0f2fe; color: #0369a1; }
.badge-soft-warning { background: #fef3c7; color: #b45309; }
.badge-soft-primary { background: rgba(var(--vf-primary-rgb), .12); color: var(--vf-primary); }
.badge-soft-dark { background: #e2e8f0; color: #0f172a; }
.vf-loader { display: none; text-align: center; padding: 1rem; color: var(--vf-muted); }
.vf-loader.ativo { display: block; }
.pagination { margin: 0; }
.page-link { border-radius: 8px !important; margin: 0 2px; border: none; color: #334155; }
.page-item.active .page-link { background: var(--vf-primary); }

/* ---------- Popups (modal) / Toasts ---------- */
.modal-content { border: none; border-radius: 20px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }
.vf-confirm-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; margin: 0 auto 1rem; }
.vf-toasts { position: fixed; top: 1rem; right: 1rem; z-index: 2000; display: flex; flex-direction: column; gap: .5rem; max-width: 380px; }
.vf-toast { background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(15,23,42,.15); padding: .85rem 1rem; display: flex; gap: .75rem; align-items: flex-start; border-left: 4px solid; animation: vfIn .3s ease; }
.vf-toast.sucesso { border-color: #16a34a; } .vf-toast.sucesso i { color: #16a34a; }
.vf-toast.erro { border-color: #dc2626; } .vf-toast.erro i { color: #dc2626; }
.vf-toast.aviso { border-color: #f59e0b; } .vf-toast.aviso i { color: #f59e0b; }
.vf-toast.info { border-color: #0ea5e9; } .vf-toast.info i { color: #0ea5e9; }
.vf-toast i { font-size: 1.2rem; }
.vf-toast .msg { flex: 1; font-size: .9rem; }
.vf-toast.saindo { animation: vfOut .3s ease forwards; }
@keyframes vfIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes vfOut { to { opacity: 0; transform: translateX(40px); } }

/* ---------- Auth ---------- */
.vf-auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.vf-auth-hero { background: linear-gradient(135deg, #06124f, var(--vf-navy) 55%, #095dfc); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.vf-auth-hero::after { content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: rgba(255,255,255,.05); right: -150px; bottom: -150px; }
.vf-auth-form { display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; background: #fff; }
.vf-auth-box { width: 100%; max-width: 440px; }
.vf-plano { border: 2px solid var(--vf-border); border-radius: 14px; padding: .9rem 1rem; cursor: pointer; transition: all .15s; display: block; height: 100%; }
.vf-plano:hover { border-color: rgba(var(--vf-primary-rgb), .5); }
.btn-check:checked + .vf-plano { border-color: var(--vf-primary); background: rgba(var(--vf-primary-rgb), .05); box-shadow: 0 0 0 3px rgba(var(--vf-primary-rgb), .12); }
.vf-feature { display: flex; gap: .75rem; align-items: center; margin-bottom: 1rem; }
.vf-feature i { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.12); display: grid; place-items: center; font-size: 1.15rem; }

/* ---------- Formulários em seções ---------- */
.vf-form-section { margin-bottom: 1.25rem; }
.vf-form-section > .card-body { padding: 1.25rem; }
.vf-section-title { font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.vf-section-title i { color: var(--vf-primary); }
.vf-form-actions { display: flex; gap: .6rem; justify-content: flex-end; }

/* ---------- Fase 2: produtos, upload, abas, contratos ---------- */
.vf-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #f1f5f9; display: grid; place-items: center; color: #94a3b8; font-size: 1.2rem; flex-shrink: 0; overflow: hidden; }
.vf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vf-preco-tag { display: inline-flex; gap: .25rem; align-items: baseline; font-size: .78rem; background: #f1f5f9; border-radius: 6px; padding: .15rem .45rem; margin: 0 .2rem .2rem 0; white-space: nowrap; }
.vf-preco-tag b { color: #0f172a; }
.vf-upload { border: 2px dashed var(--vf-border); border-radius: 14px; padding: 1rem; text-align: center; cursor: pointer; position: relative; transition: border-color .15s; display: block; }
.vf-upload:hover { border-color: var(--vf-primary); }
.vf-upload img { max-width: 100%; max-height: 180px; border-radius: 10px; object-fit: contain; }
.vf-upload input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.vf-upload .vf-upload-vazio { color: var(--vf-muted); padding: 1.25rem 0; }
.vf-upload.tem-imagem .vf-upload-vazio { display: none; }
.vf-modalidade { border: 2px solid var(--vf-border); border-radius: 14px; padding: 1rem; transition: all .15s; height: 100%; }
.vf-modalidade.ativa { border-color: var(--vf-primary); background: rgba(var(--vf-primary-rgb), .04); }
.vf-modalidade .vf-modalidade-campos { display: none; margin-top: .85rem; }
.vf-modalidade.ativa .vf-modalidade-campos { display: block; }
/* select curtinho de unidade (R$ / %): seta sem encostar no texto */
.form-select.vf-sel-un { flex: 0 0 auto; width: 4.4rem; max-width: none; padding-left: .6rem; padding-right: 1.55rem; background-position: right .5rem center; background-size: 10px 8px; text-align: left; }
.form-select-sm.vf-sel-un, .input-group-sm > .form-select.vf-sel-un { width: 4.1rem; }
.input-group-text { border-color: var(--vf-border-input); border-radius: 10px; background: #f8fafc; }
.vf-tabs { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 1px solid var(--vf-border); margin-bottom: 1.25rem; scrollbar-width: none; }
.vf-tabs::-webkit-scrollbar { display: none; }
.vf-tabs a { padding: .7rem 1rem; color: var(--vf-muted); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; display: flex; gap: .4rem; align-items: center; }
.vf-tabs a.active { color: var(--vf-primary); border-color: var(--vf-primary); }
.vf-tabs a.desativada { opacity: .5; pointer-events: none; }
.vf-cor { width: 38px; height: 38px; border-radius: 10px; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--vf-border); cursor: pointer; padding: 0; }
.vf-cor.ativa { box-shadow: 0 0 0 2px #0f172a; }
.vf-preview-marca { border-radius: 16px; overflow: hidden; border: 1px solid var(--vf-border); }
.vf-var-chip { display: inline-block; font-family: ui-monospace, monospace; font-size: .75rem; background: rgba(var(--vf-primary-rgb), .08); color: var(--vf-primary); border: 1px solid rgba(var(--vf-primary-rgb), .2); border-radius: 6px; padding: .2rem .45rem; margin: 0 .25rem .35rem 0; cursor: pointer; }
.vf-var-chip:hover { background: var(--vf-primary); color: #fff; }
.vf-editor-contrato { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .85rem; line-height: 1.6; min-height: 460px; }
.vf-doc-preview { background: #fff; padding: 2.5rem; white-space: pre-wrap; font-family: Georgia, 'Times New Roman', serif; font-size: .95rem; line-height: 1.7; max-height: 70vh; overflow-y: auto; }

/* ---------- Fase 3: orçamentos ---------- */
.vf-status-chips { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.vf-status-chips::-webkit-scrollbar { display: none; }
.vf-chip { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; padding: .45rem .85rem; border-radius: 30px; background: #fff; border: 1px solid var(--vf-border); color: #334155; font-size: .85rem; font-weight: 500; }
.vf-chip span { background: #f1f5f9; border-radius: 20px; padding: 0 .45rem; font-size: .75rem; color: var(--vf-muted); }
.vf-chip.ativo { background: var(--vf-primary); border-color: var(--vf-primary); color: #fff; }
.vf-chip.ativo i { color: #fff !important; }
.vf-chip.ativo span { background: rgba(255,255,255,.22); color: #fff; }
.vf-cliente-card { display: flex; align-items: center; gap: .85rem; border: 2px solid rgba(var(--vf-primary-rgb), .35); background: rgba(var(--vf-primary-rgb), .04); border-radius: 14px; padding: .75rem .9rem; }
.vf-autocomplete { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid var(--vf-border); border-radius: 12px; box-shadow: 0 16px 40px rgba(15,23,42,.14); z-index: 20; max-height: 320px; overflow-y: auto; }
.vf-ac-item { display: block; width: 100%; text-align: left; border: 0; background: none; padding: .7rem .9rem; border-bottom: 1px solid #f1f5f9; }
.vf-ac-item:hover, .vf-ac-item:focus { background: rgba(var(--vf-primary-rgb), .06); }
.vf-ac-item b { display: block; font-weight: 600; }
.vf-ac-item span { font-size: .8rem; color: var(--vf-muted); }
.vf-segmentado { display: flex; background: #f1f5f9; border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.vf-segmentado .btn { flex: 1; border: 0; border-radius: 9px; font-size: .85rem; color: #475569; padding: .5rem .4rem; white-space: nowrap; }
.vf-segmentado .btn-check:checked + .btn { background: #fff; color: var(--vf-primary); box-shadow: 0 1px 4px rgba(15,23,42,.12); font-weight: 600; }
.vf-item { border: 1px solid var(--vf-border); border-radius: 14px; padding: .8rem; margin-bottom: .7rem; background: #fff; transition: box-shadow .2s, opacity .25s, transform .25s; }
.vf-item:focus-within { border-color: rgba(var(--vf-primary-rgb), .5); box-shadow: 0 0 0 3px rgba(var(--vf-primary-rgb), .08); }
.vf-item.vf-item-novo { animation: vfPulse .9s ease; }
.vf-item.removendo { opacity: 0; transform: translateX(30px); }
@keyframes vfPulse { 0% { box-shadow: 0 0 0 0 rgba(var(--vf-primary-rgb), .45); } 100% { box-shadow: 0 0 0 12px rgba(var(--vf-primary-rgb), 0); } }
.vf-item-topo { display: flex; gap: .5rem; align-items: center; }
.vf-item-num { width: 26px; height: 26px; border-radius: 8px; background: var(--vf-primary); color: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 700; flex-shrink: 0; }
.vf-item-acoes { display: flex; gap: .25rem; }
.vf-item-acoes .btn-icon { width: 32px; height: 32px; font-size: .9rem; }
.vf-item-grid { display: grid; grid-template-columns: 1.1fr .7fr .8fr 1.6fr 1.1fr 1fr 1.1fr; gap: .5rem; align-items: end; }
.vf-item-grid label { font-size: .7rem; color: var(--vf-muted); margin-bottom: .15rem; display: block; }
.vf-item-grid .d-none + .vf-c-unit { grid-column: auto; }
.vf-item:not(.vf-item-loc) .vf-item-grid { grid-template-columns: 1.1fr .7fr .8fr 1.1fr 1fr 1.1fr; }
.vf-item-total { font-weight: 700; text-align: right; padding: .35rem 0; white-space: nowrap; }
.vf-resumo-orc { position: sticky; top: 80px; }
.vf-total-box { display: flex; justify-content: space-between; align-items: center; background: var(--vf-primary); color: #fff; border-radius: 14px; padding: .85rem 1rem; }
.vf-total-box span { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.vf-total-box b { font-size: 1.35rem; }
.vf-barra-total { display: none; }
.vf-prod-res { display: flex; gap: .85rem; padding: .85rem 0; border-bottom: 1px solid #f1f5f9; }
.vf-iframe-proposta { width: 100%; height: 78vh; border: 0; display: block; background: #e9edf3; }
.vf-timeline { list-style: none; padding: 0; margin: 0; }
.vf-timeline li { display: flex; gap: .75rem; padding-bottom: .9rem; position: relative; }
.vf-timeline li:not(:last-child)::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: #eef1f6; }
.vf-tl-icone { width: 28px; height: 28px; border-radius: 50%; background: #f1f5f9; display: grid; place-items: center; flex-shrink: 0; font-size: .85rem; }

/* ---------- Formulários personalizados ---------- */
.vf-campo-def { border: 1px solid var(--vf-border); border-radius: 12px; padding: .6rem .7rem; margin-bottom: .55rem; background: #fff; }
.vf-campo-def.fechado .vf-campo-config { display: none; }
.vf-campo-def:not(.fechado) { border-color: rgba(var(--vf-primary-rgb), .45); box-shadow: 0 0 0 3px rgba(var(--vf-primary-rgb), .07); }
.vf-arrastar { cursor: grab; color: #94a3b8; font-size: 1.1rem; padding: 0 .1rem; touch-action: none; }
.vf-tipo-ic { width: 30px; height: 30px; border-radius: 8px; background: rgba(var(--vf-primary-rgb), .1); color: var(--vf-primary); display: grid; place-items: center; flex-shrink: 0; }
.vf-campo-def .btn-icon { width: 32px; height: 32px; font-size: .9rem; flex-shrink: 0; }
.vf-add-campo { border: 2px dashed var(--vf-border); border-radius: 12px; padding: .8rem; margin-top: .5rem; }
.vf-icone-opt { width: 40px; height: 38px; display: grid; place-items: center; font-size: 1.05rem; }
.btn-check:checked + .vf-icone-opt { background: var(--vf-primary); color: #fff; }
.vf-modelo-branco { border: 2px dashed var(--vf-border); transition: border-color .15s; }
.vf-modelo-branco:hover { border-color: var(--vf-primary); }
.vf-card-form, .vf-modelo-pronto { transition: box-shadow .15s, transform .15s; }
.vf-card-form:hover, .vf-modelo-pronto:hover { box-shadow: 0 10px 28px rgba(15,23,42,.08); transform: translateY(-2px); }

/* ---------- Assistente I.A. ---------- */
.vf-btn-ia { background: linear-gradient(135deg, rgba(var(--vf-primary-rgb), .1), rgba(124, 58, 237, .12)); color: var(--vf-primary); border: 1px solid rgba(var(--vf-primary-rgb), .25); font-weight: 600; font-size: .78rem; padding: .25rem .65rem; border-radius: 20px; }
.vf-btn-ia:hover, .vf-btn-ia.show { background: linear-gradient(135deg, var(--vf-primary), #7c3aed); color: #fff; border-color: transparent; }
.vf-ia-gerando { background: linear-gradient(90deg, #fff, rgba(var(--vf-primary-rgb), .06), #fff); background-size: 200% 100%; animation: vfBrilho 1.2s linear infinite; }
@keyframes vfBrilho { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- Assistente por voz ---------- */
.vf-btn-assistente { background: linear-gradient(135deg, var(--vf-primary), #7c3aed); color: #fff; border: 0; border-radius: 30px; padding: .45rem .8rem; font-weight: 600; box-shadow: 0 4px 14px rgba(var(--vf-primary-rgb), .35); }
.vf-btn-assistente:hover { color: #fff; filter: brightness(1.08); }
.vf-mic { width: 84px; height: 84px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--vf-primary), #7c3aed); color: #fff; font-size: 2rem; box-shadow: 0 10px 30px rgba(var(--vf-primary-rgb), .4); transition: transform .15s; }
.vf-mic:active { transform: scale(.95); }
.vf-mic.ouvindo { background: #dc2626; animation: vfOuvindo 1.2s ease-in-out infinite; }
@keyframes vfOuvindo { 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .45); } 50% { box-shadow: 0 0 0 18px rgba(220, 38, 38, 0); } }
.vf-chip-exemplo { border: 1px solid var(--vf-border); background: #f8fafc; border-radius: 20px; font-size: .72rem; padding: .25rem .6rem; color: #475569; text-align: left; }
.vf-chip-exemplo:hover { border-color: var(--vf-primary); color: var(--vf-primary); }
.vf-as-itens { max-height: 240px; overflow-y: auto; }

/* ---------- Importação ---------- */
.vf-dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .35rem; border: 2px dashed var(--vf-border); border-radius: 16px; padding: 2.5rem 1rem; cursor: pointer; transition: all .15s; margin: 0; }
.vf-dropzone > i { font-size: 2.6rem; color: var(--vf-primary); }
.vf-dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.vf-dropzone.arrastando, .vf-dropzone:hover { border-color: var(--vf-primary); background: rgba(var(--vf-primary-rgb), .04); }
.vf-dropzone.com-arquivo { border-style: solid; border-color: #16a34a; background: #f0fdf4; }
.vf-mapa.mapeado { border-color: var(--vf-primary); background-color: rgba(var(--vf-primary-rgb), .05); font-weight: 600; }
.vf-tabela-previa th, .vf-tabela-previa td { white-space: nowrap; font-size: .8rem; }
.vf-tabela-previa thead th { position: sticky; top: 0; background: #f8fafc; z-index: 1; }
.vf-tabela-previa .col-mapeada { background: rgba(var(--vf-primary-rgb), .06); }
.vf-col-destino { font-size: .68rem; color: var(--vf-primary); font-weight: 700; }

/* ---------- Galeria de fotos ---------- */
.vf-galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.vf-galeria-item, .vf-galeria-add { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 2px solid var(--vf-border); background: #f8fafc; }
.vf-galeria-item img { width: 100%; height: 100%; object-fit: cover; }
.vf-galeria-item.capa { border-color: #f59e0b; }
.vf-galeria-item.removendo-foto img { opacity: .25; filter: grayscale(1); }
.vf-galeria-capa, .vf-galeria-rem { position: absolute; top: 4px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; background: rgba(255,255,255,.92); font-size: .8rem; margin: 0; }
.vf-galeria-capa { left: 4px; color: #cbd5e1; } .vf-galeria-rem { right: 4px; color: #dc2626; }
.vf-galeria-capa input, .vf-galeria-rem input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.vf-galeria-item.capa .vf-galeria-capa { color: #f59e0b; }
.vf-galeria-item.removendo-foto .vf-galeria-rem { background: #dc2626; color: #fff; }
.vf-galeria-tag { position: absolute; left: 4px; bottom: 4px; background: var(--vf-primary); color: #fff; font-size: .65rem; border-radius: 6px; padding: 0 .35rem; }
.vf-galeria-add { border-style: dashed; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--vf-primary); cursor: pointer; font-size: .75rem; gap: .2rem; }
.vf-galeria-add i { font-size: 1.4rem; }
.vf-galeria-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.vf-item-thumb { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; border: 1px solid var(--vf-border); flex-shrink: 0; }

/* ---------- Agenda ---------- */
.vf-dias { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; padding: .45rem .25rem .35rem; margin-inline: -.25rem; scroll-snap-type: x proximity; }
.vf-dias::-webkit-scrollbar { display: none; }
.vf-dia-chip { flex: 1 0 56px; max-width: 84px; display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .5rem 0 .45rem; border-radius: 14px; background: #fff; border: 1px solid var(--vf-border); color: #475569; position: relative; scroll-snap-align: start; transition: border-color .15s, box-shadow .15s; }
.vf-dia-chip:hover { border-color: rgba(var(--vf-primary-rgb), .5); }
.vf-dia-chip span { font-size: .68rem; text-transform: uppercase; }
.vf-dia-chip b { font-size: 1.1rem; color: #0f172a; }
.vf-dia-chip em { position: absolute; top: -7px; right: -5px; min-width: 18px; height: 18px; line-height: 18px; text-align: center; font-style: normal; font-weight: 700; font-size: .64rem; background: var(--vf-primary); color: #fff; border-radius: 10px; padding: 0 .3rem; box-shadow: 0 0 0 2px var(--vf-bg, #eef1f6); }
.vf-dia-chip.ativo em { background: #fff; color: var(--vf-primary); box-shadow: 0 0 0 2px var(--vf-primary); }
.vf-dia-chip.hoje { border-color: var(--vf-primary); }
.vf-dia-chip.ativo { background: var(--vf-primary); border-color: var(--vf-primary); color: #fff; box-shadow: 0 8px 18px -10px rgba(var(--vf-primary-rgb), .9); }
.vf-dia-chip.ativo b { color: #fff; }
.vf-bolinha { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .35rem; vertical-align: middle; }
.vf-grade-wrap { max-height: 72vh; overflow: auto; }
.vf-grade { min-width: calc(70px + var(--colunas) * 180px); }
.vf-grade-topo { display: grid; grid-template-columns: 70px repeat(var(--colunas), minmax(180px, 1fr)); position: sticky; top: 0; z-index: 4; background: #fff; border-bottom: 1px solid var(--vf-border); }
.vf-grade-prof { padding: .7rem .8rem; font-weight: 600; font-size: .88rem; border-left: 1px solid var(--vf-border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vf-grade-corpo { display: grid; grid-template-columns: 70px repeat(var(--colunas), minmax(180px, 1fr)); position: relative; }
.vf-grade-horas { position: relative; }
.vf-grade-horas div { position: absolute; right: .5rem; font-size: .72rem; color: var(--vf-muted); transform: translateY(-50%); }
.vf-grade-horas div:first-child { transform: none; }
.vf-grade-col { position: relative; border-left: 1px solid var(--vf-border); cursor: copy; }
.vf-linha-hora { position: absolute; left: 0; right: 0; border-top: 1px solid #eef1f6; }
.vf-fora { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, #f6f7fa, #f6f7fa 6px, #eff2f6 6px, #eff2f6 12px); display: grid; place-items: center; color: #94a3b8; font-size: .8rem; cursor: default; }
.vf-bloqueio { position: absolute; left: 3px; right: 3px; background: repeating-linear-gradient(135deg, #fee2e2, #fee2e2 6px, #fecaca 6px, #fecaca 12px); border-radius: 8px; display: grid; place-items: center; color: #b91c1c; font-size: .75rem; font-weight: 600; z-index: 1; cursor: default; }
.vf-ag { position: absolute; left: 4px; right: 4px; z-index: 2; border: 0; border-left: 4px solid var(--cor); background: color-mix(in srgb, var(--cor) 14%, #fff); border-radius: 8px; padding: .25rem .45rem; text-align: left; overflow: hidden; font-size: .76rem; line-height: 1.25; color: #0f172a; box-shadow: 0 1px 3px rgba(15,23,42,.08); transition: transform .1s, box-shadow .15s; }
.vf-ag:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15,23,42,.14); z-index: 3; }
.vf-ag b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vf-ag span { display: block; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vf-ag > i { position: absolute; right: .35rem; top: .25rem; font-size: .75rem; color: var(--cor); }
.vf-ag .vf-ag-pg { right: 1.3rem; color: #d97706; }
.vf-ag.status-cancelado, .vf-ag-card.status-cancelado { opacity: .45; text-decoration: line-through; }
.vf-ag.status-faltou { opacity: .6; background: #fee2e2; }
.vf-ag.status-concluido { background: color-mix(in srgb, var(--cor) 6%, #f8fafc); }
.vf-ag.status-pendente { border-left-style: dashed; }
.vf-agora { position: absolute; left: 70px; right: 0; border-top: 2px solid #dc2626; z-index: 3; pointer-events: none; }
.vf-agora::before { content: ''; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: #dc2626; }
.vf-ag-card { width: 100%; display: flex; gap: .85rem; align-items: center; background: #fff; border: 1px solid var(--vf-border); border-left: 5px solid var(--cor); border-radius: 14px; padding: .75rem .9rem; margin-bottom: .55rem; }
.vf-ag-hora { display: flex; flex-direction: column; align-items: center; min-width: 48px; }
.vf-ag-hora b { font-size: 1.05rem; } .vf-ag-hora span { font-size: .72rem; color: var(--vf-muted); }
.vf-ag-servicos { display: grid; gap: .35rem; max-height: 220px; overflow-y: auto; }
.vf-ag-serv { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--vf-border); border-radius: 10px; padding: .5rem .7rem; margin: 0; cursor: pointer; font-size: .88rem; }
.vf-ag-serv:has(input:checked) { border-color: var(--vf-primary); background: rgba(var(--vf-primary-rgb), .05); }
.vf-ag-serv small { color: var(--vf-muted); }
.vf-ag-serv > input { flex-shrink: 0; margin: 0; }
.vf-ag-serv[hidden] { display: none; }
.vf-ag-serv-txt { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .6rem; }
.vf-ag-serv-nome { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.vf-ag-serv-meta { white-space: nowrap; margin-left: auto; }
.vf-ag-serv-txt .vf-item-adic { flex-basis: 100%; }
.vf-ag-serv [data-adic-serv] { flex-shrink: 0; padding: .15rem .45rem; }
.vf-ag-filtro { position: sticky; top: 0; z-index: 1; background: var(--vf-card, #fff); padding-bottom: .15rem; }
.vf-ag-filtro i { position: absolute; left: .6rem; top: .38rem; color: var(--vf-muted); font-size: .8rem; }
.vf-ag-filtro input { padding-left: 1.8rem; }
@media (max-width: 575.98px) {
  /* no celular a lista cresce junto com a janela (sem rolagem dentro da rolagem) */
  .vf-ag-servicos { max-height: none; overflow: visible; }
  .vf-ag-serv { padding: .6rem .7rem; }
  .vf-ag-serv-meta { margin-left: 0; flex-basis: 100%; }
}
.vf-slots { display: flex; flex-wrap: wrap; gap: .35rem; }
.vf-slot { border: 1px solid var(--vf-border); background: #fff; border-radius: 10px; padding: .4rem .7rem; font-weight: 600; font-size: .85rem; min-width: 64px; }
.vf-slot:hover { border-color: var(--vf-primary); color: var(--vf-primary); }
.vf-slot.ativo { background: var(--vf-primary); border-color: var(--vf-primary); color: #fff; }
/* profissionais */
.vf-foto-prof { --cor: #095dfc; position: relative; width: 74px; height: 74px; border-radius: 50%; border: 3px solid var(--cor); display: grid; place-items: center; background: #f8fafc; color: var(--vf-muted); font-size: 1.4rem; overflow: hidden; cursor: pointer; flex-shrink: 0; margin: 0; }
.vf-foto-prof img { width: 100%; height: 100%; object-fit: cover; }
.vf-foto-prof input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.vf-cor-sm { width: 26px; height: 26px; border-radius: 8px; }
.vf-dia { display: flex; gap: .75rem; align-items: flex-start; padding: .5rem 0; border-bottom: 1px dashed var(--vf-border); }
.vf-dia-nome { display: flex; align-items: center; gap: .4rem; width: 120px; font-weight: 500; font-size: .88rem; padding-top: .25rem; }
.vf-dia-faixas { flex: 1; display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; }
.vf-faixa { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--vf-muted); }
.vf-faixa input { width: 104px; }
.vf-faixa.vazia, .vf-dia.folga .vf-faixa, .vf-dia.folga .vf-add-faixa, .vf-dia:not(.folga) .vf-folga-txt, .vf-dia:has(.vf-faixa[data-faixa="1"]:not(.vazia)) .vf-add-faixa { display: none; }
.vf-folga-txt { color: var(--vf-muted); font-size: .85rem; padding-top: .25rem; }
.vf-servicos-prof { display: grid; gap: .4rem; max-height: 520px; overflow-y: auto; }
.vf-serv-linha { display: flex; gap: .5rem; align-items: center; border: 1px solid var(--vf-border); border-radius: 12px; padding: .55rem .7rem; }
.vf-serv-linha.ativo { border-color: rgba(var(--vf-primary-rgb), .5); background: rgba(var(--vf-primary-rgb), .03); }
.vf-serv-linha:not(.ativo) .input-group { opacity: .4; }
@media (max-width: 575.98px) { .vf-serv-linha { flex-wrap: wrap; } .vf-serv-linha label { flex-basis: 100%; } .vf-dia { flex-direction: column; gap: .3rem; } }
/* comandas */
.vf-com-item { display: grid; grid-template-columns: 1fr 70px 110px 150px 100px 34px; gap: .4rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid #f1f5f9; }
.vf-com-pag { display: grid; grid-template-columns: 1fr 140px 34px; gap: .4rem; align-items: center; margin-bottom: .4rem; }
@media (max-width: 767.98px) { .vf-com-item { grid-template-columns: 1fr 1fr 34px; } .vf-com-item > :first-child { grid-column: 1 / -1; } .vf-com-item .vf-com-prof { grid-column: span 2; } }

/* ---------- Fase 5: mensagens (WhatsApp/e-mail) ---------- */
.vf-wa-ok { display: flex; gap: .75rem; align-items: center; background: #e9f9ef; color: #146c3a; border-radius: 12px; padding: .8rem 1rem; }
.vf-wa-ok > i { font-size: 1.6rem; }
.vf-wa-qr { width: 240px; max-width: 100%; border-radius: 12px; border: 1px solid var(--vf-border); padding: 8px; background: #fff; }
.vf-msg-lista { display: grid; gap: .6rem; }
.vf-msg-ev { overflow: hidden; }
.vf-msg-ev.aberto { box-shadow: 0 0 0 2px rgba(var(--vf-primary-rgb), .25); }
.vf-msg-cab { display: flex; gap: .85rem; align-items: center; width: 100%; background: none; border: 0; padding: .9rem 1rem; text-align: left; }
.vf-msg-ico { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(var(--vf-primary-rgb), .1); color: var(--vf-primary); }
.vf-msg-ico.empresa { background: #fff4e0; color: #b26a00; }
.vf-msg-corpo { padding: 0 1rem 1rem; border-top: 1px solid var(--vf-border); padding-top: .75rem; }
.vf-msg-texto { font-size: .9rem; line-height: 1.5; }
.vf-msg-previa { border-radius: 12px; padding: .9rem 1rem; font-size: .88rem; line-height: 1.5; white-space: normal; word-break: break-word; background: #f6f8fc; border: 1px solid var(--vf-border); max-height: 420px; overflow: auto; }
.vf-msg-previa.whatsapp { background: #e7ffdb; border-color: #c9efb4; border-top-left-radius: 2px; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.vf-msg-assunto { font-weight: 700; padding-bottom: .5rem; margin-bottom: .5rem; border-bottom: 1px dashed var(--vf-border); }

/* ---------- Fase 4: construtor visual da proposta ---------- */
.vf-modelos, .vf-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.vf-modelo-card { overflow: hidden; }
.vf-modelo-mini { display: block; text-decoration: none; background: #eef1f6; padding: .9rem .9rem 0; }
.vf-mini-capa { border-radius: 10px 10px 0 0; height: 92px; padding: .7rem .8rem; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(135deg, var(--c2), color-mix(in srgb, var(--c2) 60%, var(--c1))); position: relative; overflow: hidden; }
.vf-mini-capa::after { content: ''; position: absolute; width: 90px; height: 90px; border-radius: 50%; background: var(--c1); opacity: .35; right: -25px; top: -30px; }
.vf-mini-capa span { font-size: .6rem; text-transform: uppercase; letter-spacing: .15em; opacity: .75; }
.vf-mini-capa b { font-size: 1rem; line-height: 1.1; }
.vf-mini-capa.estilo-minimal { background: #fff; color: #0f172a; border: 1px solid #e2e8f0; }
.vf-mini-capa.estilo-minimal::after { display: none; }
.vf-mini-capa.estilo-imagem { background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.6)), linear-gradient(135deg, #8aa1c6, var(--c2)); }
.vf-mini-capa.estilo-dividida { background: linear-gradient(90deg, var(--c2) 55%, color-mix(in srgb, var(--c1) 45%, #fff) 55%); }
.vf-mini-capa.estilo-nenhuma { background: #fff; color: #94a3b8; border: 1px dashed #cbd5e1; }
.vf-modelo-mini .vf-mini-blocos { background: #fff; border-radius: 0 0 10px 10px; padding: .55rem .7rem .7rem; }
.vf-mini-blocos { display: flex; flex-wrap: wrap; gap: .3rem; }
.vf-mini-blocos i { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: .8rem; background: rgba(var(--vf-primary-rgb), .08); color: var(--vf-primary); }
.vf-preset-topo { display: flex; align-items: center; gap: .6rem; padding: 1rem; background: linear-gradient(135deg, var(--vf-navy), var(--vf-primary)); color: #fff; font-size: 1.15rem; font-weight: 700; }
.vf-preset-topo i { font-size: 1.4rem; opacity: .9; }

/* editor em tela cheia */
.vf-editor-tela .vf-sidebar, .vf-editor-tela .vf-bottom-nav, .vf-editor-tela .vf-assistente-btn { display: none !important; }
.vf-editor-tela .vf-main { margin-left: 0 !important; }
.vf-editor-tela .vf-content { padding: 0 !important; max-width: none !important; }
.vf-ed { display: grid; grid-template-columns: 310px minmax(0, 1fr) 330px; height: calc(100vh - var(--vf-topbar-h, 64px)); height: calc(100dvh - var(--vf-topbar-h, 64px)); background: #eef1f6; }
.vf-ed-esq, .vf-ed-dir { background: #fff; overflow-y: auto; overflow-x: hidden; min-width: 0; padding: .9rem; border-right: 1px solid var(--vf-border); }
.vf-ed-dir { border-right: 0; border-left: 1px solid var(--vf-border); }
.vf-ed-nome { margin-bottom: .6rem; }
.vf-ed-abas { display: grid; grid-template-columns: repeat(2, 1fr); gap: .25rem; background: #f1f4f9; border-radius: 10px; padding: .25rem; margin-bottom: .8rem; }
.vf-ed-abas button { border: 0; background: none; border-radius: 8px; padding: .4rem .2rem; font-size: .78rem; font-weight: 600; color: #64748b; }
.vf-ed-abas button.active { background: #fff; color: var(--vf-primary); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.vf-ed-estrutura { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; min-height: 60px; }
.vf-ed-item { min-width: 0; display: flex; align-items: center; gap: .45rem; border: 1px solid var(--vf-border); border-radius: 10px; padding: .4rem .45rem; background: #fff; cursor: pointer; font-size: .82rem; }
.vf-ed-item:hover { border-color: rgba(var(--vf-primary-rgb), .45); }
.vf-ed-item.ativo { border-color: var(--vf-primary); background: rgba(var(--vf-primary-rgb), .05); box-shadow: 0 0 0 1px var(--vf-primary); }
.vf-ed-item.oculto { opacity: .55; }
.vf-ed-item b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vf-ed-item small { display: block; color: #94a3b8; font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vf-ed-item button { border: 0; background: none; color: #94a3b8; padding: .15rem .15rem; flex-shrink: 0; border-radius: 6px; }
.vf-ed-item button:hover { background: #f1f5f9; color: #334155; }
.vf-ed-item .txt-danger:hover, .vf-ed-li .txt-danger:hover { color: #dc2626; }
.vf-ed-alca { cursor: grab; color: #cbd5e1; padding: 0 .1rem; }
.vf-ed-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(var(--vf-primary-rgb), .08); color: var(--vf-primary); flex-shrink: 0; }
.vf-ed-fantasma { opacity: .4; background: rgba(var(--vf-primary-rgb), .1) !important; }
.vf-ed-grupo { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #94a3b8; font-weight: 700; margin: .6rem 0 .35rem; }
.vf-ed-paleta { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; }
.vf-ed-add { background: #f8fafc; border: 1px solid var(--vf-border); border-radius: 12px; padding: .5rem .6rem; }
.vf-ed-add > summary { font-weight: 700; font-size: .82rem; color: var(--vf-primary); cursor: pointer; list-style: none; display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.vf-ed-add > summary small { color: #94a3b8; font-weight: 400; }
.vf-ed-add .vf-ed-peca { padding: .4rem .2rem; font-size: .66rem; line-height: 1.15; }
.vf-ed-add .vf-ed-peca > i:first-child { font-size: 1rem; }
.vf-ed-peca { border: 1px dashed #cbd5e1; border-radius: 10px; padding: .55rem .4rem; text-align: center; font-size: .74rem; font-weight: 600; color: #334155; cursor: grab; background: #fff; position: relative; user-select: none; }
.vf-ed-peca > i:first-child { display: block; font-size: 1.2rem; color: var(--vf-primary); margin-bottom: .15rem; }
.vf-ed-peca:hover { border-style: solid; border-color: var(--vf-primary); background: rgba(var(--vf-primary-rgb), .04); }
.vf-ed-peca.usado { opacity: .45; cursor: default; }
.vf-ed-ok { position: absolute; right: 5px; top: 4px; color: #16a34a; }
.vf-ed-estrutura .vf-ed-peca { grid-column: 1 / -1; }
.vf-ed-centro { display: flex; flex-direction: column; min-width: 0; }
.vf-ed-barra { display: flex; gap: .5rem; align-items: center; padding: .55rem .8rem; background: #fff; border-bottom: 1px solid var(--vf-border); }
.vf-ed-palco { flex: 1; overflow: hidden; padding: 0; display: flex; justify-content: center; }
.vf-ed-moldura { position: relative; width: 100%; height: 100%; transition: width .25s; }
.vf-ed-moldura.celular { width: 400px; max-width: 100%; margin: .8rem 0; height: calc(100% - 1.6rem); border-radius: 28px; overflow: hidden; box-shadow: 0 0 0 10px #1e293b, 0 20px 50px rgba(0,0,0,.25); }
.vf-ed-moldura iframe { width: 100%; height: 100%; border: 0; display: block; background: #e9edf3; }
.vf-ed-carregando { position: absolute; top: 10px; right: 14px; background: #fff; border-radius: 30px; padding: .3rem .6rem; box-shadow: 0 2px 10px rgba(0,0,0,.12); color: var(--vf-primary); opacity: 0; transition: opacity .2s; pointer-events: none; }
.vf-ed-carregando.ativo { opacity: 1; }
.vf-ed-props-topo { display: flex; align-items: center; gap: .5rem; padding-bottom: .7rem; margin-bottom: .8rem; border-bottom: 1px solid var(--vf-border); }
.vf-ed-props-topo > i { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--vf-primary); color: #fff; }
.vf-ed-img { height: 120px; border: 1px dashed #cbd5e1; border-radius: 10px; display: grid; place-items: center; color: #cbd5e1; font-size: 2rem; position: relative; overflow: hidden; background: #f8fafc; }
.vf-ed-img img { width: 100%; height: 100%; object-fit: cover; }
.vf-ed-img button { position: absolute; top: 6px; right: 6px; }
.vf-ed-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; }
.vf-ed-imgs > div { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; }
.vf-ed-imgs img { width: 100%; height: 100%; object-fit: cover; }
.vf-ed-imgs > div button { position: absolute; top: 3px; right: 3px; border: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(15,23,42,.7); color: #fff; font-size: .8rem; line-height: 1; padding: 0; }
.vf-ed-add-img { aspect-ratio: 1; border: 1px dashed #cbd5e1; border-radius: 8px; background: #f8fafc; color: var(--vf-primary); font-size: 1.3rem; }
.vf-ed-lista { display: grid; gap: .5rem; margin-bottom: .5rem; }
.vf-ed-li { border: 1px solid var(--vf-border); border-radius: 10px; padding: .5rem; background: #fafbfd; }
.vf-ed-li-topo { display: flex; align-items: center; gap: .2rem; margin-bottom: .35rem; font-size: .75rem; color: #94a3b8; }
.vf-ed-li-topo button { border: 0; background: none; color: #94a3b8; padding: 0 .25rem; }
.vf-ed-li-topo button:disabled { opacity: .3; }
.vf-ed-icones { display: flex; flex-wrap: wrap; gap: .2rem; margin-bottom: .35rem; }
.vf-ed-icones button { width: 28px; height: 28px; border: 1px solid transparent; border-radius: 7px; background: #fff; color: #64748b; padding: 0; }
.vf-ed-icones button.ativo { border-color: var(--vf-primary); color: var(--vf-primary); background: rgba(var(--vf-primary-rgb), .08); }
.vf-ed-mobile { display: none; }

/* =====================================================================
   MOBILE / PWA  (< 992px)
   ===================================================================== */
@media (max-width: 991.98px) {
  .vf-sidebar { transform: translateX(-100%); width: 82%; max-width: 300px; }
  .vf-sidebar.aberta { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.3); }
  .vf-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 1035; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .vf-overlay.ativo { opacity: 1; pointer-events: auto; }
  .vf-main { margin-left: 0; padding-bottom: calc(var(--vf-bottom-h) + env(safe-area-inset-bottom)); }
  .vf-topbar { padding: 0 1rem; padding-top: env(safe-area-inset-top); height: calc(var(--vf-topbar-h) + env(safe-area-inset-top)); }
  .vf-content { padding: 1rem; }

  .vf-bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030;
    height: calc(var(--vf-bottom-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--vf-border);
    justify-content: space-around; align-items: center;
  }
  .vf-bottom-nav a, .vf-bottom-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; color: var(--vf-muted); font-weight: 500; background: none; border: none; padding: .35rem 0; }
  .vf-bottom-nav i { font-size: 1.35rem; }
  .vf-bottom-nav .active { color: var(--vf-primary); }
  .vf-bottom-nav .vf-fab { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 18px; background: var(--vf-primary); color: #fff; margin-top: -26px; box-shadow: 0 8px 20px rgba(var(--vf-primary-rgb), .45); justify-content: center; }
  .vf-bottom-nav .vf-fab i { font-size: 1.6rem; }

  /* Tabela vira lista de cards */
  .vf-table-cards thead { display: none; }
  .vf-table-cards, .vf-table-cards tbody, .vf-table-cards tr, .vf-table-cards td { display: block; width: 100%; }
  .vf-table-cards tr { position: relative; padding: .9rem 1rem; border-bottom: 1px solid var(--vf-border); }
  .vf-table-cards td { padding: .1rem 0; border: none; }
  .vf-table-cards td[data-label]:not(.vf-cel-principal)::before { content: attr(data-label) ': '; color: var(--vf-muted); font-size: .78rem; }
  .vf-table-cards td.vf-oculta-mobile { display: none; }
  .vf-table-cards td.vf-cel-acoes { margin-top: .6rem; }
  .vf-table-cards .vf-acoes { justify-content: flex-start; }
  .vf-table-cards td.vf-cel-status { position: absolute; top: .9rem; right: 1rem; width: auto; }
  .vf-table-cards td.vf-cel-status::before { display: none; }
  .vf-table-cards td.vf-cel-foto { position: absolute; left: 1rem; top: .9rem; width: auto; padding: 0; }
  .vf-table-cards tr:has(> td.vf-cel-foto) { padding-left: calc(2rem + 56px); min-height: calc(56px + 1.8rem); }
  .vf-paginacao-pc { display: none !important; }

  .vf-filtros-pc { display: none !important; }
  .vf-item-grid, .vf-item:not(.vf-item-loc) .vf-item-grid { grid-template-columns: 1fr 1fr 1fr; }
  .vf-item-topo { flex-wrap: wrap; }
  .vf-item-topo .vf-item-acoes { margin-left: auto; }
  .vf-item-topo input[data-f="descricao"] { order: 3; flex-basis: 100%; }
  .vf-item-grid .form-select-sm { padding-right: 1.5rem; background-position: right .35rem center; font-size: .82rem; }
  .vf-item-grid .vf-c-per { grid-column: span 2; }
  .vf-item-grid .vf-c-total { grid-column: span 3; display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--vf-border); padding-top: .4rem; }
  .vf-item-grid .vf-c-total label { margin: 0; font-size: .8rem; }
  .vf-resumo-orc { position: static; }
  .vf-barra-total { display: flex; position: fixed; left: 0; right: 0; bottom: calc(var(--vf-bottom-h) + env(safe-area-inset-bottom)); z-index: 1025; justify-content: space-between; align-items: center;
    background: #fff; border-top: 1px solid var(--vf-border); padding: .6rem 1rem; box-shadow: 0 -8px 24px rgba(15,23,42,.08); }
  .vf-barra-total b { font-size: 1.15rem; }
  #formOrcamento, #formVenda { padding-bottom: 96px; }
  .vf-iframe-proposta { height: 70vh; }
  .vf-form-actions { position: sticky; bottom: calc(var(--vf-bottom-h) + env(safe-area-inset-bottom)); background: var(--vf-bg); padding: .75rem 0; margin: 0 -1rem; padding-inline: 1rem; z-index: 5; }
  .vf-form-actions .btn { flex: 1; }
  .vf-toasts { left: 1rem; right: 1rem; max-width: none; top: calc(.75rem + env(safe-area-inset-top)); }
  .vf-auth { grid-template-columns: 1fr; }
  .vf-auth-hero { display: none; }
  .modal-dialog.modal-bottom-sheet { margin: 0; position: fixed; bottom: 0; left: 0; right: 0; max-width: none; }
  .modal-bottom-sheet .modal-content { border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .modal.fade .modal-bottom-sheet { transform: translateY(100%); }
  .modal.show .modal-bottom-sheet { transform: none; }
}
@media (min-width: 992px) {
  .vf-overlay, .vf-so-mobile { display: none !important; }
  .vf-infinite-sentinel { display: none; }
}
/* Modo app instalado (standalone) */
@media (display-mode: standalone) { body { user-select: none; } input, textarea { user-select: text; } }
.vf-table td.text-lg-end, .vf-table th.text-end { white-space: nowrap; }

/* editor da proposta no celular: um painel por vez */
@media (max-width: 991.98px) {
  .vf-ed { display: block; height: calc(100dvh - var(--vf-topbar-h, 60px) - 58px); position: relative; }
  .vf-ed > aside, .vf-ed > section { display: none; height: 100%; }
  .vf-ed[data-ativo="esq"] .vf-ed-esq, .vf-ed[data-ativo="dir"] .vf-ed-dir { display: block; }
  .vf-ed[data-ativo="centro"] .vf-ed-centro { display: flex; }
  .vf-ed-mobile { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: #fff; border-top: 1px solid var(--vf-border); padding-bottom: env(safe-area-inset-bottom); }
  .vf-ed-mobile button { border: 0; background: none; padding: .45rem 0 .5rem; font-size: .72rem; color: #64748b; display: flex; flex-direction: column; align-items: center; gap: .1rem; }
  .vf-ed-mobile button i { font-size: 1.2rem; }
  .vf-ed-mobile button.active { color: var(--vf-primary); font-weight: 600; }
  .vf-ed-moldura.celular { width: 100%; margin: 0; height: 100%; border-radius: 0; box-shadow: none; }
}
.vf-editor-tela .vf-main { padding-bottom: 0 !important; }
.vf-dl { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: .35rem .75rem; font-size: .88rem; }
.vf-dl dt { color: var(--vf-muted); font-weight: 500; }
.vf-dl dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.vf-saldo { font-weight: 700; font-variant-numeric: tabular-nums; }
.vf-saldo.baixo { color: #dc2626; }
.vf-saldo.ok { color: #0f172a; }
.vf-mov-tipos { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; }
.vf-mov-tipos .btn { border: 1px solid var(--vf-border); border-radius: 10px; font-size: .72rem; font-weight: 600; padding: .45rem .2rem; display: flex; flex-direction: column; align-items: center; gap: .15rem; line-height: 1.15; background: #fff; }
.vf-mov-tipos .btn i { font-size: 1.1rem; }
.vf-mov-tipos .btn-check:checked + .btn { border-color: var(--vf-primary); background: rgba(var(--vf-primary-rgb), .08); color: var(--vf-primary); }
@media (max-width: 575px) { .vf-mov-tipos { grid-template-columns: repeat(3, 1fr); } }

/* ===== Financeiro ===== */
.vf-parcelas { border: 1px solid var(--vf-borda, #e5e7eb); border-radius: 12px; padding: .25rem .75rem; font-size: .875rem; }
.vf-parcelas:empty { display: none; }
.vf-parcelas > div { display: flex; justify-content: space-between; padding: .4rem 0; border-bottom: 1px dashed #e5e7eb; }
.vf-parcelas > div:last-child { border-bottom: 0; }
.vf-fin-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; }
.vf-fin-kpi { background: #fff; border-radius: 16px; padding: .9rem 1rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); border: 1px solid #eef0f3; }
.vf-fin-kpi small { color: #6b7280; display: block; font-size: .75rem; }
.vf-fin-kpi b { font-size: 1.2rem; display: block; margin-top: .15rem; }
.vf-fin-kpi .vf-sub { font-size: .75rem; color: #6b7280; }
/* cartões com as cores da empresa (Assinaturas) */
.vf-kpis-marca .vf-fin-kpi { position: relative; overflow: hidden; border-color: color-mix(in srgb, var(--vf-primary) 16%, #eef0f3); background: linear-gradient(150deg, color-mix(in srgb, var(--vf-primary) 8%, #fff), #fff 62%); }
.vf-kpis-marca .vf-fin-kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--vf-primary), var(--vf-sec, var(--vf-primary))); }
.vf-kpis-marca .vf-fin-kpi > b { color: var(--vf-primary); }
.vf-kpis-marca .vf-kpi-ic { position: absolute; right: .8rem; top: .75rem; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 1rem; background: linear-gradient(135deg, var(--vf-primary), var(--vf-sec, var(--vf-primary))); box-shadow: 0 4px 10px rgba(var(--vf-primary-rgb), .25); }
.vf-kpis-marca .vf-fin-kpi small { padding-right: 2.6rem; }
.vf-valor-receber { color: #15803d; }
.vf-valor-pagar { color: #b91c1c; }
.vf-dre { font-size: .85rem; white-space: nowrap; }
.vf-dre th, .vf-dre td { padding: .45rem .6rem; }
.vf-dre td.num, .vf-dre th.num { text-align: right; font-variant-numeric: tabular-nums; }
.vf-dre tr.total td { font-weight: 700; background: #f8fafc; }
.vf-dre tr.destaque td { background: #ecfdf5; font-size: .95rem; }
.vf-dre tr.cat td:first-child { padding-left: 1.6rem; color: #6b7280; }
.vf-dre tr.cat td { font-size: .8rem; color: #6b7280; }
.vf-dre tr.discreto td { color: #6b7280; }
.vf-dre td:first-child { position: sticky; left: 0; background: #fff; z-index: 1; }
.vf-dre tr.total td:first-child { background: #f8fafc; }
.vf-dre tr.destaque td:first-child { background: #ecfdf5; }
.vf-dre .neg { color: #b91c1c; }
.vf-fluxo { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; align-items: end; }
.vf-fluxo-mes { text-align: center; min-width: 0; }
.vf-fluxo-barras { height: 140px; display: flex; align-items: flex-end; justify-content: center; gap: 4px; border-bottom: 1px solid #e5e7eb; }
.vf-fluxo-barras span { width: 30%; max-width: 26px; border-radius: 6px 6px 0 0; min-height: 2px; }
.vf-fluxo-barras .ent, .vf-leg.ent { background: #22c55e; }
.vf-fluxo-barras .sai, .vf-leg.sai { background: #f87171; }
.vf-fluxo-rot { font-size: .75rem; color: #6b7280; margin-top: .3rem; }
.vf-fluxo-res { font-size: .7rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vf-leg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; }

/* ===== Assinatura ===== */
.vf-plano-card { cursor: pointer; border: 2px solid transparent; transition: border-color .15s, box-shadow .15s; }
.btn-check:checked + .vf-plano-card { border-color: var(--vf-primary); box-shadow: 0 6px 24px rgba(9,93,252,.15); }
.vf-aviso-topo { border-radius: 12px; padding: .6rem 1rem; font-size: .875rem; display: flex; gap: .5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 1rem; }

/* Consulta de CNPJ/CEP em andamento */
.form-control.carregando { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='20' fill='none' stroke='%23095DFC' stroke-width='5' stroke-linecap='round' stroke-dasharray='90 150'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .6rem center; background-size: 1.1rem; padding-right: 2.2rem; }
.vf-consulta-btn { white-space: nowrap; }

/* ---------------- PWA: nova versão, instalar, offline, puxar para atualizar ---------------- */
.vf-nova-versao { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 2000; display: flex; align-items: center; gap: .6rem;
  background: #0f172a; color: #fff; border-radius: 14px; padding: .55rem .6rem .55rem 1rem; box-shadow: 0 10px 30px rgba(15,23,42,.3); font-size: .9rem; max-width: calc(100vw - 2rem); animation: vfSobe .3s ease; }
.vf-nova-versao .bi-stars { color: #fbbf24; }
.vf-instalar-banner { position: fixed; left: .75rem; right: .75rem; bottom: calc(var(--vf-bottom-h, 64px) + .75rem + env(safe-area-inset-bottom)); z-index: 1040; display: flex; align-items: center; gap: .75rem;
  background: #fff; border: 1px solid var(--vf-border, #e2e8f0); border-radius: 16px; padding: .7rem .8rem; box-shadow: 0 12px 32px rgba(15,23,42,.18); animation: vfSobe .35s ease; max-width: 560px; margin: 0 auto; }
.vf-instalar-banner img { width: 44px; height: 44px; border-radius: 12px; }
.vf-instalar-banner .small { color: #64748b; line-height: 1.2; }
@media (min-width: 992px) { .vf-instalar-banner { bottom: 1rem; left: auto; right: 1rem; width: 420px; } }
.vf-offline { position: fixed; top: 0; left: 0; right: 0; z-index: 2050; background: #b45309; color: #fff; font-size: .85rem; font-weight: 500; text-align: center;
  padding: .4rem 1rem; padding-top: calc(.4rem + env(safe-area-inset-top)); transition: transform .3s; animation: vfDesce .3s ease; }
.vf-offline.saindo { transform: translateY(-100%); }
.vf-puxar { position: fixed; top: calc(8px + env(safe-area-inset-top)); left: 50%; transform: translate(-50%, 0); z-index: 2060; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; box-shadow: 0 4px 16px rgba(15,23,42,.2); display: grid; place-items: center; color: #94a3b8; font-size: 1.2rem; pointer-events: none; }
.vf-puxar.pronto { color: var(--vf-primary); }
.vf-puxar.girando i { animation: vfGira .7s linear infinite; }
@keyframes vfSobe { from { opacity: 0; transform: translate(var(--tx, 0), 20px); } to { opacity: 1; } }
.vf-nova-versao { --tx: -50%; }
@keyframes vfDesce { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes vfGira { to { transform: rotate(360deg); } }
/* app instalado: sem destaque azul ao tocar e sem seleção acidental em botões */
.vf-app-instalado { -webkit-tap-highlight-color: transparent; }
.vf-app-instalado .btn, .vf-app-instalado .vf-bottom-nav a { -webkit-user-select: none; user-select: none; }
.vf-app-instalado [data-instalar-app] { display: none !important; }
@media (display-mode: standalone) { body { overscroll-behavior-y: contain; } }

/* indicadores em 3 colunas no celular: ícone em cima, valores sem estourar a tela */
.min-w-0 { min-width: 0; }
.vf-stat > div:last-child { min-width: 0; }
@media (max-width: 575.98px) {
  /* cartões de número em duas colunas: ícone em cima e valor inteiro (sem cortar em "R$ ...") */
  .col-6 > .card .vf-stat, .col-6 > a.card .vf-stat { flex-direction: column; align-items: flex-start; gap: .5rem; padding: .85rem .9rem; }
  .col-6 > .card .vf-stat-icon, .col-6 > a.card .vf-stat-icon { width: 36px; height: 36px; border-radius: 10px; font-size: 1.05rem; }
  .col-6 > .card .vf-stat > div:last-child, .col-6 > a.card .vf-stat > div:last-child { width: 100%; }
  .col-6 > .card .vf-stat-value, .col-6 > a.card .vf-stat-value { font-size: clamp(.98rem, 4.6vw, 1.25rem); white-space: normal; overflow: visible; text-overflow: clip; letter-spacing: -.01em; }
  .col-6 > .card .vf-stat-label, .col-6 > a.card .vf-stat-label { font-size: .76rem; line-height: 1.3; }
}
@media (max-width: 575.98px) {
  .col-4 > .card .vf-stat, .col-4 > a.card .vf-stat { flex-direction: column; align-items: flex-start; gap: .45rem; padding: .75rem .8rem; }
  .col-4 > .card .vf-stat-icon, .col-4 > a.card .vf-stat-icon { width: 34px; height: 34px; border-radius: 10px; font-size: 1rem; }
  .col-4 > .card .vf-stat-value, .col-4 > a.card .vf-stat-value { font-size: 1.02rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .col-4 > .card .vf-stat-label, .col-4 > a.card .vf-stat-label { font-size: .72rem; line-height: 1.2; }
  .col-4 > .card .vf-stat > div:last-child, .col-4 > a.card .vf-stat > div:last-child { width: 100%; }
}

/* Painel: ações rápidas estilo app */
.vf-acoes-rapidas { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; }
.vf-acoes-rapidas a { display: flex; flex-direction: column; align-items: center; gap: .4rem; background: #fff; border: 1px solid var(--vf-border); border-radius: 16px; padding: .85rem .4rem;
  color: var(--vf-text, #1e293b); text-decoration: none; font-size: .82rem; font-weight: 600; transition: transform .15s, box-shadow .15s; }
.vf-acoes-rapidas a:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,23,42,.08); }
.vf-acoes-rapidas a:active { transform: scale(.97); }
.vf-acoes-rapidas .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; }
@media (max-width: 767.98px) {
  .vf-acoes-rapidas { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
  .vf-acoes-rapidas a { padding: .7rem .3rem; font-size: .78rem; }
}

/* Listas de itens longas: rolagem própria + barra de busca */
.vf-lista-rolavel { max-height: min(62vh, 760px); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable;
  border-radius: 12px; border: 1px solid transparent; transition: border-color .2s; scroll-padding: .5rem; }
.vf-lista-rolavel:hover { border-color: var(--vf-border, #e2e8f0); }
.vf-lista-rolavel::-webkit-scrollbar { width: 8px; }
.vf-lista-rolavel::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
.vf-lista-barra { display: flex; align-items: center; gap: .4rem; margin-bottom: .5rem; padding: .4rem .5rem; background: var(--vf-bg, #f4f6fb); border-radius: 12px; }
.vf-lista-qtd { font-size: .8rem; font-weight: 600; color: #475569; white-space: nowrap; padding: 0 .3rem; }
.vf-lista-busca { position: relative; flex: 1; min-width: 0; }
.vf-lista-busca i { position: absolute; left: .6rem; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: .8rem; pointer-events: none; }
.vf-lista-busca input { padding-left: 1.8rem; border-radius: 10px; }
.vf-lista-oculto { display: none !important; }
.vf-lista-novo { animation: vfNovoItem 1.4s ease; }
@keyframes vfNovoItem { 0%, 40% { box-shadow: inset 0 0 0 2px var(--vf-primary, #095dfc); background-color: rgba(9,93,252,.06); } 100% { box-shadow: none; } }
@media (max-width: 767.98px) { .vf-lista-rolavel { max-height: 68vh; } }

/* Catálogos */
.vf-cat-card { overflow: hidden; }
.vf-cat-topo { position: relative; height: 96px; overflow: hidden; }
.vf-cat-topo .capa { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.vf-cat-topo .logo { position: absolute; left: 1rem; bottom: .75rem; height: 44px; max-width: 140px; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px 8px; }
.vf-cat-topo .estado { position: absolute; right: .75rem; top: .75rem; }
.vf-cat-prod { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-bottom: 1px solid var(--vf-border); }
.vf-cat-prod img, .vf-cat-prod .sem { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: #eef2f7; flex-shrink: 0; display: grid; place-items: center; color: #94a3b8; }
.vf-cat-prod .estrela { border: 0; background: none; color: #cbd5e1; font-size: 1.15rem; padding: 0 .25rem; }
.vf-cat-prod .estrela.on { color: #f59e0b; }
.vf-cat-previa { position: relative; border-radius: 16px; overflow: hidden; min-height: 130px; background: linear-gradient(120deg, var(--c2), var(--c1)); color: #fff; display: flex; align-items: flex-end; }
.vf-cat-previa .capa { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.vf-cat-previa .conteudo { position: relative; display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; }
.vf-cat-previa .logo { height: 56px; max-width: 160px; object-fit: contain; background: #fff; border-radius: 12px; padding: 5px 9px; }
.vf-wa-slot { border: 1px solid var(--vf-border); border-radius: 16px; padding: 1rem; height: 100%; }
.vf-wa-slot.on { border-color: #86efac; background: #f7fef9; }
.vf-wa-num { width: 30px; height: 30px; border-radius: 50%; background: #dcfce7; color: #15803d; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }

/* Chatbot: modos, flowbuilder e simulador */
.vf-modo-card { display: flex; flex-direction: column; gap: .2rem; border: 2px solid var(--vf-border); border-radius: 14px; padding: .8rem .9rem; cursor: pointer; height: 100%; background: #fff; }
.vf-modo-card i { font-size: 1.3rem; color: var(--vf-primary); }
.vf-modo-card small { color: #64748b; line-height: 1.3; }
.btn-check:checked + .vf-modo-card { border-color: var(--vf-primary); background: rgba(var(--vf-primary-rgb, 9,93,252), .05); box-shadow: 0 0 0 3px rgba(var(--vf-primary-rgb, 9,93,252), .12); }
.btn-check:disabled + .vf-modo-card { opacity: .55; cursor: not-allowed; }
.vf-fx-no { border: 1px solid var(--vf-border); border-left: 4px solid #cbd5e1; border-radius: 14px; margin-bottom: .75rem; background: #fff; transition: box-shadow .2s; }
.vf-fx-no.inicio { border-left-color: var(--vf-primary); }
.vf-fx-no.destaque { box-shadow: 0 0 0 3px rgba(9,93,252,.3); }
.vf-fx-cab { display: flex; align-items: center; gap: .5rem; padding: .6rem .7rem; border-bottom: 1px dashed var(--vf-border); }
.vf-fx-cab input { border: 0; background: transparent; box-shadow: none !important; padding-left: .2rem; min-width: 0; }
.vf-fx-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #eef2ff; color: var(--vf-primary); flex-shrink: 0; }
.vf-fx-corpo { padding: .7rem; }
.vf-fx-pe { padding: 0 .7rem .6rem; display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.vf-fx-chip { display: inline-flex; align-items: center; gap: .25rem; font-size: .75rem; background: #f1f5f9; border-radius: 999px; padding: .15rem .55rem; color: #334155; text-decoration: none; }
.vf-fx-chip:hover { background: #e0e7ff; color: var(--vf-primary); }
.vf-fx-chip.fim { color: #94a3b8; }
#salvarFluxo.pulsando { animation: vfPulsa 1.6s infinite; }
@keyframes vfPulsa { 50% { box-shadow: 0 0 0 6px rgba(9,93,252,.18); } }
.vf-sim { position: sticky; top: 80px; overflow: hidden; border-radius: 20px; }
.vf-sim-topo { display: flex; align-items: center; gap: .6rem; background: #075e54; color: #fff; padding: .7rem .9rem; }
.vf-sim-topo .bi-whatsapp { font-size: 1.4rem; }
.vf-sim-msgs { height: 440px; overflow-y: auto; background: #efeae2; padding: .9rem; display: flex; flex-direction: column; gap: .4rem; }
.vf-sim-dica { margin: auto; color: #64748b; font-size: .85rem; background: #fff8; border-radius: 10px; padding: .4rem .8rem; }
.vf-sim-b { max-width: 85%; padding: .45rem .65rem; border-radius: 10px; font-size: .88rem; line-height: 1.35; box-shadow: 0 1px 1px rgba(0,0,0,.08); word-wrap: break-word; }
.vf-sim-b.eu { align-self: flex-end; background: #d9fdd3; }
.vf-sim-b.bot { align-self: flex-start; background: #fff; }
.vf-sim-b.digitando span { display: inline-block; width: 6px; height: 6px; margin: 0 1px; border-radius: 50%; background: #94a3b8; animation: vfDig 1s infinite; }
.vf-sim-b.digitando span:nth-child(2) { animation-delay: .15s; } .vf-sim-b.digitando span:nth-child(3) { animation-delay: .3s; }
@keyframes vfDig { 50% { opacity: .2; } }
.vf-sim-info { font-size: .75rem; color: #475569; padding: .4rem .9rem 0; min-height: .5rem; }
.vf-sim-envio { display: flex; gap: .4rem; padding: .6rem .9rem; }
@media (max-width: 991.98px) { .vf-sim { position: static; } .vf-sim-msgs { height: 360px; } }

/* Caixa de atendimento */
.vf-inbox { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100vh - 120px); min-height: 480px; background: #fff; border: 1px solid var(--vf-border); border-radius: 18px; overflow: hidden; }
.vf-inbox-lista { border-right: 1px solid var(--vf-border); display: flex; flex-direction: column; min-height: 0; }
.vf-inbox-itens { overflow-y: auto; flex: 1; }
.vf-inbox-item { display: flex; gap: .6rem; width: 100%; text-align: left; border: 0; background: none; padding: .65rem .75rem; border-bottom: 1px solid #f1f5f9; }
.vf-inbox-item:hover { background: #f8fafc; } .vf-inbox-item.on { background: #eef4ff; }
.vf-inbox-item .av { width: 40px; height: 40px; border-radius: 50%; background: #dcfce7; color: #15803d; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.vf-inbox-item .av.ml { background: #fff159; color: #2d3277; }
.vf-inbox-aviso { background: #fffbeb; color: #92400e; font-size: .78rem; padding: .4rem .8rem; border-top: 1px solid #fde68a; }
.vf-inbox-item > span:last-child { display: flex; flex-direction: column; gap: 1px; }
#filtros button { border: 1px solid var(--vf-border); background: #fff; border-radius: 999px; padding: .25rem .7rem; font-size: .78rem; white-space: nowrap; }
#filtros button.on { background: var(--vf-primary); border-color: var(--vf-primary); color: #fff; }
.vf-inbox-chat { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: #efeae2; }
.vf-inbox-vazio { margin: auto; text-align: center; color: #64748b; } .vf-inbox-vazio i { font-size: 2.6rem; }
.vf-inbox-cab { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; background: #fff; border-bottom: 1px solid var(--vf-border); }
.vf-inbox-msgs { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .35rem; }
.vf-inbox-b { max-width: 75%; overflow-wrap: anywhere; word-break: break-word; padding: .4rem .65rem .25rem; border-radius: 10px; font-size: .9rem; background: #fff; align-self: flex-start; box-shadow: 0 1px 1px rgba(0,0,0,.08); word-wrap: break-word; }
.vf-inbox-b.out { align-self: flex-end; background: #d9fdd3; }
.vf-inbox-b.out.fluxo, .vf-inbox-b.out.ia, .vf-inbox-b.out.sistema { background: #e7f0ff; }
.vf-inbox-b .quem { font-size: .7rem; font-weight: 700; color: #0f766e; }
.vf-inbox-b.ia .quem, .vf-inbox-b.fluxo .quem { color: var(--vf-primary); }
.vf-inbox-b .hora { font-size: .66rem; color: #64748b; text-align: right; }
.vf-inbox-evento { align-self: center; font-size: .72rem; background: #fff9; border-radius: 8px; padding: .15rem .6rem; color: #475569; }
.vf-inbox-envio { display: flex; gap: .5rem; padding: .6rem; background: #f0f2f5; align-items: flex-end; }
.vf-inbox-envio textarea { resize: none; border-radius: 12px; }
@media (max-width: 991.98px) {
  .vf-inbox { grid-template-columns: 1fr; height: calc(100vh - 150px - env(safe-area-inset-bottom)); border-radius: 14px; }
  .vf-inbox-chat { display: none; } .vf-inbox.aberta .vf-inbox-chat { display: flex; } .vf-inbox.aberta .vf-inbox-lista { display: none; }
  .vf-inbox-b { max-width: 88%; }
}

/* Etiquetas de código de barras */
.vf-etq-item { display: flex; align-items: center; gap: .5rem; padding: .5rem .2rem; border-bottom: 1px solid #f1f5f9; }
.vf-etq-previa { background: #e5e7eb; border-radius: 12px; overflow: hidden; }
.vf-etq-previa iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ===== Combos e adicionais ===== */
.vf-combo-lista { display: grid; gap: .35rem; }
.vf-combo-item { display: flex; align-items: center; gap: .5rem; padding: .35rem .5rem; background: #f8fafc; border-radius: 10px; }
.vf-adic-grupos { display: grid; gap: .4rem; }
.vf-adic-grupo { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border: 1px solid #e2e8f0; border-radius: 12px; cursor: pointer; background: #fff; }
.vf-adic-grupo:has(input:checked) { border-color: var(--vf-primary); background: #eff6ff; }
.vf-adic-mover { color: #94a3b8; cursor: grab; padding: 0 .2rem; }
.vf-adic-opcoes { display: grid; gap: .4rem; }
.vf-adic-opcao { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; padding: .4rem; border: 1px solid #eef2f7; border-radius: 10px; }
.vf-adic-opcao > input[name$="[nome]"] { flex: 1 1 180px; min-width: 0; }
.vf-adic-prod { flex: 1 1 180px; min-width: 0; }
@media (max-width: 575px) { .vf-adic-opcao .input-group { width: 120px !important; } }
.vf-item-adic { font-size: .78rem; color: #64748b; }
.vf-chip-check { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid #e2e8f0; border-radius: 999px; padding: .3rem .75rem; font-size: .85rem; cursor: pointer; }
.vf-chip-check:has(input:checked) { border-color: var(--vf-primary); background: #eff6ff; }
.vf-chip-check input { margin: 0; }

/* Financeiro: baixa em lote e leitura de boleto */
.vf-lote-barra { position: fixed; left: 50%; transform: translateX(-50%); bottom: 1rem; z-index: 1040; background: #111827; color: #fff; border-radius: 999px; padding: .45rem .5rem .45rem 1.1rem; display: flex; align-items: center; gap: .6rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: .9rem; max-width: calc(100vw - 1.5rem); flex-wrap: wrap; justify-content: center; }
.vf-lote-barra[hidden] { display: none; }
.vf-sel-lote { cursor: pointer; }
.vf-boleto-drop { display: flex; align-items: center; justify-content: center; gap: .75rem; border: 2px dashed #cbd5e1; border-radius: 14px; padding: 1rem; cursor: pointer; color: #475569; text-align: center; }
.vf-boleto-drop:hover { border-color: var(--vf-primary, #095dfc); background: #f8fafc; }
.vf-boleto-info { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 12px; padding: .8rem 1rem; }
.vf-boleto-info small { display: block; color: #6b7280; font-size: .72rem; text-transform: uppercase; }
.vf-ia-analise { white-space: pre-line; line-height: 1.6; }
@media (max-width: 991.98px) { .vf-lote-barra { bottom: calc(4.6rem + env(safe-area-inset-bottom)); } }
.vf-as-exemplos { max-height: 7.5rem; overflow-y: auto; }

/* Cadastro pela foto */
.vf-foto { max-width: 560px; margin: 0 auto; }
.vf-foto-hero { text-align: center; padding: 1.5rem 1rem 1.25rem; }
.vf-foto-hero h2 { font-size: 1.35rem; font-weight: 700; margin: .75rem 0 .35rem; }
.vf-foto-icone { width: 84px; height: 84px; margin: 0 auto; border-radius: 26px; display: grid; place-items: center; font-size: 2.3rem; color: #fff; background: linear-gradient(135deg, var(--vf-primary, #095dfc), var(--vf-navy, #021b91)); box-shadow: 0 12px 30px rgba(9,93,252,.3); }
.vf-foto-btn { border-radius: 16px; padding: .95rem 1rem; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: .5rem; }
.vf-foto-dicas { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .4rem; color: #64748b; font-size: .88rem; }
.vf-foto-dicas i { color: var(--vf-primary, #095dfc); margin-right: .35rem; }
.vf-foto-palco { position: relative; background: #f1f5f9; border-radius: 18px; overflow: hidden; display: grid; place-items: center; min-height: 260px; }
.vf-foto-palco canvas { max-width: 100%; max-height: 62vh; display: block; }
.vf-xadrez { background-color: #fff !important; background-image: linear-gradient(45deg,#e5e7eb 25%,transparent 25%),linear-gradient(-45deg,#e5e7eb 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e5e7eb 75%),linear-gradient(-45deg,transparent 75%,#e5e7eb 75%) !important; background-size: 16px 16px !important; background-position: 0 0,0 8px,8px -8px,-8px 0 !important; }
.vf-foto-proc { position: absolute; inset: 0; background: rgba(255,255,255,.86); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .5rem; padding: 1rem; font-weight: 500; }
.vf-foto-ctrls, .vf-foto-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .75rem; align-items: center; }
.vf-foto-chip { border: 1px solid #dbe2ea; background: #fff; border-radius: 999px; padding: .45rem .85rem; font-size: .88rem; color: #334155; }
.vf-foto-chip.ativo { background: #e8f0ff; border-color: var(--vf-primary, #095dfc); color: var(--vf-primary, #095dfc); font-weight: 600; }
.vf-foto-chip:disabled { opacity: .6; }
.vf-foto-cor { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #dbe2ea; }
.vf-foto-cor.ativo { border-color: var(--vf-primary, #095dfc); box-shadow: 0 0 0 3px rgba(9,93,252,.18); }
.vf-foto-topo { display: flex; align-items: center; gap: .75rem; padding: .5rem 0 .75rem; border-bottom: 1px solid #eef0f3; }
.vf-foto-topo img { width: 52px; height: 52px; object-fit: cover; border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; }
.vf-foto-chat { display: flex; flex-direction: column; gap: .5rem; padding: .9rem 0; }
.vf-foto-msg { max-width: 88%; padding: .6rem .85rem; border-radius: 16px; line-height: 1.45; font-size: .95rem; animation: vfFotoIn .2s ease-out; }
.vf-foto-msg.ia { background: #f1f5f9; border-bottom-left-radius: 4px; align-self: flex-start; }
.vf-foto-msg.eu { background: var(--vf-primary, #095dfc); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
@keyframes vfFotoIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.vf-foto-resp { position: sticky; bottom: 0; background: var(--bs-body-bg, #fff); padding: .75rem 0 calc(.75rem + env(safe-area-inset-bottom)); border-top: 1px solid #eef0f3; }
@media (max-width: 991.98px) { .vf-foto-resp { bottom: calc(64px + env(safe-area-inset-bottom)); } }
.vf-foto-resp .form-control, .vf-foto-resp .form-select { font-size: 16px; }
.vf-foto-mic.ouvindo { color: #fff; background: #dc2626; animation: vfPulse 1s infinite; }
.vf-foto-digitando i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; margin-right: 3px; animation: vfDig 1s infinite; }
.vf-foto-digitando i:nth-child(2) { animation-delay: .15s; } .vf-foto-digitando i:nth-child(3) { animation-delay: .3s; }
@keyframes vfDig { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.vf-foto-preco { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: .75rem; text-align: left; border: 1px solid #dbe2ea; background: #fff; border-radius: 14px; padding: .6rem .85rem; margin-bottom: .45rem; }
.vf-foto-preco small { display: block; color: #64748b; font-size: .78rem; }
.vf-foto-preco.ativo { border-color: var(--vf-primary, #095dfc); background: #f5f8ff; }
.vf-foto-resumo { display: flex; gap: .85rem; align-items: center; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 16px; padding: .75rem; }
.vf-foto-resumo img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; background: #fff; }
.vf-foto-tipo { display: flex; gap: 1rem; font-size: .9rem; } .vf-foto-tipo input { margin-right: .3rem; }
.vf-foto-sim { margin-top: .4rem; font-size: .88rem; }
.vf-btn-foto { background: linear-gradient(135deg, var(--vf-primary, #095dfc), var(--vf-navy, #021b91)) !important; color: #fff !important; }

/* ---------- Venda Fácil */
.vf-venda-itens { display: grid; gap: .5rem; }
.vf-venda-item { border: 1px solid var(--vf-border); border-radius: 12px; padding: .6rem .75rem; background: #fff; }
.vf-qtd { display: inline-flex; align-items: center; border: 1px solid var(--vf-border); border-radius: 10px; overflow: hidden; }
.vf-qtd button { border: 0; background: #f1f5f9; width: 32px; height: 32px; font-size: 1.1rem; line-height: 1; }
.vf-qtd input { width: 52px; border: 0; text-align: center; height: 32px; font-weight: 600; }
.vf-ac-item.d-flex, #vProdRes .vf-ac-item { display: flex !important; align-items: center; gap: .6rem; }
#vProdRes .vf-ac-item > b { white-space: nowrap; font-size: .9rem; text-align: right; }
.vf-ac-img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.vf-ac-item small { display: block; font-size: .78rem; color: var(--vf-muted); }
.vf-ac-vazio { padding: .8rem .9rem; font-size: .85rem; color: var(--vf-muted); }
.vf-parcelas td, .vf-parcelas th { font-size: .85rem; }

/* Venda Fácil: escolher vários itens */
.vf-chip.on { background: var(--vf-primary); border-color: var(--vf-primary); color: #fff; }
button.vf-chip { cursor: pointer; }
.vf-cat-item { border-bottom: 1px solid var(--vf-border); }
.vf-cat-qtd .form-control { padding: .25rem .3rem; }
.vf-cat-rodape { position: sticky; bottom: 0; background: #fff; box-shadow: 0 -6px 18px rgba(15,23,42,.06); padding-bottom: calc(.75rem + env(safe-area-inset-bottom)); }

/* Venda Fácil: "Já recebido" */
.vf-recebido { border: 1px solid var(--vf-border); border-radius: 12px; padding: 8px 12px; background: #f8fafc; }
.vf-recebido:has(input:checked) { border-color: #16a34a; background: #f0fdf4; }

/* =====================================================================
   Acabamento (v40): fundo, destaque de cards e campos, barras de rolagem
   e proporções no PC. Tudo segue a cor da empresa (--vf-primary).
   ===================================================================== */
.card { --bs-card-bg: var(--vf-card); background-color: var(--vf-card); border-color: color-mix(in srgb, var(--vf-primary) 6%, #d5dbe6);
  box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 6px 18px -8px rgba(15,23,42,.14); }
.card-header { background: color-mix(in srgb, var(--vf-primary) 2.5%, #fafbfd); border-radius: var(--vf-radius) var(--vf-radius) 0 0 !important; }
.vf-section-title i, .card-header > i:first-child { color: var(--vf-primary); }
.form-control, .form-select { background-color: #fff; border-color: #b9c3d4; box-shadow: inset 0 1px 2px rgba(15,23,42,.045); }
.form-control::placeholder { color: #9aa5b6; }
.form-control:hover:not(:focus):not(:disabled), .form-select:hover:not(:focus):not(:disabled) { border-color: color-mix(in srgb, var(--vf-primary) 45%, #9aa5b6); }
.form-control:focus, .form-select:focus { background-color: #fff; border-color: var(--vf-primary); box-shadow: 0 0 0 .2rem rgba(var(--vf-primary-rgb), .16); }
.form-control:disabled, .form-control[readonly], .form-select:disabled { background-color: #eef1f6; box-shadow: none; }
.input-group-text { background: #f1f4f9; border-color: #b9c3d4; color: #475569; }
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: #cfd6e2; --bs-btn-hover-bg: #f1f4f9; --bs-btn-hover-border-color: #b9c3d4; --bs-btn-active-bg: #e8ecf3; --bs-btn-active-border-color: #b9c3d4; }
.vf-table thead th { background: color-mix(in srgb, var(--vf-primary) 3%, #f6f8fb); }
.vf-table tbody tr:hover { background: color-mix(in srgb, var(--vf-primary) 4%, #fff); }
.vf-topbar { background: rgba(255,255,255,.92); box-shadow: 0 1px 0 rgba(15,23,42,.03), 0 4px 14px -10px rgba(15,23,42,.25); }

/* Barras de rolagem: finas e discretas; no menu só aparecem ao passar o mouse */
* { scrollbar-width: thin; scrollbar-color: #c3cbd9 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c3cbd9; border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: #9aa5b6; }
.vf-nav { scrollbar-width: thin; scrollbar-color: transparent transparent; scrollbar-gutter: stable; padding-right: .35rem; transition: scrollbar-color .2s; }
.vf-nav:hover, .vf-nav:focus-within { scrollbar-color: color-mix(in srgb, currentColor 35%, transparent) transparent; }
.vf-nav::-webkit-scrollbar { width: 6px; }
.vf-nav::-webkit-scrollbar-thumb { background: transparent; border: 0; border-radius: 99px; }
.vf-nav:hover::-webkit-scrollbar-thumb, .vf-nav:focus-within::-webkit-scrollbar-thumb { background: color-mix(in srgb, currentColor 35%, transparent); }

/* PC: conteúdo com largura confortável e botões sem esticar demais */
@media (min-width: 992px) {
  .btn { --bs-btn-font-size: .9rem; }
  .btn-lg { --bs-btn-font-size: 1rem; --bs-btn-padding-y: .6rem; }
  .btn-sm { --bs-btn-font-size: .82rem; }
  /* margem lateral cresce aos poucos em telas grandes, sem deixar o conteúdo "ilhado" no meio */
  .vf-content { padding: 1.5rem clamp(1.5rem, calc((100vw - 1400px) * .12), 8rem); }
  .vf-content .btn.w-100, .vf-content .d-grid > .btn { max-width: 340px; margin-left: auto; margin-right: auto; }
  .vf-content .btn.w-100 { display: block; }
  .vf-content .d-grid > .btn { width: 100%; justify-self: center; }
  .vf-content .btn.w-100.text-start, .vf-content .d-grid > .btn.text-start,
  .vf-content .row > [class*="col"] > .btn.w-100, .vf-content .btn-group > .btn.w-100, .vf-content .input-group > .btn.w-100 { max-width: none; }
  .vf-empty .btn { min-width: 0; }
}

/* Cadastro rápido de produto: opção sem foto */
.vf-foto-ou { display: flex; align-items: center; gap: .75rem; color: var(--vf-muted); font-size: .8rem; margin: .9rem 0 .7rem; }
.vf-foto-ou::before, .vf-foto-ou::after { content: ''; flex: 1; height: 1px; background: var(--vf-border); }
.vf-foto-semimg { width: 72px; height: 72px; border-radius: 12px; background: rgba(var(--vf-primary-rgb), .1); color: var(--vf-primary); display: grid; place-items: center; font-size: 1.6rem; flex-shrink: 0; }
#fMini[hidden] { display: none !important; }

/* PC: formulários pequenos em popup (a mesma tela, carregada com ?modal=1 dentro do popup) */
.vf-form-modal { max-width: min(1040px, calc(100vw - 2rem)); }
.vf-form-modal .modal-content { border: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(15,23,42,.45); }
.vf-form-modal .modal-header { padding: .9rem 1.25rem; border-bottom: 1px solid var(--vf-border); }
.vf-form-modal .modal-title { font-size: 1.05rem; font-weight: 700; }
.vf-form-modal .modal-body { position: relative; min-height: 220px; background: var(--vf-bg); }
.vf-form-modal iframe { display: block; width: 100%; height: 420px; border: 0; opacity: 0; transition: opacity .15s; }
.vf-form-modal iframe.pronta { opacity: 1; }
.vf-form-modal-carga { position: absolute; inset: 0; display: grid; place-items: center; }
.vf-form-modal iframe.pronta + *, .vf-form-modal:has(iframe.pronta) .vf-form-modal-carga { display: none; }
body.vf-em-modal { min-height: 0; }
.vf-em-modal .vf-sidebar, .vf-em-modal .vf-topbar, .vf-em-modal .vf-bottom-nav, .vf-em-modal .vf-overlay, .vf-em-modal .vf-fab { display: none !important; }
.vf-em-modal .vf-main { margin-left: 0 !important; min-height: 0; padding-bottom: 0 !important; }
.vf-em-modal .vf-content { padding: 1.25rem !important; }
.vf-em-modal .vf-content > form { max-width: none !important; }
.vf-em-modal .vf-form-actions { position: sticky; bottom: 0; margin: 0 -1.25rem -1.25rem; padding: .8rem 1.25rem; background: #fff; border-top: 1px solid var(--vf-border); z-index: 5; }

/* Menu lateral: rótulos longos ("Condições de pagamento") cabem em uma linha */
.vf-nav a { font-size: .9rem; line-height: 1.25; }
.vf-nav a > i { flex-shrink: 0; }

/* Início: gráfico de vendas por dia, rosca de pagamentos e rankings (CSS puro — leve e funciona offline no app) */
.vf-graf-dias { display: flex; align-items: flex-end; gap: 3px; height: 170px; padding-top: 6px; border-bottom: 1px solid var(--vf-border);
  background: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), #eef1f6 calc(25% - 1px), #eef1f6 25%); }
.vf-graf-col { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.vf-graf-col span { display: block; width: 100%; border-radius: 4px 4px 0 0; background: rgba(var(--vf-primary-rgb), .55); transition: background .15s; }
.vf-graf-col span.hoje, .vf-graf-col:hover span { background: var(--vf-primary); }
.vf-graf-eixo { display: flex; justify-content: space-between; font-size: .72rem; color: var(--vf-muted); margin-top: .35rem; }
.vf-rosca { width: 112px; height: 112px; border-radius: 50%; flex-shrink: 0; -webkit-mask: radial-gradient(circle, transparent 36px, #000 37px); mask: radial-gradient(circle, transparent 36px, #000 37px); }
.vf-legenda { list-style: none; margin: 0; padding: 0; min-width: 0; display: grid; gap: .45rem; font-size: .84rem; }
.vf-legenda li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; column-gap: .5rem; align-items: center; }
.vf-legenda li i { width: 10px; height: 10px; border-radius: 3px; }
.vf-legenda li small { grid-column: 2 / -1; color: var(--vf-muted); font-size: .75rem; line-height: 1.1; }
.vf-rank { display: flex; align-items: center; gap: .8rem; padding: .7rem 1.1rem; border-bottom: 1px solid var(--vf-border); }
.vf-rank:last-child { border-bottom: 0; }
.vf-rank-pos { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem; background: #eef1f6; color: #475569; flex-shrink: 0; }
.vf-rank-pos.top { background: rgba(var(--vf-primary-rgb), .12); color: var(--vf-primary); }
.vf-rank-barra { height: 5px; border-radius: 99px; background: #eef1f6; margin: .3rem 0 .15rem; overflow: hidden; }
.vf-rank-barra span { display: block; height: 100%; border-radius: 99px; background: var(--vf-primary); }
@media (max-width: 575.98px) { .vf-graf-dias { height: 130px; gap: 2px; } .vf-rosca { width: 92px; height: 92px; -webkit-mask: radial-gradient(circle, transparent 28px, #000 29px); mask: radial-gradient(circle, transparent 28px, #000 29px); } }

/* Formulários de página inteira (produto, cliente...): centralizados, com mais largura no PC */
.vf-form-pagina { max-width: 1160px; margin-inline: auto; }
.vf-form-pagina.vf-form-curta { max-width: 900px; }
@media (min-width: 1700px) { .vf-form-pagina.vf-form-larga { max-width: 1400px; } }

/* Relatórios: impressão limpa (só o conteúdo) */
.vf-print-cabecalho { font-size: .9rem; margin-bottom: .6rem; }
@media print {
  .vf-sidebar, .vf-topbar, .vf-bottom-nav, .vf-fab, .vf-rel-filtros, .vf-overlay, .toast-container, .btn, .alert-warning { display: none !important; }
  .vf-main { margin-left: 0 !important; }
  .vf-content { padding: 0 !important; }
  .vf-print-cabecalho { display: block !important; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  body { background: #fff; }
  a { color: inherit; text-decoration: none; }
}

/* Emissor avulso: modal do catálogo */
.vf-cata-lista { max-height: min(52vh, 460px); overflow-y: auto; border: 1px solid var(--vf-border); border-radius: 12px; }
.vf-cata-item { display: flex; align-items: center; gap: .7rem; padding: .55rem .8rem; border-bottom: 1px solid var(--vf-border); }
.vf-cata-item:last-child { border-bottom: 0; }
.vf-cata-item.ca-feito { background: #f0fdf4; }
.vf-cata-qtd { width: 118px; flex-shrink: 0; }

/* ---------------------------------------------------------------- Chatbot PRO (filas, emojis, mídia, flow builder) */
.vf-fila-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .3rem; vertical-align: baseline; }
.vf-fila-badge { font-size: .62rem; font-weight: 600; }
.vf-chip-link { display: inline-flex; align-items: center; padding: .25rem .5rem; border-radius: 999px; color: var(--bs-secondary-color); text-decoration: none; border: 1px dashed var(--bs-border-color); }
.vf-inbox-img { max-width: min(260px, 100%); max-height: 260px; border-radius: .6rem; display: block; margin-bottom: .25rem; }
.vf-inbox-audio { max-width: 240px; display: block; margin-bottom: .25rem; }
.vf-emoji-painel { position: fixed; z-index: 1080; width: 288px; max-height: 300px; overflow-y: auto; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: .75rem; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: .5rem; }
.vf-emoji-cat { font-size: .72rem; font-weight: 700; color: var(--bs-secondary-color); margin: .35rem .25rem .2rem; text-transform: uppercase; letter-spacing: .03em; }
.vf-emoji-grade { display: grid; grid-template-columns: repeat(8, 1fr); }
.vf-emoji-grade button { border: 0; background: none; font-size: 1.15rem; line-height: 1; padding: .3rem 0; border-radius: .4rem; cursor: pointer; }
.vf-emoji-grade button:hover { background: var(--bs-tertiary-bg); }
/* Flow builder */
/* ---------- Flow builder do chatbot ---------- */
.vf-flow-caixa { --f-perg: #7c3aed; --f-msg: #2563eb; --f-auto: #0d9488; --f-logica: #d97706; --f-ia: #c026d3; --f-gente: #db2777; --f-fim: #64748b; }
.vf-flow-barra { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.vf-flow-corpo { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: .75rem; }
.vf-flow-lateral { min-width: 0; max-height: min(72vh, 680px); overflow-y: auto; padding-right: .2rem; }
.vf-flow-palco { position: relative; min-width: 0; }
.vf-flow { position: relative; height: min(72vh, 680px); border: 1px solid #e3e8f0; border-radius: 16px; overflow: auto; cursor: grab; background-color: #f7f9fc; background-image: radial-gradient(circle, #cfd8e6 1px, transparent 1.2px); background-size: 22px 22px; }
.vf-flow.movendo { cursor: grabbing; }
.vf-flow-area { position: relative; width: 2400px; height: 1600px; transform-origin: 0 0; touch-action: none; }
.vf-flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.vf-flow-svg .lig { fill: none; stroke: #94a3b8; stroke-width: 2; stroke-linecap: round; opacity: .8; transition: stroke-width .12s, opacity .12s; }
.vf-flow-svg .lig.on { stroke-width: 3; opacity: 1; }
.vf-flow-svg .lig.temp { stroke: var(--vf-primary); stroke-dasharray: 6 5; opacity: 1; }
.vf-flow-svg .lig.f-perg { stroke: var(--f-perg); } .vf-flow-svg .lig.f-msg { stroke: var(--f-msg); } .vf-flow-svg .lig.f-auto { stroke: var(--f-auto); } .vf-flow-svg .lig.f-logica { stroke: var(--f-logica); }
.vf-flow-svg .lig.f-ia { stroke: var(--f-ia); } .vf-flow-svg .lig.f-gente { stroke: var(--f-gente); } .vf-flow-svg .lig.f-fim { stroke: var(--f-fim); }
.vf-flow-card { --cor: var(--f-msg); position: absolute; width: 240px; background: #fff; border: 1px solid #e3e8f0; border-radius: 14px; box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 6px 16px rgba(15,23,42,.06); cursor: grab; user-select: none; font-size: .78rem; touch-action: none; transition: box-shadow .15s, border-color .15s; }
.vf-flow-card.f-perg { --cor: var(--f-perg); } .vf-flow-card.f-auto { --cor: var(--f-auto); } .vf-flow-card.f-logica { --cor: var(--f-logica); } .vf-flow-card.f-ia { --cor: var(--f-ia); } .vf-flow-card.f-gente { --cor: var(--f-gente); } .vf-flow-card.f-fim { --cor: var(--f-fim); }
.vf-flow-card:hover { border-color: color-mix(in srgb, var(--cor) 45%, #e3e8f0); box-shadow: 0 2px 4px rgba(15,23,42,.06), 0 12px 26px rgba(15,23,42,.1); }
.vf-flow-card.on, .vf-flow-card.alvo { border-color: var(--cor); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cor) 22%, transparent), 0 12px 26px rgba(15,23,42,.1); }
.vf-flow-card.arrastando { cursor: grabbing; z-index: 3; }
.vf-flow-card.solto { border-style: dashed; }
.vf-flow-card .cab { display: flex; align-items: center; gap: .55rem; padding: .55rem .65rem; }
.vf-flow-card .cab .ic { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; color: #fff; background: var(--cor); font-size: .95rem; }
.vf-flow-card .cab .tt { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.15; }
.vf-flow-card .cab .tipo { font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--cor); }
.vf-flow-card .cab .nome { font-weight: 700; color: #0f172a; font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vf-flow-card .tag-inicio { font-size: .6rem; font-weight: 700; text-transform: uppercase; background: #dcfce7; color: #15803d; border-radius: 999px; padding: .15rem .45rem; flex: none; }
.vf-flow-card .corpo { padding: 0 .65rem .6rem; color: #475569; }
.vf-flow-card .res { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; overflow-wrap: anywhere; }
.vf-flow-card .res .vazio { color: #94a3b8; font-style: italic; }
.vf-flow-card .ops { margin-top: .4rem; display: grid; gap: 4px; }
.vf-flow-card .op { position: relative; display: flex; align-items: center; gap: .4rem; background: #f4f6fa; border-radius: 8px; padding: .22rem .5rem; height: 24px; }
.vf-flow-card .op .num { width: 16px; height: 16px; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--cor) 16%, #fff); color: var(--cor); font-size: .62rem; font-weight: 700; display: grid; place-items: center; }
.vf-flow-card .op .rot { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #334155; }
.vf-flow-card .porta { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid #cbd5e1; z-index: 2; }
.vf-flow-card .porta.entra { left: -8px; top: 19px; border-color: #cbd5e1; }
.vf-flow-card .porta.sai { right: -15px; top: 50%; transform: translateY(-50%); cursor: crosshair; border-color: var(--cor); transition: transform .12s, background .12s; }
.vf-flow-card .porta.sai.unica { right: -8px; top: 26px; transform: translateY(-50%); }
.vf-flow-card .porta.sai::after { content: ""; position: absolute; inset: -9px; }
.vf-flow-card .porta.sai:hover { transform: translateY(-50%) scale(1.35); background: var(--cor); }
.vf-flow-card .porta.sai.ligada { background: var(--cor); }
.vf-flow-paleta { display: grid; gap: .7rem; }
.vf-flow-paleta .grp { --cor: var(--f-msg); display: grid; gap: .3rem; }
.vf-flow-paleta .grp.f-perg { --cor: var(--f-perg); } .vf-flow-paleta .grp.f-auto { --cor: var(--f-auto); } .vf-flow-paleta .grp.f-logica { --cor: var(--f-logica); } .vf-flow-paleta .grp.f-gente { --cor: var(--f-gente); }
.vf-flow-paleta .grp-t { font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #64748b; }
.vf-flow-paleta button { display: flex; align-items: center; gap: .5rem; width: 100%; text-align: left; border: 1px solid #e3e8f0; background: #fff; border-radius: 10px; padding: .38rem .55rem; font-size: .8rem; color: #1e293b; transition: border-color .12s, transform .12s; }
.vf-flow-paleta button i { width: 22px; height: 22px; flex: none; border-radius: 7px; display: grid; place-items: center; background: color-mix(in srgb, var(--cor) 14%, #fff); color: var(--cor); font-size: .8rem; }
.vf-flow-paleta button:hover { border-color: var(--cor); transform: translateX(2px); }
.vf-flow-zoom { position: absolute; right: 14px; bottom: 44px; display: flex; align-items: center; background: #fff; border: 1px solid #e3e8f0; border-radius: 12px; box-shadow: 0 6px 16px rgba(15,23,42,.1); overflow: hidden; z-index: 4; }
.vf-flow-zoom button { border: 0; background: transparent; width: 34px; height: 34px; color: #334155; } .vf-flow-zoom button:hover { background: #f1f5f9; }
.vf-flow-zoom span { font-size: .75rem; font-weight: 600; min-width: 42px; text-align: center; color: #475569; }
.vf-flow-dica { font-size: .74rem; color: #64748b; margin-top: .45rem; }
.vf-flow-caixa.cheia { position: fixed; inset: 0; z-index: 1038; margin: 0 !important; border-radius: 0; border: 0; overflow: hidden; }
.vf-flow-caixa.cheia > .card-body { height: 100%; display: flex; flex-direction: column; padding: .75rem 1rem; }
.vf-flow-caixa.cheia .vf-flow-corpo { flex: 1; min-height: 0; grid-template-columns: 240px minmax(0, 1fr); }
.vf-flow-caixa.cheia .vf-flow-lateral { max-height: none; height: 100%; }
.vf-flow-caixa.cheia .vf-flow-palco { display: flex; flex-direction: column; min-height: 0; }
.vf-flow-caixa.cheia .vf-flow { flex: 1; height: auto; min-height: 0; }
body.vf-flow-cheia { overflow: hidden; }
body.vf-flow-cheia .vf-fab, body.vf-flow-cheia .vf-bottom-nav { display: none !important; }
body.vf-flow-cheia .vf-sidebar { z-index: 1030; }
@media (max-width: 991.98px) {
  .vf-flow-corpo, .vf-flow-caixa.cheia .vf-flow-corpo { grid-template-columns: 1fr; }
  .vf-flow-lateral, .vf-flow-caixa.cheia .vf-flow-lateral { max-height: none; height: auto; overflow: visible; }
  .vf-flow-paleta { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .3rem; }
  .vf-flow-paleta .grp { display: flex; gap: .4rem; flex: none; } .vf-flow-paleta .grp-t { display: none; }
  .vf-flow-paleta button { width: auto; white-space: nowrap; }
  .vf-flow { height: 62vh; } .vf-flow-dica { display: none; } .vf-flow-zoom { bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { .vf-flow-card, .vf-flow-paleta button, .vf-flow-card .porta.sai { transition: none; } }
.vf-horarios .form-control { max-width: 110px; }
.vf-horarios .d-flex { flex-wrap: wrap; }
.vf-horarios .form-control { flex: 1 1 90px; min-width: 0; }

/* Ações do cabeçalho de documentos (venda, orçamento, nota): botões compactos e da mesma altura */
.vf-acoes-doc .btn { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; font-size: .85rem; line-height: 1.25; white-space: nowrap; }
.vf-acoes-doc .btn-group .btn { padding: .4rem .7rem; }

/* PC: todas as abas visíveis (quebram linha); no celular continua deslizando */
@media (min-width: 992px) {
  .vf-tabs { flex-wrap: wrap; overflow-x: visible; row-gap: 0; }
}

/* Modal de variações da grade */
.vf-grade-opcoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; }
.vf-grade-op { display: flex; flex-direction: column; align-items: center; gap: .3rem; border: 1px solid var(--bs-border-color); background: var(--bs-body-bg); border-radius: .75rem; padding: .6rem .4rem; cursor: pointer; }
.vf-grade-op:hover { border-color: var(--vf-primaria, #6c5ce7); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.vf-grade-op img, .vf-grade-sem-foto { width: 64px; height: 64px; object-fit: cover; border-radius: .5rem; }
.vf-grade-sem-foto { display: flex; align-items: center; justify-content: center; background: var(--bs-tertiary-bg); color: var(--bs-secondary-color); font-size: 1.4rem; }
.vf-grade-op span { font-size: .85rem; color: var(--vf-primaria, #6c5ce7); font-weight: 600; }

/* avatar compacto nos modais do atendimento */
.vf-inbox-av-min { width: 34px; height: 34px; border-radius: 50%; background: #dcfce7; color: #15803d; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }

/* ---------- Painel: atalhos com as cores da empresa e gráficos extras ---------- */
.vf-atalhos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; }
.vf-atalhos a { --c: var(--vf-primary); --t: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: .9rem;
  min-height: 104px; padding: .85rem .9rem; border-radius: 16px; color: var(--t); text-decoration: none; font-weight: 700; font-size: .86rem;
  background: linear-gradient(140deg, var(--c), color-mix(in srgb, var(--c) 72%, #000)); box-shadow: 0 10px 22px -14px var(--c); transition: transform .15s, box-shadow .15s; }
.vf-atalhos a::after { content: ''; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: -28px; top: -30px; background: rgba(255,255,255,.12); }
.vf-atalhos a:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -14px var(--c); color: var(--t); }
.vf-atalhos a:active { transform: scale(.97); }
.vf-atalhos .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; background: rgba(255,255,255,.18); }
.vf-atalhos .rot { position: relative; z-index: 1; line-height: 1.15; }
@media (max-width: 767.98px) { .vf-atalhos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; } .vf-atalhos a { min-height: 92px; padding: .7rem; font-size: .78rem; } }
.vf-hbar { display: grid; grid-template-columns: minmax(90px, 34%) 1fr 34px; align-items: center; gap: .6rem; margin-bottom: .55rem; font-size: .84rem; }
.vf-hbar .trilho { height: 12px; background: #eef2f7; border-radius: 99px; overflow: hidden; display: block; }
.vf-hbar .trilho span { display: block; height: 100%; border-radius: 99px; transition: width .4s; }
.vf-hbar b { text-align: right; }
.vf-barras2 { display: flex; align-items: flex-end; gap: .6rem; height: 180px; padding-top: .5rem; }
.vf-barras2 .mes { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; }
.vf-barras2 .barras { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; border-bottom: 1px solid #e2e8f0; }
.vf-barras2 .barras span { width: min(26px, 40%); border-radius: 6px 6px 0 0; min-height: 0; }
.vf-barras2 small { color: var(--vf-muted); margin-top: .35rem; font-size: .72rem; }
.vf-legenda-mini { font-size: .75rem; color: var(--vf-muted); font-weight: 400; }
.vf-legenda-mini i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin: 0 .2rem 0 .5rem; vertical-align: middle; }
.vf-fluxocx tr.saldo td { font-weight: 600; background: #eff6ff; }
.vf-fluxocx tr.saldo td:first-child { background: #eff6ff; }
.vf-fluxocx tr.destaque td, .vf-fluxocx tr.destaque td:first-child { background: #ecfdf5; }
.vf-conta-banco { font-size: .78rem; color: #6b7280; }
.vf-formas-tab td, .vf-formas-tab th { vertical-align: middle; white-space: nowrap; }
.vf-formas-tab input.form-control { min-width: 84px; }
.vf-formas-tab select { min-width: 150px; }
.vf-baixa-liq { display: flex; justify-content: space-between; align-items: center; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: .6rem; padding: .45rem .75rem; font-size: .88rem; }

/* botão voltar no cabeçalho das telas de detalhe */
.vf-btn-voltar { flex-shrink: 0; margin-right: .25rem; }

/* zoom de foto (data-zoom) */
[data-zoom] { cursor: zoom-in; }
.vf-zoom { position: fixed; inset: 0; z-index: 2000; background: rgba(15,23,42,.88); display: none; align-items: center; justify-content: center; padding: 3rem 4rem; }
.vf-zoom.aberto { display: flex; }
.vf-zoom img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff; cursor: default; }
.vf-zoom-x, .vf-zoom-nav { position: absolute; border: 0; background: rgba(255,255,255,.15); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.3rem; display: grid; place-items: center; }
.vf-zoom-x:hover, .vf-zoom-nav:hover { background: rgba(255,255,255,.3); }
.vf-zoom-x { top: 16px; right: 16px; }
.vf-zoom-nav.ant { left: 16px; } .vf-zoom-nav.prox { right: 16px; }
.vf-zoom-cont { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .9rem; opacity: .8; }
@media (max-width: 576px) { .vf-zoom { padding: 3.5rem .5rem; } .vf-zoom-nav { bottom: 12px; top: auto; } }
/* foto maior nas listas de produtos */
.vf-thumb.lg { width: 56px; height: 56px; border-radius: 12px; }
/* disponibilidade de locação */
.vf-loc-card { display: flex; gap: 1rem; align-items: center; padding: .9rem 1rem; border-bottom: 1px solid var(--bs-border-color, #e2e8f0); }
.vf-loc-card:last-child { border-bottom: 0; }
.vf-loc-foto { width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: #f1f5f9; display: grid; place-items: center; color: #94a3b8; font-size: 1.6rem; flex-shrink: 0; }
.vf-loc-foto img { width: 100%; height: 100%; object-fit: cover; }
.vf-loc-barra { height: 10px; border-radius: 10px; background: #e2e8f0; overflow: hidden; display: flex; }
.vf-loc-barra span { display: block; height: 100%; }
.vf-loc-num { min-width: 64px; text-align: center; }
.vf-loc-num b { display: block; font-size: 1.15rem; line-height: 1.1; }
.vf-loc-num small { color: var(--bs-secondary-color, #64748b); font-size: .72rem; text-transform: uppercase; letter-spacing: .02em; }
.vf-loc-chips .btn { border-radius: 999px; }

/* flag "Breve" no menu lateral */
.vf-flag-breve{margin-left:auto;font-size:.62rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:.12rem .45rem;border-radius:999px;background:#f59e0b;color:#1f2937;line-height:1.3}

/* postar nas redes */
.btn-icon.vf-btn-redes{color:#c13584;background:rgba(193,53,132,.1)}
.btn-icon.vf-btn-redes:hover{color:#fff;background:linear-gradient(45deg,#f09433,#dc2743,#bc1888)}
.vf-redes-prev{background:#f1f3f7;border-radius:1rem;padding:.75rem;display:flex;justify-content:center;align-items:center}
.vf-redes-prev canvas{max-width:100%;max-height:62vh;height:auto;width:auto;border-radius:.6rem;box-shadow:0 6px 24px rgba(15,23,42,.15)}
.vf-redes-mini{width:56px;height:56px;padding:0;border:2px solid transparent;border-radius:.6rem;overflow:hidden;background:#fff}
.vf-redes-mini img{width:100%;height:100%;object-fit:cover}
.vf-redes-mini.ativo{border-color:var(--bs-primary,#0d6efd)}
.vf-redes-breve{border:1px dashed #cbd5e1;border-radius:.8rem;padding:.75rem}

/* promoções no WhatsApp */
.vf-promo-passo{display:flex;align-items:center;gap:.5rem;font-weight:700;margin-bottom:.6rem}
.vf-promo-passo span{width:24px;height:24px;border-radius:50%;background:var(--bs-primary,#0d6efd);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:.8rem}
.vf-promo-prods{position:absolute;z-index:20;left:0;right:0;top:44px;max-height:320px;overflow:auto;box-shadow:0 10px 30px rgba(15,23,42,.18);border-radius:.8rem}
.vf-promo-contatos{max-height:340px;overflow:auto;border:1px solid #e5e7eb;border-radius:.8rem}
.vf-promo-contato{display:flex;align-items:center;gap:.6rem;padding:.5rem .75rem;border-bottom:1px solid #f1f5f9;cursor:pointer;margin:0}
.vf-promo-contato:last-child{border-bottom:0}
.vf-promo-contato:hover{background:#f8fafc}
.vf-promo-contato .form-check-input{margin:0;flex-shrink:0}

/* barra de cobrança (Pix/boleto) abaixo da descrição nas listas */
.vf-cob-barra{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem;margin-top:.45rem;clear:both}
.vf-cob-barra .btn{padding:.2rem .55rem;font-size:.78rem;line-height:1.3;border-radius:.5rem;white-space:nowrap}
.vf-cob-barra .badge{font-size:.72rem}
@media (max-width: 991.98px){ .vf-cob-barra{gap:.4rem} .vf-cob-barra .btn{padding:.35rem .7rem;font-size:.82rem} }

/* topo: botões nunca quebram linha; em telas médias ficam só com o ícone e o título encolhe com "..." */
.vf-topbar h1 { min-width: 0; }
.vf-topo-acoes { flex-shrink: 0; flex-wrap: nowrap; }
.vf-topo-acoes .btn, .vf-topo-acoes .dropdown-toggle { white-space: nowrap; }
@media (max-width: 1499.98px) {
  .vf-topo-acoes .btn > span.d-md-inline, .vf-topo-acoes .btn > span.d-lg-inline, .vf-topo-acoes .vf-rot-longo { display: none !important; }
  .vf-topo-acoes .vf-filial .btn > span { max-width: 90px !important; }
}
@media (max-width: 1199.98px) {
  .vf-topo-acoes .vf-filial .btn > span { display: none !important; }
  .vf-topo-acoes .vf-btn-assistente span { display: none; }
}
@media (max-width: 1299.98px) { .vf-topo-acoes .vf-rot-medio { display: none !important; } }

/* listas longas dentro de cards (categorias, contas...): rolagem própria */
.vf-lista-rolavel { max-height: 440px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
@media (max-width: 991.98px) { .vf-lista-rolavel { max-height: 60vh; } }

/* Propagandas de patrocinadores */
.vf-anuncio-card{background:#fff;border:1px solid var(--vf-border,#e2e8f0);border-radius:16px;overflow:hidden}
.vf-anuncio-card img{width:100%;display:block;max-height:220px;object-fit:cover}
.vf-anuncio-corpo{padding:14px 16px}
.vf-anuncio-tag{font-size:.66rem;text-transform:uppercase;letter-spacing:.07em;color:#94a3b8;font-weight:600}
.vf-anuncio-fechar{position:absolute;top:10px;right:10px;z-index:2;background-color:#fff;border-radius:50%;padding:.55rem;opacity:.95;box-shadow:0 2px 8px rgba(0,0,0,.15)}
@media (min-width:768px){.vf-anuncio-faixa{display:flex;align-items:stretch}.vf-anuncio-faixa>a,.vf-anuncio-faixa>img{flex:0 0 260px}.vf-anuncio-faixa img{height:100%;max-height:160px}.vf-anuncio-faixa .vf-anuncio-corpo{align-self:center}}
.vf-anuncio-carrossel .carousel-indicators{margin-bottom:.4rem}.vf-anuncio-carrossel .carousel-indicators [data-bs-target]{background-color:var(--vf-primary,#095dfc);width:18px;height:4px;border-radius:4px}
.vf-anuncio-carrossel .carousel-control-prev,.vf-anuncio-carrossel .carousel-control-next{width:44px;height:44px;top:80px;bottom:auto;opacity:.85}
.vf-anuncio-carrossel .carousel-control-prev{left:8px}.vf-anuncio-carrossel .carousel-control-next{right:8px}
.vf-anuncio-carrossel .carousel-control-prev-icon,.vf-anuncio-carrossel .carousel-control-next-icon{background-color:rgba(15,23,42,.55);border-radius:50%;background-size:55%;width:34px;height:34px}
.vf-anuncio-carrossel .vf-anuncio-corpo{padding-bottom:26px}

/* ---- Atendimento integrado às vendas: painel do cliente, pedido no chat e respostas rápidas */
.vf-inbox.com-painel { grid-template-columns: 340px minmax(0, 1fr) 320px; }
.vf-inbox-painel { border-left: 1px solid var(--vf-border); background: #fff; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.vf-painel-cab { display: flex; align-items: center; justify-content: space-between; padding: .6rem .8rem; border-bottom: 1px solid var(--vf-border); }
.vf-painel-corpo { overflow-y: auto; flex: 1; }
.vf-painel-sec { padding: .75rem .8rem; border-bottom: 1px solid #f1f5f9; }
.vf-painel-sec .tit { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #64748b; margin-bottom: .35rem; }
.vf-painel-nums { display: grid; grid-template-columns: auto 1fr 1fr; gap: .4rem; margin-top: .5rem; }
.vf-painel-nums div { background: #f6f8fd; border-radius: 10px; padding: .35rem .5rem; display: flex; flex-direction: column; min-width: 0; }
.vf-painel-nums b { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .vf-painel-nums span { font-size: .66rem; color: #64748b; }
.vf-painel-item { display: flex; align-items: center; gap: .4rem; padding: .3rem 0; font-size: .85rem; }
.vf-painel-item > div:first-child { flex: 1; min-width: 0; } .vf-painel-item .acs { display: flex; gap: .15rem; flex-shrink: 0; }
.vf-painel-item .badge { color: #fff; font-weight: 600; }
.vf-inbox-envio { position: relative; }
.vf-rapidas { position: absolute; left: .6rem; right: .6rem; bottom: calc(100% + 4px); background: #fff; border: 1px solid var(--vf-border); border-radius: 12px; box-shadow: 0 8px 24px rgba(15, 23, 42, .14); overflow: hidden; z-index: 5; }
.vf-rapidas button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: .45rem .7rem; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vf-rapidas button.on, .vf-rapidas button:hover { background: #eef4ff; } .vf-rapidas button span { color: #64748b; } .vf-rapidas .vazio { padding: .5rem .7rem; font-size: .82rem; color: #64748b; }
.vf-inbox-doc { display: inline-flex; align-items: center; gap: .35rem; background: #fff8; border-radius: 8px; padding: .3rem .55rem; margin-bottom: .25rem; text-decoration: none; font-size: .82rem; }
.vf-vd-lista { max-height: 300px; overflow-y: auto; border: 1px solid var(--vf-border); border-radius: 12px; }
.vf-vd-prod { display: flex; align-items: center; gap: .55rem; padding: .4rem .6rem; border-bottom: 1px solid #f1f5f9; }
.vf-vd-prod img, .vf-vd-prod .semfoto { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #f1f5f9; display: grid; place-items: center; color: #94a3b8; }
.vf-vd-item { display: flex; align-items: center; gap: .5rem; padding: .25rem 0; font-size: .9rem; }
@media (max-width: 1199.98px) {
  .vf-inbox.com-painel { grid-template-columns: 340px minmax(0, 1fr); }
  .vf-inbox-painel { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 100vw); z-index: 1045; box-shadow: -8px 0 28px rgba(15, 23, 42, .18); padding-bottom: env(safe-area-inset-bottom); }
}
@media (max-width: 991.98px) { .vf-inbox.com-painel { grid-template-columns: 1fr; } }
@media (max-width: 1699.98px) { .vf-inbox.com-painel #btnAssumir span, .vf-inbox.com-painel #btnRobo span { display: none !important; } }
@media (max-width: 575.98px) { .vf-sm-up { display: none !important; } }

/* Listagens em zebra: branco alternando com um tom claro da cor da empresa (Configurações > cor padrão) */
.vf-table tbody tr:not([class*="table-"]) { --bs-table-bg: #fff; background: #fff; }
.vf-table tbody tr:not([class*="table-"]):nth-child(even) { --bs-table-bg: color-mix(in srgb, var(--vf-primary) 7%, #fff); background: color-mix(in srgb, var(--vf-primary) 7%, #fff); }
.vf-table tbody tr:not([class*="table-"]):hover { --bs-table-bg: color-mix(in srgb, var(--vf-primary) 13%, #fff); background: color-mix(in srgb, var(--vf-primary) 13%, #fff); }
.vf-table thead th { background: color-mix(in srgb, var(--vf-primary) 11%, #fff); color: color-mix(in srgb, var(--vf-primary) 55%, #334155); border-bottom: 2px solid color-mix(in srgb, var(--vf-primary) 28%, #fff); }
.vf-table td { border-color: color-mix(in srgb, var(--vf-primary) 10%, #eef1f5); }

/* Ícones redondos/quadrados nunca achatam quando o texto ao lado é longo (celular) */
.vf-avatar, .btn-icon, .vf-thumb, .vf-li-lin .n { flex: none; }
table.vf-parcelas { --bs-table-bg: transparent; }
/* Visualização da venda no celular: ações em grade, cliente em linhas e lista de itens ocupando a largura */
@media (max-width: 575.98px) {
  .vf-acoes-doc { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; gap: .5rem !important; }
  .vf-acoes-doc > * { width: 100%; min-width: 0; justify-content: center; }
  .vf-acoes-doc .btn { white-space: normal; text-align: center; line-height: 1.2; }
  .vf-acoes-doc > .btn-group, .vf-acoes-doc > .btn-success, .vf-acoes-doc > *:only-child, .vf-acoes-doc > .vf-larga { grid-column: 1 / -1; }
  .vf-acoes-doc .btn { justify-content: center; padding: .6rem .7rem; }
  .vf-acoes-doc .btn-group .btn:first-child { flex: 1 1 auto; }
  .vf-acoes-doc .btn-group .dropdown-toggle-split { flex: 0 0 2.8rem; }
  .vf-cli-doc { align-items: flex-start !important; padding: .7rem !important; }
  .vf-cli-doc .vf-cli-linhas span { display: block; }
  .vf-cli-doc .vf-cli-linhas .sep { display: none; }
  .vf-venda-doc > .card-body { padding: .9rem; }
  .vf-venda-doc .vf-li { margin-left: -.9rem; margin-right: -.9rem; border-left: 0; border-right: 0; border-radius: 0; }
  /* parcelas da venda: cada parcela vira um cartão */
  .vf-parcelas-box { overflow: visible; }
  table.vf-parcelas { border: 0; padding: 0; display: block; }
  table.vf-parcelas thead { display: none; }
  table.vf-parcelas tbody { display: grid; gap: .5rem; }
  table.vf-parcelas tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem .75rem; border: 1px solid var(--vf-border); border-radius: 12px; padding: .65rem .75rem; background: #fff; }
  table.vf-parcelas td { border: 0; padding: 0; display: block; }
  table.vf-parcelas .pc-n { font-weight: 700; font-size: .95rem; }
  table.vf-parcelas .pc-n::before { content: 'Parcela '; font-weight: 500; color: var(--vf-muted); }
  table.vf-parcelas .pc-t { font-weight: 800; font-size: 1rem; grid-column: 2; grid-row: 1; }
  table.vf-parcelas .pc-v, table.vf-parcelas .pc-f { grid-column: 1 / -1; color: #475569; }
  table.vf-parcelas .pc-v::before, table.vf-parcelas .pc-f::before { content: attr(data-rot) ': '; color: var(--vf-muted); }
  table.vf-parcelas .pc-s { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .35rem; }
  table.vf-parcelas .pc-s .btn { margin: 0 !important; padding: .4rem .9rem !important; }
  table.vf-parcelas .pc-c { grid-column: 1 / -1; white-space: normal !important; margin-top: .3rem; }
}

/* ---------- Sininho de avisos (topo) ---------- */
.vf-sino .btn-icon { font-size: 1.12rem; }
.vf-sino-n { position: absolute; top: 1px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ef4444; color: #fff; font-size: .66rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; line-height: 1; }
.vf-sino-menu { width: 360px; max-width: calc(100vw - 20px); overflow: hidden; }
.vf-sino-topo { display: flex; align-items: center; gap: .5rem; padding: .85rem 1rem; font-weight: 700; border-bottom: 1px solid var(--vf-border); }
.vf-sino-topo .badge { background: var(--vf-primary); }
.vf-sino-vazio { padding: 1.6rem 1rem; text-align: center; color: var(--vf-muted, #64748b); font-size: .92rem; }
.vf-sino-vazio i { display: block; font-size: 1.8rem; color: #10b981; margin-bottom: .35rem; }
.vf-aviso { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; text-decoration: none; color: inherit; border-bottom: 1px solid var(--vf-border); transition: background .15s; }
.vf-aviso:last-child { border-bottom: 0; }
.vf-aviso:hover { background: rgba(100,116,139,.08); color: inherit; }
.vf-aviso .ic { --c: #64748b; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.05rem; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.vf-aviso .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.vf-aviso .tx b { font-size: .9rem; font-weight: 600; }
.vf-aviso .tx small { color: var(--vf-muted, #64748b); font-size: .78rem; }
.vf-aviso .seta { color: #cbd5e1; font-size: .8rem; }
.vf-aviso-verde .ic { --c: #059669; } .vf-aviso-teal .ic { --c: #0d9488; } .vf-aviso-vermelho .ic { --c: #dc2626; } .vf-aviso-laranja .ic { --c: #ea580c; }
.vf-aviso-ambar .ic { --c: #d97706; } .vf-aviso-roxo .ic { --c: #7c3aed; } .vf-aviso-azul .ic { --c: #2563eb; }
@media (max-width: 575.98px) { .vf-sino-menu { position: fixed !important; inset: var(--vf-topbar-h) 10px auto 10px !important; transform: none !important; width: auto; } }

/* ---------- Botão de entrega nas listagens (cor pela etapa) ---------- */
.btn-icon.en-warning { color: #d97706; background: rgba(217,119,6,.1); }
.btn-icon.en-info { color: #0d9488; background: rgba(13,148,136,.1); }
.btn-icon.en-primary { color: #2563eb; background: rgba(37,99,235,.1); }
.btn-icon.en-success { color: #059669; background: rgba(5,150,105,.1); }
.btn-icon.en-secondary { color: #64748b; background: rgba(100,116,139,.12); }

/* ---------- Avisos: marcar como lido ---------- */
.vf-sino-topo { gap: .4rem; }
.vf-sino-topo .badge { margin-right: .2rem; }
.vf-aviso .lido { border: 0; background: transparent; color: #b7c0cc; border-radius: 8px; padding: .15rem .35rem; font-size: 1rem; line-height: 1; opacity: 0; transition: opacity .12s, color .12s, background .12s; }
.vf-aviso:hover .lido, .vf-aviso:focus-within .lido { opacity: 1; }
.vf-aviso .lido:hover { color: #059669; background: rgba(5,150,105,.12); }
@media (hover: none) { .vf-aviso .lido { opacity: 1; } }

/* ---- OrganizeZap ---- */
.vf-oz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.vf-oz-card { overflow: hidden; }
.vf-oz-thumb { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16/10; background: var(--vf-cinza-claro, #f1f3f7); color: var(--vf-primary, #2458e6); font-size: 2.2rem; text-decoration: none; }
.vf-oz-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vf-oz-dir { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .75rem; color: #fff; }
.vf-oz-dir.in { background: #1a9e55; }
.vf-oz-dir.out { background: #6c757d; }
@media (max-width: 575px) { .vf-oz-grid { grid-template-columns: repeat(2, 1fr); } }
.vf-oz-pastas { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.vf-oz-pasta:hover { border-color: var(--vf-primary, #2458e6); }
@media (max-width: 575px) { .vf-oz-pastas { grid-template-columns: 1fr 1fr; } }
.vf-oz-explorer { display: grid; grid-template-columns: 270px 1fr; min-height: 420px; }
.vf-oz-tree { border-right: 1px solid #e5e8ef; padding: 4px; overflow: auto; max-height: 72vh; }
.vf-oz-ul { list-style: none; margin: 0; padding-left: 14px; }
#ozArvore > .vf-oz-ul { padding-left: 2px; }
.vf-oz-no { display: flex; align-items: center; gap: 5px; padding: 4px 6px; border-radius: 7px; cursor: pointer; font-size: .86rem; white-space: nowrap; }
.vf-oz-no:hover { background: #f1f3f9; }
.vf-oz-no.ativo { background: color-mix(in srgb, var(--vf-primary, #2458e6) 12%, #fff); font-weight: 600; }
.vf-oz-seta { width: 18px; min-width: 18px; border: 0; background: none; padding: 0; color: #8a93a3; font-size: .7rem; }
.vf-oz-main { min-width: 0; }
@media (max-width: 767px) {
    .vf-oz-explorer { grid-template-columns: 1fr; }
    .vf-oz-tree { border-right: 0; border-bottom: 1px solid #e5e8ef; max-height: 200px; }
}

/* ---- OrganizeZap app próprio (PWA) ---- */
body.vf-oz-app { background: #f4f6fb; }
.vf-oz-topo { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 8px; background: #fff; border-bottom: 2px solid #0d3b22; padding: 8px 14px; padding-top: calc(8px + env(safe-area-inset-top)); }
.vf-oz-corpo { padding: 14px; max-width: 1500px; margin: 0 auto; }
@media (max-width: 575px) { .vf-oz-corpo { padding: 10px; } }
/* filtros: colapsáveis no celular */
.vf-oz-filtros { display: contents; }
@media (max-width: 767px) {
    .vf-oz-filtros { display: none; width: 100%; }
    .vf-oz-filtros.aberto { display: flex; flex-wrap: wrap; gap: 8px; }
    .vf-oz-filtros .form-select, .vf-oz-filtros input[type=date] { flex: 1 1 46%; width: auto !important; }
}
/* KPIs compactos no celular */
@media (max-width: 767px) {
    body.vf-oz-app .vf-fin-kpis, .vf-oz-kpis-mob .vf-fin-kpis { grid-template-columns: 1fr 1fr; gap: .5rem; }
    body.vf-oz-app .vf-fin-kpi b { font-size: 1rem; }
}
body.vf-oz-app .vf-oz-logo-tela { display: none !important; }
/* ações do card: nunca cortar os ícones */
.vf-oz-card .p-2 .d-flex { flex-wrap: wrap; }
.vf-oz-card .btn-icon.btn-sm { padding: .1rem .28rem; font-size: .85rem; }
@media (max-width: 575px) { .vf-oz-card .btn-icon.btn-sm { padding: .1rem .22rem; } }

/* ---- v87: visualizador de PDF (pdf.js) do OrganizeZap ---- */
.vf-oz-pdf { max-height: 78vh; overflow-y: auto; background: #e9ecef; border-radius: 8px; padding: 8px 4px; -webkit-overflow-scrolling: touch; }
.vf-oz-pdf canvas { display: block; margin: 0 auto 8px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18); border-radius: 2px; max-width: 100%; }
@media (max-width: 576px) { .vf-oz-pdf { max-height: 72vh; } #mOzVer .modal-dialog { margin: .35rem; } }

/* ---- v87: tela publica de assinatura de documento ---- */
.vf-ass-viewer { background: #e9ecef; border-radius: 8px; padding: 6px 4px; }
.vf-ass-pagina { position: relative; width: fit-content; margin: 0 auto; cursor: crosshair; }
.vf-ass-pagina canvas { display: block; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18); border-radius: 2px; max-width: 100%; }
.vf-ass-marca { position: absolute; transform: translate(-50%, -50%); background: rgba(26,166,75,.92); color: #fff; font-size: .72rem; padding: 4px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.vf-ass-marca::after { content: ''; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: rgba(26,166,75,.92); }
.vf-ass-pager .btn { width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 1.05rem; box-shadow: 0 2px 6px rgba(26,166,75,.35); }
.vf-ass-pager .btn:disabled { opacity: .35; box-shadow: none; }
