/* Bruvich Comercial — mesma identidade visual do Sistema Clínicas (portal/_base.html):
   azul-marinho como destaque sobre um sistema branco/claro, Poppins em tudo,
   menu em pílula flutuante embaixo, quadros brancos com borda fina e cantos 14px. */
:root {
    --primary: #0E3A5F;
    --primary-dark: #092E4D;
    --primary-soft: #EAF3F7;
    --bg-page: #F7F8FA;
    --card-bg: #ffffff;
    --border: #E3E8EE;
    --text: #092E4D;
    --text-muted: #667085;
    --success-bg: #DDF7E8; --success-text: #159A5B; --success-icon: #159A5B;
    --warn-bg: #fef3c7; --warn-text: #b45309; --warn-icon: #f59e0b;
    --danger-bg: #fee2e2; --danger-text: #b91c1c; --danger-icon: #ef4444;
    --info-bg: #dbeafe; --info-text: #1d4ed8; --info-icon: #3b82f6;
    --purple-bg: #f3e8ff; --purple-text: #7e22ce; --purple-icon: #a855f7;
}
* { box-sizing: border-box; }
/* barras de rolagem invisíveis no sistema inteiro (o scroll continua funcionando) */
* { scrollbar-width: none !important; }
*::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
button, a, input, select, textarea, [role="button"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
body, body *, body *::before, body *::after { font-family: 'Poppins', -apple-system, "Segoe UI", Roboto, system-ui, sans-serif; }
body { margin: 0; color: var(--text); background: var(--bg-page); -webkit-font-smoothing: antialiased; }
a { color: inherit; }

.layout { display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
    background: var(--card-bg); border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: 0.7rem 1.5rem; position: sticky; top: 0; z-index: 36;
}
.brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; text-decoration: none; }
.brand-mark {
    width: 32px; height: 32px; border-radius: 9px; background: var(--primary);
    display: flex; align-items: center; justify-content: center; color: #fff;
    font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.brand-name { font-weight: 700; font-size: 0.95rem; color: var(--text); line-height: 1.2; }
.brand-sub { font-size: 0.7rem; color: var(--text-muted); }
.topbar-dir { display: flex; align-items: center; gap: 0.6rem; }

/* indicador "Bruvich trabalhando" no topo */
.ag-pill {
    display: none; align-items: center; gap: 0.45rem; padding: 0.35rem 0.8rem; border-radius: 999px;
    background: var(--info-bg); color: var(--info-text); font-size: 0.75rem; font-weight: 600; text-decoration: none;
}
.ag-pill.on { display: inline-flex; }
.ag-pill.espera { background: var(--warn-bg); color: var(--warn-text); }
.ag-pill .ponto { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulsar 1.2s infinite; }
@keyframes pulsar { 0%,100% { opacity: 1 } 50% { opacity: .3 } }

.sidefoot {
    border: none; border-radius: 999px; padding: 0.3rem 0.7rem 0.3rem 0.3rem; display: flex; align-items: center; gap: 0.55rem;
    cursor: pointer; background: none; text-align: left; font: inherit; color: inherit; outline: none; position: relative;
}
.sidefoot:hover { background: #F7F8FA; }
.avatar {
    width: 32px; height: 32px; border-radius: 999px; background: var(--primary-soft);
    color: var(--primary); display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.75rem; flex-shrink: 0;
}
.sidefoot-name { font-size: 0.8rem; font-weight: 600; color: var(--text); line-height: 1.2; }
.sidefoot-role { font-size: 0.7rem; color: var(--text-muted); }
.sidefoot-caret { width: 15px; height: 15px; color: var(--text-muted); }
.account-switch {
    position: absolute; top: calc(100% + 0.5rem); right: 1.5rem; width: min(300px, calc(100vw - 2rem));
    background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.14); padding: 1rem; z-index: 40;
}
.account-switch[hidden] { display: none; }
.account-switch-title { font-size: 0.8rem; font-weight: 700; margin: 0 0 0.15rem; }
.account-switch-hint { font-size: 0.72rem; color: var(--text-muted); margin: 0 0 0.75rem; }
.account-switch .btn { width: 100%; margin-top: 0.5rem; }

/* menu de navegação: pílula flutuante centralizada embaixo */
.bottomnav-wrap {
    position: fixed; left: 50%; bottom: 1.1rem; transform: translateX(-50%);
    z-index: 35; display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
    max-width: calc(100vw - 1.5rem);
}
.bottomnav-toggle {
    width: 32px; height: 32px; border-radius: 999px; background: var(--card-bg); border: 1px solid var(--border);
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.14); display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); cursor: pointer; padding: 0;
}
.bottomnav-toggle:hover { color: var(--text); }
.bottomnav-toggle svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.bottomnav-toggle.oculto svg { transform: rotate(180deg); }
.bottomnav {
    display: flex; align-items: center; gap: 0.15rem; background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 14px; box-shadow: 0 12px 32px rgba(16, 24, 40, 0.16); padding: 0.4rem;
    max-width: 100%; overflow-x: auto;
}
.bottomnav[hidden] { display: none; }
.bottomnav a {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
    padding: 0.45rem 0.8rem; border-radius: 8px; color: var(--text-muted); text-decoration: none;
    font-size: 0.65rem; font-weight: 600; white-space: nowrap; flex-shrink: 0; line-height: 1.1;
}
.bottomnav a svg { width: 19px; height: 19px; flex-shrink: 0; }
.bottomnav a:hover { background: #F7F8FA; }
.bottomnav a.active { background: var(--primary); color: #fff; }
.bottomnav .bn-badge {
    position: absolute; top: 1px; right: 6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
    background: #DC2626; border: 2px solid var(--card-bg); color: #fff; font-size: 0.6rem; font-weight: 700; line-height: 1;
    display: flex; align-items: center; justify-content: center;
}
.bottomnav a.active .bn-badge { border-color: var(--primary); }
.bottomnav .bn-sep { width: 1px; align-self: stretch; margin: 0.35rem 0.3rem; background: var(--border); flex-shrink: 0; }

.content { flex: 1; width: 100%; padding: 2rem 2.5rem 7.5rem; }
.page-header { margin-bottom: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.page-header h1 { margin: 0 0 0.2rem; font-size: 1.4rem; color: var(--text); }
.page-header p { margin: 0; color: var(--text-muted); font-size: 0.875rem; }
.header-acoes { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
h2 { font-size: 1rem; margin: 2rem 0 0.75rem; color: var(--text); }
h2:first-child { margin-top: 0; }

/* KPIs */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin: 0 0 1.5rem; }
.metric { background: var(--card-bg); border: 1px solid #EEF1F6; border-radius: 12px; padding: 16px 18px; box-shadow: 0 1px 3px rgba(17, 27, 77, 0.04); text-decoration: none; display: block; }
a.metric:hover { border-color: var(--primary); }
.metric .label { color: var(--text-muted); font-size: 0.76rem; font-weight: 600; }
.metric .valor { font-size: 1.4rem; font-weight: 700; color: var(--text); line-height: 1.15; margin-top: 0.4rem; }
.metric .valor.alerta { color: var(--danger-text); }
.metric .rodape { font-size: 0.66rem; color: #9AA3B2; margin-top: 0.35rem; }

/* grade do painel */
.mural { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quadro { background: var(--card-bg); border: 1px solid #EEF1F6; border-radius: 12px; padding: 16px 18px; box-shadow: 0 1px 3px rgba(17, 27, 77, 0.04); min-width: 0; }
.quadro.largo { grid-column: 1 / -1; }
.quadro-tit { font-size: 0.76rem; font-weight: 600; color: var(--text-muted); margin: 0 0 0.8rem; }
@media (max-width: 1100px) { .mural { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .mural { grid-template-columns: 1fr; } }
.bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.bars li { display: grid; grid-template-columns: minmax(80px, 140px) 1fr auto; align-items: center; gap: 10px; }
.bars .rot { font-size: 0.72rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars .trilha { height: 9px; background: #EEF1F6; border-radius: 999px; overflow: hidden; }
.bars .fill { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.bars .val { font-size: 0.72rem; font-weight: 600; color: var(--text); }
.atencao-lista { display: flex; flex-wrap: wrap; gap: 16px; }
.alerta-card {
    flex: 1 1 220px; background: #fff; border: 1px solid #EEF1F6; border-left: 4px solid var(--warn-icon);
    border-radius: 10px; padding: 13px 15px; display: flex; flex-direction: column;
}
.alerta-card.vermelho { border-left-color: var(--danger-icon); }
.alerta-card.azul { border-left-color: var(--info-icon); }
.alerta-card.roxo { border-left-color: var(--purple-icon); }
.alerta-card.verde { border-left-color: var(--success-icon); }
.alerta-tit { font-size: 0.78rem; font-weight: 700; margin-bottom: 5px; color: var(--warn-text); }
.alerta-card.vermelho .alerta-tit { color: var(--danger-text); }
.alerta-card.azul .alerta-tit { color: var(--info-text); }
.alerta-card.roxo .alerta-tit { color: var(--purple-text); }
.alerta-card.verde .alerta-tit { color: var(--success-text); }
.alerta-txt { font-size: 0.72rem; color: var(--text-muted); line-height: 1.45; flex: 1; }
.alerta-link { font-size: 0.72rem; font-weight: 600; color: var(--primary); text-decoration: none; margin-top: 9px; }
.alerta-link:hover { text-decoration: underline; }
.alerta-card form { margin-top: 9px; }
.alerta-card form .alerta-link { margin-top: 0; font-size: 0.72rem; font-weight: 600; }

/* tabelas */
.table-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; overflow: visible; margin-bottom: 0.5rem; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
th { color: var(--text-muted); font-weight: 600; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.03em; background: #fafbfc; }
thead tr:first-child th:first-child { border-top-left-radius: 14px; }
thead tr:first-child th:last-child { border-top-right-radius: 14px; }
td:not(:first-child), th:not(:first-child) { text-align: center; vertical-align: middle; }
td:first-child { font-weight: 600; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafbfc; }
td .sub { display: block; font-weight: 400; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.1rem; }
td a.nome { text-decoration: none; }
td a.nome:hover { color: var(--primary); text-decoration: underline; }
.empty { color: #9aa0ab; font-style: italic; padding: 1rem 0; text-align: center !important; vertical-align: middle; }
table td.empty { font-weight: 400; }
.pagination { display: flex; gap: 0.4rem; align-items: center; margin-top: 1rem; font-size: 0.85rem; color: var(--text-muted); }
.muted { color: var(--text-muted); font-size: 0.85rem; }
.placeholder { background: var(--card-bg); border: 1px dashed #d7d9e0; border-radius: 14px; padding: 3rem 2rem; color: var(--text-muted); text-align: center; grid-column: 1 / -1; }

.status { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.status-ativo, .status-ganho, .status-concluída, .status-ok, .status-aceita { background: var(--success-bg); color: var(--success-text); }
.status-perdido, .status-erro, .status-interrompida, .status-atrasado, .status-inativa, .status-descartada { background: var(--danger-bg); color: var(--danger-text); }
.status-respondeu, .status-reuniao, .status-executando, .status-nova, .status-hoje { background: var(--info-bg); color: var(--info-text); }
.status-pausado, .status-incompleta, .status-aguardando, .status-pesquisa { background: var(--warn-bg); color: var(--warn-text); }
.status-proposta { background: var(--purple-bg); color: var(--purple-text); }
.status-concluido, .status-neutro { background: #F1F2F4; color: #5B6472; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 0.4rem; background: var(--primary); color: #fff; padding: 0.55rem 1.1rem; border-radius: 8px; text-decoration: none; font-size: 0.85rem; font-weight: 600; line-height: 1.2; border: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--primary-dark); }
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-secondary { background: #fff; color: var(--text); border: 1px solid #d7d9e0; }
.btn-secondary:hover { background: #F7F8FA; }
.btn-perigo { background: #b91c1c; }
.btn-perigo:hover { background: #991b1b; }
.btn-pequeno { padding: 0.35rem 0.75rem; font-size: 0.78rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-filtros {
    height: 40px; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0 0.9rem; border-radius: 8px;
    border: 1px solid #d7d9e0; background: #fff; color: var(--text); font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.btn-filtros svg { width: 15px; height: 15px; color: var(--text-muted); }
.filtros-badge { background: var(--primary); color: #fff; border-radius: 999px; font-size: 0.7rem; min-width: 18px; height: 18px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; }
.link-editar { color: var(--primary); text-decoration: none; font-size: 0.82rem; font-weight: 500; background: none; border: none; cursor: pointer; padding: 0; }
.link-editar:hover { text-decoration: underline; }

/* busca */
.busca { position: relative; }
.busca input { height: 40px; width: 260px; padding: 0 0.75rem 0 2.1rem; border: 1px solid #d7d9e0; border-radius: 8px; font-size: 0.85rem; color: var(--text); background: #fff; }
.busca svg { position: absolute; left: 0.7rem; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-muted); }

/* coluna Ações: menu ⋮ horizontal */
.acoes { position: relative; display: inline-block; }
.acoes-btn {
    width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: #4b5563;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.acoes-btn:hover { background: #F7F8FA; }
.acoes-btn svg { width: 16px; height: 16px; }
.acoes-menu {
    position: absolute; right: 0; top: calc(100% + 4px); min-width: 210px; background: #fff; border: 1px solid var(--border);
    border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 24, 40, 0.16); padding: 0.35rem; z-index: 60; text-align: left;
}
.acoes-menu[hidden] { display: none; }
.acoes-menu a, .acoes-menu button {
    display: flex; align-items: center; gap: 0.55rem; width: 100%; padding: 0.5rem 0.65rem; border-radius: 8px;
    font-size: 0.8rem; font-weight: 500; color: var(--text); text-decoration: none; background: none; border: none; cursor: pointer; text-align: left;
}
.acoes-menu a:hover, .acoes-menu button:hover { background: #F7F8FA; }
.acoes-menu svg { width: 15px; height: 15px; color: var(--text-muted); flex-shrink: 0; }
.acoes-menu .perigo, .acoes-menu .perigo svg { color: #b91c1c; }
.acoes-menu .perigo:hover { background: #FEF2F2; }
.acoes-menu hr { border: none; border-top: 1px solid var(--border); margin: 0.3rem 0; }

/* popup de filtros (.sp-pop) */
.sp-wrap { position: relative; }
.sp-pop {
    position: absolute; right: 0; top: calc(100% + 0.4rem); width: 400px; max-width: calc(100vw - 2rem); z-index: 50;
    background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 32px rgba(30, 30, 80, 0.16); padding: 1rem 1.1rem;
}
.sp-pop[hidden] { display: none; }
.sp-pop-cab { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 0.8rem; }
.sp-pop-cab h3 { margin: 0; font-size: 0.95rem; }
.sp-pop-cab p { margin: 0.1rem 0 0; font-size: 0.75rem; color: var(--text-muted); }
.sp-secao { margin-bottom: 1rem; }
.sp-titulo { font-size: 0.8rem; font-weight: 700; margin-bottom: 0.45rem; }
.sp-radio-grupo { display: flex; flex-direction: column; gap: 0.45rem; }
.sp-radio { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; cursor: pointer; }
.sp-radio input { width: 15px; height: 15px; margin: 0; accent-color: var(--primary); }
.sp-rodape { display: flex; align-items: center; justify-content: space-between; padding-top: 0.9rem; border-top: 1px solid var(--border); }
.sp-rodape a { font-size: 0.8rem; color: var(--primary); text-decoration: none; font-weight: 600; }

/* modais */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,18,25,.45); z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 1rem 3rem; overflow-y: auto; }
.modal-overlay[hidden] { display: none; }
.modal-box { background: #fff; border-radius: 14px; width: 100%; max-width: 460px; box-shadow: 0 20px 50px rgba(16,24,40,.25); margin: auto 0; }
.modal-box.largo { max-width: 760px; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem 0.9rem; border-bottom: 1px solid var(--border); }
.modal-header h3 { margin: 0 0 0.15rem; font-size: 1rem; }
.modal-header p { margin: 0; font-size: 0.78rem; color: var(--text-muted); }
.modal-fechar { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--text-muted); line-height: 1; padding: 0; }
.modal-body { padding: 1rem 1.25rem 1.25rem; }
.modal-body p { font-size: 0.85rem; margin: 0 0 1rem; }
.modal-acoes { display: flex; justify-content: flex-end; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; }

/* formulários */
.form-card {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); margin-bottom: 1.25rem;
}
.form-card.estreito { max-width: 760px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.form-grid.tres { grid-template-columns: repeat(3, 1fr); }
.span-2 { grid-column: 1 / -1; }
fieldset { border: none; padding: 0; margin: 0 0 1.5rem; }
legend { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); margin-bottom: 0.75rem; padding: 0; }
label.rot, .form-card label:not(.sp-radio):not(.chk) { display: block; font-weight: 600; font-size: 0.82rem; margin-bottom: 0.3rem; color: var(--text); }
.form-card input[type=text], .form-card input[type=email], .form-card input[type=url], .form-card input[type=password], .form-card textarea, .campo {
    width: 100%; padding: 0.55rem 0.7rem; border: 1px solid #d7d9e0; border-radius: 8px; font-size: 0.875rem; color: var(--text); background: #fff;
}
.form-card textarea, textarea.campo { min-height: 5.5rem; resize: vertical; line-height: 1.5; }
.form-card input:focus, .form-card textarea:focus, .campo:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }
.form-card .actions { display: flex; gap: 0.75rem; margin-top: 0.5rem; flex-wrap: wrap; }
.dica { font-size: 0.74rem; color: var(--text-muted); margin: 0.3rem 0 0; }
.chk { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; cursor: pointer; font-weight: 500; }
.chk input { width: 16px; height: 16px; accent-color: var(--primary); margin: 0; }

/* select estilizado (equivalente ao portal/_styled_select.html) */
.ss { position: relative; width: 100%; }
.ss select { display: none; }
.ss-btn {
    width: 100%; min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
    padding: 0.5rem 0.7rem; border: 1px solid #d7d9e0; border-radius: 8px; background: #fff; color: var(--text);
    font-size: 0.875rem; cursor: pointer; text-align: left;
}
.ss-btn:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }
.ss-btn .ss-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-btn svg { width: 15px; height: 15px; color: var(--text-muted); flex-shrink: 0; }
.ss-pop {
    position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 70; background: #fff; border: 1px solid var(--border);
    border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 24, 40, 0.16); padding: 0.35rem; max-height: 260px; overflow-y: auto;
}
.ss-pop[hidden] { display: none; }
.ss-op { padding: 0.5rem 0.65rem; border-radius: 8px; font-size: 0.82rem; cursor: pointer; }
.ss-op:hover, .ss-op.foco { background: #F7F8FA; }
.ss-op.sel { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.ss.compacto { width: auto; min-width: 180px; }
.ss.compacto .ss-btn { height: 40px; }

/* campo de data (equivalente ao portal/_campo_data.html) e hora */
.cd { position: relative; width: 100%; }
.cd-btn {
    width: 100%; min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
    padding: 0.5rem 0.7rem; border: 1px solid #d7d9e0; border-radius: 8px; background: #fff; color: var(--text); font-size: 0.875rem; cursor: pointer;
}
.cd-btn .vazio { color: #9aa0ab; }
.cd-btn svg { width: 15px; height: 15px; color: var(--text-muted); }
.cd-pop {
    position: absolute; left: 0; top: calc(100% + 4px); z-index: 70; width: 280px; background: #fff; border: 1px solid var(--border);
    border-radius: 14px; box-shadow: 0 12px 32px rgba(30, 30, 80, 0.16); padding: 0.9rem;
}
.cd-pop[hidden] { display: none; }
.cd-nav { display: flex; align-items: center; gap: 0.1rem; margin-bottom: 0.5rem; }
.cd-nav button { background: none; border: none; color: var(--text-muted); cursor: pointer; width: 26px; height: 26px; border-radius: 6px; }
.cd-nav button:hover { background: var(--primary-soft); }
.cd-mes { font-size: 0.8rem; font-weight: 700; flex: 1; text-align: center; text-transform: capitalize; }
.cd-semana { display: grid; grid-template-columns: repeat(7, 1fr); font-size: 0.62rem; color: var(--text-muted); text-align: center; margin-bottom: 0.2rem; }
.cd-dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.cd-dia { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; cursor: pointer; color: var(--text); background: none; border: none; border-radius: 999px; }
.cd-dia:hover { background: var(--primary-soft); }
.cd-dia.fora { color: #CBD5E1; }
.cd-dia.hoje { outline: 1px solid var(--primary); }
.cd-dia.sel { background: var(--primary); color: #fff; font-weight: 700; }
.cd-rodape { display: flex; justify-content: space-between; margin-top: 0.6rem; }
.cd-rodape button { background: none; border: none; color: var(--primary); font-size: 0.74rem; font-weight: 600; cursor: pointer; }

.messages { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.messages li { padding: 0.75rem 1rem; border-radius: 10px; margin-bottom: 0.5rem; font-size: 0.875rem; }
.messages li.success { background: var(--success-bg); color: var(--success-text); }
.messages li.error { background: var(--danger-bg); color: var(--danger-text); }
.messages li.warning { background: var(--warn-bg); color: var(--warn-text); }
.messages li.info { background: var(--info-bg); color: var(--info-text); }

/* ficha (detalhe) */
.ficha-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.ficha-bloco { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 1.1rem 1.25rem; }
.ficha-bloco h3 { margin: 0 0 0.75rem; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); }
.ficha-bloco dl { margin: 0; display: grid; grid-template-columns: 150px 1fr; gap: 0.45rem 0.8rem; font-size: 0.82rem; }
.ficha-bloco dt { color: var(--text-muted); }
.ficha-bloco dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
.ficha-bloco dd.vazio { color: #b3b8c2; font-style: italic; }
.ficha-bloco dd a { color: var(--primary); }

/* quadros (grade de cartões, como Configurações) */
.quadros { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.cartao {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem; text-decoration: none; color: inherit;
    display: flex; flex-direction: column; gap: 0.6rem; position: relative;
}
a.cartao:hover { border-color: var(--primary); }
.cartao .ic { flex-shrink: 0; width: 46px; height: 46px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.cartao .ic svg { width: 22px; height: 22px; }
.cartao h3 { margin: 0; font-size: 1rem; }
.cartao p { margin: 0; font-size: 0.8rem; color: var(--text-muted); line-height: 1.45; }
.cartao .rodape { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 0.5rem; flex-wrap: wrap; }
.cartao.apagado { background: #F4F5F7; }

/* funil (kanban, mesmo desenho do Funil de Vendas) */
.kanban-scroll { overflow-x: auto; padding-bottom: 4px; }
.kanban { display: flex; align-items: stretch; gap: 14px; min-height: 60vh; }
.k-col { min-width: 240px; width: 240px; flex: 0 0 auto; background: #FAFBFD; border: 1px solid #EEF1F6; border-radius: 14px; display: flex; flex-direction: column; }
.k-col-head { padding: 0.85rem 0.8rem; display: flex; align-items: center; gap: 0.45rem; font-weight: 700; font-size: 0.82rem; }
.k-dot { width: 8px; height: 8px; border-radius: 999px; flex-shrink: 0; }
.k-dot.cinza { background: #94A3B8; } .k-dot.azul { background: #2563EB; } .k-dot.amarelo { background: #F5A623; }
.k-dot.roxo { background: #7C3AED; } .k-dot.verde { background: #159A5B; } .k-dot.vermelho { background: #DC2626; }
.k-dot.laranja { background: #EA8C1B; } .k-dot.rosa { background: #DD27B6; }
.k-count { margin-left: auto; color: #94A3B8; font-weight: 600; }
.k-body { padding: 0.6rem; display: flex; flex-direction: column; gap: 0.55rem; overflow-y: auto; flex: 1; }
.k-col.sobre .k-body { background: var(--primary-soft); outline: 2px dashed var(--primary); outline-offset: -4px; border-radius: 8px; }
.k-vazio { text-align: center; padding: 1.75rem 0.5rem; color: #94A3B8; font-size: 0.72rem; }
.k-card { background: #fff; border: 1px solid #EEF1F6; border-radius: 12px; padding: 0.7rem 0.75rem; cursor: grab; box-shadow: 0 1px 2px rgba(17, 27, 77, 0.05); text-decoration: none; display: block; }
.k-card:hover { box-shadow: 0 4px 12px rgba(17, 27, 77, 0.08); border-color: #E2E8F0; }
.k-card.arrastando { opacity: 0.4; }
.k-card-nome { font-weight: 700; font-size: 0.74rem; color: #111B4D; }
.k-card-sub { font-size: 0.7rem; color: #64748B; margin-top: 0.2rem; }
.k-card-rodape { display: flex; align-items: center; justify-content: space-between; margin-top: 0.45rem; gap: 0.4rem; }
.k-tag { font-size: 0.62rem; font-weight: 700; border-radius: 999px; padding: 0.05rem 0.45rem; background: var(--primary-soft); color: var(--primary); }
.k-tag.atraso { background: #FEF3C7; color: #B45309; }

/* fila de trabalho (Hoje) */
.fila { display: flex; flex-direction: column; gap: 0.75rem; }
.toque { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.15rem; display: grid; grid-template-columns: 1fr auto; gap: 0.6rem 1rem; align-items: start; }
.toque.atrasado { border-left: 4px solid var(--danger-icon); }
.toque-tit { font-weight: 700; font-size: 0.9rem; }
.toque-sub { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }
.toque-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.5rem; }
.toque-msg { grid-column: 1 / -1; background: #fafbfc; border: 1px solid #EEF1F6; border-radius: 10px; padding: 0.75rem 0.9rem; font-size: 0.8rem; white-space: pre-wrap; line-height: 1.5; max-height: 9.5rem; overflow: hidden; position: relative; }
.toque-msg.aberta { max-height: none; }
.toque-acoes { display: flex; gap: 0.45rem; flex-wrap: wrap; justify-content: flex-end; }

/* agente */
.ag-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 1100px) { .ag-grid { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.75rem; }
.chip { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.75rem; font-weight: 600; color: var(--text); cursor: pointer; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.ag-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; max-height: 52vh; overflow-y: auto; }
.ag-log li { font-size: 0.78rem; padding: 0.5rem 0.65rem; border-radius: 8px; background: #fafbfc; border: 1px solid #EEF1F6; white-space: pre-wrap; word-break: break-word; }
.ag-log li .h { color: #9AA3B2; font-size: 0.68rem; margin-right: 0.4rem; }
.ag-log li.modelo { background: var(--primary-soft); border-color: #d6e6ee; }
.ag-log li.erro { background: var(--danger-bg); color: var(--danger-text); border-color: #fecaca; }
.ag-log li.aviso { background: var(--warn-bg); color: var(--warn-text); border-color: #fde68a; }
.ag-log li .det { display: block; color: var(--text-muted); font-size: 0.7rem; margin-top: 0.2rem; }
.ag-plano { margin: 0; padding-left: 1.2rem; font-size: 0.8rem; line-height: 1.6; }
.ag-resultado { white-space: pre-wrap; font-size: 0.85rem; line-height: 1.55; background: #fafbfc; border: 1px solid #EEF1F6; border-radius: 10px; padding: 0.9rem 1rem; }
.ag-cab { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.ag-cab h3 { margin: 0; font-size: 0.95rem; }
.ag-opcoes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 0.9fr); gap: 0.6rem; margin-top: 0.9rem; }
.ag-opcoes > div { min-width: 0; }
.ag-opcoes label { font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-opcoes .ss, .ag-opcoes .ss-btn { width: 100%; min-width: 0; }
.ag-opcoes .ss-btn { font-size: 0.78rem; padding-left: 0.65rem; padding-right: 0.55rem; }
.ag-opcoes .ss-pop { right: auto; min-width: 100%; width: max-content; max-width: 340px; }
@media (max-width: 760px) { .ag-opcoes { grid-template-columns: 1fr; } }

.info-linha { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid #EEF1F6; font-size: 0.85rem; }
.info-linha:last-child { border-bottom: none; }
.info-linha span:first-child { color: var(--text-muted); }

@media (max-width: 900px) {
    .content { padding: 1.25rem 1rem 9rem; }
    .topbar { padding: 0.6rem 1rem; }
    .brand-sub, .sidefoot-info, .sidefoot-caret { display: none; }
    .page-header h1 { font-size: 1.2rem; }
    .table-card { overflow-x: auto; }
    table { min-width: 620px; }
    .form-grid, .form-grid.tres { grid-template-columns: 1fr; }
    .busca input { width: 100%; }
    .toque { grid-template-columns: 1fr; }
    .toque-acoes { justify-content: flex-start; }
}

/* ===================================================== Agenda (mesmo visual da Agenda das clínicas) */
.toolbar-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.toolbar-esquerda { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.toolbar-direita { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-left: auto; }
.visao-toggle { display: flex; border: 1px solid #d7d9e0; border-radius: 8px; overflow: hidden; }
.visao-toggle a { padding: 0.45rem 0.85rem; font-size: 0.8rem; text-decoration: none; color: var(--text-muted); background: #fff; }
.visao-toggle a + a { border-left: 1px solid #EEF0F4; }
.visao-toggle a.active { background: var(--primary); color: #fff; }
.icon-btn { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 1px solid #d7d9e0; border-radius: 8px; background: #fff; color: var(--text-muted); text-decoration: none; cursor: pointer; font-family: inherit; }
.periodo-nav { display: flex; align-items: center; gap: 0.3rem; }
.periodo-nav .icon-btn { font-weight: 700; font-size: 1rem; }
.ag-rotulo-data { color: var(--text); font-size: 0.85rem; font-weight: 600; white-space: nowrap; margin-left: 0.35rem; }
.ag-legenda { display: flex; gap: 0.75rem; flex-wrap: wrap; font-size: 0.72rem; color: var(--text-muted); margin-right: 0.5rem; }
.ag-legenda span { display: inline-flex; align-items: center; gap: 0.3rem; }
.ag-legenda i { width: 9px; height: 9px; border-radius: 999px; display: inline-block; }
.cor-dot { width: 10px; height: 10px; border-radius: 999px; display: inline-block; flex-shrink: 0; }
.ag-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ag-chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.65rem; border: 1px solid #d7d9e0; border-radius: 999px; font-size: 0.78rem; cursor: pointer; background: #fff; }
.ag-chip input { margin: 0; width: 14px; height: 14px; accent-color: var(--primary); }
.ag-chip:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.ag-riscado td { color: var(--text-muted); }
.ag-riscado td:nth-child(2) { text-decoration: line-through; }
.ag-modal-acoes { align-items: center; }
.ag-acoes-edicao { display: flex; gap: 0.5rem; margin-right: auto; flex-wrap: wrap; }
.ag-acoes-edicao[hidden] { display: none; }
.ag-btn-perigo { color: #b91c1c; }
.ag-btn-perigo:hover { background: #FEF2F2; }

.agenda-main { position: relative; overflow: hidden; background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 0.75rem; }
.fc { font-family: inherit; font-size: 0.82rem; }
.fc .fc-toolbar { display: none; }
.fc-theme-standard td, .fc-theme-standard th, .fc-theme-standard .fc-scrollgrid { border-color: var(--border); }
.fc-col-header-cell { background: #fafbfc; }
.fc-col-header-cell-cushion { color: var(--text); font-weight: 700; padding: 0.5rem 0; text-decoration: none; }
.fc .fc-daygrid-day-number { color: var(--text); text-decoration: none; font-size: 0.78rem; }
.fc-timegrid-slot-label-cushion { font-size: 0.68rem; color: var(--text-muted); }
.fc .fc-timegrid-slot { height: 2.6em; }
.fc-event { border-radius: 6px; border-width: 0 0 0 3px; padding: 1px 4px; cursor: pointer; }
.fc-timegrid-event .fc-event-main { padding: 3px 4px; }
.fc-daygrid-event { border-radius: 5px; }
.fc-timegrid-now-indicator-line { border-color: #1a1a1a !important; }
.fc-day-today { background: var(--primary-soft) !important; }
.fc .fc-highlight { background: rgba(14, 58, 95, 0.08); }
.fc .fc-more-link { color: var(--primary); font-weight: 600; }
.fc .fc-timegrid-axis-cushion { font-size: 0.68rem; color: var(--text-muted); }
.evt-conteudo { line-height: 1.25; overflow: hidden; text-align: left; height: 100%; color: inherit; }
.evt-hora { font-size: 0.7rem; opacity: 0.85; }
.evt-titulo { font-weight: 600; font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; }
.fc-daygrid-event .evt-titulo, .evt-conteudo.curto { white-space: nowrap; text-overflow: ellipsis; }
.evt-conteudo.curto .evt-hora { font-size: 0.7rem; }
.evt-sub { font-size: 0.7rem; opacity: 0.85; overflow: hidden; text-overflow: ellipsis; }
.fc-evt-cancelado { text-decoration: line-through; opacity: 0.6; }
.fc-evt-concluido { opacity: 0.7; }
.fc-evt-toque, .fc-evt-passo { border-left-width: 3px; }

#toast-wrap { position: fixed; right: 1.25rem; bottom: 6rem; z-index: 300; display: flex; flex-direction: column; gap: 0.5rem; }
.toast { padding: 0.7rem 1rem; border-radius: 10px; font-size: 0.85rem; font-weight: 500; box-shadow: 0 10px 28px rgba(16,24,40,.18); }
.toast.success { background: var(--success-bg); color: var(--success-text); }
.toast.error { background: var(--danger-bg); color: var(--danger-text); }
@media (max-width: 900px) { .ag-legenda { display: none; } }

/* bloco "Agenda de hoje" (painel e ficha da conta) */
.ag-item { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.6rem 0; border-bottom: 1px solid #EEF1F6; }
.ag-item:last-child { border-bottom: none; }
.ag-item .ag-hora { min-width: 3.6rem; font-weight: 700; font-size: 0.8rem; color: var(--text); }
.ag-item .ag-txt { font-size: 0.84rem; color: var(--text); }
.ag-item .ag-txt .sub { display: block; font-size: 0.74rem; color: var(--text-muted); }

.brand-logo { object-fit: cover; padding: 0; background: #090F1B; width: 40px; height: 40px; border-radius: 10px; }

/* ===================================================== Assistente Bruvich (mesmo visual da Linsee) */
#bv-fab {
    position: fixed; z-index: 2147483000; width: 58px; height: 58px; border-radius: 999px; overflow: hidden;
    border: 2px solid #fff; background: #090F1B; box-shadow: 0 10px 28px rgba(30,30,80,0.28);
    display: flex; align-items: center; justify-content: center; cursor: grab; padding: 0;
    touch-action: none; transition: box-shadow .15s ease, transform .15s ease; right: 22px; bottom: 110px;
}
#bv-fab:hover { box-shadow: 0 14px 34px rgba(30,30,80,0.34); }
#bv-fab:active { cursor: grabbing; }
#bv-fab.bv-arrastando { transform: scale(1.06); }
#bv-fab img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
#bv-fab.bv-trabalhando::after { content: ""; position: absolute; inset: 0; border-radius: 999px; box-shadow: inset 0 0 0 3px #F5A623; animation: bv-pulso 1.4s ease-in-out infinite; }
@keyframes bv-pulso { 50% { opacity: 0.35; } }
#bv-painel {
    position: fixed; z-index: 2147483000; width: 390px; max-width: calc(100vw - 24px);
    background: #fff; border: 1px solid #E9EDF5; border-radius: 18px;
    box-shadow: 0 8px 24px rgba(17,27,77,0.12), 0 28px 64px rgba(30,30,80,0.20); overflow: hidden;
    display: flex; flex-direction: column; height: min(76vh, 640px);
}
#bv-painel[hidden] { display: none !important; }
#bv-painel.bv-arquivo { outline: 2px dashed var(--primary); outline-offset: -4px; }
.bv-topo { display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1rem; border-bottom: 1px solid #EEF1F6; flex-shrink: 0; }
.bv-logo { width: 32px; height: 32px; object-fit: cover; border-radius: 8px; }
.bv-tit { flex: 1; min-width: 0; line-height: 1.15; }
.bv-tit strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--text); }
.bv-tit span { font-size: 0.7rem; color: #94A3B8; }
.bv-icone-topo { border: 0; background: none; color: #94A3B8; cursor: pointer; padding: 0.3rem; display: flex; border-radius: 8px; }
.bv-icone-topo:hover { background: #F1F5F9; color: #475569; }
.bv-icone-topo svg { width: 17px; height: 17px; }
.bv-chat { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.55rem; }
.bv-msg { max-width: 84%; padding: 0.6rem 0.8rem; border-radius: 14px; font-size: 0.82rem; line-height: 1.5; background: #F3F5F9; color: #1E293B; align-self: flex-start; white-space: pre-wrap; word-wrap: break-word; }
.bv-msg-user { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.bv-msg-bot { border-bottom-left-radius: 5px; }
.bv-msg-bot a { color: var(--primary); font-weight: 600; }
.bv-msg strong { font-weight: 700; }
.bv-pensando { color: #64748B; background: none; padding: 0.1rem 0.2rem; font-style: italic; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.bv-pensando .bv-pontos { display: inline-flex; gap: 3px; }
.bv-pensando .bv-pontos i { width: 5px; height: 5px; border-radius: 999px; background: #94A3B8; animation: bv-pulso 1s infinite; }
.bv-pensando .bv-pontos i:nth-child(2) { animation-delay: .2s; } .bv-pensando .bv-pontos i:nth-child(3) { animation-delay: .4s; }
.bv-pensando button { font-style: normal; border: 1px solid #E2E8F0; background: #fff; border-radius: 999px; padding: 0.15rem 0.6rem; font-size: 0.7rem; color: #64748B; cursor: pointer; font-family: inherit; }
.bv-autorizar { align-self: stretch; max-width: none; background: #FFF8EB; border: 1px solid #F5D9A8; white-space: normal; }
.bv-autorizar p { margin: 0 0 0.3rem; font-weight: 600; color: #7A4B00; }
.bv-autorizar pre { margin: 0 0 0.55rem; white-space: pre-wrap; font-size: 0.7rem; background: #fff; border: 1px solid #F1E4CC; border-radius: 8px; padding: 0.4rem; max-height: 120px; overflow: auto; }
.bv-autorizar .bv-botoes { display: flex; gap: 0.4rem; justify-content: flex-end; }
.bv-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.2rem 0.85rem 0.75rem; flex-shrink: 0; }
.bv-chips[hidden] { display: none !important; }
.bv-chips button { border: 1px solid #E2E8F0; background: #fff; color: #475569; border-radius: 999px; padding: 0.35rem 0.75rem; font-family: inherit; font-size: 0.74rem; font-weight: 500; cursor: pointer; white-space: nowrap; }
.bv-chips button:hover { background: #F8FAFC; border-color: #CBD5E1; color: #1E293B; }
.bv-linha { display: flex; align-items: center; gap: 0.4rem; padding: 0.7rem 0.8rem; border-top: 1px solid #EEF1F6; flex-shrink: 0; }
.bv-linha input[type="text"] { flex: 1; min-width: 0; height: 42px; border: 1px solid #E2E8F0; border-radius: 999px; padding: 0 1rem; font-family: inherit; font-size: 0.82rem; background: #F8FAFC; color: var(--text); }
.bv-linha input[type="text"]:focus { outline: none; background: #fff; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,58,95,0.12); }
.bv-redondo { width: 38px; height: 38px; flex-shrink: 0; border-radius: 999px; border: 1px solid #E2E8F0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; background: #F8FAFC; color: #475569; padding: 0; }
.bv-redondo[hidden] { display: none !important; }
.bv-redondo:hover { background: #EEF2F7; color: #1E293B; }
.bv-redondo svg { width: 17px; height: 17px; }
.bv-redondo.bv-ouvindo { background: #FEE2E2; color: #b91c1c; border-color: #FECACA; }
.bv-redondo.ativo { background: var(--primary); color: #fff; border-color: var(--primary); }
.bv-enviar { width: 42px; height: 42px; flex-shrink: 0; border-radius: 999px; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; }
.bv-enviar:hover { background: var(--primary-dark); }
.bv-enviar svg { width: 17px; height: 17px; }
.bv-anexo { display: flex; align-items: center; gap: 0.4rem; margin: 0 0.8rem; padding: 0.45rem 0.6rem; background: var(--primary-soft); border: 1px solid #D7DEF7; border-radius: 8px; font-size: 0.76rem; color: #334155; flex-shrink: 0; }
.bv-anexo[hidden] { display: none !important; }
.bv-anexo svg { width: 14px; height: 14px; color: #64748B; }
.bv-anexo-nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bv-anexo-x { border: 0; background: none; color: #64748B; font-size: 1.1rem; cursor: pointer; }
.bv-voz { display: flex; align-items: center; gap: 0.5rem; padding: 0 1rem 0.8rem; font-size: 0.75rem; color: #475569; flex-shrink: 0; }
.bv-voz[hidden] { display: none !important; }
.bv-voz-ponto { width: 9px; height: 9px; border-radius: 999px; background: #16A34A; animation: bv-pulso 1.2s infinite; }
.bv-voz button { margin-left: auto; border: 1px solid #E2E8F0; background: #fff; color: #64748B; border-radius: 999px; padding: 0.3rem 0.8rem; font-family: inherit; font-size: 0.7rem; cursor: pointer; }
@media print { #bv-wrap { display: none; } }
@media (max-width: 900px) { .bv-linha input[type="text"] { font-size: 16px; } }

/* ===================================================== Login (acesso pelo link) */
.login-fundo { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem 1rem; background: #1d2e52 linear-gradient(180deg, #25396a 0%, #1d2e52 55%, #182645 100%); background-attachment: fixed; }   /* azul escuro do topo do site bruvich.com.br */
.login-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 2rem 1.75rem 1.75rem; box-shadow: 0 18px 50px rgba(0,0,0,0.30); }
.login-logo { display: block; width: 132px; height: 132px; object-fit: cover; border-radius: 22px; margin: 0 auto 1.25rem; }
.login-tit { font-size: 1.2rem; margin: 0 0 0.3rem; text-align: center; color: var(--text); }
.login-sub { font-size: 0.82rem; color: var(--text-muted); text-align: center; margin: 0 0 1.25rem; }
.login-form label { display: block; font-weight: 600; font-size: 0.82rem; margin: 0.9rem 0 0.3rem; color: var(--text); }
.login-form input { width: 100%; height: 44px; border: 1px solid #d7d9e0; border-radius: 10px; padding: 0 0.85rem; font-family: inherit; font-size: 16px; color: var(--text); box-sizing: border-box; }
.login-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,58,95,0.12); }
.login-form .btn { width: 100%; height: 46px; margin-top: 1.4rem; font-size: 0.95rem; }
.login-rodape { margin-top: 1.25rem; font-size: 0.72rem; color: #fff; }
.bottomnav .bn-badge.bn-badge-verde { background: #16A34A; }
