:root {
  --teal: #0e7c73;
  --dark: #1a2b2a;
  --bg: #f4f6f6;
  --border: #dde3e2;
  --surface: #ffffff;
  --surface-2: #f7f9f9;
  --text: #1a1a1a;
  --text-muted: #666666;
}

:root[data-theme="dark"] {
  --teal: #2dd4c4;
  --dark: #eef2f1;
  --bg: #0f1516;
  --border: #2a3536;
  --surface: #1a2223;
  --surface-2: #212b2c;
  --text: #e6ecec;
  --text-muted: #9aa6a5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  padding: 10px 24px;
}
.topbar .brand { display: flex; align-items: center; text-decoration: none; justify-self: start; }
.brand-logo { height: 48px; width: auto; display: block; }
/* Não temos uma versão clara oficial da logo (só o PNG com texto escuro),
   então no modo escuro invertemos as cores via CSS para ela ficar legível
   sobre o fundo escuro da barra superior. */
:root[data-theme="dark"] .brand-logo { filter: invert(1) hue-rotate(180deg); }
.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .03em;
  text-decoration: none;
  white-space: nowrap;
  justify-self: center;
}
.topbar nav { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; justify-self: end; row-gap: 8px; }
/* "Sair" é um <button>: sem a margem global de button, fica alinhado com os links. */
.topbar nav .link-btn { margin-top: 0; }
/* Telas largas: o menu cresce o quanto precisar (não quebra em 2 linhas) e a
   coluna do logo cede espaço; o título só sai do centro exato quando falta
   espaço. Abaixo de 1200px segue o comportamento antigo (menu quebra linha). */
@media (min-width: 1200px) {
  .topbar { grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); column-gap: 40px; }
  .topbar nav { flex-wrap: nowrap; white-space: nowrap; }
}
.topbar nav a { color: var(--dark); text-decoration: none; font-size: 14px; }
.topbar nav a:hover { text-decoration: underline; color: var(--teal); }
.user-info { font-size: 13px; color: var(--text-muted); }
.link-btn {
  background: none; border: none; color: var(--teal); text-decoration: underline;
  cursor: pointer; font-size: 14px; padding: 0;
}

.theme-toggle {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  padding: 0;
  margin-top: 0;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.theme-toggle:hover { filter: brightness(1.1); }

.container { max-width: 780px; margin: 32px auto; padding: 0 16px; }
h1 { color: var(--dark); }
.muted { color: var(--text-muted); margin-bottom: 24px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
}

label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; color: var(--dark); }
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  background: var(--surface);
  color: var(--text);
}
input:disabled { opacity: .6; }
input.input-error { border-color: #b3261e; background: rgba(179, 38, 30, 0.06); }

.checkbox-row { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; margin: 18px 0; cursor: pointer; }
.checkbox-row input[type="checkbox"], .checkbox-row input[type="radio"] { width: auto; margin: 0; }
.radio-group { display: flex; flex-direction: column; gap: 2px; margin: 10px 0 18px; }
.radio-group .checkbox-row { margin: 4px 0; }

.script-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.script-toolbar button { margin-top: 0; padding: 8px 14px; font-size: 13px; }
.script-box {
  background: #1e1e1e;
  color: #d4d4d4;
  border-radius: 8px;
  padding: 16px;
  font-family: 'Courier New', Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre;
  max-height: 70vh;
  overflow-y: auto;
}

button {
  margin-top: 18px;
  background: var(--teal);
  color: #ffffff;
  border: none;
  padding: 11px 20px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}
button:disabled { opacity: .5; cursor: not-allowed; }
button:hover:not(:disabled) { filter: brightness(0.95); }
button.danger { background: #b3261e; }

.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0e3733, #1a2b2a);
}
/* O cartão de login é sempre claro, independente do tema escolhido,
   porque a logo da DIVS tem texto escuro e fica ilegível em fundo escuro. */
.auth-card {
  background: #ffffff;
  color: #1a1a1a;
  padding: 36px;
  border-radius: 12px;
  width: 320px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.auth-card label { color: #1a2b2a; }
.auth-card input {
  background: #ffffff;
  color: #1a1a1a;
  border: 1px solid #dde3e2;
}
.login-logo { display: block; height: 72px; width: auto; margin: 0 auto 14px; }
.auth-footer { position: fixed; bottom: 16px; left: 0; right: 0; text-align: center; font-size: 12px; color: rgba(255, 255, 255, 0.55); }
.platform-title { text-align: center; color: #1a2b2a; font-size: 19px; margin: 0 0 18px; }
.subtitle { color: #666666; font-size: 13px; margin-bottom: 18px; text-align: center; }

.alert { padding: 10px 12px; border-radius: 6px; font-size: 13px; margin-bottom: 14px; }
.alert-error { background: #fdecea; color: #b3261e; }
.alert-success { background: #e6f4ea; color: #1e7e34; }
.alert-warning { background: #fff4e5; color: #8a5a00; }

.inline-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.inline-form > div { flex: 1; min-width: 140px; }
.inline-form button { align-self: flex-end; }

.inline-form-tight { display: flex; gap: 6px; align-items: center; }
.inline-form-tight input { width: auto; padding: 6px 8px; }

/* Permite rolagem horizontal só da tabela quando o conteúdo não cabe, sem
   estourar a largura do .card por trás (evita a tabela vazar visualmente
   pra fora do card em telas mais estreitas). */
.table-scroll { overflow-x: auto; }

.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.table td.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.table td.actions form { margin: 0; }
.table td.actions button { margin-top: 0; padding: 6px 10px; font-size: 12px; white-space: nowrap; }
.table th.login-col, .table td.login-cell {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  min-width: 64px;
}
.actions-group { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

.cell-input { display: block; width: 100%; padding: 6px 8px; font-size: 13px; margin-bottom: 4px; }
.cell-input:last-child { margin-bottom: 0; }
select.cell-input { min-width: 150px; }

.cell-input-row { display: flex; gap: 8px; }
.cell-input-row .cell-input { margin-bottom: 0; }
.cell-input-row input[name="name"] { flex: 1 1 130px; min-width: 130px; }
.cell-input-row input[type="email"] { flex: 2 1 260px; min-width: 260px; }

/* Coluna Nome/E-mail da tabela de usuários: reserva espaço suficiente pros
   dois campos ficarem lado a lado sem quebrar linha nem cortar o e-mail. */
.table-usuarios td:first-child { min-width: 420px; }

.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tab {
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: none;
  color: var(--dark);
  padding: 9px 18px;
  border-radius: 8px 8px 0 0;
  font-size: 14px;
  margin-top: 0;
}
.tab.active { background: var(--teal); color: #ffffff; }

.lote-hint {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 14px 0;
  font-size: 13px;
}
.lote-hint code {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 8px;
  margin: 6px 0;
  font-size: 12px;
  overflow-x: auto;
}
.small { font-size: 12px; }
.field-hint { font-size: 12px; color: var(--text-muted); margin-top: -2px; margin-bottom: 10px; }

.field-row { display: flex; gap: 8px; align-items: center; }
.field-row input { flex: 1; }
.btn-gerar-senha {
  margin-top: 0;
  padding: 10px 14px;
  background: var(--surface-2);
  color: var(--dark);
  border: 1px solid var(--border);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-gerar-senha:hover { filter: none; border-color: var(--teal); color: var(--teal); }

.btn-copiar-link {
  margin-top: 0;
  padding: 8px 12px;
  font-size: 12px;
  background: var(--surface-2);
  color: var(--dark);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.btn-copiar-link:hover { filter: none; border-color: var(--teal); color: var(--teal); }

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.app-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s, border-color .15s;
}
.app-card:hover { border-color: var(--teal); box-shadow: 0 4px 14px rgba(14,124,115,.15); }
.app-card-icon { font-size: 30px; margin-bottom: 10px; }
.app-card-label { font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.app-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.4; }

@media (max-width: 480px) {
  .topbar { grid-template-columns: 1fr; justify-items: start; gap: 10px; }
  .topbar .brand, .topbar .brand-name, .topbar nav { justify-self: start; }
  .container { margin: 16px auto; }
}

/* Tela de Grupos de acesso: link estilizado como botão (lista de grupos) e
   grade responsiva de permissões (tela dedicada /admin/grupos/:id) -- a
   grade quebra linha conforme o número de ferramentas cresce, em vez de
   estourar a largura como uma coluna por ferramenta faria numa tabela. */
a.btn {
  display: inline-block;
  background: var(--teal);
  color: #ffffff;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 6px;
  font-size: 14px;
}
a.btn:hover { filter: brightness(0.95); }
.table td.actions a.btn { padding: 6px 10px; font-size: 12px; }

.perm-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 18px 0 8px; }
.perm-toolbar input[type="text"] { flex: 1; min-width: 180px; }
.perm-toolbar button { margin-top: 0; padding: 8px 14px; font-size: 13px; }

.perm-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px 16px;
  margin: 8px 0 24px;
}
.perm-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}
.perm-item input[type="checkbox"] { width: auto; margin: 0; }

/* Tela de Busca de E-mails: barra de progresso, itens de mensagem e modal de
   justificativa antes da exportação em PDF. */
.progress-bar { background: var(--border); border-radius: 6px; height: 10px; overflow: hidden; margin-top: 8px; }
.progress-bar-fill { background: var(--teal); height: 100%; width: 0%; transition: width .3s ease; }

.mensagem-item { padding: 12px 0; }
.mensagem-item p { margin: 2px 0; }
.mensagem-select-row { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; margin: 0; }
.mensagem-select-row input[type="checkbox"] { width: auto; margin: 4px 0 0; flex-shrink: 0; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 16px;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  background: var(--surface);
  border-radius: 10px;
  padding: 24px;
  max-width: 480px;
  width: 100%;
}

/* Conteúdo de e-mail pode ter palavras/links muito longos e sem espaço
   (URLs, hashes) que, sem isso, estouram a largura do card em vez de quebrar
   linha -- corrige o vazamento horizontal relatado na tela de resultados. */
.mensagem-item p { margin: 2px 0; overflow-wrap: break-word; word-break: break-word; }

.pagination-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.pagination-controls[hidden] { display: none; }
.pagination-controls button { margin-top: 0; padding: 8px 16px; font-size: 13px; }
.pagination-controls button:disabled { opacity: .4; cursor: not-allowed; }

/* Log de auditoria: texto de "Detalhes" pode ser longo (motivos, permissões,
   listas de e-mail) -- quebra linha em vez de estourar o card, e limita a
   largura da coluna pra não empurrar a tabela inteira pra fora de vista. */
.table td { overflow-wrap: break-word; word-break: break-word; }
.table-logs td:nth-child(4) { max-width: 420px; }

/* Modal de termos (LGPD): texto longo, precisa rolar dentro do modal em vez
   de estourar a tela. */
.modal-box-largo { max-width: 640px; }
.termos-texto {
  max-height: 50vh;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  margin: 12px 0;
}
.termos-texto p { margin: 8px 0; }

/* Numerador de páginas do Buscador de E-mails (entre Anterior/Próxima). */
.pagina-numeros { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }
.pagina-numero {
  margin-top: 0;
  padding: 6px 11px;
  font-size: 13px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.pagina-numero:hover { filter: none; background: var(--border); }
.pagina-numero-ativa { background: var(--teal); color: #ffffff; border-color: var(--teal); }
.pagina-reticencias { padding: 0 4px; color: var(--text-muted); }

/* Tela de Acesso Negado (403) -- exibida quando alguém tenta acessar uma
   rota/módulo pro qual não tem permissão. */
.alert-negado { text-align: center; padding: 48px 24px; }
.alert-negado-icone { font-size: 48px; margin-bottom: 8px; }
.alert-negado-titulo { color: #b3261e; margin: 0 0 16px; }
.alert-negado-aviso { font-weight: 600; color: #b3261e; }
.alert-negado a.btn { display: inline-block; margin-top: 20px; }

/* Tela de Análise de Placas: grade de candidatos com miniatura do frame. */
.placa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.placa-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.placa-miniatura {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--surface-2);
}
.placa-miniatura-vazia {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
}
.placa-texto {
  font-family: 'Courier New', monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 10px 0 4px;
}

/* ---------- Calculadora de HDD ---------- */
.hdd-container { max-width: 1100px; }
.hdd-grupos-card h2, .hdd-grupos-card + .card h2 { margin-top: 0; }
.hdd-lista-grupos { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.hdd-grupo-row {
  display: grid;
  grid-template-columns: 1.6fr 0.6fr 1fr 0.7fr 1fr 1.3fr 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.hdd-grupo-campo { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hdd-grupo-campo label { font-size: 11px; color: var(--text-muted); }
.hdd-grupo-campo input, .hdd-grupo-campo select { margin: 0; width: 100%; }
.hdd-grupo-armazenamento-valor {
  font-weight: 600;
  color: var(--teal);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hdd-btn-remover {
  padding: 8px 12px;
  height: 38px;
  align-self: end;
}
.hdd-btn-secundario {
  background: none;
  border: 1px dashed var(--border);
  color: var(--teal);
}
.hdd-btn-secundario:hover:not(:disabled) { border-color: var(--teal); filter: none; }
.hdd-resultados {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.hdd-resultado-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hdd-resultado-label { font-size: 12px; color: var(--text-muted); }
.hdd-resultado-valor { font-size: 22px; font-weight: 700; color: var(--teal); }
@media (max-width: 900px) {
  .hdd-grupo-row { grid-template-columns: 1fr 1fr; }
}

/* Revisão da importação do Zimbra (/admin/usuarios/importar-zimbra) */
.table-import td.col-check, .table-import th.col-check { width: 32px; }
.table-import input[type="checkbox"] { width: auto; margin: 0; }
.table-import label { font-weight: normal; margin: 0; cursor: pointer; }
.table-import .col-data { white-space: nowrap; overflow-wrap: normal; word-break: normal; }

/* Gerador de QR Code - Condomínios (/qrcode-condominio) */
.qr-subtitulo { font-size: 16px; margin: 20px 0 8px; }
.qr-placa { border: 1px solid var(--border); border-radius: 6px; padding: 12px; margin-bottom: 10px; }
.qr-placa label { margin-top: 8px; }
.qr-placa input[name="tipoOutro"] { margin-top: 6px; }
.qr-placa-topo { display: flex; justify-content: space-between; align-items: center; }
.qr-placa-topo button { margin-top: 0; }
.qr-btn-remover { background: transparent; color: #b3261e; padding: 4px 8px; font-size: 12px; }
.qr-btn-secundario { background: transparent; color: var(--teal); border: 1px dashed var(--teal); margin-top: 4px; padding: 8px 14px; font-size: 13px; }
.qr-acoes { display: flex; gap: 10px; flex-wrap: wrap; }

/* Início: busca de ferramentas + paginação (9 por página) */
.app-busca { margin: 0 0 18px; }
.app-busca input { width: 100%; }
.app-card[hidden] { display: none; }
.app-busca-vazia { margin: 8px 0 0; }
.app-paginacao { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 20px; }
.app-paginacao[hidden] { display: none; }
.app-paginacao button { margin-top: 0; width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 20px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.app-paginacao #pag-info { margin: 0; min-width: 90px; text-align: center; }

/* Passo a passo: entrega por download ou e-mail */
.entrega-secao { margin-top: 8px; }
.radio-group.entrega-opcoes { flex-direction: row; gap: 2px 20px; flex-wrap: wrap; margin: 6px 0 10px; }
.entrega-opcoes .checkbox-row { margin: 4px 0; font-weight: 500; }
.campo-dica { margin: 4px 0 0; }
#envio-status { margin: 16px 0 0; }

/* Botões Visualizar + Baixar lado a lado */
.acoes-entrega { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Integrações (/admin/integracoes) */
.integracao-topo { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.integracao-topo h2 { margin: 0; }
.integracao-passo { font-size: 15px; margin: 22px 0 6px; padding-top: 14px; border-top: 1px solid var(--border); }
.integracao-campo { flex: 1; min-width: 220px; }
.integracao-toggle p { margin: 0 0 4px; }
.integracao-toggle button { margin-top: 6px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-ok { background: #1faa4a; color: #ffffff; }
.badge-off { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }
.btn-danger-link { background: transparent; color: #b3261e; padding: 4px 0; margin-top: 8px; font-size: 13px; }
.btn-secundario { background: transparent; color: var(--teal); border: 1px solid var(--teal); }

/* Integrações: cards da visão geral + campos do GSMAIL */
.integracao-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 8px; }
.integracao-card { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 22px; text-decoration: none; color: inherit; transition: box-shadow .15s, border-color .15s; }
.integracao-card:hover { border-color: var(--teal); box-shadow: 0 4px 14px rgba(14,124,115,.15); }
.integracao-card-topo { display: flex; justify-content: center; align-items: center; margin-bottom: 8px; }
.integracao-card { position: relative; }
.integracao-card-topo .badge { position: absolute; top: 16px; right: 16px; }
.integracao-card-icon { font-size: 30px; line-height: 1; }
.integracao-card-label { font-weight: 700; color: var(--dark); }
.integracao-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.integracao-card-info { color: var(--text); overflow-wrap: anywhere; }
.integracao-card-acao { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 600; color: var(--teal); }
.integracao-campos { display: flex; flex-wrap: wrap; gap: 0 12px; }
.integracao-campos .integracao-campo-largo { flex: 2; }
.integracao-campos .integracao-campo-curto { flex: 0 0 110px; min-width: 110px; }
.integracao-check { margin: 14px 0 0; }
.integracao-acoes { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--border); }
.integracao-acoes button { margin-top: 0; }
.integracao-card-logo { height: 56px; width: auto; background: #ffffff; border-radius: 8px; padding: 4px 6px; box-sizing: content-box; }

/* Colaboradores */
.tabs a.tab { text-decoration: none; display: inline-block; }
.colab-topo { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.colab-topo h1 { margin-bottom: 4px; }
.colab-topo-acoes { display: flex; gap: 10px; flex-wrap: wrap; }
a.btn.btn-secundario-link { background: transparent; color: var(--teal); border: 1px solid var(--teal); }
.colab-lista-card { border-top-left-radius: 0; }
.colab-filtros { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.colab-filtros label { margin-top: 0; }
.colab-filtros button { margin-top: 0; }
.colab-filtro-busca { flex: 1; min-width: 200px; }
.colab-vazio { margin: 8px 0 0; }
.colab-tabela a { color: inherit; text-decoration: none; }
.colab-tabela a:hover strong { color: var(--teal); }
.badge-alerta { background: #f0a020; color: #ffffff; }
.colab-secao { font-size: 16px; margin: 0 0 4px; }
.colab-form .colab-secao { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.colab-form .colab-secao:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.colab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.colab-span-2 { grid-column: span 2; }
.colab-campo[hidden] { display: none; }
.colab-form-acoes { margin-top: 18px; align-items: center; }
.colab-form-acoes button { margin-top: 0; }
.colab-cabecalho { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.colab-cabecalho h1 { margin: 0 0 4px; }
.colab-sub { margin: 0; color: var(--text-muted); }
.colab-cabecalho-dir { display: flex; align-items: center; gap: 12px; }
.colab-colunas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.colab-dados { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 10px 0 0; }
.colab-dados-1col { grid-template-columns: 1fr; }
.colab-dado dt { font-size: 12px; color: var(--text-muted); margin: 0; }
.colab-dado dd { margin: 2px 0 0; font-size: 14px; overflow-wrap: anywhere; white-space: pre-line; }
.colab-novo-registro { margin: 8px 0 16px; padding: 12px 14px; border: 1px dashed var(--border); border-radius: 8px; }
.colab-novo-registro summary, .colab-setor summary, .card details > summary { cursor: pointer; font-weight: 600; }
.colab-timeline { list-style: none; margin: 0; padding: 0; }
.colab-ev { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); align-items: flex-start; }
.colab-ev:first-child { border-top: none; }
.colab-ev-icone { font-size: 20px; width: 28px; text-align: center; flex-shrink: 0; }
.colab-ev-corpo { flex: 1; min-width: 0; }
.colab-ev-topo { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.colab-ev-resumo { margin-top: 2px; }
.colab-ev-desc { margin-top: 4px; white-space: pre-line; overflow-wrap: anywhere; }
.colab-ev form { margin: 0; }
.colab-ev .btn-danger-link { margin-top: 0; }
.colab-ev-sancao .colab-ev-topo strong, .colab-ev-desligamento .colab-ev-topo strong { color: #b3261e; }
.colab-perigo-summary { color: #b3261e; }
.colab-excluir { margin: 0 0 8px; }
.colab-setor { padding: 12px 0; border-top: 1px solid var(--border); }
.colab-setor:first-child { border-top: none; }
.colab-setor form { margin-top: 8px; }
.colab-gerentes { max-height: 220px; overflow-y: auto; border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; }
.colab-gerentes .checkbox-row { margin: 6px 0; font-weight: normal; }
@media (max-width: 700px) {
  .colab-grid, .colab-colunas, .colab-dados { grid-template-columns: 1fr; }
  .colab-span-2 { grid-column: auto; }
}
.colab-ev .muted, .colab-cabecalho .muted, .colab-setor summary .muted { margin: 0; }
.colab-ev-resumo, .colab-ev-desc { font-size: 14px; }
.colab-ev-corpo > .muted { margin-top: 4px; display: block; }
.colab-setor summary .muted { font-weight: normal; }
/* Links "← Voltar" no topo das telas: azul padrão sumia no tema escuro. */
main.container > p.small > a { color: var(--teal); }

/* Colaboradores: foto */
.colab-avatar { border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text-muted); }
.colab-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.colab-avatar a { display: block; width: 100%; height: 100%; }
.colab-avatar-g { width: 96px; height: 96px; font-size: 44px; }
.colab-avatar-p { width: 34px; height: 34px; font-size: 16px; }
.colab-foto-campo { display: flex; gap: 18px; align-items: center; margin: 10px 0 4px; flex-wrap: wrap; }
.colab-foto-campo label { margin-top: 0; }
.colab-foto-campo input[type="file"] { max-width: 100%; }
.colab-remover-foto { margin: 8px 0 0; font-weight: normal; }
.colab-cabecalho-esq { display: flex; gap: 18px; align-items: center; min-width: 0; }
.colab-nome-cel { display: flex; align-items: center; gap: 10px; }
.colab-matricula { display: block; margin: 0; }

.colab-cnpj-cel { min-width: 230px; }
.colab-cnpj-cel .inline-form-tight input { width: 150px; }
.colab-cnpj-cel .inline-form-tight button { margin-top: 0; padding: 6px 10px; font-size: 12px; }

@media (max-width: 520px) {
  .tabs { flex-wrap: wrap; row-gap: 6px; }
  .tabs a.tab { padding: 7px 11px; font-size: 13px; white-space: nowrap; border-radius: 8px; border-bottom: 1px solid var(--border); }
  .colab-lista-card { border-top-left-radius: 10px; }
}
/* Datas da lista de colaboradores: sem quebra no meio (a regra global .table td quebra palavras longas) */
.table th.colab-data, .table td.colab-data { white-space: nowrap; overflow-wrap: normal; word-break: normal; min-width: 88px; }
.table td .badge { white-space: nowrap; }
.colab-tabela { min-width: 820px; }

/* Colaboradores: ajuste da foto (arrastar + zoom) */
.colab-foto-campo { align-items: flex-start; }
.colab-foto-editor { position: relative; width: 180px; height: 180px; flex-shrink: 0; }
.colab-foto-editor canvas { width: 180px; height: 180px; border-radius: 50%; display: block; background: var(--surface-2); border: 1px solid var(--border); touch-action: none; }
.colab-foto-editor canvas.com-foto { cursor: grab; }
.colab-foto-editor canvas.arrastando { cursor: grabbing; }
.colab-foto-vazia { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 72px; color: var(--text-muted); pointer-events: none; }
.colab-foto-vazia[hidden] { display: none; }
.colab-foto-controles { flex: 1; min-width: 220px; }
.colab-foto-dica { margin: 10px 0 0; }
.colab-foto-controles .zoom-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; max-width: 320px; }
.colab-foto-controles .zoom-row input[type="range"] { flex: 1; width: auto; padding: 0; }
.colab-foto-controles .zoom-row .muted { margin: 0; }
/* Lista de colaboradores: grade com rolagem própria e cabeçalho fixo; a altura é
   ajustada por JS (views/colaboradores.ejs) pra página não rolar. */
.colab-lista-card .table-scroll { max-height: 60vh; overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
.colab-tabela thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); box-shadow: inset 0 -1px 0 var(--border); }
.colab-lista-card .table-scroll::-webkit-scrollbar { width: 12px; height: 12px; }
.colab-lista-card .table-scroll::-webkit-scrollbar-track { background: var(--surface-2); border-radius: 0 8px 8px 0; }
.colab-lista-card .table-scroll::-webkit-scrollbar-thumb { background: #9aa6a5; border-radius: 6px; border: 3px solid var(--surface-2); }
.colab-lista-card .table-scroll::-webkit-scrollbar-thumb:hover { background: var(--teal); }
@supports not selector(::-webkit-scrollbar) { .colab-lista-card .table-scroll { scrollbar-color: #9aa6a5 var(--surface-2); } }

.colab-paginacao { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.colab-pag-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--teal); color: var(--teal); text-decoration: none; font-size: 18px; line-height: 1; padding-bottom: 2px; box-sizing: border-box; }
.colab-pag-btn:hover { background: var(--teal); color: #ffffff; }
.colab-pag-off { visibility: hidden; }
.colab-pag-info { font-size: 13px; color: var(--text-muted); }
/* Botão de ação secundária com cor suave (ex: "Editar ficha") */
a.btn.btn-suave { background: color-mix(in srgb, var(--teal) 12%, transparent); color: var(--teal); border: 1px solid color-mix(in srgb, var(--teal) 45%, transparent); font-weight: 600; }
a.btn.btn-suave:hover { background: color-mix(in srgb, var(--teal) 22%, transparent); filter: none; }

#colab-resultados { transition: opacity .15s; }
#colab-resultados.colab-carregando { opacity: .55; }

/* Colaboradores: criar e-mail corporativo */
.colab-email-corp summary { cursor: pointer; font-weight: 600; }
.colab-email-corp form { margin-top: 6px; max-width: 640px; }
.colab-email-endereco { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.colab-email-endereco input { flex: 1; min-width: 180px; }
.colab-email-endereco button { margin-top: 0; }
.colab-email-dominio { font-size: 14px; color: var(--text-muted); white-space: nowrap; }
.colab-email-status { margin: 6px 0 0; min-height: 1.2em; }
.colab-email-status.ok { color: #1e7e34; }
.colab-email-status.erro { color: #b3261e; }
.colab-sugestao { margin: 0 6px 0 0; padding: 2px 8px; font-size: 12px; background: transparent; color: var(--teal); border: 1px solid var(--teal); border-radius: 999px; }
.colab-senha-input { font-family: Consolas, monospace; letter-spacing: .5px; }
.colab-email-canal { margin: 0 0 6px 26px; max-width: 360px; }
.colab-email-canal[hidden] { display: none; }
.colab-resultado-email { border-left: 4px solid #1faa4a; }
.colab-resultado-lista { margin: 8px 0 0; padding-left: 20px; }
.colab-resultado-lista li { margin: 4px 0; }
.colab-resultado-falha { color: #b3261e; }
.colab-senha-caixa { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; font-size: 14px; }
.colab-senha-caixa code { font-size: 15px; background: rgba(0,0,0,.06); padding: 2px 6px; border-radius: 4px; }
.colab-email-corp .muted, .colab-email-corp summary .muted { margin: 0; font-weight: normal; }
.colab-cabecalho-dir { flex-wrap: wrap; justify-content: flex-end; }
.colab-form-aviso { margin: 0 0 10px; width: 100%; }

/* Colaboradores: documentos */
.colab-docs-vazio { margin: 6px 0 10px; }
.colab-docs { min-width: 640px; }
.colab-docs-nome a { color: inherit; text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.colab-docs-nome a:hover { color: var(--teal); }
.colab-docs td.actions a.btn { padding: 4px 8px; font-size: 13px; background: transparent; border: 1px solid var(--border); color: inherit; }
.colab-docs td.actions .btn-danger-link { margin-top: 0; }
.colab-docs-envio { margin-top: 12px; }
#documentos .colab-secao .muted { margin: 0; font-weight: normal; }

/* Formulário: opção "Criar e-mail corporativo" */
.colab-ec { margin-top: 4px; }
.colab-ec-toggle { margin: 4px 0 0; font-weight: 600; }
.colab-ec-painel { margin: 8px 0 4px; padding: 12px 14px 14px; border: 1px dashed var(--teal); border-radius: 8px; background: color-mix(in srgb, var(--teal) 5%, transparent); }
.colab-ec-painel[hidden] { display: none; }
.colab-ec-painel > label:first-child { margin-top: 0; }
.colab-ec-subtitulo { font-weight: 700; font-size: 14px; margin: 16px 0 0; }
.colab-ec .muted { margin: 0; font-weight: normal; }
.colab-docs td.actions { display: table-cell; white-space: nowrap; }
.colab-docs td.actions > a, .colab-docs td.actions > form { display: inline-block; vertical-align: middle; margin-right: 6px; }
.colab-email-status.erro { color: #d64f45; }

/* Colaboradores: qualificações e cursos */
#qualificacoes .colab-secao .muted { margin: 0; font-weight: normal; }
.colab-quals { list-style: none; margin: 6px 0 0; padding: 0; }
.colab-qual { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.colab-qual:first-child { border-top: none; }
.colab-qual-corpo { flex: 1; min-width: 220px; }
.colab-qual-topo { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.colab-qual-info { margin-top: 2px; }
.colab-qual-obs { margin: 2px 0 0; }
.colab-qual-acoes { display: flex; gap: 10px; align-items: center; }
.colab-qual-acoes form { margin: 0; }
.colab-qual-acoes .btn-danger-link { margin-top: 0; }
a.btn.colab-qual-cert { padding: 5px 10px; font-size: 13px; }
.colab-badge-vencido { background: #b3261e; color: #ffffff; }

/* Integração com o Active Directory */
.ad-aviso-ldap { margin: 8px 0 0; padding: 8px 10px; border-radius: 6px; background: #fff4e5; color: #8a5a00; }
[data-theme="dark"] .ad-aviso-ldap { background: #3a2c12; color: #f0c16b; }
.ad-guia summary { cursor: pointer; list-style: revert; }
.ad-guia summary h2 { display: inline; font-size: 18px; margin: 0; }
.ad-passos { margin: 6px 0 4px; padding-left: 20px; }
.ad-passos li { margin: 5px 0; line-height: 1.5; }
.ad-guia code, .ad-codigo { font-family: Consolas, monospace; font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; }
.ad-codigo { display: block; white-space: pre-wrap; overflow-wrap: anywhere; padding: 8px 10px; margin: 6px 0; }
.acoes-entrega form { margin: 0; }
.acoes-entrega form button { margin-top: 0; }
/* Cartões de integração: selo numa faixa própria no topo (não cobre o logo) */
.integracao-card { padding-top: 46px; }
.integracao-card-topo .badge { top: 14px; right: 14px; }
.integracao-card-icon { font-size: 52px; line-height: 64px; height: 64px; }

.ad-mapa { min-width: 520px; }
.ad-mapa select { max-width: 360px; }
.ad-mapa .muted { margin: 0 0 0 8px; }
.ad-sugerido { font-style: italic; }
.ad-mapa-desligados td { border-top: 2px solid var(--border); }
.colab-ec-subtitulo-topo { margin-top: 0; }

/* Progresso ao salvar colaborador (cadastro/edição) */
.colab-progresso { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .45); }
.colab-progresso[hidden] { display: none; }
.colab-progresso-caixa { width: min(420px, 100%); background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.colab-progresso-caixa p { margin: 0 0 8px; }
.colab-progresso-titulo { font-weight: 600; font-size: 1.05rem; }
.colab-progresso-trilho { height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--teal) 15%, transparent); overflow: hidden; margin: 12px 0 10px; }
.colab-progresso-barra { height: 100%; width: 0; border-radius: 999px; background: var(--teal); transition: width .2s linear; }

/* Campo preenchido pelo sistema (ex.: e-mail corporativo que vai ser criado) */
.colab-form input[readonly] { background: color-mix(in srgb, var(--teal) 7%, var(--surface)); color: var(--text-muted); cursor: default; }

/* ===================== Gestão Instalação ===================== */
:root {
  --gi-inst: #0e7c73; --gi-manut: #2563eb; --gi-ti: #0891b2; --gi-plant: #7c3aed; --gi-terc: #d97706; --gi-aus: #e11d48;
  --gi-ok: #1f9d55; --gi-alerta: #b45309; --gi-sombra: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .08);
  /* Status da O.S. (Carteira de O.S.) */
  --os-sem_equip: #dc2626; --os-aguardando_equip: #ea580c; --os-equip_estoque: #2563eb; --os-equip_cliente: #7c3aed;
  --os-iniciado: #0891b2; --os-finalizado: #16a34a; --os-cancelado: #64748b; --os-arquivado: #a8a29e;
}
:root[data-theme="dark"] {
  --gi-inst: #2dd4c4; --gi-manut: #60a5fa; --gi-ti: #22d3ee; --gi-plant: #a78bfa; --gi-terc: #fbbf24; --gi-aus: #fb7185;
  --gi-ok: #4ade80; --gi-alerta: #fbbf24; --gi-sombra: 0 1px 3px rgba(0, 0, 0, .4);
  --os-sem_equip: #f87171; --os-aguardando_equip: #fb923c; --os-equip_estoque: #60a5fa; --os-equip_cliente: #a78bfa;
  --os-iniciado: #22d3ee; --os-finalizado: #4ade80; --os-cancelado: #94a3b8; --os-arquivado: #a8a29e;
}
.gi-main { max-width: 1180px; }
.gi-cabecalho { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.gi-cabecalho h1 { margin: 0; display: flex; align-items: center; gap: 10px; }
.gi-cabecalho .muted { margin: 4px 0 0; }
.gi-titulo-icone { display: inline-flex; width: 42px; height: 42px; border-radius: 12px; align-items: center; justify-content: center; font-size: 22px; background: color-mix(in srgb, var(--teal) 14%, transparent); }
.gi-acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.gi-acoes button, .gi-acoes a.btn { margin-top: 0; }

.gi-nav { display: flex; gap: 4px; flex-wrap: wrap; margin: 18px 0 22px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; width: fit-content; max-width: 100%; }
.gi-nav a { padding: 8px 14px; border-radius: 9px; color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.gi-nav a:hover { color: var(--teal); background: color-mix(in srgb, var(--teal) 7%, transparent); }
.gi-nav a.ativo { background: var(--teal); color: #ffffff; }
:root[data-theme="dark"] .gi-nav a.ativo { color: #0f1516; }

.gi-leitura { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 9px 12px; border-radius: 8px; background: var(--surface-2); border: 1px dashed var(--border); color: var(--text-muted); margin-bottom: 16px; }

/* KPIs */
.gi-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 22px; }
.gi-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; box-shadow: var(--gi-sombra); position: relative; overflow: hidden; }
.gi-kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cor, var(--teal)); }
.gi-kpi-rotulo { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); font-weight: 600; }
.gi-kpi-valor { font-size: 28px; font-weight: 800; color: var(--dark); line-height: 1.15; margin-top: 4px; font-variant-numeric: tabular-nums; }
.gi-kpi-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Cards do hub */
.gi-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-bottom: 26px; }
.gi-hub-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 14px; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--gi-sombra); transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.gi-hub-card:hover { transform: translateY(-2px); border-color: var(--cor, var(--teal)); box-shadow: 0 8px 24px rgba(16, 24, 40, .12); }
.gi-hub-icone { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 25px; background: color-mix(in srgb, var(--cor, var(--teal)) 14%, transparent); }
.gi-hub-card h3 { margin: 4px 0 0; font-size: 17px; color: var(--dark); }
.gi-hub-card p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.45; flex: 1; }
.gi-hub-info { font-size: 12.5px; font-weight: 600; color: var(--cor, var(--teal)); padding-top: 10px; border-top: 1px solid var(--border); }

.gi-duas-col { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .gi-duas-col { grid-template-columns: 1fr; } }
.gi-painel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; box-shadow: var(--gi-sombra); margin-bottom: 18px; }
.gi-painel > h2, .gi-painel-topo h2 { font-size: 16px; margin: 0 0 12px; color: var(--dark); }
.gi-painel-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.gi-painel-topo h2 { margin: 0; }
.gi-painel-topo a { font-size: 13px; color: var(--teal); text-decoration: none; font-weight: 600; }
.gi-vazio { text-align: center; color: var(--text-muted); font-size: 14px; padding: 22px 10px; }
.gi-vazio-icone { font-size: 30px; display: block; margin-bottom: 6px; opacity: .8; }

/* Chips de pessoa e selos */
.gi-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); white-space: nowrap; }
.gi-chip-aux { background: transparent; border-style: dashed; }
.gi-chip button { margin: 0; padding: 0 0 0 2px; background: none; color: var(--text-muted); font-size: 14px; line-height: 1; }
.gi-chip button:hover { color: #b3261e; filter: none; }
.gi-selo { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--cor, var(--teal)) 14%, transparent); color: var(--cor, var(--teal)); white-space: nowrap; }
.gi-selo-fechado { --cor: var(--gi-ok); }
.gi-selo-alerta { --cor: var(--gi-alerta); }
.gi-selo-off { --cor: var(--text-muted); }

/* Placa Mercosul */
.gi-placa { display: inline-flex; flex-direction: column; align-items: stretch; min-width: 92px; border: 1.5px solid #1a1a1a; border-radius: 5px; overflow: hidden; background: #ffffff; font-family: 'DejaVu Sans Mono', Consolas, monospace; box-shadow: 0 1px 0 rgba(0,0,0,.15); }
.gi-placa::before { content: 'BRASIL'; display: block; background: #1d4ed8; color: #ffffff; font: 700 7.5px/11px Arial, sans-serif; letter-spacing: .12em; text-align: center; }
.gi-placa span { color: #111111; font-weight: 800; font-size: 15px; letter-spacing: .08em; text-align: center; padding: 1px 8px 2px; }
.gi-placa-sem { opacity: .55; }
.gi-placa-sem::before { background: #9ca3af; }

/* Calendário */
.gi-cal-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.gi-cal-nav { display: flex; align-items: center; gap: 8px; }
.gi-cal-nav h2 { margin: 0 6px; font-size: 20px; color: var(--dark); min-width: 170px; text-align: center; }
.gi-btn-redondo { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-size: 16px; margin: 0; padding: 0; cursor: pointer; }
.gi-btn-redondo:hover { border-color: var(--teal); color: var(--teal); filter: none; }
.gi-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.gi-cal-sem { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; text-align: center; padding-bottom: 2px; }
.gi-cal-dia { min-height: 108px; display: flex; flex-direction: column; gap: 6px; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: var(--text); transition: border-color .12s, box-shadow .12s, transform .12s; position: relative; }
.gi-cal-dia:hover { border-color: var(--teal); box-shadow: 0 6px 18px rgba(16,24,40,.10); transform: translateY(-1px); }
.gi-cal-dia.fora { visibility: hidden; }
.gi-cal-dia.fim-semana { background: var(--surface-2); }
.gi-cal-dia.hoje { border: 2px solid var(--teal); }
.gi-cal-num { font-weight: 800; font-size: 15px; color: var(--dark); display: flex; justify-content: space-between; align-items: center; }
.gi-cal-dia.hoje .gi-cal-num span:first-child { background: var(--teal); color: #fff; border-radius: 999px; padding: 0 8px; }
:root[data-theme="dark"] .gi-cal-dia.hoje .gi-cal-num span:first-child { color: #0f1516; }
.gi-cal-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.gi-cal-tag { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--cor) 13%, transparent); color: var(--cor); white-space: nowrap; }
.gi-cal-vazio { font-size: 11.5px; color: var(--text-muted); margin-top: auto; }
.gi-cal-aviso { width: 9px; height: 9px; border-radius: 999px; background: var(--gi-alerta); display: inline-block; }
@media (max-width: 720px) {
  .gi-cal { grid-template-columns: 1fr; }
  .gi-cal-sem, .gi-cal-dia.fora { display: none; }
  .gi-cal-dia { min-height: 0; flex-direction: row; align-items: center; justify-content: space-between; }
  .gi-cal-dia .gi-cal-num { min-width: 110px; }
}

/* Dia */
.gi-dia-topo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 18px; }
.gi-dia-titulo { display: flex; align-items: center; gap: 10px; }
.gi-dia-titulo h2 { margin: 0; font-size: 21px; color: var(--dark); }
.gi-dia-titulo input[type="date"] { width: auto; padding: 7px 10px; }
.gi-dia-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
@media (max-width: 1000px) { .gi-dia-grid { grid-template-columns: 1fr; } }
.gi-lateral { position: sticky; top: 14px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 1000px) { .gi-lateral { position: static; } }

.gi-bloco { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 16px; box-shadow: var(--gi-sombra); overflow: hidden; }
.gi-bloco-topo { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--cor) 7%, var(--surface)); }
.gi-bloco-topo h3 { margin: 0; font-size: 15px; color: var(--dark); flex: 1; display: flex; align-items: center; gap: 8px; }
.gi-bloco-topo h3::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--cor); }
.gi-bloco-conta { font-size: 12px; font-weight: 700; color: var(--cor); }
.gi-bloco-add { margin: 0; padding: 6px 12px; font-size: 13px; background: transparent; color: var(--cor); border: 1px solid color-mix(in srgb, var(--cor) 50%, transparent); border-radius: 8px; font-weight: 600; }
.gi-bloco-add:hover { background: color-mix(in srgb, var(--cor) 10%, transparent); filter: none; }
.gi-bloco-vazio { padding: 14px 16px; font-size: 13px; color: var(--text-muted); }
.gi-cor-instalacao { --cor: var(--gi-inst); }
.gi-cor-manutencao { --cor: var(--gi-manut); }
.gi-cor-ti { --cor: var(--gi-ti); }
.gi-cor-plantao { --cor: var(--gi-plant); }
.gi-cor-terceirizado { --cor: var(--gi-terc); }
.gi-cor-ausencia { --cor: var(--gi-aus); }

.gi-linha { padding: 12px 16px; border-bottom: 1px solid var(--border); position: relative; }
.gi-linha:last-child { border-bottom: none; }
.gi-linha:hover { background: color-mix(in srgb, var(--cor) 3%, transparent); }
.gi-linha-grade { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px 14px; }
@media (max-width: 760px) { .gi-linha-grade { grid-template-columns: 1fr; } }
.gi-campo label { margin: 0 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.gi-campo input, .gi-campo select { padding: 7px 9px; font-size: 13.5px; }
.gi-campo + .gi-campo { margin-top: 8px; }
.gi-pessoas { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; min-height: 34px; padding: 4px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
.gi-pessoas select { width: auto; flex: 1; min-width: 110px; border: none; padding: 4px 6px; background: transparent; font-size: 13px; color: var(--text-muted); }
.gi-pessoas select:focus { outline: none; }
.gi-pessoas:focus-within { border-color: var(--teal); }
.gi-desloc { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gi-linha-acoes { position: absolute; top: 8px; right: 10px; display: flex; gap: 4px; opacity: .55; }
.gi-linha:hover .gi-linha-acoes, .gi-linha:focus-within .gi-linha-acoes { opacity: 1; }
.gi-linha-acoes button { margin: 0; padding: 3px 7px; font-size: 13px; background: var(--surface); color: var(--text-muted); border: 1px solid var(--border); border-radius: 6px; }
.gi-linha-acoes button:hover { color: var(--teal); border-color: var(--teal); filter: none; }
.gi-linha-acoes button.gi-remover:hover { color: #b3261e; border-color: #b3261e; }
.gi-linha.editavel { padding-right: 78px; }
@media (max-width: 760px) { .gi-linha.editavel { padding-right: 16px; padding-top: 38px; } }
.gi-imp { font-size: 11px; color: var(--text-muted); font-style: italic; }

/* Linha só leitura */
.gi-ler { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 6px 16px; align-items: start; font-size: 13.5px; }
@media (max-width: 760px) { .gi-ler { grid-template-columns: 1fr; } }
.gi-ler-pessoas { display: flex; flex-wrap: wrap; gap: 4px; }
.gi-ler-os { font-weight: 700; color: var(--dark); font-variant-numeric: tabular-nums; }
.gi-ler-cliente { font-weight: 600; }
.gi-ler-end, .gi-ler-obs { color: var(--text-muted); font-size: 12.5px; }
.gi-ler-desl { font-size: 12.5px; display: flex; flex-direction: column; gap: 3px; }
.gi-ler-desl strong { color: var(--dark); }

/* Lateral */
.gi-salvar-caixa { display: flex; flex-direction: column; gap: 8px; }
.gi-salvar-caixa button { margin-top: 0; width: 100%; font-weight: 700; }
.gi-status-salvo { font-size: 12.5px; color: var(--text-muted); text-align: center; min-height: 18px; }
.gi-status-salvo.pendente { color: var(--gi-alerta); font-weight: 700; }
.gi-avisos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.gi-avisos li { font-size: 12.5px; padding: 7px 10px; border-radius: 8px; background: color-mix(in srgb, var(--gi-alerta) 11%, transparent); color: var(--text); border-left: 3px solid var(--gi-alerta); line-height: 1.4; }
.gi-tudo-ok { font-size: 13px; color: var(--gi-ok); font-weight: 600; }
.gi-lista-veic { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.gi-lista-veic li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.gi-lista-veic li:last-child { border-bottom: none; }
.gi-lista-veic .gi-mot { color: var(--text-muted); font-size: 12.5px; text-align: right; }
.gi-livres { display: flex; flex-wrap: wrap; gap: 5px; }
.gi-livres .gi-chip { cursor: default; }
.gi-obs-dia textarea { min-height: 70px; font-size: 13px; }
.gi-barra-salvar { position: sticky; bottom: 0; z-index: 5; display: none; }

/* Veículos */
.gi-frota { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gi-veic { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); box-shadow: var(--gi-sombra); transition: transform .12s, border-color .12s, box-shadow .12s; }
.gi-veic:hover { transform: translateY(-2px); border-color: var(--teal); box-shadow: 0 8px 24px rgba(16,24,40,.12); }
.gi-veic-topo { display: flex; align-items: center; gap: 10px; }
.gi-veic-icone { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: var(--surface-2); flex-shrink: 0; }
.gi-veic-nome { font-weight: 700; color: var(--dark); line-height: 1.25; }
.gi-veic-num { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.gi-veic-linha { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--text-muted); }
.gi-veic-linha strong { color: var(--text); font-weight: 600; }
.gi-veic.inativo { opacity: .7; }
.gi-barra-uso { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.gi-barra-uso > span { display: block; height: 100%; background: var(--teal); border-radius: 999px; }

.gi-consulta { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.gi-consulta > div { min-width: 160px; }
.gi-consulta label { margin-top: 0; }
.gi-consulta button { margin-top: 0; }
.gi-resposta { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--teal) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--teal) 35%, transparent); font-size: 14px; }
.gi-resposta strong { color: var(--dark); }
.gi-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; font-size: 14px; margin: 0; }
.gi-dl dt { color: var(--text-muted); }
.gi-dl dd { margin: 0; font-weight: 600; }
.gi-form-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }

/* Tabelas do módulo */
.gi-tabela { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.gi-tabela th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); padding: 8px 10px; border-bottom: 2px solid var(--border); white-space: nowrap; }
.gi-tabela td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.gi-tabela tr:hover td { background: color-mix(in srgb, var(--teal) 4%, transparent); }
.gi-tabela .num { text-align: center; font-variant-numeric: tabular-nums; }
.gi-num-grande { font-size: 18px; font-weight: 800; color: var(--teal); }

/* Equipe */
.gi-grupo-titulo { display: flex; align-items: center; gap: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin: 20px 0 8px; font-weight: 700; }
.gi-grupo-titulo span { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
/* Por semana: colunas com a mesma largura em todas as semanas (antes cada tabela se ajustava sozinha). */
.gi-tabela-semana { table-layout: fixed; min-width: 640px; }
.gi-tabela-semana td { overflow-wrap: anywhere; }
.gi-pessoas-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.gi-pessoa { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--gi-sombra); }
.gi-pessoa.inativo { opacity: .6; }
.gi-avatar { width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: #fff; background: var(--cor, var(--teal)); flex-shrink: 0; object-fit: cover; }
.gi-pessoa-info { flex: 1; min-width: 0; }
.gi-pessoa-nome { font-weight: 700; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gi-pessoa-sub { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gi-pessoa-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.gi-pessoa a.gi-editar { font-size: 12.5px; color: var(--teal); text-decoration: none; font-weight: 600; }
.gi-cor-f-tecnico { --cor: var(--gi-inst); }
.gi-cor-f-auxiliar { --cor: #0891b2; }
.gi-cor-f-manutencao { --cor: var(--gi-manut); }
.gi-cor-f-ti { --cor: var(--gi-plant); }
.gi-cor-f-terceirizado { --cor: var(--gi-terc); }
.gi-cor-f-outro { --cor: #6b7280; }

/* Relatório */
.gi-motorista { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; background: var(--surface); overflow: hidden; }
.gi-motorista summary { display: grid; grid-template-columns: 1fr auto auto 14px; gap: 14px; align-items: center; padding: 11px 14px; cursor: pointer; list-style: none; }
.gi-motorista summary::-webkit-details-marker { display: none; }
.gi-motorista summary::after { content: '▸'; color: var(--text-muted); transition: transform .15s; }
.gi-motorista[open] summary::after { transform: rotate(90deg); }
.gi-motorista[open] summary { border-bottom: 1px solid var(--border); background: var(--surface-2); }
.gi-motorista-nome { font-weight: 700; color: var(--dark); }
.gi-motorista-nome small { display: block; font-weight: 500; color: var(--text-muted); font-size: 12px; }
.gi-motorista-total { font-size: 20px; font-weight: 800; color: var(--teal); font-variant-numeric: tabular-nums; min-width: 60px; text-align: right; }
.gi-motorista-total small { font-size: 11px; font-weight: 600; color: var(--text-muted); display: block; }
.gi-barra-dias { width: 140px; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.gi-barra-dias span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), color-mix(in srgb, var(--teal) 60%, #22d3ee)); border-radius: 999px; }
@media (max-width: 600px) { .gi-barra-dias { display: none; } .gi-motorista summary { grid-template-columns: 1fr auto 14px; } }
.gi-dias-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; padding: 12px 14px; }
.gi-dia-item { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; padding: 5px 8px; border-radius: 7px; background: var(--surface-2); text-decoration: none; color: var(--text); }
.gi-dia-item:hover { outline: 1px solid var(--teal); }
.gi-dia-item b { font-variant-numeric: tabular-nums; min-width: 66px; color: var(--dark); }
.gi-dia-item span { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gi-envio-caixa { border-radius: 14px; padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--teal) 35%, transparent); background: color-mix(in srgb, var(--teal) 6%, var(--surface)); }
.gi-envio-caixa.fechado { border-color: color-mix(in srgb, var(--gi-ok) 45%, transparent); background: color-mix(in srgb, var(--gi-ok) 7%, var(--surface)); }
.gi-envio-caixa h2 { margin: 0 0 6px; font-size: 16px; color: var(--dark); }
.gi-envio-caixa p { margin: 6px 0; font-size: 13.5px; }
.gi-envio-caixa textarea { min-height: 64px; font-size: 13px; }
.gi-historico { list-style: none; padding: 0; margin: 10px 0 0; font-size: 12.5px; color: var(--text-muted); }
.gi-historico li { padding: 5px 0; border-top: 1px dashed var(--border); }
.gi-sel-mes { display: flex; align-items: center; gap: 8px; }
.gi-sel-mes select { width: auto; padding: 8px 10px; font-weight: 600; }

@media print {
  .topbar, .gi-nav, .gi-lateral, .gi-acoes, .gi-linha-acoes, .gi-bloco-add { display: none !important; }
  .gi-dia-grid { grid-template-columns: 1fr; }
  body { background: #fff; }
}
/* Editor do dia: grade de 12 colunas (mais larga que as outras telas) */
.gi-main.gi-largo { max-width: 1360px; }
.gi-linha-grade { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px 12px; }
.gi-s2 { grid-column: span 2; } .gi-s3 { grid-column: span 3; } .gi-s4 { grid-column: span 4; } .gi-s5 { grid-column: span 5; }
.gi-s6 { grid-column: span 6; } .gi-s7 { grid-column: span 7; } .gi-s10 { grid-column: span 10; }
.gi-desloc { grid-template-columns: 1.3fr 1fr; }
@media (max-width: 760px) { .gi-linha-grade > [class^="gi-s"] { grid-column: 1 / -1; } }
.gi-avisos-mais { margin-top: 6px; }
@media (max-width: 720px) { .gi-cal-sem-movel { display: inline !important; } }
/* Carteira de O.S. */
.gi-prazo-atrasada { --cor: var(--gi-aus); }
.gi-prazo-hoje, .gi-prazo-perto { --cor: var(--gi-alerta); }
.gi-prazo-ok { --cor: var(--text-muted); }
.gi-tabela tr.gi-os-atrasada td:first-child { box-shadow: inset 3px 0 0 var(--gi-aus); }
.gi-check { display: inline-flex; width: 20px; height: 20px; border-radius: 6px; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; margin-right: 3px; background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }
.gi-check-enviado { background: color-mix(in srgb, var(--gi-ok) 16%, transparent); color: var(--gi-ok); border-color: transparent; }
.gi-check-pendente { background: color-mix(in srgb, var(--gi-alerta) 18%, transparent); color: var(--gi-alerta); border-color: transparent; }
select.gi-status-rapido { width: auto; padding: 5px 8px; font-size: 12.5px; font-weight: 600; }
/* Select de status colorido pela cor do status escolhido (--cor = var(--os-<status>)). */
select.gi-status-cor { color: var(--cor); font-weight: 700; background-color: color-mix(in srgb, var(--cor) 11%, var(--surface)); border-color: color-mix(in srgb, var(--cor) 50%, var(--border)); }
select.gi-status-cor option { color: var(--text); background: var(--surface); font-weight: 400; }
a.gi-kpi:hover { border-color: var(--cor, var(--teal)); }
.gi-os-sugestao { font-size: 11.5px; color: var(--teal); margin-top: 3px; }
/* .muted do Painel tem margem de parágrafo; dentro do módulo, só onde for parágrafo */
.gi-main div.muted, .gi-main span.muted, .gi-tabela .muted { margin-bottom: 0; }
.gi-dia-titulo { flex-wrap: wrap; }
@media (max-width: 600px) { .gi-dia-titulo h2 { font-size: 17px; } .gi-dia-titulo input[type="date"] { flex: 1; min-width: 0; } }

/* Colaboradores: vencimentos de NR e cursos */
.colab-btn-venc .badge { margin-left: 4px; }
.venc-resumo { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 18px; }
.venc-kpi { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; border-left: 4px solid var(--cor); }
.venc-kpi:hover { border-color: var(--cor); }
.venc-kpi-num { font-size: 28px; font-weight: 800; color: var(--cor); font-variant-numeric: tabular-nums; }
.venc-kpi.zero .venc-kpi-num { color: var(--text-muted); }
.venc-kpi-vencido { --cor: #b3261e; }
.venc-kpi-30 { --cor: #f0a020; }
.venc-kpi-60 { --cor: var(--teal); }
.venc-tabela tr.venc-linha-vencida td:first-child { box-shadow: inset 3px 0 0 #b3261e; }

/* Colaboradores: materiais/EPI e condução */
.mat-tabela td { vertical-align: top; }
.mat-acoes { min-width: 170px; }
.mat-acoes form { margin: 0; }
.mat-devolver summary { cursor: pointer; color: var(--teal); font-size: 13px; font-weight: 600; }
.mat-devolver form { margin-top: 6px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }
.mat-devolver label { margin: 6px 0 3px; font-size: 12px; }
.mat-devolver input, .mat-devolver select { padding: 6px 8px; font-size: 13px; }
.mat-devolver button { margin-top: 8px; padding: 7px 12px; font-size: 13px; }
.mat-termo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.mat-historico { margin-top: 12px; }
.mat-historico summary { cursor: pointer; color: var(--text-muted); }
.mat-historico ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.6; }
.mat-resumo { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }
.mat-resumo-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-size: 13px; }
.mat-resumo-item:hover, .mat-resumo-item.ativo { border-color: var(--teal); }
.mat-resumo-item.ativo { box-shadow: inset 0 0 0 1px var(--teal); }
.mat-resumo-num { font-size: 22px; font-weight: 800; color: var(--teal); }
.mat-resumo-item.zero .mat-resumo-num { color: var(--text-muted); }
.mat-linha-desligado td { background: color-mix(in srgb, #b3261e 6%, transparent); }
.cond-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.cond-cnh button { margin-top: 10px; }
.cond-acoes { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.cond-acoes form { margin: 0; }
.cond-acoes button { margin-top: 0; }
.mat-tabela { min-width: 680px; }
.mat-tabela th, .mat-tabela td { word-break: normal; overflow-wrap: normal; }

/* Colaboradores: transferências */
.transf-aviso { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.transf-aviso form { margin: 0; }
.transf-item { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; background: var(--surface-2); }
.transf-cabeca { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.transf-nome { font-size: 15px; color: var(--dark); }
.transf-rota { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.transf-info { margin: 8px 0 0; line-height: 1.5; }
.transf-acoes { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.transf-acoes > form { display: flex; align-items: flex-end; gap: 8px; margin: 0; }
.transf-acoes label { margin: 0 0 4px; }
.transf-acoes input[type="date"] { width: auto; padding: 6px 8px; }
.transf-acoes button { margin-top: 0; }

/* Gestão Setor Financeiro */
.fin-tabela { min-width: 760px; }
.fin-tabela th, .fin-tabela td { word-break: normal; overflow-wrap: normal; }
.fin-tabela tr.fin-linha-alerta td:first-child { box-shadow: inset 3px 0 0 #b3261e; }
.fin-form-linha { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.fin-form-linha input, .fin-form-linha select { width: auto; flex: 1; min-width: 140px; padding: 7px 9px; }
.fin-form-linha textarea { flex: 2; min-width: 220px; padding: 7px 9px; }
.fin-form-linha button { margin-top: 0; }
.fin-cortar { max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Gestão Instalação — cor por técnico nos chips de "Técnicos" da agenda */
:root {
  --gi-p0: #2563eb; --gi-p1: #c2410c; --gi-p2: #15803d; --gi-p3: #9333ea; --gi-p4: #be123c;
  --gi-p5: #0e7490; --gi-p6: #a16207; --gi-p7: #4338ca; --gi-p8: #be185d; --gi-p9: #4d7c0f;
  --gi-p10: #92400e; --gi-p11: #475569;
}
:root[data-theme="dark"] {
  --gi-p0: #60a5fa; --gi-p1: #fb923c; --gi-p2: #4ade80; --gi-p3: #c084fc; --gi-p4: #fb7185;
  --gi-p5: #22d3ee; --gi-p6: #facc15; --gi-p7: #818cf8; --gi-p8: #f472b6; --gi-p9: #a3e635;
  --gi-p10: #e0a86f; --gi-p11: #94a3b8;
}
.gi-chip-p0 { --pc: var(--gi-p0); } .gi-chip-p1 { --pc: var(--gi-p1); } .gi-chip-p2 { --pc: var(--gi-p2); }
.gi-chip-p3 { --pc: var(--gi-p3); } .gi-chip-p4 { --pc: var(--gi-p4); } .gi-chip-p5 { --pc: var(--gi-p5); }
.gi-chip-p6 { --pc: var(--gi-p6); } .gi-chip-p7 { --pc: var(--gi-p7); } .gi-chip-p8 { --pc: var(--gi-p8); }
.gi-chip-p9 { --pc: var(--gi-p9); } .gi-chip-p10 { --pc: var(--gi-p10); } .gi-chip-p11 { --pc: var(--gi-p11); }
.gi-chip[class*="gi-chip-p"] { color: var(--pc); background: color-mix(in srgb, var(--pc) 13%, var(--surface)); border-color: color-mix(in srgb, var(--pc) 55%, transparent); }

/* Gestão Instalação — mudar a ordem das linhas arrastando */
.gi-linha.editavel { padding-left: 38px; cursor: grab; }
.gi-linha.editavel :is(input, select, textarea, button) { cursor: auto; }
.gi-linha.editavel button { cursor: pointer; }
.gi-alca { position: absolute; left: 0; top: 0; bottom: 0; width: 28px; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; background: none; border: none; border-radius: 0; color: var(--text-muted); font-size: 15px; letter-spacing: -3px; opacity: .6; touch-action: none; }
.gi-linha.editavel .gi-alca { cursor: grab; }
.gi-alca:hover, .gi-alca:focus-visible { opacity: 1; color: var(--cor); background: color-mix(in srgb, var(--cor) 8%, transparent); filter: none; }
.gi-linha.gi-arrastando { background: var(--surface); box-shadow: 0 10px 28px rgba(16, 24, 40, .22); outline: 2px solid color-mix(in srgb, var(--cor) 60%, transparent); border-radius: 8px; z-index: 3; }
.gi-linha.gi-arrastando .gi-alca { opacity: 1; color: var(--cor); }
body.gi-arrastando-pagina, body.gi-arrastando-pagina * { cursor: grabbing !important; user-select: none; }
@media (max-width: 760px) { .gi-linha.editavel { padding-left: 38px; } }
@media print { .gi-alca { display: none !important; } }

/* ---------- Sanções disciplinares ---------- */
.sc-escolher { max-width: 520px; }
.sc-ident { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 18px; margin: 10px 0 14px; }
.sc-ident > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.sc-ident .muted { margin-bottom: 0; }
.sc-anteriores ul { margin: 6px 0 6px 18px; padding: 0; }
.sc-anteriores li { margin: 2px 0; }
.sc-ocorrencias { display: flex; flex-direction: column; gap: 6px; }
.sc-ocorrencia { display: flex; gap: 8px; align-items: center; }
.sc-ocorrencia input { flex: 1; min-width: 0; }
.sc-ocorrencia .btn-danger-link { margin: 0; white-space: nowrap; }
.sc-mais { margin-top: 6px; padding: 4px 10px; font-size: 13px; }
.sc-texto-topo { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.sc-texto-topo .colab-secao { margin-bottom: 0; }
.sc-texto-topo .btn, .sc-texto-topo button { margin-top: 0; }
.sc-texto { width: 100%; font-family: inherit; font-size: 14px; line-height: 1.5; resize: vertical; }
.sc-acoes { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 6px 0 4px; }
.sc-acoes button, .sc-acoes .btn { margin-top: 0; }
.sc-badge-grave { background: #b3261e; color: #ffffff; }
.sc-check { flex-direction: row; align-items: center; gap: 8px; }
.sc-check input { width: auto; }
.sc-envios { margin: 10px 0 0 18px; padding: 0; color: var(--text-muted); }
.sc-previa-texto { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 12px 16px; font-size: 14px; line-height: 1.55; text-align: justify; }
.sc-previa-texto p { margin: 0 0 10px; }
.colab-nome-doc { margin-top: 6px; }
.colab-nome-doc input { width: 230px; max-width: 100%; font-size: 12px; }
.colab-nome-doc button { margin-top: 0; padding: 5px 10px; font-size: 12px; }
@media (max-width: 640px) { .sc-acoes > * { flex: 1 1 100%; text-align: center; } }
[data-sc][hidden], #sc-aviso-editado[hidden] { display: none !important; }

/* ---------- Rastreamento veicular (Gestão Instalação) ---------- */
.rq-dica { margin: -4px 0 10px; }
.rq-quadro { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(185px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.rq-coluna { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px; min-height: 140px; border-top: 4px solid var(--cor, var(--teal)); transition: background .15s, box-shadow .15s; }
.rq-coluna.rq-alvo { background: color-mix(in srgb, var(--cor, var(--teal)) 10%, var(--surface-2)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--cor, var(--teal)) 55%, transparent); }
.rq-coluna-topo { display: flex; justify-content: space-between; align-items: center; margin: 2px 2px 10px; }
.rq-coluna-topo h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin: 0; color: var(--dark); }
.rq-conta { font-size: 12px; font-weight: 700; color: var(--cor, var(--teal)); background: color-mix(in srgb, var(--cor, var(--teal)) 14%, transparent); border-radius: 999px; padding: 1px 8px; }
.rq-cartoes { display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.rq-cartao { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--gi-sombra); overflow: hidden; }
.rq-cartao[draggable="true"] { cursor: grab; }
.rq-cartao.rq-arrastando { opacity: .45; }
.rq-cartao.rq-salvando { opacity: .7; }
.rq-cartao.rq-atrasado { border-color: color-mix(in srgb, var(--gi-aus) 55%, var(--border)); }
.rq-cartao-link { display: block; padding: 10px 11px 8px; color: inherit; text-decoration: none; }
.rq-cartao-link:hover .rq-cliente { color: var(--teal); }
.rq-cartao-topo { display: flex; justify-content: space-between; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.rq-os { font-size: 11.5px; color: var(--text-muted); font-weight: 600; }
.rq-cliente { font-weight: 700; font-size: 13.5px; line-height: 1.3; color: var(--dark); overflow-wrap: anywhere; }
.rq-veiculo { font-size: 12.5px; margin-top: 3px; overflow-wrap: anywhere; }
.rq-data, .rq-tecnico { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.rq-vencida { color: var(--gi-aus) !important; font-weight: 700; }
.rq-marcas { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.rq-marca { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: color-mix(in srgb, var(--text-muted) 14%, transparent); color: var(--text-muted); }
.rq-marca-ok { background: color-mix(in srgb, var(--gi-ok) 15%, transparent); color: var(--gi-ok); }
.rq-marca-alerta { background: color-mix(in srgb, var(--gi-terc) 16%, transparent); color: var(--gi-terc); }
.rq-mover { margin: 0; border-top: 1px solid var(--border); }
.rq-mover select { width: 100%; border: 0; border-radius: 0; background: transparent; font-size: 12px; padding: 6px 10px; color: var(--text-muted); margin: 0; }
.rq-ver-mais { font-size: 12.5px; text-align: center; padding: 4px; }
/* cores das etapas */
.rq-etapa-a_agendar, .rq-etapa-contatar { --cor: var(--gi-terc); }
.rq-etapa-agendado, .rq-etapa-retirada_agendada { --cor: var(--gi-manut); }
.rq-etapa-executado, .rq-etapa-retirado { --cor: var(--gi-ti); }
.rq-etapa-pagamento, .rq-etapa-desativar { --cor: var(--gi-plant); }
.rq-etapa-cobranca { --cor: var(--gi-aus); }
.rq-etapa-concluido { --cor: var(--gi-ok); }
.rq-etapa-cancelado { --cor: var(--text-muted); }
/* cores dos tipos de serviço / motivos */
.rq-tipo-instalacao { --cor: var(--gi-inst); }
.rq-tipo-manutencao_garantia, .rq-tipo-manutencao { --cor: var(--gi-manut); }
.rq-tipo-remanejamento { --cor: var(--gi-plant); }
.rq-tipo-troca_titularidade { --cor: var(--gi-ti); }
.rq-tipo-reativacao { --cor: var(--gi-ok); }
.rq-tipo-retirada, .rq-tipo-venda { --cor: var(--gi-terc); }
.rq-tipo-inadimplencia { --cor: var(--gi-aus); }
.rq-tipo-sem_interesse, .rq-tipo-nao_informado, .rq-tipo-outro { --cor: var(--text-muted); }
.rq-tabela tr.rq-atrasado td:first-child { box-shadow: inset 3px 0 0 var(--gi-aus); }
/* ficha */
.rq-ficha { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.rq-lado { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.rq-secao { font-size: 15px; margin: 4px 0 10px; color: var(--dark); }
.rq-secao + .rq-grid { margin-bottom: 16px; }
.rq-sub { font-size: 13px; margin: 16px 0 6px; }
.rq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; }
.rq-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rq-grid label, .rq-ficha label { margin-top: 6px; }
.rq-duplo { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.rq-span-2 { grid-column: 1 / -1; }
.rq-acoes { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.rq-acoes button { margin-top: 0; }
.rq-canais { display: flex; gap: 16px; margin: 10px 0 2px; }
.rq-canais label, .rq-check { display: flex; align-items: center; gap: 6px; font-weight: 600; margin: 6px 0 0; }
.rq-canais input, .rq-check input { width: auto; margin: 0; }
#rq-envio textarea { width: 100%; font-size: 13.5px; line-height: 1.45; }
.rq-lista-hist { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.rq-lista-hist li { padding: 7px 0; border-bottom: 1px solid var(--border); }
.rq-lista-hist li:last-child { border-bottom: 0; }
.rq-modelo { border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; background: var(--surface); }
.rq-modelo summary { cursor: pointer; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rq-modelo-form { margin-top: 10px; }
.rq-modelo-form textarea { width: 100%; font-size: 13.5px; line-height: 1.45; }
.rq-ficha textarea, .rq-modelo-form textarea { font-family: inherit; }
[data-remanej][hidden], [data-canal][hidden] { display: none !important; }
@media (max-width: 980px) { .rq-ficha { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .rq-grid, .rq-grid-3 { grid-template-columns: 1fr; } .rq-quadro { grid-auto-columns: 82%; } }

/* ---------- Gestão de Rua Monitorada (Financeiro) ---------- */
.rm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.rm-layout > * { min-width: 0; }
.rm-selos { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.rm-tabela { min-width: 980px; }
.rm-regra { max-width: 260px; }
.rm-dados { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 18px; margin: 0; }
.rm-dados > div { min-width: 0; }
.rm-dados dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); font-weight: 600; }
.rm-dados dd { margin: 2px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.rm-dados-largo { grid-column: 1 / -1; }
.rm-detalhes { margin-top: 12px; }
.rm-detalhes summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--teal); }
.rm-detalhes[open] summary { margin-bottom: 8px; }
.gi-tabela tr.rm-grupo td { background: var(--surface-2); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.rm-ajuste { border: 1px solid var(--border); border-left: 4px solid var(--gi-alerta); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.rm-ajuste-topo { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.rm-ajuste form button { margin-top: 10px; }
.rm-nota { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; }
.rm-nota textarea { flex: 1; min-width: 0; font-family: inherit; }
.rm-nota button { margin-top: 0; }
.rm-checks { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.rm-conferir { border-left: 4px solid var(--gi-alerta); }
.rm-conferir ul { margin: 6px 0 8px; padding-left: 18px; }
.rm-conferido { margin-top: 12px; font-weight: 600; }
.rm-avisos ul { margin: 0; padding-left: 18px; }
.rm-avisos li { margin: 3px 0; }
.rm-avisos a { color: inherit; }
.rm-modelo-texto { white-space: pre-wrap; background: var(--surface-2); border-radius: 8px; padding: 10px 12px; }
#rm-envio textarea { width: 100%; font-family: inherit; font-size: 13.5px; line-height: 1.45; }
#rm-envio [hidden] { display: none !important; }
@media (max-width: 1000px) { .rm-layout { grid-template-columns: 1fr; } }

/* ---------- Controle de férias (fer-*) ---------- */
:root {
  --fer-ok: #1f9d55; --fer-alerta: #b45309; --fer-perigo: #b3261e; --fer-roxo: #7c3aed; --fer-azul: #2563eb; --fer-cinza: #6b7280;
}
:root[data-theme="dark"] {
  --fer-ok: #4ade80; --fer-alerta: #fbbf24; --fer-perigo: #f87171; --fer-roxo: #a78bfa; --fer-azul: #60a5fa; --fer-cinza: #9aa6a5;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a.fer-kpi { text-decoration: none; color: inherit; display: block; }
a.fer-kpi:hover { border-color: var(--cor, var(--teal)); }
.fer-barra { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.fer-filtro select { margin: 0; min-width: 220px; }
.fer-st, .fer-sit { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.fer-st-grande { font-size: 13px; padding: 5px 12px; }
.fer-st-proposta, .fer-sit-vence90, .fer-sit-vence60 { color: var(--fer-alerta); background: color-mix(in srgb, var(--fer-alerta) 13%, transparent); }
.fer-st-aprovada, .fer-sit-ok { color: var(--fer-ok); background: color-mix(in srgb, var(--fer-ok) 13%, transparent); }
.fer-st-contab { color: var(--fer-azul); background: color-mix(in srgb, var(--fer-azul) 13%, transparent); }
.fer-st-gozo { color: var(--fer-roxo); background: color-mix(in srgb, var(--fer-roxo) 14%, transparent); }
.fer-st-concluida, .fer-sit-quitado, .fer-st-cancelada { color: var(--fer-cinza); background: color-mix(in srgb, var(--fer-cinza) 12%, transparent); }
.fer-st-recusada, .fer-sit-vencida, .fer-sit-vence30 { color: var(--fer-perigo); background: color-mix(in srgb, var(--fer-perigo) 12%, transparent); }
.fer-sit-vencida { color: #ffffff; background: var(--fer-perigo); }
:root[data-theme="dark"] .fer-sit-vencida { color: #1a0d0d; }
.fer-sit-programar { color: var(--teal); background: color-mix(in srgb, var(--teal) 12%, transparent); }
.fer-sit-conferir { color: var(--fer-cinza); border: 1px dashed var(--fer-cinza); background: transparent; }
.fer-linha-conflito td:first-child { box-shadow: inset 3px 0 0 var(--fer-perigo); }
.fer-conflito-item { border-left: 3px solid var(--fer-perigo); padding: 8px 12px; margin: 10px 0; background: var(--surface-2); border-radius: 0 8px 8px 0; font-size: 13.5px; }
.fer-conflito-item ul, .fer-lista { margin: 6px 0; padding-left: 18px; font-size: 13.5px; }
.fer-conflito-item li, .fer-lista li { margin: 3px 0; }
.fer-card-conflito { border-left: 4px solid var(--fer-perigo); }

/* calendário anual */
.fer-cal-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.fer-cal-topo a.btn { margin-top: 0; }
.fer-legenda { display: flex; gap: 16px; flex-wrap: wrap; color: var(--text-muted); margin-bottom: 12px; }
.fer-legenda span { display: inline-flex; align-items: center; gap: 6px; }
.fer-leg { display: inline-block; width: 22px; height: 10px; border-radius: 3px; }
.fer-cal { overflow-x: auto; }
.fer-cal-linha { display: grid; grid-template-columns: 210px minmax(520px, 1fr); align-items: center; min-height: 26px; }
.fer-cal-nome { font-size: 13px; padding-right: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fer-cal-nome a { color: inherit; text-decoration: none; }
.fer-cal-nome a:hover { color: var(--teal); text-decoration: underline; }
.fer-cal-trilho { position: relative; height: 22px; background: var(--surface-2); border-radius: 4px; }
.fer-cal-cab .fer-cal-trilho { background: transparent; height: 18px; }
.fer-cal-mesnome { position: absolute; top: 0; font-size: 11px; color: var(--text-muted); padding-left: 4px; text-transform: uppercase; letter-spacing: .03em; }
.fer-cal-mes { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--border); }
.fer-cal-hoje { position: absolute; top: -3px; bottom: -3px; border-left: 2px solid var(--fer-perigo); z-index: 2; }
.fer-bar { position: absolute; top: 3px; bottom: 3px; border-radius: 4px; min-width: 3px; z-index: 1; }
.fer-bar-aprovada, .fer-leg.fer-bar-aprovada { background: var(--teal); }
.fer-bar-proposta, .fer-leg.fer-bar-proposta { background: repeating-linear-gradient(45deg, var(--fer-alerta), var(--fer-alerta) 4px, color-mix(in srgb, var(--fer-alerta) 45%, transparent) 4px, color-mix(in srgb, var(--fer-alerta) 45%, transparent) 8px); }
.fer-bar.fer-bar-conflito, .fer-leg.fer-bar-conflito { outline: 2px solid var(--fer-perigo); outline-offset: 1px; }
.fer-leg.fer-bar-conflito { background: var(--surface-2); }
.fer-cal-grupo { padding: 8px 0 6px; border-top: 1px solid var(--border); }
.fer-cal-grupo-titulo { font-weight: 700; font-size: 13.5px; margin: 2px 0 6px; }
.fer-cal-gerentes { background: color-mix(in srgb, var(--fer-roxo) 6%, transparent); border-radius: 8px; padding: 8px 0 6px; border-top: none; margin-bottom: 6px; }
.fer-cal-gerentes .fer-cal-nome, .fer-cal-gerentes .fer-cal-grupo-titulo { padding-left: 8px; }

/* colaborador / programação */
.fer-form-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px 14px; }
.fer-form-grade label { margin-top: 0; }
.fer-form-grade input, .fer-form-grade select { width: 100%; }
.fer-analise { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.fer-an { font-size: 13px; padding: 8px 12px; border-radius: 6px; border-left: 3px solid; }
.fer-an-erro { color: var(--fer-perigo); border-color: var(--fer-perigo); background: color-mix(in srgb, var(--fer-perigo) 9%, transparent); }
.fer-an-conflito { color: var(--fer-perigo); border-color: var(--fer-perigo); background: color-mix(in srgb, var(--fer-perigo) 9%, transparent); font-weight: 600; }
.fer-an-aviso { color: var(--fer-alerta); border-color: var(--fer-alerta); background: color-mix(in srgb, var(--fer-alerta) 10%, transparent); }
.fer-an-ok { color: var(--fer-ok); border-color: var(--fer-ok); background: color-mix(in srgb, var(--fer-ok) 10%, transparent); }
.fer-carga { display: flex; flex-wrap: wrap; gap: 12px; }
.fer-carga-bloco { flex: 1 1 260px; border: 1px solid var(--border); border-radius: 10px; padding: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.fer-carga-bloco button { margin-top: 0; }
.fer-carga-larga { flex-basis: 100%; }
.fer-carga-larga .fer-form-grade { width: 100%; }
.fer-prog-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.fer-prog-datas { font-size: 22px; font-weight: 800; color: var(--dark); }
.fer-dl { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; margin: 16px 0 0; font-size: 13.5px; }
.fer-dl dt { color: var(--text-muted); }
.fer-dl dd { margin: 0; }
.fer-decisao { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fer-decisao form { margin: 0; }
.fer-decisao button, .fer-decisao a.btn, .fer-recusa button { margin-top: 0; }
.fer-recusa { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fer-recusa input[type="text"] { min-width: 240px; flex: 1; margin: 0; }
.fer-recusa input[type="date"] { margin: 0; width: auto; }
@media (max-width: 640px) {
  .fer-dl { grid-template-columns: 1fr; }
  .fer-dl dt { margin-top: 6px; }
  .fer-cal-linha { grid-template-columns: 130px minmax(520px, 1fr); }
}

.fer-main .card a:not(.btn):not(.fer-bar) { color: var(--teal); }
.fer-acoes { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.fer-acoes form { margin: 0; }
.fer-acoes button, .fer-acoes a.btn { margin-top: 0; padding: 6px 10px; font-size: 12px; white-space: nowrap; }
.fer-col2 { grid-column: span 2; }
@media (max-width: 520px) { .fer-col2 { grid-column: auto; } }
.fer-carga { align-items: flex-start; }
.fer-just { margin: 8px 0 0; font-size: 13.5px; }

/* ---------- Setor Comercial (com-*) ---------- */
.com-main { --com-s1: #2a78d6; --com-meta: #52514e; --com-grid: #e1e0d9; --com-base: #c3c2b7; --com-ok: #0b7a0b; --com-ruim: #b3261e; --com-trilho: #e6eef9; }
:root[data-theme="dark"] .com-main { --com-s1: #3987e5; --com-meta: #c3c2b7; --com-grid: #2c3536; --com-base: #44504f; --com-ok: #4ade80; --com-ruim: #f87171; --com-trilho: #1d2c40; }
.com-main .card a:not(.btn) { color: var(--teal); }
.com-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-bottom: 18px; }
.com-kpi, .com-hero, .com-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; box-shadow: var(--gi-sombra); }
.com-kpi-topo { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.com-kpi-rotulo { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); font-weight: 600; }
.com-kpi-valor { font-size: 28px; font-weight: 800; color: var(--dark); margin-top: 6px; line-height: 1.15; }
.com-kpi-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.com-kpi-rodape { font-size: 12.5px; color: var(--text-muted); margin-top: 8px; line-height: 1.45; }
.com-medidor { position: relative; height: 8px; border-radius: 999px; background: var(--com-trilho); margin-top: 10px; overflow: visible; }
.com-medidor span { display: block; height: 100%; border-radius: 999px; background: var(--com-s1); max-width: 100%; }
.com-medidor i { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--com-meta); border-radius: 1px; }
.com-medidor-grande { height: 12px; margin-top: 14px; }
.com-st { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.com-st-ok { color: var(--com-ok); background: color-mix(in srgb, var(--com-ok) 13%, transparent); }
.com-st-ok::before { content: '✓ '; }
.com-st-ruim { color: var(--com-ruim); background: color-mix(in srgb, var(--com-ruim) 12%, transparent); }
.com-st-ruim::before { content: '! '; }
.com-st-neutro { color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); }
.com-tabela th.num, .com-tabela td.num, .com-tabela input.num { text-align: right; font-variant-numeric: tabular-nums; }
.com-tabela th.com-grupo { text-align: center; border-left: 1px solid var(--border); }
.com-tabela td.com-grupo-ini { border-left: 1px solid var(--border); }
.com-tabela .muted-cel { color: var(--text-muted); }
.com-tabela tr.com-total td { background: var(--surface-2); font-weight: 600; }
.com-tabela input[type="text"], .com-tabela input[type="number"] { margin: 0; min-width: 110px; }
.com-tabela input[type="checkbox"] { width: auto; margin: 0; }
.com-pos { display: inline-block; min-width: 26px; color: var(--text-muted); font-size: 12px; }
.com-pct { font-weight: 600; }
.com-pct-ok { color: var(--com-ok); }
.com-pct-ruim { color: var(--com-ruim); }
.com-sec-topo { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.com-sec-topo button { margin-top: 0; }
.com-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); flex-wrap: wrap; }
.com-seg a { padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text-muted) !important; text-decoration: none; }
.com-seg a.ativo { background: var(--teal); color: #ffffff !important; }
:root[data-theme="dark"] .com-seg a.ativo { color: #0f1516 !important; }
.com-tipo { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.com-tipo label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin: 0; }
.com-tipo input { width: auto; margin: 0; }
.com-add { display: flex; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.com-add label { margin: 0; }
.com-add select { width: auto; min-width: 240px; margin: 0; }
.com-filtros { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }
.com-filtros > div { display: flex; flex-direction: column; gap: 4px; }
.com-filtros label, .com-filtro-rotulo { margin: 0; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.com-filtros select, .com-filtros input { margin: 0; width: auto; min-width: 160px; }
.com-dash-topo { display: grid; grid-template-columns: minmax(280px, 1.3fr) 2fr; gap: 14px; margin-bottom: 16px; align-items: stretch; }
.com-dash-topo > .card { margin: 0; }
.com-hero-valor { font-size: 52px; font-weight: 800; color: var(--dark); line-height: 1.05; margin-top: 8px; }
.com-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.com-tile { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
a.com-tile:hover { border-color: var(--teal); }
.com-tile-valor { font-size: 26px; font-weight: 800; color: var(--dark); }
@media (max-width: 760px) { .com-dash-topo { grid-template-columns: 1fr; } .com-hero-valor { font-size: 44px; } }
/* gráficos */
.com-viz { width: 100%; overflow-x: auto; }
.com-viz-svg { width: 100%; min-width: 640px; max-width: 1100px; height: auto; display: block; font-family: inherit; }
.com-grid { stroke: var(--com-grid); stroke-width: 1; }
.com-base { stroke: var(--com-base); stroke-width: 1; }
.com-eixo { fill: var(--text-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.com-eixo-forte { fill: var(--com-meta); font-weight: 700; }
.com-rotulo { fill: var(--text); font-size: 12.5px; }
.com-valor { fill: var(--text); font-size: 12px; font-weight: 600; }
.com-valor-pct { fill: var(--text-muted); font-weight: 600; }
.com-barra { fill: var(--com-s1); }
.com-meta { stroke: var(--com-meta); stroke-width: 2; stroke-linecap: round; }
.com-real { fill: none; stroke: var(--com-s1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.com-area { fill: var(--com-s1); opacity: .1; }
.com-ideal { fill: none; stroke: var(--com-meta); stroke-width: 1.5; stroke-linejoin: round; opacity: .8; }
.com-ponto { fill: var(--com-s1); stroke: var(--surface); stroke-width: 2; }
.com-mira { stroke: var(--com-meta); stroke-width: 1; }
.com-hitarea { fill: transparent; }
.com-hit { cursor: default; outline: none; }
.com-hit:hover .com-barra, .com-hit:focus .com-barra { filter: brightness(1.12); }
.com-hit:focus-visible .com-hitarea, .com-mira-area:focus-visible { stroke: var(--teal); stroke-width: 1.5; }
.com-legenda { display: flex; gap: 16px; flex-wrap: wrap; color: var(--text-muted); margin: 0 0 8px; }
.com-legenda span { display: inline-flex; align-items: center; gap: 6px; }
.com-leg-barra { display: inline-block; width: 14px; height: 10px; border-radius: 2px; background: var(--com-s1); }
.com-leg-meta { display: inline-block; width: 2px; height: 14px; background: var(--com-meta); border-radius: 1px; }
.com-leg-linha { display: inline-block; width: 16px; height: 2px; background: var(--com-s1); border-radius: 1px; }
.com-leg-ideal { display: inline-block; width: 16px; height: 2px; background: var(--com-meta); opacity: .8; border-radius: 1px; }
.com-tooltip { position: fixed; z-index: 50; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; box-shadow: 0 4px 16px rgba(0,0,0,.14); pointer-events: none; max-width: 280px; }
.com-tip-titulo { font-weight: 700; margin-bottom: 2px; }

/* ---------- Exames e homologações (ex-*) ---------- */
.ex-opcoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.ex-opcao { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); cursor: pointer; margin: 0; font-weight: normal; }
.ex-opcao input { width: auto; margin: 3px 0 0; }
.ex-opcao:has(input:checked) { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 8%, var(--surface)); }
.ex-opcao .badge { margin-left: auto; }
.ex-previa { margin: 16px 0 6px; padding: 12px 14px; border: 1px dashed var(--border); border-radius: 10px; background: var(--surface-2); font-size: 13.5px; }
.ex-nova { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.ex-nova > div { flex: 1 1 240px; }
.ex-nova select { margin: 0; }
.ex-nova button { margin-top: 0; }

/* ---------- Gestão Central de Monitoramento ---------- */
.cm-duas { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.cm-obs { max-width: 380px; white-space: pre-line; overflow-wrap: anywhere; }
.gi-tabela tr.cm-linha-problema td:first-child { box-shadow: inset 3px 0 0 var(--gi-aus); }
@media (max-width: 860px) { .cm-duas { grid-template-columns: minmax(0, 1fr); } }
.tr-op { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; margin: 6px 0; cursor: pointer; }
.tr-op input { width: auto; margin-top: 3px; }
.tr-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tr-inline input { flex: 1; min-width: 180px; margin: 0; }
/* ---------- Assinatura eletrônica (situação nos documentos) ---------- */
.ass-box { display: grid; gap: 8px; margin: 10px 0; }
.ass-doc { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--surface-2); }
.ass-doc-topo { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ass-links { margin-left: auto; }
.ass-links a { color: var(--teal); }
.ass-sigs { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; }
.ass-sigs li { margin: 2px 0; }
.ass-sigs .link-btn { color: var(--teal); text-decoration: underline; background: none; border: 0; cursor: pointer; font-size: 12.5px; }
.ass-acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.ass-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.ass-item:last-child { border-bottom: 0; }
.ass-item .ass-box { margin-bottom: 0; }
.an-pessoas { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; max-height: 380px; overflow: auto; margin-top: 8px; padding: 2px; }
.an-pessoa { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; padding: 7px 10px; border: 1px solid var(--border); border-radius: 9px; cursor: pointer; margin: 0; }
.an-pessoa input { width: auto; margin-top: 3px; }
.an-pessoa.an-sem { opacity: .55; cursor: not-allowed; }
.ass-doc-topo > * { margin: 0 !important; }
/* ---------- Pendências (sino no topo + janela no 1º acesso do dia) ---------- */
.pend-sino { position: relative; background: none; border: 1px solid var(--border); border-radius: 50%; width: 34px; height: 34px; padding: 0; font-size: 16px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: inherit; margin: 0; }
.pend-sino:hover { border-color: var(--teal); }
.pend-badge { position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #f0a020; color: #1a1a1a; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.pend-badge.grave { background: #b3261e; color: #ffffff; }
.pend-dlg { width: min(640px, calc(100vw - 32px)); max-height: min(80vh, 760px); border: 1px solid var(--border); border-radius: 16px; padding: 0; background: var(--surface); color: var(--text); box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.pend-dlg[open] { display: flex; flex-direction: column; }
.pend-dlg::backdrop { background: rgba(10, 20, 20, .45); }
.pend-cab { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 6px; }
.pend-cab h2 { margin: 0; font-size: 19px; }
.pend-fechar { background: none; border: 0; font-size: 18px; color: var(--text-muted); cursor: pointer; padding: 4px 8px; margin: 0; }
.pend-sub { margin: 0 20px 8px; color: var(--text-muted); font-size: 14px; }
.pend-vazio { margin: 10px 20px 18px; }
.pend-lista { overflow: auto; padding: 0 14px 6px; }
.pend-grupo { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin: 12px 6px 4px; }
.pend-item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: inherit; border: 1px solid var(--border); margin: 6px 0; border-left: 4px solid #f0a020; }
.pend-item.grave { border-left-color: #b3261e; }
.pend-item:hover { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 6%, transparent); }
.pend-ic { font-size: 20px; flex: 0 0 auto; }
.pend-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.pend-txt small { color: var(--text-muted); font-size: 12.5px; overflow-wrap: anywhere; }
.pend-ir { font-size: 12.5px; font-weight: 700; color: var(--teal); white-space: nowrap; }
.pend-rodape { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 20px 16px; border-top: 1px solid var(--border); }
.pend-rodape a { color: var(--teal); font-size: 14px; }
.pend-ok { margin: 0; }
@media (max-width: 560px) { .pend-ir { display: none; } }

/* ---------- Setor Comercial > Propostas (pensado pro tablet: alvos de toque >= 44px) ---------- */
.prop-main { max-width: 1040px; padding-bottom: 120px; }
.prop-btn-grande, a.btn.prop-btn-grande { min-height: 46px; padding: 12px 22px; font-size: 16px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.prop-secao { font-size: 18px; margin: 0 0 12px; color: var(--dark); }
.prop-sub { font-size: 15px; margin: 18px 0 8px; }
.prop-form .card { margin-bottom: 16px; }
.prop-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.prop-campo-largo { grid-column: span 2; }
.prop-campo label { margin-top: 8px; }
.prop-form input, .prop-form select, .prop-form textarea, .prop-filtros input, .prop-filtros select { min-height: 44px; font-size: 16px; }
.prop-opcoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 6px 0 10px; }
.prop-opcoes-3 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.prop-opcoes-4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.prop-opcao { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; min-height: 52px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface-2); cursor: pointer; font-weight: 400; }
.prop-opcao input { width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; flex: none; accent-color: var(--teal); }
.prop-opcao span { display: flex; flex-direction: column; gap: 2px; }
.prop-opcao small { color: var(--text-muted); font-size: 12.5px; }
.prop-opcao:has(input:checked) { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 9%, var(--surface)); }
.prop-itens { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px 20px; }
.prop-item-linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.prop-item-linha > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prop-item-linha small { font-size: 12.5px; }
.prop-stepper { display: flex; align-items: center; flex: none; }
.prop-stepper button { margin: 0; width: 44px; height: 44px; padding: 0; font-size: 22px; line-height: 1; border-radius: 10px; }
.prop-stepper input { width: 58px; text-align: center; margin: 0 6px; padding: 6px 4px; -moz-appearance: textfield; }
.prop-stepper input::-webkit-outer-spin-button, .prop-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.prop-barra { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 16px; margin: 0 -4px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px 14px 0 0; box-shadow: 0 -6px 18px rgba(0,0,0,.08); }
.prop-barra-valores { display: flex; gap: 26px; }
.prop-barra-valores div, .prop-totais div { display: flex; flex-direction: column; }
.prop-barra-valores small, .prop-totais small { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.prop-barra-valores strong { font-size: 22px; color: var(--teal); }
.prop-barra-erro { flex-basis: 100%; order: 3; color: #b3261e; font-size: 14px; font-weight: 600; }
.prop-barra .prop-btn-grande { margin: 0; }
.prop-filtros { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.prop-filtros input { flex: 1 1 260px; margin: 0; }
.prop-filtros select { width: auto; margin: 0; }
.prop-filtros button { margin: 0; min-height: 44px; }
.prop-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.prop-item { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; margin: 0; }
.prop-item:hover { border-color: var(--teal); }
.prop-item-topo { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.prop-item-valores { display: flex; gap: 18px; font-size: 14px; color: var(--text-muted); }
.prop-item-valores strong { color: var(--text); }
.prop-vazio { text-align: center; }
.prop-st-aberta { background: #e0a000; color: #1a1a1a; }
.prop-st-fechada { background: #1faa4a; color: #ffffff; }
.prop-st-perdida { background: #8a8f8e; color: #ffffff; }
.prop-detalhe { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.prop-detalhe .card { margin: 0; }
.prop-resumo-itens { margin: 0 0 12px; padding-left: 20px; line-height: 1.7; }
.prop-totais { display: flex; gap: 28px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.prop-totais strong { font-size: 20px; color: var(--teal); }
.prop-acoes-linha { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.prop-envio + .prop-envio { margin-top: 6px; }
.prop-envio-linha { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.prop-envio-linha input, .prop-envio-linha select { flex: 1 1 200px; margin: 0; min-height: 44px; font-size: 16px; }
.prop-envio-linha button { margin: 0; min-height: 44px; }
.prop-envios { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.7; }
.prop-precos { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px 16px; margin-bottom: 10px; }
.prop-preco { margin: 6px 0; font-weight: 600; font-size: 13px; }
.prop-preco span:empty { display: none; }
.prop-preco input { margin-top: 4px; }
.table .prop-preco { margin: 0; }
.table .prop-preco input { min-width: 100px; }
@media (max-width: 640px) {
  .prop-campo-largo { grid-column: auto; }
  .prop-barra-valores strong { font-size: 18px; }
  .prop-barra .prop-btn-grande { width: 100%; }
}
