:root {
  --sidebar-width: 260px;
  --sidebar-bg: #1a2e24;
  --sidebar-text: #b8d4bc;
  --sidebar-active: #27ae60;
  --sidebar-hover: #243328;
  --sidebar-border: #2d4233;
  --header-height: 60px;
  --content-bg: #f3f8f5;
  --white: #ffffff;
  --text-dark: #2c3e50;
  --transition: 0.2s ease;
}

/* Tema azul aplicado em ambiente de desenvolvimento (localhost) */
html.env-development {
  --sidebar-bg: #1a2a3e;
  --sidebar-text: #b8c8d4;
  --sidebar-active: #2980b9;
  --sidebar-hover: #243a4a;
  --sidebar-border: #2d3f55;
  --content-bg: #f3f6fa;
}

/* ── Estilos visuais parametrizáveis (Preferências → Geral → "Estilo visual") ──
   Cada tema sobrescreve a paleta via variáveis (sobrepõe inclusive o azul de
   desenvolvimento). "padrao" = sem data-theme (visual original). Vêm DEPOIS do
   env-development de propósito (mesma especificidade → vence por ordem). */
html[data-theme="claro"] {            /* Claro / arejado (sidebar branca, acento teal) */
  --sidebar-bg: #ffffff;
  --sidebar-text: #5a6b7b;
  --sidebar-active: #2f8fd0;
  --sidebar-hover: #eef3f8;
  --sidebar-border: #e6ebf0;
  --content-bg: #f7f9fc;
}
/* sidebar branca (claro E arejado): força texto legível (alta especificidade) */
html[data-theme="claro"] #sidebar .menu-item-header,
html[data-theme="claro"] #sidebar .user-info,
html[data-theme="claro"] #sidebar .logo-text,
html[data-theme="claro"] #sidebar .menu-item-icon,
html[data-theme="claro"] #sidebar .menu-item-arrow,
html[data-theme="arejado"] #sidebar .menu-item-header,
html[data-theme="arejado"] #sidebar .user-info,
html[data-theme="arejado"] #sidebar .logo-text,
html[data-theme="arejado"] #sidebar .menu-item-icon,
html[data-theme="arejado"] #sidebar .menu-item-arrow { color: #44566a; }
/* Hover em sidebar CLARA: o fundo do hover é quase branco → texto ESCURO, senão a
   letra some (op. #22). Só o item ATIVO (fundo saturado) leva texto branco. */
html[data-theme="claro"] #sidebar .menu-item-header:hover,
html[data-theme="arejado"] #sidebar .menu-item-header:hover { color: #1f2d3d; }
html[data-theme="claro"] #sidebar .menu-item.active > .menu-item-header,
html[data-theme="arejado"] #sidebar .menu-item.active > .menu-item-header { color: #ffffff; }
html[data-theme="claro"] #sidebar .menu-item.active > .menu-item-header .menu-item-icon,
html[data-theme="claro"] #sidebar .menu-item.active > .menu-item-header .menu-item-arrow,
html[data-theme="arejado"] #sidebar .menu-item.active > .menu-item-header .menu-item-icon,
html[data-theme="arejado"] #sidebar .menu-item.active > .menu-item-header .menu-item-arrow { color: #ffffff; }

html[data-theme="grafite"] {          /* Grafite (cinza-escuro neutro) */
  --sidebar-bg: #20262e;
  --sidebar-text: #c2ccd6;
  --sidebar-active: #4a90d9;
  --sidebar-hover: #2a313a;
  --sidebar-border: #333b45;
  --content-bg: #f4f6f8;
}

html[data-theme="indigo"] {           /* Índigo (roxo-azulado) */
  --sidebar-bg: #272a4a;
  --sidebar-text: #c5c8e6;
  --sidebar-active: #6c5ce7;
  --sidebar-hover: #32365a;
  --sidebar-border: #3a3e63;
  --content-bg: #f6f6fb;
}

/* Arejado — inspirado na referência (PointChat): sidebar branca, acento teal,
   fundo bem claro e CARTÕES mais suaves (cantos maiores + sombra leve). */
html[data-theme="arejado"] {
  --sidebar-bg: #ffffff;
  --sidebar-text: #667085;
  --sidebar-active: #12b3a6;
  --sidebar-hover: #eef6f5;
  --sidebar-border: #eaecf0;
  --content-bg: #f7f9fb;
}
html[data-theme="arejado"] .card,
html[data-theme="arejado"] .dash-frame,
html[data-theme="arejado"] .dash-action-bar {
  border-radius: 20px;
  border: 1px solid #eef1f4;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .08);
}
html[data-theme="arejado"] .btn-ab,
html[data-theme="arejado"] .btn-primary,
html[data-theme="arejado"] .ts-tab,
html[data-theme="arejado"] input,
html[data-theme="arejado"] select,
html[data-theme="arejado"] textarea { border-radius: 12px; }
/* Sidebar bem arredondado no Arejado (op. #18): itens em "pílula" com respiro lateral. */
html[data-theme="arejado"] #sidebar .menu-item-header {
  border-radius: 14px;
  margin: 2px 8px;
}
html[data-theme="arejado"] #sidebar .submenu .menu-item-header { border-radius: 12px; }
/* acento teal nos detalhes que usam a cor de "ativo" */
html[data-theme="arejado"] { --accent: #12b3a6; }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--content-bg);
  color: var(--text-dark);
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* â”€â”€ SIDEBAR â”€â”€ */
#sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  height: 100vh;
  flex-shrink: 0;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.25);
  transition: width 0.25s ease;
  overflow: hidden;
}

#sidebar.collapsed {
  width: 56px;
}

.sidebar-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 14px 0 16px;
  border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0;
  gap: 8px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  overflow: hidden;
}

.logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
}

.logo-text {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: opacity 0.2s ease, width 0.25s ease;
}

/* BotÃ£o de recolher */
.sidebar-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--sidebar-text);
  font-size: 22px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition), transform 0.25s ease;
}

.sidebar-toggle:hover {
  background: var(--sidebar-hover);
  color: var(--white);
}

#sidebar.collapsed .sidebar-toggle {
  transform: rotate(180deg);
}

/* Ocultar textos quando colapsado */
#sidebar.collapsed .logo-text,
#sidebar.collapsed .menu-item-label,
#sidebar.collapsed .menu-item-arrow,
#sidebar.collapsed .user-name,
#sidebar.collapsed .sidebar-explode {
  display: none;
}

/* Checkbox "Expandir tudo" no topo da navegação */
.sidebar-explode {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 14px 8px; margin: 0;
  font-size: 12px; color: #aab6c6; cursor: pointer;
  user-select: none;
}
.sidebar-explode input { cursor: pointer; margin: 0; }
.sidebar-explode:hover { color: #e8eef6; }

#sidebar.collapsed .sidebar-logo {
  justify-content: center;
}

#sidebar.collapsed .sidebar-footer {
  padding: 14px 0;
  justify-content: center;
}

#sidebar.collapsed .user-info {
  justify-content: center;
}

#sidebar.collapsed .menu-item-header {
  justify-content: center;
  padding: 10px 0;
  margin: 1px 4px;
}

#sidebar.collapsed .menu-submenu {
  display: none !important;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--sidebar-border);
  border-radius: 2px;
}

.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}

/* Bloco de usuário/logout movido para o TOPO (antes dos Favoritos): a borda
   passa a ser embaixo, separando do menu. */
.sidebar-footer.sidebar-userbox-top {
  border-top: none;
  border-bottom: 1px solid var(--sidebar-border);
}

/* Visualizador de pasta (Desenvolvimento → Imagens): grade de miniaturas. */
.fv-cell {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  border: 1px solid #e6ebf2; border-radius: 8px; background: #fff;
  cursor: zoom-in; transition: transform .12s ease, box-shadow .12s ease;
}
.fv-cell:hover { transform: scale(1.06); box-shadow: 0 6px 20px rgba(0,0,0,.18); z-index: 2; }
.fv-cell img   { width: 100%; height: 100%; object-fit: contain; display: block; background: #f3f5f8; }
.fv-name {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 10px; color: #fff; background: rgba(0,0,0,.55);
  padding: 2px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sidebar-text);
  font-size: 13px;
}

/* Rodapé do usuário: imagem à esquerda; "{saas} - {login}" centralizado em
   relação à LARGURA TOTAL (desconsiderando a imagem) — texto sobreposto. */
.user-info { position: relative; }
.user-info .user-avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  z-index: 1;
}
.user-info .user-name {
  position: absolute;
  left: 8px;
  right: 8px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

/* â”€â”€ MENU â”€â”€ */
.menu-list { list-style: none; }

.menu-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--sidebar-text);
  transition: background var(--transition), color var(--transition);
  user-select: none;
  border-radius: 4px;
  margin: 1px 8px;
}

.menu-item-header:hover {
  background: var(--sidebar-hover);
  color: var(--white);
}

.menu-item.active > .menu-item-header {
  background: var(--sidebar-active);
  color: var(--white);
}

/* Reordenação por arrastar + Favoritos (Menu.js) */
.menu-item[draggable="true"] > .menu-item-header { cursor: grab; }
.menu-item.menu-dragging { opacity: .5; }
.menu-item.menu-drop-before > .menu-item-header { box-shadow: inset 0 2px 0 var(--sidebar-active); }
.menu-item.menu-drop-into  > .menu-item-header { outline: 2px dashed var(--sidebar-active); outline-offset: -2px; }
.menu-fav-remove {
  margin-left: auto;
  background: none; border: 0; color: inherit;
  opacity: 0; cursor: pointer; font-size: 11px; line-height: 1;
  padding: 2px 5px; border-radius: 3px;
}
.menu-item:hover > .menu-item-header > .menu-fav-remove { opacity: .55; }
.menu-fav-remove:hover { opacity: 1 !important; background: rgba(255,255,255,.18); }
.menu-fav-empty { list-style: none; padding: 6px 12px 6px 28px; font-size: 12px; font-style: italic; opacity: .55; color: var(--sidebar-text); }

/* NÃ­vel 1 */
.menu-level-1 > .menu-item > .menu-item-header {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
}

/* NÃ­vel 2 */
.menu-level-2 > .menu-item > .menu-item-header {
  padding: 9px 12px 9px 28px;
  font-size: 13px;
  font-weight: 500;
}

/* NÃ­vel 3 */
.menu-level-3 > .menu-item > .menu-item-header {
  padding: 8px 12px 8px 46px;
  font-size: 13px;
  font-weight: 400;
}

.menu-item-icon {
  font-size: 15px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
/* Coração do Favoritos em vermelho (a caixa fixa data-fav="1"). */
.menu-item[data-fav="1"] > .menu-item-header > .menu-item-icon { color: #e2342f; }

/* Playground do ImageGallery (aba Imagens do Desenvolvimento). */
.ig-fld { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: #48566a; }
.ig-fld > span { font-weight: 600; }
.ig-fld input[type="text"], .ig-fld input[type="number"], .ig-fld select { padding: 5px 7px; border: 1px solid #d8e0ea; border-radius: 6px; }
.ig-fld.ig-chk { flex-direction: row; align-items: center; gap: 6px; }

.menu-item-label { flex: 1; }

.menu-item-arrow {
  font-size: 18px;
  line-height: 1;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.menu-item.open > .menu-item-header .menu-item-arrow {
  transform: rotate(90deg);
}

/* Submenus */
.menu-submenu {
  display: none;
  background: rgba(0, 0, 0, 0.12);
}

.menu-item.open > .menu-submenu {
  display: block;
  animation: slideDown 0.18s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* â”€â”€ TOPBAR â”€â”€ */
#topbar {
  height: var(--header-height);
  background: var(--white);
  display: flex;
  align-items: center;
  padding: 0 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  font-size: 14px;
  color: #666;
  flex-shrink: 0;
}

/* â”€â”€ BREADCRUMB â”€â”€ */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  font-size: 14px;
  overflow: hidden;
}

.bc-sep {
  color: #b0bcc8;
  margin: 0 5px;
  font-size: 13px;
  flex-shrink: 0;
}

.bc-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.bc-folder {
  color: #8a9ab0;
  cursor: default;
}

.bc-link {
  color: var(--sidebar-active);
  cursor: pointer;
  border-radius: 3px;
  padding: 1px 2px;
  transition: background var(--transition), color var(--transition);
}

.bc-link:hover {
  color: #1a7a40;
  background: #e8f7ef;
  text-decoration: underline;
}

.bc-current {
  color: var(--text-dark);
  font-weight: 600;
  cursor: default;
}

.bc-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: none;
  color: #b0bcc8;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}

.bc-close:hover {
  background: #e0e6ed;
  color: #e74c3c;
}

/* â”€â”€ MAIN CONTENT â”€â”€ */
#app-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#main-content {
  flex: 1;
  padding: 28px;
  overflow-y: auto;
}

.page-header { margin-bottom: 20px; }

.page-header h1 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
}

.page-body {
  background: var(--white);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
  font-size: 14px;
  color: #555;
}

/* â”€â”€ CARDS â”€â”€ */
.card {
  background: var(--white);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e9ef;
}

/* â”€â”€ FORMULÃRIOS â”€â”€ */
.form-group {
  margin-bottom: 14px;
  max-width: 540px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  margin-bottom: 6px;
}

.form-label::after {
  content: ':';
}

th.form-label::after,
.data-table th::after {
  content: '';
}

.field-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-input {
  width: 185px;
  flex: none;
  padding: 8px 12px;
  border: 1px solid #d0d7e2;
  border-radius: 5px;
  font-size: 14px;
  color: var(--text-dark);
  background: #fafbfc;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-input:focus {
  outline: none;
  border-color: var(--sidebar-active);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
  background: var(--white);
}

.field-result {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 5px;
  min-width: 110px;
  text-align: center;
  background: #f0f2f5;
  color: #aaa;
  white-space: nowrap;
}

.result-ok {
  background: #e8f8f1;
  color: #1e8449;
}

.result-erro {
  background: #fdecea;
  color: #c0392b;
}

.result-checking {
  background: #fef9e7;
  color: #d68910;
}

.btn-warn {
  padding: 8px 14px;
  background: #fef9e7;
  color: #b7770d;
  border: 1px solid #e0b86a;
  border-radius: 5px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.btn-warn:hover:not(:disabled)  { background: #fdedc0; border-color: #c9922a; }
.btn-warn:disabled { opacity: 0.55; cursor: default; }

.btn-limpar {
  padding: 8px 14px;
  background: none;
  color: #888;
  border: 1px solid #d0d7e2;
  border-radius: 5px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.btn-limpar:hover {
  background: #fdecea;
  color: #c0392b;
  border-color: #e8b4b0;
}

.form-actions {
  margin-top: 24px;
}

.btn-primary {
  padding: 9px 28px;
  background: var(--sidebar-active);
  color: var(--white);
  border: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.btn-primary:hover {
  background: #2980b9;
}

.btn-primary:disabled {
  background: #a0c4e0;
  cursor: default;
}

/* â”€â”€ DEPLOY â”€â”€ */
.deploy-row .btn-primary,
.deploy-row .btn-cleanup {
  width: 170px;
  text-align: center;
}

.btn-cleanup {
  padding: 9px 18px;
  background: none;
  color: #c0392b;
  border: 1px solid #e8b4b0;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.btn-cleanup:hover {
  background: #fdecea;
  border-color: #c0392b;
}

.btn-cleanup:disabled {
  opacity: 0.45;
  cursor: default;
}

.deploy-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.deploy-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.deploy-item {
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 4px;
  font-family: 'Consolas', 'Courier New', monospace;
}

.deploy-ok  { background: #e8f8f1; color: #1e8449; }
.deploy-err { background: #fdecea; color: #c0392b; }

/* WRender · ProgressBar (barra de progresso reutilizável, com estados) */
.wr-progress { margin: 4px 0; max-width: 480px; }
.wr-progress-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: #5a6b7d; margin-bottom: 5px; }
.wr-progress-pct { font-variant-numeric: tabular-nums; color: #9aa6b5; }
.wr-progress-track { height: 9px; background: #e9eef5; border-radius: 6px; overflow: hidden; }
.wr-progress-fill { height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #4a78c0, #2c7be5); transition: width .35s ease; }
.wr-progress[data-state="ok"]  .wr-progress-fill { background: linear-gradient(90deg, #27ae60, #1e8449); }
.wr-progress[data-state="err"] .wr-progress-fill { background: linear-gradient(90deg, #e08080, #c0392b); }

/* WRender · SegmentedControl (seletor de 1 entre N) */
.wr-seg { display: inline-flex; border: 1px solid #cdd6e0; border-radius: 6px; overflow: hidden; }
.wr-seg-btn { border: none; background: #fff; color: #5a6b7d; font-size: 13px; padding: 5px 14px; cursor: pointer; border-left: 1px solid #e2e8f2; transition: background .15s, color .15s; }
.wr-seg-btn:first-child { border-left: none; }
.wr-seg-btn:hover { background: #f2f6fc; }
.wr-seg-btn.active { background: #2c7be5; color: #fff; }

/* WRender · GenderInput (gênero com visualização configurável) */
.gi-group { display: inline-flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 5px 0; }
.gi-opt { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #2c3e50; cursor: pointer; }
.gi-opt input { margin: 0; }
.gi-seg { display: inline-block; }
/* carimbo num campo-smart (ex.: gênero): reserva espaço à direita p/ o selo não sobrepor */
.dr-control.dr-has-stamp .dr-mount { padding-right: 26px; }

/* â”€â”€ TABS â”€â”€ */
.tab-bar {
  display: flex;
  border-bottom: 2px solid #e5e9ef;
  margin-bottom: 20px;
  gap: 2px;
}

.tab-btn {
  padding: 9px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-size: 13px;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.tab-btn:hover {
  color: var(--text-dark);
}

.tab-btn.active {
  color: var(--sidebar-active);
  border-bottom-color: var(--sidebar-active);
  font-weight: 600;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* â”€â”€ CONTACT INPUTS â”€â”€ */
.contact-field-row {
  display: grid;
  grid-template-columns: 1fr 130px auto;
  align-items: center;
  gap: 10px;
}

.contact-field-row .form-input {
  width: 100%;
}

.contact-field-row .field-result {
  min-width: unset;
  width: 130px;
  text-align: center;
}

/* â”€â”€ CEP / ADDRESS â”€â”€ */
.addr-extra-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 14px;
}

.addr-num-group { flex: 0 0 80px; }
.addr-comp-group { flex: 1; }
.addr-num-group .form-input,
.addr-comp-group .form-input { width: 100%; }

.addr-display {
  width: 100%;
  background: #f0f2f5;
  color: #555;
  cursor: default;
}

.coords-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.coords-row .form-input { flex: 1; }

.btn-streetview {
  padding: 8px 14px;
  background: #4285f4;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.btn-streetview:hover:not(:disabled) { background: #3367d6; }

.btn-streetview:disabled {
  background: #e0e4ea;
  color: #aaa;
  cursor: default;
}

.addr-display:focus {
  outline: none;
  border-color: #d0d7e2;
  box-shadow: none;
  background: #f0f2f5;
}

/* â”€â”€ TEXT TOOL â”€â”€ */
.form-textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d0d7e2;
  border-radius: 5px;
  font-size: 14px;
  color: var(--text-dark);
  background: #fafbfc;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-textarea:focus {
  outline: none;
  border-color: var(--sidebar-active);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
  background: var(--white);
}

.form-select {
  width: auto;
  flex-shrink: 0;
  padding: 8px 10px;
  border: 1px solid #d0d7e2;
  border-radius: 5px;
  font-size: 13px;
  color: var(--text-dark);
  background: #fafbfc;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  cursor: pointer;
  transition: border-color var(--transition);
}

.form-select:focus {
  outline: none;
  border-color: var(--sidebar-active);
}

.card-wide {
}

.text-tool-wrapper {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.text-tool-textarea-wrap {
  flex: 1;
  min-width: 0;
}

.text-tool-textarea-wrap .form-textarea {
  width: 100%;
}

.text-tool-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  width: 145px;
}

.text-tool-sidebar .form-select {
  width: 100%;
}

.text-tool-sidebar .btn-limpar {
  width: 100%;
}

.char-count {
  font-size: 12px;
  color: #aaa;
  margin-top: 4px;
  text-align: right;
}

.field-obs {
  font-size: 12px;
  color: #c0392b;
  margin-top: 6px;
  line-height: 1.4;
}

/* â”€â”€ DATE CHECKER â”€â”€ */
.date-field-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.date-field-row .form-input {
  width: 130px;
  flex: none;
}

.date-field-row .field-result {
  flex: 1;
  min-width: 0;
  text-align: left;
  white-space: normal;
}

/* â”€â”€ INPUT + BOTÃƒO LATERAL â”€â”€ */
.input-action-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-action-wrap .form-input {
  flex: 1;
  min-width: 0;
}

.btn-side {
  padding: 6px 12px;
  background: none;
  border: 1px solid #d0d7e2;
  border-radius: 5px;
  cursor: pointer;
  color: #555;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.btn-side:hover {
  background: #eaf7ef;
  border-color: #82c9a0;
  color: var(--sidebar-active);
}

/* â”€â”€ CALENDAR â”€â”€ */
.date-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.btn-cal {
  padding: 6px 9px;
  background: none;
  border: 1px solid #d0d7e2;
  border-radius: 5px;
  cursor: pointer;
  color: #666;
  line-height: 1;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.btn-cal:hover {
  background: #eaf7ef;
  border-color: #82c9a0;
  color: var(--sidebar-active);
}

.cal-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  border: 1px solid #d0d7e2;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.13);
  z-index: 300;
  width: 252px;
  padding: 12px;
  user-select: none;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cal-month-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.cal-nav {
  background: none;
  border: 1px solid #d0d7e2;
  border-radius: 4px;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 16px;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.cal-nav:hover {
  background: #eaf7ef;
  border-color: #82c9a0;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}

.cal-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #aaa;
  padding: 2px 0;
}

.cal-weekdays span:first-child { color: #e74c3c; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-day {
  text-align: center;
  padding: 5px 2px;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-dark);
  transition: background var(--transition), color var(--transition);
}

.cal-day:hover            { background: #eaf7ef; }
.cal-day.other-month      { color: #ccc; }
.cal-day.sunday           { color: #e74c3c; }
.cal-day.other-month.sunday { color: #f5b7b1; }

.cal-day.today {
  font-weight: 700;
  color: var(--sidebar-active);
  background: #d5f5e3;
  border-radius: 4px;
  outline: 2px solid var(--sidebar-active);
  outline-offset: -2px;
}

.cal-day.selected {
  background: var(--sidebar-active);
  color: var(--white);
  font-weight: 600;
  outline: none;
}

.cal-day.selected:hover   { background: #2980b9; }

.result-weekday {
  background: #eaf7ef;
  color: #1a7a40;
}

/* â”€â”€ CARD FULL WIDTH â”€â”€ */
.card-full {
  background: var(--white);
  border-radius: 8px;
  padding: 24px 28px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* â”€â”€ TOOLBAR â”€â”€ */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.toolbar-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* â”€â”€ TABLE â”€â”€ */
.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.data-table th {
  text-align: left;
  padding: 9px 12px;
  background: #f5f7fa;
  color: #666;
  font-weight: 600;
  border-bottom: 2px solid #e5e9ef;
  white-space: nowrap;
}

.data-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #eef0f3;
  color: var(--text-dark);
  vertical-align: middle;
}

.data-table tbody tr:hover td {
  background: #dbe5f0;
}
.data-table tbody tr.tr-selected:hover td {
  background: #cfdef0;
}

.td-sel,
.th-sel {
  width: 36px;
  text-align: center !important;
  padding: 0 4px !important;
}

.td-sel input[type="checkbox"],
.th-sel input[type="checkbox"] {
  cursor: pointer;
  accent-color: var(--sidebar-active);
  width: 15px;
  height: 15px;
}

/* No header o ⇅ + checkbox são centralizados em conjunto, o que desloca o
   checkbox para a direita. Aplicamos a mesma compensação nos checkboxes
   das linhas para mantê-los alinhados ao do cabeçalho. */
.td-sel input[type="checkbox"] {
  margin-left: 18px;
}

tr.tr-selected td {
  background: #edf4ff;
}

.td-id {
  font-weight: 600;
  color: #888;
  width: 52px;
}

.td-actions {
  white-space: nowrap;
  text-align: right;
  width: 80px;
}

/* Imóveis: afasta o split-button da borda direita da tabela.
   overflow:visible impede que o botão (mais largo que a célula) invada o padding
   e encoste na borda; padding-right garante o respiro. */
#imv-table .td-actions { overflow: visible; padding-right: 14px; }

/* Imóveis: imóvel desativado (exclusão lógica) — texto esmaecido + tachado no endereço. */
.data-table tbody tr.imv-deactivated td      { color: #aab2bd; }
.data-table tbody tr.imv-deactivated .td-id  { color: #c2c8d0; }
.data-table tbody tr.imv-deactivated td:nth-child(4) { text-decoration: line-through; text-decoration-color: #cdd4dd; }

/* Botão Editar na linha (Imóveis): discreto, à direita, só na linha principal. */
.btn-row-edit {
  font-size: 12.5px;
  padding: 5px 10px;
  border: 1px solid #d8e0ea;
  background: #fff;
  border-radius: 7px;
  color: #2c3e50;
  cursor: pointer;
  white-space: nowrap;
}
.btn-row-edit:hover { background: #eef4ff; border-color: #b9cdf0; }

.table-msg {
  text-align: center;
  padding: 32px;
  color: #aaa;
  font-size: 14px;
}

.table-error {
  color: #c0392b;
}

/* â”€â”€ BADGES â”€â”€ */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-on  { background: #e8f8f1; color: #1e8449; }
.badge-off { background: #fdecea; color: #c0392b; }
.badge-obs {
  background: #eaf7ef;
  color: #1a7a40;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s, color 0.15s;
}
.badge-obs:hover { background: #c6e3f5; color: #155a85; }

/* Auditoria - badge por operacao + botao de ciclo de operacao (cores antes inline) */
.aud-sistema { color: #999; font-style: italic; }
.badge-op-default { background: #eee; color: #555; }
.badge-op-INSERT  { background: #e8f8f1; color: #1e8449; }
.badge-op-UPDATE  { background: #eaf3ff; color: #1a5fb4; }
.badge-op-DELETE  { background: #fdecea; color: #c0392b; }
.badge-op-LOGIN   { background: #f0eafc; color: #5b3da0; }
.badge-op-LOGOUT  { background: #fff4e0; color: #a05a00; }
.btn-ab-toggle.btn-op-all    { background: #d5f5e3; border-color: #5dbb7d; color: #1a7a40; }
.btn-ab-toggle.btn-op-INSERT { background: #e8f8f1; border-color: #82cba8; color: #1e8449; }
.btn-ab-toggle.btn-op-UPDATE { background: #eaf3ff; border-color: #7faedc; color: #1a5fb4; }
.btn-ab-toggle.btn-op-DELETE { background: #fdecea; border-color: #e08080; color: #c0392b; }
.btn-ab-toggle.btn-op-LOGIN  { background: #f0eafc; border-color: #b39ad3; color: #5b3da0; }
.btn-ab-toggle.btn-op-LOGOUT { background: #fff4e0; border-color: #dca97a; color: #a05a00; }

/* Edicao inline (Dicionario, Eventos): input compacto, botao cancelar e placeholder "novo" - antes inline */
.inline-edit-input { padding: 2px 8px; width: 100%; font-size: 13px; }
.inline-edit-input.center { text-align: center; }
.btn-row-cancel { background: transparent; border: none; cursor: pointer; color: #a00; font-size: 14px; }
/* Eventos: badge por origem (F/M/U) e marcador "(todo ano)" e slot do combo de ano - antes inline */
.badge-orig-F { background: #eaf3ff; color: #1a5fb4; }
.badge-orig-M { background: #fff4e0; color: #a05a00; }
.badge-orig-U { background: #f0eafc; color: #5b3da0; }
.todo-ano { color: #aaa; font-style: italic; }
.occ-year-slot { width: 90px; display: inline-block; vertical-align: middle; }
.td-id.td-new, .td-new { color: #888; font-style: italic; }

/* â”€â”€ ÃCONE DE OBSERVAÃ‡ÃƒO â”€â”€ */
.td-obs    { text-align: center; }
.td-center { text-align: center; }

/* â”€â”€ TICK VERDE (fl_uso_pf / fl_uso_pj) â”€â”€ */
.tick-green { color: #27ae60; font-weight: bold; font-size: 14px; line-height: 1; }
.tick-red   { color: #e74c3c; font-weight: bold; font-size: 14px; line-height: 1; }
.td-center  { padding-left: 2px !important; padding-right: 2px !important; }

/* â”€â”€ HEADER DE GRUPO (colspan) â”€â”€ */
.th-group    { text-align: center !important; }
.th-sublabel { text-align: center !important; font-size: 10px; color: #888; padding: 1px 2px !important; font-weight: normal; }
.obs-icon { display: inline-block; }

.obs-tip {
  position: fixed;
  z-index: 9000;
  background: #fffbf0;
  border: 1px solid #d4a84b;
  border-radius: 5px;
  padding: 8px 12px;
  max-width: 300px;
  font-size: 12px;
  color: #5a3e10;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  pointer-events: none;
}

/* â”€â”€ ACTION BUTTONS â”€â”€ */
.btn-action {
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  padding: 3px 6px;
  line-height: 1;
  transition: background var(--transition), border-color var(--transition);
}

.btn-edit:hover   { background: #eaf7ef; border-color: #82c9a0; }
.btn-delete:hover { background: #fdecea; border-color: #e8b4b0; }

/* â”€â”€ FORM ROW / COL â”€â”€ */
.form-row {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.form-col {
  flex: 1;
  min-width: 120px;
}

.form-col .form-input,
.form-col .form-select {
  width: 100%;
}

.w-full {
  width: 100% !important;
}

/* â”€â”€ CHECK LABEL â”€â”€ */
.check-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  user-select: none;
}

.check-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: var(--sidebar-active);
}

/* â”€â”€ IMPORT MODAL â”€â”€ */
.im-drop-zone {
  border: 2px dashed #c0cfe0;
  border-radius: 8px;
  background: #f8fafc;
  transition: border-color 0.15s, background 0.15s;
  cursor: default;
}
.im-drop-zone.im-drag-over {
  border-color: var(--sidebar-active);
  background: #eaf7ef;
}
.im-drop-inner {
  padding: 28px 20px;
  text-align: center;
}
.im-drop-icon { font-size: 32px; margin-bottom: 8px; }
.im-drop-text { margin: 0 0 10px; font-size: 13px; color: #555; }
.im-drop-hint { margin: 10px 0 0; font-size: 11px; color: #aaa; }

.im-summary {
  margin: 12px 0 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.im-summary-ok {
  font-size: 12px;
  color: #1e8449;
  font-weight: 600;
}
.im-warn {
  font-size: 12px;
  color: #d68910;
  margin: 0;
}
.im-more {
  font-size: 11px;
  color: #aaa;
  margin: 4px 0 0;
  text-align: right;
}

.im-preview-wrap {
  overflow-x: auto;
  border: 1px solid #e0e6ef;
  border-radius: 6px;
  max-height: 220px;
  overflow-y: auto;
}
.im-preview-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  white-space: nowrap;
}
.im-preview-table th,
.im-preview-table td {
  border: 1px solid #e0e6ef;
  padding: 4px 8px;
}
.im-th-ok   { background: #e8f8f1; color: #1e8449; font-weight: 600; }
.im-th-skip { background: #f5f5f5; color: #aaa;    font-weight: 600; font-style: italic; }
.im-td-skip { color: #ccc; }

.im-modes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}
.im-mode-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid #e0e6ef;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.im-mode-opt:hover { background: #f5f8fc; border-color: #b0c8e8; }
.im-mode-opt input[type="radio"] { margin-top: 3px; flex-shrink: 0; }
.im-mode-opt.im-mode-danger { border-color: #f5c6cb; }
.im-mode-opt.im-mode-danger:hover { background: #fff5f5; border-color: #e08080; }
.im-mode-body { display: flex; flex-direction: column; gap: 2px; }
.im-mode-body strong { font-size: 13px; color: #333; }
.im-mode-body small  { font-size: 11px; color: #888; }
.im-mode-opt.im-mode-danger .im-mode-body strong { color: #c0392b; }

/* RadioCards (smart WRender) — cartões de seleção única título+descrição */
.wr-rcards { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.wr-rcard {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 12px; border: 1px solid #e0e6ef; border-radius: 6px;
  cursor: pointer; transition: background 0.12s, border-color 0.12s;
}
.wr-rcard:hover { background: #f5f8fc; border-color: #b0c8e8; }
.wr-rcard input[type="radio"] { margin-top: 3px; flex-shrink: 0; }
.wr-rcard.wr-rcard-danger { border-color: #f5c6cb; }
.wr-rcard.wr-rcard-danger:hover { background: #fff5f5; border-color: #e08080; }
.wr-rcard-body { display: flex; flex-direction: column; gap: 2px; }
.wr-rcard-body strong { font-size: 13px; color: #333; }
.wr-rcard-body small  { font-size: 11px; color: #888; }
.wr-rcard.wr-rcard-danger .wr-rcard-body strong { color: #c0392b; }

.im-msg {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-top: 10px;
}
.im-msg-error { background: #fdecea; color: #c0392b; border-left: 3px solid #e08080; }
.im-msg-warn  { background: #fef9e7; color: #d68910; border-left: 3px solid #e67e22; }

/* â”€â”€ MODAL â”€â”€ */
body.modal-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.18s ease;
}

.modal-lg { max-width: 860px; }

@keyframes modalIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e9ef;
  flex-shrink: 0;
}

.modal-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

.modal-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #aaa;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}

.modal-close:hover {
  background: #fdecea;
  color: #c0392b;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid #e5e9ef;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

/* â”€â”€ DRAWER (painel lateral deslizante) â”€â”€ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  transition: background 0.3s ease;
}

.drawer-overlay.open {
  background: rgba(0, 0, 0, 0.42);
}

.drawer {
  width: 560px;
  max-width: 100vw;
  height: 100%;
  background: var(--white);
  box-shadow: -6px 0 32px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.drawer-overlay.open .drawer {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e9ef;
  flex-shrink: 0;
}

.drawer-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

.drawer-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #aaa;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}

.drawer-close:hover {
  background: #fdecea;
  color: #c0392b;
}

.drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

/* Compacta o ritmo vertical do formulário dentro do drawer para evitar
   rolagem desnecessária (reabsorve a altura extra da observação). */
.drawer-body .form-group { margin-bottom: 10px; }
.drawer-body .form-row   { margin-bottom: 10px; }
.drawer-body .form-label { margin-bottom: 4px; }

/* Destaque provisório de campo preenchido por sugestão automática. */
.input-suggested {
  border-color: #2ecc71 !important;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.22);
  animation: suggest-pulse 0.45s ease;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
@keyframes suggest-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.45); }
  100% { box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.22); }
}

/* Campo com valor duplicado na categoria — borda vermelha de erro. */
.input-error,
.input-error:focus {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.18) !important;
}

/* Campo do cadastro em branco — borda laranja (aviso de pendência). */
.field-blank,
.field-blank:focus {
  border-color: #e69500 !important;
  box-shadow: 0 0 0 2px rgba(230, 149, 0, 0.15) !important;
}

/* Rodapé do drawer: contagem de campos em branco / cadastro completo. */
.pes-blank-warn {
  font-size: 13px;
  color: #b9770e;
}
.pes-blank-ok {
  font-size: 13px;
  font-weight: 700;
  color: #1e7e34;
  background: #eafaf0;
  border: 1px solid #b6e2c6;
  border-radius: 6px;
  padding: 3px 10px;
}

/* Resultado do retorno escolhido, AO LADO do seletor (mesma linha). */
.exp-result {
  flex: 1 1 150px;
  min-width: 110px;
  font-size: 14px;
  font-weight: 600;
  color: #1a4d7a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-footer {
  padding: 14px 20px;
  border-top: 1px solid #e5e9ef;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

/* ── MASTER-DETAIL: rail de guias + cortina-filha (editor de Pessoa) ── */
/* A cortina abre à ESQUERDA da principal; a principal nunca some. */
.child-curtain {
  height: 100%; flex-shrink: 0; overflow: hidden; width: 0;
  background: var(--white); box-shadow: -6px 0 28px rgba(0, 0, 0, 0.16);
  display: flex; flex-direction: column;
  transition: width 0.3s ease;
  position: relative;   /* ancora a cortina inferior (.perm-drawer) à largura desta lista */
}
.child-curtain.open { width: 800px; max-width: 72vw; }
.child-curtain .child-inner {
  width: 800px; max-width: 72vw; height: 100%;
  display: flex; flex-direction: column;
}

/* Guias em destaque (instância Usuários e Permissões) */
.rail-btn.rail-emph { background: #eef4ff; border-radius: 6px; }
.rail-btn.rail-emph .rail-label { font-weight: 700; color: #1f4f8a; }

/* Coluna de guias (rail), estilo "nav discreta" */
.rail {
  flex-shrink: 0; height: 100%; width: 152px;
  background: #fafbfc; border-left: 1px solid #eef1f5;
  display: flex; flex-direction: column; gap: 2px; padding: 12px 8px;
  transform: translateX(100%); transition: transform 0.3s ease;
}
.drawer-overlay.open .rail { transform: translateX(0); }
.rail-title { font-size: 11px; color: #aab2bf; padding: 2px 8px 8px; white-space: nowrap; }
.rail-btn {
  position: relative; text-align: left; border: none; background: none;
  color: #6b7280; font: inherit; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; gap: 10px; padding: 9px 14px;
  border-radius: 999px; transition: background 0.15s, color 0.15s;
}
.rail-btn:hover { background: rgba(0, 0, 0, 0.045); color: var(--text-dark); }
/* selecionado: pílula (mesma linguagem do badge de situação) + barra à esquerda */
.rail-btn.active {
  color: var(--sidebar-active); font-weight: 600;
  background: color-mix(in srgb, var(--sidebar-active) 14%, transparent);
}
.rail-btn.active::before {
  content: ''; position: absolute; left: -8px; top: 7px; bottom: 7px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--sidebar-active);
}
.rail-label { white-space: nowrap; }
.rail-btn.rail-disabled {
  opacity: 0.4; cursor: not-allowed; pointer-events: none;
}

/* Lista inline embutida na cortina */
.il-toolbar { display: flex; gap: 8px; margin-bottom: 10px; }
.il-row-edit, .il-row-del, .il-row-obs, .il-row-view, .il-row-perm,
.il-row-save, .il-row-cancel { background: none; border: none; cursor: pointer; font-size: 14px; padding: 2px 4px; }
.il-row-del[disabled] { opacity: .35; cursor: not-allowed; }
.il-row-del, .il-row-cancel { color: #c0392b; }
.il-row-save { color: var(--sidebar-active); font-weight: 700; }
.il-row-obs { color: #aab2bf; }                       /* sem nota: apagado */

/* Célula clicável (coluna Código) → abre o drawer do registro, como Editar. */
.td-open { cursor: pointer; color: var(--sidebar-active); font-weight: 600; }
.td-open:hover { text-decoration: underline; background: #eef6ff; }
.il-row-obs.has-obs { color: var(--sidebar-active); } /* com nota: destacado */
.il-table .rel-acts button { padding: 1px 3px; font-size: 13px; }
/* pop-up de observação do relacionamento (acima da cortina/drawer) */
.rel-obs-overlay {
  position: fixed; inset: 0; z-index: 2000; background: rgba(0, 0, 0, 0.42);
  display: flex; align-items: center; justify-content: center;
}
.rel-obs-card {
  width: 440px; max-width: 92vw; background: var(--white); border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25); display: flex; flex-direction: column;
}
/* ── TOAST flutuante ─────────────────────────────────────────────────────── */
.float-msg {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 3000; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  max-width: 92vw;
}
.float-msg-item {
  pointer-events: auto;
  display: flex; align-items: flex-start; gap: 10px;
  min-width: 300px; max-width: 480px;
  padding: 12px 16px; border-radius: 10px; font-size: 13.5px; line-height: 1.45;
  border-left: 4px solid transparent;
  box-shadow: 0 4px 20px rgba(0,0,0,0.13), 0 1px 4px rgba(0,0,0,0.08);
  animation: toast-in 0.22s cubic-bezier(0.22,1,0.36,1) both;
}
.float-msg-item.toast-out {
  animation: toast-out 0.18s ease-in forwards;
}
.float-msg-item.toast-info    { background:#f0f6ff; border-color:#3498db; color:#1a4a7a; }
.float-msg-item.toast-success { background:#f0faf4; border-color:#2ecc71; color:#1a5c34; }
.float-msg-item.toast-error   { background:#fdf2f2; border-color:#e74c3c; color:#7b1c1c; }
.float-msg-item.toast-warn    { background:#fffbf0; border-color:#f39c12; color:#7a4d00; }
.float-msg-item.toast-progress{ background:#f5f5f7; border-color:#95a5a6; color:#444; }
.toast-icon {
  flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px;
}
.toast-text { flex: 1; }
.toast-progress-bar {
  height: 3px; border-radius: 2px; margin-top: 8px;
  background: rgba(0,0,0,0.08); overflow: hidden;
}
.toast-progress-fill {
  height: 100%; width: 40%; border-radius: 2px;
  background: #95a5a6;
  animation: progress-slide 1.4s ease-in-out infinite;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)     scale(1);    }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateY(0)    scale(1);    }
  to   { opacity: 0; transform: translateY(-8px) scale(0.97); }
}
@keyframes progress-slide {
  0%   { margin-left: -40%; }
  100% { margin-left: 100%; }
}

/* ── MODAL de confirmação ────────────────────────────────────────────────── */
.confirm-overlay {
  position: fixed; inset: 0; z-index: 2100;
  background: rgba(0,0,0,0.38);
  display: flex; align-items: center; justify-content: center;
  animation: confirm-bg-in 0.18s ease both;
}
@keyframes confirm-bg-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* Variante "topo": confirmação ancorada no alto (não centralizada), para não
   cobrir o conteúdo abaixo (ex.: a ficha do RecordViewer sobre o Drawer). */
.confirm-overlay.confirm-top { align-items: flex-start; }
.confirm-overlay.confirm-top .confirm-card { margin-top: 26px; }
.confirm-card {
  width: 400px; max-width: 92vw; background: var(--white);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.10);
  padding: 28px 28px 22px;
  animation: confirm-card-in 0.22s cubic-bezier(0.22,1,0.36,1) both;
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
@keyframes confirm-card-in {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);    }
}
.confirm-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; flex-shrink: 0;
}
.confirm-icon.is-question { background: #eaf3ff; }
.confirm-icon.is-danger   { background: #fdecea; }
.confirm-icon svg { width: 28px; height: 28px; }
.confirm-title {
  font-size: 15px; font-weight: 600; color: var(--text-dark);
  text-align: center; margin-bottom: 8px; line-height: 1.4;
}
.confirm-msg {
  font-size: 13.5px; color: #555; line-height: 1.6;
  text-align: center; margin-bottom: 22px;
}
.confirm-actions { display: flex; justify-content: center; gap: 10px; width: 100%; }
.confirm-no {
  flex: 1; padding: 9px 0; border-radius: 8px; font-size: 13.5px; font-weight: 500;
  border: 1.5px solid #dde1e7; background: transparent; color: #555;
  cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.confirm-no:hover { background: #f4f5f7; border-color: #c0c6cf; }
.confirm-yes {
  flex: 1; padding: 9px 0; border-radius: 8px; font-size: 13.5px; font-weight: 600;
  border: none; background: var(--sidebar-active); color: #fff;
  cursor: pointer; transition: filter 0.15s;
}
.confirm-yes:hover { filter: brightness(0.92); }
.confirm-yes.danger { background: #e74c3c; }
.confirm-yes.danger:hover { background: #c0392b; filter: none; }
/* relações inline: célula compacta + edição na própria linha */
/* table-layout fixed faz os <col> valerem (o input de data não "empurra" mais) */
.il-table { table-layout: fixed; width: 100%; }
.il-table .rel-acts { text-align: center; white-space: nowrap; }
.il-table tr.rel-editing td { vertical-align: top; }
.il-table .combobox { width: 100%; }
.il-table .form-input,
.il-table .combobox-input {
  font-size: 12px; padding: 4px 6px;
  width: 100%; min-width: 0; box-sizing: border-box;
}

/* ── RBAC — GruposPage ───────────────────────────────────────────────────── */
.grp-list-item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px; cursor: pointer; border-bottom: 1px solid #f0f2f7;
  transition: background 0.12s;
}
.grp-list-item:hover  { background: #f5f8ff; }
.grp-list-item.grp-list-sel { background: #e8f0fe; border-left: 3px solid #3367d6; }

/* Grupos/RBAC: scaffold master-detail + matriz (antes tudo inline) */
.is-hidden { display: none !important; }
.grp-card { display: flex; gap: 0; padding: 0; overflow: hidden; min-height: 500px; }
.grp-left { width: 240px; min-width: 200px; border-right: 1px solid #e0e6ef; display: flex; flex-direction: column; }
.grp-left-head { padding: 12px 14px; border-bottom: 1px solid #e0e6ef; display: flex; gap: 8px; align-items: center; }
.grp-new-btn { flex: 1; }
.grp-list { flex: 1; overflow-y: auto; }
.grp-list-empty { padding: 14px; color: #aaa; font-size: 13px; }
.grp-right { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.grp-header { padding: 14px 20px; border-bottom: 1px solid #e0e6ef; }
.grp-header-row { display: flex; align-items: center; gap: 12px; }
.grp-header-info { flex: 1; }
.grp-nm { font-size: 15px; font-weight: 600; color: #1a2233; }
.grp-ds { font-size: 12px; color: #888; margin-top: 2px; }
.grp-btn-danger { color: #c0392b; }
.grp-tab-bar { padding: 0 20px; }
.grp-panel-pad { padding: 16px 20px; }
.grp-panel-scroll { padding: 16px 20px; overflow: auto; }
.grp-mbr-add-row { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.grp-mbr-cb { flex: 1; }
.grp-hint { margin-bottom: 10px; font-size: 12px; color: #888; }
.grp-save-row { margin-top: 14px; }
.grp-campos-head { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.grp-campos-lbl { font-size: 13px; color: #555; }
.grp-mod-sel { min-width: 200px; }
.grp-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 13px; }
.grp-fixo-badge { font-size: 10px; background: #e8f0fe; color: #3367d6; border-radius: 3px; padding: 1px 5px; }
.grp-item-row { display: flex; align-items: center; gap: 6px; }
.grp-item-nm { font-size: 13px; font-weight: 400; }
.grp-item-nm.fixo { font-weight: 600; }
.grp-item-count { font-size: 11px; color: #aaa; }
.grp-nota-fixo { font-size: 12px; color: #888; margin: 0 0 10px; font-style: italic; }
.grp-matrix { border-collapse: collapse; font-size: 12px; width: 100%; }
.grp-matrix-fields { border-collapse: collapse; font-size: 12px; width: auto; }
.grp-matrix thead tr, .grp-matrix-fields thead tr { background: #f5f7fa; }
.grp-th-mod { text-align: left; padding: 6px 10px; font-weight: 600; width: 160px; }
.grp-th-acao { padding: 4px 6px; text-align: center; white-space: nowrap; }
.grp-th-all { padding: 4px 10px; text-align: left; }
.grp-th-allcol { padding: 4px 6px; text-align: center; }
.grp-chkall-lbl { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; cursor: pointer; font-weight: 600; }
.grp-col-lbl { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; cursor: pointer; font-weight: 600; }
.grp-row { border-top: 1px solid #edf0f5; }
.grp-td-mod { padding: 6px 10px; font-weight: 500; }
.grp-td-c { text-align: center; }
.grp-chk { width: 16px; height: 16px; cursor: pointer; accent-color: #666; }
.grp-chk.sm { width: 15px; height: 15px; }
.grp-chk:disabled { cursor: not-allowed; opacity: .6; }
.grp-radio { width: 15px; height: 15px; cursor: pointer; accent-color: #666; }
.grp-radio:disabled { cursor: not-allowed; opacity: .6; }
.grp-fields-empty { color: #aaa; font-size: 13px; padding: 8px 0; }
.grp-allcampos-lbl { font-size: 11px; font-weight: 600; }
.grp-th-campo { text-align: left; padding: 6px 10px; white-space: nowrap; }
.grp-th-opt { padding: 4px 10px; text-align: center; width: 120px; }
.grp-td-campo { padding: 6px 10px; }
/* Cortina "Permissões" embutida no Pessoas (mesma matriz; reusa classes acima) */
.grp-fixo-note { padding: 14px; color: #8a6d00; background: #fdf3d6; border: 1px solid #f0d98a; border-radius: 6px; }
.grp-save-end { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.grp-note-muted { color: #aaa; padding: 10px; }
.grp-campos-head2 { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.grp-campos-lbl2 { font-size: 13px; color: #667; }
.grp-spacer { flex: 1; }
/* Pessoas: ícone-título (avatares sobrepostos), botão de atributo e botões de importação - antes inline */
.btn-attr { width: 132px; text-align: center; }
.btn-ab-toggle.btn-attr-all      { background: #d5f5e3; border-color: #5dbb7d; color: #1a7a40; }
.btn-ab-toggle.btn-attr-saas     { background: #eef4ff; border-color: #8ab0e8; color: #1f4f8a; }
.btn-ab-toggle.btn-attr-usuarios { background: #fff4e6; border-color: #f0b97a; color: #a35b12; }
.btn-ab-toggle.btn-attr-fixos    { background: #f3eafc; border-color: #c39be8; color: #6b3aa3; }
.btn-icon-inline { display: inline-flex; align-items: center; gap: 5px; }
.btn-icon-img { flex-shrink: 0; }
.logo-google { width: 15px; height: 15px; }
.logo-point  { width: 13px; height: 15px; }

/* Responsivo: em tela estreita a cortina abre POR CIMA da principal (fallback). */
@media (max-width: 900px) {
  .child-curtain { position: absolute; right: 0; top: 0; z-index: 2; }
  .child-curtain.open { width: 100%; max-width: 100vw; }
  .child-curtain .child-inner { width: 100%; max-width: 100vw; }
}

/* â”€â”€ TOOLBAR ACTIONS â”€â”€ */
.toolbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ── THUMBNAIL NA LISTAGEM ── */
.td-thumb {
  padding: 3px 4px;
  text-align: center;
}

.row-thumb {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
}

/* ── IMÓVEIS: agrupamento por imóvel (zebra por grupo) ──
   Cada imóvel ocupa N linhas (1 por endereço); a 1ª traz a imagem e as demais
   ficam sem imagem. Grupos alternam um leve tom de fundo para mostrar, de relance,
   onde um imóvel termina e o próximo começa. */
.data-table tbody tr.imv-grp-alt td        { background: #f4f8fb; }
.data-table tbody tr.imv-grp-alt:hover td  { background: #dbe5f0; }           /* mantém o hover por cima do tom do grupo */
.data-table tbody tr.imv-grp-alt.tr-selected td { background: #e6eefb; }
/* linhas secundárias (endereços alternativos do mesmo imóvel): borda mais leve
   e código num tom mais discreto, reforçando que pendem da 1ª linha. */
.data-table tbody tr.imv-row-sub td        { border-bottom-color: #f2f4f7; }
.data-table tbody tr.imv-row-sub .td-id    { color: #b3bcc6; font-weight: 500; }

/* ── DRAWER DO IMÓVEL: lista de endereços (parte de cima) ── */
.imv-addr-h        { margin: 0 0 8px; font-size: 13px; color: #48566a; font-weight: 600; }
.imv-addr-sep      { height: 1px; background: #e6ebf1; margin: 16px 0; }
.imv-addr-list     { display: flex; flex-direction: column; gap: 6px; }
.imv-addr-empty    { font-size: 12.5px; color: #8a96a3; padding: 8px 10px; background: #f7f9fc;
                     border: 1px dashed #dce3ec; border-radius: 8px; }
.imv-addr-item     { display: flex; align-items: center; gap: 10px; padding: 7px 10px;
                     background: #f7f9fc; border: 1px solid #e6ebf1; border-radius: 8px; font-size: 13.5px; }
.imv-addr-item.is-prin { background: #eef6f1; border-color: #cbe9d8; }
.imv-addr-txt      { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #2c3e50; }
.imv-addr-use      { flex: none; font-size: 11px; color: #5a6b7a; background: #eef2f7; border: 1px solid #dce3ec;
                     border-radius: 20px; padding: 2px 9px; white-space: nowrap; }
.imv-addr-star     { width: 22px; text-align: center; flex: none; }
.imv-addr-star.is-prin { color: #d8a200; }
.imv-addr-act      { width: 24px; height: 24px; flex: none; border: 1px solid #dce3ec; background: #fff;
                     border-radius: 6px; cursor: pointer; color: #6a7785; line-height: 1; }
.imv-addr-act:hover:not(:disabled) { background: #eef2f7; }
.imv-addr-act:disabled { opacity: .4; cursor: not-allowed; }
.imv-addr-setprin  { color: #b88600; }
.imv-addr-del:hover { color: #c0392b; border-color: #e3b4b4; }

/* ── GALERIA DE IMAGENS (ImageGallery — pop-up central) ── */
/* Painel FLUTUANTE e arrastável (sem cortina; a página atrás fica acessível). */
.imgal-float { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 4200;
               background: #fff; border: 1px solid #cdd6e2; border-radius: 14px;
               box-shadow: 0 24px 64px rgba(15,25,45,.4); max-width: 92vw; opacity: 0; transition: opacity .16s; }
.imgal-float.open { opacity: 1; }
.imgal-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #eef1f6;
              cursor: move; user-select: none; }
.imgal-grip { color: #b0b8c6; font-size: 13px; }
.imgal-title { font-size: 14px; font-weight: 600; color: #2c3e50; }
.imgal-close { border: none; background: none; font-size: 16px; color: #8a96a3; cursor: pointer; line-height: 1; }
.imgal-close:hover { color: #c0392b; }
.imgal-body { display: flex; align-items: center; gap: 8px; padding: 22px 14px; }
.imgal-strip { display: flex; gap: 12px; align-items: center; padding: 8px 6px; min-height: 132px; }
.imgal-arrow { flex: none; width: 30px; height: 30px; border: 1px solid #d8e0ea; background: #fff; border-radius: 50%;
               cursor: pointer; color: #5a6b7a; font-size: 13px; }
.imgal-arrow:hover:not(:disabled) { background: #eef4ff; border-color: #b9cdf0; }
.imgal-arrow:disabled { opacity: .3; cursor: default; }
.imgal-cell { position: relative; width: var(--imgal-thumb, 116px); height: var(--imgal-thumb, 116px); flex: none;
              border: 2px solid #dce3ec; border-radius: 8px;
              overflow: hidden; background: #f5f7fa; cursor: pointer;
              transition: transform .14s, box-shadow .14s, border-color .14s; }
.imgal-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.imgal-cell:hover { transform: scale(var(--imgal-zoom, 1.45)) translateY(-3px); z-index: 5; box-shadow: 0 14px 32px rgba(20,30,50,.38); }
.imgal-strip.no-hoverzoom .imgal-cell:hover { transform: none; box-shadow: none; }
.imgal-cell.is-selected { border-color: #2c7be5; box-shadow: 0 0 0 2px rgba(44,123,229,.35); }
.imgal-cell.is-principal { border-width: 4px; border-color: #f0b429; box-shadow: 0 0 14px rgba(240,180,41,.75); }
/* Modo grade (setWrap): miniaturas quebram em várias linhas; as setas somem. */
.imgal-float.imgal-mode-wrap .imgal-arrow { display: none; }
.imgal-strip.imgal-wrap { flex-wrap: wrap; align-content: flex-start; justify-content: flex-start;
                          max-height: 60vh; overflow-y: auto; width: min(78vw, 760px); }
.imgal-star { position: absolute; top: 3px; right: 4px; color: #f0b429; font-size: 15px;
              text-shadow: 0 0 3px rgba(0,0,0,.5); }
.imgal-empty { display: flex; align-items: center; justify-content: center; text-align: center;
               min-width: 360px; min-height: var(--imgal-thumb, 116px); margin: 0 auto;
               border: 2px dashed #d2dae5; border-radius: 10px; background: #fafbfd;
               color: #8a96a3; font-size: 16px; line-height: 1.4; padding: 24px 32px; }
.imgal-foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid #eef1f6; }
.imgal-hint { margin-left: auto; font-size: 11.5px; color: #9aa6b5; }

/* ── UPLOAD DE IMAGEM NO FORMULÁRIO ── */
.img-upload-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.img-preview-box {
  width: 80px;
  height: 80px;
  border: 1px solid #d5e8d9;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f3f8f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Inclusão (op. #32): placeholder clicável "salvar e capturar" */
.img-capture-new {
  cursor: pointer;
  border-style: dashed;
  border-color: #b9c6d6;
  text-align: center;
  line-height: 1.2;
  padding: 4px;
  transition: border-color .2s, background .2s;
}
.img-capture-new:hover { border-color: var(--sidebar-active); background: #eef5fb; }
.img-capture-new .img-no-img { font-size: 11px; color: #5a6b7b; }

.img-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Campos desabilitados (não aplicáveis ao tipo atual) — esmaecidos */
.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
  opacity: 0.5;
  background: #eef0f3;
  color: #8a8f98;
  cursor: not-allowed;
}
.form-label.lbl-muted {
  opacity: 0.45;
}

.img-no-img {
  font-size: 11px;
  color: #bbb;
  text-align: center;
  padding: 4px;
}

.img-upload-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
/* Botões da imagem compactos: 3 (Carregar/Excluir/Reverter) cabem na altura
   do preview (80px), evitando que a moldura cresça e gere scroll no drawer. */
.img-upload-side .btn-ab { padding: 2px 10px; }

.img-upload-msg {
  font-size: 12px;
  color: #888;
  min-height: 16px;
}
/* â”€â”€ IMPORT BUTTON â”€â”€ */
.btn-import {
  padding: 9px 18px;
  background: none;
  color: #555;
  border: 1px solid #d0d7e2;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.btn-import:hover    { background: #eaf7ef; border-color: #82c9a0; color: var(--sidebar-active); }
.btn-import:disabled { opacity: 0.45; cursor: default; }

/* â”€â”€ EXPORT BUTTON â”€â”€ */
.btn-export {
  padding: 9px 18px;
  background: #27ae60;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.btn-export:hover    { background: #219a52; }
.btn-export:disabled { background: #a9d9bb; cursor: default; }

/* â”€â”€ EXPORT MODAL â”€â”€ */
.export-howto {
  border: 1px solid #e5e9ef;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  margin-top: 4px;
}

.export-howto summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--sidebar-active);
  user-select: none;
  list-style: none;
  outline: none;
}

.export-howto summary::before       { content: 'â–¸ '; }
.export-howto[open] summary::before { content: 'â–¾ '; }

.howto-steps {
  margin: 10px 0 10px 18px;
  line-height: 1.9;
  color: #555;
}

.code-block-wrap {
  position: relative;
  margin-top: 6px;
}

.code-block {
  width: 100%;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12px;
  padding: 10px 12px;
  border: 1px solid #d0d7e2;
  border-radius: 5px;
  background: #f8f9fa;
  color: #333;
  resize: none;
  line-height: 1.5;
}

.btn-copy {
  position: absolute;
  top: 6px;
  right: 8px;
  padding: 3px 10px;
  background: var(--sidebar-active);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background var(--transition);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.btn-copy:hover { background: #2980b9; }

/* â”€â”€ PAGE FILL â€” layout de altura total para pÃ¡ginas de tabela â”€â”€ */
#main-content.page-fill {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#main-content.page-fill > .page-header {
  flex-shrink: 0;
}

.card-table-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

/* â”€â”€ ACTION BAR (linha 1) â”€â”€ */
.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid #e5e9ef;
  flex-shrink: 0;
  background: var(--white);
  flex-wrap: wrap;
}

.ab-left {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.ab-right {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ab-sep {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: #d8dce8;
  margin: 0 2px;
  flex-shrink: 0;
}

/* BotÃµes da barra de aÃ§Ãµes */
.btn-ab {
  padding: 5px 11px;
  border: 1px solid #d0d7e2;
  border-radius: 5px;
  background: none;
  color: #555;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.4;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.btn-ab:hover:not(:disabled) {
  background: #eaf7ef;
  border-color: #82c9a0;
  color: var(--sidebar-active);
}

.btn-ab:disabled {
  opacity: 0.45;
  cursor: default;
}

.btn-ab-primary {
  background: var(--sidebar-active);
  color: var(--white) !important;
  border-color: var(--sidebar-active);
}

.btn-ab-primary:hover:not(:disabled) {
  background: #2980b9 !important;
  border-color: #2980b9 !important;
}

.btn-ab-toggle.active,
.btn-status-all {
  background: #d5f5e3;
  border-color: #5dbb7d;
  color: var(--sidebar-active);
  font-weight: 600;
}

.btn-status-active {
  background: #e8f8f1;
  border-color: #82cba8;
  color: #1e8449;
  font-weight: 600;
}

.btn-status-disabled {
  background: #fdecea;
  border-color: #e08080;
  color: #c0392b;
  font-weight: 600;
}

#btn-status {
  min-width: 102px;
  text-align: center;
}
#btn-uso {
  min-width: 148px;
  text-align: center;
}
#btn-uso .btn-ou {
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.btn-ab-import {
  color: var(--sidebar-active);
  border-color: #82c9a0;
}

.btn-ab-import:hover:not(:disabled) {
  background: #eaf7ef;
}

.btn-ab-restore {
  color: #b7770d;
  border-color: #e0b86a;
  background: #fef9e7;
}
.btn-ab-restore:hover:not(:disabled) {
  background: #fdedc0;
  border-color: #c9922a;
}
.btn-ab-restore:disabled {
  opacity: 0.45;
  cursor: default;
}

.btn-ab-export {
  background: #27ae60;
  color: #fff !important;
  border-color: #27ae60;
}

.btn-ab-export:hover:not(:disabled) {
  background: #219a52 !important;
  border-color: #219a52 !important;
}

.btn-ab-export:disabled {
  background: #a9d9bb;
  border-color: #a9d9bb;
  opacity: 0.65;
}

/* â”€â”€ TABELA â€” Ã¡rea de scroll â”€â”€ */
.tbl-outer {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.tbl-outer::-webkit-scrollbar { width: 6px; height: 6px; }
.tbl-outer::-webkit-scrollbar-track { background: transparent; }
.tbl-outer::-webkit-scrollbar-thumb { background: #c8d0dc; border-radius: 3px; }
.tbl-outer::-webkit-scrollbar-thumb:hover { background: #a0aab8; }

/* Thead fixo (linhas 2 e 3) */
.data-table thead {
  /* sticky movido para as cÃ©lulas individuais */
}

/* Linha 2 â€” rÃ³tulos de coluna */
.thead-labels .th-col {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #f0f3f7;
  color: #555;
  font-weight: 600;
  font-size: 12px;
  padding: 8px 10px;
  white-space: nowrap;
  border-bottom: 1px solid #e0e5ed;
  user-select: none;
}

.thead-labels .th-col.sortable {
  cursor: pointer;
}

.thead-labels .th-col.sortable:hover {
  background: #e6ebf3;
  color: var(--sidebar-active);
}

.thead-labels .th-col.sorted-asc,
.thead-labels .th-col.sorted-desc {
  background: #d5f5e3;
  color: var(--sidebar-active);
}

.sort-icon {
  display: inline-block;
  width: 14px;
  text-align: center;
  font-size: 13px;
  color: #bbb;
  margin-right: 4px;
  vertical-align: middle;
}

.sorted-asc  .sort-icon,
.sorted-desc .sort-icon {
  color: var(--sidebar-active);
}

/* Linha 3 â€” filtros de coluna */
.thead-filters .th-filter-cell {
  position: sticky;
  /* top definido via JS (_fixStickyHeaders) */
  z-index: 9;
  background: #fafbfd;
  padding: 4px 5px;
  border-bottom: 2px solid #c8d0dc;
}

/* Tabela de largura fixa */
.tbl-outer .data-table {
  table-layout: fixed;
}

.tbl-outer .data-table .thead-labels .th-col,
.tbl-outer .data-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Wrapper input + botÃ£o Ã— */
.col-filter-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.col-filter {
  width: 100%;
  padding: 3px 22px 3px 7px; /* espaÃ§o para o botÃ£o Ã— */
  border: 1px solid #d0d7e2;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-dark);
  background: var(--white);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.col-filter:focus {
  outline: none;
  border-color: var(--sidebar-active);
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.12);
}

.col-filter-select {
  width: 100%;
  padding: 3px 4px;
  border: 1px solid #d0d7e2;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-dark);
  background: var(--white);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  cursor: pointer;
  transition: border-color var(--transition);
}

.col-filter-select:focus {
  outline: none;
  border-color: var(--sidebar-active);
}

/* BotÃ£o Ã— de limpar filtro individual */
.col-filter-clear {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  padding: 0;
  background: #c8cdd8;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--white);
  font-size: 11px;
  line-height: 1;
  flex-shrink: 0;
  transition: background var(--transition);
}

.col-filter-wrap.has-value .col-filter-clear {
  display: flex;
}

.col-filter-clear:hover {
  background: #e74c3c;
}

.th-actions { width: 110px; }

/* â”€â”€ SPLIT BUTTON â”€â”€ */
.split-btn {
  position: relative;
  display: inline-flex;
}

.split-btn-main {
  padding: 4px 9px;
  background: none;
  border: 1px solid #d0d7e2;
  border-right: none;
  border-radius: 4px 0 0 4px;
  cursor: pointer;
  font-size: 12px;
  color: #555;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.split-btn-main:hover {
  background: #eaf7ef;
  border-color: #82c9a0;
  color: var(--sidebar-active);
}

.split-btn-arrow {
  padding: 4px 7px;
  background: none;
  border: 1px solid #d0d7e2;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 10px;
  color: #888;
  line-height: 1.4;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.split-btn-arrow:hover,
.split-btn.open .split-btn-arrow {
  background: #eaf7ef;
  border-color: #82c9a0;
  color: var(--sidebar-active);
}

.split-btn-menu {
  display: none;
  position: fixed;
  background: var(--white);
  border: 1px solid #d0d7e2;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.13);
  z-index: 1500;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  min-width: 130px;
}

.split-btn.open .split-btn-menu {
  display: block;
}

.split-btn-menu li {
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-dark);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background var(--transition), color var(--transition);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  user-select: none;
}

.split-btn-menu li:hover { background: #f5f7fa; }

.split-btn-menu li.menu-sep {
  height: 1px;
  background: #e5e9ef;
  margin: 4px 0;
  padding: 0;
  pointer-events: none;
}

.split-btn-menu li.item-danger:hover {
  background: #fdecea;
  color: #c0392b;
}

.split-btn-menu li.item-success:hover {
  background: #e8f8f1;
  color: #1e8449;
}

.split-btn-menu li.item-disabled {
  color: #bbb;
  cursor: default;
  pointer-events: none;
}

.split-btn-menu li.item-delete:hover {
  background: #c0392b;
  color: #fff;
}

/* â”€â”€ TABLE FOOTER â”€â”€ */
.tbl-footer {
  flex-shrink: 0;
  background: var(--white);
  border-top: 2px solid #e5e9ef;
}

.tbl-footer-row {
  display: flex;
  align-items: center;
  padding: 5px 14px;
  min-height: 36px;
  gap: 12px;
}

.tbl-footer-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.tbl-footer-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.tbl-footer-right {
  flex: 0 0 auto;
  font-size: 12px;
  color: #888;
  white-space: nowrap;
}

.footer-label {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
}

.footer-select,
.footer-input-combo {
  padding: 3px 6px;
  border: 1px solid #d0d7e2;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-dark);
  background: #fafbfc;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: border-color var(--transition);
}

.footer-select { cursor: pointer; }

/* Carimbo do rodapé: salvar "Linhas por página" como preferência do usuário */
.footer-stamp { border: none; background: transparent; color: #9aa4b2; cursor: pointer; padding: 2px 5px; margin-left: 4px; border-radius: 4px; display: inline-flex; align-items: center; vertical-align: middle; transition: color .15s, background .15s; }
.footer-stamp:hover { color: #2c7be5; background: #eef3fb; }
.footer-stamp-done { color: #27ae60; }

.footer-input-combo {
  width: 52px;
  text-align: center;
}

.footer-label-custom {
  color: #aaa;
  font-style: italic;
}

.footer-select:focus,
.footer-input-combo:focus {
  outline: none;
  border-color: var(--sidebar-active);
}

/* â”€â”€ PAGINADOR â”€â”€ */
.pg-btn {
  padding: 3px 8px;
  border: 1px solid #d0d7e2;
  border-radius: 4px;
  background: none;
  font-size: 12px;
  color: #555;
  cursor: pointer;
  line-height: 1.4;
  min-width: 28px;
  text-align: center;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.pg-btn:hover:not(:disabled) {
  background: #eaf7ef;
  border-color: #82c9a0;
  color: var(--sidebar-active);
}

.pg-btn:disabled { opacity: 0.35; cursor: default; }

.pg-btn.pg-active {
  background: var(--sidebar-active);
  color: var(--white);
  border-color: var(--sidebar-active);
  font-weight: 600;
}

.pg-btn.pg-active:hover:not(:disabled) {
  background: #2980b9;
  border-color: #2980b9;
}

.pg-ellipsis {
  font-size: 12px;
  color: #bbb;
  padding: 0 2px;
  line-height: 1;
}

/* â”€â”€ FOOTER â€” linha de mensagens â”€â”€ */
.tbl-footer-msg {
  padding: 0 14px;
  font-size: 12px;
  height: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #f0f2f5;
  overflow: hidden;
}

.tbl-footer-msg.msg-error   { background: #fdecea; color: #c0392b; }
.tbl-footer-msg.msg-warn    { background: #fef9e7; color: #d68910; border-left: 3px solid #e67e22; animation: confirm-pulse 1.4s ease-in-out infinite; }
@keyframes confirm-pulse {
  0%, 100% { background: #fef9e7; }
  50%       { background: #fde7a0; }
}
.tbl-footer-msg.msg-info    { background: #eaf7ef; color: #1a7a40; }
.tbl-footer-msg.msg-success { background: #e8f8f1; color: #1e8449; }
.tbl-footer-msg.msg-progress { color: #888; }

.btn-confirm {
  padding: 1px 10px;
  border-radius: 4px;
  border: 1px solid;
  font-size: 12px;
  cursor: pointer;
  line-height: 20px;
}
.btn-confirm-yes { background: #e8f8f1; border-color: #82cba8; color: #1e8449; }
.btn-confirm-yes:hover { background: #d0f0e0; }
.btn-confirm-no  { background: #fdecea; border-color: #e08080; color: #c0392b; }
.btn-confirm-no:hover  { background: #fad4d0; }

.progress-bar {
  flex: 1;
  max-width: 200px;
  height: 4px;
  background: #e5e9ef;
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--sidebar-active);
  border-radius: 2px;
  animation: progressAnim 1.4s ease-in-out infinite;
}

@keyframes progressAnim {
  0%   { width: 5%;   margin-left: 0; }
  50%  { width: 60%;  margin-left: 20%; }
  100% { width: 5%;   margin-left: 95%; }
}

/* â”€â”€ COMBOBOX â”€â”€ */
.combobox { position: relative; }

.combobox-input { cursor: pointer; width: 100%; box-sizing: border-box; }

.combobox-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid #d0d7e2;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  z-index: 200;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px 0;
  list-style: none;
  margin: 0;
  display: none;
}

/* Combobox usado como filtro de coluna (ex.: Categoria em Auxiliares):
   altura compacta, igual aos inputs .col-filter da mesma linha. */
.th-filter-cell .combobox-input {
  padding: 3px 7px;
  font-size: 12px;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
}
/* Ao abrir, a lista fica mais larga que a coluna estreita; ao selecionar
   o combobox fecha e a célula volta à largura normal. */
.th-filter-cell .combobox-dropdown { min-width: 260px; }

.combobox-option {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-dark);
}

/* IconCombobox: item com ícone (bandeira) + sigla + nome */
.icon-combobox .combobox-option { display: flex; align-items: center; gap: 8px; }
.icon-combobox .cb-flag {
  width: 22px; height: 15px; flex: none; object-fit: contain;
  border: 1px solid #d7dde6; border-radius: 2px; background: #f3f5f9;
}
.icon-combobox .cb-flag-empty { background: #eef1f6; }
.icon-combobox .cb-sigla { width: 26px; flex: none; font-weight: 600; }
.icon-combobox .cb-nome  { color: #444; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.combobox-option:hover,
.combobox-option.focused { background: #eaf7ef; }

.combobox-option.selected { background: #d5f5e3; font-weight: 600; }

.combobox-empty { color: #aaa; cursor: default; font-style: italic; }

.combobox-option.combobox-create {
  color: #1a7a40;
  font-weight: 600;
  border-top: 1px dashed #c5e1d0;
  background: #f6fcf8;
}
.combobox-option.combobox-create:hover,
.combobox-option.combobox-create.focused {
  background: #d5f5e3;
}

/* ── MODELOS (Settings → Modelos) ── */
.models-panel { display: flex; flex-direction: column; gap: 18px; padding-top: 4px; }
.models-section { display: flex; flex-direction: column; gap: 4px; }
.models-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.model-textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: ui-monospace, Menlo, Consolas, "Roboto Mono", monospace;
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 12px;
  border: 1px solid #d0d7e2;
  border-radius: 6px;
  background: #fafbfc;
  color: var(--text-dark);
  resize: vertical;
}
.model-textarea:focus { outline: none; border-color: #82cba8; background: #fff; }

.model-vars-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px 16px;
  padding: 10px 12px;
  background: #f6fcf8;
  border: 1px dashed #c5e1d0;
  border-radius: 6px;
  min-height: 48px;
}
.model-vars-empty { margin: 4px 0; color: #aaa; font-style: italic; font-size: 12px; }

.model-var-row { display: flex; align-items: center; gap: 8px; }
.model-var-label {
  flex: none;
  min-width: 120px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  color: #1a7a40;
  text-align: right;
}
.model-var-input {
  width: 100%;
  box-sizing: border-box;
  flex: 1;
  padding: 4px 10px;
  font-size: 13px;
}

.model-output {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.55;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #d0d7e2;
  border-left: 3px solid #5dbb7d;
  border-radius: 6px;
  color: #111;
  min-height: 80px;
}

.model-output-html {
  width: 100%;
  height: 500px;
  border: 1px solid #d0d7e2;
  border-left: 3px solid #5dbb7d;
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
}

.model-img-uploader {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.model-var-img {
  flex: 1;
  font-size: 12px;
}
.model-img-thumb {
  max-height: 36px;
  max-width: 80px;
  object-fit: contain;
  border: 1px solid #d0d7e2;
  border-radius: 4px;
  padding: 2px;
  background: #fff;
}
.model-img-clear {
  background: transparent;
  border: 1px solid #d0d7e2;
  border-radius: 4px;
  padding: 1px 7px;
  cursor: pointer;
  color: #a00;
  font-size: 12px;
}
.model-img-clear:hover { background: #fdecea; border-color: #e08080; }

/* ── LOGIN ── */
#main-content.login-mode {
  padding: 0;
  background: linear-gradient(135deg, #eaf3ff 0%, #f6fcf8 100%);
  min-height: 100vh;
  display: block;
}
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: white;
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.login-brand {
  text-align: center;
  margin-bottom: 24px;
}
.login-logo {
  max-width: 220px;
  max-height: 90px;
  object-fit: contain;
}
.login-tagline {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  color: #888;
  margin-top: 6px;
  letter-spacing: 0.04em;
}
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-field { display: flex; flex-direction: column; gap: 4px; }
.login-field .form-input { width: 100%; box-sizing: border-box; }
.login-pwd-wrap { position: relative; display: flex; align-items: center; }
.login-pwd-wrap .form-input { padding-right: 38px; }
.login-pwd-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  color: #555;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-pwd-toggle:hover { background: #f0f4fa; }
.login-pwd-toggle svg { display: block; }

/* Cortina inferior (bottom-sheet) — usada para a matriz de permissões do grupo.
   Desliza de baixo para cima; fecha só por Salvar/Cancelar/✕ (sem clique-fora). */
.perm-drawer {
  position: absolute;          /* dentro da .child-curtain → limitado à largura da lista */
  left: 0; right: 0; bottom: 0;
  height: 50%;                 /* abre na meia-altura da listagem */
  min-height: 140px;
  max-height: 95%;
  background: #fff;
  border-top: 1px solid #dde3ec;
  box-shadow: 0 -10px 28px rgba(0,0,0,.18);
  border-radius: 12px 12px 0 0;
  transform: translateY(100%);
  transition: transform .3s ease;
  z-index: 6;
  display: flex;
  flex-direction: column;
}
.perm-drawer.open { transform: translateY(0); }
/* Alça de redimensionamento vertical (arrastar para cima/baixo). */
.perm-drawer-grip {
  height: 14px; flex-shrink: 0; cursor: ns-resize;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px 12px 0 0; background: #f4f6f9;
  border-bottom: 1px solid #eef1f5;
  touch-action: none;
}
.perm-drawer-grip span { width: 40px; height: 4px; border-radius: 3px; background: #c4ccd8; }
.perm-drawer-grip:hover span { background: #9aa6b5; }
.perm-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px; border-bottom: 1px solid #e6eaf0; flex-shrink: 0;
}
.perm-drawer-title { font-weight: 600; font-size: 15px; color: #1f2d3d; }
.perm-drawer-body {
  padding: 10px 18px; overflow: auto; flex: 1; min-height: 0;
  scrollbar-gutter: stable;   /* reserva o espaço da barra → largura não flutua ao entrar o scroll */
}
.perm-drawer-foot {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 10px 18px; border-top: 1px solid #e6eaf0; flex-shrink: 0;
}

/* Componente PasswordInput (campo de senha reutilizável com olho mostrar/ocultar) */
.pwd-field { position: relative; display: flex; align-items: center; }
.pwd-field .pwd-input { flex: 1; min-width: 0; padding-right: 36px; }
.pwd-field .pwd-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  color: #555;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pwd-field .pwd-toggle:hover { background: #f0f4fa; }
.pwd-field .pwd-toggle svg { display: block; }
.login-row { display: flex; justify-content: space-between; align-items: center; }
.login-check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #555; cursor: pointer; }
.login-error {
  background: #fdecea;
  border-left: 3px solid #e08080;
  color: #7a1f17;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
}
.login-submit {
  margin-top: 8px;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
}
.login-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 10px;
  color: #aaa;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

/* Link discreto "trocar senha" */
.login-aux { justify-content: center; margin-top: 4px; }
.login-link {
  background: none; border: none; padding: 4px;
  color: var(--sidebar-active); font-size: 12.5px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.login-link:hover { filter: brightness(0.9); }

/* ── MODAL TROCAR SENHA ── */
.ts-overlay {
  position: fixed; inset: 0; z-index: 4000;
  background: rgba(0,0,0,0.42);
  display: flex; align-items: center; justify-content: center;
}
.ts-card {
  width: 380px; max-width: 94vw; background: var(--white);
  border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,0.30);
  overflow: hidden;
}
.ts-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: #f5f7fa; border-bottom: 1px solid #e5e9ef;
}
.ts-title { font-size: 14px; font-weight: 600; color: var(--text-dark); }
.ts-close {
  background: none; border: none; cursor: pointer; font-size: 15px; color: #888;
}
.ts-close:hover { color: #e74c3c; }
.ts-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; }
.ts-body .form-label { margin-top: 6px; font-size: 12.5px; }
.ts-show { margin-top: 10px; font-size: 12.5px; }
.ts-msg { min-height: 16px; font-size: 12.5px; margin-top: 8px; }
.ts-msg.err { color: #c0392b; }
.ts-msg.ok  { color: #1a7a40; }
.ts-actions {
  display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px;
}

/* ── SIDEBAR LOGOUT ── */
.sidebar-logout {
  margin-top: 6px;
  background: transparent;
  border: 1px solid #d0d7e2;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11px;
  color: #c0392b;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
}
.sidebar-logout:hover { background: #fdecea; border-color: #e08080; }
.collapsed .sidebar-logout { display: none; }

/* ── PDF MERGE (Utilitários → PDF) ── */
.pdf-drop {
  border: 2px dashed #b0c4d4;
  border-radius: 10px;
  padding: 28px 18px;
  text-align: center;
  background: #fafbfc;
  transition: background 0.15s, border-color 0.15s;
  cursor: default;
}
.pdf-drop.pdf-drop-over {
  background: #eaf3ff;
  border-color: #5dbb7d;
}
.pdf-drop-icon { font-size: 30px; line-height: 1; margin-bottom: 6px; opacity: 0.7; }
.pdf-drop-text { font-size: 13px; color: #555; }
.pdf-drop-text a { color: #1a5fb4; text-decoration: underline; cursor: pointer; }

.pdf-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.pdf-item {
  display: grid;
  grid-template-columns: 28px 1fr auto auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid #e0e6ee;
  border-radius: 6px;
  font-size: 13px;
}
.pdf-item-idx { color: #888; font-variant-numeric: tabular-nums; text-align: right; font-weight: 600; }
.pdf-item-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-item-size { color: #888; font-size: 12px; font-variant-numeric: tabular-nums; }
.pdf-item-btn {
  background: transparent;
  border: 1px solid #d0d7e2;
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
  font-size: 12px;
  color: #555;
}
.pdf-item-btn:hover:not(:disabled) { background: #eaf3ff; border-color: #7faedc; }
.pdf-item-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pdf-item-rm { color: #a00; }
.pdf-item-rm:hover:not(:disabled) { background: #fdecea; border-color: #e08080; }

.pdf-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  flex-wrap: wrap;
}
.pdf-status { font-size: 12px; color: #555; font-style: italic; }

.pdf2html-preview {
  width: 100%;
  height: 360px;
  border: 1px solid #d0d7e2;
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
}
.pdf2html-source {
  width: 100%;
  height: 360px;
  border: 1px solid #d0d7e2;
  border-radius: 6px;
  padding: 10px 12px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.45;
  background: #f8fafc;
  color: #1e293b;
  resize: vertical;
  box-sizing: border-box;
}

/* ── FOOTER ── */
#main-footer {
  padding: 6px 24px;
  min-height: 0;
  background: var(--white);
  border-top: 1px solid #e5e9ef;
  font-size: 12px;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 16px;
}

.footer-brand,
.footer-deploy {
  white-space: nowrap;
}

#main-footer strong {
  color: #666;
}

/* ── Painéis duplos lado a lado (ex.: Original / Sugerido) ─────────────── */
.split-panes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}
.split-pane {
  border: 1px solid #d8dce8;
  border-radius: 6px;
  background: #fafbfd;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.split-pane-title {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #34495e;
  background: #eef2f7;
  border-bottom: 1px solid #d8dce8;
}
.split-pane-body {
  flex: 1;
  padding: 12px 14px;
  font-size: 13px;
  color: #2c3e50;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-y: auto;
  max-height: 480px;
  font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
}
.split-pane-body:empty::before {
  content: '(vazio)';
  color: #aaa;
  font-style: italic;
}
@media (max-width: 760px) {
  .split-panes { grid-template-columns: 1fr; }
}

/* ── Tabs com drag-and-drop ────────────────────────────────────────────── */
.tab-btn[draggable="true"]         { cursor: grab; }
.tab-btn[draggable="true"]:active  { cursor: grabbing; }
.tab-btn.tab-dragging              { opacity: 0.4; }
.tab-btn.tab-drop-before           { box-shadow: inset 3px 0 0 var(--sidebar-active); }
.tab-btn.tab-drop-after            { box-shadow: inset -3px 0 0 var(--sidebar-active); }

/* ── Ilustrações (unDraw) ──────────────────────────────────────────────── */
.illust          { display: block; margin: 14px auto; max-width: 100%; height: auto; }
.illust-xs       { max-width: 96px;  }
.illust-sm       { max-width: 160px; }
.illust-md       { max-width: 280px; }
.illust-lg       { max-width: 420px; }
.illust-xl       { max-width: 560px; }

/* Estado vazio em tabelas: ilustração + texto */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px 16px; gap: 8px; color: #888;
}
.empty-state .illust { margin: 4px auto; }
.empty-state-title { font-size: 14px; color: #555; font-weight: 600; }
.empty-state-text  { font-size: 12px; color: #888; }

/* ── Tour guiado (overlay + highlight + tooltip) ───────────────────────── */
.tour-highlight {
  position: fixed;
  z-index: 9000;
  border-radius: 6px;
  border: 2px solid var(--sidebar-active);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  transition: top 0.25s ease, left 0.25s ease, width 0.25s ease, height 0.25s ease;
}
.tour-tooltip {
  position: fixed;
  z-index: 9001;
  max-width: 380px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.30);
  padding: 14px 16px;
  font-size: 13px;
  color: #2c3e50;
  line-height: 1.5;
}
.tour-tip-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.tour-tip-title {
  font-weight: 700; color: #2c3e50; font-size: 14px;
}
.tour-tip-counter {
  font-size: 11px; color: #888; flex-shrink: 0;
  padding: 2px 8px; border-radius: 10px; background: #f0f3f7;
}
.tour-tip-text {
  margin-bottom: 14px;
  color: #555;
}
.tour-tip-actions {
  display: flex; gap: 6px; justify-content: flex-end;
}
.tour-tip-actions .tour-btn-skip {
  margin-right: auto; color: #999;
}

/* ── Tutorial / manual ─────────────────────────────────────────────────── */
.modal-tutorial .modal-body { max-height: 70vh; overflow-y: auto; }

.tutorial-body {
  font-size: 13.5px;
  line-height: 1.55;
  color: #2c3e50;
}
.tutorial-body h2 {
  font-size: 18px;
  margin: 18px 0 8px;
  color: var(--sidebar-active);
  border-bottom: 2px solid #e0e6ed;
  padding-bottom: 4px;
}
.tutorial-body h2:first-child { margin-top: 0; }
.tutorial-body h3 {
  font-size: 14px;
  margin: 14px 0 6px;
  color: #34495e;
}
.tutorial-body p { margin: 6px 0; }
.tutorial-body ul, .tutorial-body ol { margin: 6px 0 6px 22px; }
.tutorial-body li { margin: 3px 0; }

.tut-icon {
  display: inline-block;
  font-size: 18px;
  vertical-align: middle;
  margin-right: 4px;
}
.tut-kbd {
  display: inline-block;
  padding: 1px 6px;
  background: #f3f4f6;
  border: 1px solid #d0d7e2;
  border-radius: 3px;
  font-family: 'Consolas', 'Menlo', monospace;
  font-size: 12px;
  color: #34495e;
}
.tut-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: #eef2f7;
  border: 1px solid #d0d7e2;
  color: #34495e;
  font-size: 12px;
  font-weight: 600;
}
/* Variantes de cor dos exemplos de aviso no tutorial (antes inline) */
.tut-tag-info    { background: #eaf7ef; color: #1a7a40; }
.tut-tag-success { background: #e8f8f1; color: #1e8449; }
.tut-tag-warn    { background: #fef9e7; color: #7a5500; }
.tut-tag-error   { background: #fdecea; color: #7a1f17; }
.tut-tip {
  background: #eaf7ef;
  border-left: 3px solid #27ae60;
  padding: 8px 12px;
  margin: 10px 0;
  border-radius: 0 4px 4px 0;
  font-size: 13px;
}
.tut-warn {
  background: #fff8e1;
  border-left: 3px solid #f5b041;
  padding: 8px 12px;
  margin: 10px 0;
  border-radius: 0 4px 4px 0;
  font-size: 13px;
  color: #7a5500;
}
.tut-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0;
  padding: 8px 10px;
  background: #f9fafc;
  border-radius: 4px;
}
.tut-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sidebar-active);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: bold;
  font-size: 13px;
}

.global-msg {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-size: 14px;
  padding: 2px 14px;
  border-radius: 4px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.global-msg:empty {
  padding: 0;
}

/* ── RecordList — lista compacta embutida ─────────────────────────────────── */
.record-list { border: 1px solid #e1e7f0; border-radius: 6px; background: #fff; overflow: hidden; }
.rl-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #eef2f7; font-weight: 600; color: #2c3e50; font-size: 13.5px; }
.rl-count { color: #9aa6b5; font-weight: 400; font-size: 12px; }
.rl-table-wrap { overflow-x: auto; }
.rl-table { width: 100%; border-collapse: collapse; }
.rl-th { text-align: left; font-size: 11.5px; color: #7a8694; font-weight: 600; padding: 6px 10px; border-bottom: 1px solid #eef2f7; white-space: nowrap; }
.rl-td { padding: 6px 10px; border-bottom: 1px solid #f2f5f9; font-size: 13px; color: #3a4a5e; }
.rl-dense .rl-td { padding: 4px 10px; }
.record-list tbody tr:last-child .rl-td { border-bottom: none; }
.rl-row.rl-clickable { cursor: pointer; }
.rl-row:hover { background: #f7fafd; }
.rl-th-actions, .rl-td-actions { text-align: right; white-space: nowrap; width: 1%; }
.rl-act { border: none; background: transparent; cursor: pointer; font-size: 14px; padding: 2px 5px; border-radius: 4px; opacity: .7; }
.rl-act:hover { opacity: 1; background: #eef2f7; }
.rl-act-danger:hover { background: #fdecea; }
.rl-msg { text-align: center; color: #9aa6b5; padding: 14px; font-size: 13px; }
.rl-foot { padding: 8px 12px; border-top: 1px solid #eef2f7; }

/* ── DrawerRenderer — corpo da ficha por declaração ───────────────────────── */
.drawer-render { display: flex; flex-direction: column; gap: 14px; }
.dr-header { display: flex; align-items: center; gap: 10px; }
.dr-h-title { font-weight: 700; font-size: 17px; color: #2c3e50; }
.dr-toplist { }
.dr-grid { display: flex; flex-direction: column; gap: 14px; }
.dr-rowblock { }
.dr-section-title { font-size: 12px; font-weight: 700; color: #7a8694; text-transform: none; margin-bottom: 6px; }
.dr-section-head { display: flex; align-items: center; gap: 6px; width: 100%; background: #f4f7fb; border: 1px solid #e1e7f0; border-radius: 5px; padding: 6px 10px; font-size: 12.5px; font-weight: 700; color: #48566a; cursor: pointer; margin-bottom: 8px; }
.dr-caret { display: inline-block; transition: transform .15s; }
.dr-collapsed .dr-caret { transform: rotate(-90deg); }
.dr-collapsed .dr-row { display: none; }
.dr-row { display: flex; gap: 14px; align-items: flex-start; }
.dr-cell { flex: 1 1 0; min-width: 0; position: relative; }
.dr-blank { visibility: hidden; }
.dr-slot, .dr-mount { min-height: 0; }
.dr-fld { display: flex; gap: 4px; }
.dr-lab-top { flex-direction: column; }
.dr-lab-bottom { flex-direction: column-reverse; }
.dr-lab-left { flex-direction: row; align-items: center; gap: 8px; }
.dr-lab-right { flex-direction: row-reverse; align-items: center; gap: 8px; justify-content: flex-end; }
.dr-lab-left .dr-label, .dr-lab-right .dr-label { flex: 0 0 var(--dr-lab-w, auto); }
.dr-lab-left .dr-control, .dr-lab-right .dr-control { flex: 1 1 auto; min-width: 0; }
.dr-label { font-size: 12.5px; color: #5a6b7d; }
.dr-control { width: 100%; position: relative; }
/* Carimbo (salvar-como-padrão): ícone à direita do controle, dentro do campo. */
.dr-control.dr-has-stamp .dr-input { padding-right: 30px; }
.dr-stamp { position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; padding: 0; border: none; background: transparent;
  color: #9aa4b2; cursor: pointer; display: inline-flex; align-items: center;
  justify-content: center; border-radius: 4px; transition: color .15s, background .15s; }
.dr-stamp:hover { color: #2c7be5; background: #eef3fb; }
.dr-stamp-done { color: #27ae60 !important; }
.dr-lab-right .dr-stamp, .dr-lab-left .dr-stamp { right: 2px; }
/* <select>: a seta nativa ocupa a direita → recuar o selo p/ a esquerda dela e abrir padding p/ o valor não correr sob ambos. */
.dr-control.dr-has-stamp.dr-ctrl-select .dr-input { padding-right: 46px; }
.dr-control.dr-has-stamp.dr-ctrl-select .dr-stamp { right: 22px; }
.dr-lab-right .dr-control.dr-has-stamp.dr-ctrl-select .dr-stamp,
.dr-lab-left .dr-control.dr-has-stamp.dr-ctrl-select .dr-stamp { right: 20px; }
.dr-input { width: 100%; box-sizing: border-box; padding: 6px 8px; border: 1px solid #cdd6e0; border-radius: 5px; font-size: 13px; color: #2c3e50; background: #fff; }
.dr-input:focus { outline: none; border-color: #4a78c0; box-shadow: 0 0 0 2px rgba(74,120,192,.15); }
.dr-check { width: 16px; height: 16px; }
.dr-help { font-size: 11.5px; color: #9aa6b5; }
.dr-req .dr-label::after { content: ' *'; color: #c0392b; }
.dr-invalid .dr-input { border-color: #e08080; background: #fff7f7; }
.dr-col-toggle { position: absolute; right: 0; top: 0; border: none; background: transparent; cursor: pointer; font-size: 12px; color: #9aa6b5; padding: 0 2px; }
.dr-col-hidden .dr-control, .dr-col-hidden .dr-help { display: none; }
.dr-footer { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid #eef2f7; padding-top: 12px; margin-top: 2px; }
.dr-tabbar { display: flex; gap: 2px; border-bottom: 2px solid #e6eaf0; margin-bottom: 12px; flex-wrap: wrap; }
.dr-tab { border: none; background: transparent; padding: 8px 14px; font-size: 13px; color: #7a8694; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.dr-tab:hover { color: #2c3e50; }
.dr-tab-active { color: #2c3e50; font-weight: 600; border-bottom-color: #4a78c0; }
.dr-hidden { display: none; }

/* ── TabSet — abas com layout configurável (framework WRender) ─────────────── */
.tabset              { display: flex; }
.tabset > .ts-bar    { display: flex; gap: 2px; }
.tabset > .ts-panels { flex: 1; min-width: 0; }
.ts-tab          { background: transparent; padding: 8px 14px; font-size: 13px; color: #7a8694; cursor: pointer; border: 2px solid transparent; }
.ts-tab:hover    { color: #2c3e50; }
.ts-tab-active   { color: #2c3e50; font-weight: 600; }
.ts-hidden       { display: none; }
/* topo (padrão) */
.ts-top              { flex-direction: column; }
.ts-top > .ts-bar    { border-bottom: 2px solid #e6eaf0; margin-bottom: 12px; flex-wrap: wrap; }
.ts-top > .ts-bar > .ts-tab        { margin-bottom: -2px; }
.ts-top > .ts-bar > .ts-tab-active { border-bottom-color: #4a78c0; }
/* baixo */
.ts-bottom           { flex-direction: column-reverse; }
.ts-bottom > .ts-bar { border-top: 2px solid #e6eaf0; margin-top: 12px; flex-wrap: wrap; }
.ts-bottom > .ts-bar > .ts-tab        { margin-top: -2px; }
.ts-bottom > .ts-bar > .ts-tab-active { border-top-color: #4a78c0; }
/* esquerda */
.ts-left             { flex-direction: row; gap: 14px; }
.ts-left > .ts-bar   { flex-direction: column; border-right: 2px solid #e6eaf0; }
.ts-left > .ts-bar > .ts-tab        { margin-right: -2px; text-align: left; white-space: nowrap; }
.ts-left > .ts-bar > .ts-tab-active { border-right-color: #4a78c0; }
/* direita */
.ts-right            { flex-direction: row-reverse; gap: 14px; }
.ts-right > .ts-bar  { flex-direction: column; border-left: 2px solid #e6eaf0; }
.ts-right > .ts-bar > .ts-tab        { margin-left: -2px; text-align: left; white-space: nowrap; }
.ts-right > .ts-bar > .ts-tab-active { border-left-color: #4a78c0; }
/* arraste-para-reordenar (TabSet) */
.ts-tab[draggable="true"] { cursor: grab; }
.ts-tab.ts-dragging       { opacity: .5; }
/* marcador: horizontal (top/bottom) marca a borda lateral; vertical (left/right) marca topo/base */
.ts-tab.ts-drop-before    { box-shadow: inset  3px 0 0 #4a78c0; }
.ts-tab.ts-drop-after     { box-shadow: inset -3px 0 0 #4a78c0; }
.ts-left > .ts-bar > .ts-tab.ts-drop-before,
.ts-right > .ts-bar > .ts-tab.ts-drop-before { box-shadow: inset 0  3px 0 #4a78c0; }
.ts-left > .ts-bar > .ts-tab.ts-drop-after,
.ts-right > .ts-bar > .ts-tab.ts-drop-after  { box-shadow: inset 0 -3px 0 #4a78c0; }

/* ── DrawerRenderer · modos de abertura (setOpenMode) ─────────────────────── */
.dr-overlay { position: fixed; inset: 0; z-index: 1200; display: flex; background: rgba(20, 28, 40, 0); transition: background .18s ease; }
.dr-overlay.dr-open { background: rgba(20, 28, 40, .38); }
.dr-overlay-popup { background: rgba(20, 28, 40, 0); }
.dr-overlay-popup.dr-open { background: rgba(20, 28, 40, .12); }
.dr-panel { background: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); overflow: auto; transition: transform .18s ease, opacity .18s ease; }
/* centro / pop-up — cartão centralizado */
.dr-overlay-center, .dr-overlay-popup { align-items: center; justify-content: center; }
.dr-overlay-center .dr-panel, .dr-overlay-popup .dr-panel { width: min(640px, 94vw); max-height: 88vh; border-radius: 10px; padding: 20px; opacity: 0; transform: scale(.96); }
.dr-overlay-center.dr-open .dr-panel, .dr-overlay-popup.dr-open .dr-panel { opacity: 1; transform: scale(1); }
.dr-overlay-popup .dr-panel { width: min(460px, 92vw); box-shadow: 0 8px 28px rgba(0, 0, 0, .22); }
/* cortinas — deslizam da borda */
.dr-overlay-left { justify-content: flex-start; }
.dr-overlay-right { justify-content: flex-end; }
.dr-overlay-top { align-items: flex-start; }
.dr-overlay-bottom { align-items: flex-end; }
.dr-overlay-left .dr-panel, .dr-overlay-right .dr-panel { height: 100%; width: min(460px, 92vw); padding: 20px; }
.dr-overlay-top .dr-panel, .dr-overlay-bottom .dr-panel { width: 100%; max-height: 85vh; padding: 20px; }
.dr-overlay-left .dr-panel { transform: translateX(-100%); }
.dr-overlay-right .dr-panel { transform: translateX(100%); }
.dr-overlay-top .dr-panel { transform: translateY(-100%); }
.dr-overlay-bottom .dr-panel { transform: translateY(100%); }
.dr-overlay-left.dr-open .dr-panel, .dr-overlay-right.dr-open .dr-panel,
.dr-overlay-top.dr-open .dr-panel, .dr-overlay-bottom.dr-open .dr-panel { transform: translate(0, 0); }
@media (max-width: 640px) {
  .dr-row { flex-direction: column; }
  .dr-lab-left, .dr-lab-right { flex-direction: column; align-items: stretch; }
  .dr-lab-left .dr-label, .dr-lab-right .dr-label { flex: none; }
}

/* ── WRender · Collapsible (painel recolhível / disclosure) ─────────────────── */
.wr-collap { background: #fff; scroll-margin-top: 96px; }
.wr-collap--card { border: 1px solid #e6eaf0; border-radius: 8px; }
.wr-collap-sum {
  cursor: pointer; user-select: none; list-style: none;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; font-size: 16px; font-weight: 700; color: #2c3e50;
  background: #f7f9fc; border-radius: 8px;
}
.wr-collap--plain > .wr-collap-sum { background: transparent; padding: 6px 2px; }
.wr-collap[open] > .wr-collap-sum { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.wr-collap-sum::-webkit-details-marker { display: none; }
.wr-collap-sum::before {
  content: '▸'; color: #9aa6b5; font-size: 13px; transition: transform .15s ease;
}
.wr-collap[open] > .wr-collap-sum::before { transform: rotate(90deg); }
.wr-collap-badge { font-weight: 400; color: #9aa6b5; font-size: 12px; }
.wr-collap-body { padding: 12px 14px; }
.wr-collap--plain > .wr-collap-body { padding: 10px 2px; }


/* ── EmailComposer (smart de composição de e-mail) ───────────────────────── */
.ec-wrap { display: flex; flex-direction: column; gap: 8px; max-width: 720px; }
.ec-row { display: flex; align-items: center; gap: 10px; }
.ec-row-top { align-items: flex-start; }
.ec-lbl { flex: 0 0 64px; text-align: right; color: #5a6b7b; font-size: 13px; padding-top: 6px; }
.ec-input { flex: 1 1 auto; padding: 6px 9px; border: 1px solid #cfd8e0; border-radius: 6px; font: inherit; }
.ec-input:focus { outline: none; border-color: #2f8fd0; box-shadow: 0 0 0 2px rgba(47,143,208,.15); }
.ec-body { resize: vertical; min-height: 120px; font-family: inherit; }
.ec-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 13px; color: #5a6b7b; }
.ec-check, .ec-attach { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ec-attach input[type=file] { font-size: 12px; }
.ec-attach-list { font-size: 12px; color: #7a8794; }

/* ── Checkbox (smart; com modo switch) ───────────────────────────────────── */
.wr-check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 13px; color: #44525f; user-select: none; }
.wr-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.wr-check-box { width: 16px; height: 16px; border: 1.5px solid #b3c0cc; border-radius: 4px; background: #fff; flex: 0 0 auto; position: relative; transition: all .15s; }
.wr-check input:checked + .wr-check-box { background: #2f8fd0; border-color: #2f8fd0; }
.wr-check input:checked + .wr-check-box::after { content: ''; position: absolute; left: 4.5px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.wr-check input:focus + .wr-check-box { box-shadow: 0 0 0 2px rgba(47,143,208,.25); }
.wr-check input:disabled + .wr-check-box { background: #eef1f4; border-color: #d4dbe1; }
.wr-check input:disabled ~ .wr-check-lbl { color: #aab4bd; }
/* modo switch */
.wr-check--switch .wr-check-box { width: 32px; height: 18px; border-radius: 9px; }
.wr-check--switch input:checked + .wr-check-box::after { content: ''; left: auto; right: 2px; top: 2px; width: 12px; height: 12px; border: none; border-radius: 50%; background: #fff; transform: none; }
.wr-check--switch .wr-check-box::before { content: ''; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: all .15s; }
.wr-check--switch input:checked + .wr-check-box::before { opacity: 0; }

/* ── Configuração de e-mail (aba Desenvolvimento › E-mail) ───────────────── */
.ecfg-grid { display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.ecfg-row { display: flex; align-items: center; gap: 10px; }
.ecfg-lbl { flex: 0 0 140px; text-align: right; color: #5a6b7b; font-size: 13px; }
.ecfg-row .ec-input { flex: 1 1 auto; }

/* ── EmailComposer: campo desabilitado por canal (.ec-row-off) ───────────── */
.ec-row.ec-row-off { opacity: .5; }
.ec-row.ec-row-off .ec-input,
.ec-row.ec-row-off .ec-opts { pointer-events: none; }
.ec-input:disabled { background: #f1f4f7; cursor: not-allowed; }

/* ── EmailComposer: campo OBRIGATÓRIO (borda grossa, cor padrão) ──────────── */
.ec-input.ec-required { border-width: 2px; border-color: #e08080; }
.ec-input.ec-required:focus { border-color: #2f8fd0; }

/* ── Página Desenvolvimento: classes semânticas (item 18 — WRender, ex-estilos inline) ──── */
.dev-flabel  { font-size: 14px; color: #555; margin-bottom: 4px; }
.dev-lead    { margin-bottom: 6px; font-size: 13px; color: #555; }
.dev-sec-h   { font-size: 14px; color: #7a8694; font-weight: 600; }
.dev-note    { font-size: 12.5px; color: #48566a; }
.dev-muted   { font-size: 12px; color: #9aa6b5; }
.dev-err     { color: #c0392b; }
.dev-row-ac  { display: flex; align-items: center; gap: 4px; }
.dev-row-end { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.dev-chip    { background: #fff; border: 1px solid #d6e3f5; border-radius: 4px; padding: 2px 8px; }
.dev-card    { background: #f7f9fc; border: 1px solid #e1e7f0; border-radius: 8px; padding: 12px; display: grid; gap: 12px; }
/* .pg-note: era estilo inline repetido nos playgrounds do Manual; agora definido aqui */
.pg-note     { font-size: 12.5px; color: #7a8694; margin: 4px 0 8px; }

/* ── Development.js — extração de estilos repetidos (item 18, fatia 2) ──── */
.u-tal { text-align: left; }
.dev-cell { padding: 6px 4px; }
.dev-row-6 { display: flex; gap: 6px; align-items: center; }
.u-flex1 { flex: 1; }
.dev-meta { font-size: 12px; color: #7a8694; }
.u-c-muted { color: #9aa6b5; }
.dev-muted2 { font-size: 12.5px; color: #9aa6b5; }
.u-mw240 { min-width: 240px; }
.dev-cell-r { padding: 6px 4px; text-align: right; }
.u-mr16 { margin-right: 16px; }
.u-mxw760 { max-width: 760px; }
.u-flex1-min0 { flex: 1; min-width: 0; }
.dev-fixed210 { flex: none; width: 210px; }
.dev-row-wrap10 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.dev-h-page { margin: 0; font-size: 22px; color: #1f2d3d; }
.dev-muted13 { font-size: 13px; color: #9aa6b5; }
.dev-note13 { font-size: 13px; color: #48566a; }
.dev-preview-box { max-width: 440px; border: 1px solid #dde3ec; border-radius: 6px; background: #fff; display: block; }
.u-nowrap { white-space: nowrap; }
.u-mb10 { margin-bottom: 10px; }
.dev-input-15 { font-size: 15px; padding: 4px 6px; }
.dev-note-row5 { font-size: 12.5px; color: #48566a; display: flex; align-items: center; gap: 5px; }
.u-fw6 { font-weight: 600; }
.dev-box { border: 1px solid #e1e7f0; border-radius: 6px; background: #fff; }
.dev-input-14 { font-size: 14px; padding: 3px 6px; }
.dev-dim13 { color: #888; font-size: 13px; }
.u-mxw520 { max-width: 520px; }
.dev-row-wrap10b { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.dev-empty { color: #9aa6b5; font-size: 13px; padding: 20px; text-align: center; }
.dev-flabel13 { font-size: 13px; color: #555; margin-bottom: 4px; }
.dev-dim13-p { color: #888; font-size: 13px; padding: 6px; }
.dev-faint { font-size: 12px; color: #aab2c0; }
.u-fs13 { font-size: 13px; }
.dev-dim13-p6 { padding: 6px; color: #888; font-size: 13px; }
.dev-ok-box { background: #eafaf0; border: 1px solid #b6e2c6; border-radius: 6px; padding: 10px; color: #1e7e34; }
.dev-meta-mt { font-size: 12px; color: #7a8694; margin-top: 6px; }
.dev-sublabel { font-size: 13px; color: #7a8694; margin-bottom: 4px; }
.u-mw220 { min-width: 220px; }
.dev-inline-ml { margin-left: 6px; width: auto; display: inline-block; }
.u-vam { vertical-align: middle; }
.dev-muted-40 { font-size: 12px; color: #9aa6b5; min-width: 40px; }
.dev-note14 { font-size: 14px; color: #48566a; }
.u-tac { text-align: center; }
.dev-input-full { width: 100%; font-size: 15px; }
.dev-note15 { font-size: 15px; color: #48566a; }
.dev-card-row { background: #f7f9fc; border: 1px solid #e1e7f0; border-radius: 8px; padding: 12px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.dev-sec-h-full { font-size: 14px; color: #7a8694; font-weight: 600; width: 100%; }
.dev-chips-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 4px 0 10px; }
.dev-note-foot { font-size: 12.5px; color: #48566a; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; width: 100%; border-top: 1px dashed #e1e7f0; padding-top: 8px; }
.dev-flabel-6 { font-size: 14px; color: #555; margin-bottom: 6px; }
.dev-grid-note { display: grid; gap: 4px; font-size: 13px; color: #48566a; }
.dev-clickrow { cursor: pointer; padding: 7px 10px; font-size: 13px; color: #48566a; user-select: none; }
.dev-code-out { margin: 0; padding: 10px; background: #1e2530; color: #e6edf3; border-radius: 0 0 6px 6px; font-size: 12.5px; white-space: pre-wrap; }
.u-mw200 { min-width: 200px; }
.dev-th { border: 1px solid #e1e7f0; padding: 4px 8px; background: #f2f5f9; text-align: left; }
.u-mw230 { min-width: 230px; }
.dev-row-wrap12 { display: flex; gap: 12px; flex-wrap: wrap; }
.dev-note13-mt { margin-top: 8px; font-size: 13px; color: #48566a; }
.dev-cell-r120 { padding: 6px 4px; text-align: right; width: 120px; }
.u-bb { border-bottom: 1px solid #eee; }
.dev-row-base8 { display: flex; gap: 8px; align-items: baseline; }

/* ── Development.js — extração da cauda única (item 18, fatia 3; 1 uso cada, pixel-idêntico) ──── */
.dev-dflex-aicenter-g14px { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dev-m10px06px-fs13px-c555 { margin: 10px 0 6px; font-size: 13px; color: #555; }
.dev-c9aa6b5-fs12px { color: #9aa6b5; font-size: 12px; }
.dev-mt10px { margin-top: 10px; }
.dev-bgfff8e1-bl4pxsolidf5-p8px12px { background: #fff8e1; border-left: 4px solid #f5b041; padding: 8px 12px; margin-bottom: 12px; font-size: 13px; color: #7a5500; }
.dev-bd1pxsoliddd-br6px-p10px { border: 1px solid #ddd; border-radius: 6px; padding: 10px; background: #fafafa; }
.dev-mt14px { margin-top: 14px; }
.dev-mt12px { margin-top: 12px; }
.dev-bgfff8e1-bl4pxsolidf5-p8px12px-2 { background: #fff8e1; border-left: 4px solid #f5b041; padding: 8px 12px; margin-bottom: 16px; font-size: 13px; color: #7a5500; }
.dev-fw600-fs13px-mb12px { font-weight: 600; font-size: 13px; margin-bottom: 12px; }
.dev-fs13px-c555-mb10px { font-size: 13px; color: #555; margin-bottom: 10px; line-height: 1.6; }
.dev-dnone-mb12px-fs12px { display: none; margin-bottom: 12px; font-size: 12px; background: #f8f8f8; border: 1px solid #ddd; border-radius: 6px; padding: 10px 14px; line-height: 1.7; }
.dev-caaa-fs12px-mt4px { color: #aaa; font-size: 12px; margin-top: 4px; display: none; }
.dev-mt4px-fs15px-c1a4d7a { margin-top: 4px; font-size: 15px; color: #1a4d7a; }
.dev-caaa-fs12px-mt10px { color: #aaa; font-size: 12px; margin-top: 10px; }
.dev-mxw520px-bt1pxsolide5-pt12px { max-width: 520px; border-top: 1px solid #e5e9ef; padding-top: 12px; }
.dev-dflex-g8px-fwrwrap { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dev-fs13px-c555 { font-size: 13px; color: #555; }
.dev-caaa-fs12px-mt8px { color: #aaa; font-size: 12px; margin-top: 8px; }
.dev-mb14px { margin-bottom: 14px; }
.dev-m4px02px { margin: 4px 0 2px; }
.dev-m0012px { margin: 0 0 12px; }
.dev-dflex-g18px-aiflexstart { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.dev-flex00480px-mxw100 { flex: 0 0 480px; max-width: 100%; }
.dev-flex00auto-mnw150px { flex: 0 0 auto; min-width: 150px; }
.dev-dflex-fdcolumn-g9px { display: flex; flex-direction: column; gap: 9px; margin-top: 6px; }
.dev-mt14px-dflex-g10px { margin-top: 14px; display: flex; gap: 10px; align-items: center; }
.dev-mt10px-dflex-g10px { margin-top: 10px; display: flex; gap: 10px; align-items: center; }
.dev-mb22px { margin-bottom: 22px; }
.dev-dgrid-gtcrepeatauto-g12px { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 12px; align-items: end; }
.dev-dcontents { display: contents; }
.dev-dnone { display: none; }
.dev-gri11 { grid-column: 1/-1; }
.dev-mt14px-dflex-g10px-2 { margin-top: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dev-fs12px-c9aa6b5-mt8px { font-size: 12px; color: #9aa6b5; margin-top: 8px; }
.dev-fs12px-c7a8694-dflex { font-size: 12px; color: #7a8694; display: flex; align-items: center; gap: 6px; margin-left: auto; }
.dev-dgrid-gtcrepeatauto-g10px { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 10px; max-height: 540px; overflow: auto; padding: 6px; border: 1px solid #e1e7f0; border-radius: 8px; background: #fafbfd; }
.dev-gri11-c9aa6b5-fs13px { grid-column: 1/-1; color: #9aa6b5; font-size: 13px; padding: 20px; text-align: center; }
.dev-mt22px { margin-top: 22px; }
.dev-fs125px-c8a6d00-bgfff8e6 { font-size: 12.5px; color: #8a6d00; background: #fff8e6; border: 1px solid #f0d98a; border-radius: 6px; padding: 8px 10px; margin: 0 0 12px; }
.dev-fs125px-c5a6b7d { font-size: 12.5px; color: #5a6b7d; }
.dev-ml4px { margin-left: 4px; }
.dev-fs125px-c2c7be5-fw600 { font-size: 12.5px; color: #2c7be5; font-weight: 600; }
.dev-mxh620px-ovauto-bd1pxsolide1 { max-height: 620px; overflow: auto; border: 1px solid #e1e7f0; border-radius: 8px; background: #fafbfd; }
.dev-dnone-mt10px { display: none; margin-top: 10px; }
.dev-w100-ffmonospace-fs12px { width: 100%; font-family: monospace; font-size: 12px; }
.dev-bgfff-br10px-wmin560px92 { background: #fff; border-radius: 10px; width: min(560px,92vw); max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 18px 50px rgba(0,0,0,.3); }
.dev-p12px16px-bb1pxsolide6-dflex { padding: 12px 16px; border-bottom: 1px solid #e6ebf2; display: flex; align-items: center; gap: 10px; }
.dev-c1f2d3d { color: #1f2d3d; }
.dev-fs12px-c8893a3-flex1 { font-size: 12px; color: #8893a3; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-ovauto-flex1-mnh160px { overflow: auto; flex: 1; min-height: 160px; padding: 4px 0; }
.dev-p10px16px-bt1pxsolide6-dflex { padding: 10px 16px; border-top: 1px solid #e6ebf2; display: flex; gap: 8px; justify-content: flex-end; }
.dev-c888-fs13px-p8px16px { color: #888; font-size: 13px; padding: 8px 16px; }
.dev-p5px16px-curpointer-c4a90d9 { padding: 5px 16px; cursor: pointer; color: #4a90d9; }
.dev-p5px16px-curpointer { padding: 5px 16px; cursor: pointer; }
.dev-p5px16px-c6b7787-fs13px { padding: 5px 16px; color: #6b7787; font-size: 13px; }
.dev-p8px16px-c888-fs13px { padding: 8px 16px; color: #888; font-size: 13px; }
.dev-cc0392b-fs13px-p8px16px { color: #c0392b; font-size: 13px; padding: 8px 16px; }
.dev-gri11-c9aa6b5-fs13px-2 { grid-column: 1/-1; color: #9aa6b5; font-size: 13px; padding: 18px; text-align: center; }
.dev-w38px-h38px-objcontain { width: 38px; height: 38px; object-fit: contain; border-radius: 5px; background: #fff; }
.dev-w38px-h38px-dinlineflex { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; color: #cbd4df; font-size: 18px; border: 1px dashed #d6dee8; border-radius: 5px; }
.dev-dflex-g10px-aicenter { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-bottom: 1px solid #eef2f7; }
.dev-fsh0 { flex-shrink: 0; }
.dev-w200px-fsh0-fs125px { width: 200px; flex-shrink: 0; font-size: 12.5px; color: #2c3e50; }
.dev-w150px-fsh0-fs12px { width: 150px; flex-shrink: 0; font-size: 12px; padding: 4px 8px; }
.dev-dflex-g6px-fwrnowrap { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; flex: 1; }
.dev-fs115px-cb3bcc8-p4px { font-size: 11.5px; color: #b3bcc8; padding: 4px; }
.dev-cc0392b-fs13px-p20px { color: #c0392b; font-size: 13px; padding: 20px; text-align: center; }
.dev-dgrid-g14px-mxw880px { display: grid; gap: 14px; max-width: 880px; }
.dev-bgeef5ff-bl4pxsolid4a-p8px12px { background: #eef5ff; border-left: 4px solid #4a90d9; padding: 8px 12px; font-size: 13px; color: #2c4a6b; }
.dev-fs13px-c2c4a6b-mb6px { font-size: 13px; color: #2c4a6b; margin-bottom: 6px; word-break: break-all; }
.dev-bd1pxsoliddd-br6px-bgfafafa { border: 1px solid #ddd; border-radius: 6px; background: #fafafa; max-height: 280px; overflow: auto; padding: 6px; }
.dev-dflex-g6px-fwrwrap { display: flex; gap: 6px; flex-wrap: wrap; min-height: 24px; }
.dev-dgrid-g10px-mxw640px { display: grid; gap: 10px; max-width: 640px; }
.dev-dflex-g18px-fwrwrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: 13px; color: #48566a; }
.dev-fs13px-p2px4px { font-size: 13px; padding: 2px 4px; }
.dev-p4px8px-curpointer-c4a90d9 { padding: 4px 8px; cursor: pointer; color: #4a90d9; }
.dev-p4px8px-curpointer { padding: 4px 8px; cursor: pointer; }
.dev-caab2c0-fs11px { color: #aab2c0; font-size: 11px; }
.dev-p4px8px-dflex-aicenter { padding: 4px 8px; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.dev-cc0392b-fs13px-p6px { color: #c0392b; font-size: 13px; padding: 6px; }
.dev-bge7eef7-bd1pxsolidc9-br10px { background: #e7eef7; border: 1px solid #c9d6e6; border-radius: 10px; padding: 2px 8px; font-size: 12px; }
.dev-texnone-cc0392b { text-decoration: none; color: #c0392b; }
.dev-bgfff8e1-bl4pxsolidf5-p10px { background: #fff8e1; border-left: 4px solid #f5b041; padding: 10px; color: #7a5500; }
.dev-c48566a-fs13px { color: #48566a; font-size: 13px; }
.dev-bgfdecea-bd1pxsolidf5-br6px { background: #fdecea; border: 1px solid #f5c6c0; border-radius: 6px; padding: 10px; color: #c0392b; }
.dev-mxw320px { max-width: 320px; }
.dev-m2px014px-c48566a-fs16px { margin: 2px 0 14px; color: #48566a; font-size: 16px; line-height: 1.5; }
.dev-m4px012px { margin: 4px 0 12px; }
.dev-fs13px-c7a8694-m6px04px { font-size: 13px; color: #7a8694; margin: 6px 0 4px; }
.dev-fs13px-c7a8694-m14px04px { font-size: 13px; color: #7a8694; margin: 14px 0 4px; }
.dev-w100-fs155px-mb10px { width: 100%; font-size: 15.5px; margin-bottom: 10px; }
.dev-mt12px-bd1pxsolide1-br8px { margin-top: 12px; border: 1px solid #e1e7f0; border-radius: 8px; background: #fbfcfe; }
.dev-curpointer-p8px12px-fs13px { cursor: pointer; padding: 8px 12px; font-size: 13px; color: #48566a; user-select: none; }
.dev-m0-p12px-bg1e2530 { margin: 0; padding: 12px; background: #1e2530; color: #e6edf3; border-radius: 0 0 8px 8px; font-family: Consolas,'Courier New',monospace; font-size: 12.5px; line-height: 1.45; max-height: 420px; overflow: auto; white-space: pre; }
.dev-m30px014px-fs18px-c2c3e50 { margin: 30px 0 14px; font-size: 18px; color: #2c3e50; border-bottom: 2px solid #e6eaf0; padding-bottom: 6px; }
.dev-possticky-top28px-zin10 { position: sticky; top: -28px; z-index: 10; display: flex; align-items: center; gap: 12px; background: #fff; border-bottom: 2px solid #e6eaf0; padding: 40px 28px 12px; margin: -20px -28px 16px; box-shadow: 0 3px 8px rgba(0,0,0,.06); }
.dev-fw700-fs19px-c2c3e50 { font-weight: 700; font-size: 19px; color: #2c3e50; }
.dev-mnw260px { min-width: 260px; }
.dev-fs125px-c7a8694 { font-size: 12.5px; color: #7a8694; }
.dev-bgf4f8ff-bd1pxsolidd6-bl4pxsolid4a { background: #f4f8ff; border: 1px solid #d6e3f5; border-left: 4px solid #4a78c0; border-radius: 6px; padding: 12px 16px; margin-bottom: 14px; font-size: 13px; color: #3a4a5e; line-height: 1.5; }
.dev-fw700-c2c3e50-mb4px { font-weight: 700; color: #2c3e50; margin-bottom: 4px; }
.dev-dflex-fwrwrap-g6px { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dev-dflex-fwrwrap-aicenter { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 10px; }
.dev-c9aa6b5-fs13px-p10px { color: #9aa6b5; font-size: 13px; padding: 10px; }
.dev-fs12px-c9aa6b5-mt6px { font-size: 12px; color: #9aa6b5; margin-top: 6px; }
.dev-dinlineflex-aicenter-g5px { display: inline-flex; align-items: center; gap: 5px; }
.dev-mt10px-p10px12px-bd1pxsolide6 { margin-top: 10px; padding: 10px 12px; border: 1px solid #e6eaf0; border-radius: 8px; background: #fbfcfe; font-size: 12.5px; color: #48566a; line-height: 1.7; }
.dev-dflex-fwrwrap-g14px { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; align-items: center; }
.dev-c7a8694 { color: #7a8694; }
.dev-ovauto-mxh72vh-bd1pxsolide6 { overflow: auto; max-height: 72vh; border: 1px solid #e6eaf0; border-radius: 8px; padding: 12px; background: #fff; }
.dev-c9aa6b5-fs14px-p6px0 { color: #9aa6b5; font-size: 14px; padding: 6px 0; }
.dev-dflex-aicenter-g10px { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.dev-fs14px-c48566a-dinlineflex { font-size: 14px; color: #48566a; display: inline-flex; align-items: center; gap: 6px; }
.dev-c9aa6b5-fs14px { color: #9aa6b5; font-size: 14px; }
.dev-mb8px-bd1pxsolide6-br6px { margin-bottom: 8px; border: 1px solid #e6eaf0; border-radius: 6px; }
.dev-curpointer-p7px10px-fs15px { cursor: pointer; padding: 7px 10px; font-size: 15px; color: #2c3e50; font-weight: 600; user-select: none; background: #f7f9fc; border-radius: 6px; }
.dev-fw400-c9aa6b5-fs12px { font-weight: 400; color: #9aa6b5; font-size: 12px; }
.dev-w100-fs135px-m0 { width: 100%; font-size: 13.5px; margin: 0; }
.dev-ovauto-mxh70vh-bd1pxsolide6 { overflow: auto; max-height: 70vh; border: 1px solid #e6eaf0; border-radius: 8px; padding: 12px; background: #fff; margin-bottom: 10px; }
.dev-bd1pxsolide6-br8px { border: 1px solid #e6eaf0; border-radius: 8px; }
.dev-curpointer-p8px12px-fs14px { cursor: pointer; padding: 8px 12px; font-size: 14px; color: #48566a; font-weight: 600; user-select: none; }
.dev-p8px { padding: 8px; }
.dev-fs15px-c1a4d7a-bgfff { font-size: 15px; color: #1a4d7a; background: #fff; border: 1px solid #e1e7f0; border-radius: 6px; padding: 8px; min-height: 22px; }
.dev-flex1-mnw220px { flex: 1; min-width: 220px; }
.dev-c1e7e34 { color: #1e7e34; }
.dev-bgf7f9fc-bd1pxsolide1-br8px { background: #f7f9fc; border: 1px solid #e1e7f0; border-radius: 8px; padding: 12px; display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.dev-w90px { width: 90px; }
.dev-w72px { width: 72px; }
.dev-w130px { width: 130px; }
.dev-fs12px-c9aa6b5-w100 { font-size: 12px; color: #9aa6b5; width: 100%; }
.dev-m008px { margin: 0 0 8px; }
.dev-mxw620px-bd1pxsolide1-br8px { max-width: 620px; border: 1px solid #e1e7f0; border-radius: 8px; padding: 16px; background: #fff; }
.dev-mxw620px-bd1pxsolide1-br8px-2 { max-width: 620px; border: 1px solid #e1e7f0; border-radius: 8px; padding: 16px; background: #fff; min-height: 150px; }
.dev-p10px4px-c48566a-fs14px { padding: 10px 4px; color: #48566a; font-size: 14px; }
.dev-mxw260px-bg22304a-br8px { max-width: 260px; background: #22304a; border-radius: 8px; padding: 8px; }
.dev-bgf7f9fc-bd1pxsolide1-br8px-2 { background: #f7f9fc; border: 1px solid #e1e7f0; border-radius: 8px; padding: 12px; display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 10px; }
.dev-fs125px-c48566a-dflex { font-size: 12.5px; color: #48566a; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; width: 100%; border-top: 1px dashed #e1e7f0; padding-top: 8px; }
.dev-w56px { width: 56px; }
.dev-bd1pxdashedc-br8px-bgfff { border: 1px dashed #cdd6e3; border-radius: 8px; background: #fff; overflow: hidden; }
.dev-fs14px-c7a8694-fw600 { font-size: 14px; color: #7a8694; font-weight: 600; margin-bottom: 6px; }
.dev-w320px { width: 320px; }
.dev-dflex-g16px-fwrwrap { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.dev-curpointer-p7px10px-fs13px { cursor: pointer; padding: 7px 10px; font-size: 13px; color: #7a8694; }
.dev-m0-p10px-fs13px { margin: 0; padding: 10px; font-size: 13px; color: #48566a; max-height: 240px; overflow: auto; white-space: pre-wrap; }
.dev-bd1pxsolide1-p4px8px-ffconsolasmo { border: 1px solid #e1e7f0; padding: 4px 8px; font-family: Consolas,monospace; color: #1f6feb; white-space: nowrap; }
.dev-bd1pxsolide1-p4px8px { border: 1px solid #e1e7f0; padding: 4px 8px; }
.dev-bcolcollapse-fs13px-w100 { border-collapse: collapse; font-size: 13px; width: 100%; }
.dev-p6px { padding: 6px; }
.dev-mt8px-fs125px-c9aa6b5 { margin-top: 8px; font-size: 12.5px; color: #9aa6b5; }
.dev-m4px00-bgfff-bd1pxdashedc { margin: 4px 0 0; background: #fff; border: 1px dashed #cdd6e2; border-radius: 6px; padding: 8px; font-size: 12.5px; color: #48566a; white-space: pre-wrap; }
.dev-dflex-aicenter-g5px { display: flex; align-items: center; gap: 5px; cursor: pointer; font-size: 13px; }
.dev-fs11px-caab2c0 { font-size: 11px; color: #aab2c0; }
.dev-bgf7f9fc-bd1pxsolide1-br8px-3 { background: #f7f9fc; border: 1px solid #e1e7f0; border-radius: 8px; padding: 12px; display: grid; gap: 14px; }
.dev-fs13px-c48566a-dflex { font-size: 13px; color: #48566a; display: flex; align-items: center; gap: 6px; cursor: pointer; margin-bottom: 5px; }
.dev-dflex-g24px-fwrwrap { display: flex; gap: 24px; flex-wrap: wrap; }
.dev-fs11px-caab2c0-mt3px { font-size: 11px; color: #aab2c0; margin-top: 3px; }
.dev-mt8px-w100-fs14px { margin-top: 8px; width: 100%; font-size: 14px; }
.dev-fs13px-c48566a-mt5px { font-size: 13px; color: #48566a; margin-top: 5px; }
.dev-h22px-vamiddle-bd1pxsolidd7 { height: 22px; vertical-align: middle; border: 1px solid #d7dde6; border-radius: 2px; background: #f3f5f9; cursor: zoom-in; }
.dev-cbbb { color: #bbb; }
.dev-mxw380px { max-width: 380px; }
.dev-mt8px-dflex-g6px { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.dev-dflex-g14px-aicenter { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.dev-cc0392b-fs13px { color: #c0392b; font-size: 13px; }
.dev-w100-bcolcollapse-fs13px { width: 100%; border-collapse: collapse; font-size: 13px; }
.dev-bb1pxsoliddd-taleft { border-bottom: 1px solid #ddd; text-align: left; }
.dev-p6px4px-w30px { padding: 6px 4px; width: 30px; }
.dev-mxw560px { max-width: 560px; }
.dev-bgfdecea-bl4pxsolide7-p10px14px { background: #fdecea; border-left: 4px solid #e74c3c; padding: 10px 14px; margin-bottom: 12px; color: #7a1f17; }
.dev-fs13px-mb10px { font-size: 13px; margin-bottom: 10px; }
.dev-fs13px-mb14px { font-size: 13px; margin-bottom: 14px; }
.dev-fs13px-mb6px { font-size: 13px; margin-bottom: 6px; }
.dev-w100 { width: 100%; }
.dev-mxw420px { max-width: 420px; }
.dev-fs14px { font-size: 14px; }
.dev-c27ae60 { color: #27ae60; }

/* ── Imoveis.js — extração de estilos inline (item 18; prefixo imv) ──── */
.imv-h36px-w36px-va9px { height: 36px; width: 36px; vertical-align: -9px; }
.imv-cb00 { color: #b00; }

/* ── Login.js — extração de estilos inline (item 18; prefixo login) ──── */
.login-fs30px-fw700-let05 { font-size: 30px; font-weight: 700; letter-spacing: -0.5; line-height: 1; margin-top: 4px; }
.login-c1a1a1a { color: #1a1a1a; }
.login-cc9a227 { color: #c9a227; }

/* ── Dashboard.js — extração de estilos inline (item 18; prefixo dash) ──── */
.dash-dgrid-g16px { display: grid; gap: 16px; }
.dash-bgf7f9fc-bd1pxsolide1-br8px { background: #f7f9fc; border: 1px solid #e1e7f0; border-radius: 8px; padding: 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.dash-m004px-fs16px { margin: 0 0 4px; font-size: 16px; }
.dash-m0-c667-fs14px { margin: 0; color: #667; font-size: 14px; }

/* ── Assistants.js — extração de estilos inline (item 18; prefixo aux) ──── */
.aux-mnw0 { min-width: 0; }
.aux-bd1pxsolide2-br8px-p9px14px8px { border: 1px solid #e2e8f2; border-radius: 8px; padding: 9px 14px 8px; background: #fafbfc; display: flex; align-items: center; }

/* ── Preferences.js — extração de estilos inline (item 18; prefixo pref) ──── */
.pref-dflex-aicenter-g8px { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; padding: 8px 10px; background: #fff8e6; border: 1px solid #f0d98a; border-radius: 6px; }
.pref-fs125px-c8a6d00 { font-size: 12.5px; color: #8a6d00; }
.pref-fs125px-c8a6d00-fw600 { font-size: 12.5px; color: #8a6d00; font-weight: 600; }
.pref-m6px012px { margin: -6px 0 12px; }
.pref-c888-fs13px-m4px010px { color: #888; font-size: 13px; margin: 4px 0 10px; }
.pref-dflex-fdcolumn-g14px { display: flex; flex-direction: column; gap: 14px; min-width: 300px; max-width: 420px; }
.pref-m0 { margin: 0; }
.pref-mt4px { margin-top: 4px; }
.pref-c888-fs12px-m0 { color: #888; font-size: 12px; margin: 0; }

/* ── Utilities.js — extração de estilos inline (item 18; prefixo util) ──── */
.util-fs12px-c555-texnone { font-size: 12px; color: #555; text-decoration: none; margin-top: 6px; display: inline-block; }
.util-mxw810px { max-width: 810px; }
.util-mt6px-fs13px-c555 { margin-top: 6px; font-size: 13px; color: #555; min-height: 18px; }
.util-flex1-mnw340px { flex: 1; min-width: 340px; }
.util-c888-fs12px-mt4px { color: #888; font-size: 12px; margin-top: 4px; }
.util-jcflexend-mt6px { justify-content: flex-end; margin-top: 6px; }
.util-c888-fs12px-m0010px0 { color: #888; font-size: 12px; margin: 0 0 10px 0; }
.util-mt18px { margin-top: 18px; }
.util-mt14px-dnone { margin-top: 14px; display: none; }
.util-dflex-aibaseline-jcspacebetwe { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.util-dflex-g6px-fs12px { display: flex; gap: 6px; font-size: 12px; }
.util-c888-fs12px-m0012px { color: #888; font-size: 12px; margin: 0 0 12px; }
.util-dflex-fwrwrap-g8px { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.util-m0-p10px-bg0e1726 { margin: 0; padding: 10px; background: #0e1726; color: #d6e2f0; border-radius: 6px; font-size: 12px; line-height: 1.5; max-height: 340px; overflow: auto; white-space: pre-wrap; word-break: break-word; }

/* ── Pessoas.js — extração de estilos inline (item 18; prefixo pes) ──── */
.pes-mt6px-dinlinebloc { margin-top: 6px; display: inline-block; }
.pes-dflex-g16px-aiflexstart { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.pes-bd1pxsolide2-br8px-p10px14px { border: 1px solid #e2e8f2; border-radius: 8px; padding: 10px 14px; background: #fafbfc; }
.pes-dgrid-gtcautoauto-g8px20px { display: grid; grid-template-columns: auto auto; gap: 8px 20px; }
.pes-caaa { color: #aaa; }
.pes-w34px-tacenter { width: 34px; text-align: center; }
.pes-fs10px-c8a6d00-bgfdf3d6 { font-size: 10px; color: #8a6d00; background: #fdf3d6; border: 1px solid #f0d98a; border-radius: 8px; padding: 0 5px; }
.pes-c7a8694-m008px { color: #7a8694; margin: 0 0 8px; }
.pes-w100-fs14px { width: 100%; font-size: 14px; }
.pes-tacenter-c7a8694 { text-align: center; color: #7a8694; }
.pes-taright { text-align: right; }
.pes-caaa-p8px { color: #aaa; padding: 8px; }
.pes-caaa-p12px { color: #aaa; padding: 12px; }
.pes-dflex-g6px-aicenter { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.pes-c667-fs13px-p6px2px10px { color: #667; font-size: 13px; padding: 6px 2px 10px; }
.pes-bt1pxsolide6-mt10px-pt10px { border-top: 1px solid #e6ebf2; margin-top: 10px; padding-top: 10px; }
.pes-fw600-fs13px-mb6px { font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.pes-caaa-fs13px-p10px2px { color: #aaa; font-size: 13px; padding: 10px 2px; }
.pes-ml5px-p1px6px-br8px { margin-left: 5px; padding: 1px 6px; border-radius: 8px; font-size: 10px; font-weight: 600; background: #eaf7ef; color: #1a7a40; border: 1px solid #a8dfc0; }
.pes-cccc-let2px-fs11px { color: #ccc; letter-spacing: 2px; font-size: 11px; }
.pes-w100-mnw0 { width: 100%; min-width: 0; }
.pes-w33 { width: 33%; }
.pes-w170px { width: 170px; }
.pes-w92px { width: 92px; }
.pes-taleft-fs13px-mb24px { text-align: left; font-size: 13px; margin-bottom: 24px; width: 100%; }
.pes-m0012px-pl18px-lh17 { margin: 0 0 12px; padding-left: 18px; line-height: 1.7; }
.pes-bgfff8e6-bd1pxsolidf0-br6px { background: #fff8e6; border: 1px solid #f0d49a; border-radius: 6px; padding: 8px 10px; font-size: 12px; color: #8a6516; margin-bottom: 10px; }
.pes-dblock-w100-p6px0 { display: block; width: 100%; padding: 6px 0; }
.pes-dnone-mt12px { display: none; margin-top: 12px; }
.pes-fs12px-c555-mb5px { font-size: 12px; color: #555; margin-bottom: 5px; }
.pes-bge8edf2-br4px-h8px { background: #e8edf2; border-radius: 4px; height: 8px; overflow: hidden; }
.pes-h100-w0-bglineargrad { height: 100%; width: 0%; background: linear-gradient(90deg,#3498db,#2ecc71); border-radius: 4px; transition: width 0.3s ease; }
.pes-cc0392b-fs12px { color: #c0392b; font-size: 12px; }
.pes-c999-fs11px { color: #999; font-size: 11px; }
.pes-bgf0f7ff-bd1pxsolidb3-br6px { background: #f0f7ff; border: 1px solid #b3d4f5; border-radius: 6px; padding: 10px 12px; font-size: 12px; }
.pes-m6px00-pl16px-c333 { margin: 6px 0 0; padding-left: 16px; color: #333; }
.pes-c888-mt4px { color: #888; margin-top: 4px; }
.pes-fs12px-c555-p8px0 { font-size: 12px; color: #555; padding: 8px 0; }
.pes-bgf7f9fc-bd1pxsolidd8-br6px { background: #f7f9fc; border: 1px solid #d8e0ec; border-radius: 6px; padding: 10px 12px; font-size: 12px; }
.pes-dflex-jcspacebetwe-aicenter { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.pes-fs11px-c888 { font-size: 11px; color: #888; }
.pes-fw600-fs13px { font-weight: 600; font-size: 13px; }
.pes-c555-mt3px { color: #555; margin-top: 3px; }
.pes-c555 { color: #555; }
.pes-mt6px { margin-top: 6px; }
.pes-dflex-g6px-fwrwrap { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.pes-bgeaf7ef-c1a7a40-bd1pxsolida8 { background: #eaf7ef; color: #1a7a40; border: 1px solid #a8dfc0; border-radius: 8px; padding: 1px 8px; font-weight: 600; }
.pes-bgfdf3e6-ca05a16-bd1pxsolidf0 { background: #fdf3e6; color: #a05a16; border: 1px solid #f0cfa0; border-radius: 8px; padding: 1px 8px; font-weight: 600; }
.pes-m4px00-pl16px-ca05a16 { margin: 4px 0 0; padding-left: 16px; color: #a05a16; }

/* ── AddressInput.js — extração de estilos inline (item 18; prefixo c-addres) ──── */
.c-addres-dflex-fdcolumn-g8px { display: flex; flex-direction: column; gap: 8px; }
.c-addres-dflex-g8px-aiflexend { display: flex; gap: 8px; align-items: flex-end; }
.c-addres-w108px { width: 108px; }
.c-addres-dflex-fdcolumn-g8px-2 { display: flex; flex-direction: column; gap: 8px; transition: opacity .15s; }
.c-addres-dflex-fwrwrap-g8px { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.c-addres-w84px { width: 84px; }
.c-addres-w96px { width: 96px; }
.c-addres-alicenter-c9aa6b5-fs16px { align-self: center; color: #9aa6b5; font-size: 16px; padding: 0 2px 6px; }
.c-addres-w128px { width: 128px; }
.c-addres-w205px { width: 205px; }
.c-addres-mnh36px-fs125px-c48566a { min-height: 36px; font-size: 12.5px; color: #48566a; line-height: 1.45; }
.c-addres-fs12px-c9aa6b5-mnh16px { font-size: 12px; color: #9aa6b5; min-height: 16px; }
.c-addres-fs12px-p3px10px { font-size: 12px; padding: 3px 10px; }
.c-addres-dnone-posfixed-z4000 { display: none; position: fixed; z-index: 4000; top: 96px; left: 50%; transform: translateX(-50%); width: 600px; max-width: 96vw; border: 1px solid #cdd6e2; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 16px 48px rgba(20,30,50,.28); }
.c-addres-dflex-jcspacebetwe-aicenter { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 9px; background: #f2f5f9; border-bottom: 1px solid #e1e7f0; cursor: move; user-select: none; }
.c-addres-dflex-aicenter-g7px { display: flex; align-items: center; gap: 7px; min-width: 0; }
.c-addres-fs125px-c48566a-ovhidden { font-size: 12.5px; color: #48566a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-addres-dflex-g6px-flexnone { display: flex; gap: 6px; flex: none; }
.c-addres-fs12px-p2px8px { font-size: 12px; padding: 2px 8px; }
.c-addres-dblock-w100-h400px { display: block; width: 100%; height: 400px; border: 0; }
.c-addres-c8a96a3-fs115px-mt2px { color: #8a96a3; font-size: 11.5px; margin-top: 2px; }

/* ── DocumentImageExtractor.js — extração de estilos inline (item 18; prefixo c-docume) ──── */
.c-docume-w100-mxw560px-fs13px { width: 100%; max-width: 560px; font-size: 13px; }
.c-docume-dflex-g14px-fwrwrap { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: #48566a; }
.c-docume-dflex-aicenter-g5px { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.c-docume-dflex-g8px-fwrwrap { display: flex; gap: 8px; flex-wrap: wrap; }
.c-docume-wsnowrap-c7a8694 { white-space: nowrap; color: #7a8694; }
.c-docume-dflex-g18px-fwrwrap { display: flex; gap: 18px; flex-wrap: wrap; }
.c-docume-flex1-mnw240px { flex: 1; min-width: 240px; }
.c-docume-mt8px-fs13px { margin-top: 8px; font-size: 13px; }
.c-docume-mt4px-fs12px-c1e7e34 { margin-top: 4px; font-size: 12px; color: #1e7e34; }
.c-docume-mt4px-fs12px-cc0392b { margin-top: 4px; font-size: 12px; color: #c0392b; }
.c-docume-mt4px-fs11px-c9aa6b5 { margin-top: 4px; font-size: 11px; color: #9aa6b5; }
.c-docume-tacenter-fs12px-c7a8694 { text-align: center; font-size: 12px; color: #7a8694; }
.c-docume-mxh120px-bd1pxsolidd7-br4px { max-height: 120px; border: 1px solid #d7dde6; border-radius: 4px; }
.c-docume-mxh80px-bd1pxsolidd7-br4px { max-height: 80px; border: 1px solid #d7dde6; border-radius: 4px; background: #fff; }
.c-docume-mt8px { margin-top: 8px; }
.c-docume-mxw100-mxh420px-bd1pxsolide1 { max-width: 100%; max-height: 420px; border: 1px solid #e1e7f0; border-radius: 6px; }

/* ── SheetImportModal.js — extração de estilos inline (item 18; prefixo c-sheeti) ──── */
.c-sheeti-c888-mt5px { color: #888; margin-top: 5px; }
.c-sheeti-caaa-fw400 { color: #aaa; font-weight: 400; }
.c-sheeti-dflex-jcspacebetwe-aicenter { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: #f5c6cb; }
.c-sheeti-c721c24-fw600-fs13px { color: #721c24; font-weight: 600; font-size: 13px; }
.c-sheeti-fs12px-p2px8px-curpointer { font-size: 12px; padding: 2px 8px; cursor: pointer; }
.c-sheeti-m0-p10px12px-c721c24 { margin: 0; padding: 10px 12px; color: #721c24; font-size: 12px; white-space: pre-wrap; word-break: break-word; font-family: monospace; }

/* ── IncrementalDrawer.js — extração de estilos inline (item 18; prefixo c-increm) ──── */
.c-increm-dflex-jccenter-mb14px { display: flex; justify-content: center; margin-bottom: 14px; }
.c-increm-m008px-fs13px-c33415a { margin: 0 0 8px; font-size: 13px; color: #33415a; }
.c-increm-bt1pxsolide6-m14px0 { border-top: 1px solid #e6ecf5; margin: 14px 0; }
.c-increm-m0010px-c667-fs125px { margin: 0 0 10px; color: #667; font-size: 12.5px; }
.c-increm-mt10px-fs13px-mnh18px { margin-top: 10px; font-size: 13px; min-height: 18px; color: #48566a; }
.c-increm-mt10px-taright { margin-top: 10px; text-align: right; }

/* ── RecordViewer.js — extração de estilos inline (item 18; prefixo c-record) ──── */
.c-record-posrelative-mxw580px-w96vw { position: relative; max-width: 580px; width: 96vw; background: var(--white); border-radius: 14px; border: 2px solid #e0a800; box-shadow: 0 0 0 4px rgba(224,168,0,0.16),0 18px 50px rgba(0,0,0,0.28); overflow: hidden; }
.c-record-dflex-aicenter-g9px { display: flex; align-items: center; gap: 9px; padding: 11px 14px 11px 16px; background: #fff8e6; border-bottom: 1px solid #f0d089; }
.c-record-fs16px { font-size: 16px; }
.c-record-bge0a800-cfff-fs10px { background: #e0a800; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 9px; border-radius: 10px; white-space: nowrap; }
.c-record-flex1-mnw0-fs12px { flex: 1; min-width: 0; font-size: 12px; color: #a98a3e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-record-p18px20px-mxh76vh-ovauto { padding: 18px 20px; max-height: 76vh; overflow: auto; }

/* ── ExportModal.js — extração de estilos inline (item 18; prefixo c-export) ──── */
.c-export-fs12px-c888-mt12px { font-size: 12px; color: #888; margin-top: 12px; }
.c-export-bgd9e1f2-fwbold { background: #d9e1f2; font-weight: bold; }
.c-export-bgf2f2f2 { background: #f2f2f2; }
.c-export-mso { mso-number-format: '@'; }
.c-export-bcolcollapse { border-collapse: collapse; }

/* ── DevActionPanel.js — extração de estilos inline (item 18; prefixo c-devact) ──── */
.c-devact-dnone-fs12px-p3px10px { display: none; font-size: 12px; padding: 3px 10px; }
.c-devact-m8px02px { margin: 8px 0 2px; }
.c-devact-m0-fs12px-lh145 { margin: 0; font-size: 12px; line-height: 1.45; white-space: pre-wrap; color: #48566a; }

/* ── Drawer.js — extração de estilos inline (item 18; prefixo c-drawer) ──── */
.c-drawer-curmove { cursor: move; }

/* ── ListPage.js — extração de estilos inline (item 18; prefixo c-listpa) ──── */
.c-listpa-caaa-fs12px { color: #aaa; font-size: 12px; }

/* ── CepInput.js — extração de estilos inline (item 18; prefixo c-cepinp) ──── */
.c-cepinp-w100px { width: 100px; }

/* ── CnpjInput.js — smart de CNPJ (autofill PJ) ──────────────────────────── */
.c-cnpjinp-w160px { width: 160px; }
.cnpj-status { font-size: 12.5px; color: #9aa6b5; min-height: 16px; }
.form-input.inp-ok  { border-color: #1e7e34; box-shadow: 0 0 0 2px rgba(30,126,52,.18); }
.form-input.inp-bad { border-color: #c0392b; box-shadow: 0 0 0 2px rgba(192,57,43,.15); }

/* ── GovSignButton.js — assinatura digital gov.br ────────────────────────── */
.govsign-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn-govbr { background: #1351b4; color: #fff; border: none; }
.btn-govbr:hover:not(:disabled) { background: #0c429c; }
.btn-govbr:disabled { opacity: .55; cursor: not-allowed; }
.govsign-ico { margin-right: 4px; }
.govsign-status { font-size: 12.5px; color: #9aa6b5; }

/* ── DeployPanel.js — smart declarativo de deploy ────────────────────────── */
.dpl-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dpl-content-lbl { margin: 10px 0 6px; font-size: 13px; color: #555; }

/* ── Sidebar.js — extração de estilos inline (item 18; prefixo c-sideba) ──── */
.c-sideba-w24px-h24px-br50 { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; display: block; }

/* ── FormRenderer.js — extração de estilos inline (item 18; prefixo c-formre) ──── */
.c-formre-va3px { vertical-align: -3px; }

/* ── imageZoom.js — extração de estilos inline (item 18; prefixo c-imgz) ──── */
.c-imgz-mxw90vw-mxh90vh-br10px { max-width: 90vw; max-height: 90vh; border-radius: 10px; box-shadow: 0 12px 48px rgba(0,0,0,0.5); background: #fff; }

/* slot transparente p/ montar componentes WRender sem alterar o layout flex */
.ti-slot { display: contents; }

/* ── Radio smart (espelha .wr-check) ───────────────────────────────────────── */
.wr-radio { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 13px; color: #44525f; user-select: none; }
.wr-radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.wr-radio-dot { width: 16px; height: 16px; border: 1.5px solid #b3c0cc; border-radius: 50%; background: #fff; flex: 0 0 auto; position: relative; transition: all .15s; }
.wr-radio input:checked + .wr-radio-dot { border-color: #2f8fd0; }
.wr-radio input:checked + .wr-radio-dot::after { content: ''; position: absolute; left: 3px; top: 3px; width: 8px; height: 8px; border-radius: 50%; background: #2f8fd0; }
.wr-radio input:focus + .wr-radio-dot { box-shadow: 0 0 0 2px rgba(47,143,208,.25); }
.wr-radio input:disabled + .wr-radio-dot { background: #eef1f4; border-color: #d4dbe1; }

/* icone a esquerda do titulo de pagina (cabecalho FormRenderer/PageShell) */
.page-icon { height: 36px; width: 36px; vertical-align: -9px; }

/* ── Anatomia de um modulo (Manual): mockup anotado da listagem + drawer ───── */
.anat-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 12px; }
.anat-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: #5a6b7b; margin-left: auto; }
.anat-legend .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; margin-right: 5px; }
.anat-legend .dot-ok  { border: 2px solid #2e9e6b; background: rgba(46,158,107,.12); }
.anat-legend .dot-raw { border: 2px dashed #c8881f; background: rgba(200,136,31,.12); }
.anat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 1100px) { .anat-grid { grid-template-columns: 1fr; } }
.anat-panel { border: 1px solid #e1e7ee; border-radius: 10px; background: #fff; overflow: hidden; }
.anat-panel-h { font-weight: 700; color: #2c3e50; font-size: 14px; padding: 8px 12px; background: #f4f8ff; border-bottom: 1px solid #e1e7ee; }
.anat-mock { padding: 14px; display: flex; flex-direction: column; gap: 9px; }
/* "regiao" do mockup: um bloco esquematico com anel + etiqueta do smart */
.anat-row { display: flex; align-items: center; gap: 8px; }
.anat-region { position: relative; border-radius: 8px; padding: 7px 10px; font-size: 12.5px; color: #34455a;
  background: #f7f9fc; flex: 1; min-height: 18px; }
.anat-ring-ok  { outline: 2px solid #2e9e6b; outline-offset: 1px; }
.anat-ring-raw { outline: 2px dashed #c8881f; outline-offset: 1px; }
.anat-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600;
  padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.anat-tag-ok  { background: #e4f5ec; color: #1f7a50; border: 1px solid #b7e3cb; }
.anat-tag-raw { background: #fbf0db; color: #9a6a12; border: 1px solid #ecd3a0; }
.anat-tag .num { font-size: 10px; opacity: .7; }
.anat-cols { display: flex; gap: 8px; }
.anat-cols .anat-region { flex: 1; }
.anat-mini { font-size: 11px; color: #8595a4; }
.anat-pill { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 6px; background: #eef3f9; color: #44566a; }
.anat-code { margin-top: 16px; }
.anat-code pre { margin: 0; padding: 13px 15px; background: #1e2530; color: #e6edf3; border-radius: 9px;
  font-size: 12.5px; line-height: 1.55; overflow: auto; max-height: 340px; }
.anat-code .hl-smart { color: #79c0ff; font-weight: 600; }
.anat-code .hl-cmt   { color: #8b98a5; font-style: italic; }
.anat-note { font-size: 12.5px; color: #5a6b7b; margin: 2px 0 6px; }

/* ── Opinião: botão + cortina de relato ─────────────────────────────────────── */
.btn-opiniao { white-space: nowrap; }
.opiniao-overlay { position: fixed; inset: 0; z-index: 1200; background: rgba(20,28,38,0); display: flex; justify-content: flex-end; transition: background .18s ease; }
.opiniao-overlay.is-open { background: rgba(20,28,38,.32); }
.opiniao-cortina { width: 420px; max-width: 92vw; height: 100%; background: #fff; box-shadow: -8px 0 28px rgba(0,0,0,.18);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .2s ease; }
.opiniao-overlay.is-open .opiniao-cortina { transform: translateX(0); }
.opiniao-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid #e6ebf0; }
.opiniao-h-title { font-weight: 700; color: #2c3e50; font-size: 16px; flex: 1; }
.opiniao-x { border: none; background: none; font-size: 22px; line-height: 1; color: #8595a4; cursor: pointer; padding: 0 4px; }
.opiniao-x:hover { color: #2c3e50; }
.opiniao-body { padding: 16px; flex: 1; overflow: auto; }
.opiniao-ctx { font-size: 13px; color: #5a6b7b; background: #f4f8ff; border: 1px solid #e1e7ee; border-radius: 8px; padding: 8px 11px; margin-bottom: 14px; }
.opiniao-label { display: block; font-size: 13px; font-weight: 600; color: #34455a; margin: 12px 0 5px; }
.opiniao-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 13px 16px; border-top: 1px solid #e6ebf0; }
/* Painel de opiniões SEMELHANTES (aviso de duplicata + apoiar) */
.opiniao-sim { margin-top: 14px; border: 1px solid #f0d9a8; background: #fffaf0; border-radius: 8px; padding: 10px 11px; }
.opiniao-sim-h { font-size: 12.5px; color: #8a6d2f; margin-bottom: 8px; }
.opiniao-sim-item { display: flex; align-items: flex-start; gap: 8px; padding: 7px 0; border-top: 1px dashed #efe2c4; }
.opiniao-sim-item:first-of-type { border-top: none; }
.opiniao-sim-txt { flex: 1; font-size: 13px; color: #41505f; line-height: 1.35; }
.opiniao-sim-tag { display: inline-block; font-size: 11px; font-weight: 600; color: #5a6b7b; background: #eef2f6; border-radius: 5px; padding: 1px 6px; margin-right: 5px; }
.opiniao-apoiar { white-space: nowrap; flex-shrink: 0; }
/* Coluna "Apoios" na listagem de Opiniões */
.opi-apoios { text-align: center; }
.opi-apoio-n { font-weight: 600; white-space: nowrap; }
.opi-apoio-n.opi-apoiado { color: #1f9d57; }
/* CheckDateField (smart): checkbox + data opcional lado a lado */
.cdf { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.cdf-date { display: inline-block; }
.cdf-disabled { opacity: .5; pointer-events: none; }

/* relato (somente leitura) no topo da cortina de tratamento */
.opi-dr-relato { font-size: 13.5px; color: #34455a; background: #f7f9fc; border: 1px solid #e1e7ee; border-radius: 8px; padding: 10px 12px; white-space: pre-wrap; }
.opi-dr-tela { font-size: 12px; font-weight: 600; color: #7a8694; margin-bottom: 5px; }

/* badges de tipo e status */
.badge-opi-bug      { background: #fdecea; color: #c0392b; }
.badge-opi-sugestao { background: #eaf3ff; color: #1a5fb4; }
.badge-opi-critica  { background: #fff4e0; color: #a05a00; }
.badge-opi-elogio   { background: #e8f8f1; color: #1e8449; }
.badge-st-aberto     { background: #eef3f9; color: #44566a; }
.badge-st-analise    { background: #fff4e0; color: #a05a00; }
.badge-st-resolvido  { background: #e8f8f1; color: #1e8449; }
.badge-st-descartado { background: #f1f1f1; color: #8a8a8a; }

/* cabeçalho do drawer acomoda o botão 📣 Opinião à direita do título */
.dr-header { display: flex; align-items: center; gap: 8px; }
.dr-header .dr-h-spacer { flex: 1; }
.drawer-header { display: flex; align-items: center; gap: 8px; }
.drawer-header .drawer-h-spacer { flex: 1; }

/* ── Dashboard: moldura de cartão + gráfico de pizza (PieChart) ─────────────── */
/* ChoiceField desabilitado (setDisabled) */
.cf-disabled { opacity: .5; pointer-events: none; }

/* barra de botões do Painel: mesmo visual das listagens (fundo branco, arredondado) */
.dash-action-bar { border: 1px solid #e5e9ef; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.08); margin-bottom: 16px; }

.dash-frame { background: #fff; border: 1px solid #e1e7ee; border-radius: 10px; padding: 14px 16px 16px; max-width: 360px; }
.dash-frame.is-loading { opacity: .6; transition: opacity .15s ease; }
.dash-frame-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.dash-frame-title { margin: 0; font-size: 16px; font-weight: 700; color: #2c3e50; flex: 1; }
.dash-frame-refresh { border: 1px solid #d8e0e8; background: #f7f9fc; color: #44566a; border-radius: 7px;
  width: 30px; height: 28px; font-size: 15px; line-height: 1; cursor: pointer; flex: none; }
.dash-frame-refresh:hover { background: #eef3f9; color: #2c3e50; }
.dash-frame.is-loading .dash-frame-refresh { animation: dash-spin .7s linear infinite; }
@keyframes dash-spin { to { transform: rotate(360deg); } }
.dash-frame-foot { margin-top: 10px; text-align: right; font-size: 11.5px; color: #9aa6b2; min-height: 14px; }
.dash-frame-body { min-height: 60px; }
.pie-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pie-chart { line-height: 0; }
.pie-svg { display: block; }
.pie-svg .pie-pct { fill: #fff; font-size: 13px; font-weight: 700; }
.pie-svg .pie-center-num { fill: #2c3e50; font-size: 22px; font-weight: 700; }
.pie-svg .pie-center-cap { fill: #8595a4; font-size: 10px; }
.pie-stats { list-style: none; margin: 2px 0 0; padding: 0; width: 100%; }
.pie-stat { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 2px; border-bottom: 1px solid #f0f3f7; font-size: 13.5px; }
.pie-stat:last-child { border-bottom: none; }
.pie-stat-l { display: flex; align-items: center; gap: 8px; color: #34455a; }
.pie-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.pie-dot-none { background: #cbd5e1; }
.pie-stat-v { font-weight: 700; color: #2c3e50; white-space: nowrap; }
.pie-stat-pct { font-weight: 500; color: #8595a4; font-size: 12px; }
.pie-empty { color: #8595a4; font-size: 13.5px; padding: 16px 0; text-align: center; }
