/* Sprint 109 — modais */

.modal-content-large {
    max-width: 53.75rem;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--app-scrim-bg, rgba(8, 16, 38, 0.38));
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.ativo {
    display: flex;
}

.modal-escalonamento {
    z-index: 1100;
}

.modal-content-compact {
    max-width: 30rem;
}

.modal-content--medium {
    max-width: 40rem;
    width: 100%;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.625rem;
    padding: 0.75rem 1.25rem 1.25rem;
    border-top: 0.0625rem solid var(--fd-border, var(--border-subtle, #e5e7eb));
}

.encerramento-form--readonly select,
.encerramento-form--readonly textarea {
    opacity: 0.92;
    cursor: default;
}

.encerramento-form--readonly .encerramento-pesquisa-opcoes {
    pointer-events: none;
}

.escalonamento-ticket-ref {
    font-size: 0.875rem;
    color: var(--text-muted, #6b7280);
    margin-bottom: 0.75rem;
}

.modal-content {
    background: var(--fd-surface, var(--surface));
    border: 0.0625rem solid var(--fd-border, var(--border));
    border-radius: var(--fd-radius-card, 0.75rem);
    box-shadow: var(--fd-shadow-2, var(--shadow-lg));
    max-width: 37.5rem;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 0.0625rem solid var(--fd-border, var(--border));
}

.modal-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--fd-text, var(--text));
}

.modal-header button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.modal-header button:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.modal-body {
    padding: 1.5rem;
}

.profile-photo-view-modal {
    max-width: 32.5rem;
}

.profile-photo-view {
    display: block;
    width: min(22.5rem, 80vw);
    height: min(22.5rem, 80vw);
    margin: 0 auto;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.profile-adjust-modal {
    background: rgba(15, 23, 42, 0.72);
}

/* #eqFotoAjusteModal abre em cima do modal de equipe (#eqCadModal, z-index var(--app-layer-modal,
   2100)) — .modal base só tem z-index:1000, então sem isso o ajuste de foto abriria atrás. */
#eqFotoAjusteModal {
    z-index: calc(var(--app-layer-modal, 2100) + 100);
}

.profile-adjust-content {
    width: min(53.75rem, 94vw);
    max-height: 92vh;
    background: var(--surface);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.profile-adjust-header {
    display: grid;
    grid-template-columns: 3rem 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.125rem;
    border-bottom: 0.0625rem solid var(--border);
    background: var(--surface);
}

.profile-adjust-header h2 {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.profile-adjust-header button {
    border: none;
    background: transparent;
    cursor: pointer;
}

#fecharModalFotoAjuste {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1.375rem;
}

#fecharModalFotoAjuste:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.profile-adjust-confirm {
    color: var(--corp-text-on-light);
    font-weight: 700;
    padding: 0.5rem 0.75rem;
    border-radius: 62.4375rem;
}

.profile-adjust-confirm:hover {
    background: rgba(var(--corp-accent-neon-rgb), 0.12);
}

.profile-adjust-body {
    position: relative;
    min-height: 32.5rem;
    background: #d8dee6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-adjust-stage {
    position: relative;
    width: min(27.5rem, 74vw);
    height: min(27.5rem, 74vw);
    touch-action: none;
    z-index: 2;
}

.profile-adjust-image-frame {
    position: absolute;
    overflow: hidden;
    border-radius: 0.25rem;
}

.profile-adjust-image-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    user-select: none;
    pointer-events: none;
}

.profile-adjust-shade {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    pointer-events: none;
}

.profile-adjust-crop-ring {
    position: absolute;
    border-radius: 50%;
    border: 0.125rem solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 0.0625rem rgba(15, 23, 42, 0.2);
    cursor: grab;
    z-index: 4;
    touch-action: none;
}

.profile-adjust-crop-ring.dragging {
    cursor: grabbing;
}

/* Recorte quadrado (foto de equipe) — mesmo stage/frame do ajuste de perfil, mas sem máscara
   radial: um box-shadow com spread gigante escurece tudo fora do quadrado, recortado pelo
   overflow:hidden do .profile-adjust-stage. Mais simples que recalcular mask-image via JS. */
.eq-adjust-crop-square {
    position: absolute;
    border-radius: 0.375rem;
    border: 0.125rem solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 624.9375rem rgba(15, 23, 42, 0.58), 0 0 0 0.0625rem rgba(15, 23, 42, 0.2);
    cursor: grab;
    z-index: 4;
    touch-action: none;
}

.eq-adjust-crop-square.dragging {
    cursor: grabbing;
}

/* Moldura da foto do servidor Call — mesma proporção do botão do guild (3rem / radius 1rem ≈ 33%). */
.call-server-foto-crop-frame {
    position: absolute;
    border-radius: 33.333%;
    border: 0.125rem solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 624.9375rem rgba(15, 23, 42, 0.58), 0 0 0 0.0625rem rgba(15, 23, 42, 0.2);
    cursor: grab;
    z-index: 4;
    touch-action: none;
}
.call-server-foto-crop-frame.dragging {
    cursor: grabbing;
}

/* Moldura da foto do ERP na Biblioteca — mesmo radius relativo do botão 4.5rem / 1rem. */
.bib-sistema-logo-crop-frame {
    position: absolute;
    border-radius: 22.222%;
    border: 0.125rem solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 624.9375rem rgba(15, 23, 42, 0.58), 0 0 0 0.0625rem rgba(15, 23, 42, 0.2);
    cursor: grab;
    z-index: 4;
    touch-action: none;
}
.bib-sistema-logo-crop-frame.dragging {
    cursor: grabbing;
}

.profile-zoom-controls {
    position: absolute;
    right: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    z-index: 4;
}

.profile-zoom-controls button {
    width: 2.375rem;
    height: 2.375rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    box-shadow: var(--shadow);
    font-size: 1.375rem;
    cursor: pointer;
}

.profile-check-button {
    position: absolute;
    right: 1.75rem;
    bottom: 1.625rem;
    z-index: 4;
    width: 3.25rem;
    height: 3.25rem;
    border: none;
    border-radius: 50%;
    background: #111827;
    color: white;
    box-shadow: var(--shadow-lg);
    font-size: 1.5rem;
    cursor: pointer;
}

.profile-check-button:hover,
.profile-zoom-controls button:hover {
    transform: translateY(-0.0625rem);
}

.modal-body dl {
    display: grid;
    grid-template-columns: 8.75rem 1fr;
    gap: 1rem;
}

.modal-body dt {
    font-weight: 600;
    color: var(--text);
}

.modal-body dd {
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 0px) /* ui-scale-freeze: was 1024px */ {
    .modal-content {
        width: 95%;
    }
}

/* Modal de encerramento: cabeçalho + ações fixos; o meio rola em telas 100%/baixas */
.modal-encerramento .sr-only {
    position: absolute;
    width: 0.0625rem;
    height: 0.0625rem;
    padding: 0;
    margin: -0.0625rem;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.modal-encerramento .modal-content-encerramento {
    max-width: min(40rem, 94vw);
    width: min(40rem, 94vw);
    max-height: min(92vh, calc(100dvh - 1.5rem));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: none !important;
}

.modal-encerramento .modal-body-encerramento {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1.25rem 0.875rem;
}

.modal-encerramento .modal-header-compact {
    flex: 0 0 auto;
    padding: 0.75rem 1.25rem;
}

.encerramento-form {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

#encerramentoResumirIaBtn.is-loading {
    opacity: 0.75;
    cursor: wait;
}

.encerramento-stack {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0.125rem;
    -webkit-overflow-scrolling: touch;
}

.encerramento-stack .form-group {
    margin-bottom: 0;
}

.encerramento-comentario > label {
    display: block;
    margin-bottom: 0.35rem;
}

.encerramento-textarea-wrap {
    position: relative;
}

.encerramento-ia-btn {
    position: absolute;
    bottom: 0.625rem;
    right: 0.625rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0;
    font-size: 0.625rem;
    padding: 0.1875rem 0.4375rem;
    line-height: 1.4;
    background-color: #dbeafe;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.encerramento-ia-btn:hover:not(:disabled) {
    background-color: #bfdbfe;
    border-color: #93c5fd;
    color: #1d4ed8;
}

html[data-theme='dark'] .encerramento-ia-btn {
    background-color: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.3);
}

html[data-theme='dark'] .encerramento-ia-btn:hover:not(:disabled) {
    background-color: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
    color: #bfdbfe;
}

.app-dialog__body--prewrap {
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 50vh;
    overflow-y: auto;
}

.encerramento-comentario textarea {
    height: 4.5rem;
    min-height: 4.5rem;
    max-height: 4.5rem;
    resize: none;
    overflow-y: auto;
    padding-bottom: 1.875rem;
}

.encerramento-pesquisa-inline {
    margin: 0;
    padding: 1rem 0.875rem;
    border: 0.0625rem solid var(--border);
    border-radius: 0.5rem;
    background: var(--surface-hover, #f8fafc);
}

.encerramento-avaliacao-interna {
    margin: 0.5rem 0 0;
    padding: 0.75rem;
    border: 0.0625rem solid var(--border);
    border-radius: 0.5rem;
    background: var(--surface-hover, #f8fafc);
}

.encerramento-avaliacao-interna-legend {
    padding: 0 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.encerramento-avaliacao-interna-aviso {
    margin: 0 0 0.65rem;
    font-size: 0.75rem;
    color: var(--text-muted, #64748b);
}

.encerramento-avaliacao-interna-grid {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 40rem) {
    .encerramento-avaliacao-interna-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.encerramento-avaliacao-interna-grid .form-group {
    margin: 0;
    display: grid;
    gap: 0.35rem;
}

.encerramento-avaliacao-interna-grid input,
.encerramento-avaliacao-interna-grid select {
    width: 100%;
}

.encerramento-pesquisa-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem 0.875rem;
}

.encerramento-pesquisa-pergunta {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    flex: 1 1 12.5rem;
}

.encerramento-pesquisa-medal {
    display: none;
}

.encerramento-pesquisa-stars {
    display: none;
}

.encerramento-pesquisa-opcoes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.encerramento-choice {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.5rem 0.875rem;
    border: 0.125rem solid var(--border);
    border-radius: 0.5rem;
    background: var(--surface);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.encerramento-choice input[type="radio"] {
    position: absolute;
    width: 0.0625rem;
    height: 0.0625rem;
    margin: -0.0625rem;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.encerramento-choice-title {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text);
    white-space: nowrap;
}

.encerramento-choice-hint {
    display: none;
}

.encerramento-choice-copy {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

#chatsUrgenciaPrioridadeFieldset .encerramento-choice-hint,
.encerramento-choice--compact .encerramento-choice-hint {
    display: block;
    font-size: 0.71875rem;
    font-weight: 500;
    color: var(--text-muted, #64748b);
    line-height: 1.3;
    white-space: normal;
}

.encerramento-choice:has(input:checked) {
    border-color: var(--corp-focus-border);
    background: rgba(var(--corp-accent-neon-rgb), 0.1);
    box-shadow: var(--corp-focus-ring);
}

.encerramento-choice--sim:has(input:checked) {
    background: rgba(100, 116, 139, 0.1);
    border-color: #64748b;
    box-shadow: 0 0 0 0.0625rem rgba(100, 116, 139, 0.15);
}

.encerramento-choice.is-disabled,
.encerramento-choice--sim:has(input:disabled) {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.encerramento-aviso-contato {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.encerramento-actions {
    flex: 0 0 auto;
    margin-top: 0;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    margin-bottom: -0.125rem;
    padding: 0.75rem 1.25rem 0.25rem;
    border-top: 0.0625rem solid var(--border);
    background: var(--fd-surface, var(--surface));
    position: sticky;
    bottom: 0;
    z-index: 2;
}

.encerramento-actions--center {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.625rem;
}

@media (max-width: 520px) {
    .encerramento-pesquisa-row {
        flex-direction: column;
        align-items: stretch;
    }

    .encerramento-pesquisa-opcoes {
        width: 100%;
    }

    .encerramento-choice {
        flex: 1 1 auto;
    }
}

/* Sprint 241 — Modais Tickets: detalhe + encerramento (cores corporativas) */

#modalDetalhes.ativo .modal-content {
    border: 0.0625rem solid var(--corp-border-subtle);
    border-radius: var(--corp-radius-md);
    box-shadow: var(--corp-shadow-card);
}

.modal-encerramento.ativo .modal-content-encerramento {
    border: none !important;
    border-radius: var(--corp-radius-md);
    box-shadow: var(--corp-shadow-card);
}

#modalDetalhes .modal-header,
.modal-encerramento .modal-header-compact {
    border-bottom-color: var(--corp-border-strong);
    background: rgba(var(--corp-bg-deep-rgb), 0.04);
}

html[data-theme='dark'] #modalDetalhes .modal-header,
html[data-theme='dark'] .modal-encerramento .modal-header-compact {
    background: rgba(var(--corp-accent-neon-rgb), 0.06);
}

/* Pausar chamado — cabeçalho amarelo (paridade fila Pausado / Monitoramento) */
#modalPausaChamado.modal-encerramento .modal-header-compact {
    background: color-mix(in srgb, #eab308 26%, #fffbeb);
    border-bottom-color: color-mix(in srgb, #d97706 38%, var(--corp-border-strong));
    border-top-left-radius: var(--corp-radius-md, 0.75rem);
    border-top-right-radius: var(--corp-radius-md, 0.75rem);
}

#modalPausaChamado.modal-encerramento .modal-header-compact h2 {
    color: #854d0e;
}

#modalPausaChamado.modal-encerramento .modal-header-compact button {
    color: #a16207;
}

#modalPausaChamado.modal-encerramento .modal-header-compact button:hover {
    color: #713f12;
}

html[data-theme='dark'] #modalPausaChamado.modal-encerramento .modal-header-compact {
    background: color-mix(in srgb, #eab308 24%, rgba(var(--corp-bg-deep-rgb), 1));
    border-bottom-color: color-mix(in srgb, #eab308 42%, var(--corp-border-strong));
}

html[data-theme='dark'] #modalPausaChamado.modal-encerramento .modal-header-compact h2 {
    color: #fde68a;
}

html[data-theme='dark'] #modalPausaChamado.modal-encerramento .modal-header-compact button {
    color: #fcd34d;
}

/* Encerrar ticket — cabeçalho cinza escuro */
#modalEncerramento.modal-encerramento .modal-header-compact {
    background: #334155;
    border-bottom-color: #1e293b;
    border-top-left-radius: var(--corp-radius-md, 0.75rem);
    border-top-right-radius: var(--corp-radius-md, 0.75rem);
}

#modalEncerramento.modal-encerramento .modal-header-compact h2 {
    color: #f8fafc;
}

#modalEncerramento.modal-encerramento .modal-header-compact button {
    color: #cbd5e1;
}

#modalEncerramento.modal-encerramento .modal-header-compact button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

html[data-theme='dark'] #modalEncerramento.modal-encerramento .modal-header-compact {
    background: color-mix(in srgb, #334155 88%, var(--corp-bg-deep, #1e293b));
    border-bottom-color: #0f172a;
}

html[data-theme='dark'] #modalEncerramento.modal-encerramento .modal-header-compact h2 {
    color: #f1f5f9;
}

#modalDetalhes .modal-header h2,
.modal-encerramento .modal-header-compact h2 {
    color: var(--corp-text-on-light);
}

#modalDetalhes .modal-body dt {
    color: var(--corp-bg-deep);
}

html[data-theme='dark'] #modalDetalhes .modal-body dt {
    color: var(--corp-accent-neon);
}

#modalDetalhes .button.button-primary,
.modal-encerramento .button.button-primary,
#modalDetalhes #detailEncerrarTicketBtn.button-secondary {
    border-radius: var(--corp-radius-sm);
}

#modalDetalhes .button.button-primary,
.modal-encerramento .encerramento-actions .button.button-primary {
    background: var(--corp-btn-primary-bg);
    color: var(--corp-btn-primary-text);
    border: none;
    font-weight: 600;
}

#modalDetalhes .button.button-primary:hover:not(:disabled),
.modal-encerramento .encerramento-actions .button.button-primary:hover:not(:disabled) {
    filter: brightness(1.05);
    box-shadow: var(--corp-shadow-neon-glow);
}

.modal-encerramento .encerramento-stack select,
.modal-encerramento .encerramento-stack input,
.modal-encerramento .encerramento-stack textarea,
.modal-encerramento .encerramento-comentario textarea {
    border: 0.0625rem solid var(--corp-border-strong);
    border-radius: var(--corp-radius-sm);
}

.modal-encerramento .encerramento-stack select:focus,
.modal-encerramento .encerramento-stack input:focus,
.modal-encerramento .encerramento-stack textarea:focus {
    outline: none;
    border-color: var(--corp-focus-border);
    box-shadow: var(--corp-focus-ring);
}

.modal-novo-chamado .novo-chamado-contato-novo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.modal-novo-chamado .novo-chamado-contato-novo.hidden {
    display: none !important;
}

.modal-novo-chamado .novo-chamado-contato-novo .form-group:last-child {
    grid-column: 1 / -1;
}

#modalAcompNovoChamado.modal-encerramento .modal-header-compact {
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.08) 28%, transparent 46%),
        linear-gradient(155deg, #001a4d 0%, #002a72 52%, #0046b8 100%);
    border-bottom-color: #003a99;
    border-top-left-radius: var(--corp-radius-md, 0.75rem);
    border-top-right-radius: var(--corp-radius-md, 0.75rem);
}

#modalAcompNovoChamado.modal-encerramento .modal-header-compact h2 {
    color: #ffffff;
}

#modalAcompNovoChamado.modal-encerramento .modal-header-compact button {
    color: rgba(255, 255, 255, 0.86);
}

#modalAcompNovoChamado.modal-encerramento .modal-header-compact button:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

#modalAcompNovoChamado.modal-encerramento .encerramento-actions #acompNovoChamadoConfirmarBtn.button.button-primary {
    background: linear-gradient(155deg, #001a4d 0%, #002a72 52%, #0046b8 100%);
    border: 0.0625rem solid rgba(0, 70, 184, 0.72);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 0.875rem 1.75rem -1rem rgba(0, 70, 184, 0.72);
    filter: none;
}

#modalAcompNovoChamado.modal-encerramento .encerramento-actions #acompNovoChamadoConfirmarBtn.button.button-primary:hover:not(:disabled) {
    background: linear-gradient(155deg, #00215f 0%, #00368f 52%, #075bd8 100%);
    border-color: rgba(0, 70, 184, 0.9);
    color: #ffffff;
    box-shadow: 0 1rem 2rem -1rem rgba(0, 70, 184, 0.82);
    filter: none;
    transform: none;
}

#modalAcompNovoChamado.modal-encerramento .encerramento-actions #acompNovoChamadoConfirmarBtn.button.button-primary:disabled {
    opacity: 0.68;
    box-shadow: none;
}

@media (max-width: 640px) {
    .modal-novo-chamado .novo-chamado-contato-novo {
        grid-template-columns: 1fr;
    }
}

.modal-encerramento .encerramento-pesquisa-inline {
    border: 0.0625rem solid var(--corp-border-subtle);
    border-radius: var(--corp-radius-sm);
    background: var(--corp-surface-muted);
}

.modal-encerramento .encerramento-choice {
    border-radius: var(--corp-radius-sm);
    border-color: var(--corp-border-strong);
}

.modal-encerramento .encerramento-choice:has(input:checked) {
    border-color: var(--corp-accent-neon);
    background: rgba(var(--corp-accent-neon-rgb), 0.1);
    box-shadow: var(--corp-focus-ring);
}

.modal-encerramento .encerramento-choice--sim:has(input:checked) {
    background: rgba(22, 163, 74, 0.12);
    border-color: #16a34a;
    box-shadow: 0 0 0 0.0625rem rgba(22, 163, 74, 0.2);
}

.modal-encerramento .encerramento-actions {
    border-top-color: var(--corp-border-strong);
}

.modal-encerramento .encerramento-aviso-contato {
    color: var(--corp-text-muted-on-light);
    padding: var(--corp-space-xs) var(--corp-space-sm);
    border-radius: var(--corp-radius-sm);
    background: rgba(234, 88, 12, 0.08);
    border: 0.0625rem solid rgba(234, 88, 12, 0.25);
}

/* Encerramento — troféu / cinza (sem verde corporativo) */
.modal-encerramento {
    --enc-trophy-50: #fffbeb;
    --enc-trophy-100: #fef3c7;
    --enc-trophy-200: #fde68a;
    --enc-trophy-500: #f59e0b;
    --enc-trophy-600: #d97706;
    --enc-trophy-700: #b45309;
    --enc-gray-line: #d1d5db;
    --enc-gray-line-dark: #9ca3af;
    --enc-gray-btn: #374151;
    --enc-gray-btn-hover: #1f2937;
}

.modal-encerramento.ativo {
    z-index: 1500;
    background: var(--app-scrim-bg, rgba(8, 16, 38, 0.38));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.modal-encerramento.ativo .modal-content-encerramento {
    border: none !important;
    box-shadow: 0 1.125rem 3rem rgba(15, 23, 42, 0.18);
}

.modal-encerramento.ativo .modal-content-encerramento.is-attention-pulse {
    animation: encerramento-modal-attention 0.95s ease-in-out;
}

@keyframes encerramento-modal-attention {
    0%,
    100% {
        box-shadow:
            0 1.125rem 3rem rgba(15, 23, 42, 0.18),
            0 0 0 0 rgba(148, 163, 184, 0);
    }
    20%,
    60% {
        box-shadow:
            0 1.125rem 3rem rgba(15, 23, 42, 0.18),
            0 0 0 0.125rem rgba(148, 163, 184, 0.55),
            0 0 1.375rem rgba(148, 163, 184, 0.35);
    }
    40%,
    80% {
        box-shadow:
            0 1.125rem 3rem rgba(15, 23, 42, 0.18),
            0 0 0 0 rgba(148, 163, 184, 0);
    }
}

body.encerramento-modal-lock {
    overflow: hidden;
}

html[data-theme='dark'] .modal-encerramento.ativo .modal-content-encerramento {
    border: none !important;
}

.modal-encerramento .encerramento-pesquisa-inline {
    --enc-pesquisa-stars-width: 8.375rem;
    position: relative;
    margin: 0;
    padding: 1.125rem 0.875rem 0.75rem;
    border: 0.0625rem solid var(--enc-trophy-200);
    border-top: none;
    border-radius: 0.625rem;
    background: var(--enc-trophy-50);
    overflow: visible;
}

.modal-encerramento .encerramento-pesquisa-inline::before,
.modal-encerramento .encerramento-pesquisa-inline::after {
    content: '';
    position: absolute;
    top: 0;
    width: calc(50% - var(--enc-pesquisa-stars-width) / 2);
    height: 0;
    border-top: 0.0625rem solid var(--enc-trophy-200);
    pointer-events: none;
}

.modal-encerramento .encerramento-pesquisa-inline::before {
    left: 0;
    border-top-left-radius: 0.625rem;
}

.modal-encerramento .encerramento-pesquisa-inline::after {
    right: 0;
    border-top-right-radius: 0.625rem;
}

.modal-encerramento .encerramento-pesquisa-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: var(--enc-pesquisa-stars-width);
    padding: 0 0.125rem;
    background: var(--enc-trophy-50);
    pointer-events: none;
    z-index: 2;
}

.modal-encerramento .encerramento-pesquisa-stars svg {
    display: block;
    width: 1.375rem;
    height: 1.375rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0.0625rem 0.125rem rgba(120, 53, 15, 0.2));
}

.modal-encerramento .encerramento-pesquisa-medal {
    display: none !important;
}

.modal-encerramento .encerramento-stack select:focus,
.modal-encerramento .encerramento-stack textarea:focus {
    border-color: var(--enc-gray-line-dark);
    box-shadow: 0 0 0 0.125rem rgba(107, 114, 128, 0.25);
}

.modal-encerramento .encerramento-choice {
    border: 0.0625rem solid var(--enc-trophy-200) !important;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.85);
    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}

.modal-encerramento .encerramento-choice--nao {
    border-color: color-mix(in srgb, var(--enc-trophy-600) 38%, var(--enc-trophy-200)) !important;
}

.modal-encerramento .encerramento-choice--sim {
    border-color: color-mix(in srgb, var(--enc-trophy-500) 38%, var(--enc-trophy-200)) !important;
}

.modal-encerramento .encerramento-choice:has(input:checked) {
    box-shadow: none !important;
}

.modal-encerramento .encerramento-choice--nao:has(input:checked) {
    background: var(--enc-trophy-600);
    border-color: var(--enc-trophy-600) !important;
}

.modal-encerramento .encerramento-choice--nao:has(input:checked) .encerramento-choice-title {
    color: #fff;
}

.modal-encerramento .encerramento-choice--sim:has(input:checked) {
    background: var(--enc-trophy-500);
    border-color: var(--enc-trophy-500) !important;
}

.modal-encerramento .encerramento-choice--sim:has(input:checked) .encerramento-choice-title {
    color: #fff;
}

.modal-encerramento .encerramento-choice--nao:hover {
    background: var(--enc-trophy-600);
    border-color: var(--enc-trophy-600) !important;
    box-shadow: none !important;
}

.modal-encerramento .encerramento-choice--nao:hover .encerramento-choice-title {
    color: #fff;
}

.modal-encerramento .encerramento-choice--sim:hover {
    background: var(--enc-trophy-500);
    border-color: var(--enc-trophy-500) !important;
    box-shadow: none !important;
}

.modal-encerramento .encerramento-choice--sim:hover .encerramento-choice-title {
    color: #fff;
}

.modal-encerramento .encerramento-choice--nao:has(input:checked):hover {
    background: var(--enc-trophy-600);
    border-color: var(--enc-trophy-600) !important;
}

.modal-encerramento .encerramento-choice--sim:has(input:checked):hover {
    background: var(--enc-trophy-500);
    border-color: var(--enc-trophy-500) !important;
}

.modal-encerramento .encerramento-actions .button.button-primary {
    background: var(--enc-gray-btn);
    color: #fff;
    border: 0.0625rem solid var(--enc-gray-line-dark);
    filter: none;
    box-shadow: none;
}

.modal-encerramento .encerramento-actions .button.button-primary:hover:not(:disabled) {
    background: var(--enc-gray-btn-hover);
    border-color: var(--enc-gray-btn-hover);
    color: #fff;
    font-weight: 700;
    box-shadow: none;
    filter: none;
    transform: none;
}

html[data-theme='dark'] .modal-encerramento .encerramento-pesquisa-inline {
    background: rgba(254, 243, 199, 0.12);
    border-color: rgba(251, 191, 36, 0.35);
}

html[data-theme='dark'] .modal-encerramento .encerramento-pesquisa-inline::before,
html[data-theme='dark'] .modal-encerramento .encerramento-pesquisa-inline::after {
    border-top-color: rgba(251, 191, 36, 0.35);
}

html[data-theme='dark'] .modal-encerramento .encerramento-pesquisa-stars {
    background: rgba(254, 243, 199, 0.12);
}

html[data-theme='dark'] .modal-encerramento .encerramento-choice {
    background: rgba(255, 255, 255, 0.06);
    border: 0.0625rem solid rgba(251, 191, 36, 0.28) !important;
    box-shadow: none !important;
}

html[data-theme='dark'] .modal-encerramento .encerramento-choice--nao {
    border-color: color-mix(in srgb, var(--enc-trophy-600) 42%, rgba(251, 191, 36, 0.22)) !important;
}

html[data-theme='dark'] .modal-encerramento .encerramento-choice--sim {
    border-color: color-mix(in srgb, var(--enc-trophy-500) 42%, rgba(251, 191, 36, 0.22)) !important;
}

html[data-theme='dark'] .modal-encerramento .encerramento-choice--nao:has(input:checked),
html[data-theme='dark'] .modal-encerramento .encerramento-choice--nao:hover {
    border-color: var(--enc-trophy-600) !important;
}

html[data-theme='dark'] .modal-encerramento .encerramento-choice--sim:has(input:checked),
html[data-theme='dark'] .modal-encerramento .encerramento-choice--sim:hover {
    border-color: var(--enc-trophy-500) !important;
}

html[data-theme='dark'] .modal-encerramento .modal-header-compact {
    background: rgba(255, 255, 255, 0.04);
}

/* ── Custom combobox — encerramento modal ──────────────────────────────── */
.enc-select-wrapper {
    position: relative;
    width: 100%;
}

.enc-select-trigger {
    width: 100%;
    min-height: 2.625rem;
    padding: 0.625rem 2.375rem 0.625rem 0.875rem;
    border: 0.0625rem solid var(--corp-border-strong, var(--border));
    border-radius: var(--corp-radius-sm, 0.75rem);
    background-color: var(--surface, #fff);
    color: var(--text);
    font-size: 0.875rem;
    font-family: inherit;
    line-height: 1.35;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 0.0625rem 0.125rem rgba(15, 23, 42, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.enc-select-trigger:hover:not(:disabled) {
    border-color: color-mix(in srgb, var(--corp-focus-border, #00ffaa) 40%, var(--border));
}

.enc-select-trigger:focus {
    outline: none;
    border-color: var(--corp-focus-border, var(--primary-light));
    box-shadow: var(--corp-focus-ring, 0 0 0 0.1875rem rgba(0, 255, 170, 0.22));
}

.enc-select-trigger:disabled,
.enc-select--disabled .enc-select-trigger {
    opacity: 0.65;
    cursor: not-allowed;
    background-color: var(--surface-hover, #f1f5f9);
    pointer-events: none;
}

.enc-select-trigger-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.enc-select-trigger-text.is-placeholder {
    color: var(--text-muted, #94a3b8);
}

.enc-select-chevron {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    opacity: 0.55;
    transition: transform 0.2s ease;
    pointer-events: none;
}

.enc-select-chevron svg {
    display: block;
}

.enc-select--open .enc-select-chevron {
    transform: translateY(-50%) rotate(180deg);
}

.enc-select-listbox {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    z-index: 1060;
    background: var(--surface, #fff);
    border: 0.0625rem solid var(--corp-border-strong, var(--border));
    border-radius: var(--corp-radius-sm, 0.75rem);
    box-shadow: 0 0.5rem 1.5rem rgba(15, 23, 42, 0.13), 0 0.125rem 0.375rem rgba(15, 23, 42, 0.07);
    padding: 0.25rem;
    max-height: 13.75rem;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    opacity: 0;
    transform: translateY(-0.375rem);
    pointer-events: none;
    transition: opacity 0.14s ease, transform 0.14s ease;
    scrollbar-width: thin;
}

.enc-select--open .enc-select-listbox,
.enc-select-listbox.enc-select-listbox--open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Portal no body: escapa overflow do drawer e pode abrir para cima. */
.enc-select-listbox.enc-select-listbox--portal {
    position: fixed;
    right: auto;
    z-index: 12060;
    margin: 0;
}

.enc-select--flip-up .enc-select-listbox:not(.enc-select-listbox--portal),
.enc-select-listbox.enc-select-listbox--portal.enc-select-listbox--flip-up:not(.enc-select-listbox--open) {
    top: auto;
    bottom: calc(100% + 0.25rem);
    transform: translateY(0.375rem);
}

.enc-select--flip-up.enc-select--open .enc-select-listbox:not(.enc-select-listbox--portal),
.enc-select-listbox.enc-select-listbox--portal.enc-select-listbox--flip-up.enc-select-listbox--open {
    transform: translateY(0);
}

.enc-select-search {
    list-style: none;
    padding: 0.375rem 0.5rem;
    border-bottom: 0.0625rem solid var(--border, #e2e8f0);
    position: sticky;
    top: 0;
    background: var(--surface, #fff);
    z-index: 1;
}

.enc-select-search-input {
    width: 100%;
    box-sizing: border-box;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.8125rem;
    color: var(--text);
    padding: 0;
    font-family: inherit;
}

.enc-select-search-input::placeholder {
    color: var(--text-muted, #94a3b8);
}

.enc-option--hidden {
    display: none;
}

html[data-theme='dark'] .enc-select-search {
    background: var(--corp-surface-elevated, #1e293b);
    border-bottom-color: var(--corp-border-strong, var(--border));
}

.enc-select-option {
    padding: 0.5625rem 0.625rem 0.5625rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    color: var(--text);
    transition: background-color 0.1s;
    list-style: none;
    user-select: none;
}

.enc-select-option--with-desc {
    align-items: flex-start;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.enc-select-option-main {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
    flex: 1 1 auto;
}

.enc-select-option-title {
    font-size: 0.84375rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text, #0f172a);
}

.enc-select-option-path {
    font-size: 0.71875rem;
    font-weight: 450;
    color: var(--text-muted, #64748b);
    line-height: 1.35;
}

.enc-select-option-hint {
    color: #38bdf8;
    font-weight: 500;
}

.enc-select-option-desc {
    font-size: 0.75rem;
    font-weight: 450;
    color: var(--text-muted, #64748b);
    line-height: 1.35;
}

.enc-select-option.is-selected .enc-select-option-path,
.enc-select-option.is-selected .enc-select-option-desc {
    color: color-mix(in srgb, var(--text-muted, #64748b) 70%, var(--text));
}

.enc-select-option.is-selected .enc-select-option-hint {
    color: #0ea5e9;
}

.enc-select-option:hover,
.enc-select-option:focus {
    background-color: var(--surface-hover, #f1f5f9);
    outline: none;
}

.enc-select-option.is-placeholder {
    color: var(--text-muted, #94a3b8);
}

.enc-select-option.is-selected {
    background-color: color-mix(in srgb, var(--corp-accent-neon, #00ffaa) 10%, var(--surface));
    font-weight: 500;
}

.enc-select-option.is-selected:hover {
    background-color: color-mix(in srgb, var(--corp-accent-neon, #00ffaa) 16%, var(--surface));
}

.enc-select-option.enc-option--hidden,
.enc-select-empty-hint.enc-option--hidden {
    display: none !important;
}

.enc-select-empty-hint {
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-muted, #94a3b8);
    list-style: none;
}

.enc-select-include-new {
    list-style: none;
    margin: 0;
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--corp-accent-neon, #2563eb);
    cursor: pointer;
    border-bottom: 0.0625rem solid var(--border, #e5e7eb);
    background: color-mix(in srgb, var(--corp-accent-neon, #2563eb) 6%, transparent);
}

.enc-select-include-new:hover,
.enc-select-include-new:focus {
    background: color-mix(in srgb, var(--corp-accent-neon, #2563eb) 12%, transparent);
    outline: none;
}

.enc-select-include-new--disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.enc-catalog-quick-add-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 0.25rem 0.25rem;
}

.enc-catalog-quick-add-label {
    font-size: 0.875rem;
    font-weight: 600;
}

.enc-catalog-quick-add-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.625rem;
    border: 0.0625rem solid var(--border, #d1d5db);
    border-radius: 0.375rem;
    font-size: 0.9375rem;
}

.enc-catalog-quick-add-error {
    color: var(--danger, #dc2626);
    margin: 0;
}

.enc-select-option-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.enc-select-check {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    opacity: 0;
    color: var(--corp-accent-neon, #00ffaa);
    transition: opacity 0.1s;
}

.enc-select-check svg {
    display: block;
}

.enc-select-option.is-selected .enc-select-check {
    opacity: 1;
}

/* Dark theme */
html[data-theme='dark'] .enc-select-trigger {
    background-color: var(--surface, #1e293b);
    border-color: var(--corp-border-strong, var(--border));
    box-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.28);
}

html[data-theme='dark'] .enc-select-trigger:disabled,
html[data-theme='dark'] .enc-select--disabled .enc-select-trigger {
    background-color: var(--surface-hover, #0f172a);
}

html[data-theme='dark'] .enc-select-listbox {
    background: var(--corp-surface-elevated, #1e293b);
    border-color: var(--corp-border-strong, var(--border));
    box-shadow: 0 0.5rem 1.75rem rgba(0, 0, 0, 0.45), 0 0.125rem 0.5rem rgba(0, 0, 0, 0.28);
}

html[data-theme='dark'] .enc-select-option:hover,
html[data-theme='dark'] .enc-select-option:focus {
    background-color: var(--surface-hover, #334155);
}

html[data-theme='dark'] .enc-select-option.is-selected {
    background-color: color-mix(in srgb, var(--corp-accent-neon, #00ffaa) 12%, var(--surface));
}

html[data-theme='dark'] .enc-select-option.is-selected:hover {
    background-color: color-mix(in srgb, var(--corp-accent-neon, #00ffaa) 18%, var(--surface));
}

/* TH-11: cinza — modals */
html[data-theme='cinza'] .encerramento-ia-btn {
    background-color: rgba(11,99,214,0.15);
    color: #0a2c5c;
    border-color: rgba(10,61,128,0.3);
}
html[data-theme='cinza'] .encerramento-ia-btn:hover:not(:disabled) {
    background-color: rgba(11,99,214,0.25);
    border-color: rgba(10,61,128,0.5);
    color: #0a2c5c;
}
html[data-theme='cinza'] #modalDetalhes .modal-header,
html[data-theme='cinza'] .modal-encerramento .modal-header-compact {
    background: rgba(11,99,214,0.06);
}
html[data-theme='cinza'] #modalPausaChamado.modal-encerramento .modal-header-compact {
    background: color-mix(in srgb, #eab308 24%, #7e8794);
    border-bottom-color: color-mix(in srgb, #eab308 42%, #4a5462);
}
html[data-theme='cinza'] #modalPausaChamado.modal-encerramento .modal-header-compact h2 { color: #6b3b08; }
html[data-theme='cinza'] #modalPausaChamado.modal-encerramento .modal-header-compact button { color: #6b3b08; }
html[data-theme='cinza'] #modalEncerramento.modal-encerramento .modal-header-compact {
    background: color-mix(in srgb, #acb3bc 88%, #7e8794);
    border-bottom-color: #7e8794;
}
html[data-theme='cinza'] #modalEncerramento.modal-encerramento .modal-header-compact h2 { color: #14181d; }
html[data-theme='cinza'] #modalDetalhes .modal-body dt { color: var(--fd-primary, #0b63d6); }
html[data-theme='cinza'] .modal-encerramento.ativo .modal-content-encerramento { border: none !important; }
html[data-theme='cinza'] .modal-encerramento .encerramento-pesquisa-inline {
    background: rgba(254,243,199,0.12);
    border-color: rgba(251,191,36,0.35);
}
html[data-theme='cinza'] .modal-encerramento .encerramento-pesquisa-inline::before,
html[data-theme='cinza'] .modal-encerramento .encerramento-pesquisa-inline::after { border-top-color: rgba(251,191,36,0.35); }
html[data-theme='cinza'] .modal-encerramento .encerramento-pesquisa-stars { background: rgba(254,243,199,0.12); }
html[data-theme='cinza'] .modal-encerramento .encerramento-choice {
    background: rgba(255,255,255,0.06);
    border: 0.0625rem solid rgba(251,191,36,0.28) !important;
}
html[data-theme='cinza'] .modal-encerramento .encerramento-choice--nao { border-color: color-mix(in srgb, var(--enc-trophy-600) 42%, rgba(251,191,36,0.22)) !important; }
html[data-theme='cinza'] .modal-encerramento .encerramento-choice--sim { border-color: color-mix(in srgb, var(--enc-trophy-500) 42%, rgba(251,191,36,0.22)) !important; }
html[data-theme='cinza'] .modal-encerramento .encerramento-choice--nao:has(input:checked),
html[data-theme='cinza'] .modal-encerramento .encerramento-choice--nao:hover { border-color: var(--enc-trophy-600) !important; }
html[data-theme='cinza'] .modal-encerramento .encerramento-choice--sim:has(input:checked),
html[data-theme='cinza'] .modal-encerramento .encerramento-choice--sim:hover { border-color: var(--enc-trophy-500) !important; }
html[data-theme='cinza'] .modal-encerramento .modal-header-compact { background: rgba(255,255,255,0.04); }
html[data-theme='cinza'] .enc-select-search {
    background: var(--surface, #9fa7b1);
    border-bottom-color: var(--border, #4a5462);
}
html[data-theme='cinza'] .enc-select-trigger {
    background-color: var(--surface, #9fa7b1);
    border-color: var(--border, #4a5462);
    box-shadow: 0 0.0625rem 0.125rem rgba(0,0,0,0.28);
}
html[data-theme='cinza'] .enc-select-trigger:disabled,
html[data-theme='cinza'] .enc-select--disabled .enc-select-trigger { background-color: var(--field, #7e8794); }
html[data-theme='cinza'] .enc-select-listbox {
    background: var(--surface, #9fa7b1);
    border-color: var(--border, #4a5462);
    box-shadow: 0 0.5rem 1.75rem rgba(0,0,0,0.40), 0 0.125rem 0.5rem rgba(0,0,0,0.24);
}
html[data-theme='cinza'] .enc-select-option:hover,
html[data-theme='cinza'] .enc-select-option:focus { background-color: var(--surface-2, #acb3bc); }
html[data-theme='cinza'] .enc-select-option.is-selected { background-color: color-mix(in srgb, var(--primary, #0b63d6) 12%, var(--surface, #9fa7b1)); }
html[data-theme='cinza'] .enc-select-option.is-selected:hover { background-color: color-mix(in srgb, var(--primary, #0b63d6) 18%, var(--surface, #9fa7b1)); }

/* TH-7 — overlay e modais genéricos (cinza + dark) */
html[data-theme='dark'] .modal,
html[data-theme='cinza'] .modal {
    background: rgba(0, 0, 0, 0.62);
}

html[data-theme='dark'] .modal-content,
html[data-theme='cinza'] .modal-content {
    border-color: var(--line, var(--fd-border));
    box-shadow: var(--shadow-2, var(--fd-shadow-2));
}

html[data-theme='dark'] .modal-header button:hover,
html[data-theme='cinza'] .modal-header button:hover {
    background: color-mix(in srgb, var(--fd-primary) 10%, var(--fd-surface));
    color: var(--fd-text);
}

html[data-theme='dark'] .modal-footer,
html[data-theme='cinza'] .modal-footer {
    border-top-color: var(--fd-border);
}

/* ========== Modal rejeitar chamado — confirmação contextual ========== */
#modalChatsRejeitarChamado.modal-chats-rejeitar {
    --chats-rej-radius: 0.25rem;
    --chats-rej-radius-ctrl: 0.75rem;
    --chats-rej-radius-btn: 0.625rem;
    --chats-rej-pad: 1.5rem;
    --chats-rej-gap: 1.125rem;
    --chats-rej-field-h: 2.75rem;
    --chats-rej-danger: #c0392b;
    --chats-rej-danger-soft: #fdeeee;
    --chats-rej-ink: #1e293b;
    --chats-rej-muted: #64748b;
    --chats-rej-line: #e2e8f0;
    --chats-rej-blue-soft: #eff6ff;
    --chats-rej-blue-ink: #1e3a5f;
}

#modalChatsRejeitarChamado.modal-chats-rejeitar.ativo {
    background: var(--app-scrim-bg, rgba(8, 16, 38, 0.38));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Ganha de .modal-encerramento.ativo .modal-content-encerramento (cantos retos / radius md). */
#modalChatsRejeitarChamado.modal-encerramento.ativo .modal-chats-rejeitar-content,
#modalChatsRejeitarChamado .modal-chats-rejeitar-content {
    width: min(38.75rem, 94vw) !important;
    max-width: 40rem !important;
    border-radius: var(--chats-rej-radius) !important;
    box-shadow: 0 1.125rem 3rem rgba(15, 23, 42, 0.16), 0 0.25rem 0.75rem rgba(15, 23, 42, 0.06) !important;
    border: 0.0625rem solid color-mix(in srgb, var(--chats-rej-line) 80%, transparent) !important;
    padding: 0 !important;
    /* Clip do header/footer no raio — overflow:visible deixava o card visualmente “quadrado”. */
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    max-height: min(92vh, 45rem);
}

#modalChatsRejeitarChamado .chats-rej-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: var(--chats-rej-pad) var(--chats-rej-pad) 1rem !important;
    border-bottom: 0.0625rem solid color-mix(in srgb, var(--chats-rej-danger) 22%, var(--chats-rej-line));
    background:
        linear-gradient(180deg,
            color-mix(in srgb, var(--chats-rej-danger) 16%, #fff) 0%,
            var(--chats-rej-danger-soft) 48%,
            color-mix(in srgb, var(--chats-rej-danger-soft) 70%, #fff) 100%) !important;
    border-radius: var(--chats-rej-radius) var(--chats-rej-radius) 0 0;
}

#modalChatsRejeitarChamado .chats-rej-header > button {
    color: color-mix(in srgb, var(--chats-rej-danger) 72%, #7f1d1d);
}

#modalChatsRejeitarChamado .chats-rej-header > button:hover {
    color: var(--chats-rej-danger);
    background: color-mix(in srgb, var(--chats-rej-danger) 10%, transparent);
}

#modalChatsRejeitarChamado .chats-rej-header-main {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
}

#modalChatsRejeitarChamado .chats-rej-header-icon {
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 62.4375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--chats-rej-danger);
    background: color-mix(in srgb, #fff 78%, var(--chats-rej-danger-soft));
    border: 0.0625rem solid color-mix(in srgb, var(--chats-rej-danger) 18%, transparent);
}

#modalChatsRejeitarChamado .chats-rej-header-icon svg {
    display: block;
}

#modalChatsRejeitarChamado .chats-rej-header-text {
    min-width: 0;
}

#modalChatsRejeitarChamado .chats-rej-header h2 {
    margin: 0 !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: color-mix(in srgb, var(--chats-rej-danger) 55%, #1e293b) !important;
}

#modalChatsRejeitarChamado .chats-rej-contexto {
    margin: 0.25rem 0 0 !important;
    font-size: 0.8125rem;
    font-weight: 500;
    color: color-mix(in srgb, var(--chats-rej-danger) 28%, var(--chats-rej-muted));
    line-height: 1.35;
}

#modalChatsRejeitarChamado .chats-rej-contexto.hidden {
    display: none !important;
}

#modalChatsRejeitarChamado .chats-rej-body {
    padding: 1.25rem var(--chats-rej-pad) 0.5rem !important;
    overflow: auto;
    flex: 1 1 auto;
    min-height: 0;
}

#modalChatsRejeitarChamado .chats-rej-form {
    display: flex;
    flex-direction: column;
    gap: var(--chats-rej-gap);
    margin: 0;
}

#modalChatsRejeitarChamado .chats-rej-impact {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 0.875rem;
    border-radius: var(--chats-rej-radius-ctrl);
    background: var(--chats-rej-danger-soft);
    border: none;
}

#modalChatsRejeitarChamado .chats-rej-impact-icon {
    flex: 0 0 auto;
    color: var(--chats-rej-danger);
    margin-top: 0.0625rem;
}

#modalChatsRejeitarChamado .chats-rej-impact-title {
    margin: 0;
    font-size: 0.84375rem;
    font-weight: 600;
    color: #7f1d1d;
    line-height: 1.4;
}

#modalChatsRejeitarChamado .chats-rej-impact-sub {
    margin: 0.25rem 0 0;
    font-size: 0.78125rem;
    font-weight: 450;
    color: color-mix(in srgb, #7f1d1d 72%, #64748b);
    line-height: 1.4;
}

#modalChatsRejeitarChamado .chats-rej-field {
    margin: 0 !important;
}

#modalChatsRejeitarChamado .chats-rej-field > label {
    display: block;
    margin: 0 0 0.5rem;
    font-size: 0.84375rem;
    font-weight: 600;
    color: var(--chats-rej-ink);
}

#modalChatsRejeitarChamado .chats-rej-motivo-trigger {
    width: 100%;
    min-height: var(--chats-rej-field-h);
    padding: 0.625rem 2.5rem 0.625rem 0.875rem;
    border: 0.0625rem solid var(--chats-rej-line);
    border-radius: var(--chats-rej-radius-ctrl) !important;
    background: #fff;
    color: var(--chats-rej-ink);
    font: inherit;
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    box-shadow: 0 0.0625rem 0.125rem rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#modalChatsRejeitarChamado .chats-rej-motivo-trigger:hover {
    border-color: #cbd5e1;
}

#modalChatsRejeitarChamado .chats-rej-motivo-trigger:focus-visible {
    outline: 0.125rem solid #3b82f6;
    outline-offset: 0.0625rem;
    border-color: #93c5fd;
}

#modalChatsRejeitarChamado .chats-rej-motivo-trigger-text.is-placeholder {
    color: #94a3b8;
}

#modalChatsRejeitarChamado .chats-rej-motivo-chevron {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

#modalChatsRejeitarChamado .chats-rej-motivo-trigger[aria-expanded="true"] .chats-rej-motivo-chevron {
    transform: translateY(-50%) rotate(180deg);
}

#modalChatsRejeitarChamado .chats-rej-field textarea {
    width: 100%;
    min-height: 6.5rem;
    max-height: 7rem;
    resize: vertical;
    padding: 0.75rem 0.875rem;
    border: 0.0625rem solid var(--chats-rej-line);
    border-radius: var(--chats-rej-radius-ctrl) !important;
    font: inherit;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--chats-rej-ink);
    background: #fff;
    box-shadow: 0 0.0625rem 0.125rem rgba(15, 23, 42, 0.04);
}

#modalChatsRejeitarChamado .chats-rej-field textarea:focus {
    outline: 0.125rem solid #3b82f6;
    outline-offset: 0.0625rem;
    border-color: #93c5fd;
}

#modalChatsRejeitarChamado .chats-rej-just-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

#modalChatsRejeitarChamado .chats-rej-just-hint {
    font-size: 0.75rem;
    color: var(--chats-rej-muted);
    line-height: 1.35;
}

#modalChatsRejeitarChamado .chats-rej-just-count {
    flex: 0 0 auto;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    color: #94a3b8;
    font-weight: 500;
}

#modalChatsRejeitarChamado .chats-rej-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem var(--chats-rej-pad) var(--chats-rej-pad);
    border-top: 0.0625rem solid var(--chats-rej-line);
    background: var(--surface, #fff);
    flex: 0 0 auto;
    border-radius: 0 0 var(--chats-rej-radius) var(--chats-rej-radius);
}

#modalChatsRejeitarChamado .chats-rej-btn-cancel {
    min-height: 2.5rem;
    padding: 0 1rem;
    border: 0.0625rem solid #d0d7e2 !important;
    background: #fff !important;
    color: var(--chats-rej-blue-ink) !important;
    font-weight: 600;
    border-radius: var(--chats-rej-radius-btn) !important;
}

#modalChatsRejeitarChamado .chats-rej-btn-cancel:hover {
    background: #f8fafc !important;
}

#modalChatsRejeitarChamado .chats-rej-btn-confirm {
    min-height: 2.5rem;
    padding: 0 1.125rem;
    background: var(--chats-rej-danger) !important;
    border-color: var(--chats-rej-danger) !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: var(--chats-rej-radius-btn) !important;
}

#modalChatsRejeitarChamado .chats-rej-btn-confirm:hover:not(:disabled) {
    filter: brightness(0.96);
}

#modalChatsRejeitarChamado .chats-rej-btn-confirm:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Portal dropdown (body) */
.chats-rej-motivo-dropdown {
    position: fixed;
    z-index: 2400;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 0.0625rem solid var(--chats-rej-line, #e2e8f0);
    border-radius: 0.75rem !important;
    box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.14), 0 0.125rem 0.5rem rgba(15, 23, 42, 0.06);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.25rem);
    transition: opacity 0.12s ease, transform 0.12s ease;
}

.chats-rej-motivo-dropdown.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.chats-rej-motivo-dropdown.is-flip-up.is-open {
    transform: translateY(0);
}

.chats-rej-motivo-search {
    flex: 0 0 auto;
    padding: 0.5rem 0.625rem;
    border-bottom: 0.0625rem solid var(--chats-rej-line, #e2e8f0);
    background: #fff;
}

.chats-rej-motivo-search-input {
    width: 100%;
    box-sizing: border-box;
    min-height: 2.25rem;
    padding: 0.5rem 0.75rem;
    border: 0.0625rem solid #e2e8f0;
    border-radius: 0.5rem;
    font: inherit;
    font-size: 0.8125rem;
    background: #f8fafc;
}

.chats-rej-motivo-search-input:focus {
    outline: 0.125rem solid #3b82f6;
    outline-offset: 0;
    border-color: #93c5fd;
    background: #fff;
}

.chats-rej-motivo-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    max-height: inherit;
    padding: 0.25rem 0 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.35) transparent;
}

.chats-rej-motivo-list::-webkit-scrollbar {
    width: 0.375rem;
}

.chats-rej-motivo-list::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.35);
    border-radius: 62.4375rem;
}

.chats-rej-motivo-group-label {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 0.5rem 0.875rem 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
    background: #fff;
}

.chats-rej-motivo-option {
    width: 100%;
    min-height: 3.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.875rem;
    border: 0;
    background: #fff;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: #0f172a;
}

.chats-rej-motivo-option:hover {
    background: #f8fafc;
}

.chats-rej-motivo-option.is-selected {
    background: #eff6ff;
    color: #1e3a5f;
}

.chats-rej-motivo-option:focus-visible {
    outline: 0.125rem solid #3b82f6;
    outline-offset: -0.125rem;
}

.chats-rej-motivo-option-main {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.chats-rej-motivo-option-title {
    font-size: 0.84375rem;
    font-weight: 600;
    line-height: 1.3;
}

.chats-rej-motivo-option-desc {
    font-size: 0.75rem;
    font-weight: 450;
    color: #64748b;
    line-height: 1.35;
}

.chats-rej-motivo-option.is-selected .chats-rej-motivo-option-desc {
    color: #475569;
}

.chats-rej-motivo-option-check {
    flex: 0 0 auto;
    opacity: 0;
    color: #2563eb;
}

.chats-rej-motivo-option.is-selected .chats-rej-motivo-option-check {
    opacity: 1;
}

.chats-rej-motivo-option.is-filtered-out,
.chats-rej-motivo-group.is-filtered-out {
    display: none !important;
}

.chats-rej-motivo-empty {
    padding: 1rem 0.875rem;
    font-size: 0.8125rem;
    color: #94a3b8;
    text-align: center;
}

.chats-rej-motivo-empty.hidden {
    display: none !important;
}

html[data-theme='dark'] #modalChatsRejeitarChamado.modal-chats-rejeitar,
html[data-theme='cinza'] #modalChatsRejeitarChamado.modal-chats-rejeitar {
    --chats-rej-ink: var(--text, #e2e8f0);
    --chats-rej-muted: var(--text-muted, #94a3b8);
    --chats-rej-line: var(--border, #334155);
    --chats-rej-danger-soft: color-mix(in srgb, #c0392b 18%, var(--surface, #0f172a));
    --chats-rej-blue-soft: color-mix(in srgb, #3b82f6 16%, var(--surface, #0f172a));
    --chats-rej-blue-ink: #dbeafe;
}

html[data-theme='dark'] #modalChatsRejeitarChamado .chats-rej-header,
html[data-theme='cinza'] #modalChatsRejeitarChamado .chats-rej-header {
    background:
        linear-gradient(180deg,
            color-mix(in srgb, var(--chats-rej-danger) 28%, var(--surface, #0f172a)) 0%,
            var(--chats-rej-danger-soft) 100%) !important;
    border-bottom-color: color-mix(in srgb, var(--chats-rej-danger) 36%, var(--chats-rej-line));
}

html[data-theme='dark'] #modalChatsRejeitarChamado .chats-rej-header h2,
html[data-theme='cinza'] #modalChatsRejeitarChamado .chats-rej-header h2 {
    color: color-mix(in srgb, #6e1614 70%, var(--chats-rej-ink)) !important;
}

html[data-theme='dark'] #modalChatsRejeitarChamado .chats-rej-contexto,
html[data-theme='cinza'] #modalChatsRejeitarChamado .chats-rej-contexto {
    color: color-mix(in srgb, #fca5a5 35%, var(--chats-rej-muted));
}

html[data-theme='dark'] #modalChatsRejeitarChamado .chats-rej-header > button,
html[data-theme='cinza'] #modalChatsRejeitarChamado .chats-rej-header > button {
    color: #fca5a5;
}

html[data-theme='dark'] #modalChatsRejeitarChamado .chats-rej-header-icon,
html[data-theme='cinza'] #modalChatsRejeitarChamado .chats-rej-header-icon {
    background: color-mix(in srgb, var(--chats-rej-danger) 22%, var(--surface, #0f172a));
    border-color: color-mix(in srgb, var(--chats-rej-danger) 30%, transparent);
}

html[data-theme='dark'] #modalChatsRejeitarChamado .chats-rej-motivo-trigger,
html[data-theme='cinza'] #modalChatsRejeitarChamado .chats-rej-motivo-trigger,
html[data-theme='dark'] #modalChatsRejeitarChamado .chats-rej-field textarea,
html[data-theme='cinza'] #modalChatsRejeitarChamado .chats-rej-field textarea,
html[data-theme='dark'] .chats-rej-motivo-dropdown,
html[data-theme='cinza'] .chats-rej-motivo-dropdown {
    background: var(--surface, #0f172a);
    color: var(--text, #e2e8f0);
}

html[data-theme='dark'] .chats-rej-motivo-option,
html[data-theme='cinza'] .chats-rej-motivo-option,
html[data-theme='dark'] .chats-rej-motivo-group-label,
html[data-theme='cinza'] .chats-rej-motivo-group-label,
html[data-theme='dark'] .chats-rej-motivo-search,
html[data-theme='cinza'] .chats-rej-motivo-search {
    background: var(--surface, #0f172a);
}

html[data-theme='dark'] .chats-rej-motivo-option:hover,
html[data-theme='cinza'] .chats-rej-motivo-option:hover {
    background: color-mix(in srgb, var(--surface, #0f172a) 85%, #fff);
}

html[data-theme='dark'] .chats-rej-motivo-option.is-selected,
html[data-theme='cinza'] .chats-rej-motivo-option.is-selected {
    background: var(--chats-rej-blue-soft);
}

/* ============================================================
   Drawer Editar/Novo solicitante (HTML global no app-shell)
   Precisa estar SEMPRE carregado — nao so na rota Conexoes.
   ============================================================ */
.contato-gestao-edit-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--app-layer-drawer, 2051);
    display: none !important;
    align-items: stretch;
    justify-content: flex-end;
    pointer-events: auto;
}

.contato-gestao-edit-overlay.ativo {
    display: flex !important;
}

.contato-gestao-edit-scrim {
    position: absolute;
    inset: 0;
    background: var(--app-scrim-bg, rgba(8, 16, 38, 0.38));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.contato-gestao-edit-panel {
    position: relative;
    z-index: 1;
    width: var(--fd-cadastro-drawer-width, min(44rem, 97vw));
    max-width: 100%;
    height: 100%;
    max-height: 100vh;
    background: var(--fd-cadastro-body-bg, var(--field, #f6f8fb));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fd-fadeup 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
    .contato-gestao-edit-panel {
        animation: none;
    }
}

.contato-gestao-edit-head {
    padding: 1.25rem 1.5rem;
    border: 0;
    border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex: none;
    background: var(--fd-cadastro-head-bg, #1e293b);
    box-shadow: none;
    color: #fff;
}

.contato-gestao-edit-head .ic {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.6875rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.contato-gestao-edit-head .ic svg {
    width: 1.125rem;
    height: 1.125rem;
}

.contato-gestao-edit-head h2 {
    font-size: 1.4375rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.025rem;
    color: #fff;
    text-shadow: none;
}

.contato-gestao-edit-head p {
    display: none;
}

.contato-gestao-edit-head .x,
.contato-gestao-edit-head .dwr-x,
.contato-gestao-edit-head .fd-cadastro-x {
    margin-left: auto;
    width: 2.375rem;
    height: 2.375rem;
    padding: 0;
    border-radius: 0.625rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.contato-gestao-edit-head .x:hover,
.contato-gestao-edit-head .dwr-x:hover,
.contato-gestao-edit-head .fd-cadastro-x:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.contato-gestao-edit-head .x svg,
.contato-gestao-edit-head .dwr-x svg,
.contato-gestao-edit-head .fd-cadastro-x svg {
    width: 1.125rem;
    height: 1.125rem;
    display: block;
}

.contato-gestao-edit-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 1.75rem 1.75rem 2rem;
    background: transparent;
}

.contato-gestao-edit-body .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 1.25rem;
    margin-bottom: 1.25rem;
}

.contato-gestao-edit-body .form-col {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 0;
}

.contato-gestao-edit-body .form-col.col-full { flex: 1 1 100%; }
.contato-gestao-edit-body .form-col.col-half { flex: 1 1 calc(50% - 0.5rem); }
.contato-gestao-edit-body .form-col.col-quarter { flex: 1 1 calc(25% - 0.75rem); min-width: 4.5rem; }

.contato-gestao-edit-body label,
.contato-gestao-edit-body .label-block {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ink, #1a2332);
}

.contato-gestao-edit-body input,
.contato-gestao-edit-body select,
.contato-gestao-edit-body textarea {
    height: 2.625rem;
    border: 0.09375rem solid var(--line, #e2e8f0);
    border-radius: 0.625rem;
    background: var(--surface, #fff);
    padding: 0 0.8125rem;
    font-family: inherit;
    font-size: 0.84375rem;
    width: 100%;
    color: var(--ink, #1a2332);
    box-sizing: border-box;
}

.contato-gestao-edit-body textarea {
    height: auto;
    min-height: 5.5rem;
    padding: 0.75rem 0.8125rem;
    resize: vertical;
}

.contato-gestao-edit-body .input-readonly {
    background: #eef2f7;
    color: #5b6a86;
}

.contato-gestao-edit-foot {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.5rem;
    border-top: 0.0625rem solid var(--line, #e2e8f0);
    background: var(--surface, #fff);
    flex: none;
}

.contato-gestao-edit-foot .sp {
    flex: 1;
}

.contato-gestao-edit-foot .btn {
    height: 2.375rem;
    padding: 0 1rem;
    border-radius: 0.625rem;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
}

.contato-gestao-edit-foot .btn.primary {
    background: #2f6fe0;
    border: 0;
    color: #fff;
}

.contato-gestao-edit-foot .btn.ghost {
    background: var(--surface, #fff);
    border: 0.0625rem solid var(--line, #e2e8f0);
    color: #33425f;
}

body.contato-gestao-edit-open {
    overflow: hidden;
}
