/* ============ Motion Check — design system (tema claro/escuro) ============ */
/* Identidade Motion Technology: marinho #000120, ciano #1BD9EF, verde-limao #92FB08. */
/* Cores de status (verde/laranja/vermelho) preservam significado fixo do sistema. */

:root {
  --marinho: #000120; --ciano: #1bd9ef; --verde-marca: #92fb08;
  --azul: #0e63d6; --azul-escuro: #052a6b;
  --verde: #16a34a; --vermelho: #dc2626; --laranja: #d97706;
  --fundo: #eef2f7; --card: #ffffff; --superficie-2: #f8fafc;
  --texto: #0f172a; --cinza: #5b6577; --borda: #e2e8f0; --input-bg: #ffffff;
  --azul-suave-bg: #dbeafe; --azul-suave-fg: #1e40af;
  --alerta-bg: #fef2f2; --alerta-borda: #fecaca;
  --sucesso-bg: #f0fdf4; --sucesso-borda: #bbf7d0;
  --menu-bg: #000120; --menu-fg: #c7d2e3; --menu-fg-ativo: #ffffff; --menu-accent: #1bd9ef;
  --raio: 10px;
  --sombra-card: 0 1px 3px rgba(2,6,23,.06);
  --sombra-modal: 0 8px 30px rgba(2,6,23,.10);
}
:root[data-theme="dark"] {
  --azul: #3b82f6; --azul-escuro: #9cc2ff;
  --fundo: #0a0f1f; --card: #131a2c; --superficie-2: #1a2238;
  --texto: #e6edf7; --cinza: #9aa6ba; --borda: #283449; --input-bg: #0f1728;
  --azul-suave-bg: #15294d; --azul-suave-fg: #cfe0ff;
  --alerta-bg: #2a1416; --alerta-borda: #5c2626;
  --sucesso-bg: #0f2417; --sucesso-borda: #1f5235;
  --menu-bg: #00040f;
  --sombra-card: 0 1px 3px rgba(0,0,0,.45);
  --sombra-modal: 0 8px 30px rgba(0,0,0,.6);
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--fundo); color: var(--texto); font-size: 15px;
  transition: background .2s ease, color .2s ease;
}
h1, h2, h3 { margin: 0 0 .5em; }
h2 { font-size: 1.4rem; }
a { color: var(--azul); text-decoration: none; }
.oculto { display: none !important; }
.muted { color: var(--cinza); font-size: .85em; }

/* ---- login ---- */
.tela-login { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 16px; }
.login-box { background: var(--card); border-radius: var(--raio); padding: 32px; width: 100%; max-width: 390px; box-shadow: var(--sombra-modal); border: 1px solid var(--borda); }
.login-logo-box { display: flex; justify-content: center; margin-bottom: 14px; }
.login-logo { height: 46px; width: auto; display: block; background: #000120; padding: 12px 20px; border-radius: 14px; }
.login-box h1 { text-align: center; color: var(--azul-escuro); font-size: 1.5rem; margin-bottom: 2px; }
.login-box .sub { text-align: center; color: var(--cinza); margin-top: 0; }
.login-powered { text-align: center; margin-top: 18px; font-size: .76rem; color: var(--cinza); letter-spacing: .02em; }
.rodape-login { position: fixed; left: 0; right: 0; bottom: 12px; text-align: center; font-size: .76rem; color: var(--cinza); letter-spacing: .02em; }
.login-tema { position: fixed; top: 12px; right: 14px; z-index: 250; }
.tema-switch { background: transparent; border: 0; padding: 0; cursor: pointer; line-height: 0; -webkit-tap-highlight-color: transparent; }
.tema-switch .ts-track { position: relative; display: inline-block; width: 58px; height: 28px; border-radius: 999px; background: #cbd5e1; transition: background .25s ease; box-shadow: inset 0 1px 2px rgba(2,6,23,.3); }
:root[data-theme="dark"] .tema-switch .ts-track { background: #0b1530; }
.tema-switch .ts-knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(2,6,23,.4); display: flex; align-items: center; justify-content: center; transition: transform .25s ease; }
:root[data-theme="dark"] .tema-switch .ts-knob { transform: translateX(30px); }
.tema-switch .ts-knob svg { width: 14px; height: 14px; }
.tema-switch .ts-sol { color: #f59e0b; display: block; }
.tema-switch .ts-lua { color: #1e293b; display: none; }
:root[data-theme="dark"] .tema-switch .ts-sol { display: none; }
:root[data-theme="dark"] .tema-switch .ts-lua { display: block; }
.tema-switch:focus-visible .ts-track { outline: 2px solid var(--azul); outline-offset: 2px; }

/* ---- formularios ---- */
label { display: block; margin-bottom: 14px; font-weight: 600; font-size: .9em; }
input, select, textarea {
  width: 100%; padding: 11px 12px; margin-top: 5px; border: 1px solid var(--borda);
  border-radius: 8px; font-size: 1rem; font-family: inherit; background: var(--input-bg); color: var(--texto);
}
input::placeholder, textarea::placeholder { color: var(--cinza); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--azul); border-color: var(--azul); }
.btn {
  display: inline-block; border: 0; border-radius: 8px; padding: 10px 18px; font-size: 1rem;
  font-weight: 600; cursor: pointer; background: var(--borda); color: var(--texto);
}
.btn:disabled { opacity: .6; cursor: wait; }
.btn-primario { background: var(--azul); color: #fff; }
.btn-primario:hover:not(:disabled) { filter: brightness(1.07); }
.btn-perigo { background: var(--vermelho); color: #fff; }
.btn-claro { background: var(--card); border: 1px solid var(--borda); color: var(--texto); }
.btn-grande { width: 100%; padding: 14px; font-size: 1.05rem; }
.btn-mini { padding: 5px 10px; font-size: .85rem; }
.alerta { background: var(--alerta-bg); color: var(--vermelho); border: 1px solid var(--alerta-borda); padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; white-space: pre-wrap; }
.sucesso { background: var(--sucesso-bg); color: var(--verde); border-color: var(--sucesso-borda); }

/* ---- campo de senha com botao mostrar/ocultar ---- */
.campo-senha { position: relative; margin-top: 5px; }
.campo-senha input { margin-top: 0; padding-right: 46px; }
.btn-ver-senha {
  position: absolute; top: 0; right: 0; height: 100%; width: 44px; padding: 0;
  border: 0; background: transparent; color: var(--cinza); cursor: pointer;
  display: flex; align-items: center; justify-content: center; border-radius: 0 8px 8px 0;
}
.btn-ver-senha:hover { color: var(--azul); }
.btn-ver-senha:focus-visible { outline: 2px solid var(--azul); outline-offset: -2px; }
.btn-ver-senha svg { width: 22px; height: 22px; }

/* ---- toast nao-bloqueante ---- */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  padding: 11px 18px; border-radius: 8px; font-size: .92rem; font-weight: 600;
  box-shadow: 0 4px 14px rgba(2,6,23,.14); opacity: 1; pointer-events: none; transition: opacity .3s ease;
}
.toast.toast-ok { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.toast.toast-erro { background: #fef2f2; color: var(--vermelho); border: 1px solid #fecaca; }
.toast.toast-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.toast.toast-sucesso { background: var(--sucesso-bg); color: var(--verde); border: 1px solid var(--sucesso-borda); }
.toast.saindo { opacity: 0; }

/* ---- pergunta informativa ---- */
.pergunta-informativa { background: var(--azul-suave-bg); }

/* ---- faixa de aviso de homologacao ---- */
.faixa-homolog {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: #fef3c7; color: #92400e; border-bottom: 1px solid #fcd34d;
  font-size: 12px; font-weight: 600; text-align: center; padding: 4px;
}
body.com-faixa-homolog { padding-top: 24px; }

/* ---- layout do painel (sidebar + header + conteúdo) ---- */
.layout { display: flex; min-height: 100vh; }
.menu {
  width: 240px; background: var(--menu-bg); color: var(--menu-fg); padding: 14px 12px;
  display: flex; flex-direction: column; gap: 2px; flex-shrink: 0;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
body.com-faixa-homolog .menu { top: 24px; height: calc(100vh - 24px); }
.menu .logo { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 1.1rem; font-weight: 700; padding: 6px 10px 16px; }
.menu .logo .logo-img { height: 30px; width: auto; display: block; }
.menu-nav { display: flex; flex-direction: column; gap: 3px; }
.menu a { color: var(--menu-fg); padding: 10px 12px; display: flex; align-items: center; gap: 11px; border-radius: 9px; font-size: .94rem; font-weight: 500; transition: background .12s ease, color .12s ease; }
.menu a .ico { width: 19px; height: 19px; flex-shrink: 0; opacity: .85; }
.menu a:hover { background: rgba(255,255,255,.07); color: #fff; }
.menu a.ativo { background: rgba(27,217,239,.14); color: #fff; }
.menu a.ativo .ico { opacity: 1; color: var(--menu-accent); }
.menu .rodape { margin-top: auto; padding: 14px 12px 4px; }
.menu .powered { display: block; font-size: .7rem; color: rgba(255,255,255,.5); letter-spacing: .02em; }

.area { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 22px; background: var(--card); border-bottom: 1px solid var(--borda); min-height: 58px;
}
body.com-faixa-homolog .topbar { top: 24px; }
.tb-esq { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tb-burger { display: none; background: transparent; border: 0; color: var(--texto); cursor: pointer; padding: 4px; }
.tb-burger .ico { width: 24px; height: 24px; }
.tb-crumb { display: flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--cinza); min-width: 0; }
.tb-crumb-base { font-weight: 600; color: var(--texto); }
.tb-crumb #tbCrumb { font-weight: 600; color: var(--texto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-dir { display: flex; align-items: center; gap: 12px; }
.conteudo { flex: 1; padding: 24px; width: 100%; max-width: 1240px; margin: 0 auto; }

.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--azul) 0%, var(--azul-escuro) 100%); flex-shrink: 0; }
.avatar-iniciais { width: 34px; height: 34px; font-size: .85rem; }
.avatar-grande { width: 64px; height: 64px; font-size: 1.4rem; }
:root[data-theme="dark"] .avatar { background: linear-gradient(135deg, #1bd9ef 0%, #0e63d6 100%); color: #00121a; }

.tb-user-wrap { position: relative; }
.tb-user { display: flex; align-items: center; gap: 9px; background: transparent; border: 1px solid transparent; border-radius: 99px; padding: 4px 10px 4px 4px; cursor: pointer; color: var(--texto); }
.tb-user:hover { background: var(--superficie-2); border-color: var(--borda); }
.tb-user-nome { font-size: .9rem; font-weight: 600; max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-user .ico-caret { width: 16px; height: 16px; color: var(--cinza); }
.tb-menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--card); border: 1px solid var(--borda); border-radius: 12px; box-shadow: var(--sombra-modal); padding: 6px; min-width: 204px; z-index: 60; }
.tb-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--texto); font-size: .9rem; font-weight: 500; }
.tb-menu a .ico { width: 17px; height: 17px; color: var(--cinza); }
.tb-menu a:hover { background: var(--superficie-2); }
.tb-sep { height: 1px; background: var(--borda); margin: 5px 6px; }

.perfil-card { max-width: 680px; }
.perfil-topo { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--borda); margin-bottom: 16px; }
.perfil-nome { font-size: 1.25rem; font-weight: 700; }
.perfil-id .tag { margin-top: 6px; }
.perfil-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 24px; }
.perfil-grid > div { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.rotulo { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--cinza); font-weight: 700; }
.perfil-acoes { margin-top: 18px; }
.perfil-obs { margin-top: 12px; }
.dica-senha { margin: -8px 0 10px; font-size: .82rem; }

.vazio { text-align: center; padding: 46px 20px; color: var(--cinza); }
.vazio .vazio-ico { width: 52px; height: 52px; margin: 0 auto 14px; color: var(--borda); }
.vazio h3 { color: var(--texto); margin-bottom: 6px; font-size: 1.05rem; }
.vazio p { margin: 0 auto; max-width: 360px; font-size: .9rem; }

@media (max-width: 860px) {
  .menu {
    position: fixed; left: 0; top: 0; height: 100vh; z-index: 120; width: 250px;
    transform: translateX(-100%); transition: transform .25s ease; box-shadow: 0 0 40px rgba(0,0,0,.45);
  }
  body.com-faixa-homolog .menu { top: 0; height: 100vh; }
  body.menu-aberto .menu { transform: translateX(0); }
  body.menu-aberto::after { content: ''; position: fixed; inset: 0; background: rgba(2,6,23,.5); z-index: 110; }
  .tb-burger { display: inline-flex; }
  .topbar { padding: 10px 14px; }
  .tb-user-nome { display: none; }
  .tb-crumb-base, .tb-crumb-sep { display: none; }
  .conteudo { padding: 16px 14px; }
}

/* ---- cards / tabelas ---- */
.card { background: var(--card); border-radius: var(--raio); padding: 18px; margin-bottom: 16px; box-shadow: var(--sombra-card); border: 1px solid var(--borda); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card); border-radius: var(--raio); padding: 16px; text-align: center; box-shadow: var(--sombra-card); border: 1px solid var(--borda); }
.kpi .num { font-size: 1.9rem; font-weight: 800; color: var(--azul-escuro); }
.kpi .rotulo { color: var(--cinza); font-size: .82em; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--raio); overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--borda); font-size: .92em; }
th { background: var(--superficie-2); color: var(--cinza); font-size: .8em; text-transform: uppercase; letter-spacing: .03em; }
tr:hover td { background: var(--superficie-2); }
.tabela-scroll { overflow-x: auto; border-radius: var(--raio); box-shadow: var(--sombra-card); }

.tag { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .78em; font-weight: 700; }
.tag-verde { background: #dcfce7; color: #166534; }
.tag-vermelho { background: #fee2e2; color: #991b1b; }
.tag-laranja { background: #fef3c7; color: #92400e; }
.tag-azul { background: #dbeafe; color: #1e40af; }
.tag-cinza { background: #e2e8f0; color: #475569; }

.barra-acoes { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filtros { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.filtros label { margin-bottom: 0; }

/* ---- modal ---- */
.modal-fundo { position: fixed; inset: 0; background: rgba(2,6,23,.5); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 14px; }
.modal { background: var(--card); color: var(--texto); border-radius: var(--raio); padding: 22px; width: 100%; max-width: 620px; max-height: 92vh; overflow-y: auto; border: 1px solid var(--borda); }
.modal h3 { margin-bottom: 14px; }
.modal .acoes { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.linha-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check-linha { display: flex; align-items: center; gap: 8px; font-weight: 500; margin-bottom: 8px; }
.check-linha input { width: auto; margin: 0; }

/* ---- termos de uso (modal bloqueante LGPD) ---- */
.termos-scroll {
  max-height: 48vh; overflow-y: auto; border: 1px solid var(--borda); border-radius: 8px;
  padding: 12px 14px; background: var(--superficie-2); margin-bottom: 12px;
}
.termos-scroll h4 { margin: 12px 0 6px; }
.termos-scroll h4:first-child { margin-top: 0; }
.pre-linha { white-space: pre-wrap; font-size: .9em; margin: 0 0 8px; }
.aviso-homologacao {
  background: #fef3c7; color: #92400e; border: 1px solid #fde68a;
  padding: 8px 12px; border-radius: 8px; font-size: .88em; font-weight: 600; margin-bottom: 12px;
}

/* ---- preenchimento (mobile-first) ---- */
.preencher { max-width: 640px; margin: 0 auto; }
.pergunta-card { background: var(--card); border-radius: var(--raio); padding: 16px; margin-bottom: 12px; box-shadow: var(--sombra-card); border: 1px solid var(--borda); }
.pergunta-card .titulo { font-weight: 700; margin-bottom: 10px; }
.pergunta-card .obrig { color: var(--vermelho); }
.opcoes-botoes { display: flex; gap: 8px; flex-wrap: wrap; }
.opcao-btn {
  flex: 1; min-width: 90px; padding: 13px 10px; border: 2px solid var(--borda); border-radius: 8px;
  background: var(--card); color: var(--texto); font-size: 1rem; font-weight: 600; cursor: pointer; text-align: center;
}
.opcao-btn.sel { border-color: var(--azul); background: var(--azul-suave-bg); color: var(--azul-suave-fg); }
.opcao-btn.sel-na { border-color: var(--cinza); background: var(--borda); color: var(--texto); }
.fotos-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.fotos-row img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; border: 1px solid var(--borda); }
.foto-thumb { position: relative; }
.foto-thumb button { position: absolute; top: -6px; right: -6px; background: var(--vermelho); color: #fff; border: 0; border-radius: 99px; width: 44px; height: 44px; min-width: 44px; min-height: 44px; cursor: pointer; font-size: 16px; line-height: 1; transform: translate(12px, -12px); }
canvas.assinatura { width: 100%; height: 170px; border: 2px dashed var(--borda); border-radius: 8px; background: #fff; touch-action: none; }
.rodape-envio { position: sticky; bottom: 0; background: var(--fundo); padding: 12px 0; display: flex; gap: 10px; }
.rodape-envio .btn { flex: 1; padding: 14px; }
.info-sla { font-size: .85em; color: var(--cinza); }

/* ---- lista de tarefas (operacional) ---- */
.tarefa {
  background: var(--card); border-radius: var(--raio); padding: 16px; margin-bottom: 10px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  box-shadow: var(--sombra-card); border: 1px solid var(--borda); cursor: pointer;
}
.tarefa:active { transform: scale(.99); }
.tarefa .nome { font-weight: 700; }

/* ---- barras simples do dashboard ---- */
.barras { display: flex; align-items: flex-end; gap: 4px; height: 120px; }
.barras .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.barras .bar { width: 100%; background: var(--azul); border-radius: 4px 4px 0 0; min-height: 3px; }
.barras .leg { font-size: .62em; color: var(--cinza); transform: rotate(-45deg); white-space: nowrap; }

/* ---- relatorio / impressao ---- */
.relatorio .cab { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-bottom: 2px solid var(--texto); padding-bottom: 10px; margin-bottom: 14px; }
.relatorio .cab .marca { display: flex; align-items: center; gap: 8px; }
.relatorio .cab .marca img { height: 26px; width: auto; }
.relatorio table { box-shadow: none; }
.conf-num { font-size: 2.2rem; font-weight: 800; }
@media print {
  :root { --fundo: #fff; --card: #fff; --texto: #0f172a; --borda: #ccc; --superficie-2: #fff; --cinza: #555; --input-bg: #fff; }
  .menu, .topbar, .barra-acoes, .topo-mobile, .nao-imprimir, .faixa-homolog, .login-tema { display: none !important; }
  body { background: #fff; color: #000; }
  body.com-faixa-homolog { padding-top: 0; }
  .conteudo { padding: 0; max-width: none; }
  .card, table { box-shadow: none; border: 1px solid #ccc; }
  .card { page-break-inside: avoid; }
  tr { page-break-inside: avoid; }
  .foto-thumb { page-break-inside: avoid; }
}

/* ---- utilitario: botao de foto com alvo 44px ---- */
.btn-foto { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }

/* ===== Fluxo de senhas (login: lembrar/esqueci, modal, tela definir-senha) ===== */
.login-extra { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 12px; flex-wrap: wrap; }
.lembrar { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; color: var(--cinza); font-size: .9rem; user-select: none; }
.lembrar input { width: 16px; height: 16px; margin: 0; accent-color: var(--azul); }
.link-esqueci { color: var(--azul); font-size: .9rem; text-decoration: none; }
.link-esqueci:hover { text-decoration: underline; }
.voltar-login { text-align: center; margin-top: 16px; font-size: .9rem; }
.voltar-login a { color: var(--cinza); text-decoration: none; }
.voltar-login a:hover { color: var(--azul); text-decoration: underline; }
.req-list { list-style: none; padding: 12px 14px; margin: 12px 0; background: var(--superficie-2); border: 1px solid var(--borda); border-radius: 8px; font-size: .86rem; color: var(--cinza); }
.req-list li { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.req-list li.req-ok { color: var(--verde); }
.req-ico { display: inline-block; width: 16px; text-align: center; font-weight: 700; }
.ok-box { background: var(--sucesso-bg); color: var(--verde); border: 1px solid var(--sucesso-borda); padding: 12px 14px; border-radius: 8px; text-align: center; font-weight: 700; margin-bottom: 10px; }
.mc-modal-overlay { position: fixed; inset: 0; background: rgba(2,6,23,.5); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 1000; }
.mc-modal { background: var(--card); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra-modal); width: 100%; max-width: 400px; padding: 22px; }
.mc-modal h3 { margin: 0 0 6px; color: var(--azul-escuro); }
.mc-modal-sub { color: var(--cinza); font-size: .9rem; margin: 0 0 14px; }
.mc-modal label { display: block; margin-bottom: 4px; font-size: .9rem; color: var(--texto); }
.mc-modal input { width: 100%; padding: 10px 12px; border: 1px solid var(--borda); border-radius: 8px; background: var(--input-bg); color: var(--texto); }
.mc-modal-acoes { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.mc-modal-msg { margin-top: 12px; padding: 10px 12px; border-radius: 8px; font-size: .88rem; }
.mc-modal-ok { background: var(--sucesso-bg); color: var(--verde); border: 1px solid var(--sucesso-borda); }
.mc-modal-info { background: var(--azul-suave-bg); color: var(--azul-suave-fg); border: 1px solid var(--azul-suave-bg); }

/* ---- avatar com foto + prévia de upload ---- */
.avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar.tem-foto { background: none; }
.foto-preview { display: flex; justify-content: center; margin: 12px 0; }
.avatar-img-prev { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 2px solid var(--borda); }
.foto-preview .avatar-grande { width: 96px; height: 96px; font-size: 1.9rem; }
input[type=file] { padding: 9px 10px; background: var(--input-bg); border: 1px dashed var(--borda); border-radius: 8px; cursor: pointer; }

/* ---- gráfico de linha (SVG) do dashboard ---- */
.grafico { width: 100%; height: auto; display: block; margin-top: 4px; }
.gc-grid { stroke: var(--borda); stroke-width: 1; }
.gc-axis { fill: var(--cinza); font-size: 10px; }
.gc-area { fill: var(--azul); opacity: .12; }
.gc-linha { fill: none; stroke: var(--azul); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.gc-dot { fill: var(--azul); stroke: var(--card); stroke-width: 1.5; }
.vazio-mini { padding: 24px 0; text-align: center; }

/* ---- rodapé Motion no checklist preenchido (tela + impressão) ---- */
.relatorio-rodape { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--borda); color: var(--cinza); font-size: .8rem; letter-spacing: .02em; }
.relatorio-rodape .rr-logo { height: 20px; width: auto; background: #000120; padding: 4px 7px; border-radius: 5px; }
@media print { .relatorio-rodape { border-top: 1px solid #ccc; color: #555; } }

/* Lixeira: painel lateral de filtros */
.lx-layout { display: grid; grid-template-columns: 250px 1fr; gap: 16px; align-items: start; }
.lx-painel { display: flex; flex-direction: column; gap: 10px; padding: 14px; position: sticky; top: 12px; }
.lx-painel-cab { display: flex; align-items: center; justify-content: space-between; }
.lx-painel label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; color: var(--cinza); }
.lx-painel input, .lx-painel select { width: 100%; }
.lx-grupo { display: flex; flex-direction: column; gap: 6px; }
.lx-grupo .lx-leg { font-size: .82rem; color: var(--cinza); }
.lx-grupo .lx-mini { flex-direction: row; align-items: center; gap: 6px; }
.lx-grupo .lx-mini input { flex: 1; }
@media (max-width: 760px) { .lx-layout { grid-template-columns: 1fr; } .lx-painel { position: static; } }

/* Busca + ordenação nas listas dos menus */
.lista-busca { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.lista-busca input[type="search"] { flex: 0 1 320px; min-width: 160px; }
.lista-busca .lb-info { font-size: .82rem; white-space: nowrap; }
th.th-ord { cursor: pointer; user-select: none; position: relative; }
th.th-ord:hover { color: var(--primaria); }
th.th-ord::after { content: '↕'; opacity: .35; font-size: .8em; margin-left: 5px; }
th.th-ord[data-ord="asc"]::after { content: '↑'; opacity: 1; }
th.th-ord[data-ord="desc"]::after { content: '↓'; opacity: 1; }

/* Construtor visual de checklist (cards + drag-drop + preview) */
.cb-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 8px 0 4px; }
.cb-cab-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.cb-status { font-size: .72rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }
.cb-status-on { color: #137a37; background: rgba(19,122,55,.12); }
.cb-status-off { color: #9a6700; background: rgba(154,103,0,.12); }
.cb-dica { font-size: .8rem; }
.cb-lista { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.cb-vazio { padding: 26px; text-align: center; border: 1px dashed var(--borda); border-radius: 12px; }
.cb-card { display: flex; align-items: center; gap: 12px; background: var(--card, #fff); border: 1px solid var(--borda); border-radius: 12px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: box-shadow .15s, border-color .15s; }
.cb-card:hover { border-color: var(--primaria); box-shadow: 0 3px 10px rgba(0,0,0,.08); }
.cb-card.cb-arrastando { opacity: .45; border-style: dashed; }
.cb-handle { cursor: grab; color: var(--cinza); font-size: 1.2rem; line-height: 1; padding: 0 2px; user-select: none; }
.cb-handle:active { cursor: grabbing; }
.cb-num { min-width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--primaria); color: #fff; font-size: .8rem; font-weight: 600; flex: none; }
.cb-corpo { flex: 1; min-width: 0; }
.cb-titulo { font-weight: 600; }
.cb-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.cb-tipo { font-size: .72rem; font-weight: 600; color: var(--primaria); background: rgba(37,99,235,.10); padding: 2px 8px; border-radius: 6px; }
.cb-flag { font-size: .72rem; color: var(--cinza); background: var(--fundo, #f3f4f6); padding: 2px 8px; border-radius: 6px; }
.cb-acoes { display: flex; gap: 6px; flex: none; }
@media (max-width: 640px) {
  .cb-card { flex-wrap: wrap; }
  .cb-acoes { width: 100%; justify-content: flex-end; margin-top: 4px; }
}
/* Pré-visualização */
.pv-scroll { max-height: 60vh; overflow: auto; padding: 4px 2px; display: flex; flex-direction: column; gap: 14px; }
.pv-q { border-bottom: 1px solid var(--borda); padding-bottom: 12px; }
.pv-q:last-child { border-bottom: none; }
.pv-qt { font-weight: 600; margin-bottom: 6px; }
.pv-ob { color: #c92a2a; }
.pv-q input, .pv-q textarea { width: 100%; max-width: 340px; }
.pv-ops { display: flex; flex-direction: column; gap: 5px; }
.pv-ops label { font-weight: 400; display: flex; align-items: center; gap: 7px; }
.pv-nota { font-size: .82rem; color: var(--cinza); }
.pv-info .pv-qt { color: var(--primaria); border-left: 3px solid var(--primaria); padding-left: 8px; }

/* Logo do cliente (upload em filial/modelo + exibição no relatório) */
.logo-box { display: flex; flex-direction: column; gap: 7px; padding: 12px; border: 1px solid var(--borda); border-radius: 10px; margin: 4px 0; background: var(--fundo, #f9fafb); }
.logo-lbl { font-size: .82rem; font-weight: 600; color: var(--cinza); }
.logo-row { min-height: 24px; }
.logo-prev { max-height: 56px; max-width: 180px; border-radius: 6px; background: #fff; border: 1px solid var(--borda); padding: 4px; object-fit: contain; }
.logo-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.logo-dica { font-size: .74rem; }
.rel-logo-cli { max-height: 60px; max-width: 200px; object-fit: contain; margin-right: 16px; border-radius: 6px; }
@media (max-width: 640px) { .rel-logo-cli { max-height: 44px; margin-bottom: 8px; } }
