/* Editor absoluto: elementos, seleção, toolbars — oculto na impressão */

.proposta-modelo-editor--wrap {
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.proposta-modelo-editor__body {
  display: flex;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.proposta-modelo-editor__scroll {
  flex: 1;
  overflow: auto;
  min-width: 0;
  padding: 0.5rem 0 2rem;
  background: #e2e8f0;
  border-radius: 12px;
}

.proposta-modelo-editor--absolute .proposta-modelo-editor__scroll {
  margin-right: 0;
}

.proposta-editor-props {
  width: 280px;
  flex-shrink: 0;
  border-left: 1px solid #e2e8f0;
  background: #f8fafc;
  overflow: auto;
  max-height: calc(100vh - 140px);
  position: sticky;
  top: 0;
  align-self: stretch;
}

.proposta-editor-props__inner {
  padding: 1rem;
}

.proposta-editor-props__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.proposta-editor-props__id {
  margin: 0 0 1rem;
  font-size: 0.8rem;
}

.proposta-editor-props__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  align-items: center;
}

.proposta-editor-props__row label {
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  gap: 0.2rem;
}

.proposta-editor-props__row input[type="number"] {
  width: 5rem;
  padding: 0.25rem 0.35rem;
}

.proposta-editor-props__actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1rem;
}

.proposta-mini-toolbar {
  position: fixed;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.5rem;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.proposta-mini-toolbar button,
.proposta-mini-toolbar select {
  font-size: 0.8rem;
}

.proposta-modelo-editor__label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.proposta-modelo-editor__inline-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.proposta-modelo-editor__select {
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 0.85rem;
  max-width: 200px;
}

.proposta-modelo-editor__status {
  margin-left: auto;
  font-size: 0.8rem;
}

/* Canvas A4 — margens 72px → área útil 652×979 */
.proposta-pl-inner--absolute {
  background: #fff;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}

.proposta-abs-el {
  z-index: 1;
}

.proposta-abs-el--selected {
  outline: 2px solid #2563eb;
  outline-offset: 0;
  z-index: 2;
}

.proposta-var-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  color: #fff;
  margin-right: 0.35rem;
  vertical-align: middle;
  pointer-events: none;
  user-select: none;
}

.proposta-var-value {
  min-height: 1em;
  display: inline-block;
  vertical-align: middle;
}

.proposta-doc--preview .proposta-var-badge {
  display: none !important;
}

@media print {
  .no-print,
  .proposta-editor-props,
  .proposta-mini-toolbar,
  .proposta-modelo-editor__toolbar,
  .proposta-var-badge {
    display: none !important;
    visibility: hidden !important;
  }
}
