/*
 * Velvet Maison — identidade visual do painel.
 * As cores principais (primary, gray, success…) vêm de AdminPanelProvider::colors();
 * este arquivo cuida apenas do que as variáveis do Filament não alcançam.
 * Publicado em public/css/app/ por `php artisan filament:assets`.
 */
:root {
    /* Paleta outono-suave da marca (ver docs/PALETA_DE_CORES.md) */
    --vm-wood: #4b3526;          /* marrom madeira fechado: títulos e acentos quentes */
    --vm-khaki: #8f8957;         /* dark-khaki: em andamento / a receber */
    --vm-aged-gold: #a88338;     /* ouro envelhecido: destaque e atenção */
    --vm-burgundy: #6e1f34;      /* bordô: negativo, atraso, cancelado, destrutivo */
    --vm-beige: #efe6d6;         /* beige: fundos de destaque */
    --vm-dark-grey: #2f2d2a;     /* dark grey no lugar do preto */
    --vm-chocolate: #3f2f23;
    --vm-walnut: #1e2d4d;
    --vm-taupe: #e7e0d3;
    --vm-offwhite: #faf8f4;
    --vm-gold: #6e1f34;
    --vm-olive: #6b7a45;
    --vm-serif: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
}

/* Fundo geral */
.fi-body {
    background-color: var(--vm-offwhite);
}

/* Títulos com serifa, discretos */
.fi-header-heading,
.fi-simple-header-heading,
.fi-section-header-heading,
.fi-modal-heading {
    font-family: var(--vm-serif);
    letter-spacing: 0.01em;
    color: var(--vm-chocolate);
}

.fi-header-heading {
    font-size: 1.875rem;
    font-weight: 600;
}

/* Marca (logotipo oficial): ícone dentro do sistema, logotipo completo no login */
.velvet-brand { display: inline-flex; align-items: center; }
.velvet-brand__icon { height: 3rem; width: auto; max-height: none; }
.velvet-brand__full { display: none; height: 6.5rem; width: auto; margin: 0.5rem auto 0; }
.fi-simple-layout .velvet-brand__icon { display: none; }
.fi-simple-layout .velvet-brand__full { display: block; }

/* Barra superior e lateral */
.fi-topbar > nav,
.fi-sidebar {
    background-color: #fffdfa;
}

.fi-sidebar-item-active > .fi-sidebar-item-button,
.fi-sidebar-item.fi-active > .fi-sidebar-item-button {
    box-shadow: inset 3px 0 0 var(--vm-gold);
}


.fi-section-header-heading {
    font-size: 1.25rem;
    font-weight: 600;
}

.fi-fo-field-wrp-label {
    color: var(--vm-walnut);
}

/* Login */
.fi-simple-layout {
    background:
        radial-gradient(ellipse at top, #fffdfa 0%, var(--vm-offwhite) 45%, var(--vm-taupe) 100%);
}

.fi-simple-main {
    border-radius: 1rem;
    border-top: 3px solid var(--vm-gold);
    background-color: #fffdfa;
    box-shadow: 0 10px 30px rgb(47 45 42 / 0.12);
}

.fi-simple-header-heading {
    font-size: 1.5rem;
    font-weight: 600;
}

/* ---------- Calendário da agenda ---------- */
/* A página não rola: topo do sistema, barra de controles e dias da semana ficam fixos; só a grade de horas rola. */
.vm-cal { display: flex; flex-direction: column; gap: 0.75rem; height: calc(100dvh - 8.25rem); min-height: 26rem; }
.vm-cal__bar { flex: none; display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; justify-content: space-between; align-items: center; background: #fff; border: 1px solid #ece5d8; border-top: 3px solid #a88338; border-radius: 1rem; padding: 0.65rem 1rem; box-shadow: 0 1px 3px rgb(47 45 42 / 0.06); }
.vm-cal__nav, .vm-cal__controls { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.vm-cal__label { font-family: var(--vm-serif); font-size: 1.4rem; font-weight: 600; color: var(--vm-chocolate); margin-left: 0.4rem; letter-spacing: 0.01em; }
.vm-cal__empty { flex: none; text-align: center; color: #7d7164; font-size: 0.875rem; }
.vm-cal__today { border: 1px solid #e3dccf; border-radius: 9999px; padding: 0.3rem 0.9rem; font-size: 0.8125rem; font-weight: 600; color: var(--vm-walnut); background: #fff; transition: background 0.15s, border-color 0.15s; }
.vm-cal__today:hover { border-color: var(--vm-walnut); background: #faf8f4; }

.vm-seg { display: inline-flex; gap: 0.35rem; }
.vm-seg__btn { padding: 0.3rem 0.85rem; font-size: 0.8125rem; font-weight: 500; color: #62574c; background: #fff; border: 1px solid #e3dccf; border-radius: 9999px; transition: all 0.15s; }
.vm-seg__btn:hover { border-color: var(--vm-walnut); color: var(--vm-walnut); }
.vm-seg__btn.is-active { background: var(--vm-walnut); border-color: var(--vm-walnut); color: #fff; box-shadow: 0 3px 8px rgb(30 45 77 / 0.25); }
.vm-check { display: inline-flex; gap: 0.35rem; align-items: center; font-size: 0.8125rem; color: #62574c; }

.vm-legend { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; font-size: 0.75rem; color: #7d7164; padding-top: 0.45rem; border-top: 1px solid #f1ece2; }
.vm-legend__item { display: inline-flex; align-items: center; gap: 0.35rem; }
.vm-dot { width: 0.6rem; height: 0.6rem; border-radius: 9999px; display: inline-block; }

/* Cores por status (as mesmas do Painel de Controle): exceção à paleta da marca, para diferenciar rapidamente na agenda */
.vm-ev--scheduled { --s: #34466f; --bg: #e9ecf4; }
.vm-ev--confirmed { --s: #6b7a45; --bg: #eef1e0; }
.vm-ev--completed { --s: #7a6552; --bg: #efe8de; }
.vm-ev--no_show { --s: #a88338; --bg: #f6efdc; }
.vm-ev--cancelled { --s: #8a2a44; --bg: #f4e6e8; }
.vm-ev--cancelled strong, .vm-ev--cancelled span { text-decoration: line-through; opacity: 0.75; }
.vm-ev--block { --s: #b9ad97; --bg: #f1eee8; background-image: repeating-linear-gradient(135deg, transparent, transparent 5px, rgb(0 0 0 / 0.035) 5px, rgb(0 0 0 / 0.035) 10px); color: #6b6256 !important; }
.vm-dot[class*="vm-ev--"], .vm-pip, .vm-swatch { background: var(--s); }
.vm-pip { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 9999px; margin-right: 0.35rem; vertical-align: middle; }
.vm-swatch { width: 0.9rem; height: 0.9rem; border-radius: 9999px; display: inline-block; flex: none; }

.vm-grid-wrap { flex: 1; min-height: 0; overflow: auto; border: 1px solid #ece5d8; border-radius: 1rem; background: #fff; box-shadow: 0 1px 3px rgb(47 45 42 / 0.06); scrollbar-width: thin; scrollbar-color: #d9d0bf transparent; }
.vm-grid { --head-h: 3.4rem; display: grid; grid-template-columns: 3.75rem repeat(var(--cols), minmax(8rem, 1fr)); min-width: min-content; position: relative; }
.vm-grid__corner, .vm-grid__allday-label { position: sticky; top: 0; left: 0; z-index: 6; background: #fff; border-bottom: 1px solid #ece5d8; }
.vm-grid__allday-label { top: var(--head-h); z-index: 5; font-size: 0.625rem; color: #b3a793; padding: 0.3rem 0.4rem; text-align: right; text-transform: uppercase; letter-spacing: 0.04em; }
.vm-grid__head { position: sticky; top: 0; z-index: 4; height: var(--head-h); background: #fff; border-bottom: 1px solid #ece5d8; border-left: 1px solid #f1ece2; display: flex; align-items: center; justify-content: center; gap: 0.5rem; font: inherit; color: #4d443b; }
button.vm-grid__head { cursor: pointer; transition: background 0.15s; }
button.vm-grid__head:hover { background: #faf8f4; }
button.vm-grid__head:hover .vm-gh__dow { color: var(--vm-walnut); }
.vm-gh__num { min-width: 2rem; height: 2rem; padding: 0 0.3rem; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; font-weight: 600; color: var(--vm-chocolate); }
.vm-gh__dow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: #9a8f80; font-weight: 600; }
.vm-grid__head.is-today .vm-gh__num { background: var(--vm-walnut); color: #fff; box-shadow: 0 3px 8px rgb(30 45 77 / 0.3); }
.vm-grid__head.is-today .vm-gh__dow { color: var(--vm-walnut); }
.vm-grid__head--pro { flex-direction: column; gap: 0; font-weight: 600; font-size: 0.875rem; }
.vm-grid__head--pro small { font-weight: 400; color: #9a8f80; }
.vm-grid__allday { position: sticky; top: var(--head-h); z-index: 3; background: #fff; border-bottom: 1px solid #ece5d8; border-left: 1px solid #f1ece2; min-height: 1.6rem; padding: 2px; display: flex; flex-direction: column; gap: 2px; }
.vm-grid__hours { position: sticky; left: 0; z-index: 2; background: #fff; }
.vm-hour { position: relative; }
.vm-hour span { position: absolute; top: -0.5rem; right: 0.5rem; font-size: 0.6875rem; color: #a79a8a; background: #fff; padding: 0 2px; font-variant-numeric: tabular-nums; }
.vm-col { position: relative; border-left: 1px solid #f1ece2; }
.vm-col.is-today { background: #fdfbf6; }
.vm-slot { position: absolute; left: 0; right: 0; border-top: 1px solid #f6f2ea; display: block; }
.vm-slot.is-hour { border-top-color: #ece5d8; }
a.vm-slot { cursor: cell; }
a.vm-slot:hover { background: rgb(30 45 77 / 0.05); }
.vm-evwrap { position: absolute; z-index: 2; }
.vm-event { position: absolute; inset: 0; z-index: 2; overflow: hidden; background-color: var(--bg); border: 1px solid color-mix(in srgb, var(--s) 22%, transparent); border-left: 3px solid var(--s); border-radius: 0.5rem; padding: 0.2rem 0.45rem; font-size: 0.75rem; line-height: 1.2; display: flex; flex-direction: column; color: #2f2d2a; transition: box-shadow 0.15s, transform 0.15s; }
a.vm-event:hover, .vm-evwrap:hover .vm-event { box-shadow: 0 4px 12px rgb(47 45 42 / 0.14); }
.vm-event strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vm-event span, .vm-event small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #5d5547; }
.vm-now { position: absolute; left: 0; right: 0; height: 2px; background: #8a2a44; z-index: 4; pointer-events: none; }
.vm-now::before { content: ''; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 9999px; background: #8a2a44; }

.vm-month { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(6.5rem, 1fr); border: 1px solid #ece5d8; border-radius: 1rem; background: #fff; box-shadow: 0 1px 3px rgb(47 45 42 / 0.06); }
.vm-month__head { position: sticky; top: 0; z-index: 2; background: #fff; padding: 0.55rem; text-align: center; font-size: 0.72rem; font-weight: 600; color: #9a8f80; text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 1px solid #ece5d8; grid-row: 1; }
.vm-month__cell { padding: 0.3rem; border-top: 1px solid #f1ece2; border-left: 1px solid #f1ece2; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vm-month__cell.is-out { background: #fcfaf6; }
.vm-month__cell.is-out .vm-month__num { color: #c4baa8; }
.vm-month__cell.is-today { background: #fdfbf6; }
.vm-month__num { align-self: flex-end; min-width: 1.6rem; height: 1.6rem; display: inline-flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 600; color: #4d443b; border-radius: 9999px; }
.vm-month__num:hover { background: #f1ece2; }
.vm-month__cell.is-today .vm-month__num { background: var(--vm-walnut); color: #fff; }
.vm-chip { display: block; width: 100%; text-align: left; background-color: var(--bg); border-left: 3px solid var(--s); border-radius: 0.35rem; padding: 0.05rem 0.4rem; font-size: 0.6875rem; color: #2f2d2a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vm-more { font-size: 0.6875rem; color: var(--vm-walnut); text-align: left; padding: 0 4px; font-weight: 600; }
@media (max-width: 640px) { .vm-month__cell { min-height: 4.5rem; } .vm-chip b { display: none; } }
@media (max-width: 1023px) { .vm-cal { height: auto; } .vm-grid-wrap { max-height: 70dvh; } }

/* Cartão que abre ao pausar o mouse sobre o agendamento (~2 s) */
.vm-hcard { position: fixed; z-index: 45; width: 19rem; max-width: calc(100vw - 16px); background: #fff; border: 1px solid #ece5d8; border-top: 3px solid #a88338; border-radius: 1rem; box-shadow: 0 18px 44px rgb(47 45 42 / 0.22); padding: 0.9rem 1rem; color: #2f2d2a; font-size: 0.8125rem; line-height: 1.3; }
@media (hover: none) { .vm-hcard { display: none !important; } }

/* Painel de detalhes e popover rápido da agenda */
[x-cloak] { display: none !important; }
.vm-pop__head { display: flex; gap: 0.6rem; align-items: center; margin-bottom: 0.5rem; }
.vm-pop__head b { display: block; font-family: var(--vm-serif); font-size: 1.1rem; }
.vm-pop__head small { color: #7d7164; }
.vm-pop__row { display: flex; align-items: center; gap: 0.5rem; padding: 0.2rem 0; }
.vm-pop__row--muted { color: #7d7164; padding-left: 1.9rem; }
.vm-pop__row--warn { color: #6f5a2e; background: #f2ece0; border-radius: 0.4rem; padding: 0.25rem 0.5rem; }
.vm-pop__avatar { width: 1.5rem; height: 1.5rem; border-radius: 9999px; background: #e6dfd5; color: #1e2d4d; font-weight: 600; font-size: 0.7rem; display: inline-flex; align-items: center; justify-content: center; object-fit: cover; flex: none; }
.vm-pop__wa { margin-left: auto; color: var(--vm-olive); }
.vm-pop__money { margin-left: auto; font-weight: 600; }
.vm-pop__actions { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
.vm-btn { flex: 1; text-align: center; padding: 0.4rem 0.6rem; border-radius: 0.5rem; background: #f3efe7; color: #2f2d2a; font-weight: 600; }
.vm-btn--primary { background: var(--vm-walnut); color: #fff; }
.vm-btn:hover { filter: brightness(0.96); }

.vm-btn--wa { display: block; width: 100%; margin-top: 0.4rem; background: #e3e9d5; color: #3a4224; }

/* Login: o logotipo completo define a altura (o Filament fixa a altura do ícone do painel) */
.fi-simple-layout .fi-logo { height: auto !important; margin-bottom: 1.25rem; justify-content: center; }
.fi-simple-layout .velvet-brand__full { margin-top: 0.75rem; height: 5.5rem; }

/* Botão "+" flutuante com atalhos */
.vm-fab { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 35; display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem; }
.vm-fab__main { width: 3.5rem; height: 3.5rem; border-radius: 9999px; background: var(--vm-walnut); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgb(47 45 42 / 0.3); transition: transform 0.2s ease, background 0.2s ease; }
.vm-fab__main:hover { background: #17243f; }
.vm-fab__main.is-open { transform: rotate(45deg); background: var(--vm-gold); }
.vm-fab__list { display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; }
.vm-fab__item { display: flex; align-items: center; gap: 0.6rem; }
.vm-fab__label { background: #2f2d2a; color: #fff; font-size: 0.8125rem; padding: 0.35rem 0.7rem; border-radius: 0.5rem; white-space: nowrap; box-shadow: 0 4px 12px rgb(47 45 42 / 0.25); }
.vm-fab__circle { width: 2.75rem; height: 2.75rem; border-radius: 9999px; background: #fffdfa; color: var(--vm-walnut); border: 1px solid #e7e0d3; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgb(47 45 42 / 0.18); transition: background 0.15s ease, color 0.15s ease; }
.vm-fab__item:hover .vm-fab__circle { background: var(--vm-walnut); color: #fff; }
@media print { .vm-fab { display: none; } }

.vm-files { display: flex; flex-direction: column; gap: 0.35rem; }
.vm-files a { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--vm-walnut); text-decoration: underline; }

/* ---------- Visão geral da agenda ---------- */
.vm-ov { display: flex; flex-direction: column; gap: 1rem; }
.vm-ov__kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.vm-ov__row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1rem; }
.vm-ov__rank { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.vm-card { background: #fffdfa; border: 1px solid #e7e0d3; border-radius: 0.9rem; padding: 1rem 1.1rem; box-shadow: 0 1px 2px rgb(47 45 42 / 0.06); display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.vm-card h3 { font-family: var(--vm-serif); font-size: 1.15rem; font-weight: 600; color: var(--vm-chocolate); }
.vm-card__head { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; justify-content: space-between; }
.vm-card__head .vm-link { margin-left: auto; }
.vm-muted { color: #807461; font-size: 0.75rem; }
.vm-link { color: var(--vm-walnut); font-size: 0.8125rem; text-decoration: underline; }
.vm-kpi { font-size: 2rem; font-weight: 600; color: #211e19; line-height: 1.1; }
.vm-badge { font-family: inherit; font-size: 0.65rem; font-weight: 500; background: #f3efe7; color: #625848; border-radius: 9999px; padding: 0.1rem 0.5rem; vertical-align: middle; }
.vm-delta { font-family: inherit; font-size: 0.8rem; font-weight: 600; margin-left: 0.5rem; }
.vm-delta.is-good { color: #697740; } .vm-delta.is-bad { color: #8a2a44; }
.vm-empty { color: #807461; font-size: 0.875rem; padding: 0.75rem 0; }

.vm-bars { display: flex; flex-direction: column; gap: 0.5rem; }
.vm-bars li { display: grid; grid-template-columns: 8rem 1fr 2rem; gap: 0.6rem; align-items: center; font-size: 0.8125rem; }
.vm-bars__track { height: 0.6rem; background: #f3efe7; border-radius: 9999px; overflow: hidden; }
.vm-bars__track i { display: block; height: 100%; border-radius: 9999px; }
.vm-bars b { text-align: right; }

.vm-status { display: flex; flex-direction: column; gap: 0.4rem; }
.vm-status li { display: grid; grid-template-columns: 1rem 1fr 2.5rem 3rem; align-items: center; gap: 0.5rem; font-size: 0.875rem; }
.vm-status .vm-dot { width: 0.7rem; height: 0.7rem; border-radius: 9999px; }
.vm-status em { color: #807461; font-style: normal; text-align: right; }

.vm-tabs { display: inline-flex; gap: 0.25rem; }
.vm-tabs button { padding: 0.25rem 0.7rem; font-size: 0.8125rem; color: #807461; border-bottom: 2px solid transparent; }
.vm-tabs button.is-active { color: var(--vm-walnut); border-color: var(--vm-walnut); font-weight: 600; }

.vm-chart__plot { position: relative; height: 12rem; display: flex; align-items: flex-end; gap: 4px; border-bottom: 1px solid #d6cbb6; padding-top: 1.2rem; }
.vm-chart__col { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.vm-chart__col i { display: block; width: 100%; background: linear-gradient(#2d4170, #1e2d4d); border-radius: 0.3rem 0.3rem 0 0; min-height: 0; }
.vm-chart__col em { position: absolute; left: 0; right: 0; text-align: center; font-size: 0.65rem; font-style: normal; color: #fff; bottom: 0.2rem; font-weight: 600; }
.vm-chart__avg { position: absolute; left: 0; right: 0; border-top: 2px dashed #6e1f34; z-index: 2; pointer-events: none; }
.vm-chart__avg span { position: absolute; right: 0; top: -1.2rem; font-size: 0.65rem; color: #6e1f34; background: #fffdfa; padding: 0 0.3rem; }
.vm-chart__labels { display: flex; gap: 4px; }
.vm-chart__labels span { flex: 1; text-align: center; font-size: 0.65rem; color: #807461; overflow: hidden; white-space: nowrap; }

.vm-rank { display: grid; grid-template-columns: 1.8rem 1fr auto; align-items: center; gap: 0.6rem; font-size: 0.875rem; padding: 0.2rem 0; }
.vm-rank:has(> .vm-rank__name:first-child) { grid-template-columns: 1fr auto; }
.vm-rank__n { width: 1.6rem; height: 1.6rem; border-radius: 9999px; background: #f3efe7; color: #625848; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; }
.vm-rank__n.is-first { background: var(--vm-walnut); color: #fff; }
.vm-rank__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.vm-wd { display: flex; align-items: flex-end; gap: 0.5rem; height: 11rem; }
.vm-wd__col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 0.2rem; font-size: 0.75rem; color: #625848; }
.vm-wd__col i { display: block; width: 70%; background: #ad9f86; border-radius: 0.3rem 0.3rem 0 0; min-height: 2px; }
.vm-wd__col i.is-top { background: var(--vm-walnut); }

.vm-heat { display: flex; flex-direction: column; gap: 3px; font-size: 0.7rem; }
.vm-heat__row { display: grid; grid-template-columns: 2.2rem repeat(7, 1fr); gap: 3px; align-items: center; }
.vm-heat__row--head b { text-align: center; color: #625848; }
.vm-heat__row span { color: #807461; text-align: right; padding-right: 0.3rem; }
.vm-heat__row i { height: 1.35rem; border-radius: 0.25rem; background: rgb(30 45 77 / calc(0.06 + var(--a) * 0.84)); color: #fff; font-style: normal; text-align: center; line-height: 1.35rem; font-size: 0.65rem; }

.vm-off { position: absolute; left: 0; right: 0; z-index: 0; pointer-events: none; background: repeating-linear-gradient(135deg, transparent, transparent 5px, rgb(173 159 134 / 0.22) 5px, rgb(173 159 134 / 0.22) 10px); }

/* ===== Atendimentos: tela de atendimento, cartões ilustrados e leitura ===== */
.vm-att { display: grid; grid-template-columns: 17rem 1fr; gap: 0; align-items: start; border: 1px solid var(--vm-taupe); border-radius: 0.75rem; background: #fff; }
.vm-att__side { border-right: 1px solid var(--vm-taupe); background: var(--vm-offwhite); align-self: stretch; }
.vm-att__patient { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; border-bottom: 1px solid var(--vm-taupe); }
.vm-att__avatar { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 9999px; background: #e9ecf4; color: var(--vm-walnut); font-weight: 700; border: 1px solid #c2cbe0; }
.vm-att__who { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.vm-att__who strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--vm-chocolate); }
.vm-att__who span { font-size: 0.8rem; color: #625848; }
.vm-att__summary { margin-left: auto; color: #625848; }
.vm-att__menu { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.75rem; }
.vm-att__item { display: flex; align-items: center; justify-content: space-between; text-align: left; padding: 0.6rem 0.9rem; border-radius: 0.5rem; color: #4a4237; font-weight: 500; transition: background .15s; }
.vm-att__item:hover { background: #f3efe7; }
.vm-att__item.is-active { background: var(--vm-walnut); color: #fff; }
.vm-att__dot { width: 0.55rem; height: 0.55rem; border-radius: 9999px; background: var(--vm-olive); box-shadow: 0 0 0 2px #fff; }
.vm-att__main { padding: 1.25rem 1.5rem 2rem; min-width: 0; }
.vm-att__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.vm-att__head h2 { font-family: var(--vm-serif); font-size: 1.6rem; color: var(--vm-chocolate); }
.vm-att__soon { padding: 2rem; border: 1px dashed #d6cbb6; border-radius: 0.75rem; color: #625848; background: var(--vm-offwhite); }
.vm-att__form .vm-ficha > .fi-fo-component-ctn, .vm-ficha { display: flex; flex-direction: column; gap: 0; }
.vm-ficha > .fi-fo-component-ctn { gap: 0; }
.vm-ficha > .fi-fo-component-ctn > div { padding: 1.4rem 0; border-bottom: 1px solid var(--vm-taupe); }
.vm-ficha > .fi-fo-component-ctn > div:last-child { border-bottom: 0; }
.vm-ficha .fi-fo-field-wrp-label span, .vm-ficha .fi-fo-field-wrp > div > div:first-child span { font-weight: 700; font-size: 1.05rem; color: var(--vm-chocolate); }
/* Barra inferior: gruda no rodapé da janela, dentro da área de conteúdo (respeita a barra lateral recolhida). */
.vm-att__bar { grid-column: 1 / -1; position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1.5rem; background: #fff; border-top: 1px solid var(--vm-taupe); border-radius: 0 0 0.75rem 0.75rem; box-shadow: 0 -4px 14px rgba(30,45,77,.06); }
.vm-att__timer { display: flex; align-items: center; gap: 0.4rem; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.1rem; color: var(--vm-walnut); }
.vm-att__vis { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.6rem; border-radius: 9999px; background: #f3efe7; color: #4a4237; }
.vm-att__vis select { background: transparent; border: 0; font-size: 0.9rem; padding: 0.15rem 1.5rem 0.15rem 0.1rem; }
.vm-att__bar-actions { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
@media (max-width: 900px) { .vm-att { grid-template-columns: 1fr; } .vm-att__side { border-right: 0; border-bottom: 1px solid var(--vm-taupe); } .vm-att__menu { flex-direction: row; flex-wrap: wrap; } .vm-att__bar { flex-wrap: wrap; } .vm-att__main { padding: 1rem 1rem 8rem; } }

/* Escolha única (radio) com "Outro" */
.vm-radio { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.vm-radio__row { display: inline-flex; align-items: center; gap: 0.6rem; cursor: pointer; font-weight: 500; }
.vm-radio__row input[type=radio] { width: 1.25rem; height: 1.25rem; accent-color: var(--vm-walnut); }
.vm-radio__other { min-width: 12rem; border-radius: 0.5rem; border: 1px solid transparent; background: #f3efe7; padding: 0.45rem 0.75rem; }
.vm-clear { font-size: 0.8rem; color: #807461; text-decoration: underline; margin-top: 0.25rem; }

/* Cartões ilustrados */
.vm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.9rem; }
.vm-card { position: relative; cursor: pointer; display: block; }
.vm-card__input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.vm-card__body { display: flex; flex-direction: column; gap: 0.4rem; height: 100%; padding: 0.5rem; border-radius: 0.75rem; background: var(--vm-offwhite); border: 2px solid transparent; transition: border-color .15s, box-shadow .15s; }
.vm-card:hover .vm-card__body { border-color: #d6cbb6; }
.vm-card__input:checked + .vm-card__body { border-color: var(--vm-walnut); box-shadow: 0 0 0 3px rgba(30,45,77,.12); background: #fff; }
.vm-card__input:focus-visible + .vm-card__body { outline: 2px solid var(--vm-gold); outline-offset: 2px; }
.vm-card__art { display: block; background: #f1eee8; border-radius: 0.5rem; aspect-ratio: 1 / 1; overflow: hidden; }
.vm-art { width: 100%; height: 100%; display: block; }
.vm-card__label { display: flex; align-items: center; justify-content: center; gap: 0.4rem; text-align: center; font-weight: 600; font-size: 0.9rem; color: var(--vm-chocolate); min-height: 2.4rem; }
.vm-help { position: relative; z-index: 2; display: inline-flex; }
.vm-help__btn { display: inline-grid; place-items: center; width: 1.2rem; height: 1.2rem; border-radius: 9999px; border: 1.5px solid #625848; color: #625848; font-size: 0.7rem; font-weight: 700; line-height: 1; cursor: help; background: transparent; }
.vm-help__pop { position: absolute; z-index: 30; bottom: calc(100% + 0.5rem); right: -0.5rem; width: 15rem; padding: 0.6rem 0.75rem; border-radius: 0.5rem; background: var(--vm-chocolate); color: #fff; font-size: 0.8rem; font-weight: 400; text-align: left; box-shadow: 0 8px 24px rgba(0,0,0,.2); }

/* Grupos expansíveis (classificação etiológica) */
.vm-acc { display: flex; flex-direction: column; gap: 0.5rem; }
.vm-acc__item { border-radius: 0.5rem; background: var(--vm-offwhite); }
.vm-acc__head { width: 100%; display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1rem; text-align: left; font-weight: 600; color: #4a4237; }
.vm-acc__chev { margin-left: auto; transition: transform .15s; } .vm-acc__chev.is-open { transform: rotate(180deg); }
.vm-acc__dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: var(--vm-olive); }
.vm-acc__body { padding: 0 1rem 1rem; }
.vm-acc__body textarea { width: 100%; border-radius: 0.5rem; border: 1px solid #e7e0d3; padding: 0.6rem 0.75rem; background: #fff; }

/* Leitura / impressão */
.vm-muted { color: #807461; }
.vm-read { display: flex; flex-direction: column; gap: 1.25rem; }
.vm-read__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; padding: 1rem 1.25rem; border-radius: 0.75rem; background: #fff; border: 1px solid var(--vm-taupe); }
.vm-read__meta span { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: .04em; color: #807461; }
.vm-read__meta small { display: block; color: #625848; }
.vm-read__ficha { padding: 1.25rem 1.5rem; border-radius: 0.75rem; background: #fff; border: 1px solid var(--vm-taupe); }
.vm-read__ficha h2 { font-family: var(--vm-serif); font-size: 1.5rem; color: var(--vm-chocolate); margin-bottom: 0.75rem; }
.vm-read__field { padding: 0.6rem 0; border-top: 1px solid #f0ebe0; }
.vm-read__field h3 { font-size: 0.85rem; font-weight: 700; color: #625848; margin-bottom: 0.25rem; }
.vm-read__value p, .vm-read__value ul, .vm-read__value ol { margin: 0 0 .4rem; } .vm-read__value ul { list-style: disc; padding-left: 1.25rem; } .vm-read__value ol { list-style: decimal; padding-left: 1.25rem; }
.vm-read__card { display: inline-flex; flex-direction: column; align-items: center; gap: .4rem; width: 9rem; padding: .5rem; border-radius: .75rem; background: var(--vm-offwhite); text-align: center; }
.vm-read__files { display: flex; flex-wrap: wrap; gap: .5rem; } .vm-read__files img { height: 7rem; border-radius: .5rem; border: 1px solid var(--vm-taupe); }
.vm-read__note { padding: .5rem 0; border-top: 1px solid #f0ebe0; } .vm-read__note small { color: #807461; }
.vm-fichas { display: flex; flex-direction: column; gap: .75rem; }
.vm-fichas__item { border: 1px solid var(--vm-taupe); border-radius: .75rem; background: #fff; padding: .9rem 1.1rem; }
.vm-fichas__item summary { cursor: pointer; display: flex; align-items: center; gap: .75rem; }
.vm-fichas__tag { font-size: .75rem; padding: .1rem .55rem; border-radius: 9999px; background: #eaf0d9; color: #52603a; } .vm-fichas__tag--soon { background: #f3efe7; color: #807461; }
.vm-fichas__item ol { margin: .75rem 0 0 1.25rem; list-style: decimal; display: flex; flex-direction: column; gap: .3rem; } .vm-fichas__item li small { color: #807461; margin-left: .5rem; }
@media print {
    .fi-sidebar, .fi-topbar, .fi-header-actions-ctn, .vm-fab, .fi-breadcrumbs { display: none !important; }
    .fi-main { max-width: none !important; padding: 0 !important; }
    .vm-read__ficha, .vm-read__meta { break-inside: avoid; border-color: #ccc; }
}

/* Corporal: IMC, adipometria, perimetria, carrossel de silhuetas */
.vm-num { display: flex; align-items: center; border: 1px solid #d6cbb6; border-radius: 0.5rem; background: #fff; overflow: hidden; max-width: 16rem; }
.vm-num input { flex: 1; min-width: 0; border: 0; padding: 0.5rem 0.75rem; background: transparent; }
.vm-num span { padding: 0.5rem 0.75rem; background: #f3efe7; color: #625848; font-size: 0.85rem; }
.vm-imc { display: grid; grid-template-columns: 1fr; gap: 0.75rem; max-width: 24rem; }
.vm-imc__label { font-size: 0.85rem; color: #625848; margin-bottom: 0.2rem; display: block; }
.vm-imc__out strong { display: block; color: var(--vm-walnut); font-size: 1.05rem; min-height: 1.5rem; }
.vm-skin { overflow-x: auto; }
.vm-skin__proto { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.vm-skin__proto select { border: 1px solid #d6cbb6; border-radius: 0.5rem; padding: 0.5rem 2rem 0.5rem 0.75rem; background: #fff; min-width: 15rem; }
.vm-skin__hint { padding: 0.6rem 0.9rem; border-left: 3px solid var(--vm-walnut); background: var(--vm-offwhite); color: #4a4237; font-size: 0.9rem; border-radius: 0.25rem; }
.vm-skin table { border-collapse: separate; border-spacing: 0 0.5rem; min-width: 34rem; }
.vm-skin th { text-align: left; font-size: 0.85rem; color: #4a4237; padding: 0 0.5rem; }
.vm-skin td { padding: 0 0.5rem; }
.vm-skin td:first-child { font-weight: 500; white-space: nowrap; }
.vm-skin .vm-num { max-width: 8rem; }
.vm-skin__median { font-variant-numeric: tabular-nums; color: var(--vm-walnut); font-weight: 600; }
.vm-meas { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 0.75rem 2rem; }
.vm-meas label { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.vm-cards--scroll { display: flex; overflow-x: auto; gap: 0.75rem; padding-bottom: 0.5rem; scroll-snap-type: x proximity; }
.vm-cards--scroll .vm-card { flex: 0 0 8.5rem; scroll-snap-align: start; }

/* Estética facial: Baumann e lista de graus */
.vm-baum__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.75rem; }
.vm-baum select { border: 1px solid #d6cbb6; border-radius: 0.5rem; padding: 0.55rem 2rem 0.55rem 0.75rem; background: #fff; }
.vm-baum__result { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.75rem; padding: 0.55rem 0.9rem; border-left: 3px solid var(--vm-walnut); background: var(--vm-offwhite); border-radius: 0.25rem; color: #625848; }
.vm-baum__result strong { color: var(--vm-walnut); letter-spacing: 0.08em; }
.vm-rows { display: flex; flex-direction: column; gap: 0.5rem; }
.vm-rows__item { position: relative; cursor: pointer; display: block; }
.vm-rows__body { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; padding: 0.85rem 1rem; border-radius: 0.5rem; background: var(--vm-offwhite); color: #4a4237; border: 2px solid transparent; }
.vm-rows__body span:nth-child(2) { text-align: center; } .vm-rows__body span:last-child { text-align: right; }
.vm-rows__item:hover .vm-rows__body { border-color: #d6cbb6; }
.vm-card__input:checked + .vm-rows__body { background: var(--vm-walnut); color: #fff; }
.vm-card__input:focus-visible + .vm-rows__body { outline: 2px solid var(--vm-gold); outline-offset: 2px; }

/* Facial: rosácea (cartão + grau) e ajuda nas linhas */
.vm-gg { display: flex; flex-direction: column; gap: 0.5rem; }
.vm-gg .vm-card__body.is-on { border-color: var(--vm-walnut); background: #fff; box-shadow: 0 0 0 3px rgba(30,45,77,.12); }
.vm-gg select { border: 1px solid #d6cbb6; border-radius: 0.5rem; padding: 0.5rem 2rem 0.5rem 0.75rem; background: #fff; }
.vm-rows__body > span:first-child { display: inline-flex; align-items: center; gap: 0.5rem; }
.vm-rows__body .vm-help { position: relative; z-index: 2; }
.vm-card__input:checked + .vm-rows__body .vm-help__btn { border-color: #fff; color: #fff; }
.vm-help__pop--down { bottom: auto; top: calc(100% + 0.5rem); left: 0; right: auto; color: #fff; }

.vm-read__docs { list-style: disc; padding-left: 1.25rem; } .vm-read__docs a { color: var(--vm-walnut); text-decoration: underline; }

/* Injetáveis: mapa de marcações */
.vm-inj { display: grid; grid-template-columns: minmax(14rem, 20rem) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .vm-inj { grid-template-columns: 1fr; } }
.vm-inj__legend { display: flex; flex-direction: column; gap: 0.35rem; }
.vm-inj__prod { display: flex; align-items: center; gap: 0.75rem; width: 100%; padding: 0.7rem 0.9rem; border-radius: 0.5rem; text-align: left; color: #4a4237; border: 1px solid transparent; }
.vm-inj__prod:hover { background: #f3efe7; }
.vm-inj__prod.is-on { background: var(--vm-walnut); color: #fff; }
.vm-inj__name { flex: 1; font-weight: 500; }
.vm-inj__total { font-variant-numeric: tabular-nums; font-size: 0.8rem; padding: 0.1rem 0.55rem; border-radius: 9999px; background: #eef0f6; color: var(--vm-walnut); }
.vm-inj__mark { width: 0.8rem; height: 0.8rem; border-radius: 9999px; background: var(--c); flex: none; }
.vm-inj__mark--line { border-radius: 0; background: var(--c); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.vm-inj__toggle { display: flex; align-items: center; gap: 0.6rem; margin-top: 1rem; cursor: pointer; }
.vm-inj__tip { margin-top: 0.75rem; font-size: 0.8rem; color: #807461; }
.vm-inj__wrap { position: relative; border: 1px solid var(--vm-taupe); border-radius: 0.75rem; background: #fff; padding: 0.5rem; }
.vm-inj__wrap.is-fullscreen { position: fixed; inset: 0; z-index: 70; border-radius: 0; display: flex; justify-content: center; align-items: center; background: #fff; }
.vm-inj__wrap.is-fullscreen .vm-inj__stage { height: min(96vh, 96vw); width: min(96vh, 96vw); }
.vm-inj__tools { position: absolute; top: 0.9rem; right: 0.9rem; z-index: 5; display: flex; flex-direction: column; gap: 0.5rem; }
.vm-inj__tool { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 9999px; background: var(--vm-walnut); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.vm-inj__tool.is-on { background: var(--vm-gold); }
.vm-inj__stage { position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 46rem; margin: 0 auto; touch-action: none; user-select: none; cursor: crosshair; overflow: hidden; border-radius: 0.5rem; }
.vm-inj__stage.is-move { cursor: grab; }
.vm-inj__bg, .vm-inj__bg > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.vm-inj__bg img { object-fit: contain; pointer-events: none; }
.vm-inj__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.vm-inj__svg [data-id] { cursor: pointer; }
.vm-inj__pop { position: absolute; z-index: 6; display: flex; align-items: flex-end; gap: 0.5rem; padding: 0.6rem 0.75rem; border-radius: 0.5rem; background: #fff; box-shadow: 0 6px 22px rgba(0,0,0,.22); }
.vm-inj__pop label { display: flex; flex-direction: column; font-size: 0.75rem; color: #625848; gap: 0.2rem; }
.vm-inj__pop input { width: 5.5rem; border: 1px solid #d6cbb6; border-radius: 0.4rem; padding: 0.3rem 0.5rem; }
.vm-inj__del { color: var(--vm-gold); font-size: 0.85rem; text-decoration: underline; }
.vm-inj__ok { background: var(--vm-walnut); color: #fff; border-radius: 0.4rem; padding: 0.35rem 0.7rem; font-size: 0.85rem; }
.vm-inj__thumbs { display: flex; gap: 0.6rem; margin-top: 0.75rem; flex-wrap: wrap; }
.vm-inj__thumbwrap { position: relative; }
.vm-inj__thumb { position: relative; width: 4.2rem; height: 4.2rem; border-radius: 0.5rem; border: 2px solid var(--vm-taupe); background: #fff; overflow: hidden; display: block; }
.vm-inj__thumb > * { width: 100%; height: 100%; object-fit: cover; }
.vm-inj__thumb.is-on { border-color: var(--vm-walnut); }
.vm-inj__thumb--add { display: grid; place-items: center; border-style: dashed; color: #807461; font-size: 1.6rem; }
.vm-inj__thumbdel { position: absolute; top: -0.35rem; right: -0.35rem; width: 1.2rem; height: 1.2rem; border-radius: 9999px; background: var(--vm-gold); color: #fff; line-height: 1; font-size: 0.9rem; }
.vm-ficha > .fi-fo-component-ctn > div:has(.vm-inj-wrap) { padding: 0; border: 0; height: 0; overflow: hidden; }
.vm-read__inj { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1rem; margin-top: 0.5rem; }
.vm-read__inj figure { margin: 0; } .vm-read__inj figcaption { font-size: 0.8rem; color: #807461; margin-top: 0.25rem; }
.vm-inj__static { position: relative; aspect-ratio: 1 / 1; border: 1px solid var(--vm-taupe); border-radius: 0.5rem; overflow: hidden; background: #fff; }

/* Orçamento */
.vm-bud-ui { display: flex; flex-direction: column; gap: 1.5rem; }
.vm-bud-ui select, .vm-bud-ui input[type=text] { border: 1px solid #d6cbb6; border-radius: 0.5rem; padding: 0.5rem 0.7rem; background: #fff; min-width: 0; }
.vm-bud-ui__pkg select { display: block; margin-top: 0.3rem; min-width: 16rem; }
.vm-bud-ui__pkg label, .vm-bud-ui__lbl { display: block; font-size: 0.85rem; color: #625848; }
.vm-bud-ui__row { display: grid; grid-template-columns: minmax(12rem, 2.2fr) 6rem minmax(8rem, 1.2fr) minmax(9rem, 1.4fr) minmax(7rem, 1fr) 2rem; gap: 0.75rem; align-items: center; margin-bottom: 0.6rem; }
.vm-bud-ui__row--head { font-size: 0.85rem; color: #4a4237; font-weight: 600; margin-bottom: 0.3rem; }
.vm-bud-ui__line { background: #f3efe7; border-radius: 0.5rem; padding: 0.55rem 0.7rem; font-variant-numeric: tabular-nums; }
.vm-bud-ui__del { color: #807461; } .vm-bud-ui__del:hover { color: var(--vm-gold); }
.vm-bud-ui__add { color: var(--vm-walnut); font-weight: 600; padding: 0.5rem 0.25rem; text-align: left; } .vm-bud-ui__add:disabled { color: #b8ad98; cursor: not-allowed; }
.vm-bud-ui__block { border-top: 1px solid var(--vm-taupe); padding-top: 1.25rem; }
.vm-bud-ui__block h4 { font-weight: 700; color: var(--vm-chocolate); margin-bottom: 0.75rem; }
.vm-num--wide { max-width: 28rem; }
.vm-bud-ui .vm-num { max-width: none; }
.vm-bud-ui .vm-num input { border: 0; border-radius: 0; }
.vm-bud-ui .vm-num select { border: 0; border-radius: 0; background: #f3efe7; padding: 0.5rem 1.6rem 0.5rem 0.6rem; }
.vm-bud-ui__conds { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.5rem; }
.vm-bud-ui__conds li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0.9rem; border-radius: 0.5rem; background: var(--vm-offwhite); font-size: 0.9rem; }
.vm-bud-ui__acts { display: flex; gap: 0.75rem; align-items: flex-start; } .vm-bud-ui__acts button { color: var(--vm-walnut); text-decoration: underline; font-size: 0.85rem; }
.vm-bud__sum { margin: 0; } .vm-bud__sum > div { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid #f0ebe0; font-variant-numeric: tabular-nums; }
.vm-bud__tot { font-weight: 700; color: var(--vm-walnut); }
.vm-bud-ui__overlay { position: fixed; inset: 0; z-index: 80; background: rgba(20,24,40,.55); display: grid; place-items: center; padding: 1rem; overflow: auto; }
.vm-bud-ui__modal { width: min(46rem, 100%); background: #fff; border-radius: 0.9rem; box-shadow: 0 18px 60px rgba(0,0,0,.35); }
.vm-bud-ui__modal header { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--vm-taupe); }
.vm-bud-ui__modal h3 { font-family: var(--vm-serif); font-size: 1.35rem; color: var(--vm-chocolate); }
.vm-bud-ui__modal header button { font-size: 1.6rem; line-height: 1; color: #625848; }
.vm-bud-ui__mbody { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.9rem; }
.vm-bud-ui__prow { display: grid; grid-template-columns: 1fr 1.2fr 1fr 2rem; gap: 0.75rem; align-items: center; }
.vm-bud-ui__prow--head { font-size: 0.85rem; font-weight: 600; color: #4a4237; }
.vm-bud-ui__mtotal { display: flex; justify-content: space-between; padding: 0.9rem 0; border-top: 1px solid var(--vm-taupe); font-weight: 700; font-size: 1.1rem; color: var(--vm-walnut); }
.vm-bud-ui__warn { color: var(--vm-gold); font-size: 0.9rem; }
.vm-bud-ui__mfoot { text-align: center; } .vm-bud-ui__mfoot button:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 900px) { .vm-bud-ui__row { grid-template-columns: 1fr 1fr; } .vm-bud-ui__row--head { display: none; } .vm-bud-ui__prow { grid-template-columns: 1fr 1fr; } .vm-bud-ui__prow--head { display: none; } }
.vm-bud { width: 100%; border-collapse: collapse; font-size: 0.9rem; } .vm-bud th { text-align: left; font-size: 0.8rem; color: #625848; padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--vm-taupe); } .vm-bud td { padding: 0.45rem 0.5rem; border-bottom: 1px solid #f0ebe0; }
.vm-bud__n { text-align: right !important; font-variant-numeric: tabular-nums; }
.vm-bud__h { font-weight: 700; margin-top: 1rem; } .vm-bud__cond { padding-left: 1.2rem; list-style: decimal; display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.4rem; }

/* Prontuário do paciente */
.vm-pront { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 900px) { .vm-pront { grid-template-columns: 1fr; } }
.vm-pront__side { text-align: center; }
.vm-pront__avatar { width: 8rem; height: 8rem; margin: 0 auto 1rem; border-radius: 9999px; overflow: hidden; display: grid; place-items: center; background: #e9ecf4; color: var(--vm-walnut); font-size: 2.2rem; font-weight: 700; border: 1px solid #c2cbe0; }
.vm-pront__avatar img { width: 100%; height: 100%; object-fit: cover; }
.vm-pront__side h2 { font-family: var(--vm-serif); font-size: 1.5rem; color: var(--vm-chocolate); line-height: 1.2; }
.vm-pront__meta { margin-top: 0.5rem; color: #625848; font-size: 0.9rem; line-height: 1.6; }
.vm-pront__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-top: 0.75rem; } .vm-pront__tags span { background: #eef0f6; color: var(--vm-walnut); border-radius: 9999px; padding: 0.15rem 0.7rem; font-size: 0.8rem; }
.vm-pront__nav { margin-top: 1.5rem; display: flex; flex-direction: column; text-align: left; } .vm-pront__nav a { padding: 0.6rem 0.8rem; border-radius: 0.5rem; color: #4a4237; font-weight: 500; } .vm-pront__nav a.is-on { background: var(--vm-walnut); color: #fff; } .vm-pront__nav a:not(.is-on):hover { background: #f3efe7; }
.vm-pront__title { font-family: var(--vm-serif); font-size: 1.8rem; color: var(--vm-chocolate); margin-bottom: 1rem; }
.vm-pront__filters { border-top: 1px solid var(--vm-taupe); border-bottom: 1px solid var(--vm-taupe); padding: 0.75rem 0; margin-bottom: 1.25rem; }
.vm-pront__addf { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--vm-walnut); font-weight: 600; margin-right: 1rem; }
.vm-pront__fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.75rem; margin-top: 0.75rem; }
.vm-pront__fgrid label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.8rem; color: #625848; }
.vm-pront__fgrid select, .vm-pront__fgrid input { border: 1px solid #d6cbb6; border-radius: 0.5rem; padding: 0.45rem 0.6rem; background: #fff; }
.vm-pront__card { border: 1px solid var(--vm-taupe); border-radius: 0.9rem; background: #fff; margin-bottom: 1.5rem; }
.vm-pront__head { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; flex-wrap: wrap; }
.vm-pront__ttl { flex: 1 1 14rem; } .vm-pront__ttl h2 { font-family: var(--vm-serif); font-size: 1.4rem; color: var(--vm-chocolate); line-height: 1.2; } .vm-pront__ttl small { color: #807461; }
.vm-pront__pin { color: var(--vm-gold); }
.vm-pront__pro { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 9999px; background: var(--vm-walnut); color: #fff; font-weight: 600; font-size: 0.85rem; }
.vm-pront__chev { color: #625848; transition: transform .15s; } .vm-pront__chev.is-closed { transform: rotate(180deg); }
.vm-pront__body { padding: 0 1.25rem 1rem; display: flex; flex-direction: column; gap: 1rem; }
.vm-pront__body .vm-read__ficha { border: 0; padding: 0; }
.vm-pront__body .vm-read__ficha h2 { font-size: 1.25rem; }
.vm-pront__acts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding: 0.9rem 1.25rem; border-top: 1px solid var(--vm-taupe); justify-content: center; }
.vm-pront__acts > * { display: inline-flex; align-items: center; gap: 0.4rem; color: #4a4237; font-weight: 500; font-size: 0.9rem; }
.vm-pront__acts > *:hover:not(:disabled) { color: var(--vm-walnut); } .vm-pront__acts > *:disabled { opacity: .45; cursor: not-allowed; }
.vm-pront__compare { border: 2px solid var(--vm-walnut); border-radius: 0.9rem; padding: 1rem; margin-bottom: 1.5rem; background: #fff; }
.vm-pront__compare header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; } .vm-pront__compare header button { color: var(--vm-gold); text-decoration: underline; }
.vm-pront__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; } @media (max-width: 900px) { .vm-pront__cols { grid-template-columns: 1fr; } }
.vm-pront__ctitle { font-weight: 700; color: var(--vm-walnut); margin-bottom: 0.5rem; }
.vm-read__empty { color: #807461; padding: 2rem 0; }

.vm-pront--solo { grid-template-columns: 1fr; }
.vm-pront__arch { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; color: #625848; margin-right: 1rem; }
.vm-pront__ttl-n { font-size: 0.85rem; color: #807461; }
/* Cartão do paciente no menu lateral */
.vm-pcard { text-align: center; padding: 0.25rem 0 1rem; }
.vm-pcard__avatar { width: 6.5rem; height: 6.5rem; margin: 0 auto 0.75rem; border-radius: 9999px; overflow: hidden; display: grid; place-items: center; background: #e9ecf4; color: var(--vm-walnut); font-size: 1.9rem; font-weight: 700; border: 1px solid #c2cbe0; }
.vm-pcard__avatar img { width: 100%; height: 100%; object-fit: cover; }
.vm-pcard h2 { font-family: var(--vm-serif); font-size: 1.35rem; color: var(--vm-chocolate); line-height: 1.2; }
.vm-pcard p { margin-top: 0.4rem; color: #625848; font-size: 0.85rem; line-height: 1.6; }
.vm-pcard__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem; margin-top: 0.6rem; } .vm-pcard__tags span { background: #eef0f6; color: var(--vm-walnut); border-radius: 9999px; padding: 0.1rem 0.65rem; font-size: 0.75rem; }
/* Linha do tempo */
.vm-tl { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.vm-tl__day h3 { font-weight: 700; color: var(--vm-chocolate); margin-bottom: 0.6rem; text-transform: capitalize; }
.vm-tl__day ul { list-style: none; padding: 0 0 0 0.5rem; border-left: 2px solid var(--vm-taupe); display: flex; flex-direction: column; gap: 0.75rem; }
.vm-tl__ev { display: flex; gap: 0.75rem; align-items: flex-start; margin-left: -1.1rem; }
.vm-tl__ic { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 9999px; background: #fff; border: 2px solid var(--vm-taupe); color: #625848; }
.vm-tl__ev--success .vm-tl__ic { border-color: var(--vm-olive); color: var(--vm-olive); } .vm-tl__ev--danger .vm-tl__ic { border-color: var(--vm-gold); color: var(--vm-gold); } .vm-tl__ev--info .vm-tl__ic { border-color: #6a7fab; color: var(--vm-walnut); }
.vm-tl__ev small { margin-left: 0.5rem; color: #807461; } .vm-tl__ev p { color: #625848; font-size: 0.9rem; margin-top: 0.15rem; }
/* Documentos */
.vm-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1rem; }
.vm-docs__item { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.6rem; border: 1px solid var(--vm-taupe); border-radius: 0.75rem; background: #fff; }
.vm-docs__item:hover { border-color: var(--vm-walnut); }
.vm-docs__thumb { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--vm-offwhite); border-radius: 0.5rem; overflow: hidden; color: #807461; } .vm-docs__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vm-docs__item strong { font-size: 0.85rem; word-break: break-word; } .vm-docs__item small { color: #807461; }

/* ---------- Login em duas colunas: foto à esquerda, formulário à direita ---------- */
.vm-login { display: grid; grid-template-columns: 1fr; min-height: 100vh; background: var(--vm-offwhite); align-items: stretch; }
.vm-login__photo { display: none; position: relative; overflow: hidden; background: #2b2118; }
.vm-login__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 55%; }
.vm-login__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgb(22 14 8 / 0.78) 0%, rgb(22 14 8 / 0.35) 28%, rgb(22 14 8 / 0) 55%); }
.vm-login__caption { position: absolute; left: clamp(2rem, 5vw, 4.5rem); bottom: clamp(2rem, 6vh, 4rem); color: #f6efe2; }
.vm-login__tagline { font-family: var(--vm-serif); font-weight: 500; font-size: clamp(2rem, 3.2vw, 3.1rem); line-height: 1.08; color: #f6efe2; margin: 0; }
.vm-login__name { margin: 1.25rem 0 0; font-size: 0.75rem; letter-spacing: 0.4em; text-transform: uppercase; color: rgb(246 239 226 / 0.85); }

.vm-login__panel { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 1.5rem 1.5rem 1rem; background: var(--vm-offwhite); position: relative; min-height: 100vh; }
.vm-login__main.fi-simple-main { width: 100%; max-width: 28rem; margin: auto 0; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; ring: 0; --tw-ring-shadow: 0 0 #0000; }
.vm-login__footer { margin: 0.75rem 0 0; font-size: 0.75rem; color: #8a7e6e; align-self: flex-end; }

.vm-login .fi-simple-header { align-items: flex-start; }
.vm-login .fi-simple-header .fi-logo { align-self: center; margin-bottom: 0 !important; }
.vm-login .fi-simple-header { gap: 0; }
.vm-login .fi-simple-header .fi-logo { margin-bottom: 1.75rem !important; }
.vm-login .velvet-brand__full { height: 5.25rem; margin: 0 auto; }
.vm-login .fi-simple-header-heading { text-align: left; font-family: var(--vm-serif); font-size: 2.1rem; font-weight: 500; line-height: 1.1; color: #2a1d14; }
.vm-login .fi-simple-header-subheading { text-align: left; margin-top: 0.35rem; font-size: 1rem; color: #7a6f60; }
.vm-login .fi-simple-page section { row-gap: 0; }
.vm-login .fi-simple-page form { margin-top: 1.5rem; }
.vm-login .fi-fo-field-wrp-label, .vm-login .fi-fo-field-wrp-label span { font-size: 0.9375rem; }
.vm-login .fi-fo-checkbox-list, .vm-login .fi-fo-field-wrp label span { font-size: 0.9375rem; }
.vm-login form .grid { row-gap: 1.1rem; }
.vm-login .fi-fo-field-wrp-label span { color: #2a1d14; font-weight: 500; }
.vm-login .fi-input-wrp { background: #fffdfa; border-radius: 0.375rem; border: 1px solid #d3c8b6; box-shadow: none; --tw-ring-shadow: 0 0 #0000; }
.vm-login .fi-input-wrp:focus-within { border-color: #4a2f26; }
.vm-login .fi-input-wrp input { padding-block: 0.8rem; font-size: 1rem; }
.vm-login .fi-input-wrp .fi-input-wrp-suffix { border: 0; }
.vm-login .vm-login__submit { background: #4a2f26; color: #fff; border-radius: 0.375rem; padding: 0.85rem 1.25rem; font-size: 1rem; justify-content: space-between; }
.vm-login .vm-login__submit:hover { background: #3a241c; }
.vm-login .vm-login__submit .fi-btn-label { flex: 1; text-align: center; }

@media (min-width: 1024px) {
    .vm-login { grid-template-columns: 55fr 45fr; }
    .vm-login__photo { display: block; }
    .vm-login__panel { padding: 1.5rem 4rem 1rem; }
}

/* ---------- Comparar (menu e janelas) ---------- */
.vm-cmpmenu { position: relative; display: inline-flex; }
.vm-cmpmenu > button { display: inline-flex; align-items: center; gap: 0.4rem; color: #4a4237; font-weight: 500; font-size: 0.9rem; }
.vm-cmpmenu > button:hover { color: var(--vm-walnut); }
.vm-cmpmenu__list { position: absolute; bottom: calc(100% + 0.5rem); right: 0; z-index: 30; min-width: 15rem; background: #fffdfa; border: 1px solid #e7e0d3; border-radius: 0.75rem; box-shadow: 0 10px 30px rgb(47 45 42 / 0.18); padding: 0.4rem; display: flex; flex-direction: column; }
.vm-cmpmenu__list button { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.75rem; border-radius: 0.5rem; text-align: left; color: #2f2d2a; font-size: 0.9rem; font-weight: 500; }
.vm-cmpmenu__list button:hover { background: #f3efe7; }

.vm-cmp { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.vm-cmp__backdrop { position: absolute; inset: 0; background: rgb(20 18 15 / 0.55); }
.vm-cmp__box { position: relative; background: #fff; border-radius: 1rem; width: min(42rem, 100%); max-height: 92vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgb(0 0 0 / 0.3); }
.vm-cmp__box--wide { width: min(90rem, 100%); height: 92vh; }
.vm-cmp__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; border-bottom: 1px solid #e7e0d3; }
.vm-cmp__head h2 { font-size: 1.2rem; font-weight: 700; color: var(--vm-chocolate); }
.vm-cmp__head button { color: #625848; }
.vm-cmp__body { padding: 1.25rem 1.5rem 1.5rem; overflow-y: auto; }
.vm-cmp__selects { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid #e7e0d3; }
.vm-cmp__selects label { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 600; font-size: 0.9rem; color: #2f2d2a; }
.vm-cmp__selects select { border: 1px solid #d3c8b6; border-radius: 0.6rem; padding: 0.65rem 0.75rem; font-weight: 400; background: #fffdfa; }
.vm-cmp__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.vm-cmp__col { padding: 1.25rem 1.25rem 0 0; min-width: 0; }
.vm-cmp__col + .vm-cmp__col { padding: 1.25rem 0 0 1.25rem; border-left: 1px solid #e7e0d3; }
.vm-cmp__empty { padding: 1rem 0; font-size: 1.05rem; color: #2f2d2a; }
.vm-cmp__hint { color: #625848; margin-bottom: 0.75rem; font-size: 0.9rem; }
.vm-cmp__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: 0.75rem; }
.vm-cmp__thumb { position: relative; display: flex; flex-direction: column; gap: 0.25rem; border: 2px solid #e7e0d3; border-radius: 0.6rem; padding: 0.35rem; background: #fffdfa; text-align: center; font-size: 0.75rem; color: #625848; }
.vm-cmp__thumb img { width: 100%; height: 7rem; object-fit: cover; border-radius: 0.4rem; }
.vm-cmp__thumb.is-on { border-color: var(--vm-walnut); }
.vm-cmp__thumb i { position: absolute; top: 0.4rem; right: 0.4rem; width: 1.4rem; height: 1.4rem; border-radius: 9999px; background: var(--vm-walnut); color: #fff; font-style: normal; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.vm-cmp__foot { display: flex; justify-content: center; padding-top: 1.25rem; border-top: 1px solid #e7e0d3; margin-top: 1.25rem; }
.vm-cmp__go { background: var(--vm-walnut); color: #fff; font-weight: 600; padding: 0.65rem 1.6rem; border-radius: 0.6rem; }
.vm-cmp__go:disabled { background: #f0eee9; color: #a09a8e; cursor: not-allowed; }
.vm-cmp__back { color: var(--vm-walnut); text-decoration: underline; font-weight: 500; }
.vm-cmp__fig { margin: 0; padding: 0 0.75rem; text-align: center; } .vm-cmp__fig img { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 0.5rem; } .vm-cmp__fig figcaption { margin-top: 0.5rem; font-size: 0.85rem; color: #625848; }
.vm-cmp__ovl { max-width: 34rem; margin: 0 auto; }
.vm-cmp__stage { position: relative; line-height: 0; overflow: hidden; border-radius: 0.5rem; cursor: ew-resize; touch-action: none; user-select: none; background: #111; }
.vm-cmp__stage img { width: 100%; max-height: 70vh; object-fit: cover; display: block; pointer-events: none; }
.vm-cmp__stage .vm-cmp__top { position: absolute; inset: 0; height: 100%; }
.vm-cmp__bar { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: #fff; display: flex; align-items: center; justify-content: center; outline: none; }
.vm-cmp__bar b { background: #fff; color: #444; font-size: 0.6rem; line-height: 1; letter-spacing: 0.1em; padding: 0.7rem 0.3rem; border-radius: 0.3rem; box-shadow: 0 1px 4px rgb(0 0 0 / 0.4); white-space: nowrap; }
.vm-cmp__bar:focus-visible b { outline: 2px solid var(--vm-walnut); }
.vm-cmp__tag { position: absolute; top: 0; padding: 0.35rem 0.9rem; background: rgb(40 40 40 / 0.85); color: #fff; font-size: 1rem; line-height: 1.2; font-weight: 600; }
.vm-cmp__tag--l { left: 0; } .vm-cmp__tag--r { right: 0; }
.vm-cmp__cap { display: flex; justify-content: space-between; margin-top: 0.5rem; font-size: 0.85rem; color: #625848; }
@media (max-width: 900px) { .vm-cmp__selects, .vm-cmp__cols { grid-template-columns: 1fr; } .vm-cmp__col + .vm-cmp__col { border-left: 0; padding-left: 0; border-top: 1px solid #e7e0d3; } .vm-cmp__box--wide { height: auto; } }

/* Aviso no cartão do paciente: canais de comunicação desativados */
.vm-pcard__photo { position: relative; width: 6.5rem; margin: 0 auto 0.75rem; } .vm-pcard__photo .vm-pcard__avatar { margin: 0; }
.vm-pcard__warn { position: absolute; right: -0.1rem; bottom: 0.1rem; width: 2rem; height: 2rem; border-radius: 9999px; background: #fffdfa; color: #a88338; display: grid; place-items: center; box-shadow: 0 1px 4px rgb(47 45 42 / 0.25); cursor: help; outline: none; }
.vm-pcard__tip { display: none; position: absolute; z-index: 40; top: calc(100% + 0.35rem); left: 50%; transform: translateX(-35%); width: 14rem; padding: 0.6rem 0.8rem; border-radius: 0.5rem; background: var(--vm-chocolate); color: #fff; font-size: 0.8rem; line-height: 1.35; text-align: left; box-shadow: 0 8px 24px rgb(0 0 0 / 0.25); }
.vm-pcard__tip::before { content: ''; position: absolute; left: 0; right: 0; top: -0.5rem; height: 0.5rem; }
.vm-pcard__tip a { color: #fff; text-decoration: underline; margin-left: 0.2rem; }
.vm-pcard__warn:hover .vm-pcard__tip, .vm-pcard__warn:focus-within .vm-pcard__tip { display: block; }

/* ---------- Assinatura eletrônica ---------- */
.vm-sig { display: grid; grid-template-columns: 20rem 1fr; gap: 1rem; align-items: start; }
.vm-sig__side { background: #fffdfa; border: 1px solid #e7e0d3; border-radius: 0.9rem; padding: 1rem; display: flex; flex-direction: column; gap: 0.9rem; }
.vm-sig__doc { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--vm-walnut); } .vm-sig__doc strong { display: block; color: #2f2d2a; line-height: 1.3; }
.vm-sig__sechead { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; } .vm-sig__sechead h3 { font-weight: 700; } .vm-sig__sechead small { color: #807461; margin-left: 0.3rem; }
.vm-sig__list { display: flex; flex-direction: column; gap: 0.1rem; }
.vm-sig__list li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 0.5rem; align-items: center; padding: 0.55rem 0; border-top: 1px solid #f0ebe0; position: relative; }
.vm-sig__av { width: 2rem; height: 2rem; border-radius: 9999px; background: #e9ecf4; color: var(--vm-walnut); display: grid; place-items: center; font-size: 0.7rem; font-weight: 700; }
.vm-sig__who { min-width: 0; } .vm-sig__who strong { display: block; font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .vm-sig__who small { color: #807461; } .vm-sig__who em { color: #a63a57; font-style: normal; }
.vm-sig__badge { display: inline-block; font-size: 0.7rem; padding: 0.1rem 0.55rem; border-radius: 9999px; font-weight: 600; white-space: nowrap; }
.vm-sig__badge.is-off { background: #eef0f6; color: #33466f; } .vm-sig__badge.is-wait { background: #f3ecd8; color: #6f5a2e; } .vm-sig__badge.is-ok { background: #eaf0d9; color: #52603a; } .vm-sig__badge.is-bad { background: #f1e1e4; color: #6e1f34; }
.vm-sig__menu { position: relative; } .vm-sig__menu > div { position: absolute; right: 0; top: 100%; z-index: 20; background: #fff; border: 1px solid #e7e0d3; border-radius: 0.6rem; box-shadow: 0 8px 24px rgb(47 45 42 / 0.18); min-width: 9rem; padding: 0.25rem; display: flex; flex-direction: column; }
.vm-sig__menu > div button { text-align: left; padding: 0.45rem 0.6rem; border-radius: 0.4rem; font-size: 0.85rem; } .vm-sig__menu > div button:hover { background: #f3efe7; }
.vm-sig__links { border-top: 2px solid var(--vm-walnut); padding-top: 0.8rem; } .vm-sig__links h4 { font-weight: 700; } .vm-sig__links p { font-size: 0.8rem; color: #625848; margin: 0.2rem 0 0.6rem; }
.vm-sig__link { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.55rem 0; border-top: 1px solid #f0ebe0; } .vm-sig__link small { color: #52603a; } .vm-sig__link small.is-bad { color: #a63a57; }
.vm-sig__link input { width: 100%; font-size: 0.72rem; border: 1px solid #d3c8b6; border-radius: 0.4rem; padding: 0.35rem 0.5rem; background: #fff; }
.vm-sig__link div { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; font-size: 0.82rem; } .vm-sig__link button, .vm-sig__link a { color: var(--vm-walnut); text-decoration: underline; font-weight: 500; }
.vm-sig__preview { background: #fff; border: 1px solid #e7e0d3; border-radius: 0.9rem; overflow: hidden; display: flex; flex-direction: column; }
.vm-sig__preview iframe { width: 100%; height: 72vh; min-height: 28rem; border: 0; background: #f3efe7; }
.vm-sig__bar { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0.6rem 1.25rem; padding: 0.75rem 1rem; border-top: 1px solid #e7e0d3; background: #fffdfa; }
.vm-sig__dl { display: inline-flex; align-items: center; gap: 0.35rem; color: #4a4237; font-weight: 500; font-size: 0.9rem; } .vm-sig__dl:hover { color: var(--vm-walnut); }
@media (max-width: 900px) { .vm-sig { grid-template-columns: 1fr; } }
.vm-sigtab { background: #fff; border: 1px solid #e7e0d3; border-radius: 0.9rem; padding: 1rem 1.25rem; margin-bottom: 1.25rem; overflow-x: auto; }
.vm-sigtab h3 { font-weight: 700; margin-bottom: 0.6rem; } .vm-sigtab h3 small { color: #807461; font-weight: 400; margin-left: 0.4rem; }
.vm-sigtab table { width: 100%; font-size: 0.9rem; } .vm-sigtab th { text-align: left; color: #807461; font-weight: 600; padding: 0.4rem 0.6rem; border-bottom: 1px solid #e7e0d3; }
.vm-sigtab td { padding: 0.55rem 0.6rem; border-bottom: 1px solid #f0ebe0; } .vm-sigtab__acts { display: flex; gap: 0.9rem; justify-content: flex-end; } .vm-sigtab__acts a { color: var(--vm-walnut); text-decoration: underline; font-weight: 500; }
.vm-pront__acts .vm-sig__badge { margin-left: 0.35rem; }
.vm-sig__fix { font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.6rem; border-radius: 9999px; background: #6e1f34; color: #fff; white-space: nowrap; }

/* Linha do tempo da assinatura e detalhes do signatário */
.vm-sig__chev { color: #807461; transition: transform .15s; } .vm-sig__chev.is-open { transform: rotate(180deg); }
.vm-sig__list li { grid-template-columns: auto 1fr auto auto auto; }
.vm-sig__det { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 0.8rem; padding: 0.5rem 0 0.2rem; font-size: 0.8rem; }
.vm-sig__det dt { color: #807461; font-size: 0.68rem; text-transform: uppercase; letter-spacing: .04em; } .vm-sig__det dd { margin: 0; word-break: break-word; }
.vm-tl { border-top: 1px solid #e7e0d3; padding-top: 0.9rem; } .vm-tl h3 { font-weight: 700; margin-bottom: 0.6rem; }
.vm-tl ol { display: flex; flex-direction: column; }
.vm-tl__item { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 0.6rem; padding-bottom: 0.9rem; }
.vm-tl__item::before { content: ''; position: absolute; left: 0.62rem; top: 1.7rem; bottom: 0; width: 1px; background: #e7e0d3; } .vm-tl__item:last-child::before { display: none; }
.vm-tl__ico { color: var(--vm-walnut); background: #fffdfa; position: relative; z-index: 1; } .is-ok .vm-tl__ico { color: #52603a; } .is-bad .vm-tl__ico { color: #a63a57; }
.vm-tl__body strong { display: block; font-size: 0.88rem; line-height: 1.3; } .vm-tl__body small { display: block; color: #807461; font-size: 0.76rem; } .vm-tl__body em { display: block; color: #625848; font-size: 0.76rem; }
.vm-tl__body ul { margin-top: 0.3rem; padding-left: 0.2rem; font-size: 0.78rem; color: #4a4237; display: flex; flex-direction: column; gap: 0.15rem; }
.vm-sig__av { overflow: hidden; width: 2.4rem; height: 2.4rem; } .vm-sig__av img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Vendas › Visão geral ---------- */
.vm-sales { width: 100%; max-width: 88rem; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding-bottom: 5rem; }
.vm-sales__card { background: #fff; border-radius: 1rem; padding: 1.25rem; box-shadow: 0 1px 2px rgb(47 45 42 / 0.06); }
.vm-sales__card h2 { font-size: 1.1rem; font-weight: 700; color: #2f2d2a; }
.vm-sales__link { color: var(--vm-gold); text-decoration: underline; font-weight: 600; font-size: 0.9rem; }
.vm-sales__filhead { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 0.9rem; } .vm-sales__filhead small { color: #807461; } .vm-sales__filhead .vm-sales__link { margin-left: auto; }
.vm-sales__search { width: 100%; border: 1px solid #d3c8b6; border-radius: 0.7rem; padding: 0.7rem 0.9rem; background: #fffdfa; }
.vm-sales__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.vm-sales__chip { display: inline-flex; align-items: center; gap: 0.35rem; background: #f0ece3; border-radius: 0.6rem; padding: 0.35rem 0.7rem; font-size: 0.85rem; max-width: 100%; } .vm-sales__chip b { font-weight: 600; }
.vm-sales__chip button:first-child { text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: min(24rem, 70vw); } .vm-sales__chip button + button { color: #807461; }
.vm-sales__add { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.8rem; text-decoration: none; }
.vm-sales__kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.vm-sales__kpi { background: #fff; border-radius: 1rem; padding: 1rem 1.1rem; box-shadow: 0 1px 2px rgb(47 45 42 / 0.06); } .vm-sales__kpi header { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.92rem; }
.vm-sales__kpi strong { display: block; margin-top: 0.5rem; font-size: 1.45rem; font-weight: 600; color: #3a3530; }
.vm-sales__help { position: relative; display: inline-grid; place-items: center; width: 1.05rem; height: 1.05rem; border-radius: 9999px; border: 1.5px solid #807461; color: #807461; font: 700 0.65rem/1 inherit; font-style: normal; margin-left: 0.25rem; cursor: help; outline: none; }
.vm-sales__help em { display: none; position: absolute; z-index: 20; top: calc(100% + 0.4rem); left: -0.5rem; width: 13rem; padding: 0.5rem 0.7rem; background: var(--vm-chocolate); color: #fff; border-radius: 0.5rem; font: 400 0.78rem/1.35 inherit; font-style: normal; text-align: left; } .vm-sales__help:hover em, .vm-sales__help:focus em { display: block; }
.vm-sales__chg { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.85rem; font-weight: 600; } .vm-sales__arrow { display: inline-grid; place-items: center; width: 1.2rem; height: 1.2rem; border-radius: 9999px; color: #fff; }
.vm-sales__chg.is-up { color: #5f6d3a; } .vm-sales__chg.is-up .vm-sales__arrow { background: #697740; } .vm-sales__chg.is-down { color: #a63a57; } .vm-sales__chg.is-down .vm-sales__arrow { background: #a63a57; }
.vm-sales__tabs { display: flex; border-bottom: 1px solid #e7e0d3; margin: -1.25rem -1.25rem 1rem; } .vm-sales__tabs button { flex: 1; padding: 0.85rem 0.5rem; font-weight: 600; color: #807461; border-top: 3px solid transparent; } .vm-sales__tabs button.is-on { color: var(--vm-gold); border-top-color: var(--vm-gold); }
.vm-sales__chart { position: relative; margin-top: 0.5rem; } .vm-sales__chart svg { width: 100%; height: auto; display: block; }
.vm-sales__grid { stroke: #ece6da; stroke-width: 1; } .vm-sales__tick { font-size: 9px; fill: #807461; } .vm-sales__line { fill: none; stroke-width: 2; stroke-linecap: round; }
.vm-sales__tip { position: absolute; top: 0; transform: translateX(-50%); z-index: 10; background: #fff; border: 1px solid #e7e0d3; border-radius: 0.5rem; box-shadow: 0 6px 20px rgb(47 45 42 / 0.18); padding: 0.55rem 0.75rem; font-size: 0.78rem; white-space: nowrap; pointer-events: none; display: flex; flex-direction: column; gap: 0.15rem; } .vm-sales__tip strong { margin-bottom: 0.15rem; }
.vm-sales__tip i, .vm-sales__legend i { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 9999px; margin-right: 0.4rem; }
.vm-sales__legend { display: flex; justify-content: flex-end; gap: 1rem; font-size: 0.8rem; color: #4a4237; margin-top: 0.4rem; }
.vm-sales__cardhead { margin-bottom: 0.4rem; }
.vm-sales__row { display: grid; grid-template-columns: auto 1fr auto; gap: 0.8rem; align-items: center; padding: 0.7rem 0; } .vm-sales__row small, .vm-sales__rank small { display: block; color: #807461; } .vm-sales__row b, .vm-sales__rank b { font-weight: 600; }
.vm-sales__ico { display: inline-grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 0.8rem; }
.vm-sales__ico.is-orange { background: #f3eee3; color: #a88338; } .vm-sales__ico.is-red { background: #f4eaed; color: #8a2a44; } .vm-sales__ico.is-green { background: #e3f3df; color: #5f6d3a; } .vm-sales__ico.is-pink { background: #f4ebed; color: #8a2a44; } .vm-sales__ico.is-blue { background: #e9ecf3; color: #2e416b; } .vm-sales__ico.is-lilac { background: #f4eeea; color: #684731; }
.vm-sales__treemap { display: flex; height: 8.5rem; gap: 3px; border-radius: 0.6rem; overflow: hidden; } .vm-sales__treemap > div { display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 3.2rem; color: #3a3530; font-size: 0.8rem; text-align: center; padding: 0.3rem; } .vm-sales__treemap b { font-size: 1.1rem; }
.vm-sales__tlegend { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 0.8rem; font-size: 0.85rem; } .vm-sales__tlegend i { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 0.2rem; margin-right: 0.45rem; } .vm-sales__tlegend small { color: #807461; margin-left: 0.4rem; }
.vm-sales__rankhead { display: flex; gap: 0.8rem; align-items: center; padding-bottom: 0.8rem; border-bottom: 1px solid #f0ebe0; margin-bottom: 0.4rem; }
.vm-sales__rank { display: grid; grid-template-columns: auto 1fr auto; gap: 0.8rem; align-items: center; padding: 0.55rem 0; } .vm-sales__rank > div { min-width: 0; } .vm-sales__rank strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm-sales__pos { position: relative; display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 9999px; background: #eee9df; font-weight: 700; color: #4a4237; } .vm-sales__pos.is-first { background: #e4d8bf; color: #6f5a2e; } .vm-sales__pos em { position: absolute; top: -0.35rem; right: -0.3rem; color: #a88338; }
.vm-sales__empty { text-align: center; padding: 1.2rem 0.5rem; color: #807461; font-size: 0.88rem; } .vm-sales__empty b { display: block; color: #2f2d2a; font-size: 1rem; margin: 0.2rem 0; } .vm-sales__empty span { color: var(--vm-gold); display: inline-block; }
.vm-sales__sheetwrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; } .vm-sales__backdrop { position: absolute; inset: 0; background: rgb(20 18 15 / 0.5); }
.vm-sales__sheet { position: relative; width: min(30rem, 100%); max-height: 85vh; overflow-y: auto; background: #fff; border-radius: 1.2rem 1.2rem 0 0; padding: 1.1rem 1.25rem 1rem; } @media (min-width: 40rem) { .vm-sales__sheetwrap { align-items: center; } .vm-sales__sheet { border-radius: 1.2rem; } }
.vm-sales__sheet header { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.9rem; } .vm-sales__sheet h3 { font-size: 1.1rem; font-weight: 700; flex: 1; }
.vm-sales__menu li + li, .vm-sales__opts li + li { border-top: 1px solid #f0ebe0; } .vm-sales__menu button, .vm-sales__opts button { display: flex; width: 100%; align-items: center; gap: 0.75rem; padding: 0.85rem 0.2rem; text-align: left; } .vm-sales__menu button span { flex: 1; font-weight: 500; }
.vm-sales__opts { margin-top: 0.6rem; max-height: 45vh; overflow-y: auto; } .vm-sales__opts button { justify-content: space-between; } .vm-sales__opts button.is-on { color: var(--vm-gold); font-weight: 600; } .vm-sales__none { padding: 0.9rem 0.2rem; color: #807461; }
.vm-sales__period { display: flex; flex-direction: column; gap: 0.7rem; } .vm-sales__presets { display: flex; flex-wrap: wrap; gap: 0.4rem; } .vm-sales__presets button { background: #f0ece3; border-radius: 9999px; padding: 0.4rem 0.9rem; font-size: 0.85rem; font-weight: 500; }
.vm-sales__period label { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 600; font-size: 0.85rem; } .vm-sales__period input { border: 1px solid #d3c8b6; border-radius: 0.6rem; padding: 0.6rem 0.75rem; font-weight: 400; }
.vm-sales__sheet footer { margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px solid #f0ebe0; text-align: center; } .vm-sales__sheet footer button { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 600; color: #4a4237; }
.vm-sales__back { color: #4a4237; }

/* Layout responsivo: celular (1 coluna) → tablet → computador */
.vm-sales__chartscroll { overflow-x: auto; margin: 0 -0.25rem; padding: 0 0.25rem; }
.vm-sales__chart { position: relative; min-width: 34rem; }
.vm-sales__filbody { display: flex; flex-direction: column; gap: 0; }
.vm-sales__kpi strong { font-size: 1.35rem; }
.vm-sales__rankcard, .vm-sales__quotes, .vm-sales__types { align-self: stretch; }

@media (min-width: 40rem) {             /* tablet pequeno: 2 colunas */
    .vm-sales { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vm-sales__filters, .vm-sales__kpis, .vm-sales__chartcard { grid-column: 1 / -1; }
    .vm-sales__kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .vm-sales__kpi strong { font-size: 1.2rem; }
    .vm-sales__rankcard:last-of-type { grid-column: 1 / -1; }
    .vm-sales__chart { min-width: 0; }
}
@media (min-width: 64rem) {             /* iPad deitado / computador: grade de 12 colunas */
    .vm-sales { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem; }
    .vm-sales__filters { grid-column: 1 / -1; }
    .vm-sales__filbody { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
    .vm-sales__filbody .vm-sales__search { width: 20rem; flex: none; }
    .vm-sales__filbody .vm-sales__chips { margin-top: 0; flex: 1; }
    .vm-sales__filbody .vm-sales__add { margin-top: 0; }
    .vm-sales__kpis { grid-column: 1 / -1; gap: 1.5rem; }
    .vm-sales__kpi { padding: 1.25rem 1.4rem; }
    .vm-sales__kpi strong { font-size: 1.7rem; }
    .vm-sales__chartcard { grid-column: 1 / span 8; grid-row: span 2; }
    .vm-sales__quotes { grid-column: 9 / -1; }
    .vm-sales__types { grid-column: 9 / -1; }
    .vm-sales__rankcard, .vm-sales__rankcard:last-of-type { grid-column: span 4; }
    .vm-sales__chart svg { min-height: 20rem; }
    .vm-sales__treemap { height: 9rem; }
}
@media (max-width: 39.99rem) {          /* celular */
    .vm-sales { gap: 1rem; padding-bottom: 6rem; }
    .vm-sales__card { padding: 1rem; }
    .vm-sales__tabs { margin: -1rem -1rem 0.9rem; }
    .vm-sales__filhead { flex-wrap: wrap; }
    .vm-sales__chip { font-size: 0.8rem; }
    .vm-sales__legend { flex-wrap: wrap; justify-content: flex-start; }
    .vm-sales__tip { white-space: normal; max-width: 13rem; }
    .vm-sales__kpi header { font-size: 0.82rem; }
}
@media (max-width: 39.99rem) {
    .vm-sales__kpi { padding: 0.85rem 0.9rem; }
    .vm-sales__kpi strong { font-size: 1.1rem; white-space: nowrap; }
    .vm-sales__kpi header { align-items: flex-start; }
}
@media (min-width: 64rem) {
    .vm-sales__chartcard { display: flex; flex-direction: column; }
    .vm-sales__chartscroll { flex: 1; display: flex; align-items: center; }
    .vm-sales__chartscroll .vm-sales__chart { width: 100%; }
}

/* ---------- Vendas › Relatório de vendas ---------- */
.vm-rep { width: 100%; max-width: 70rem; margin: 0 auto; padding-bottom: 5rem; }
.vm-rep__card { background: #fff; border-radius: 1rem; box-shadow: 0 1px 2px rgb(47 45 42 / 0.06); }
.vm-rep__head { display: flex; align-items: baseline; gap: 0.7rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid #f0ebe0; }
.vm-rep__head h1 { font-size: 1.2rem; font-weight: 700; color: #2f2d2a; } .vm-rep__head small { color: #807461; }
.vm-rep__export { position: relative; margin-left: auto; align-self: center; } .vm-rep__export > button { width: 2.4rem; height: 2.4rem; display: inline-grid; place-items: center; border-radius: 0.6rem; color: var(--vm-walnut); } .vm-rep__export > button:hover:not(:disabled) { background: #f3efe7; } .vm-rep__export > button:disabled { background: #f0eee9; color: #b4ad9f; cursor: not-allowed; }
.vm-rep__export > div { position: absolute; right: 0; top: calc(100% + 0.3rem); z-index: 20; background: #fff; border: 1px solid #e7e0d3; border-radius: 0.6rem; box-shadow: 0 8px 24px rgb(47 45 42 / 0.18); min-width: 10rem; padding: 0.25rem; display: flex; flex-direction: column; } .vm-rep__export > div a { padding: 0.5rem 0.7rem; border-radius: 0.4rem; font-size: 0.9rem; } .vm-rep__export > div a:hover { background: #f3efe7; }
.vm-rep__bar { padding: 1rem 1.25rem; border-bottom: 1px solid #f0ebe0; } .vm-rep__bar .vm-sales__filbody { flex-direction: column; } .vm-rep__bar .vm-sales__search { max-width: 28rem; }
@media (min-width: 64rem) { .vm-rep__bar .vm-sales__filbody { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; } .vm-rep__bar .vm-sales__search { width: 22rem; } .vm-rep__bar .vm-sales__chips { margin-top: 0; } .vm-rep__bar .vm-sales__add { margin-top: 0; } }
.vm-rep__list > li + li { border-top: 1px solid #f0ebe0; } .vm-rep__list button { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; padding: 0.95rem 1.25rem; text-align: left; } .vm-rep__list button:hover { background: #f8f5ef; }
.vm-rep__main { min-width: 0; } .vm-rep__main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .vm-rep__main small { color: #807461; }
.vm-rep__side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; flex: none; } .vm-rep__side b { font-weight: 600; } .vm-rep__side em { font-style: normal; }
.vm-sig__badge.is-info { background: #e9ecf3; color: #2e416b; }
.vm-rep__empty { text-align: center; padding: 2.5rem 1rem; color: #807461; } .vm-rep__empty b { display: block; color: #2f2d2a; font-size: 1.05rem; margin: 0.4rem 0 0.2rem; } .vm-rep__empty span { display: inline-grid; place-items: center; width: 4rem; height: 4rem; border-radius: 9999px; background: #f4eeea; color: #684731; }
.vm-rep__pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 1rem 1.25rem; border-top: 1px solid #f0ebe0; }
.vm-rep__per select { border: 1px solid #d3c8b6; border-radius: 0.6rem; padding: 0.55rem 2rem 0.55rem 0.8rem; background: #fffdfa; }
.vm-rep__pages { display: flex; gap: 0.4rem; } .vm-rep__pages button { min-width: 2.4rem; height: 2.4rem; display: inline-grid; place-items: center; border-radius: 0.5rem; background: #f0ece3; font-weight: 600; } .vm-rep__pages button:disabled { opacity: .45; cursor: not-allowed; } .vm-rep__pages button.is-on { background: var(--vm-walnut); color: #fff; }
.vm-rep__total { display: flex; justify-content: space-between; align-items: baseline; padding: 1rem 1.25rem 1.25rem; border-top: 1px solid #f0ebe0; font-size: 1.05rem; } .vm-rep__total b { font-size: 1.15rem; }
.vm-rep__drawerwrap { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-end; }
.vm-rep__drawer { position: relative; width: min(64rem, 100%); background: #fff; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgb(0 0 0 / 0.2); }
.vm-rep__drawer > header { display: flex; align-items: center; gap: 0.7rem; padding: 1rem 1.25rem; border-bottom: 1px solid #f0ebe0; } .vm-rep__drawer > header h2 { font-size: 1.15rem; font-weight: 700; } .vm-rep__drawer > header button { margin-left: auto; color: #4a4237; }
.vm-rep__pill { display: inline-flex; align-items: center; gap: 0.3rem; background: #eee9df; border-radius: 9999px; padding: 0.15rem 0.7rem; font-size: 0.8rem; color: #625848; } .vm-rep__pill.is-done { background: #eaf0d9; color: #52603a; }
.vm-rep__body { flex: 1; overflow-y: auto; padding: 1.25rem; } .vm-rep__body h3 { font-size: 1.05rem; font-weight: 700; margin: 1.5rem 0 0.6rem; }
.vm-rep__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.1rem 1.5rem; } .vm-rep__facts dt { font-weight: 700; } .vm-rep__facts dd { margin: 0.15rem 0 0; color: #4a4237; } .vm-rep__facts .is-person { display: flex; gap: 0.7rem; align-items: center; } .vm-rep__facts .is-person dd { color: #807461; margin: 0; }
.vm-rep__tablewrap { overflow-x: auto; } .vm-rep__table { width: 100%; font-size: 0.88rem; border-collapse: collapse; min-width: 34rem; } .vm-rep__table th { text-align: left; font-weight: 700; padding: 0.55rem 0.5rem; white-space: nowrap; border-bottom: 1px solid #ece6da; } .vm-rep__table td { padding: 0.6rem 0.5rem; border-bottom: 1px solid #f3efe7; color: #4a4237; } .vm-rep__table .n { text-align: right; } .vm-rep__table .muted { color: #807461; text-align: center; }
.vm-rep__table:has(.vm-rep__acts) { min-width: 56rem; } .vm-rep__summary { min-width: 30rem; } .vm-rep__summary tbody th { text-align: right; font-weight: 500; color: #625848; } .vm-rep__summary tfoot td { font-weight: 700; border-bottom: 0; padding-top: 0.8rem; } .is-ok { color: #697740; } .is-info { color: #2e416b; } .is-warn { color: #a88338; }
.vm-rep__totals { margin: 1rem 0 0; border-top: 1px solid #f0ebe0; padding-top: 0.5rem; } .vm-rep__tothead { display: flex; align-items: center; gap: 0.4rem; margin-left: auto; font-weight: 600; } .vm-rep__tothead span { display: inline-flex; transition: transform .15s; } .vm-rep__tothead span.is-closed { transform: rotate(180deg); }
.vm-rep__totals dl { display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; margin-top: 0.5rem; } .vm-rep__totals dl div { display: flex; gap: 2.5rem; font-size: 0.9rem; } .vm-rep__totals dt { font-weight: 700; } .vm-rep__totals dd { min-width: 6rem; text-align: right; color: #625848; margin: 0; } .vm-rep__totals .is-total dd { color: #697740; font-weight: 700; }
.vm-rep__subtotal { font-weight: 700; margin: 0.6rem 0 1rem; }
.vm-rep__acts { position: relative; white-space: nowrap; } .vm-rep__acts > button { color: var(--vm-walnut); padding: 0.1rem; } .vm-rep__acts > div { position: absolute; right: 0; top: 100%; z-index: 20; background: #fff; border: 1px solid #e7e0d3; border-radius: 0.6rem; box-shadow: 0 8px 24px rgb(47 45 42 / 0.18); min-width: 11rem; padding: 0.25rem; display: flex; flex-direction: column; } .vm-rep__acts > div button { text-align: left; padding: 0.45rem 0.6rem; border-radius: 0.4rem; font-size: 0.85rem; } .vm-rep__acts > div button:hover:not(:disabled) { background: #f3efe7; } .vm-rep__acts > div button:disabled { color: #b4ad9f; cursor: not-allowed; }
.vm-rep__drawer > footer { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0.5rem 1.25rem; padding: 0.85rem 1.25rem; border-top: 1px solid #f0ebe0; } .vm-rep__drawer > footer button { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 500; color: #4a4237; } .vm-rep__drawer > footer button:disabled { color: #b4ad9f; cursor: not-allowed; } .vm-rep__drawer > footer .is-primary { background: var(--vm-walnut); color: #fff; padding: 0.65rem 1.4rem; border-radius: 0.6rem; font-weight: 600; }
@media (max-width: 39.99rem) { .vm-rep__head, .vm-rep__bar, .vm-rep__pager, .vm-rep__total, .vm-rep__list button { padding-left: 1rem; padding-right: 1rem; } .vm-rep__side b { font-size: 0.9rem; } .vm-rep__body { padding: 1rem; } }
@media print { body * { visibility: hidden; } .vm-drawer, .vm-drawer * { visibility: visible; } .vm-rep__drawerwrap { position: absolute; inset: 0; display: block; } .vm-rep__drawer { width: 100%; box-shadow: none; } .vm-drawer header button, .vm-drawer > footer { display: none; } .vm-rep__body { overflow: visible; } }

/* ---------- Vendas › Relatório de pacotes ---------- */
.vm-pkg { max-width: 80rem; }
.vm-pkg__tools { margin-left: auto; display: flex; gap: 0.25rem; align-self: center; } .vm-pkg__tools .vm-rep__export { margin-left: 0; }
.vm-pkg__cols { position: absolute; right: 0; top: calc(100% + 0.3rem); z-index: 20; background: #fff; border: 1px solid #e7e0d3; border-radius: 0.6rem; box-shadow: 0 8px 24px rgb(47 45 42 / 0.18); min-width: 13rem; padding: 0.5rem 0.7rem; display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.9rem; } .vm-pkg__cols label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.vm-pkg__table { width: 100%; border-collapse: collapse; font-size: 0.9rem; } .vm-pkg__table th { text-align: left; padding: 0.7rem 1rem; color: #625848; font-weight: 700; border-bottom: 1px solid #ece6da; white-space: nowrap; } .vm-pkg__table th.n, .vm-pkg__table td.n { text-align: right; } .vm-pkg__table th button { display: inline-flex; align-items: center; gap: 0.25rem; font-weight: 700; }
.vm-pkg__table td { padding: 0.8rem 1rem; border-bottom: 1px solid #f3efe7; vertical-align: middle; } .vm-pkg__table tbody tr:hover { background: #f8f5ef; } .vm-pkg__table td.is-late { color: #a63a57; font-weight: 600; }
.vm-pkg__item { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; } .vm-pkg__item strong { font-weight: 600; }
.vm-pkg__use { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; font-weight: 600; } .vm-pkg__bar { width: 3.2rem; height: 0.4rem; background: #ece6da; border-radius: 9999px; overflow: hidden; } .vm-pkg__bar i { display: block; height: 100%; background: currentColor; }
.vm-pkg__use.is-off { color: #807461; } .vm-pkg__use.is-info { color: #2e416b; } .vm-pkg__use.is-ok { color: #5f6d3a; } .vm-pkg__use.is-bad { color: #a63a57; }
.vm-pkg__wait { position: relative; display: inline-grid; place-items: center; color: #a88338; cursor: help; outline: none; } .vm-pkg__wait em { display: none; position: absolute; z-index: 20; top: calc(100% + 0.4rem); left: 0; width: 14rem; padding: 0.5rem 0.7rem; background: var(--vm-chocolate); color: #fff; border-radius: 0.5rem; font: 400 0.78rem/1.35 inherit; font-style: normal; } .vm-pkg__wait:hover em, .vm-pkg__wait:focus em { display: block; }
.vm-pkg__who { display: inline-flex; align-items: center; gap: 0.5rem; }
.vm-pkg__acts a { display: block; } .vm-rep__acts > div a { padding: 0.45rem 0.6rem; border-radius: 0.4rem; font-size: 0.85rem; } .vm-rep__acts > div a:hover { background: #f3efe7; }
.vm-pkg__sub { font-size: 0.88rem; color: #4a4237; margin-bottom: 0.8rem; }
.vm-pkg__moves { display: flex; flex-direction: column; } .vm-pkg__moves li { display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 0.8rem; padding: 0.6rem 0; border-top: 1px solid #f0ebe0; } .vm-pkg__moves small { grid-column: 1 / -1; color: #807461; } .vm-pkg__mt { font-weight: 600; } .vm-pkg__mt.is-use { color: #2e416b; } .vm-pkg__mt.is-back { color: #5f6d3a; }
@media (max-width: 47.99rem) {
    .vm-pkg__table thead { display: none; } .vm-pkg__table, .vm-pkg__table tbody { display: block; }
    .vm-pkg__table tr { display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 0.8rem; padding: 0.85rem 1rem; border-bottom: 1px solid #f0ebe0; position: relative; }
    .vm-pkg__table td { display: block; padding: 0; border: 0; font-size: 0.85rem; color: #625848; } .vm-pkg__table td[data-label]:not([data-label="Procedimento/Produto"])::before { content: attr(data-label) ': '; color: #807461; }
    .vm-pkg__table td[data-label="Procedimento/Produto"] { grid-column: 1; } .vm-pkg__table td.vm-rep__acts { grid-column: 2; grid-row: 1; text-align: right; }
    .vm-pkg__table td:not([data-label="Procedimento/Produto"]):not(.vm-rep__acts) { grid-column: 1 / -1; }
}

/* ---------- Carteira ---------- */
.vm-wal { display: flex; flex-direction: column; gap: 1.25rem; }
.vm-wal__cards { display: grid; grid-template-columns: 1fr; gap: 1rem; } @media (min-width: 48rem) { .vm-wal__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vm-wal__card { border-radius: 1rem; padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; min-height: 8.5rem; }
.vm-wal__card header { display: flex; justify-content: space-between; align-items: center; font-weight: 600; } .vm-wal__card header i { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 9999px; background: rgb(255 255 255 / 0.2); }
.vm-wal__card strong { font-size: 1.8rem; font-weight: 600; } .vm-wal__card small { letter-spacing: 0.12em; opacity: 0.85; margin-top: auto; }
.vm-wal__card.is-credit { background: linear-gradient(135deg, #1e2d4d, #33466f); color: #fff; } .vm-wal__card.is-cashback { background: linear-gradient(135deg, #52603a, #7b9444); color: #fff; }
.vm-wal__card.is-total { background: #f0ece3; color: #2f2d2a; } .vm-wal__card.is-total button { align-self: flex-start; margin-top: auto; background: #fff; border-radius: 0.6rem; padding: 0.55rem 1rem; font-weight: 600; color: var(--vm-walnut); box-shadow: 0 1px 2px rgb(47 45 42 / 0.12); }
.vm-wal__row { cursor: pointer; } .vm-wal__expbtn { display: inline-flex !important; width: auto !important; padding: 0 0.7rem; gap: 0.4rem; align-items: center; font-weight: 600; } .vm-wal__expbtn span { font-size: 0.9rem; }
.vm-wal__type { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; } .vm-wal__type.is-in, .vm-wal__table td.is-in { color: #5f6d3a; } .vm-wal__type.is-out, .vm-wal__table td.is-out { color: #a63a57; } .vm-wal__note { display: block; color: #807461; font-weight: 400; }
.vm-wal__table .vm-rep__acts > div a { display: flex; align-items: center; gap: 0.4rem; } .vm-wal__table .vm-rep__acts > div button { display: flex; align-items: center; gap: 0.4rem; width: 100%; }
.vm-rep__notes { margin-top: 1rem; font-size: 0.9rem; color: #4a4237; } .vm-rep__notes a { color: var(--vm-walnut); text-decoration: underline; margin-right: 0.2rem; }

/* ---------- Vendas › Relatório de margens ---------- */
@media (min-width: 64rem) { .vm-mar .vm-rep__bar .vm-sales__search { order: 3; margin-left: auto; } }
.vm-mar__name small { display: block; color: #807461; font-weight: 400; } .vm-mar__name { min-width: 14rem; }
.vm-mar__warn { position: relative; display: inline-block; margin-top: 0.2rem; font-size: 0.7rem; font-weight: 700; padding: 0.05rem 0.5rem; border-radius: 9999px; background: #f3eee3; color: #a88338; cursor: help; outline: none; }
.vm-mar__warn em { display: none; position: absolute; z-index: 20; top: calc(100% + 0.35rem); left: 0; width: 15rem; padding: 0.5rem 0.7rem; background: var(--vm-chocolate); color: #fff; border-radius: 0.5rem; font: 400 0.78rem/1.35 inherit; font-style: normal; white-space: normal; } .vm-mar__warn:hover em, .vm-mar__warn:focus em { display: block; }
.vm-mar__table td.is-pos b { color: #5f6d3a; } .vm-mar__table td.is-neg, .vm-mar__table td.is-neg b, .vm-mar__total b.is-neg { color: #a63a57; }
.vm-mar__note { display: flex; gap: 0.4rem; align-items: flex-start; margin: 0.75rem 1.25rem 0; font-size: 0.82rem; color: #6f5a2e; }
.vm-mar__total strong small { font-weight: 400; color: #807461; margin-left: 0.3rem; font-size: 0.8rem; }
.vm-mar__sub { padding: 0 1.25rem 1.1rem; margin-top: -0.6rem; font-size: 0.8rem; color: #807461; text-align: right; }
@media (max-width: 47.99rem) { .vm-mar__table td.n[data-label="Vendas"] { text-align: left; } .vm-mar__sub { text-align: left; padding: 0 1rem 1rem; } }

/* ---------- Vendas › Orçamentos ---------- */
.vm-qt__new { display: inline-flex; align-items: center; gap: 0.35rem; background: var(--vm-walnut); color: #fff; font-weight: 600; padding: 0.5rem 0.95rem; border-radius: 0.6rem; font-size: 0.9rem; }
.vm-qt__empty-actions { display: flex; gap: 1rem; justify-content: center; align-items: center; margin-top: 0.9rem; flex-wrap: wrap; }
.vm-qt__flag { color: #a88338; display: inline-flex; } .vm-qt__exceeded { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.78rem; background: #f3eee3; color: #6f5a2e; padding: 0.15rem 0.6rem; border-radius: 9999px; }
.vm-qt__wide { grid-column: 1 / -1; } .vm-qt__off td { opacity: 0.45; }
.vm-qt__cond { padding: 0.65rem 0.8rem; border: 1px solid #e7e0d3; border-radius: 0.6rem; background: #faf9f6; margin-bottom: 0.5rem; font-size: 0.9rem; } .vm-qt__cond.is-accepted { border-color: #7b9444; background: #f3f7e8; }
.vm-qt__warn { color: #6f5a2e; font-size: 0.85rem; margin: 0.4rem 0; } .vm-qt__partial { margin-top: 0.8rem; padding: 0.6rem 0.8rem; background: #f3ecd8; border-radius: 0.5rem; font-size: 0.85rem; color: #6f5a2e; }
.vm-qt__send { margin-top: 1.25rem; padding: 1rem; border: 1px solid #e7e0d3; border-radius: 0.8rem; background: #fffdfa; } .vm-qt__send h3 { margin-top: 0; }
.vm-qt__sendbtns { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 0.8rem 0; } .vm-qt__sendbtns a, .vm-qt__sendbtns button, .vm-qt__sendbtns span { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 1rem; border-radius: 0.6rem; border: 1px solid var(--vm-walnut); color: var(--vm-walnut); font-weight: 600; } .vm-qt__sendbtns .is-off { border-color: #d3c8b6; color: #b4ad9f; cursor: not-allowed; }
.vm-qt__send input { width: 100%; font-size: 0.78rem; border: 1px solid #d3c8b6; border-radius: 0.5rem; padding: 0.45rem 0.6rem; background: #fff; }
.vm-qt__bar { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0.5rem 1.1rem; padding: 0.85rem 1.25rem; border-top: 1px solid #f0ebe0; } .vm-qt__bar > button, .vm-qt__bar > a { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 500; color: #4a4237; } .vm-qt__bar button:disabled { color: #b4ad9f; cursor: not-allowed; }
.vm-qt__approve { position: relative; display: inline-flex; } .vm-qt__bar .is-primary { background: #52603a; color: #fff; padding: 0.6rem 1.2rem; border-radius: 0.6rem; font-weight: 600; } .vm-qt__bar .is-primary:disabled { background: #c9cfbd; color: #fff; } .vm-qt__approve .is-primary:first-child { border-radius: 0.6rem 0 0 0.6rem; } .vm-qt__approve .is-more { border-radius: 0 0.6rem 0.6rem 0; padding: 0.6rem 0.6rem; border-left: 1px solid rgb(255 255 255 / 0.35); }
.vm-qt__approve > div { position: absolute; right: 0; bottom: calc(100% + 0.4rem); background: #fff; border: 1px solid #e7e0d3; border-radius: 0.6rem; box-shadow: 0 8px 24px rgb(47 45 42 / 0.18); min-width: 14rem; padding: 0.25rem; } .vm-qt__approve > div button { display: flex; align-items: center; gap: 0.5rem; width: 100%; text-align: left; padding: 0.55rem 0.7rem; border-radius: 0.4rem; color: #a63a57; } .vm-qt__approve > div button:hover { background: #f8eef0; }
.vm-rep__table select { border: 1px solid #d3c8b6; border-radius: 0.4rem; padding: 0.15rem 0.4rem; }
@media print { .vm-qt__bar, .vm-qt__send { display: none; } }
.vm-sales__cardhead--row { display: flex; justify-content: space-between; align-items: baseline; }
.vm-rep__drawer > footer.vm-qt__bar .is-primary { background: #52603a; color: #fff; } .vm-rep__drawer > footer.vm-qt__bar .is-primary:disabled { background: #c9cfbd; }
.vm-rep__table select { min-width: 3.6rem; padding-right: 1.6rem; }
.vm-qt__linkacts { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin-top: 0.4rem; font-size: 0.85rem; } .vm-qt__linkacts button, .vm-qt__linkacts a { color: var(--vm-walnut); text-decoration: underline; font-weight: 500; }

/* Aba Orçamentos do paciente */
.vm-pq { margin-bottom: 1.25rem; } .vm-pq__row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.95rem 1.25rem; border-top: 1px solid #f0ebe0; } .vm-pq__row:hover { background: #f8f5ef; }
.vm-pq__sub { font-family: var(--vm-serif); font-size: 1.3rem; color: var(--vm-chocolate); margin: 0.5rem 0; }

/* Janelas do Filament (confirmações, formulários de ação) e avisos ficam acima dos painéis laterais de Vendas (z-index 60) */
.fi-modal .fi-modal-close-overlay, .fi-modal [role="dialog"] > .fixed.inset-0 { z-index: 90 !important; }
.fi-no { z-index: 100 !important; }

/* Financeiro › Contas financeiras */
.vm-fin__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.75rem; padding: 0.75rem 1rem; }
.vm-fin__cards > div { border: 1px solid #e7e0d3; border-radius: 0.6rem; padding: 0.7rem 0.9rem; background: #fffdfa; display: flex; flex-direction: column; gap: 0.2rem; }
.vm-fin__cards small { color: #6b6256; font-size: 0.78rem; }
.vm-fin__cards b { font-size: 1.15rem; color: var(--vm-walnut); font-variant-numeric: tabular-nums; }
.vm-fin .is-in { color: #62703c; } .vm-fin .is-out { color: #a63a57; }
.vm-fin__filters, .vm-fin__period { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0 1rem 0.75rem; align-items: center; }
.vm-fin__filters select, .vm-fin__filters input, .vm-fin__period input { border: 1px solid #d9d2c3; border-radius: 0.5rem; padding: 0.4rem 0.6rem; background: #fff; font-size: 0.875rem; }
.vm-fin__list { display: flex; flex-direction: column; gap: 0.6rem; padding: 0 1rem 1rem; }
.vm-fin__acc { display: flex; align-items: center; gap: 0.9rem; border: 1px solid #e7e0d3; border-radius: 0.7rem; padding: 0.8rem 1rem; background: #fffdfa; position: relative; flex-wrap: wrap; }
.vm-fin__acc.is-off { opacity: 0.65; }
.vm-fin__icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 9999px; background: #e9ecf4; color: var(--vm-walnut); flex: none; }
.vm-fin__main { flex: 1 1 12rem; display: flex; flex-direction: column; min-width: 0; }
.vm-fin__main small { color: #6b6256; }
.vm-fin__st { font-style: normal; color: #8a8174; } .vm-fin__st.is-on { color: #62703c; }
.vm-fin__bal { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.vm-fin__bal small { color: #6b6256; font-size: 0.75rem; } .vm-fin__bal b { font-size: 1.1rem; color: var(--vm-walnut); }
.vm-fin__note { padding: 0.5rem 1rem 1rem; color: #6b6256; font-size: 0.8rem; }
.vm-fin__cat { border: 1px solid #e7e0d3; border-radius: 0.7rem; background: #fffdfa; }
.vm-fin__catrow { display: flex; align-items: center; gap: 0.7rem; padding: 0.65rem 0.9rem; }
.vm-fin__catrow strong { flex: 1; } .vm-fin__catrow small { color: #6b6256; }
.vm-fin__chev { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 9999px; color: var(--vm-walnut); }
.vm-fin__subs { list-style: none; margin: 0; padding: 0 0.9rem 0.5rem 3rem; }
.vm-fin__subs li { display: flex; align-items: center; gap: 0.7rem; padding: 0.4rem 0; border-top: 1px solid #f0ebe0; }
.vm-fin__subs li > span { flex: 1; } .vm-fin__catrow .is-off, .vm-fin__subs .is-off { color: #9a9285; text-decoration: line-through; }
.vm-fin__tag { margin-left: 0.5rem; font-style: normal; font-size: 0.7rem; padding: 0.05rem 0.45rem; border-radius: 9999px; background: #eef0f6; color: var(--vm-walnut); }
.vm-fin__sw input { position: absolute; opacity: 0; } .vm-fin__sw { position: relative; display: inline-block; }
.vm-fin__sw span { display: block; width: 2.2rem; height: 1.25rem; border-radius: 9999px; background: #cfc8b9; position: relative; cursor: pointer; transition: background .15s; }
.vm-fin__sw span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 1rem; height: 1rem; border-radius: 9999px; background: #fff; transition: transform .15s; }
.vm-fin__sw input:checked + span { background: var(--vm-walnut); } .vm-fin__sw input:checked + span::after { transform: translateX(0.95rem); }
.vm-fin__cards--click > button { text-align: left; border: 1px solid #e7e0d3; border-radius: 0.6rem; padding: 0.7rem 0.9rem; background: #fffdfa; display: flex; flex-direction: column; gap: 0.2rem; cursor: pointer; }
.vm-fin__cards--click > button[disabled] { cursor: default; }
.vm-fin__cards--click > button.is-on { border-color: var(--vm-walnut); box-shadow: 0 0 0 3px rgba(30,45,77,.12); background: #fff; }
.vm-fin__bulk { display: flex; align-items: center; gap: 0.8rem; padding: 0.5rem 1rem; background: #eef0f6; }
.vm-fin__sub { display: block; color: #6b6256; font-size: 0.75rem; }
.vm-pkg__table tr.is-late { box-shadow: inset 3px 0 0 #a63a57; }

/* Contas a receber — visual em linhas compactas e cards em abas */
.vm-rc .vm-sales__filbody { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.vm-rc .vm-sales__filbody .vm-sales__chips { order: 1; } .vm-rc .vm-sales__filbody .vm-sales__add { order: 2; }
.vm-rc .vm-sales__filbody .vm-sales__search { order: 3; margin-left: auto; min-width: 14rem; }
.vm-rc__cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(9.5rem, 1fr); overflow-x: auto; border-top: 1px solid #ece6d8; border-bottom: 1px solid #ece6d8; }
.vm-rc__cards > button { text-align: left; padding: 0.85rem 1rem 0.7rem; background: transparent; border-bottom: 3px solid transparent; display: flex; flex-direction: column; gap: 0.3rem; cursor: pointer; transition: background .15s; }
.vm-rc__cards > button:hover:not([disabled]) { background: #f8f5ee; }
.vm-rc__cards > button[disabled] { cursor: default; }
.vm-rc__cards > button.is-on, .vm-rc__cards > button.is-total { border-bottom-color: var(--vm-walnut); background: linear-gradient(#fff, #eef0f6); }
.vm-rc__cards > button.is-total:not(.is-on) { border-bottom-color: #d0d6e5; background: transparent; }
.vm-rc__lbl { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: #3d382f; white-space: nowrap; }
.vm-rc__cards b { font-size: 1.1rem; color: #2f2d2a; font-variant-numeric: tabular-nums; }
.vm-rc__dot { width: 0.55rem; height: 0.55rem; border-radius: 9999px; display: inline-block; background: #2e416b; }
.vm-rc__dot.is-overdue { background: #8a2a44; } .vm-rc__dot.is-today { background: #a88338; } .vm-rc__dot.is-future { background: #2e416b; }
.vm-rc__dot.is-receivable { background: #8f8957; } .vm-rc__dot.is-received { background: #697740; } .vm-rc__dot.is-total { background: var(--vm-walnut); }
.vm-rc__tip { color: #9a9285; display: inline-flex; }
.vm-rc__wrap { overflow-x: auto; }
.vm-rc__table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.vm-rc__table th { text-align: left; font-weight: 600; padding: 0.85rem 0.7rem; white-space: nowrap; color: #2b2a27; }
.vm-rc__table th button { font: inherit; font-weight: 600; color: inherit; cursor: pointer; }
.vm-rc__sort { color: #b6ae9f; font-size: 0.7rem; } .vm-rc__sort.is-on { color: var(--vm-walnut); }
.vm-rc__table td { padding: 0.75rem 0.7rem; white-space: nowrap; border-top: 1px solid #f0ebe0; vertical-align: middle; }
.vm-rc__table .n { text-align: right; font-variant-numeric: tabular-nums; }
.vm-rc__table tbody tr:hover { background: #fbf9f4; }
.vm-rc__table tr.is-late > td:first-child { box-shadow: inset 3px 0 0 #8a2a44; }
.vm-rc__chk { width: 2.5rem; padding-left: 1rem !important; }
.vm-rc__chk input, .vm-rc__table input[type=checkbox] { width: 1.1rem; height: 1.1rem; border-radius: 0.3rem; accent-color: var(--vm-walnut); }
.vm-rc__desc { max-width: 22rem; }
.vm-rc__desc button { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; color: #2f2d2a; cursor: pointer; }
.vm-rc__desc button:hover { color: var(--vm-walnut); text-decoration: underline; }
.vm-rc__desc small { display: block; color: #8a8174; font-size: 0.75rem; overflow: hidden; text-overflow: ellipsis; }
.vm-rc__cat { max-width: 11rem; overflow: hidden; text-overflow: ellipsis; }
.vm-rc__m { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 0.5rem; background: #eef0f6; color: var(--vm-walnut); }
.vm-rc__clock { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 9999px; background: #f2ece0; color: #a88338; margin-right: 0.45rem; vertical-align: middle; }
.vm-rc__part { display: block; color: #8a8174; font-size: 0.72rem; }
.vm-rc__net { font-weight: 600; color: #2f2d2a; }
.vm-rc__acts { text-align: right; position: relative; }

/* Contas a receber — detalhe da parcela */
.vm-dt .vm-rep__body { padding: 0.5rem 1.6rem 1.5rem; }
.vm-dt__h { font-size: 1.15rem; font-weight: 700; color: #2f2d2a; margin: 1.3rem 0 1rem; }
.vm-dt__sep { border: 0; border-top: 1px solid #ece6d8; margin: 1.5rem -1.6rem 0; }
.vm-dt__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.1rem 1.5rem; }
.vm-dt__grid > div { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.vm-dt__grid dt { font-weight: 700; color: #2f2d2a; font-size: 0.95rem; }
.vm-dt__grid dd { color: #6b7280; font-size: 0.95rem; margin: 0; }
.vm-dt__grid .is-wide { grid-column: 1 / -1; }
.vm-dt__link { color: #684731; text-decoration: underline; font-weight: 500; }
.vm-dt__person { flex-direction: row !important; align-items: center; gap: 0.8rem !important; }
.vm-dt__person dt { font-weight: 600; } .vm-dt__person dd { color: #9ca3af; }
.vm-dt__av { flex: none; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 9999px; overflow: hidden; background: #e9ecf4; color: var(--vm-walnut); font-weight: 700; border: 2px solid #c2cbe0; }
.vm-dt__av img { width: 100%; height: 100%; object-fit: cover; }
.vm-dt__tablewrap { overflow-x: auto; margin-top: 1.4rem; }
.vm-dt__table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.vm-dt__table thead th { text-align: left; font-weight: 700; color: #2f2d2a; padding: 0.7rem 0.6rem; white-space: nowrap; border-bottom: 1px solid #ece6d8; }
.vm-dt__table td, .vm-dt__table tbody th { padding: 0.8rem 0.6rem; white-space: nowrap; color: #4b5563; border-bottom: 1px solid #f0ebe0; text-align: left; font-weight: 400; }
.vm-dt__table .n { text-align: right; font-variant-numeric: tabular-nums; }
.vm-dt__ell { max-width: 8rem; overflow: hidden; text-overflow: ellipsis; }
.vm-dt__sum { margin-left: auto; max-width: 34rem; }
.vm-dt__sum thead th { white-space: normal; text-align: right; }
.vm-dt__sum tbody th { text-align: right; color: #6b7280; }
.vm-dt__sum tfoot td { font-weight: 700; font-size: 1rem; border-bottom: 0; padding-top: 0.9rem; }
.vm-dt__sum .is-ok { color: #697740; } .vm-dt__sum .is-info { color: #2e416b; } .vm-dt__sum .is-warn { color: #a88338; }
.vm-dt footer button.is-primary[disabled] { background: #e5e7eb; color: #9ca3af; cursor: not-allowed; }
/* menu "⋮" das linhas: fixo na tela, para não ser cortado pela rolagem da tabela */
.vm-rc__menu { position: fixed !important; right: auto !important; z-index: 120; min-width: 14rem; max-height: 80vh; overflow-y: auto; background: #fff; border: 1px solid #e7e0d3; border-radius: 0.6rem; box-shadow: 0 10px 28px rgb(47 45 42 / 0.18); padding: 0.3rem; display: flex; flex-direction: column; }
.vm-rc__menu > button, .vm-rc__menu > a { text-align: left; padding: 0.5rem 0.75rem; border-radius: 0.4rem; font-size: 0.875rem; color: #2f2d2a; white-space: nowrap; display: block; }
.vm-rc__menu > button:hover, .vm-rc__menu > a:hover { background: #f1f3f8; }
.vm-rc__card { padding: 0.85rem 1rem 0.7rem; display: flex; flex-direction: column; gap: 0.3rem; border-bottom: 3px solid transparent; }
.vm-rc__card.is-total { border-bottom-color: var(--vm-walnut); background: linear-gradient(#fff, #eef0f6); }
.vm-rc__plain { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; color: #2f2d2a; }
.vm-rc__net.is-in { color: #697740; } .vm-rc__net.is-out { color: #8a2a44; }

/* Situações nas listas financeiras: cores vivas e fáceis de bater o olho (verde, vermelho, âmbar, azul) */
.vm-rc .vm-sig__badge { font-weight: 600; padding: 0.2rem 0.7rem; border-radius: 9999px; font-size: 0.8rem; }
.vm-rc .vm-sig__badge.is-ok { background: #eff2e6; color: #697740; }
.vm-rc .vm-sig__badge.is-bad { background: #f6edf0; color: #8a2a44; }
.vm-rc .vm-sig__badge.is-wait { background: #eee7d7; color: #a88338; }
.vm-rc .vm-sig__badge.is-info { background: #e7eaf2; color: #2e416b; }
.vm-rc__table tr.is-late { background: #fff8f9; }
.vm-rc__table tr.is-late > td:first-child { box-shadow: inset 4px 0 0 #8a2a44; }
.vm-rc__table tr.is-late:hover { background: #fff1f3; }

/* Fluxo de caixa */
.vm-fin__nav { display: flex; align-items: center; gap: 0.5rem; } .vm-fin__nav button:not(.vm-sales__link) { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 9999px; color: var(--vm-walnut); } .vm-fin__nav button:not(.vm-sales__link):hover { background: #eef0f6; }
.vm-flow { padding: 0.5rem 1rem 1rem; }
.vm-flow__plot { position: relative; margin-left: 3.6rem; height: 15rem; }
.vm-flow__plot svg { width: 100%; height: 100%; display: block; overflow: visible; }
.vm-flow__y { position: absolute; left: -3.6rem; top: 0; bottom: 0; width: 3.3rem; } .vm-flow__y span { position: absolute; right: 0.2rem; transform: translateY(-50%); font-size: 0.72rem; color: #6b7280; white-space: nowrap; }
.vm-flow__grid { stroke: #ece6d8; stroke-width: 1; vector-effect: non-scaling-stroke; } .vm-flow__zero { stroke: #cfc7b6; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.vm-flow__in { fill: #697740; } .vm-flow__out { fill: #8a2a44; } .vm-flow__in.is-forecast { fill: #697740; } .vm-flow__out.is-forecast { fill: #e4cdd3; }
.vm-flow__line { stroke: #2e416b; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; fill: none; } .vm-flow__line.is-forecast { stroke: #2e416b; stroke-dasharray: 5 4; }
.vm-flow__dot { fill: #2e416b; vector-effect: non-scaling-stroke; }
.vm-flow__x { display: flex; margin-left: 3.6rem; margin-top: 0.4rem; } .vm-flow__x span { flex: 1 1 0; min-width: 0; text-align: center; font-size: 0.72rem; color: #6b7280; white-space: nowrap; overflow: hidden; }
.vm-flow__x.is-rot { height: 3.2rem; } .vm-flow__x.is-rot span { transform: rotate(-45deg); transform-origin: 100% 0; text-align: right; overflow: visible; margin-top: 0.2rem; }
.vm-flow__legend { display: flex; gap: 1.1rem; justify-content: center; flex-wrap: wrap; font-size: 0.8rem; color: #4b5563; margin-top: 0.6rem; } .vm-flow__legend i { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 0.15rem; margin-right: 0.35rem; }
.vm-flow__legend .is-in { background: #697740; } .vm-flow__legend .is-out { background: #8a2a44; } .vm-flow__legend .is-line { background: #2e416b; height: 0.2rem; vertical-align: middle; width: 0.9rem; }
.vm-flow__legend .is-in.is-forecast { background: #697740; } .vm-flow__legend .is-out.is-forecast { background: #e4cdd3; } .vm-flow__legend .is-line.is-forecast { background: #2e416b; }
.vm-flow__general { padding: 0 1rem 0.5rem; display: flex; gap: 0.8rem; align-items: center; position: relative; flex-wrap: wrap; } .vm-flow__general small { color: #8a8174; }
.vm-flow__genbox { position: absolute; top: 2rem; left: 1rem; z-index: 50; background: #fff; border: 1px solid #e7e0d3; border-radius: 0.6rem; box-shadow: 0 10px 28px rgb(47 45 42 / 0.18); padding: 0.8rem 1rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; }
.vm-flow__genbox label { display: flex; gap: 0.5rem; align-items: center; cursor: pointer; }
.vm-flow__table tfoot th, .vm-flow__table tfoot td { border-top: 2px solid #e7e0d3; padding: 0.8rem 0.7rem; font-weight: 600; text-align: left; } .vm-flow__table tfoot td.n { text-align: right; }
.vm-flow__table .is-in { color: #697740; } .vm-flow__table .is-out { color: #8a2a44; }

/* Relatório de categorias */
.vm-cat { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 1.2rem; padding: 0.5rem 1rem 1rem; }
.vm-cat__box { border: 1px solid #e7e0d3; border-radius: 0.8rem; padding: 1rem; background: #fffdfa; } .vm-cat__box h2 { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.8rem; }
.vm-cat__donut { width: 11rem; height: 11rem; border-radius: 9999px; margin: 0.5rem auto 1.2rem; position: relative; } .vm-cat__donut span { position: absolute; inset: 2.6rem; border-radius: 9999px; background: #fffdfa; }
.vm-cat__tog { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; cursor: pointer; } .vm-cat__tog i { width: 0.7rem; height: 0.7rem; border-radius: 9999px; display: inline-block; }
.vm-cat__sub td { color: #6b6256; padding-left: 2.6rem; font-size: 0.85rem; background: #fbf9f4; }

/* Visão geral */
.vm-ov__filters { background: #f4f1ea; border-radius: 0.9rem; padding: 0.4rem 0.5rem; margin-bottom: 1rem; }
.vm-ov__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.vm-ov__tile { background: #fff; border-radius: 1rem; padding: 1.2rem 1.4rem; display: flex; flex-direction: column; gap: 0.7rem; text-decoration: none; color: inherit; border: 1px solid #efe9dc; box-shadow: 0 1px 2px rgb(47 45 42 / 0.04); transition: box-shadow .15s, transform .15s; }
.vm-ov__tile:hover { box-shadow: 0 6px 18px rgb(47 45 42 / 0.1); transform: translateY(-1px); }
.vm-ov__tile strong { font-size: 1.2rem; font-weight: 700; color: #2f2d2a; } .vm-ov__tile b { font-size: 1.6rem; font-weight: 500; color: #4b5563; font-variant-numeric: tabular-nums; }
.vm-ov__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.vm-ov__box { background: #fff; border-radius: 1rem; padding: 1.3rem 1.4rem; border: 1px solid #efe9dc; box-shadow: 0 1px 2px rgb(47 45 42 / 0.04); min-width: 0; }
.vm-ov__chart { grid-column: span 2; }
.vm-ov__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.vm-ov__head h2 { font-weight: 700; font-size: 1.2rem; color: #2f2d2a; display: flex; align-items: center; gap: 0.4rem; }
.vm-ov__more { color: var(--vm-walnut); font-weight: 600; font-size: 0.9rem; } .vm-ov__more:hover { text-decoration: underline; }
.vm-ov__utabs { display: flex; gap: 1.2rem; } .vm-ov__utabs button { padding: 0.5rem 0.1rem; color: #9ca3af; font-weight: 500; cursor: pointer; border-top: 3px solid transparent; margin-top: -0.9rem; } .vm-ov__utabs button.is-on { color: var(--vm-walnut); border-top-color: var(--vm-walnut); }
.vm-ov__acc { list-style: none; margin: 0; padding: 0; } .vm-ov__acc li { display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 0; border-top: 1px solid #f0ebe0; } .vm-ov__acc li:first-child { border-top: 0; }
.vm-ov__acc li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; } .vm-ov__acc strong { font-weight: 600; color: #2f2d2a; } .vm-ov__acc small { color: #6b7280; }
.vm-ov__acc b { font-weight: 500; font-variant-numeric: tabular-nums; color: #49443f; } .vm-ov__acc b.is-out { color: #8a2a44; }
.vm-ov__sum { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #e7e0d3; margin-top: 0.4rem; padding-top: 1rem; color: #4b5563; } .vm-ov__sum b { font-size: 1.25rem; color: #2f2d2a; }
.vm-ov__rows { list-style: none; margin: 0; padding: 0; } .vm-ov__rows li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; font-size: 0.95rem; }
.vm-ov__rows a { color: #2f2d2a; } .vm-ov__rows a:hover { color: var(--vm-walnut); text-decoration: underline; } .vm-ov__rows b { font-weight: 500; font-variant-numeric: tabular-nums; } .vm-ov__rows b.is-in { color: #697740; } .vm-ov__rows b.is-out { color: #8a2a44; }
.vm-ov__seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #e5e7eb; border-radius: 0.5rem; overflow: hidden; margin-bottom: 1.2rem; } .vm-ov__seg button { padding: 0.55rem; color: #9ca3af; font-weight: 500; cursor: pointer; } .vm-ov__seg button.is-on { color: #fff; } .vm-ov__seg button.is-in { background: #697740; } .vm-ov__seg button.is-out { background: #8a2a44; }
.vm-ov__pie { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; justify-content: center; } .vm-ov__piechart { width: 11rem; height: 11rem; border-radius: 9999px; flex: none; }
.vm-ov__legend { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; display: flex; flex-direction: column; gap: 0.5rem; color: #49443f; } .vm-ov__legend i { display: inline-block; width: 0.65rem; height: 0.65rem; border-radius: 9999px; margin-right: 0.5rem; }
@media (max-width: 1100px) { .vm-ov__grid { grid-template-columns: 1fr 1fr; } .vm-ov__chart { grid-column: 1 / -1; } }
@media (max-width: 700px) { .vm-ov__grid { grid-template-columns: 1fr; } }
.vm-ov__title { font-size: 1.5rem; font-weight: 700; color: #2f2d2a; margin-bottom: 0.8rem; }

/* Pizza/rosca com dica ao passar o mouse */
.vm-pie { position: relative; } .vm-pie svg { width: 100%; height: 100%; display: block; }
.vm-ov__piechart.vm-pie { width: 11rem; height: 11rem; flex: none; } .vm-cat__pie.vm-pie { width: 11rem; height: 11rem; margin: 0.5rem auto 1.2rem; }
.vm-pie__slice { cursor: pointer; transition: opacity .12s; } .vm-pie__slice:hover { opacity: 0.82; }
.vm-pie__tip { position: absolute; z-index: 30; pointer-events: none; min-width: 11rem; background: #fff; border-radius: 0.8rem; padding: 0.8rem 1rem; box-shadow: 0 8px 26px rgb(47 45 42 / 0.18); display: flex; flex-direction: column; gap: 0.35rem; white-space: nowrap; }
.vm-pie__tip strong { font-size: 1rem; color: #2f2d2a; } .vm-pie__tip b { font-size: 1.25rem; color: #2f2d2a; } .vm-pie__tip span { display: flex; align-items: center; gap: 0.5rem; color: #4b5563; font-size: 0.9rem; } .vm-pie__tip i { width: 0.6rem; height: 0.6rem; border-radius: 0.15rem; display: inline-block; } .vm-pie__tip em { font-style: normal; }

/* Selo/logo de banco */
.vm-bank { position: relative; display: inline-grid; place-items: center; width: var(--s, 2.5rem); height: var(--s, 2.5rem); border-radius: 0.6rem; overflow: hidden; flex: none; font-size: calc(var(--s, 2.5rem) * 0.42); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06); }
.vm-bank i { width: 100%; height: 100%; display: grid; place-items: center; font-style: normal; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.vm-bank img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; box-sizing: border-box; }
.vm-bankopt { display: inline-flex; align-items: center; gap: 0.6rem; } .vm-bankopt .vm-bank { --s: 1.6rem; border-radius: 0.4rem; }

/* Visão geral — cards coloridos e listas com ícone */
.vm-ov__tile { position: relative; overflow: hidden; border-left: 6px solid var(--c); background: linear-gradient(135deg, var(--t) 0%, #fff 62%); gap: 0.35rem; }
.vm-ov__tile.is-in { --c: #697740; --t: #f4f6ee; --t2: #dee4ce; } .vm-ov__tile.is-out { --c: #8a2a44; --t: #fef2f2; --t2: #ecdce0; }
.vm-ov__tile.is-wait { --c: #2e416b; --t: #eef1f6; --t2: #d5dbe8; } .vm-ov__tile.is-due { --c: #a88338; --t: #f7f4ed; --t2: #a88338; }
.vm-ov__tile .vm-ov__ico { position: absolute; top: 1rem; right: 1rem; width: 2.9rem; height: 2.9rem; border-radius: 9999px; display: grid; place-items: center; background: var(--t2); color: var(--c); }
.vm-ov__tile strong { color: var(--c); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; }
.vm-ov__tile b { color: var(--c); font-size: 1.85rem; font-weight: 700; margin-top: 0.2rem; }
.vm-ov__tile small { color: #6b7280; font-size: 0.82rem; }
.vm-ov__tile em { font-style: normal; font-size: 0.78rem; font-weight: 600; color: var(--c); display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 0.3rem; opacity: 0.85; } .vm-ov__tile:hover em { opacity: 1; text-decoration: underline; }
.vm-ov__result { display: flex; align-items: center; gap: 0.8rem; border-radius: 0.9rem; padding: 0.8rem 1.2rem; margin-bottom: 1rem; font-weight: 600; }
.vm-ov__result.is-in { background: #f4f6ee; color: #556134; } .vm-ov__result.is-out { background: #fef2f2; color: #8a2a44; }
.vm-ov__result span { flex: 1; } .vm-ov__result small { font-weight: 400; opacity: 0.75; } .vm-ov__result b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.vm-ov__prog { margin-bottom: 0.8rem; padding: 0.8rem 1rem; border-radius: 0.8rem; background: #f8f6f1; --c: #697740; } .vm-ov__prog.is-out { --c: #8a2a44; }
.vm-ov__prog > div { display: flex; justify-content: space-between; font-size: 0.85rem; color: #4b5563; margin-bottom: 0.45rem; } .vm-ov__prog b { color: var(--c); }
.vm-ov__prog i { display: block; height: 0.6rem; border-radius: 9999px; background: #e5e7eb; overflow: hidden; } .vm-ov__prog u { display: block; height: 100%; border-radius: 9999px; background: var(--c); text-decoration: none; transition: width .4s ease; }
.vm-ov__prog small { display: block; margin-top: 0.4rem; color: #6b7280; font-size: 0.78rem; }
.vm-ov__rows li { padding: 0; } .vm-ov__rows li a { display: flex; align-items: center; gap: 0.75rem; width: 100%; padding: 0.55rem 0.5rem; border-radius: 0.7rem; text-decoration: none; transition: background .12s; --c: #2e416b; --t: #e7eaf2; }
.vm-ov__rows li a:hover { background: #f6f3ec; text-decoration: none; }
.vm-ov__rows li a.is-bad { --c: #8a2a44; --t: #f4ebee; } .vm-ov__rows li a.is-due { --c: #a88338; --t: #eee7d7; } .vm-ov__rows li a.is-wait { --c: #2e416b; --t: #e7eaf2; } .vm-ov__rows li a.is-year { --c: #2e416b; --t: #ebeef4; } .vm-ov__rows li a.is-ok { --c: #697740; --t: #eff2e6; }
.vm-ov__rico { width: 2.1rem; height: 2.1rem; border-radius: 9999px; display: grid; place-items: center; background: var(--t); color: var(--c); flex: none; }
.vm-ov__rlabel { flex: 1; color: #2f2d2a; } .vm-ov__rows li a b { color: var(--c); font-weight: 600; } .vm-ov__chev { color: #c4bcae; flex: none; }
.vm-ov__rows li a:hover .vm-ov__chev { color: var(--c); }

/* Contas a receber/pagar, extrato e competência — mais cor */
.vm-rc__hico { width: 2.4rem; height: 2.4rem; border-radius: 9999px; display: inline-grid; place-items: center; flex: none; }
.vm-rc__hico.is-in { background: #eff2e6; color: #697740; } .vm-rc__hico.is-out { background: #f4ebee; color: #8a2a44; } .vm-rc__hico.is-wait { background: #e7eaf2; color: #2e416b; }
.vm-btn-in { background: #697740 !important; color: #fff !important; border-color: #697740 !important; } .vm-btn-in:hover { background: #556134 !important; }
.vm-btn-out { background: #8a2a44 !important; color: #fff !important; border-color: #8a2a44 !important; } .vm-btn-out:hover { background: #8a2a44 !important; }
.vm-btn-wait { background: #2e416b !important; color: #fff !important; border-color: #2e416b !important; } .vm-btn-wait:hover { background: #2e416b !important; }
.vm-rc__cards > button, .vm-rc__card { --c: var(--vm-walnut); --t: #eef0f6; }
.is-c-overdue { --c: #8a2a44; --t: #fef2f2; } .is-c-today { --c: #a88338; --t: #f7f4ed; } .is-c-future { --c: #2e416b; --t: #eef1f6; }
.is-c-receivable { --c: #2e416b; --t: #f0f9ff; } .is-c-received { --c: #697740; --t: #f4f6ee; } .is-c-total { --c: var(--vm-walnut); --t: #eef0f6; }
.vm-rc__cards > button b, .vm-rc__card b { color: var(--c); }
.vm-rc__cards > button:hover:not([disabled]) { background: var(--t); }
.vm-rc__cards > button.is-on { border-bottom-color: var(--c); background: linear-gradient(#fff, var(--t)); }
.vm-rc__cards > button.is-total:not(.is-on), .vm-rc__card.is-total { border-bottom-color: var(--c); background: linear-gradient(#fff, var(--t)); }
.vm-rc__table tbody tr:hover { background: #f7f8fc; }
.vm-rc__dwrap { display: flex; align-items: center; gap: 0.7rem; }
.vm-rc__av { overflow: hidden; width: 2.1rem; height: 2.1rem; border-radius: 9999px; display: grid; place-items: center; flex: none; font-size: 0.72rem; font-weight: 700; background: hsl(var(--h) 75% 91%); color: hsl(var(--h) 55% 32%); }
.vm-rc__dtxt { min-width: 0; display: flex; flex-direction: column; }
.vm-rc__chip { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; padding: 0.15rem 0.6rem; border-radius: 9999px; background: #f1f3f8; color: #49443f; font-size: 0.78rem; }
.vm-rc__m.is-pix { background: #ebe9dc; color: #8f8957; } .vm-rc__m.is-card { background: #f6f1ee; color: #684731; } .vm-rc__m.is-boleto { background: #f3f4f6; color: #49443f; }
.vm-rc__m.is-dinheiro { background: #eff2e6; color: #556134; } .vm-rc__m.is-deposito { background: #e7eaf2; color: #2e416b; } .vm-rc__m.is-transferencia { background: #ebeef4; color: #2e416b; }
.vm-rc__av img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Conexão bancária */
.vm-bk__body { padding: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.vm-bk__status { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.9rem 1.1rem; border-radius: 0.8rem; } .vm-bk__status > div { display: flex; flex-direction: column; gap: 0.2rem; }
.vm-bk__status.is-ok { background: #f4f6ee; color: #46502b; } .vm-bk__status.is-bad { background: #f7f4ed; color: #6f5a2e; } .vm-bk__status code { background: rgb(0 0 0 / 0.07); padding: 0 0.3rem; border-radius: 0.25rem; }
.vm-bk__safe { display: flex; gap: 0.6rem; align-items: flex-start; color: #4b5563; font-size: 0.9rem; background: #f4f1ea; padding: 0.7rem 1rem; border-radius: 0.7rem; }
.vm-bk__conn { border: 1px solid #e7e0d3; border-radius: 0.9rem; overflow: hidden; } .vm-bk__conn > header { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; padding: 0.8rem 1rem; background: #fbf9f4; }
.vm-bk__conn > header > div { flex: 1; display: flex; flex-direction: column; } .vm-bk__conn small { color: #8a8174; }
.vm-bk__err { color: #8a2a44; background: #fef2f2; padding: 0.6rem 1rem; font-size: 0.875rem; }
.vm-bk select { border: 1px solid #d9d2c3; border-radius: 0.5rem; padding: 0.35rem 0.6rem; background: #fff; font-size: 0.875rem; }

/* Conciliação bancária */
.vm-rec__bar { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: flex-end; padding: 1rem; } .vm-rec__bar label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.8rem; color: #6b6256; }
.vm-rec__bar select, .vm-rec__bar input { border: 1px solid #d9d2c3; border-radius: 0.5rem; padding: 0.45rem 0.7rem; background: #fff; font-size: 0.9rem; min-width: 11rem; }
.vm-rec__warn { margin: 0 1rem 0.8rem; padding: 0.7rem 1rem; border-radius: 0.7rem; background: #f7f4ed; color: #6f5a2e; display: flex; gap: 0.5rem; align-items: center; font-size: 0.9rem; } .vm-rec__warn a { text-decoration: underline; font-weight: 600; }
.vm-rec__bal { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.8rem; padding: 0 1rem 1rem; } .vm-rec__bal > div { border: 1px solid #e7e0d3; border-radius: 0.8rem; padding: 0.7rem 1rem; display: flex; flex-direction: column; gap: 0.15rem; background: #fffdfa; }
.vm-rec__bal small { color: #6b6256; font-size: 0.78rem; } .vm-rec__bal b { font-size: 1.15rem; color: #2f2d2a; font-variant-numeric: tabular-nums; } .vm-rec__bal em { font-style: normal; color: #8a8174; font-size: 0.75rem; }
.vm-rec__bal .is-ok { background: #f4f6ee; border-color: #dee4ce; } .vm-rec__bal .is-ok b { color: #697740; } .vm-rec__bal .is-bad { background: #fef2f2; border-color: #ecdce0; } .vm-rec__bal .is-bad b { color: #8a2a44; }
.vm-rec__tabs { display: flex; gap: 0.3rem; padding: 0 1rem; border-bottom: 1px solid #ece6d8; } .vm-rec__tabs button { padding: 0.7rem 1rem; color: #6b6256; border-bottom: 3px solid transparent; cursor: pointer; font-weight: 500; } .vm-rec__tabs button.is-on { color: var(--vm-walnut); border-bottom-color: var(--vm-walnut); font-weight: 700; }
.vm-rec__tabs button span { background: #eef0f6; border-radius: 9999px; padding: 0 0.5rem; font-size: 0.75rem; margin-left: 0.3rem; }
.vm-rec__list { list-style: none; margin: 0; padding: 0.5rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.vm-rec__list > li { border: 1px solid #e7e0d3; border-radius: 0.8rem; padding: 0.8rem 1rem; background: #fffdfa; border-left: 5px solid #697740; } .vm-rec__list > li.is-out { border-left-color: #8a2a44; }
.vm-rec__main { display: flex; align-items: center; gap: 0.9rem; } .vm-rec__main strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .vm-rec__date { color: #6b6256; font-size: 0.85rem; white-space: nowrap; }
.vm-rec__main b { font-variant-numeric: tabular-nums; font-size: 1.05rem; } .vm-rec__main b.is-in { color: #697740; } .vm-rec__main b.is-out { color: #8a2a44; }
.vm-rec__sug { margin-top: 0.7rem; display: flex; flex-direction: column; gap: 0.4rem; }
.vm-rec__opt { display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0.7rem; border-radius: 0.6rem; background: #f8f6f1; } .vm-rec__opt.is-best { background: #f4f6ee; }
.vm-rec__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; } .vm-rec__txt small { color: #6b6256; }
.vm-rec__none { color: #8a8174; font-size: 0.875rem; } .vm-rec__acts { display: flex; gap: 1rem; }
.vm-rec__acts { align-items: center; flex-wrap: wrap; }

.vm-fin__early { display: flex !important; align-items: flex-start; gap: 0.35rem; color: #a88338 !important; background: #f7f4ed; border-radius: 0.5rem; padding: 0.3rem 0.5rem; margin-top: 0.3rem; font-size: 0.78rem; line-height: 1.25; }
.vm-fin__early svg { flex: none; margin-top: 0.1rem; }
.vm-ov__note { color: #8a8174; font-size: 0.78rem; margin: 0.3rem 0 0; }

.vm-bk__manual { border: 1px dashed #d9d2c3; border-radius: 0.8rem; padding: 0.7rem 1rem; } .vm-bk__manual summary { cursor: pointer; font-weight: 600; color: var(--vm-walnut); }
.vm-bk__manual form { display: flex; gap: 0.6rem; margin-top: 0.7rem; flex-wrap: wrap; } .vm-bk__manual input { flex: 1; min-width: 16rem; border: 1px solid #d9d2c3; border-radius: 0.5rem; padding: 0.45rem 0.7rem; background: #fff; }
.vm-bk__manual small { display: block; margin-top: 0.5rem; color: #8a8174; }

.vm-bk__fresh { display: flex; gap: 0.5rem; align-items: flex-start; padding: 0.6rem 1rem; background: #eef1f6; color: #2e416b; font-size: 0.85rem; }

.vm-sales__pin { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; padding: 0.8rem 1rem; border-top: 1px solid #ece6d8; } .vm-sales__pin small { color: #6b6256; font-size: 0.8rem; line-height: 1.3; }

/* ---------- Estoque: cartões de situação, miniaturas e tabela mais viva ---------- */
.vm-stk__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
@media (max-width: 640px) { .vm-stk__cards { grid-template-columns: 1fr; } }
.vm-stk__card { --tone: #1e2d4d; --tint: #eef1f8; display: flex; align-items: center; gap: 0.9rem; text-align: left; padding: 1rem 1.15rem; border-radius: 1rem; background: #fff; border: 1.5px solid #ece6db; box-shadow: 0 1px 2px rgb(47 45 42 / 0.05); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; cursor: pointer; }
.vm-stk__card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgb(47 45 42 / 0.10); }
.vm-stk__card--low { --tone: #8a2a44; --tint: #f6eef0; }
.vm-stk__card--high { --tone: #a88338; --tint: #f5f1e9; }
.vm-stk__card--all { --tone: #2e416b; --tint: #edf0f6; }
.vm-stk__card.is-on { border-color: var(--tone); background: linear-gradient(135deg, #fff 55%, var(--tint)); box-shadow: 0 6px 18px rgb(47 45 42 / 0.10); }
.vm-stk__icon { flex: none; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 0.9rem; background: var(--tint); color: var(--tone); }
.vm-stk__txt { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.vm-stk__label { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8125rem; font-weight: 600; color: #4d443b; }
.vm-stk__dot { width: 0.55rem; height: 0.55rem; border-radius: 9999px; background: var(--tone); display: inline-block; }
.vm-stk__num { font-size: 2rem; line-height: 1.1; font-weight: 700; color: var(--vm-chocolate); font-variant-numeric: tabular-nums; }

.fi-resource-estoque-itens .fi-ta-ctn { border-radius: 1rem; }
.fi-resource-estoque-itens .fi-ta-header-cell { text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.7rem; color: #7d7164; background: #faf7f1; }
.fi-resource-estoque-itens .fi-ta-row:hover { background: #f7f3ec; }
.vm-stk__thumb { border-radius: 0.7rem !important; object-fit: cover; box-shadow: 0 0 0 1px #ece6db; background: #f1ece3; }
.fi-resource-estoque-itens .fi-ta-empty-state-icon-ctn { background: #eef1f8; }

/* Estoque: caixa de foto do item (borda tracejada, fundo suave) e seções dentro de janelas sem sombra dupla */
.fi-fo-file-upload .filepond--root:not(.filepond--hopper) { margin-bottom: 0; }
.fi-fo-file-upload .filepond--panel-root { background: #faf7f1; border: 1.5px dashed #cfc2ae; border-radius: 1rem; }
.fi-fo-file-upload .filepond--drop-label { min-height: 8.5rem !important; color: #7d7164; }
.fi-fo-file-upload .filepond--drop-label label { cursor: pointer; font-size: 0.875rem; }
.fi-fo-file-upload .filepond--label-action { color: var(--vm-gold); text-decoration-color: var(--vm-gold); font-weight: 600; }
.fi-fo-file-upload .filepond--item-panel { background: #fff; border-radius: 0.9rem; }
.fi-modal-window .fi-section { box-shadow: none; border: 1px solid #ece6db; }
.fi-modal-window .fi-section-header-heading { font-size: 1.1rem; }
.vm-stk__card--ok { --tone: #697740; --tint: #e7f4e6; }
.vm-stk__card--wait { --tone: #a88338; --tint: #f5f1e9; }
.vm-stk__sub { font-size: 0.75rem; color: #7d7164; font-weight: 500; }
.vm-stk__cards--static .vm-stk__card { cursor: default; }
.vm-stk__cards--static .vm-stk__card:hover { transform: none; box-shadow: 0 1px 2px rgb(47 45 42 / 0.05); }
.fi-resource-estoque-compras .fi-ta-ctn, .fi-resource-estoque-contagem .fi-ta-ctn { border-radius: 1rem; }
.fi-resource-estoque-compras .fi-ta-header-cell, .fi-resource-estoque-contagem .fi-ta-header-cell { text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.7rem; color: #7d7164; background: #faf7f1; }
.fi-resource-estoque-compras .fi-ta-row:hover, .fi-resource-estoque-contagem .fi-ta-row:hover { background: #f7f3ec; }
.vm-stk__stack { display: inline-flex; }
.vm-stk__stack img { width: 2rem; height: 2rem; border-radius: 0.55rem; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #ece6db; background: #f1ece3; margin-left: -0.5rem; }
.vm-stk__stack img:first-child { margin-left: 0; }
.vm-stk__cards--inrep { margin: 0.25rem 1.25rem 1rem; }
.vm-stk__cards--inrep .vm-stk__num { font-size: 1.5rem; }
.vm-stk__item { display: inline-flex; align-items: center; gap: 0.7rem; }
.vm-stk__item .vm-stk__thumb { width: 2.6rem; height: 2.6rem; flex: none; border-radius: 0.7rem; object-fit: cover; box-shadow: 0 0 0 1px #ece6db; background: #f1ece3; }
.vm-stk__item > span:not(.vm-stk__av) { display: flex; flex-direction: column; }
.vm-stk__num { white-space: nowrap; }
.vm-stk__cards--inrep { grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); }
.vm-stk__cards--inrep .vm-stk__card { padding: 0.8rem 0.9rem; gap: 0.7rem; }
.vm-stk__cards--inrep .vm-stk__icon { width: 2.4rem; height: 2.4rem; }
.vm-stk__cards--inrep .vm-stk__num { font-size: 1.25rem; }

/* Estoque: avatar com iniciais e janela lateral "Detalhes do item" */
.vm-stk__av { flex: none; display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 0.7rem; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em; }
.vm-stk__av--0 { background: #edf0f6; color: #2e416b; } .vm-stk__av--1 { background: #e7f4e6; color: #5a6737; }
.vm-stk__av--2 { background: #f5f1e9; color: #a88338; } .vm-stk__av--3 { background: #f3eaec; color: #8a2a44; }
.vm-stk__av--4 { background: #eee8f7; color: #684731; } .vm-stk__av--5 { background: #e3f3f1; color: #8f8957; }
.vm-stk__item strong { font-weight: 600; color: var(--vm-chocolate); line-height: 1.2; }
.vm-stk__item small { color: #7d7164; font-size: 0.75rem; line-height: 1.2; }
.vm-stk__det { display: flex; flex-direction: column; gap: 1rem; }
.vm-stk__detgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid #ece6db; }
.vm-stk__detgrid > div:not(.vm-stk__item) { display: flex; flex-direction: column; gap: 0.15rem; }
.vm-stk__detgrid > div > small { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: #7d7164; }
.vm-stk__detgrid > div > b { font-size: 1rem; color: var(--vm-chocolate); }
.vm-stk__detgrid .is-ok { color: #697740; } .vm-stk__detgrid .is-low { color: #8a2a44; } .vm-stk__detgrid .is-high { color: #a88338; }
.vm-stk__h3 { font-family: var(--vm-serif); font-size: 1.2rem; font-weight: 600; color: var(--vm-chocolate); margin: 0; }
.vm-stk__empty { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 2rem 1rem; text-align: center; color: #7d7164; }
.vm-stk__empty span { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 9999px; background: #eef1f8; color: #2e416b; }
.vm-stk__empty b { color: var(--vm-chocolate); }
.vm-stk__hist { overflow-x: auto; border: 1px solid #ece6db; border-radius: 0.8rem; }
.vm-stk__hist table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.vm-stk__hist th { text-align: left; padding: 0.6rem 0.75rem; background: #faf7f1; color: #7d7164; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; }
.vm-stk__hist td { padding: 0.6rem 0.75rem; border-top: 1px solid #f0ebe1; }
.vm-stk__hist .n { text-align: right; font-variant-numeric: tabular-nums; }
.vm-stk__tag { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 9999px; font-size: 0.72rem; font-weight: 600; }
.vm-stk__tag.is-in { background: #e7f4e6; color: #5a6737; } .vm-stk__tag.is-out { background: #f6eef0; color: #8a2a44; }
.vm-stk__detgrid > .vm-stk__item { grid-column: span 2; }
.vm-stk__num em { font-style: normal; font-size: 0.85rem; font-weight: 600; color: #7d7164; }
.vm-stk__row { cursor: pointer; }
.vm-stk__row:hover td { background: #f7f3ec; }
.vm-stk__row:focus-visible { outline: 2px solid var(--vm-walnut); outline-offset: -2px; }
.vm-stk__badge { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 9999px; background: #edf0f6; color: #2e416b; font-size: 0.72rem; font-weight: 600; white-space: nowrap; }
.vm-stk__row .is-pos { color: #697740; font-weight: 600; } .vm-stk__row .is-neg { color: #8a2a44; font-weight: 600; }

/* Estoque: histórico clicável, menu da linha e janela de detalhes da movimentação */
.vm-stk__mv { cursor: pointer; }
.vm-stk__mv:hover td { background: #faf6ee; }
.vm-stk__hist { overflow: visible; }
.vm-stk__hist td, .vm-stk__hist th { white-space: nowrap; }
.vm-stk__mvmenu { position: relative; text-align: right; width: 2.5rem; }
.vm-stk__mvmenu > button { padding: 0.15rem; border-radius: 0.4rem; color: #7d7164; }
.vm-stk__mvmenu > button:hover { background: #f1ece3; }
.vm-stk__menu { position: absolute; right: 0.5rem; top: 100%; z-index: 20; min-width: 8rem; background: #fff; border: 1px solid #ece6db; border-radius: 0.7rem; box-shadow: 0 10px 24px rgb(47 45 42 / 0.14); padding: 0.3rem; display: flex; flex-direction: column; }
.vm-stk__menu button { text-align: left; padding: 0.5rem 0.7rem; border-radius: 0.5rem; font-size: 0.85rem; color: var(--vm-chocolate); }
.vm-stk__menu button:hover { background: #f7f3ec; }
.vm-stk__edited { font-style: normal; font-size: 0.68rem; color: #7d7164; margin-left: 0.35rem; }
.vm-stk__back { align-self: flex-start; display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; color: var(--vm-gold); }
.vm-stk__back:hover { text-decoration: underline; }
.vm-stk__detgrid--plain { border-bottom: 0; }
.vm-stk__detgrid .vm-stk__wide { grid-column: 1 / -1; }
.vm-stk__note { display: flex; gap: 0.5rem; align-items: flex-start; padding: 0.8rem 1rem; border-radius: 0.8rem; background: #eef1f8; color: #26365a; font-size: 0.85rem; }

/* Estoque: tabela editável da contagem */
.vm-stk__hist--count { overflow-x: auto; }
.vm-stk__cnt { width: 6.5rem; text-align: right; border: 1px solid #d3c9bb; border-radius: 0.6rem; padding: 0.4rem 0.6rem; background: #fffdfa; font-size: 0.9rem; }
.vm-stk__cnt:focus { outline: 2px solid var(--vm-walnut); outline-offset: 1px; }
.vm-stk__trash { color: #8a2a44; padding: 0.25rem; border-radius: 0.4rem; }
.vm-stk__trash:hover { background: #f6eef0; }
.vm-stk__sumline { margin-top: 0.75rem; font-size: 0.875rem; color: #62574c; }
.vm-stk__sumline .is-pos, .vm-stk__hist .is-pos { color: #697740; } .vm-stk__sumline .is-neg, .vm-stk__hist .is-neg { color: #8a2a44; }
.vm-stk__av--round { border-radius: 9999px; }
.vm-stk__tag.is-info { background: #eaedf4; color: #2e416b; }

/* Estoque: resumo do valor total da compra */
.vm-stk__tot { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: baseline; font-size: 0.9rem; color: #62574c; }
.vm-stk__tot b { color: var(--vm-chocolate); margin-left: 0.25rem; }
.vm-stk__tot strong { margin-left: auto; font-size: 1.25rem; color: var(--vm-chocolate); }
.vm-stk__tot strong b { font-size: 1.5rem; }
.vm-stk__tag.is-warn { background: #f5f1e9; color: #a88338; }
.vm-stk__paid { display: flex; justify-content: flex-end; gap: 2rem; padding-top: 0.5rem; }
.vm-stk__paid > div { display: flex; flex-direction: column; align-items: flex-end; }
.vm-stk__paid small { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: #7d7164; }
.vm-stk__paid b { font-size: 1.25rem; }
.vm-stk__paid .is-ok { color: #697740; } .vm-stk__paid .is-warnc { color: #a88338; }
.fi-ta-cell .vm-stk__item > span:not(.vm-stk__av) { min-width: 0; }
.fi-ta-cell .vm-stk__item strong { display: block; max-width: 8.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm-stk__acts { white-space: nowrap; width: auto; }
.vm-stk__acts > button { display: inline-flex; vertical-align: middle; }
.vm-stk__pay { color: #5a6737; }
.vm-stk__menulink { display: block; text-align: left; padding: 0.5rem 0.7rem; border-radius: 0.5rem; font-size: 0.85rem; color: var(--vm-chocolate); }
.vm-stk__menulink:hover { background: #f7f3ec; }

/* Estoque: conteúdo restante da embalagem aberta */
.vm-stk__content { display: flex; flex-direction: column; gap: 0.2rem; min-width: 7rem; }
.vm-stk__content b { color: var(--vm-chocolate); }
.vm-stk__content small { color: #7d7164; font-size: 0.72rem; }
.vm-stk__bar { height: 0.4rem; border-radius: 9999px; background: #ece6db; overflow: hidden; display: block; }
.vm-stk__bar i { display: block; height: 100%; border-radius: 9999px; background: #697740; }
.vm-stk__bar i.is-low { background: #8a2a44; } .vm-stk__bar i.is-done { background: #b3a48b; }

.vm-stk__cards:has(> :nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .vm-stk__cards:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Comunicação: balão da mensagem */
.vm-stk__bubble { white-space: pre-wrap; background: #eef6ee; border: 1px solid #d5e8d5; border-radius: 0.2rem 1rem 1rem 1rem; padding: 0.9rem 1.1rem; color: #1f2d1f; font-size: 0.9rem; line-height: 1.5; max-width: 34rem; }

/* Comunicação: cartões das mensagens do sistema */
.vm-msg__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0.85rem; }
.vm-msg__card { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.1rem; background: #fff; border: 1.5px solid #ece6db; border-radius: 1rem; box-shadow: 0 1px 2px rgb(47 45 42 / 0.05); transition: box-shadow .15s ease, transform .15s ease; }
.vm-msg__card:hover { box-shadow: 0 8px 20px rgb(47 45 42 / 0.10); transform: translateY(-2px); }
.vm-msg__card header { display: flex; align-items: center; gap: 0.7rem; }
.vm-msg__card h3 { font-weight: 700; color: var(--vm-chocolate); flex: 1; line-height: 1.2; }
.vm-msg__card p { font-size: 0.82rem; color: #62574c; flex: 1; }
.vm-msg__card footer { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.vm-msg__card.is-soon { background: #fbf9f4; }
.vm-msg__card.is-soon .vm-stk__icon { filter: grayscale(1); opacity: .7; }
.vm-msg__soon { font-style: normal; font-size: 0.68rem; font-weight: 700; background: #f1ece3; color: #7d7164; padding: 0.1rem 0.5rem; border-radius: 9999px; }
.vm-msg__chips { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.vm-msg__chip { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; font-weight: 600; padding: 0.12rem 0.55rem; border-radius: 9999px; background: #f1ece3; color: #7d7164; }
.vm-msg__chip i { width: 0.45rem; height: 0.45rem; border-radius: 9999px; background: #b3a48b; }
.vm-msg__chip.is-on { background: #e7f4e6; color: #5a6737; } .vm-msg__chip.is-on i { background: #697740; }
.vm-msg__none { font-size: 0.72rem; color: #9a8f80; }
.vm-msg__btn { font-size: 0.8rem; font-weight: 700; color: #fff; background: var(--vm-walnut); border-radius: 0.6rem; padding: 0.4rem 0.9rem; }
.vm-msg__btn[disabled] { background: #d9d1c3; cursor: not-allowed; }

/* Comunicação: fila "Para enviar hoje" */
.vm-q__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); gap: 0.9rem; }
.vm-q__item { display: flex; flex-direction: column; gap: 0.7rem; padding: 1.1rem; background: #fff; border: 1.5px solid #ece6db; border-radius: 1rem; box-shadow: 0 1px 2px rgb(47 45 42 / 0.05); }
.vm-q__acts { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: auto; }
.vm-q__open, .vm-q__done { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.82rem; font-weight: 700; padding: 0.5rem 0.9rem; border-radius: 0.7rem; }
.vm-q__open { background: #697740; color: #fff; } .vm-q__open:hover { background: #566234; }
.vm-q__done { background: #edf0f6; color: #26365a; } .vm-q__done:hover { background: #e2e6ef; }
.vm-q__drop { font-size: 0.8rem; color: #8a2a44; padding: 0.4rem 0.5rem; margin-left: auto; } .vm-q__drop:hover { text-decoration: underline; }

/* Maison Docs — lista, abas de situação e visão geral */
.vm-doc__tabs { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.15rem; }
.vm-doc__tab { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; min-width: 8.2rem; padding: 0.7rem 1rem; border-radius: 0.9rem; background: #fff; border: 1.5px solid #ece6db; text-align: left; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.vm-doc__tab:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgb(47 45 42 / 0.08); }
.vm-doc__tab.is-on { border-color: #1e2d4d; box-shadow: 0 4px 14px rgb(47 45 42 / 0.10); background: #fbf9f4; }
.vm-doc__tablabel { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: #5b5444; white-space: nowrap; }
.vm-doc__tab b { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.7rem; line-height: 1; color: #1e2d4d; font-weight: 600; }
.vm-doc__dot { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 9999px; background: #aea8a1; }
.vm-doc__dot--draft { background: #8a8f9c; } .vm-doc__dot--wait { background: #a88338; } .vm-doc__dot--ok { background: #697740; } .vm-doc__dot--bad { background: #8a2a44; } .vm-doc__dot--off { background: #b9b2a3; } .vm-doc__dot--all { background: #2e416b; }
.vm-doc__row { display: flex; align-items: center; gap: 0.75rem; padding: 0.15rem 0; }
.vm-doc__icon { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 0.7rem; background: #eef1f8; color: #1e2d4d; }
.vm-doc__icon--template { background: #f3ecd8; color: #6f5a2e; } .vm-doc__icon--upload { background: #e9efe5; color: #52603a; }
.vm-doc__txt { display: flex; flex-direction: column; min-width: 0; } .vm-doc__txt b { font-weight: 600; color: #1e2d4d; } .vm-doc__txt small { color: #807461; }
.vm-doc__status { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; white-space: nowrap; }
.vm-doc__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.vm-doc__card { display: flex; flex-direction: column; gap: 0.2rem; padding: 1rem 1.15rem; border-radius: 1rem; background: #fff; border: 1.5px solid #ece6db; box-shadow: 0 1px 2px rgb(47 45 42 / 0.05); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.vm-doc__card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgb(47 45 42 / 0.10); }
.vm-doc__card span { display: inline-flex; align-items: center; gap: 0.45rem; color: #5b5444; font-size: 0.85rem; } .vm-doc__card b { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2.2rem; line-height: 1.05; color: #1e2d4d; font-weight: 600; } .vm-doc__card small { color: #807461; }
.vm-doc__panel { background: #fff; border: 1px solid #e7e0d3; border-radius: 1rem; padding: 1.1rem 1.25rem; }
.vm-doc__panel h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.25rem; color: #1e2d4d; font-weight: 600; margin-bottom: 0.6rem; display: flex; justify-content: space-between; align-items: baseline; } .vm-doc__panel h3 a { font-family: inherit; font-size: 0.8rem; font-weight: 500; color: #2e416b; }
.vm-doc__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.vm-doc__list { display: flex; flex-direction: column; } .vm-doc__list a { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.6rem 0; border-top: 1px solid #f0eadf; text-decoration: none; } .vm-doc__list a:first-child { border-top: 0; }
.vm-doc__empty { color: #807461; padding: 0.8rem 0; }
.vm-doc__chart { display: flex; align-items: flex-end; gap: 0.25rem; height: 11rem; padding-top: 0.5rem; }
.vm-doc__chart--day .vm-doc__bar:not(:nth-child(5n+1)):not(:last-child) span { visibility: hidden; } .vm-doc__bar span { white-space: nowrap; }
.vm-doc__bar { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0.25rem; height: 100%; font-size: 0.7rem; color: #807461; }
.vm-doc__bar i { display: block; width: 100%; max-width: 2.2rem; border-radius: 0.4rem 0.4rem 0 0; background: #1e2d4d; min-height: 2px; } .vm-doc__bar span { font-size: 0.68rem; } .vm-doc__bar em { font-style: normal; color: #1e2d4d; font-weight: 600; }
.vm-doc__ranges { display: inline-flex; gap: 0.25rem; background: #f4efe4; border-radius: 9999px; padding: 0.2rem; } .vm-doc__ranges button { padding: 0.25rem 0.8rem; border-radius: 9999px; font-size: 0.8rem; color: #5b5444; } .vm-doc__ranges button.is-on { background: #1e2d4d; color: #fff; }
@media (max-width: 900px) { .vm-doc__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vm-doc__grid { grid-template-columns: 1fr; } }
.vm-doc__charts { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; align-items: stretch; }
.vm-doc__pie { position: relative; width: 11rem; height: 11rem; margin: 0.4rem auto 1rem; border-radius: 9999px; }
.vm-doc__pie span { position: absolute; inset: 2.4rem; border-radius: 9999px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.vm-doc__pie b { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.9rem; line-height: 1; color: #1e2d4d; } .vm-doc__pie small { color: #807461; font-size: 0.7rem; }
.vm-doc__legend { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.85rem; } .vm-doc__legend li { display: flex; align-items: center; gap: 0.5rem; } .vm-doc__legend i { width: 0.7rem; height: 0.7rem; border-radius: 9999px; flex: none; } .vm-doc__legend span { flex: 1; color: #5b5444; } .vm-doc__legend b { color: #1e2d4d; } .vm-doc__legend small { color: #807461; width: 2.4rem; text-align: right; }
@media (max-width: 900px) { .vm-doc__charts { grid-template-columns: 1fr; } }

/* VelvetDocs — assistente Novo documento */
.vm-docs-summary h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.15rem; color: #1e2d4d; font-weight: 600; margin: 1rem 0 0.35rem; } .vm-docs-summary h3:first-child { margin-top: 0; }
.vm-docs-summary ul { display: flex; flex-direction: column; gap: 0.35rem; } .vm-docs-summary li { display: flex; align-items: center; gap: 0.5rem; color: #3d382d; } .vm-docs-summary li small { color: #807461; }
.vm-docs-warn { background: #f1e1e4; color: #6e1f34; border-radius: 0.8rem; padding: 0.8rem 1rem; font-size: 0.88rem; } .vm-docs-warn ul { margin: 0.35rem 0 0 1.1rem; list-style: disc; }

/* VelvetDocs — Minha assinatura */
.vm-mysig__empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.6rem; padding: 2.5rem 1.5rem; } .vm-mysig__empty h3 { margin: 0.4rem 0 0; } .vm-mysig__empty p { max-width: 34rem; color: #5b5444; }
.vm-mysig__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0.9rem; }
.vm-mysig__card { display: flex; flex-direction: column; gap: 0.6rem; }
.vm-mysig__img { display: grid; place-items: center; height: 7rem; border: 1px dashed #d8d1c2; border-radius: 0.8rem; background: #fbf9f4; } .vm-mysig__img img { max-height: 6rem; max-width: 90%; }
.vm-mysig__meta { display: flex; justify-content: space-between; align-items: center; color: #1e2d4d; }
.vm-mysig__acts { display: flex; gap: 0.9rem; font-size: 0.85rem; } .vm-mysig__acts button { color: #2e416b; } .vm-mysig__acts .is-danger { color: #a63a57; }
.vm-mysig__pad { width: 100%; height: 11rem; border: 1px solid #d8d1c2; border-radius: 0.8rem; background: #fff; touch-action: none; cursor: crosshair; }
.vm-mysig__padbar { display: flex; justify-content: space-between; align-items: center; margin-top: 0.35rem; color: #807461; } .vm-mysig__padbar button { color: #2e416b; font-size: 0.85rem; }

.vm-docdot { display: inline-flex; vertical-align: middle; margin-left: 0.3rem; padding: 0.1rem; border-radius: 9999px; background: #8a2a44; color: #fff; }

.vm-doc__cards--money .vm-doc__card b { font-size: 1.55rem; white-space: nowrap; }

/* ===== Marca sempre visível: logo na barra superior, maior, à direita do menu lateral ===== */
.vm-topbrand { display: inline-flex; align-items: center; flex-shrink: 0; order: 0; }
.vm-topbrand .velvet-brand__icon { height: 3.5rem; }
.fi-topbar .fi-topbar-open-sidebar-btn, .fi-topbar .fi-topbar-close-sidebar-btn { order: -1; }
.fi-sidebar-header > a, .fi-sidebar-header > div:has(.velvet-brand) { display: none; }
.fi-sidebar-header { justify-content: flex-end; }
@media (max-width: 1023px) { .vm-topbrand .velvet-brand__icon { height: 2.75rem; } }

/* ===== Foto/avatar do usuário (topo direito) ===== */
.fi-user-menu .fi-avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--vm-gold); }

/* ===== Painel de Controle ===== */
.vm-db { display: flex; flex-direction: column; gap: 1.75rem; --c-navy: #1e2d4d; --c-wine: #6e1f34; --c-olive: #52603a; --c-sky: #857f4d; --c-gold: #a88338; --c-plum: #6b4a38; --c-teal: #7a6552; --c-rose: #8a2a44; }
.vm-db__hero { position: relative; display: flex; align-items: center; gap: 1.25rem; padding: 1.5rem 1.75rem; border-radius: 1.25rem; color: #fff; background: linear-gradient(120deg, #2f2d2a 0%, #1e2d4d 55%, #6e1f34 130%); box-shadow: 0 10px 28px rgb(47 45 42 / 0.22); overflow: hidden; }
.vm-db__hero::after { content: ''; position: absolute; right: -4rem; top: -5rem; width: 17rem; height: 17rem; border-radius: 9999px; background: radial-gradient(circle, rgb(192 145 44 / 0.35), transparent 70%); pointer-events: none; }
.vm-db__avatar { flex-shrink: 0; width: 5rem; height: 5rem; border-radius: 9999px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #a88338; color: #fff; font-size: 1.75rem; font-weight: 700; box-shadow: 0 0 0 3px rgb(255 255 255 / 0.9), 0 6px 16px rgb(0 0 0 / 0.3); }
.vm-db__avatar img { width: 100%; height: 100%; object-fit: cover; }
.vm-db__hello small { font-size: 0.8125rem; letter-spacing: 0.04em; opacity: 0.8; }
.vm-db__hello h1 { font-family: var(--vm-serif); font-size: 2.25rem; line-height: 1.1; font-weight: 600; margin: 0.15rem 0 0.35rem; }
.vm-db__hello p { font-size: 0.875rem; opacity: 0.85; max-width: 38rem; }
.vm-db__badge { margin-left: auto; align-self: flex-start; background: rgb(255 255 255 / 0.16); border: 1px solid rgb(255 255 255 / 0.3); padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; position: relative; z-index: 1; }

.vm-db__title { display: flex; align-items: center; gap: 0.5rem; font-size: 1.125rem; font-weight: 700; color: var(--vm-chocolate); margin-bottom: 0.85rem; }
.vm-db__title svg { color: var(--vm-gold); }
.vm-db__title small { font-weight: 500; font-size: 0.8125rem; color: #807461; margin-left: 0.25rem; }
.vm-db__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.85rem; }
.vm-db__bar .vm-db__title { margin-bottom: 0; }
.vm-db__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.vm-db__chips button { padding: 0.35rem 0.85rem; border-radius: 9999px; font-size: 0.8125rem; font-weight: 600; background: #fff; border: 1px solid #e7e0d3; color: #625848; transition: all 0.15s; }
.vm-db__chips button:hover { border-color: var(--c-navy); color: var(--c-navy); }
.vm-db__chips button.is-on { background: var(--c-navy); border-color: var(--c-navy); color: #fff; box-shadow: 0 3px 8px rgb(30 45 77 / 0.3); }

.vm-db__tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: 0.85rem; }
.vm-db__tile { --t: var(--c-navy); position: relative; display: flex; align-items: center; gap: 0.85rem; padding: 0.95rem 1rem; border-radius: 1rem; background: #fff; border: 1px solid #ece5d8; box-shadow: 0 1px 3px rgb(47 45 42 / 0.06); transition: transform 0.15s, box-shadow 0.15s, background 0.15s; overflow: hidden; }
.vm-db__tile::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--t); }
.vm-db__tile:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgb(47 45 42 / 0.14); background: color-mix(in srgb, var(--t) 7%, #fff); }
.vm-db__tile b { font-size: 0.9rem; font-weight: 600; color: var(--vm-chocolate); line-height: 1.25; }
.vm-db__tico { flex-shrink: 0; width: 2.75rem; height: 2.75rem; border-radius: 0.85rem; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--t); box-shadow: 0 4px 10px color-mix(in srgb, var(--t) 45%, transparent); }
.vm-db__tarrow { margin-left: auto; color: var(--t); opacity: 0; transform: translateX(-4px); transition: all 0.15s; }
.vm-db__tile:hover .vm-db__tarrow { opacity: 1; transform: none; }
.is-navy { --t: var(--c-navy); } .is-wine { --t: var(--c-wine); } .is-olive { --t: var(--c-olive); } .is-sky { --t: var(--c-sky); }
.is-gold { --t: var(--c-gold); } .is-plum { --t: var(--c-plum); } .is-teal { --t: var(--c-teal); } .is-rose { --t: var(--c-rose); }

.vm-db__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 0.85rem; }
.vm-db__card { display: flex; align-items: center; gap: 0.9rem; padding: 1.05rem 1.1rem; border-radius: 1rem; color: #fff; background: linear-gradient(135deg, var(--t), color-mix(in srgb, var(--t) 70%, #000)); box-shadow: 0 8px 20px color-mix(in srgb, var(--t) 35%, transparent); }
.vm-db__cico { flex-shrink: 0; width: 2.85rem; height: 2.85rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; background: rgb(255 255 255 / 0.2); }
.vm-db__card small { display: block; font-size: 0.78rem; font-weight: 600; opacity: 0.9; }
.vm-db__card b { display: block; white-space: nowrap; font-size: 1.5rem; line-height: 1.15; font-weight: 700; }
.vm-db__card em { font-style: normal; font-size: 0.72rem; opacity: 0.8; }

.vm-db__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1rem; }
.vm-db__box { background: #fff; border: 1px solid #ece5d8; border-radius: 1rem; padding: 1.1rem 1.25rem; box-shadow: 0 1px 3px rgb(47 45 42 / 0.06); border-top: 3px solid var(--c-gold); }
.vm-db__box h3 { font-size: 0.95rem; font-weight: 700; color: var(--vm-chocolate); margin-bottom: 0.9rem; }
.vm-db__empty { font-size: 0.85rem; color: #807461; padding: 1rem 0; text-align: center; }
.vm-db__stack { display: flex; height: 0.9rem; border-radius: 9999px; overflow: hidden; background: #f3efe7; margin-bottom: 0.9rem; }
.vm-db__legend { display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.85rem; }
.vm-db__legend li { display: flex; align-items: center; gap: 0.5rem; }
.vm-db__legend li i { width: 0.7rem; height: 0.7rem; border-radius: 9999px; }
.vm-db__legend li b { margin-left: auto; }
.vm-db__legend li small { width: 2.5rem; text-align: right; color: #807461; }
.vm-db__cols { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.5rem; height: 11rem; align-items: end; }
.vm-db__col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0.3rem; height: 100%; font-size: 0.75rem; }
.vm-db__col i { display: block; width: 100%; max-width: 2.2rem; border-radius: 0.5rem 0.5rem 0.2rem 0.2rem; background: var(--t); transition: height 0.3s; }
.vm-db__col b { font-size: 0.8rem; } .vm-db__col span { color: #807461; font-weight: 600; }
.vm-db__rank { display: flex; flex-direction: column; gap: 0.7rem; }
.vm-db__rank li { display: grid; grid-template-columns: minmax(0, 9rem) 1fr 1.75rem; align-items: center; gap: 0.6rem; font-size: 0.85rem; }
.vm-db__rank li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm-db__rank li i { height: 0.65rem; border-radius: 9999px; background: #f3efe7; overflow: hidden; }
.vm-db__rank li u { display: block; height: 100%; border-radius: 9999px; background: var(--t); }
.vm-db__rank li b { text-align: right; }
.vm-db__heat { display: grid; grid-template-columns: 2.4rem repeat(7, 1fr); gap: 3px; max-height: 14rem; overflow-y: auto; font-size: 0.7rem; }
.vm-db__heat em { font-style: normal; text-align: center; font-weight: 700; color: #807461; position: sticky; top: 0; background: #fff; }
.vm-db__heat span { color: #807461; align-self: center; }
.vm-db__heat i { font-style: normal; height: 1.35rem; border-radius: 0.3rem; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: color-mix(in srgb, var(--c-wine) calc(var(--v) * 100%), #f3efe7); }
.vm-db__heat i:empty { color: transparent; }
@media (max-width: 640px) { .vm-db__hero { flex-wrap: wrap; padding: 1.1rem; } .vm-db__hello h1 { font-size: 1.7rem; } .vm-db__badge { display: none; } }

/* Agenda: arrastar, redimensionar, popover rápido, painel de detalhes, avisos do paciente */
.vm-event[role="button"] { cursor: pointer; }
.vm-evwrap.is-draggable .vm-event { cursor: grab; }
.vm-evwrap { user-select: none; touch-action: manipulation; }
.vm-evwrap.is-dragging { z-index: 20; opacity: 0.85; pointer-events: none; }
.vm-evwrap.is-dragging .vm-event { cursor: grabbing; box-shadow: 0 8px 20px rgb(47 45 42 / 0.3); }
.vm-evwrap.is-dragging[data-ghost]::after { content: attr(data-ghost); position: absolute; right: 4px; top: -1.3rem; background: var(--vm-walnut); color: #fff; font-size: 0.6875rem; padding: 0 0.4rem; border-radius: 0.3rem; white-space: nowrap; }
.vm-col.is-drop { background: rgb(110 31 52 / 0.05); }
.vm-resize { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; cursor: ns-resize; z-index: 3; }
.vm-resize::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 1.5rem; height: 2px; margin-left: -0.75rem; border-radius: 2px; background: currentColor; opacity: 0; transition: opacity 0.12s; }
.vm-evwrap:hover .vm-resize::after { opacity: 0.45; }

.vm-quick { position: fixed; z-index: 60; width: 21rem; max-width: calc(100vw - 16px); background: #fffdfa; border: 1px solid #e6dfd5; border-top: 3px solid var(--vm-gold); border-radius: 0.75rem; box-shadow: 0 16px 40px rgb(47 45 42 / 0.25); padding: 0.75rem 0.9rem; font-size: 0.8125rem; color: #2f2d2a; }
.vm-quick__tabs { display: flex; gap: 0.25rem; margin-bottom: 0.6rem; }
.vm-quick__tabs button { padding: 0.3rem 0.7rem; border-radius: 0.5rem; color: #62574c; font-weight: 600; }
.vm-quick__tabs button.is-active { background: var(--vm-walnut); color: #fff; }
.vm-quick__row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; color: #62574c; }
.vm-quick input[type="text"], .vm-quick input[type="time"], .vm-quick__select { border: 1px solid #d3c9bb; border-radius: 0.5rem; background: #fff; padding: 0.35rem 0.5rem; font-size: 0.8125rem; color: #2f2d2a; }
.vm-quick input[type="text"], .vm-quick__select { width: 100%; margin-bottom: 0.5rem; }
.vm-quick__field { position: relative; }
.vm-quick__list { position: absolute; left: 0; right: 0; top: calc(100% - 0.5rem); z-index: 5; background: #fffdfa; border: 1px solid #e6dfd5; border-radius: 0.5rem; box-shadow: 0 8px 20px rgb(47 45 42 / 0.18); max-height: 11rem; overflow: auto; }
.vm-quick__list button { display: block; width: 100%; text-align: left; padding: 0.4rem 0.6rem; }
.vm-quick__list button:hover { background: #f3efe7; }
.vm-quick__foot { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.6rem; }
.vm-quick__more { color: var(--vm-walnut); font-weight: 600; }
.vm-quick__error { color: #8a2a44; background: #ebdadf; border-radius: 0.4rem; padding: 0.25rem 0.5rem; margin-bottom: 0.5rem; }

.vm-drawer-bg { position: fixed; inset: 0; z-index: 49; background: rgb(47 45 42 / 0.35); }
.vm-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: 26rem; max-width: 100vw; display: flex; flex-direction: column; background: #fffdfa; box-shadow: -12px 0 32px rgb(47 45 42 / 0.2); color: #2f2d2a; font-size: 0.875rem; }
.vm-drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid #e6dfd5; font-family: var(--vm-serif); font-size: 1.15rem; }
.vm-drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.vm-drawer__foot { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.9rem 1.25rem; border-top: 1px solid #e6dfd5; }
.vm-drawer__foot .vm-btn { flex: 1 1 auto; }
.vm-drawer__actions { display: flex; gap: 0.5rem; margin-top: 1rem; }
.vm-drawer__link { font-weight: 600; text-decoration: underline; text-decoration-color: #d3c9bb; }
.vm-btn--danger { background: #f1e4e8; color: #8a2a44; }

.vm-alerts { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; padding: 0.3rem 0; }
.vm-alert { display: inline-flex; align-items: center; gap: 0.3rem; border-radius: 9999px; padding: 0.1rem 0.6rem 0.1rem 0.4rem; font-size: 0.75rem; font-weight: 600; }
.vm-alert--gray { background: #ece7de; color: #62574c; }
.vm-alert--danger { background: #ebdadf; color: #8a2a44; }
.vm-alert--warning { background: #f2ece0; color: #6f5a2e; }
.vm-alerts__last { font-size: 0.75rem; color: #7d7164; }
.vm-quick__select { appearance: none; -webkit-appearance: none; background-repeat: no-repeat; background-position: right 0.5rem center; background-size: 1rem; padding-right: 2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%237d7164'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.17l3.71-3.94a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E"); }
button.vm-grid__head:disabled { cursor: default; }
button.vm-grid__head:disabled:hover { background: #fff; }
.vm-evwrap.is-open { z-index: 60; }
.vm-pop__x { margin-left: 0.4rem; color: #b0a38d; border-radius: 9999px; padding: 0.1rem; }
.vm-pop__x:hover { color: #8a2a44; background: #f5ecee; }
.vm-pop__add { display: inline-flex; align-items: center; gap: 0.35rem; margin: 0.3rem 0 0.2rem 1.9rem; font-size: 0.78rem; font-weight: 600; color: var(--vm-walnut); }
.vm-pop__add:hover { text-decoration: underline; }

/* ---------- Casca visual global ----------
   Mesma linguagem da Agenda e do Painel de Controle em todas as telas: cartões brancos com filete dourado,
   cabeçalhos de tabela discretos, botões e abas em pílula, modais arredondados. Só aparência: nenhuma função muda. */
.fi-main .fi-section,
.fi-main .fi-ta-ctn,
.fi-main .fi-wi-stats-overview-stat,
.fi-main .fi-fo-tabs,
.fi-main .fi-in-tabs {
    border-radius: 1rem;
    background-color: #fff;
    box-shadow: 0 0 0 1px #ece5d8, 0 1px 3px rgb(47 45 42 / 0.06);
}
.fi-main .fi-ta-ctn,
.fi-main .fi-section:not(.fi-section .fi-section):not(.fi-modal-window .fi-section) {
    border-top: 3px solid #a88338;
}
.fi-main .fi-wi-stats-overview-stat { border-top: 3px solid #a88338; }
.fi-modal-window { border-radius: 1rem; border-top: 3px solid #a88338; box-shadow: 0 24px 60px rgb(47 45 42 / 0.25); }
.fi-modal-window .fi-section { border-top: 0; box-shadow: 0 0 0 1px #ece6db; border-radius: 0.9rem; }
.fi-dropdown-panel { border-radius: 1rem; box-shadow: 0 0 0 1px #ece5d8, 0 12px 30px rgb(47 45 42 / 0.15); }

/* Tabelas */
.fi-main .fi-ta-header-cell { background: #fcfaf6; }
.fi-main .fi-ta-header-cell,
.fi-main .fi-ta-header-cell .fi-ta-header-cell-label { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.7rem; font-weight: 600; color: #9a8f80; }
.fi-main .fi-ta-row { transition: background 0.12s; }
.fi-main .fi-ta-row:hover { background: #faf8f4; }
.fi-main .fi-ta-header-toolbar, .fi-main .fi-ta-header-ctn { border-color: #f1ece2; }
.fi-main .fi-ta-content, .fi-main .fi-ta-table tbody tr { border-color: #f1ece2; }
.fi-main .fi-ta-ctn > * { border-color: #f1ece2; }

/* Botões, ícones e abas em pílula */
.fi-btn { border-radius: 9999px; }
.fi-header-actions-ctn .fi-btn.fi-color-primary, .fi-modal-footer .fi-btn.fi-color-primary { box-shadow: 0 3px 8px rgb(30 45 77 / 0.22); }
.fi-icon-btn { border-radius: 9999px; }
.fi-pagination-item-button, .fi-pagination-records-per-page-select .fi-input-wrp { border-radius: 9999px; }
.fi-tabs { border-radius: 9999px; }
.fi-tabs-item { border-radius: 9999px; }
.fi-tabs-item.fi-active { background-color: var(--vm-walnut); color: #fff; }
.fi-tabs-item.fi-active .fi-tabs-item-label, .fi-tabs-item.fi-active .fi-tabs-item-icon { color: #fff; }

/* Campos */
.fi-input-wrp { border-radius: 0.75rem; box-shadow: 0 0 0 1px #e3dccf; background-color: #fff; }
.fi-fo-field-wrp-label span { font-weight: 600; }

/* Cabeçalho de página e trilha */
.fi-breadcrumbs { color: #9a8f80; }
.fi-header-heading { font-size: 2rem; }

/* Cartões das telas personalizadas (relatórios, vendas, documentos, visão geral da agenda) */
.vm-rep__card, .vm-sales__card, .vm-doc__panel, .vm-ov .vm-card {
    background: #fff; border: 1px solid #ece5d8; border-top: 3px solid #a88338; border-radius: 1rem; box-shadow: 0 1px 3px rgb(47 45 42 / 0.06);
}
.vm-rep__head { border-bottom-color: #f1ece2; }
.vm-rep__head h2, .vm-sales__card h2 { font-family: var(--vm-serif); font-size: 1.3rem; letter-spacing: 0.01em; color: var(--vm-chocolate); }

/* Saldo da paciente à vista no "Finalizar comanda" */
.vm-wstrip { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.vm-wstrip__card { flex: 1 1 14rem; max-width: 20rem; display: flex; flex-direction: column; gap: 0.15rem; padding: 0.8rem 1rem; border-radius: 1rem; color: #fff; box-shadow: 0 6px 16px rgb(47 45 42 / 0.18); }
.vm-wstrip__card span { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.85rem; opacity: 0.95; }
.vm-wstrip__card strong { font-size: 1.6rem; font-weight: 600; line-height: 1.15; }
.vm-wstrip__card small { font-size: 0.75rem; opacity: 0.85; }
.vm-wstrip__card.is-credit { background: linear-gradient(135deg, #1e2d4d, #33466f); }
.vm-wstrip__card.is-cashback { background: linear-gradient(135deg, #52603a, #6b7a45); }
.vm-wstrip__none { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: #8a7d6b; }
.vm-wstrip__card small.is-applied { font-weight: 700; opacity: 1; }
.vm-wstrip__first { padding: 0.55rem 0.8rem; border-radius: 0.75rem; background: #f6efdc; color: #6f5a2e; font-size: 0.85rem; }

/* Permissões de menus (somente administrador) */
.vm-perm { display: grid; gap: 1.25rem; max-width: 64rem; }
.vm-perm__intro p { margin: 0 0 .4rem; color: #4a4237; }
.vm-perm__note { margin: 0; font-size: .875rem; color: #807461; }
.vm-perm__bar { display: grid; gap: .35rem; max-width: 32rem; }
.vm-perm__bar label { font-weight: 600; color: #2a1d14; font-size: .9rem; }
.vm-perm__groups { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); align-items: start; }
.vm-perm__group { background: #fffdfa; border: 1px solid #e7e0d3; border-radius: .6rem; padding: .85rem 1rem; }
.vm-perm__group header { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .4rem; }
.vm-perm__group h3 { margin: 0; font-family: var(--vm-serif); font-size: 1.15rem; color: #1e2d4d; }
.vm-perm__group header button { font-size: .72rem; color: #807461; text-decoration: underline; margin-left: .5rem; background: none; border: 0; cursor: pointer; }
.vm-perm__group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.vm-perm__group li label { display: flex; gap: .5rem; align-items: center; padding: .3rem 0; cursor: pointer; font-size: .92rem; }
.vm-perm__group li.is-off { opacity: .6; }
.vm-perm__group li.is-off label { cursor: not-allowed; }
.vm-perm__group li small { display: block; margin: -.15rem 0 .25rem 1.65rem; font-size: .72rem; color: #8a7e6e; }
.vm-perm__actions { position: sticky; bottom: 0; padding: .75rem 0; background: linear-gradient(to top, var(--vm-offwhite, #faf8f4) 70%, transparent); }
