/* ==========================================================================
   Camada visual (protótipo Fase 1): menu vivo, transições, carregamento e
   entradas animadas. Vem depois do style.css e só acrescenta; quem pede
   "reduzir movimento" no sistema recebe tudo parado (fim do arquivo).
   ========================================================================== */
:root {
  --menu-largura: 240px;
  --menu-recolhido: 76px;
  --mola: cubic-bezier(.34, 1.36, .5, 1);
  --suave: cubic-bezier(.2, .8, .2, 1);
}

/* ---------------------------------------------------------- menu lateral */
.sidebar {
  position: relative;
  width: var(--menu-largura);
  overflow: hidden;
  background: linear-gradient(165deg, #2a3c5c 0%, #1c2b45 48%, #121d30 100%);
  transition: width .32s var(--suave), padding .32s var(--suave);
  isolation: isolate;
}
.sidebar > *:not(.sidebar-fundo):not(.sidebar-pilula) { position: relative; z-index: 2; }

/* textura gerada (Codex) que deriva devagar + brilho que passa */
.sidebar-fundo {
  position: absolute; inset: -12%; z-index: 0; pointer-events: none;
  background: url("../img/visual/menu_textura.jpg") center / cover no-repeat;
  opacity: .5; mix-blend-mode: screen;
  animation: menu-deriva 38s ease-in-out infinite alternate;
}
.sidebar::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 60% at 0% 0%, rgba(96, 165, 250, .22), transparent 60%),
              linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .07) 50%, transparent 60%);
  background-size: 100% 100%, 300% 100%;
  animation: menu-brilho 9s ease-in-out infinite;
}
@keyframes menu-deriva { from { transform: translate3d(-3%, -2%, 0) scale(1.04); } to { transform: translate3d(3%, 3%, 0) scale(1.1); } }
@keyframes menu-brilho { 0%, 55% { background-position: 0 0, 160% 0; } 100% { background-position: 0 0, -60% 0; } }

/* pílula de vidro que desliza até o item ativo (e acompanha o mouse) */
.sidebar-pilula {
  position: absolute; left: 12px; right: 12px; top: 0; height: 40px; z-index: 1;
  border-radius: 11px; pointer-events: none; opacity: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .08));
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 6px 18px rgba(10, 17, 30, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
  backdrop-filter: blur(6px);
  transition: transform .45s var(--mola), height .3s var(--suave), opacity .25s ease, left .32s var(--suave), right .32s var(--suave);
}
.tem-pilula .nav-link.active, .tem-pilula .nav-link:hover { background: transparent; }

.sidebar-logo { position: relative; height: 72px; display: flex; align-items: center; justify-content: center; }
.sidebar-logo img { display: block; transition: opacity .25s ease, transform .32s var(--suave); }
.sidebar-logo .logo-cheio { max-width: 160px; width: 100%; height: auto; }
.sidebar-logo .logo-icone { position: absolute; width: 34px; height: auto; opacity: 0; transform: scale(.6) rotate(-20deg); }

.sidebar-recolher {
  position: absolute !important; top: 18px; right: 10px; z-index: 3 !important;
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; display: grid; place-items: center;
  opacity: 0; transition: opacity .2s ease, background .2s ease, transform .32s var(--suave);
}
.sidebar:hover .sidebar-recolher, .sidebar-recolher:focus-visible { opacity: 1; }
.sidebar-recolher:hover { background: rgba(255, 255, 255, .22); }
.sidebar-recolher svg { width: 15px; height: 15px; transition: transform .32s var(--suave); }

.nav-link { position: relative; gap: 12px; min-height: 40px; transition: color .2s ease; white-space: nowrap; }
.nav-ico { flex: 0 0 auto; width: 20px; height: 20px; display: grid; place-items: center; transition: transform .35s var(--mola); }
.nav-ico svg { width: 19px; height: 19px; stroke-width: 1.9; }
.nav-link:hover .nav-ico { transform: translateX(2px) scale(1.12); }
.nav-link.active .nav-ico { color: #60a5fa; filter: drop-shadow(0 0 6px rgba(96, 165, 250, .55)); }
.nav-txt, .nav-group-title, .sidebar-user, .presenca-texto { transition: opacity .2s ease; }
.nav-badge.pulsar { animation: badge-pulsar 1.1s ease 2; }
@keyframes badge-pulsar { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .7); transform: scale(1); } 40% { transform: scale(1.25); } 100% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); transform: scale(1); } }

/* menu recolhido: só ícones */
.menu-recolhido .sidebar { width: var(--menu-recolhido); padding-left: 10px; padding-right: 10px; }
.menu-recolhido .sidebar-pilula { left: 10px; right: 10px; }
.menu-recolhido .nav-txt, .menu-recolhido .nav-group-title, .menu-recolhido .sidebar-user,
.menu-recolhido .presenca-texto, .menu-recolhido .nav-link .nav-badge { opacity: 0; pointer-events: none; }
.menu-recolhido .nav-link { padding-left: 18px; }
.menu-recolhido .nav-group-title { height: 6px; overflow: hidden; }
.menu-recolhido .sidebar-logo .logo-cheio { opacity: 0; transform: scale(.7); }
.menu-recolhido .sidebar-logo .logo-icone { opacity: 1; transform: none; }
.menu-recolhido .sidebar-recolher { right: 25px; top: 76px; opacity: .85; }
.menu-recolhido .sidebar-recolher svg { transform: rotate(180deg); }
.menu-recolhido .nav-link .nav-ico::after {   /* bolinha no lugar do número da fila */
  content: ""; position: absolute; margin: -14px 0 0 16px; width: 8px; height: 8px; border-radius: 50%;
  background: #ef4444; opacity: var(--tem-badge, 0);
}

/* dica flutuante com o nome do item (menu recolhido) */
.menu-dica {
  position: fixed; z-index: 9000; pointer-events: none; padding: 6px 10px; border-radius: 8px;
  background: #121d30; color: #fff; font-size: 12.5px; font-weight: 600; box-shadow: 0 8px 24px rgba(10, 17, 30, .35);
  opacity: 0; transform: translateX(-6px); transition: opacity .15s ease, transform .2s var(--suave);
}
.menu-dica.visivel { opacity: 1; transform: none; }

/* ---------------------------------------------------------- barra do topo */
.topbar {
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  background-image: linear-gradient(rgba(255, 255, 255, .78), rgba(255, 255, 255, .78)),
                    linear-gradient(90deg, #3b82f6, #ccfbf1 40%, #ccfbf1 60%, #3b82f6);
  background-origin: border-box; background-clip: padding-box, border-box;
}
.topbar h1 { letter-spacing: -.01em; }
.topbar:has(> h1:empty):has(> .topbar-actions:empty) { display: none; }   /* páginas com cabeçalho próprio (Pacientes) */

/* ---------------------------------------------------------- transição entre telas (Chrome/Edge) */
@view-transition { navigation: auto; }
.sidebar { view-transition-name: menu; }
.main-area { view-transition-name: conteudo; }
::view-transition-old(conteudo) { animation: tela-sai .16s ease-in both; }
::view-transition-new(conteudo) { animation: tela-entra .32s var(--suave) both; }
@keyframes tela-sai { to { opacity: 0; transform: translateY(-6px); } }
@keyframes tela-entra { from { opacity: 0; transform: translateY(12px); } }

/* ---------------------------------------------------------- entradas em cascata e cartões vivos */
.surgir { animation: surgir .5s var(--suave) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes surgir { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.fc-tile, .stat-card, .fila-card, .fila-atendente, .kanban-card, .card {
  transition: transform .25s var(--suave), box-shadow .25s ease, border-color .25s ease;
}
.fc-tile:hover, .stat-card:hover, .fila-card:hover, .fila-atendente:hover, .kanban-card:hover {
  transform: translateY(-2px); box-shadow: 0 10px 24px rgba(28, 43, 69, .14);
}
.btn { transition: transform .15s ease, box-shadow .2s ease, background .2s ease, filter .2s ease; }
.btn:active { transform: scale(.97); }
.btn-primary:hover { box-shadow: 0 6px 16px rgba(28, 43, 69, .3); }

/* ---------------------------------------------------------- carregamento ("esqueleto") */
.esqueleto {
  position: relative; color: transparent !important; min-height: 92px; border-radius: 10px; overflow: hidden;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent) -200% 0 / 50% 100% no-repeat,
    linear-gradient(#e8eef8 0 0) 0 8px / 70% 14px no-repeat,
    linear-gradient(#e8eef8 0 0) 0 36px / 92% 14px no-repeat,
    linear-gradient(#e8eef8 0 0) 0 64px / 55% 14px no-repeat;
  animation: esqueleto 1.3s ease-in-out infinite;
}
@keyframes esqueleto { to { background-position: 300% 0, 0 8px, 0 36px, 0 64px; } }

/* ---------------------------------------------------------- telas vazias ilustradas (Codex) */
.vazio-ilustrado { text-align: center; padding: 18px 8px 8px; color: var(--muted); }
.vazio-ilustrado img { width: 120px; height: 120px; object-fit: contain; display: block; margin: 0 auto 8px; animation: flutuar 5s ease-in-out infinite; }
.vazio-ilustrado strong { display: block; color: var(--text); font-size: 14px; margin-bottom: 2px; }
@keyframes flutuar { 50% { transform: translateY(-6px); } }

/* ---------------------------------------------------------- login com parallax */
.auth-screen { position: relative; overflow: hidden; isolation: isolate; perspective: 1200px; }
.lg-camada { position: absolute; pointer-events: none; will-change: transform; transition: transform .6s var(--suave); }
.lg-fundo { inset: -6%; z-index: -3; background: url("../img/visual/login_fundo.jpg") center / cover no-repeat; filter: saturate(1.05); }
.lg-veu { inset: 0; z-index: -2; background: radial-gradient(80% 70% at 50% 45%, rgba(28, 43, 69, .25), rgba(10, 17, 30, .78)); }
.lg-objetos { z-index: -1; --lado: min(1000px, 96vw, 125vh); width: var(--lado); left: 50%; top: 50%; margin: calc(var(--lado) / -2) 0 0 calc(var(--lado) / -2); opacity: .9; }
.lg-objetos img { width: 100%; display: block; animation: flutuar 7s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(10, 17, 30, .35)); }
.lg-luz { z-index: -1; width: 520px; height: 520px; border-radius: 50%; left: 50%; top: 50%; margin: -260px 0 0 -260px;
  background: radial-gradient(circle, rgba(96, 165, 250, .35), transparent 65%); filter: blur(10px); }
.auth-card {
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 30px 80px rgba(10, 17, 30, .45), inset 0 1px 0 rgba(255, 255, 255, .9);
  transform-style: preserve-3d; transition: transform .5s var(--suave);
  animation: cartao-chega .8s var(--suave) both .1s;
}

@keyframes cartao-chega { from { opacity: 0; transform: translateY(28px) scale(.96) rotateX(8deg); } }


/* ---------------------------------------------------------- fundo pulsante da área de trabalho */
/* duas manchas de luz que "respiram" devagar + um brilho diagonal que atravessa de vez em quando */
.main-area { position: relative; isolation: isolate; }
.main-area::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 45% at 12% 8%, rgba(59, 130, 246, .16), transparent 70%),
    radial-gradient(45% 40% at 92% 85%, rgba(96, 165, 250, .18), transparent 70%),
    radial-gradient(35% 30% at 70% 20%, rgba(28, 43, 69, .07), transparent 70%);
  animation: fundo-respira 7s ease-in-out infinite alternate;
}
.main-area::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 42%, rgba(59, 130, 246, .10) 48%, rgba(255, 255, 255, .55) 50%, rgba(59, 130, 246, .10) 52%, transparent 58%) 0 0 / 300% 100% no-repeat;
  animation: fundo-brilho 12s ease-in-out infinite;
}
@keyframes fundo-respira {
  0%   { opacity: .5; }
  100% { opacity: 1; }
}
@keyframes fundo-brilho {          /* passa em ~2,5 s e descansa o resto do ciclo */
  0%, 72% { background-position: 130% 0; }
  92%, 100% { background-position: -30% 0; }
}
/* linha viva embaixo da barra do topo */
.topbar { position: relative; }
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #3b82f6 20%, #60a5fa 50%, #3b82f6 80%, transparent) 0 0 / 50% 100% no-repeat;
  animation: linha-corre 6s ease-in-out infinite;
}
@keyframes linha-corre { 0% { background-position: -60% 0; opacity: 0; } 15% { opacity: 1; } 60% { background-position: 160% 0; opacity: 1; } 61%, 100% { opacity: 0; } }

/* ---------------------------------------------------------- cartões do funil: destaque ao passar o mouse */
.lead-card {
  position: relative; overflow: hidden; cursor: pointer;
  transition: transform .28s var(--mola), box-shadow .28s ease, border-color .2s ease;
}
.lead-card::after {                /* reflexo de vidro que atravessa o cartão */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .7) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .8s var(--suave);
}
.lead-card:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(59, 130, 246, .55);
  box-shadow: 0 16px 32px -8px rgba(28, 43, 69, .28), 0 4px 10px rgba(28, 43, 69, .10), 0 0 0 1px rgba(59, 130, 246, .25);
}
.lead-card:hover::after { transform: translateX(120%); }
.lead-card.origem-instagram:hover { border-left-color: #C13584; }   /* a faixa da origem continua no destaque */
.lead-card.origem-facebook:hover { border-left-color: #1877F2; }
.lead-card:active { transform: translateY(-1px) scale(.995); transition-duration: .1s; }
.lead-card.dragging { transform: rotate(2deg) scale(1.02); }
/* coluna recebe o cartão: contorno pulsando */
.kanban-cards.drag-over, .kanban-column.drag-over { box-shadow: inset 0 0 0 2px rgba(59, 130, 246, .45); animation: coluna-pulsa 1.2s ease-in-out infinite; border-radius: 10px; }
@keyframes coluna-pulsa { 50% { box-shadow: inset 0 0 0 2px rgba(59, 130, 246, .15), 0 0 18px rgba(59, 130, 246, .25); } }


/* ---------------------------------------------------------- campos elegantes (todo o sistema) */
/* :where() tem peso zero: vale para qualquer campo que não tenha estilo próprio, sem brigar com os que já têm */
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="range"]):not([type="color"]), select, textarea),
.field input, .field select, .field textarea, .form-control {
  font: inherit; font-size: 13.5px; color: var(--text);
  padding: 10px 14px; border-radius: 10px;
  border: 1px solid rgba(28, 43, 69, .18);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 2px rgba(28, 43, 69, .04), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: border-color .2s ease, box-shadow .25s ease, background .2s ease;
  outline: none; max-width: 100%;
}
:where(input, select, textarea)::placeholder { color: #94a3b8; }
:where(input:not([type="checkbox"]):not([type="radio"]), select, textarea):hover,
.field input:hover, .field select:hover, .field textarea:hover, .form-control:hover { border-color: rgba(28, 43, 69, .34); }
:where(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus,
.field input:focus, .field select:focus, .field textarea:focus, .form-control:focus {
  border-color: #3b82f6; background: #fff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .14), 0 4px 14px rgba(28, 43, 69, .08);
}
:where(select), .field select, select.form-control {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
:where(input, select, textarea):disabled, :where(input, textarea)[readonly] { background-color: rgba(244, 246, 249, .6); color: var(--muted); }
.form-control { width: 100%; display: block; }
.ficha-grid input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .ficha-grid select, .ficha-grid textarea { width: 100%; }
/* ficha do paciente em modo "ver": o campo tem que parecer texto, sem caixa */
.modo-visualizacao input, .modo-visualizacao textarea, .modo-visualizacao select,
.modo-visualizacao .field input, .modo-visualizacao .field textarea, .modo-visualizacao .field select {
  background: transparent; background-image: none; border-color: transparent; box-shadow: none; backdrop-filter: none; padding-left: 0;
}
.btn, a.btn { text-decoration: none; }

/* ---------------------------------------------------------- cabeçalho de página, cartões e listas */
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--text); margin: 0; }
.page-subtitle { font-size: 13.5px; color: var(--muted); margin: 4px 0 0; }
.card {
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(10px);
  border: 1px solid rgba(28, 43, 69, .12); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(28, 43, 69, .05), 0 8px 24px -12px rgba(28, 43, 69, .18);
  margin-bottom: 16px; overflow: hidden;
}
.card-header, .card-title { font-size: 14px; font-weight: 700; color: var(--navy-dark); }
.card-header { padding: 14px 18px; border-bottom: 1px solid rgba(28, 43, 69, .1); background: linear-gradient(180deg, rgba(244, 246, 249, .9), rgba(255, 255, 255, 0)); }
.card-body { padding: 16px 18px; }
.table-wrap {
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(10px);
  border: 1px solid rgba(28, 43, 69, .12); border-radius: 14px; overflow: auto;
  box-shadow: 0 8px 24px -12px rgba(28, 43, 69, .18);
}
.table-wrap table.data-table th:first-child, .table-wrap table.data-table td:first-child { padding-left: 18px; }
.table-wrap table.data-table tbody tr { transition: background .15s ease; }
.table-wrap table.data-table tbody tr:hover { background: rgba(59, 130, 246, .06); }
.empty-title { font-size: 15px; font-weight: 600; color: var(--text); margin-top: 4px; }
.empty-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* barra de busca dos pacientes: uma faixa de vidro com tudo alinhado */
.pacientes-filtros {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 10px; margin-bottom: 18px; border-radius: 14px;
  background: rgba(255, 255, 255, .55); backdrop-filter: blur(10px);
  border: 1px solid rgba(28, 43, 69, .12); box-shadow: 0 8px 24px -14px rgba(28, 43, 69, .25);
}
.pacientes-filtros .input-busca {
  flex: 1; min-width: 220px; padding-left: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px center;
}
.pacientes-filtros select { min-width: 160px; }
.pacientes-filtros .btn { padding: 10px 16px; }

/* avisos e utilitários usados na tela da Meta */
.alert { padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 10px; border: 1px solid transparent; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-danger { background: var(--danger-bg); border-color: #fecaca; color: #991b1b; }
.btn-warning { background: #f59e0b; color: #fff; }
.btn-outline-secondary { background: transparent; color: var(--slate); border-color: rgba(28, 43, 69, .25); }
.btn-outline-secondary:hover { background: rgba(59, 130, 246, .06); }
.text-danger { color: var(--danger); }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }


/* ---------------------------------------------------------- aviso de mensagens novas no cartão do funil */
/* selo no canto superior direito, separado dos textos; o sino balança de tempos em tempos enquanto houver mensagem */
.lead-card .novo-msg-flag {
  position: absolute; top: 9px; right: 9px; z-index: 2; margin: 0;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px 3px 7px; border-radius: 999px;
  font-size: 12px; font-weight: 800; line-height: 1; color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 4px 12px rgba(99, 102, 241, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
  animation: selo-brilha 2.4s ease-in-out infinite;
}
.lead-card .novo-msg-flag .sino { width: 13px; height: 13px; transform-origin: 50% 8%; animation: sino-balanca 3.2s ease-in-out infinite; }
.lead-card.has-unread .lead-name { padding-right: 86px; }
.lead-card .novo-msg-flag .novo-msg-rotulo { font-weight: 600; letter-spacing: .01em; opacity: .95; }
@keyframes sino-balanca {
  0%, 62%, 100% { transform: rotate(0); }
  66% { transform: rotate(18deg); } 70% { transform: rotate(-16deg); } 74% { transform: rotate(12deg); }
  78% { transform: rotate(-8deg); } 82% { transform: rotate(4deg); } 86% { transform: rotate(0); }
}
@keyframes selo-brilha {
  0%, 100% { box-shadow: 0 4px 12px rgba(99, 102, 241, .45), 0 0 0 0 rgba(139, 92, 246, .45), inset 0 1px 0 rgba(255, 255, 255, .35); }
  50% { box-shadow: 0 4px 12px rgba(99, 102, 241, .45), 0 0 0 6px rgba(139, 92, 246, 0), inset 0 1px 0 rgba(255, 255, 255, .35); }
}


/* ---------------------------------------------------------- ajustes do Motos: logo (selo + nome) e selo discreto da fila */
.sidebar-logo { height: auto; min-height: 56px; justify-content: flex-start; gap: 10px; padding-right: 30px; }
.sidebar-logo-text { transition: opacity .2s ease; white-space: nowrap; }
.menu-recolhido .sidebar-logo { justify-content: center; padding-right: 0; }
.menu-recolhido .sidebar-logo-text { opacity: 0; position: absolute; pointer-events: none; }
.menu-recolhido .sidebar-recolher { top: 76px; }
.fila-selo { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255, 255, 255, .7); white-space: nowrap; cursor: help; }
.fila-selo-ponto { width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .18); }
.fila-selo a { color: var(--navy); font-weight: 600; text-decoration: none; cursor: pointer; }
.fila-selo a:hover { text-decoration: underline; }


/* login do Motos: só a asa da Marva, em vidro azul metálico, atrás do cartão (proporção 0.557) */
.lg-asa { z-index: -1; --w: min(1120px, 96vw); width: var(--w); left: 50%; top: 50%; margin: calc(var(--w) * -0.279) 0 0 calc(var(--w) * -0.5); opacity: .94; }
.lg-asa img { width: 100%; display: block; animation: flutuar 8s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(10, 17, 30, .45)) drop-shadow(0 0 28px rgba(59, 130, 246, .35)); }


/* menu "Baixar planilha" (Clientes) */
.menu-baixar { position: relative; display: inline-block; }
.menu-baixar > summary { list-style: none; cursor: pointer; }
.menu-baixar > summary::-webkit-details-marker { display: none; }
.menu-baixar-lista { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 250px; padding: 8px; display: grid; gap: 2px;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 16px 36px -12px rgba(18, 29, 48, .3); }
.menu-baixar-lista a { padding: 9px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--navy); text-decoration: none; }
.menu-baixar-lista a:hover { background: rgba(59, 130, 246, .08); }
.menu-baixar-lista small { padding: 6px 12px 4px; color: var(--muted); font-size: 11.5px; }

/* ---------------------------------------------------------- quem pediu menos movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  @view-transition { navigation: none; }
  .lg-camada { transform: none !important; }
}
