/* Estilos próprios da aplicação. As bibliotecas ficam em static/vendor/. */

.navbar-brand {
  font-weight: 600;
}

.logo-preview {
  max-height: 64px;
}

.narrow-form {
  max-width: 40rem;
}

.preview-table {
  max-height: 24rem;
  overflow: auto;
}

.usage-box {
  min-width: 16rem;
}

[x-cloak] {
  display: none !important;
}

/* Miniaturas de modelos: iframe em escala reduzida. */
.thumb-frame {
  height: 220px;
  overflow: hidden;
  position: relative;
  background: #f4f4f4;
  border-bottom: 1px solid var(--bs-border-color);
}

.thumb-frame iframe {
  width: 720px;
  height: 960px;
  border: 0;
  transform: scale(0.42);
  transform-origin: 0 0;
  pointer-events: none;
}

.asset-thumb {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f4;
}

.asset-thumb img {
  max-width: 100%;
  max-height: 120px;
}

/* Editor de e-mail */
.editor-name {
  max-width: 24rem;
}

.block-list .block-item {
  cursor: pointer;
}

.block-list .active-block {
  background: var(--bs-primary-bg-subtle);
}

.drag-handle {
  cursor: grab;
  color: var(--bs-secondary-color);
}

.props-panel {
  max-height: 75vh;
  overflow-y: auto;
}

.rich-editor {
  min-height: 140px;
  background: #fff;
}

.variable-menu {
  max-height: 18rem;
  overflow-y: auto;
}

.preview-lead {
  max-width: 16rem;
}

.preview-wrap {
  margin: 0 auto;
  background: #fff;
}

.preview-wrap.mobile {
  width: 375px;
}

.preview-wrap iframe {
  width: 100%;
  height: 70vh;
  border: 0;
  display: block;
}

.code-editor {
  min-height: 70vh;
  font-size: 0.8rem;
  resize: vertical;
}

/* Gráfico de aberturas e cliques do relatório (REL-03), sem bibliotecas externas */
.report-chart {
  min-height: 220px;
  padding-bottom: 0.25rem;
}
.report-bar-group {
  flex: 0 0 auto;
  width: 18px;
}
.report-bar-area {
  height: 180px;
  width: 100%;
}
.report-bar {
  width: 50%;
  min-height: 1px;
  border-radius: 2px 2px 0 0;
}
.report-bar-open,
.chart-swatch-open {
  background-color: var(--bs-primary);
}
.report-bar-click,
.chart-swatch-click {
  background-color: var(--bs-warning);
}
.chart-swatch-open,
.chart-swatch-click {
  width: 0.8rem;
  height: 0.8rem;
}
.report-bar-label {
  font-size: 0.65rem;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  height: 4.5rem;
  color: var(--bs-secondary-color);
}

/* Níveis de engajamento (MET-12) */
.engagement-new { background-color: var(--bs-secondary); }
.engagement-engaged { background-color: var(--bs-success); }
.engagement-active { background-color: var(--bs-info); }
.engagement-cold { background-color: var(--bs-gray-400); }
.engagement-inactive { background-color: var(--bs-warning); }
.engagement-swatch {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 2px;
  vertical-align: middle;
}
