.btn.btn-outline-secondary {
    color: #3f4654 !important;
    background-color: #fff !important;
    border-color: #cfd5df !important;
    box-shadow: 0 2px 4px rgba(23, 31, 45, .08) !important;
    font-weight: 700;
}

.btn.btn-outline-secondary:hover,
.btn.btn-outline-secondary:focus {
    color: #262d3a !important;
    background-color: #f5f7fa !important;
    border-color: #aeb7c5 !important;
}

.btn.btn-outline-secondary.disabled,
.btn.btn-outline-secondary:disabled {
    color: #6b7280 !important;
    background-color: #f5f7fa !important;
    border-color: #d8dde6 !important;
    box-shadow: none !important;
}

.m-portlet .m-portlet__body {
    padding: 2.2rem 0 0 0;
}

@media (max-width: 1024px) {
    .m-portlet .m-portlet__body {
        padding: 0.5rem;
    }

    #portlet-principal > .m-portlet__head {
        margin-top: 10px;
    }

    #portlet-principal > .m-portlet__head .m-portlet__head-icon,
    #portlet-principal > .m-portlet__head .m-portlet__head-icon i,
    #portlet-principal > .m-portlet__head .m-portlet__head-text {
        color: #fff !important;
    }
}

#portlet-arquivos {
    margin-bottom: 0 !important;
}

#portlet-principal > .m-portlet__body > .m-portlet > .m-portlet__head .m-portlet__head-icon {
    display: none !important;
}

#portlet-principal > .m-portlet__body > .m-portlet > .m-portlet__head .m-portlet__head-text {
    font-weight: 700 !important;
    text-transform: uppercase;
    text-shadow:
        -1px -1px 0 #3f4654,
         1px -1px 0 #3f4654,
        -1px  1px 0 #3f4654,
         1px  1px 0 #3f4654;
}

#portlet-principal > .m-portlet__body {
    --homologacao-section-gutter: 2.2rem;
    padding: var(--homologacao-section-gutter);
}

#portlet-principal.m-portlet--full-height > .m-portlet__body > .m-portlet > .m-portlet__body {
    height: auto;
}

#portlet-principal > .m-portlet__body:has(> .portlet-termo-renuncia:first-of-type) {
    padding-top: 0;
}

#portlet-principal > .m-portlet__body:has(> #portlet-arquivos:not(:has(~ .m-portlet))) {
    padding-bottom: 0;
}

#portlet-principal > .m-portlet__body > .m-portlet:not(.homologacao-status-portlet) > .m-portlet__head {
    width: calc(100% + var(--homologacao-section-gutter) + var(--homologacao-section-gutter));
    margin-right: calc(0px - var(--homologacao-section-gutter));
    margin-left: calc(0px - var(--homologacao-section-gutter));
    border-radius: 0 !important;
}

#portlet-principal > .m-portlet__body > .m-portlet:not(.homologacao-status-portlet) > .m-portlet__head::before,
#portlet-principal > .m-portlet__body > .m-portlet:not(.homologacao-status-portlet) > .m-portlet__head::after {
    content: '';
    position: absolute;
    top: -1rem;
    z-index: 0;
    width: 1rem;
    height: calc(100% + 2rem);
    background: inherit;
    pointer-events: none;
}

#portlet-principal > .m-portlet__body > .m-portlet:not(.homologacao-status-portlet) > .m-portlet__head::before {
    left: 0;
    -webkit-mask:
        radial-gradient(circle at 100% 0, transparent 0 .95rem, #000 1rem) top / 100% 1rem no-repeat,
        radial-gradient(circle at 100% 100%, transparent 0 .95rem, #000 1rem) bottom / 100% 1rem no-repeat;
    mask:
        radial-gradient(circle at 100% 0, transparent 0 .95rem, #000 1rem) top / 100% 1rem no-repeat,
        radial-gradient(circle at 100% 100%, transparent 0 .95rem, #000 1rem) bottom / 100% 1rem no-repeat;
}

#portlet-principal > .m-portlet__body > .m-portlet:not(.homologacao-status-portlet) > .m-portlet__head::after {
    right: 0;
    -webkit-mask:
        radial-gradient(circle at 0 0, transparent 0 .95rem, #000 1rem) top / 100% 1rem no-repeat,
        radial-gradient(circle at 0 100%, transparent 0 .95rem, #000 1rem) bottom / 100% 1rem no-repeat;
    mask:
        radial-gradient(circle at 0 0, transparent 0 .95rem, #000 1rem) top / 100% 1rem no-repeat,
        radial-gradient(circle at 0 100%, transparent 0 .95rem, #000 1rem) bottom / 100% 1rem no-repeat;
}

.portlet-termo-renuncia {
    margin-bottom: 0 !important;
}

.portlet-termo-renuncia > .m-portlet__body {
    padding-bottom: 2.2rem;
    background-color: transparent !important;
}

#portlet-principal > .m-portlet__head .homologacao-head-title {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
}

#portlet-principal > .m-portlet__head .homologacao-head-icon {
    width: auto !important;
    padding: 0 1rem 0 0 !important;
    border: 0 !important;
    border-right: 1px solid #fff !important;
}

#portlet-principal > .m-portlet__head .homologacao-head-text {
    width: auto !important;
    margin: 0;
    padding: 0 0 0 1rem !important;
    text-align: left !important;
}

#portlet-principal .form-content .row > [class*="col-"] > .form-group {
    margin-bottom: 2.25rem;
}

.portlet-termo-renuncia > .m-portlet__head,
.homologacao-emails-portlet > .m-portlet__head,
#portlet-arquivos > .m-portlet__head {
    position: relative;
}

.portlet-termo-renuncia > .m-portlet__head > .m-portlet__head-caption,
.homologacao-emails-portlet > .m-portlet__head > .m-portlet__head-caption,
#portlet-arquivos > .m-portlet__head > .m-portlet__head-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max-content;
    max-width: calc(100% - 120px);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.homologacao-emails-portlet .m-portlet__head-title,
#portlet-arquivos .m-portlet__head-title {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center !important;
}

.homologacao-emails-portlet .m-portlet__head-icon,
#portlet-arquivos .m-portlet__head-icon {
    width: auto !important;
    padding: 0 !important;
}

.homologacao-emails-portlet .m-portlet__head-text,
#portlet-arquivos .m-portlet__head-text {
    margin: 0;
    padding: 0 !important;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    #portlet-principal .m-portlet__body .m-portlet.m-portlet--tabs > .m-portlet__head {
        display: flex;
        align-items: center;
        min-height: 68px;
        height: auto;
        padding: 0.75rem 1rem;
        border-radius: 12px;
    }

    #portlet-principal > .m-portlet__body > .m-portlet > .m-portlet__head {
        position: relative;
    }

    #portlet-principal > .m-portlet__body > .m-portlet > .m-portlet__head > .m-portlet__head-caption {
        position: absolute;
        top: 50%;
        left: 50%;
        width: calc(100% - 2rem);
        max-width: calc(100% - 2rem);
        margin: 0 !important;
        transform: translate(-50%, -50%);
        justify-content: center;
    }

    #portlet-principal > .m-portlet__body > .m-portlet > .m-portlet__head .m-portlet__head-title {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    #portlet-principal > .m-portlet__body > .m-portlet > .m-portlet__head .m-portlet__head-text {
        text-align: center !important;
    }

    #portlet-principal .m-portlet__body .m-portlet.m-portlet--tabs > .m-portlet__body {
        padding: 2.2rem 0 0 0;
    }
}

@media (min-width: 769px) {
    #portlet-principal > .m-portlet__head {
        padding-right: 4.4rem !important;
        padding-left: 4.4rem !important;
    }
}

@media (max-width: 575.98px) {
    #portlet-principal > .m-portlet__body {
        border-radius: 16px;
    }

    #portlet-principal .m-portlet__body .m-portlet.m-portlet--tabs > .m-portlet__body {
        padding-right: 0.25rem;
        padding-left: 0.25rem;
    }

    #portlet-principal .form-content .row > [class*="col-"] > .form-group {
        margin-bottom: 1.5rem;
    }
}

.item-arquivo .form-group:not(.m-0):after {
    left: calc(50% - 55px);
}

.item-arquivo .form-group:not(.m-0):hover:after,
.item-arquivo .form-group:not(.m-0).focus:after {
    width: calc(100% - 110px);
}

.item-arquivo .custom-file-input {
    width: 90px;
    margin-left: calc(100% - 90px);
    cursor: pointer;
}

.item-arquivo .custom-file,
.item-arquivo .custom-file-input,
.item-arquivo .custom-file-label {
    height: 40px !important;
}

.item-arquivo .custom-file-label > span {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.arquivo-acoes {
    margin-bottom: 1rem;
}

:is(#portlet-arquivos, .homologacao-arquivos-entidade-portlet) > .m-portlet__body.items {
    padding: 2.25rem 0;
}

#portlet-principal > .m-portlet__body.form-content > #portlet-arquivos:last-child > .m-portlet__body.items {
    padding-bottom: 0;
}

:is(#portlet-arquivos, .homologacao-arquivos-entidade-portlet) > .m-portlet__body.items > .row.item {
    margin: 0 0 0.75rem;
    padding: 1rem 0.5rem;
    border-radius: 0.5rem;
    background-color: #f5f6f8;
}

:is(#portlet-arquivos, .homologacao-arquivos-entidade-portlet) > .m-portlet__body.items > .row.item:nth-child(even) {
    background-color: #e9ecef;
}

:is(#portlet-arquivos, .homologacao-arquivos-entidade-portlet) > .m-portlet__body.items > .row.item:last-child {
    margin-bottom: 0;
}

:is(#portlet-arquivos, .homologacao-arquivos-entidade-portlet) > .m-portlet__body.items > .row.item .form-group,
:is(#portlet-arquivos, .homologacao-arquivos-entidade-portlet) > .m-portlet__body.items > .row.item .arquivo-acoes {
    margin-bottom: 0;
}

:is(#portlet-arquivos, .homologacao-arquivos-entidade-portlet) > .m-portlet__body.items > .row.item > .item-warning {
    margin-bottom: 1rem;
}

.direta-note__mensagem {
    display: block;
    font-weight: 400;
}

.direta-note__destaque {
    display: block;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: #262734;
    background-color: rgba(255, 255, 255, 0.9);
    text-shadow: none;
}

#finalizar-homologacao-erros .direta-note__destaque {
    padding: 0;
    text-align: center;
    background-color: transparent;
}

#finalizar-homologacao-erros .direta-note__destaque li {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.9);
}

#finalizar-homologacao-erros .direta-note__destaque li + li {
    margin-top: 0.5rem;
}

.finalizar-homologacao-erro__campo {
    color: #262734;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #c14549;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    -webkit-text-stroke: 0.6px #fff;
    paint-order: stroke fill;
}

.finalizar-homologacao-erro__secao {
    color: #262734;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #3f3f43;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    -webkit-text-stroke: 0.6px #fff;
    paint-order: stroke fill;
}

.email-template-tabs.nav.nav-tabs .nav-link.active,
.email-template-tabs.nav.nav-tabs .nav-link.active:hover {
    color: #fff;
    background: var(--email-template-tab-color);
    border-color: var(--email-template-tab-color);
}

.m-portlet__body.items > .row.item:not(:has(.arquivo-acoes-grid .arquivo-acao)) > .arquivo-acoes {
    display: none;
}

.m-portlet__body.items > .row.item:not(:has(.arquivo-acoes-grid .arquivo-acao)) > .item-descricao {
    flex: 0 0 100%;
    max-width: 100%;
}

.arquivo-descricao-cabecalho {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

#portlet-arquivos .item-descricao .form-control {
    background-color: transparent !important;
    border-bottom-style: dashed !important;
}

.arquivo-tamanho-mobile {
    display: none;
}

.arquivo-acoes-cabecalho {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 20px;
    margin-bottom: 0.5rem;
}

.arquivo-acoes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.75rem;
}

.arquivo-acao,
.arquivo-acao > .w-100,
.arquivo-acao .btn {
    width: 100%;
    min-width: 0;
}

.arquivo-acao .btn {
    height: 40px;
}

.arquivo-acao .btn-group {
    width: 100%;
}

.arquivo-acao .btn-group .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
}

.arquivo-acao .btn-group .btn:first-child {
    min-width: 0;
    flex: 1 1 auto;
}

.arquivo-acao .btn-group .btn:last-child {
    flex: 0 0 44px;
}

.arquivo-acao .btn-group.arquivo-acao-somente-icone .btn:first-child {
    display: none;
}

.arquivo-acao .btn-group.arquivo-acao-somente-icone .btn {
    flex: 1 1 100%;
    border-radius: 0.25rem !important;
}

.arquivo-upload-botao {
    color: #262734;
    background-color: #fff;
    border: 1px solid #262734;
}

.arquivo-upload-botao:hover,
.arquivo-upload-botao:focus {
    color: #fff;
    background-color: #262734;
}

.arquivo-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

@media (max-width: 767.98px) {
    .arquivo-tamanho-mobile {
        display: inline;
    }

    .arquivo-acoes-cabecalho {
        display: none;
    }

    #portlet-arquivos .item-descricao .form-group {
        margin-bottom: 0.5rem;
    }

    #portlet-arquivos > .m-portlet__body.items > .row.item > .arquivo-acoes {
        margin-top: 1rem;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .m-portlet__body.items > .row.item {
        justify-content: center;
    }

    .m-portlet__body.items > .row.item > .item-acao {
        flex: 0 0 60px;
        max-width: 60px;
        padding-right: 10px;
        padding-left: 10px;
    }
}

.item-arquivo .custom-file-label,
.item-arquivo .form-group > .control-label {
    pointer-events: none;
}

.form-control:disabled {
    background-color: transparent !important;
    border-bottom-style: dashed !important;
}

.form-group:has(.form-control:disabled):after {
    display: none;
}

form .input-group-append {
    position: relative;
}

form .form-group {
    --input-accent: #808080;
}

form .form-group.required,
form .form-group.has-success {
    --input-accent: #5867dd;
}

form .form-group.has-error {
    --input-accent: #c14549;
}

form .form-group::after {
    background-color: var(--input-accent);
}

form .form-group input,
form .form-group .select2-selection,
form .form-group .custom-file-label,
form .form-group:is(.required, .has-success, .has-error) input,
form .form-group:is(.required, .has-success, .has-error) .select2-selection,
form .form-group:is(.required, .has-success, .has-error) .custom-file-label {
    border-bottom-color: var(--input-accent) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-right: 2.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ddi-option {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    text-align: left;
}

.select2-selection__rendered > .ddi-option {
    display: flex;
    width: 100%;
    min-width: 0;
    vertical-align: middle;
}

.select2-selection__rendered > .ddi-option > .ddi-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

select[data-ddi-select] + .select2-container .select2-selection__rendered {
    margin-bottom: 0 !important;
}

.ddi-flag {
    display: block;
    width: 1.6667em;
    height: 1.25em;
    flex: 0 0 1.6667em;
}

form .input-group-append > .btn {
    border-color: var(--input-accent) !important;
}

form .input-group-append::before,
form .input-group-append::after,
form .input-group-append > .btn:last-child:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    z-index: 3;
    background: var(--input-accent);
    pointer-events: none;
}

form .input-group-append::before {
    bottom: 0;
    left: 0;
    width: 1px;
    height: 0;
    transition: height 40ms linear;
}

form .input-group-append::after {
    top: 0;
    left: 0;
    width: 0;
    height: 1px;
    transition: width 100ms linear;
}

form .input-group-append > .btn:last-child:not(.dropdown-toggle)::after {
    top: 0;
    right: 0;
    width: 1px;
    height: 0;
    transition: height 40ms linear;
}

form .form-group:is(:hover, .focus):not(:has(.form-control:disabled)) .input-group-append::before {
    height: 100%;
    transition-delay: 110ms;
}

form .form-group:is(:hover, .focus):not(:has(.form-control:disabled)) .input-group-append::after {
    width: 100%;
    transition-delay: 150ms;
}

form .form-group:is(:hover, .focus):not(:has(.form-control:disabled)) .input-group-append > .btn:last-child:not(.dropdown-toggle)::after {
    height: 100%;
    transition-delay: 250ms;
}

.m-tooltip.tooltip {
    pointer-events: none;
}

.m-tooltip .tooltip-inner {
    color: #fff;
    background: #262734;
}

.m-tooltip.bs-tooltip-top .arrow::before,
.m-tooltip.bs-tooltip-auto[x-placement^="top"] .arrow::before {
    border-top-color: #262734;
}

.m-tooltip.bs-tooltip-right .arrow::before,
.m-tooltip.bs-tooltip-auto[x-placement^="right"] .arrow::before {
    border-right-color: #262734;
}

.m-tooltip.bs-tooltip-bottom .arrow::before,
.m-tooltip.bs-tooltip-auto[x-placement^="bottom"] .arrow::before {
    border-bottom-color: #262734;
}

.m-tooltip.bs-tooltip-left .arrow::before,
.m-tooltip.bs-tooltip-auto[x-placement^="left"] .arrow::before {
    border-left-color: #262734;
}

.direta-notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
    margin-bottom: 1rem;
}

.direta-note-full {
    grid-column: 1 / -1;
}

.direta-note-half {
    grid-column: span 1;
}

[data-wizard-panels] {
    position: relative;
    overflow: hidden;
    transition: height .24s ease;
}

[data-wizard-panel] {
    display: none;
}

[data-wizard-panel].is-active {
    display: block;
}

[data-wizard-panel].is-measuring {
    position: absolute;
    right: 0;
    left: 0;
    display: block;
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .direta-note-half {
        grid-column: 1 / -1;
    }
}
