/*
 * PABX PRIME PROGRAMACOES EDITORES PADRONIZADOS CSS V2 20260822
 *
 * Upgrade sobre a V1.
 * O V1 continua responsavel por identificar EXATAMENTE os seis editores.
 * Esta V2 apenas refina layout/chrome e vence limites antigos carregando por ultimo.
 */

/* Margem de pagina igual ao comportamento visual usado nos editores modernos. */
#content.tem-page-editor-open.prime-programacoes-editor-open-v1 {
  min-width:0 !important;
  overflow-x:hidden !important;
  padding-left:clamp(18px,2vw,38px) !important;
  padding-right:clamp(18px,2vw,38px) !important;
}

/* O X era heranca do modal. Nos editores de pagina usamos Cancelar/Salvar. */
#content.tem-page-editor-open.prime-programacoes-editor-open-v1
> .tem-page-editor-host.prime-programacoes-editor-host-v1
> .prime-programacoes-editor-close-v1 {
  display:none !important;
  visibility:hidden !important;
  pointer-events:none !important;
}

/* Remove o aspecto de "modal esticado"; os cards internos permanecem intactos. */
#content.tem-page-editor-open.prime-programacoes-editor-open-v1
> .tem-page-editor-host.prime-programacoes-editor-host-v1
> .modal.tem-page-editor.prime-programacoes-editor-modal-v1 {
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  background:transparent !important;
  transform:none !important;
  overflow:visible !important;
}

/* Remove o espaco de 58px que a V1 reservava para o X. */
#content.tem-page-editor-open.prime-programacoes-editor-open-v1
> .tem-page-editor-host.prime-programacoes-editor-host-v1
.prime-programacoes-editor-modal-v1
> .tem-page-editor-body,
#content.tem-page-editor-open.prime-programacoes-editor-open-v1
> .tem-page-editor-host.prime-programacoes-editor-host-v1
.prime-programacoes-editor-modal-v1
> .modal-body {
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  padding:18px 22px 28px !important;
  border:0 !important;
  box-shadow:none !important;
  background:transparent !important;
  overflow:visible !important;
  box-sizing:border-box !important;
}

/* Formularios-base: a pagina inteira e a area de campos usam a largura disponivel. */
#content.tem-page-editor-open.prime-programacoes-editor-open-v1
> .tem-page-editor-host.prime-programacoes-editor-host-v1
form,
#content.tem-page-editor-open.prime-programacoes-editor-open-v1
> .tem-page-editor-host.prime-programacoes-editor-host-v1
.form,
#content.tem-page-editor-open.prime-programacoes-editor-open-v1
> .tem-page-editor-host.prime-programacoes-editor-host-v1
.ivr2-form,
#content.tem-page-editor-open.prime-programacoes-editor-open-v1
> .tem-page-editor-host.prime-programacoes-editor-host-v1
.custom-destination-editor-form {
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  box-sizing:border-box !important;
}

/* Rodape de formularios genericos deixa de parecer uma barra de modal. */
#content.tem-page-editor-open.prime-programacoes-editor-open-v1
> .tem-page-editor-host.prime-programacoes-editor-host-v1
[data-prime-programacoes-editor-v1="music_class"] form > .actions:last-child,
#content.tem-page-editor-open.prime-programacoes-editor-open-v1
> .tem-page-editor-host.prime-programacoes-editor-host-v1
[data-prime-programacoes-editor-v1="audios"] form > .actions:last-child,
#content.tem-page-editor-open.prime-programacoes-editor-open-v1
> .tem-page-editor-host.prime-programacoes-editor-host-v1
[data-prime-programacoes-editor-v1="conference"] form > .actions:last-child,
#content.tem-page-editor-open.prime-programacoes-editor-open-v1
> .tem-page-editor-host.prime-programacoes-editor-host-v1
[data-prime-programacoes-editor-v1="custom_destination"] form > .actions:last-child {
  width:100% !important;
  max-width:none !important;
  margin-top:22px !important;
  padding:16px 0 0 !important;
  border-top:1px solid #dce5ef !important;
  background:transparent !important;
  box-shadow:none !important;
}

/*
 * INTERCALACAO
 * A V3 historica limitava varios blocos a 940/830/620/etc.
 * O form e seus blocos de primeiro nivel passam a ocupar a pagina inteira.
 */
#content.tem-page-editor-open.prime-programacoes-editor-open-v1
> .tem-page-editor-host.prime-programacoes-editor-host-v1[data-prime-programacoes-editor-v1="intercalation"]
form {
  display:block !important;
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  margin:0 !important;
}

#content.tem-page-editor-open.prime-programacoes-editor-open-v1
> .tem-page-editor-host.prime-programacoes-editor-host-v1[data-prime-programacoes-editor-v1="intercalation"]
form > div,
#content.tem-page-editor-open.prime-programacoes-editor-open-v1
> .tem-page-editor-host.prime-programacoes-editor-host-v1[data-prime-programacoes-editor-v1="intercalation"]
form > section,
#content.tem-page-editor-open.prime-programacoes-editor-open-v1
> .tem-page-editor-host.prime-programacoes-editor-host-v1[data-prime-programacoes-editor-v1="intercalation"]
form > fieldset {
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  box-sizing:border-box !important;
}

/* Mantem a URA como esta internamente; so recebe margens/chrome de pagina. */
#content.tem-page-editor-open.prime-programacoes-editor-open-v1
> .tem-page-editor-host.prime-programacoes-editor-host-v1[data-prime-programacoes-editor-v1="ivrs"]
.ivr2-form,
#content.tem-page-editor-open.prime-programacoes-editor-open-v1
> .tem-page-editor-host.prime-programacoes-editor-host-v1[data-prime-programacoes-editor-v1="ivrs"]
.ivr2-form > * {
  max-width:none !important;
  min-width:0 !important;
  box-sizing:border-box !important;
}

@media(max-width:760px) {
  #content.tem-page-editor-open.prime-programacoes-editor-open-v1 {
    padding-left:10px !important;
    padding-right:10px !important;
  }

  #content.tem-page-editor-open.prime-programacoes-editor-open-v1
  > .tem-page-editor-host.prime-programacoes-editor-host-v1
  .prime-programacoes-editor-modal-v1
  > .tem-page-editor-body,
  #content.tem-page-editor-open.prime-programacoes-editor-open-v1
  > .tem-page-editor-host.prime-programacoes-editor-host-v1
  .prime-programacoes-editor-modal-v1
  > .modal-body {
    padding:14px 10px 20px !important;
  }
}

/* AUTO-GERADO: remove limites horizontais encontrados no intercalation-final-v3.css REAL. */
#content.tem-page-editor-open.prime-programacoes-editor-open-v1 > .tem-page-editor-host.prime-programacoes-editor-host-v1[data-prime-programacoes-editor-v1="intercalation"] .intercalation-final-help p { width:100% !important; max-width:none !important; min-width:0 !important; }
#content.tem-page-editor-open.prime-programacoes-editor-open-v1 > .tem-page-editor-host.prime-programacoes-editor-host-v1[data-prime-programacoes-editor-v1="intercalation"] .intercalation-final-modal { width:100% !important; max-width:none !important; min-width:0 !important; }
#content.tem-page-editor-open.prime-programacoes-editor-open-v1 > .tem-page-editor-host.prime-programacoes-editor-host-v1[data-prime-programacoes-editor-v1="intercalation"] .intercalation-final-form { width:100% !important; max-width:none !important; min-width:0 !important; }
#content.tem-page-editor-open.prime-programacoes-editor-open-v1 > .tem-page-editor-host.prime-programacoes-editor-host-v1[data-prime-programacoes-editor-v1="intercalation"] .intercalation-final-name-field { width:100% !important; max-width:none !important; min-width:0 !important; }
#content.tem-page-editor-open.prime-programacoes-editor-open-v1 > .tem-page-editor-host.prime-programacoes-editor-host-v1[data-prime-programacoes-editor-v1="intercalation"] .intercalation-final-dual { width:100% !important; max-width:none !important; min-width:0 !important; }
#content.tem-page-editor-open.prime-programacoes-editor-open-v1 > .tem-page-editor-host.prime-programacoes-editor-host-v1[data-prime-programacoes-editor-v1="intercalation"] .intercalation-final-form .form-actions { width:100% !important; max-width:none !important; min-width:0 !important; }
#content.tem-page-editor-open.prime-programacoes-editor-open-v1 > .tem-page-editor-host.prime-programacoes-editor-host-v1[data-prime-programacoes-editor-v1="intercalation"] .intercalation-final-description { width:100% !important; max-width:none !important; min-width:0 !important; }
#content.tem-page-editor-open.prime-programacoes-editor-open-v1 > .tem-page-editor-host.prime-programacoes-editor-host-v1[data-prime-programacoes-editor-v1="intercalation"] /* TEM INTERCALATION PERMISSAO MAXIMA VISIVEL CSS V3 20260815 */

.intercalation-final-mode-field { width:100% !important; max-width:none !important; min-width:0 !important; }
#content.tem-page-editor-open.prime-programacoes-editor-open-v1 > .tem-page-editor-host.prime-programacoes-editor-host-v1[data-prime-programacoes-editor-v1="intercalation"] .intercalation-final-mode-field select[name="mode"] { width:100% !important; max-width:none !important; min-width:0 !important; }
#content.tem-page-editor-open.prime-programacoes-editor-open-v1 > .tem-page-editor-host.prime-programacoes-editor-host-v1[data-prime-programacoes-editor-v1="intercalation"] .intercalation-final-mode-note { width:100% !important; max-width:none !important; min-width:0 !important; }
#content.tem-page-editor-open.prime-programacoes-editor-open-v1 > .tem-page-editor-host.prime-programacoes-editor-host-v1[data-prime-programacoes-editor-v1="intercalation"] .intercalation-final-mode-commands { width:100% !important; max-width:none !important; min-width:0 !important; }

/* INTERCALACAO_OVERRIDES_GERADOS=11 */
