/* Padrão visual STORK: menu lateral branco, barra superior, cabeçalho de página, diálogos. Carregado depois de stork.css. */
:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f8f9fd;
  --border: #dfe3f2;
  --text: #2b3150;
  --muted: #6b7190;
  --accent: #2c2e76;
  --accent-hover: #22245e;
  --accent-soft: #edf0fb;
  --accent-text: #ffffff;
  --sidebar: #ffffff;
  --sidebar-text: #2b3150;
  --ok: #1f7a4a;
  --ok-soft: #e3f4ea;
  --warn: #8a5a00;
  --warn-soft: #fdf1d8;
  --erro: #b42318;
  --erro-soft: #fde7e5;
  --info: #2c2e76;
  --info-soft: #edf0fb;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(43, 49, 80, .04);
  --foco: 0 0 0 3px rgba(44, 46, 118, .25);
}
:root[data-theme="dark"] {
  --bg: #12142a;
  --surface: #1a1d3a;
  --surface-2: #20244a;
  --border: #2d3260;
  --text: #e6e8f5;
  --muted: #a3a8c9;
  --accent: #8f94f0;
  --accent-hover: #a7abf5;
  --accent-soft: #262b5c;
  --accent-text: #12142a;
  --sidebar: #1a1d3a;
  --sidebar-text: #e6e8f5;
  --info: #a7abf5;
  --info-soft: #262b5c;
}

body { font: 13px/1.45 Arial, Helvetica, sans-serif; }
:focus-visible { outline: none; box-shadow: var(--foco); border-radius: 6px; }

/* Menu lateral */
.sidebar { width: 250px; background: var(--sidebar); color: var(--sidebar-text); border-right: 1px solid var(--border); }
.brand { padding: 20px 20px 14px; }
.sidebar .brand strong { color: var(--accent); font-size: 17px; letter-spacing: .08em; }
.brand small { color: var(--muted); font-size: 12px; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); }
.workspace { margin: 0 14px 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.workspace span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.workspace strong { display: block; font-size: 14px; }
.workspace select { margin-top: 6px; padding: 5px 8px; font-size: 13px; }
.sidebar nav { padding: 4px 12px 12px; }
.sidebar nav a { color: var(--sidebar-text); padding: 8px 10px; border-radius: 8px; }
.sidebar nav a:hover { background: var(--surface-2); text-decoration: none; }
.sidebar nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.menu summary {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin-top: 4px; border-radius: 8px;
  color: var(--muted); opacity: 1; font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
}
.menu summary::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-right: 1.6px solid; border-bottom: 1.6px solid; transform: rotate(-45deg); float: none; }
.menu details[open] summary::after { transform: rotate(45deg); }
.menu summary:hover, .menu summary:focus-visible { background: var(--surface-2); color: var(--text); }
.menu details.atual summary { color: var(--accent); }
.menu details a { padding-left: 38px; font-size: 13.5px; }
.sidebar-foot { display: flex; align-items: center; gap: 8px; padding: 14px; border-top: 1px solid var(--border); }
.sidebar-foot .me { flex: 1; min-width: 0; color: var(--text); }
.sidebar-foot .me strong { display: block; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sidebar-foot .me > span:last-child { min-width: 0; overflow: hidden; }
.sidebar-foot form { margin: 0; }
.avatar { background: var(--accent-soft); color: var(--accent); font-weight: 700; }

/* Barra superior */
.topbar { min-height: 72px; padding: 12px 32px; gap: 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.trilha { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); }
.trilha ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.trilha li + li::before { content: "›"; margin-right: 6px; }
.trilha a { color: var(--muted); }
.trilha [aria-current] { color: var(--text); font-weight: 700; }
.busca-global input { width: 280px; margin: 0; padding-left: 34px; background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7190' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 10px center / 16px; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; color: var(--text); }
.icon-btn:hover { background: var(--surface-2); }

/* Área principal e cabeçalho da página */
.content { padding: 18px 24px 32px; max-width: 1600px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.page-head .secao { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.page-head h1 { font-size: 20px; font-weight: 700; margin-top: 1px; }
.page-head p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; max-width: 100ch; }

/* Componentes */
.card, .kpis .kpi { border-radius: var(--radius); border-color: var(--border); padding: 14px 16px; box-shadow: var(--shadow); }
.card + .card { margin-top: 12px; }
.card h2 { font-size: 14px; }
.destaque { background: linear-gradient(135deg, #262861, #303680); color: #fff; border: 0; }
.destaque .muted, .destaque small { color: rgba(255,255,255,.75); }
.btn { border-radius: 8px; padding: 6px 12px; font-weight: 600; font-size: 12.5px; }
.btn-primary { background: var(--accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); filter: none; }
.btn-ghost { background: var(--surface); border-color: var(--border); }
.btn-danger { color: var(--erro); border-color: #f3c4bf; }
input, select, textarea { border-radius: 8px; border-color: var(--border); padding: 6px 10px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--foco); }
label, .campo label { color: var(--text); font-weight: 600; font-size: 12px; }
.table-wrap { margin: 0 -16px; }
th, td { padding: 7px 12px; font-size: 12.5px; }
th:first-child, td:first-child { padding-left: 16px; }
th:last-child, td:last-child { padding-right: 16px; }
th { background: var(--surface-2); color: var(--muted); font-size: 10.5px; letter-spacing: .04em; }
tbody tr:hover td { background: var(--surface-2); }
.badge { border-radius: 6px; font-weight: 700; }
.tabs a.active { color: var(--accent); }
.flash { border-radius: 10px; border: 1px solid currentColor; }

/* Ajuda "i" ao lado do rótulo */
.campo-cab { display: flex; align-items: center; gap: 6px; } .info { position: relative; }
.info summary {
  list-style: none; cursor: pointer; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--muted);
  color: var(--muted); font: 700 11px/15px Georgia, serif; text-align: center;
}
.info summary::-webkit-details-marker { display: none; }
.info[open] summary, .info summary:hover { border-color: var(--accent); color: var(--accent); }
th.com-info { white-space: nowrap; } th.com-info .info { display: inline-block; margin-left: 4px; vertical-align: middle; }
.info div {
  position: absolute; z-index: 10; top: 24px; left: -8px; width: 260px; padding: 10px 12px; font-size: 13px; font-weight: 400;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(43,49,80,.14);
}

/* Diálogo de confirmação */
.dialogo { border: 0; border-radius: 16px; padding: 24px; width: min(420px, calc(100vw - 32px)); background: var(--surface); color: var(--text); box-shadow: 0 24px 60px rgba(20,22,60,.3); }
.dialogo::backdrop { background: rgba(20, 22, 50, .45); backdrop-filter: blur(3px); }
.dialogo h2 { font-size: 15px; }
.dialogo p { margin: 8px 0 20px; color: var(--muted); }
.dialogo menu { display: flex; justify-content: flex-end; gap: 8px; margin: 0; padding: 0; }

@media (max-width: 760px) {
  .topbar { min-height: 60px; padding: 10px 16px; }
  .busca-global { display: none; }
  .content { padding: 14px 12px; }
  .page-head h1 { font-size: 18px; }
  .table-wrap { margin: 0 -16px; }
}

/* Manual */
.manual h3 { margin: 18px 0 6px; font-size: 15px; color: var(--accent); }
.manual ol, .manual ul { margin: 8px 0; padding-left: 22px; }
.manual li { margin: 4px 0; }
.manual li ul { margin: 4px 0; }

/* Guia de primeiro acesso */
.manual h2 { display: flex; align-items: center; gap: 10px; }
.manual .num { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.manual p { margin: 8px 0; }
.manual .ajuda-telas { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin: 8px 0; padding: 0; list-style: none; }
.manual .ajuda-telas li { margin: 0; }
.limpeza-barra { align-items: center; flex-wrap: wrap; } .limpeza-barra form { margin: 0; } .limpeza-barra select { margin: 0; width: auto; }
.limpeza-conta h2 { font-size: 14px; margin: 0 0 8px; }
.limpeza-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.limpeza-chips div { display: grid; justify-items: center; min-width: 96px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 12px; }
.limpeza-chips strong { font-size: 16px; color: var(--accent); }
.limpeza-tabela input { margin: 0; min-height: 36px; } .limpeza-tabela td, .limpeza-tabela th { vertical-align: middle; }
.limpeza-tabela tr.sabado td { background: color-mix(in srgb, var(--accent) 10%, transparent); } .limpeza-tabela tr.domingo td { background: color-mix(in srgb, #d9534f 10%, transparent); } .limpeza-tabela tr.feriado td { background: color-mix(in srgb, #2e9e5b 12%, transparent); }
.ajuda-telas a { display: grid; gap: 2px; height: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; color: inherit; text-decoration: none; }
.ajuda-telas a:hover { background: var(--surface-2); border-color: var(--accent); }
.ajuda-telas strong { color: var(--accent); }
.ajuda-telas small { color: var(--muted); }
.manual .site-item { scroll-margin-top: 80px; }
.manual .site-lista-cab p { margin: 0; flex: 1 1 260px; }
.passos { counter-reset: p; list-style: none; padding-left: 0 !important; }
.passos li { counter-increment: p; position: relative; padding: 6px 0 6px 38px; }
.passos li::before { content: counter(p); position: absolute; left: 0; top: 4px; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; }
.caminho { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.caminho b { background: var(--accent-soft); color: var(--accent); border-radius: 6px; padding: 1px 8px; }
.caminho i { font-style: normal; color: var(--muted); }
.quadro { border-radius: 10px; padding: 10px 14px; margin: 12px 0; border-left: 4px solid; }
.quadro-dica { background: var(--info-soft); border-color: var(--accent); }
.quadro-veja { background: var(--ok-soft); border-color: var(--ok); }
.quadro-cuidado { background: var(--warn-soft); border-color: var(--warn); }
.fluxo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.fluxo span { border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; background: var(--surface-2); font-weight: 700; }
.fluxo i { font-style: normal; color: var(--accent); font-size: 20px; }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist label { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: 15px; padding: 6px 0; cursor: pointer; }
.checklist input { width: 20px; height: 20px; margin: 0; }
.checklist input:checked + * , .checklist label:has(input:checked) { color: var(--muted); text-decoration: line-through; }
.mapa-tela { display: grid; grid-template-columns: 140px 1fr; grid-template-rows: 48px 120px; gap: 6px; margin: 12px 0; font-size: 13px; }
.mapa-tela > div { border: 2px dashed var(--accent); border-radius: 10px; padding: 8px 10px; background: var(--surface-2); }
.mapa-tela .mt-menu { grid-row: 1 / 3; }
.mapa-tela b, .tag { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; padding: 0 4px; }
.legenda { padding-left: 18px; }
.glossario { display: grid; grid-template-columns: minmax(120px, 180px) 1fr; gap: 8px 16px; margin: 8px 0; }
.glossario dt { font-weight: 700; color: var(--accent); }
.glossario dd { margin: 0; }
.regras th { width: 140px; text-align: center; background: var(--surface-2); font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--text); }
.i-demo { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); font: 700 12px Georgia, serif; }
kbd { border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; font-size: 12px; }
.danfe { border: 2px solid var(--text); border-radius: 4px; padding: 10px; font-size: 13px; background: var(--surface); margin: 12px 0; }
.danfe > div { border-bottom: 1px solid var(--border); padding: 6px 0; }
.danfe .d-topo { display: flex; justify-content: space-between; gap: 12px; }
.danfe .d-num { text-align: right; font-weight: 700; }
.danfe .d-datas { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.danfe table th, .danfe table td { padding: 6px 8px; font-size: 12px; }
.danfe .d-total { border: 0; text-align: right; font-weight: 700; }
.escolha { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.escolha > div { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--surface-2); }
.escolha p { margin: 6px 0 0; }
@media (max-width: 760px) {
  .escolha, .glossario { grid-template-columns: 1fr; }
  .mapa-tela { grid-template-columns: 90px 1fr; }
}

/* Configuração do site */
.site-thumb { display: block; max-width: 160px; max-height: 90px; object-fit: contain; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); margin: 4px 0; }
.site-produto { border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin: 0 0 14px; }
.site-produto legend { font-weight: 700; padding: 0 6px; }
.site-produto-grade { display: grid; grid-template-columns: 170px 1fr; gap: 16px; align-items: start; }
.site-unidade { border-top: 1px dashed var(--border); padding-top: 12px; margin-top: 12px; }
.site-msg { border-bottom: 1px solid var(--border); padding: 10px 0; }
.site-msg summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.site-msg.nova summary strong { color: var(--accent); }
@media (max-width: 760px) { .site-produto-grade { grid-template-columns: 1fr; } }

/* Alerta de contatos do site pendentes */
.menu-alerta { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #d92d20; color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; letter-spacing: 0; }
.menu summary .menu-alerta { margin-left: 6px; }
.sino { position: relative; text-decoration: none; }
.sino-n { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #d92d20; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }
.sino.ativo svg { color: #d92d20; animation: sino 1.6s ease-in-out 3; transform-origin: 50% 10%; }
@keyframes sino { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-14deg); } }
@media (prefers-reduced-motion: reduce) { .sino.ativo svg { animation: none; } }
.alerta-site { display: block; margin-bottom: 20px; padding: 14px 18px; border-radius: 12px; background: #fde7e5; color: #8a1c13; border: 1px solid #f3b8b2; text-decoration: none; }
.alerta-site:hover { text-decoration: none; filter: brightness(.98); }
.aviso-novo { position: fixed; right: 20px; bottom: 20px; z-index: 50; max-width: 340px; padding: 14px 16px; border-radius: 12px; background: var(--accent); color: #fff; box-shadow: 0 12px 30px rgba(20, 22, 60, .3); }
.aviso-novo a { color: #fff; font-weight: 700; }
.aviso-novo button { float: right; background: none; border: 0; color: #fff; font-size: 18px; cursor: pointer; margin: -4px -4px 0 8px; }
[data-pendentes][hidden] { display: none !important; }
.site-produto-novo { border: 2px dashed var(--accent); background: var(--accent-soft); }
.site-produto-novo legend { color: var(--accent); }

/* Logotipo da empresa no topo do menu */
.brand-logo { display: block; padding: 22px 20px 16px; }
.brand-logo img { display: block; width: 150px; max-width: 100%; height: auto; }
:root[data-theme="dark"] .brand-logo img { filter: brightness(0) invert(1); }
@media print { .brand-logo img { filter: none; } }

/* Lista recolhível de produtos do site */
.site-lista-cab { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 8px 0 12px; }
.site-lista-cab input { max-width: 340px; margin: 0; }
.site-lista { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.site-item + .site-item { border-top: 1px solid var(--border); }
.site-item summary { display: flex; align-items: center; gap: 14px; padding: 10px 16px; cursor: pointer; list-style: none; }
.site-item summary::-webkit-details-marker { display: none; }
.site-item summary:hover { background: var(--surface-2); }
.site-item summary img, .site-item .sem-foto { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); flex-shrink: 0; }
.site-item-nome { flex: 1; min-width: 0; display: grid; }
.site-item-nome strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-item-nome small { color: var(--muted); }
.site-item-seta { width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: 0 6px 4px; transition: transform .15s; }
.site-item[open] .site-item-seta { transform: rotate(-135deg); margin-bottom: -4px; }
.site-item[open] summary { background: var(--accent-soft); }
.site-item-corpo { padding: 16px; border-top: 1px solid var(--border); }

/* Perfis de acesso numa tela só */
.perfil-item { border-bottom: 1px solid var(--border); background: var(--surface); }
.perfil-item:last-child { border-bottom: 0; }
.perfil-item > summary { display: flex; align-items: center; gap: 16px; padding: 14px 18px; cursor: pointer; list-style: none; }
.perfil-item > summary::-webkit-details-marker { display: none; }
.perfil-item > summary:hover { background: var(--surface-2); }
.perfil-item[open] > summary { background: var(--accent-soft); }
.perfil-item[open] .site-item-seta { transform: rotate(-135deg); margin-bottom: -4px; }
.perfil-nome { flex: 1; min-width: 0; display: grid; }
.perfil-nome small { color: var(--muted); }
.perfil-resumo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; font-size: 13px; }
.perfil-corpo { padding: 18px; border-top: 1px solid var(--border); }
.perfil-novo { border: 2px dashed var(--accent); border-radius: 12px; margin-bottom: 20px; }
.perfil-novo > summary { color: var(--accent); }
.perfil-titulo { margin: 4px 0 12px; }
.perfil-sub { margin: 20px 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.perfil-usuarios { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; font-weight: 500; cursor: pointer; background: var(--surface); }
.chip-check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.chip-check.inativo { opacity: .6; }
.chip-check input { margin: 0; }
.perfil-modulos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.perfil-modulo { border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px 12px; margin: 0; }
.perfil-modulo legend { font-weight: 700; padding: 0 6px; }
.perfil-modulo .check { font-weight: 400; margin: 4px 0; }
.perfil-marcar { display: flex; gap: 6px; margin-bottom: 6px; }
.perfil-marcar button { border: 1px solid var(--border); background: var(--surface-2); border-radius: 6px; padding: 2px 8px; font-size: 12px; cursor: pointer; color: var(--text); }
.perfil-marcar button:hover { border-color: var(--accent); }
.perfil-excluir { padding: 0 18px 16px; }
.perfil-mapa { margin-top: 20px; }
.perfil-mapa > summary { cursor: pointer; }
.perfil-mapa td, .perfil-mapa th { white-space: nowrap; }

/* Acesso personalizado do usuário */
.perm-tag { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 700; line-height: 18px; }
.perm-tag:empty { display: none; }
.perm-tag.do-perfil { background: var(--info-soft); color: var(--info); }
.perm-tag.a-mais { background: var(--ok-soft); color: var(--ok); }
.perm-tag.retirada { background: var(--erro-soft); color: var(--erro); }
.perm-legenda { display: inline-flex; gap: 4px; margin-left: 6px; }
.perm-item:has(.retirada) { color: var(--muted); text-decoration: line-through; }
.perfil-usuario-sel { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin: 0 0 20px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.perfil-usuario-sel label { display: grid; gap: 6px; flex: 1 1 260px; }
.perfil-usuario-sel select { margin: 0; }

/* Menu no celular: fundo escurecido atrás do menu aberto */
.scrim { position: fixed; inset: 0; z-index: 19; background: rgba(24, 36, 66, .46); backdrop-filter: blur(2px); }
.responsavel-op { gap: 10px; margin: 0 0 12px; }
.responsavel-op label { margin: 0; }
.responsavel-op select { width: auto; min-width: 220px; margin: 0; }

/* Quem está online */
.quem-usa { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 14px; border-radius: 10px; background: var(--accent-soft); } .quem-usa label { font-weight: 600; } .quem-usa input { margin: 0; width: auto; flex: 1 1 180px; max-width: 280px; }
.online { position: relative; }
.online > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.online > summary::-webkit-details-marker { display: none; }
.online-ponto { width: 9px; height: 9px; border-radius: 50%; background: #22a35a; box-shadow: 0 0 0 3px rgba(34, 163, 90, .2); }
.online-lista { position: absolute; right: 0; top: 46px; z-index: 30; width: 300px; max-height: 60vh; overflow: auto; padding: 14px; display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 30px rgba(20, 22, 60, .18); }
.online-lista > div { display: flex; gap: 10px; align-items: center; }
.online-lista > div > span:last-child { display: grid; min-width: 0; }
@media (max-width: 760px) { .online > summary { padding: 0 8px; } .online-lista { right: -60px; } }

/* Texto só para leitor de tela. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tabelas cabem na tela: títulos quebram linha. Buscas fora de .filtros seguem o mesmo alinhamento. */
th { white-space: normal; line-height: 1.2; }
.content form.row[method=get] input:not([type=checkbox]), .content form.row[method=get] select { width: auto; margin: 0; flex: 0 1 170px; min-width: 0; }
.content form.row[method=get] input[type=search] { flex: 1 1 200px; min-width: 160px; }

/* Celular: indicadores em duas colunas, botões fáceis de tocar e tabelas com rolagem própria. */
@media (max-width: 600px) {
  .kpis, .vp-indicadores { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px; }
  .kpis .kpi { padding: 10px 12px; }
  .btn { min-height: 36px; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Mensagens do pedido: caixa recolhível */
.msg-pedido { margin-top: 10px; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; }
.msg-pedido summary { cursor: pointer; font-weight: 600; }
.msg-pedido form { margin-top: 10px; }
.msg-recado { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.msg-recado p { margin: 4px 0 0; white-space: pre-line; }
.site-num { flex: 0 0 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); font-size: 12px; font-weight: 700; }
