.govbr-forms-base,
.govbr-forms-base * {
    box-sizing: border-box;
}

.govbr-forms-base {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 15px 10px 15px 10px;
    border: 1px solid var(--colors_gray05);
    border-radius: 4px;
    box-shadow: -1px -1px 16px -2px var(--colors_gray05) inset;
    background: var(--colors_grayclear);
    min-height: 600px;

    --z-index-flutuantes: 4;

    user-select: none;
}

.govbr-forms-visualizacao {
    padding: 0;
    border: 0;
    box-shadow: initial;
    background: var(--colors_databackgroundcolor);
    min-height: initial;
    height: auto !important;
    width: auto !important;
}

.govbr-forms-visualizacao .govbr-forms-base-container {
    overflow: visible;
    background: none;
    border: none;
    padding: 0;
}

.govbr-forms-base > hr {
    margin: 5px 0;
    border-top: 1px solid var(--colors_actionborder_and_focuscolor);
}

.govbr-forms-base-container {
    flex: 1 1 auto;
    overflow: hidden auto;
    border: 1px solid var(--colors_gray05);
    background: var(--colors_gray01);
    padding: 5px;
    overscroll-behavior: none;
    scroll-behavior: smooth;
    outline: none;
}

.govbr-forms-visualizacao > .govbr-forms-base-container + * {
    display: none;
}

.govbr-forms-base-container,
.govbr-forms-componente-container {
    --numero-colunas: 1;

    display: grid;
    grid-template-columns: repeat(var(--numero-colunas), 1fr);
    grid-auto-rows: min-content;

    background: var(--colors_gray01);
}

.govbr-forms-visualizacao .govbr-forms-componente-container {
    background: var(--colors_databackgroundcolor);
}

.govbr-forms-container-multiform-conteudo-tabs {
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: auto auto;
    background: var(--colors_gray01);
    border-radius: 4px;
}

.govbr-forms-container-multiform-tabs {
    display: flex;
    margin-bottom: -1px;
}

.govbr-forms-container-multiform-conteudo-item {
    display: none;
    grid-column: 1;
    grid-row: 2;
    border: 1px solid var(--colors_gray05);
}

.govbr-forms-container-titulo,
.govbr-forms-container-multiform-conteudo-titulo {
    font-size: 16px;
    font-weight: bold;
    position: relative;
    z-index: 1;
    margin-left: 4px;
    background: var(--colors_baseforecolor);
    width: fit-content;
    padding: 2px 4px;
}

.govbr-forms-container-multiform-conteudo-titulo + .govbr-forms-container-multiform-conteudo-item {
    margin-bottom: 4px;
    border: none;
}

.govbr-forms-container-multiform-conteudo-item.govbr-forms-container-multiform-conteudo-ativo {
    position: relative;
    display: block;
}

.govbr-forms-container-multiform-aba {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    max-width: 200px;
    height: 43px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 15px;
    margin-right: 2px;
    margin-bottom: -1px;
    border-radius: 4px 4px 0 0;
    border: 1px solid transparent;
    z-index: 1;
    cursor: pointer;
    color: var(--colors_basecolorforecolor);
}

.govbr-forms-container-multiform-aba.govbr-forms-container-multiform-aba-ativa {
    background: var(--colors_databackgroundcolor);
    border: 1px solid var(--colors_gray05);
    border-bottom: none;
    cursor: default;
    color: inherit;
}

.govbr-forms-container-multiform-conteudo-item {
    border: 1px solid var(--colors_gray05);
}

.govbr-forms-container-multiform-aba:hover {
    background: var(--colors_databackgroundcolor);
    border: 1px solid var(--colors_gray05);
    border-bottom: none;
    text-decoration: underline;
}

.govbr-form-adicionar-novo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    margin: 5px;
    border: 2px dashed var(--colors_gray08);
    font-size: 20px;
    color: var(--colors_gray07);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.25s;
}

.govbr-form-adicionar-novo * {
    pointer-events: none;
}

.govbr-form-adicionar-novo:hover {
    background: var(--colors_gray03);
    color: var(--colors_gray08);
}

.govbr-forms-lista-adicionar-novo {
    width: 225px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.govbr-forms-lista-componente-item {
    padding: 6px 14px;
    cursor: pointer;
}

.govbr-forms-lista-componente-item:hover {
    background: var(--colors_gray04);
}

.govbr-forms-lista-componente-separador {
    margin: 5px 0;
}

.govbr-forms-lista-componente-icone {
    width: 24px;
    text-align: center;
}

.govbr-forms-dialog {
    --z-index-dialog-backdrop: 999998;
    --z-index-dialog: 999999;

    position: fixed;
    z-index: var(--z-index-dialog);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    outline: none;
    border: none;
    margin: 0;
    padding: 0;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

.govbr-forms-dialog-base {
    position: relative;
    z-index: var(--z-index-dialog);
    display: flex;
    flex-direction: column;
    background: var(--colors_databackgroundcolor);
    max-width: 90vw;
    max-height: 95vh;
    overflow: auto;
    padding: 10px;
    border: 1px solid var(--colors_gray07);
    border-radius: 4px;
    min-height: 100px;
    min-width: 200px;
    animation: govbr-plataforma-suggest-surgir 0.5s 1 both;
}

.govbr-forms-dialog::before {
    content: '';
    position: fixed;
    display: block;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-index-dialog-backdrop);
    background: #00000022;
}

.govbr-form-dialog-conteudo {
    overflow: auto;
    border: 1px solid var(--colors_gray05);
    border-radius: 4px;
    padding: 10px;
}

.govbr-form-dialog-conteudo .govbr-forms-visualizacao {
    width: calc(90vw - 60px) !important;
}

.govbr-form-dialog-cabecalho {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: bold;
    color: var(--colors_gray08);
}

.govbr-form-dialog-rodape {
    text-align: end;
    margin-top: 10px;
}

.govbr-form-dialog-botao {
    user-select: none;
    background: var(--colors_basecolor);
    padding: 6px 12px;
    color: var(--colors_baseforecolor);
    border: 1px solid var(--colors_actionborder_and_focuscolor);
    border-radius: 4px;
    margin-right: 4px;
    font-weight: bold;
}

.govbr-form-dialog-botao.govbr-form-dialog-botao-fechar {
    background: var(--colors_gray07);
    border-color: var(--colors_gray08);
}

.govbr-forms-dialog-grid-configurar-lista {
    display: flex;
    flex-direction: column;
    width: 640px;
    max-width: 100%;
    min-height: 20px;
    border: 1px solid var(--colors_gray02);
    background: var(--colors_gray01);
    border-radius: 4px;
}

.govbr-forms-dialog-grid-configurar-lista-itens {
    overflow: auto;
    min-height: 30px;
    max-height: 300px;
    border-bottom: 1px solid var(--colors_gray04);
    margin: 0 5px 10px 5px;
}

.govbr-forms-dialog-grid-linha {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 6px 12px;
}

.govbr-forms-dialog-grid-linha > label {
    margin: 0 6px;
}

.govbr-forms-dialog-grid-linha > label::after {
    content: ':';
}

.govbr-forms-dialog-grid-linha > label:not(:first-child) {
    margin-left: 20px;
}

.govbr-forms-dialog-grid-linha > input {
    flex: 1 0 0;
    height: 34px;
    padding: 6px 12px;
    border-radius: 4px;
    background: var(--colors_databackgroundcolor);
    border: 1px solid var(--colors_gray05);
    color: var(--colors_gray08);
    box-sizing: border-box;
}

.govbr-form-dialog-botao.govbr-form-dialog-botao-grid-adicionar-item {
    align-self: flex-end;
}

.govbr-form-dialog-botao.govbr-form-dialog-botao-grid-remover-item {
    background: var(--colors_danger);
    border-color: var(--colors_danger_condform);
    margin-left: 12px;
}

.ck-body-wrapper {
    z-index: 999999;
    position: fixed;
}
