/* Portal Auth — tipografia alinhada ao Portal (Open Sans) */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Titillium+Web:wght@400;700&display=swap');

:root {
    --gp-primary: #0761ff;
    --gp-primary-hover: #0052e0;
    --gp-primary-soft: #e8f0ff;
    --gp-text: #1a1a1a;
    --gp-text-muted: #4a5568;
    --gp-border: #cccccc;
    --gp-bg: #ffffff;
    --gp-radius-input: 2px;
    --gp-radius-btn: 4px;
    --gp-font: "Open Sans", Arial, Helvetica, sans-serif;
    --gp-font-brand: "Open Sans", Arial, Helvetica, sans-serif;
    --gp-font-weight: 400;
    --gp-fs: 1;
    --gp-app-body-fs: 0.875rem; /* 14px */
    --gp-app-label-fs: 13px;
    --gp-app-control-fs: 13px;
    --gp-app-font: var(--gp-font);
    --gp-app-text: var(--gp-text);
    --gp-app-muted: var(--gp-text-muted);
    --gp-focus: #0761ff;
    --gp-header-bg: #1a1f2a;
    --gp-header-h: 43px;
    --gp-context-h: 42px;
    --gp-chrome-h: calc(var(--gp-header-h) + var(--gp-context-h));
    --gp-app-primary: var(--gp-primary);
    --gp-app-primary-dark: #0546c4;
    --gp-app-border: #e6e6e6;
    --gp-header-pad-x: 20px;
    --gp-sidebar-w: 232px;
    --gp-sidebar-collapsed-w: 65px;
    --gp-sidebar-current-w: var(--gp-sidebar-w);
    --gp-app-sidebar: #f5f6f8;
    --gp-app-sidebar-text: #555555;
    --gp-app-sidebar-muted: #6b7280;
    --gp-app-sidebar-hover: #eef2f7;
    --gp-app-sidebar-active: #e8f0ff;
    --gp-app-sidebar-border: #e5e7eb;
    --gp-header-brand-icon: 18px;
    --gp-header-brand-gap: 6px;
    --gp-header-brand-fs: 0.875rem;
    --gp-header-brand-opacity: 0.85;
}

html.gp-auth-html,
html:has(body.gp-auth-body),
body.gp-auth-body,
.gp-auth-body.page-body,
.gp-auth-body.login-page,
body.gp-perfil-body,
.gp-perfil-body.page-body {
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    max-height: 100vh !important;
    min-height: 0 !important;
    background: var(--gp-bg) !important;
    font-family: var(--gp-font) !important;
    font-size: calc(var(--gp-app-body-fs) * var(--gp-fs)) !important;
    font-weight: var(--gp-font-weight) !important;
    color: var(--gp-text) !important;
    line-height: 1.5 !important;
    /* auto (não hidden): bolha nativa "Preencha este campo." precisa aparecer */
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

html,
html.gp-auth-html,
html:has(body.gp-auth-body) {
    font-size: 16px !important;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.gp-auth-body *:focus-visible,
.gp-perfil-body *:focus-visible,
.ga-body *:focus-visible {
    outline: 3px solid var(--gp-focus, #0761ff) !important;
    outline-offset: 2px !important;
}

.gp-auth-body .gp-perfil__card:focus,
.gp-auth-body .gp-perfil__card:focus-visible,
.gp-perfil-body .gp-perfil__card:focus,
.gp-perfil-body .gp-perfil__card:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
}

.gp-auth-body input:focus,
.gp-auth-body input:focus-visible,
.gp-auth-body select:focus,
.gp-auth-body select:focus-visible,
.gp-auth-body textarea:focus,
.gp-auth-body textarea:focus-visible,
.gp-perfil-body input:focus,
.gp-perfil-body input:focus-visible,
.gp-perfil-body select:focus,
.gp-perfil-body select:focus-visible,
.gp-perfil-body textarea:focus,
.gp-perfil-body textarea:focus-visible,
.ga-body input:focus,
.ga-body input:focus-visible,
.ga-body select:focus,
.ga-body select:focus-visible,
.ga-body textarea:focus,
.ga-body textarea:focus-visible {
    outline: none !important;
    border-color: var(--gp-primary, #0761ff) !important;
    box-shadow: 0 0 0 3px rgba(7, 97, 255, 0.28) !important;
}

.gp-auth-body strong,
.gp-auth-body b,
.gp-auth-body .btn,
.gp-auth-body button,
.gp-auth-body label,
.gp-auth-body input,
.gp-auth-body select,
.gp-auth-body textarea,
.gp-perfil-body strong,
.gp-perfil-body b,
.gp-perfil-body .btn,
.gp-perfil-body button,
.gp-perfil-body label,
.gp-perfil-body input,
.gp-perfil-body select,
.gp-perfil-body textarea,
.gp-perfil,
.gp-perfil input,
.gp-perfil button,
.gp-perfil select,
.gp-perfil textarea,
.gp-perfil label,
.gp-perfil a,
.gp-conta__input,
.gp-conta__btn,
.gp-conta__label,
.gp-conta__hint,
.gp-conta__file,
.gp-user-menu__trigger,
.gp-user-menu__name,
.gp-user-menu__item,
.gp-user-menu__email {
    font-family: var(--gp-font) !important;
    font-weight: var(--gp-font-weight) !important;
}

.gp-auth-body .fa,
.gp-auth-body .fas,
.gp-auth-body .fab,
.gp-perfil-body .fa,
.gp-perfil-body .fas,
.gp-perfil-body .fab {
    font-weight: 900 !important;
}

/* Durante reportValidity a bolha nativa precisa escapar do overflow:hidden */
html.gp-auth-html.gp-auth-showing-validity,
html.gp-auth-html.gp-auth-showing-validity body.gp-auth-body,
html.gp-auth-html.gp-auth-showing-validity main,
body.gp-auth-body.gp-auth-showing-validity,
body.gp-auth-body.gp-auth-showing-validity main {
    overflow: visible !important;
    max-height: none !important;
}

/* Toasts do Notiflix precisam ficar acima do layout auth (overflow:hidden) */
html.gp-auth-html #NotiflixNotifyWrap,
body.gp-auth-body #NotiflixNotifyWrap,
main #NotiflixNotifyWrap,
#NotiflixNotifyWrap {
    position: fixed !important;
    top: 16px !important;
    right: 16px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 2147483000 !important;
    pointer-events: none;
    overflow: visible !important;
}

html.gp-auth-html #NotiflixNotifyWrap > div,
body.gp-auth-body #NotiflixNotifyWrap > div,
main #NotiflixNotifyWrap > div,
#NotiflixNotifyWrap > div {
    pointer-events: auto;
}

/* Centraliza só o card de login (páginas com .gp-auth) — não afeta TipoAcesso */
body.gp-auth-body:has(.gp-auth) > main,
html.gp-auth-html:has(.gp-auth) main,
main:has(.gp-auth),
body.gp-auth-body:has(.gp-auth) {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 100vh !important;
    max-height: 100vh !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    background: #fff !important;
    width: 100% !important;
}

/* Modelo 3PREV: tela cheia */
body.gp-auth-body:has(.gp-auth--split) > main,
html.gp-auth-html:has(.gp-auth--split) main,
main:has(.gp-auth--split),
body.gp-auth-body:has(.gp-auth--split) {
    align-items: stretch !important;
    justify-content: stretch !important;
    padding: 0 !important;
    background: #f3f4f6 !important;
}

.gp-auth-body .login-container,
.gp-auth-body .login-form,
.gp-auth-body .login-content {
    all: unset;
    display: block;
}

/* Neutraliza leftovers do Neon Theme na área de autenticação */
.gp-auth-body.login-page .login-progressbar,
.gp-auth-body.login-page .login-progressbar-indicator {
    display: none !important;
}

.gp-auth-body.login-page {
    padding-top: 0 !important;
}

/* Card centralizado (form + painel), no padrão Betha */
.gp-auth {
    display: grid;
    grid-template-columns: minmax(300px, 440px) minmax(320px, 520px);
    width: min(960px, 100%);
    height: min(680px, calc(100vh - 48px));
    max-height: calc(100vh - 48px);
    background: #fff;
    border-radius: 28px;
    overflow: visible;
    box-sizing: border-box;
    box-shadow: 0 8px 40px rgba(15, 40, 100, 0.08);
    flex-shrink: 0;
}

/* —— Split full-screen (modelo 3PREV) —— */
.gp-auth.gp-auth--split {
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.85fr);
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    background: #f3f4f6;
}

.gp-auth--split .gp-auth__visual {
    grid-column: 1;
    grid-row: 1;
    border-radius: 0;
    height: 100%;
}

.gp-auth--split .gp-auth__form-brand {
    margin: 0 0 28px;
    font-family: var(--gp-font);
    font-style: normal;
    font-weight: 700 !important;
    font-size: clamp(1.85rem, 4vh, 2.5rem);
    letter-spacing: 0.12em;
    text-indent: 0.12em;
    color: #0a2f86;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

.gp-auth--split .gp-auth__form-pane {
    grid-column: 2;
    grid-row: 1;
    border-radius: 0;
    background: #f3f4f6;
    justify-content: center;
    align-items: center;
    padding: clamp(32px, 6vh, 56px) clamp(28px, 5vw, 64px) clamp(72px, 10vh, 96px);
    position: relative;
}

.gp-auth--split .gp-auth__form-inner {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding-top: 0;
}

.gp-auth__wordmark {
    --wm: clamp(4.6rem, 12.5vh, 6.4rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(var(--wm) * 0.3077);
    width: max-content;
    max-width: none;
    margin: 0 0 10px;
    margin-left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-family: "Titillium Web", Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: calc(var(--wm) * 0.6462);
    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: uppercase;
    color: #061a4d;
    -webkit-text-fill-color: #061a4d;
}

.gp-auth__wordmark img {
    width: var(--wm);
    height: var(--wm);
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.gp-auth__wordmark span span {
    font-weight: 400;
}

.login-page .gp-auth--split .gp-auth__title {
    font-size: 22px;
}

.gp-auth--split .gp-auth__title {
    text-align: center;
    font-weight: 700 !important;
    font-size: clamp(1.45rem, 2.6vh, 1.75rem);
    color: #1f2937;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}

.gp-auth--split .gp-auth__field {
    margin-bottom: 14px;
}

.gp-auth--split .gp-auth__input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.gp-auth--split .gp-auth__input-icon > i.fas:first-child,
.gp-auth--split .gp-auth__input-icon > i.fa:first-child {
    position: absolute;
    left: 14px;
    z-index: 1;
    color: #9ca3af;
    font-size: 0.95rem;
    pointer-events: none;
    font-weight: 900 !important;
}

.gp-auth--split .gp-auth__input-icon .gp-auth__input {
    padding-left: 42px;
    height: 40px;
    border-radius: 2px;
    border: 1px solid #d0d0d0;
    background: #fff;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.25;
}

.gp-auth--split .gp-auth__input-icon.gp-auth__password-wrap .gp-auth__input {
    padding-right: 44px;
}

.gp-auth--split .gp-auth__toggle-pass {
    color: #9ca3af;
}

.gp-auth--split .gp-auth__links-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 4px 0 16px;
}

.gp-auth--split .gp-auth__links-row .gp-auth__link {
    font-size: 0.82rem;
    color: #9ca3af;
    text-decoration: none;
}

.gp-auth--split .gp-auth__links-row .gp-auth__link:hover {
    color: #0a2f86;
    text-decoration: underline;
}

.gp-auth--split .gp-auth__check {
    margin-bottom: 18px;
    color: #6b7280;
    font-size: calc(var(--gp-app-label-fs) * var(--gp-fs));
}

.gp-auth--split .gp-auth__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    border-radius: 8px;
    background: #0a2f86;
    font-weight: 600 !important;
    font-size: calc(14px * var(--gp-fs, 1));
    letter-spacing: 0.02em;
}

.gp-auth--split .gp-auth__btn:hover {
    background: #082568;
}

.gp-auth--split .gp-auth__btn i {
    font-size: 0.95em;
}

.gp-auth--split .gp-auth__split-footer {
    display: none !important;
}

/* Formulário com mais campos (Criar conta): scroll interno */
.gp-auth--split.gp-auth--split-tall .gp-auth__form-pane {
    justify-content: flex-start;
    overflow-y: auto;
    padding-top: clamp(28px, 5vh, 48px);
    padding-bottom: clamp(64px, 10vh, 88px);
}

.gp-auth--split.gp-auth--split-tall .gp-auth__form-inner {
    margin-top: auto;
    margin-bottom: auto;
}

.gp-auth--split.gp-auth--split-tall .gp-auth__field {
    margin-bottom: 12px;
}

.gp-auth--split.gp-auth--split-tall .gp-auth__title {
    margin-bottom: 22px;
}

.gp-auth--split.gp-auth--split-tall .gp-auth__input-icon .gp-auth__input {
    height: 40px;
}

.gp-auth--split .gp-auth__steps--split {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.gp-auth--split .gp-auth__hint--split {
    margin: 0 0 16px;
    font-size: 0.82rem;
    color: #6b7280;
    text-align: center;
    line-height: 1.4;
}

.gp-auth--split .gp-auth__hint--split strong {
    font-weight: 600 !important;
    color: #374151;
}

/* Select2 no modelo split (Entidade) */
.gp-auth--split .gp-auth__input-icon--select {
    display: block;
}

.gp-auth--split .gp-auth__input-icon--select > i.fas:first-child {
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.gp-auth--split .gp-auth__input-icon--select .select2-container {
    width: 100% !important;
}

.gp-auth--split .gp-auth__input-icon--select .select2-container--default .select2-selection--single {
    height: 32px;
    border-radius: 2px;
    border: 1px solid #d0d0d0;
    background: #fff;
    padding-left: 36px;
    display: flex;
    align-items: center;
}

.gp-auth--split .gp-auth__input-icon--select .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px;
    padding-left: 4px;
    color: #1a1a1a;
    font-size: 13px;
}

.gp-auth--split .gp-auth__input-icon--select .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 30px;
    right: 8px;
}

.gp-auth--split .gp-auth__input-icon--select select.gp-auth__select {
    width: 100%;
    height: 32px;
    padding-left: 42px;
    border-radius: 2px;
    border: 1px solid #d0d0d0;
    background: #fff;
    font-size: 13px;
}

.gp-auth__form-pane {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: clamp(28px, 4vh, 44px) clamp(28px, 4vw, 48px);
    box-sizing: border-box;
    overflow: visible;
    grid-column: 1;
    grid-row: 1;
    border-radius: 28px 0 0 28px;
    background: #fff;
}

.gp-auth__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 36px;
    flex-shrink: 0;
}

.gp-auth__brand:hover {
    text-decoration: none;
    opacity: 0.92;
}

.gp-auth__brand-icon {
    display: block;
    height: 2rem;
    width: 2rem;
    flex-shrink: 0;
    object-fit: contain;
}

.gp-auth__brand-fallback {
    display: inline-block;
    font-family: var(--gp-font-brand);
    font-style: italic;
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -0.02em;
    color: var(--gp-primary);
    line-height: 1;
    text-transform: uppercase;
}

.gp-auth__logo-mark,
.gp-auth__brand-text {
    display: none !important;
}

.gp-auth__steps {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.gp-auth__step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gp-text-muted);
}

.gp-auth__step.is-active {
    color: var(--gp-primary);
}

.gp-auth__step.is-done {
    color: var(--gp-text);
}

.gp-auth__step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    line-height: 1;
}

.gp-auth__step.is-active .gp-auth__step-num,
.gp-auth__step.is-done .gp-auth__step-num {
    background: var(--gp-primary);
    border-color: var(--gp-primary);
    color: #fff;
}

.gp-auth__step-sep {
    width: 24px;
    height: 1px;
    background: var(--gp-border);
}

.gp-auth__title {
    margin: 0 0 8px;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gp-text);
    line-height: 1.25;
    flex-shrink: 0;
}

.gp-auth__subtitle {
    margin: 0 0 28px;
    font-size: 0.875rem;
    color: var(--gp-text-muted);
    line-height: 1.45;
    flex-shrink: 0;
}

.gp-auth__subtitle a {
    color: var(--gp-primary);
    text-decoration: none;
    font-weight: 400;
}

.gp-auth__subtitle a:hover {
    text-decoration: underline;
}

.gp-auth__field {
    margin-bottom: clamp(10px, 1.6vh, 16px);
    position: relative;
}

.gp-auth__label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.gp-auth__label {
    display: block;
    font-family: var(--gp-font);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.25;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.gp-auth__required {
    color: #c53030;
    font-weight: 400;
}

.gp-auth__hint {
    margin: 0 0 14px;
    font-size: 0.875rem;
    color: var(--gp-text-muted);
    line-height: 1.4;
}

.gp-auth__alert {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4;
}

.gp-auth__alert[hidden] {
    display: none !important;
}

.gp-auth__input.is-invalid {
    border-color: #c53030 !important;
    box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.15) !important;
}

.gp-auth__label-row .gp-auth__label {
    margin-bottom: 0;
}

.gp-auth__link {
    color: var(--gp-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
}

.gp-auth__link:hover {
    text-decoration: underline;
    color: var(--gp-primary-hover);
}

.gp-auth__input,
.gp-auth__select,
.gp-auth select.gp-auth__select,
.gp-auth .select2-container--default .select2-selection--single {
    width: 100% !important;
    height: 32px;
    min-height: 32px;
    padding: 4px 8px;
    border: 1px solid #d0d0d0;
    border-radius: 2px;
    background: #fff;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.25;
    font-family: var(--gp-font);
    box-sizing: border-box;
    box-shadow: none;
}

.gp-auth__input:focus,
.gp-auth__select:focus {
    outline: none;
    border-color: #9aa0a6;
    box-shadow: none;
}

.gp-auth__password-wrap {
    position: relative;
}

.gp-auth__password-wrap .gp-auth__input {
    padding-right: 48px;
}

.gp-auth__toggle-pass {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--gp-text-muted);
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gp-auth__toggle-pass:hover {
    color: var(--gp-primary);
    background: var(--gp-primary-soft);
}

/* ===== Senha: ações (teclado virtual + mostrar senha) ===== */
.gp-auth__pass-actions {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 2px;
    z-index: 1;
}

.gp-auth__pass-actions .gp-auth__toggle-pass {
    position: static;
    transform: none;
    width: 32px;
    height: 32px;
}

.gp-auth__password-wrap--vk .gp-auth__input,
.gp-auth--split .gp-auth__input-icon.gp-auth__password-wrap--vk .gp-auth__input,
.gp-auth--dense .gp-auth__password-wrap--vk .gp-auth__input {
    padding-right: 78px;
}

.gp-auth__vk-toggle.is-active,
.gp-auth__vk-toggle[aria-expanded="true"] {
    color: var(--gp-primary);
    background: var(--gp-primary-soft);
}

/* ===== Teclado virtual ===== */
.gp-vk {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 1400;
    padding: 10px;
    background: #fff;
    border: 1px solid #e5eaf2;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15, 39, 68, 0.18);
    box-sizing: border-box;
    font-family: var(--gp-font);
    user-select: none;
    -webkit-user-select: none;
}

.gp-vk[hidden] {
    display: none !important;
}

.gp-vk__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.gp-vk__title {
    font-size: calc(12px * var(--gp-fs, 1));
    font-weight: 600 !important;
    color: #6b7280;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.gp-vk__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    font-size: 0.85rem;
}

.gp-vk__close:hover {
    color: var(--gp-primary);
    background: var(--gp-primary-soft);
}

.gp-vk__keys {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gp-vk__row {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.gp-vk__row--foot {
    margin-top: 6px;
}

.gp-auth-body .gp-vk__key,
.gp-vk__key {
    flex: 1 1 0;
    min-width: 0;
    height: 36px;
    padding: 0;
    border: 1px solid #d7dde6;
    border-radius: 6px;
    background: #f8fafc;
    color: #1f2937;
    font-family: var(--gp-font) !important;
    font-size: calc(14px * var(--gp-fs, 1));
    font-weight: 600 !important;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: background 0.1s ease, border-color 0.1s ease, transform 0.05s ease;
}

.gp-vk__key:hover {
    background: #eef3ff;
    border-color: #c9dbff;
}

.gp-vk__key:active {
    background: var(--gp-primary);
    border-color: var(--gp-primary);
    color: #fff;
    transform: translateY(1px);
}

.gp-vk__key--fn {
    background: #e8edf5;
    color: #374151;
    font-size: calc(12px * var(--gp-fs, 1));
}

.gp-vk__key--fn i {
    font-size: 0.9rem;
}

.gp-vk__key--shift,
.gp-vk__key--bksp {
    flex: 1.5 1 0;
}

.gp-vk__key--shift.is-active {
    background: var(--gp-primary);
    border-color: var(--gp-primary);
    color: #fff;
}

.gp-vk__key--simb {
    flex: 1.2 1 0;
}

.gp-vk__key--space {
    flex: 3 1 0;
    font-size: calc(12px * var(--gp-fs, 1));
    font-weight: 400 !important;
    color: #6b7280;
}

.gp-vk__key--ok {
    flex: 1.2 1 0;
    background: #0a2f86;
    border-color: #0a2f86;
    color: #fff;
}

.gp-vk__key--ok:hover {
    background: #082568;
    border-color: #082568;
}

@media (max-width: 420px) {
    .gp-vk {
        padding: 8px;
    }

    .gp-vk__row,
    .gp-vk__keys {
        gap: 4px;
    }

    .gp-auth-body .gp-vk__key,
    .gp-vk__key {
        height: 34px;
        font-size: calc(13px * var(--gp-fs, 1));
    }
}

.gp-auth__check {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 2px 0 clamp(10px, 1.6vh, 14px);
    font-size: 0.875rem;
    color: var(--gp-text-muted);
    cursor: pointer;
    user-select: none;
}

.gp-auth__check input {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    width: 32px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #cbd5e1;
    position: relative;
    cursor: pointer;
    transition: background 0.15s ease;
}

.gp-auth__check input::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
    transition: transform 0.15s ease;
}

.gp-auth__check input:checked {
    background: var(--gp-primary, #0761ff);
}

.gp-auth__check input:checked::after {
    transform: translateX(14px);
}

.gp-auth__check input:focus-visible {
    outline: 2px solid var(--gp-primary, #0761ff);
    outline-offset: 2px;
}

.gp-auth__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--gp-radius-btn);
    background: var(--gp-primary);
    color: #fff !important;
    font-family: var(--gp-font);
    font-size: calc(var(--gp-app-control-fs) * var(--gp-fs));
    font-weight: 400;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.15s ease, transform 0.1s ease;
}

.gp-auth__btn:hover {
    background: var(--gp-primary-hover);
    color: #fff !important;
}

.gp-auth__btn:active {
    transform: translateY(1px);
}

.gp-auth__btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.gp-auth__municipio-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: clamp(10px, 1.8vh, 18px);
    background: var(--gp-primary-soft);
    border: 1px solid #c9dbff;
    border-radius: var(--gp-radius-input);
    flex-shrink: 0;
}

.gp-auth__municipio-chip-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.gp-auth__municipio-chip-info i {
    color: var(--gp-primary);
    margin-top: 2px;
}

.gp-auth__municipio-chip strong {
    display: block;
    font-size: 0.875rem;
    color: var(--gp-text);
    word-break: break-word;
}

.gp-auth__municipio-chip span {
    font-size: 0.75rem;
    color: var(--gp-text-muted);
}

.gp-auth__org-chip .gp-auth__org-brasao {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #c9dbff;
}

.gp-auth__org-chip .gp-auth__municipio-chip-info {
    align-items: center;
}

.gp-auth__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 18px;
}

.gp-auth__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: clamp(12px, 2.5vh, 28px);
    padding-top: 16px;
    border-top: 1px solid #e8eef6;
    font-size: 0.875rem;
    color: var(--gp-text-muted);
    flex-shrink: 0;
}

.gp-auth__footer a {
    color: var(--gp-text-muted);
    text-decoration: none;
}

.gp-auth__footer a:hover {
    color: var(--gp-primary);
}

.gp-auth__version {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef5ff;
    border: 1px solid #d6e6ff;
    color: #0b5cab;
    font-weight: 400;
    line-height: 1.2;
}

.gp-auth__version i {
    font-size: 0.875rem;
    opacity: 0.85;
}

.gp-auth__version strong {
    font-weight: 800;
    letter-spacing: 0.02em;
}

.gp-auth__footer-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #cbd5e1;
}

.gp-auth__footer-brand {
    font-weight: 400;
    color: #64748b;
    letter-spacing: 0.01em;
}

.gp-auth__visual {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    border-radius: 0 28px 28px 0;
    overflow: hidden;
    /* Azul do painel AtivaGov */
    background:
        radial-gradient(ellipse 55% 50% at 78% 55%, rgba(10, 47, 134, 0.45), transparent 60%),
        linear-gradient(135deg, #04133a 0%, #061a4d 40%, #0a2f86 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 4vh, 40px);
    box-sizing: border-box;
    height: 100%;
    max-height: none;
    min-height: 0;
    align-self: stretch;
}

/* Arcos decorativos removidos */
.gp-auth__visual-arcs {
    display: none !important;
}

.gp-auth__visual-glow {
    position: absolute;
    left: 50%;
    top: 52%;
    transform: translate(-50%, -50%);
    width: min(78%, 440px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 55%, transparent 72%);
    z-index: 0;
    pointer-events: none;
}

/* Lockup: brasão no centro + ATIVAGOV sobreposto no meio */
.gp-auth__visual-lockup {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

.gp-auth__visual-wordmark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: block;
    margin: 0;
    padding: 0;
    font-family: var(--gp-font);
    font-style: normal;
    font-weight: 700;
    font-size: clamp(2.8rem, 7vh, 4.5rem);
    letter-spacing: 0.12em;
    color: #fff;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 4px 28px rgba(0, 12, 40, 0.5);
    white-space: nowrap;
    pointer-events: none;
}

.gp-auth__visual-crest {
    position: relative;
    z-index: 1;
    display: block;
    width: min(62%, 340px);
    height: auto;
    margin: 0 auto;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    opacity: 0.08;
    -webkit-mask-image: linear-gradient(180deg, #fff 40%, rgba(255, 255, 255, 0.2) 100%);
    mask-image: linear-gradient(180deg, #fff 40%, rgba(255, 255, 255, 0.2) 100%);
}

.gp-auth--split .gp-auth__visual-wordmark {
    font-size: clamp(3rem, 7.5vh, 5rem);
}

.gp-auth--split .gp-auth__visual-crest {
    width: min(58%, 400px);
    opacity: 0.07;
}

.gp-auth--split .gp-auth__visual-crest--ag {
    width: min(82%, 560px);
    opacity: 0.08;
    filter: brightness(0) invert(1);
    -webkit-mask-image: none;
    mask-image: none;
}

/* Esconde restos do visual digital antigo */
.gp-auth__visual-media,
.gp-auth__visual-fx,
.gp-auth__visual-star,
.gp-auth__visual-content,
.gp-auth__visual-phrase {
    display: none !important;
}

.gp-auth__visual-secure {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--gp-font);
    font-style: normal;
    font-weight: 400;
    font-size: clamp(0.82rem, 1.45vh, 0.92rem);
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.78);
}

.gp-auth__visual-secure i {
    color: #9ee9ff;
    font-size: 0.9em;
    flex-shrink: 0;
}

.gp-auth__visual-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.gp-auth__visual-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.95);
}

.gp-auth__visual-benefits i {
    color: #9ee9ff;
    width: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    text-align: center;
}

.gp-auth__access-options {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.gp-auth__access-option {
    position: relative;
}

.gp-auth__access-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gp-auth__access-option label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius-input);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.gp-auth__access-option input:checked + label {
    border-color: var(--gp-primary);
    background: var(--gp-primary-soft);
    box-shadow: 0 0 0 3px rgba(7, 97, 255, 0.12);
}

.gp-auth__access-option label i {
    color: var(--gp-primary);
    width: 22px;
    text-align: center;
}

.gp-auth__access-option strong {
    display: block;
    font-size: 0.875rem;
    color: var(--gp-text);
}

.gp-auth__access-option small {
    display: block;
    color: var(--gp-text-muted);
    font-size: 0.78rem;
}

.gp-auth .select2-container {
    width: 100% !important;
}

.gp-auth .select2-container--default .select2-selection--single {
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.gp-auth .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1a1a1a;
    font-family: var(--gp-font);
    font-size: 13px;
    font-weight: 400;
    line-height: 42px;
    padding-left: 4px;
}

.gp-auth .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px;
    right: 8px;
}

.gp-auth .select2-dropdown {
    border-color: var(--gp-border);
    border-radius: var(--gp-radius-input);
    overflow: hidden;
}

.gp-auth .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--gp-primary);
}

@keyframes gp-auth-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes gp-auth-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes gp-auth-float-media {
    0%, 100% { transform: scale(1.04) translateY(0); }
    50% { transform: scale(1.06) translateY(-8px); }
}

@keyframes gp-auth-pulse {
    0%, 100% { opacity: 0.75; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

@media (max-width: 960px) {
    body.gp-auth-body:has(.gp-auth) > main,
    html.gp-auth-html:has(.gp-auth) main,
    main:has(.gp-auth),
    body.gp-auth-body:has(.gp-auth) {
        padding: 16px !important;
        align-items: center;
    }

    body.gp-auth-body:has(.gp-auth--split) > main,
    html.gp-auth-html:has(.gp-auth--split) main,
    main:has(.gp-auth--split),
    body.gp-auth-body:has(.gp-auth--split) {
        padding: 0 !important;
    }

    .gp-auth {
        grid-template-columns: 1fr;
        width: min(440px, 100%);
        height: auto;
        max-height: calc(100vh - 32px);
        min-height: 0;
    }

    .gp-auth.gp-auth--split {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        min-height: 100vh;
        grid-template-columns: 1fr;
    }

    .gp-auth__visual,
    .gp-auth--split .gp-auth__visual {
        display: none;
    }

    .gp-auth__form-pane,
    .gp-auth--split .gp-auth__form-pane {
        grid-column: 1;
        max-width: none;
        padding: 32px 24px 72px;
        overflow-y: auto;
    }

    .gp-auth__wordmark {
        --wm: clamp(3.2rem, 14vw, 4.75rem);
        width: 100%;
        margin-left: 0;
        transform: none;
    }
}

@media (max-height: 720px) {
    .gp-auth__brand img,
    .gp-auth__brand-icon {
        height: 1.75rem;
        width: 1.75rem;
    }

    .gp-auth__steps {
        display: none;
    }

    .gp-auth__visual-card {
        animation: none;
    }

    .gp-auth__visual-benefits li:nth-child(n+4) {
        display: none;
    }

    .gp-auth__visual-media img {
        animation: none;
        transform: scale(1.02);
    }
}

/* Formulários densos (login / criar conta / recuperar senha) */
.gp-auth.gp-auth--dense {
    overflow: visible;
}

.gp-auth--dense .gp-auth__form-pane {
    justify-content: flex-start;
    padding-top: clamp(10px, 2vh, 24px);
    padding-bottom: clamp(10px, 2vh, 24px);
    overflow: visible;
}

/* Login / Município: poucos campos — mantém centralizado na vertical */
.gp-auth--dense:has(.gp-auth__steps) .gp-auth__form-pane {
    justify-content: center;
}

.gp-auth--dense .gp-auth__steps {
    margin-bottom: clamp(10px, 1.8vh, 16px);
}

.gp-auth--dense .gp-auth__step {
    font-size: 0.75rem;
}

.gp-auth--dense .gp-auth__step-num {
    width: 20px;
    height: 20px;
    font-size: 0.68rem;
}

.gp-auth--dense .gp-auth__brand {
    margin-bottom: clamp(8px, 1.5vh, 16px);
}

.gp-auth--dense .gp-auth__brand img,
.gp-auth--dense .gp-auth__brand-icon {
    height: 1.5rem;
    width: 1.5rem;
    max-height: none;
    max-width: none;
}

/* Marca AtivaGov (telas auth) */
.gp-auth--brand-lg .gp-auth__brand {
    margin-bottom: clamp(10px, 1.8vh, 18px);
    gap: 10px;
}

.gp-auth--brand-lg .gp-auth__brand img,
.gp-auth--brand-lg .gp-auth__brand-icon {
    height: 2.15rem;
    width: 2.15rem;
}

.gp-auth--brand-lg .gp-auth__brand-fallback {
    font-size: 2.15rem;
}

.gp-auth--dense .gp-auth__title {
    font-size: clamp(1.1rem, 2vh, 1.3rem);
    margin-bottom: 4px;
}

.gp-auth--dense .gp-auth__subtitle {
    margin-bottom: clamp(6px, 1.2vh, 12px);
    font-size: 0.875rem;
}

.gp-auth--dense .gp-auth__field {
    margin-bottom: clamp(4px, 1vh, 10px);
}

.gp-auth--dense .gp-auth__label {
    margin-bottom: 4px;
    font-size: 13px;
}

.gp-auth--dense .gp-auth__input,
.gp-auth--dense .gp-auth__select,
.gp-auth--dense select.gp-auth__select {
    height: 32px;
    min-height: 32px;
    padding: 4px 8px;
    font-size: 13px;
}

.gp-auth--dense .gp-auth__btn {
    min-height: 38px;
    padding: 8px 16px;
    margin-top: 2px;
    font-size: calc(var(--gp-app-control-fs) * var(--gp-fs));
    font-weight: 400;
}

.gp-auth--dense .gp-auth__check {
    margin: 2px 0 clamp(6px, 1.2vh, 10px);
    font-size: 0.875rem;
}

.gp-auth--dense .gp-auth__password-wrap .gp-auth__input {
    padding-right: 44px;
}

.gp-auth--dense .gp-auth__links {
    margin-top: 12px;
}

.gp-auth--dense .gp-auth__footer {
    margin-top: clamp(8px, 1.5vh, 16px);
}

@media (max-height: 780px) {
    .gp-auth--dense .gp-auth__footer {
        display: none;
    }
}

/* Seleção de perfil: tela cheia (não herda o card centralizado do login) */
html:has(body.gp-perfil-body),
body.gp-perfil-body,
body.gp-auth-body.gp-perfil-body,
html.gp-auth-html:has(body.gp-perfil-body),
main:has(.gp-perfil) {
    display: block !important;
    overflow: auto !important;
    max-height: none !important;
    height: auto !important;
    min-height: 100vh !important;
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    background: #fff !important;
    width: 100% !important;
}

body.gp-perfil-body > main,
main:has(.gp-perfil) {
    height: auto !important;
    max-height: none !important;
    min-height: 100vh !important;
    overflow: visible !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
}

.gp-perfil-body.page-body {
    background: #fff !important;
}

.gp-perfil {
    min-height: 100vh;
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    background: #fff;
    font-family: var(--gp-font);
    color: #4a4a4a;
}

.gp-perfil__topbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: var(--gp-header-h);
    min-height: var(--gp-header-h);
    padding: 0 var(--gp-header-pad-x);
    background: var(--gp-header-bg);
    color: #fff;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    flex-shrink: 0;
    box-sizing: border-box;
    font-family: var(--gp-font);
    font-size: calc(0.875rem * var(--gp-fs));
}

/* Shell Home (padrão Cidadão / Portal) */
body.gp-app-shell {
    margin: 0 !important;
    padding: 0 !important;
    padding-top: var(--gp-header-h) !important;
    min-height: 100vh !important;
    background: #fff !important;
    font-family: var(--gp-font) !important;
    font-size: calc(var(--gp-app-body-fs) * var(--gp-fs)) !important;
    color: var(--gp-text) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.gp-app-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    height: var(--gp-header-h);
    background: var(--gp-header-bg);
    color: #fff;
    font-family: var(--gp-font);
    font-size: calc(0.875rem * var(--gp-fs));
    font-weight: 400;
    flex-shrink: 0;
    overflow: visible;
}

body.gp-app-shell .gp-app-header {
    position: fixed;
    width: 100%;
}

.gp-app-header__inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: var(--gp-header-h);
    min-height: var(--gp-header-h);
    padding: 0 0 0 8px;
    box-sizing: border-box;
    overflow: visible;
}

.gp-app-header__left {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    flex: 1 1 auto;
    overflow: visible;
}

.gp-app-header__left:has(.gp-app-header__menu-toggle) {
    gap: 8px;
}

.gp-app-header__menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    flex-shrink: 0;
    width: 40px;
    height: var(--gp-header-h, 43px);
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}

.gp-app-header__menu-toggle i {
    font-size: 18px;
    color: #fff !important;
    font-weight: 900 !important;
}

.gp-app-header__menu-toggle:hover,
.gp-app-header__menu-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    outline: none;
}

body.gp-mobile-nav-open {
    overflow: hidden;
}

.gp-app-header__right {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    flex: 0 0 auto;
    min-width: 0;
}

.gp-app-header__brand {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
    height: 30px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    text-decoration: none;
    color: #fff;
    line-height: 1;
    white-space: nowrap;
    border: none;
    box-shadow: none;
    min-width: 0;
}

.gp-app-header__brand:hover {
    color: #fff;
    text-decoration: none;
    opacity: 0.92;
}

button.gp-sys-switcher__trigger.gp-app-header__brand {
    border: 0;
    cursor: pointer;
    font: inherit;
    padding: 0;
    background: transparent;
}

.gp-app-header__brand-g {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 30px;
    width: 30px;
    min-width: 30px;
    padding: 0;
    border-radius: 8px 0 0 8px;
    background: #263e81;
    box-sizing: border-box;
    color: #fff;
}

.gp-app-header__brand-a {
    font-family: var(--gp-app-font);
    font-weight: 700;
    font-size: calc(var(--gp-app-body-fs) * var(--gp-fs));
    line-height: 1;
    color: #fff;
}

.gp-app-header__brand-ag {
    display: none;
}

.gp-app-header__brand-mark {
    display: none;
}

.gp-app-header__brand-name {
    display: inline-flex;
    align-items: center;
    position: relative;
    height: 30px;
    padding: 0 14px;
    border-radius: 0 8px 8px 0;
    background: #263e81;
    color: #fff;
    font-family: var(--gp-app-font);
    font-style: normal;
    font-weight: 400;
    font-size: calc(var(--gp-app-body-fs) * var(--gp-fs));
    letter-spacing: 0.01em;
    text-transform: uppercase;
    line-height: 1;
    overflow: visible;
    white-space: nowrap;
    max-width: min(340px, 50vw);
    box-sizing: border-box;
}

.gp-app-header__brand-name::before,
.gp-app-header__brand-name::after {
    content: "";
    position: absolute;
    left: -5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gp-header-bg);
    pointer-events: none;
    z-index: 1;
}

.gp-app-header__brand-name::before { top: -5px; }
.gp-app-header__brand-name::after { bottom: -5px; }

.gp-top-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    flex: 1 1 auto;
    overflow: visible;
}

.gp-top-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--gp-font);
    font-size: calc(0.875rem * var(--gp-fs));
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    line-height: 1;
}

.gp-top-nav__link:hover,
.gp-top-nav__link.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* ===== Menu lateral (Login) ===== */
.gp-page-shell {
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - var(--gp-header-h));
}

.gp-page-shell > .gp-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.gp-side-nav {
    flex: 0 0 var(--gp-sidebar-w);
    width: var(--gp-sidebar-w);
    background: var(--gp-app-sidebar);
    border-right: 1px solid var(--gp-app-sidebar-border);
    position: sticky;
    top: var(--gp-header-h);
    align-self: flex-start;
    height: calc(100vh - var(--gp-header-h));
    z-index: 100;
    box-sizing: border-box;
    overflow: hidden;
}

.gp-page-shell.sidebar-collapsed .gp-side-nav {
    flex-basis: var(--gp-sidebar-collapsed-w);
    width: var(--gp-sidebar-collapsed-w);
    overflow: visible;
}

.gp-side-nav__inner {
    background: transparent;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

.gp-menu-search {
    display: block;
    position: relative;
    margin: 10px 12px 8px;
}

.gp-menu-search .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gp-menu-search > i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gp-app-sidebar-muted);
    font-size: 13px;
    pointer-events: none;
}

.gp-menu-search__input {
    display: block;
    width: 100%;
    height: 36px;
    padding: 0 10px 0 32px;
    border: 1px solid var(--gp-app-sidebar-border);
    border-radius: 8px;
    background: #fff;
    color: var(--gp-app-text, var(--gp-text));
    font-family: var(--gp-font);
    font-size: calc(var(--gp-app-control-fs) * var(--gp-fs));
    font-weight: 400;
    line-height: 1.3;
    outline: none;
    box-sizing: border-box;
}

.gp-menu-search__input::placeholder { color: #8a97a8; }

.gp-menu-search__input:focus,
.gp-menu-search__input:focus-visible {
    border-color: var(--gp-app-primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(7, 97, 255, 0.28) !important;
}


.gp-side-nav__menu li.gp-menu-filtered-out { display: none !important; }

.gp-side-nav__menu a.gp-menu-kbd-active {
    background: var(--gp-app-sidebar-active);
    color: var(--gp-app-primary);
}

.gp-side-nav__menu a.gp-menu-kbd-active i { color: var(--gp-app-primary); }

.gp-side-nav__menu {
    list-style: none;
    margin: 0;
    padding: 8px 0 16px;
}

.gp-side-nav__menu li {
    margin: 0;
    padding: 0;
    list-style: none;
    background: transparent;
}

.gp-side-nav__menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 9px 16px 9px 14px;
    color: var(--gp-app-sidebar-text);
    text-decoration: none;
    font-family: var(--gp-font);
    font-size: calc(var(--gp-app-body-fs) * var(--gp-fs));
    font-weight: 400;
    line-height: 1.35;
    position: relative;
    border: 0;
    background: transparent;
    box-sizing: border-box;
}

.gp-side-nav__menu a i {
    width: 16px;
    flex-shrink: 0;
    text-align: center;
    color: var(--gp-app-sidebar-muted);
    font-size: 14px;
}

.gp-side-nav__menu a .title {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.gp-side-nav__menu a:hover {
    background: var(--gp-app-sidebar-hover);
    color: #334155;
}

.gp-side-nav__menu a:hover i { color: #475569; }

.gp-side-nav__menu li.is-active > a,
.gp-side-nav__menu a:focus {
    background: var(--gp-app-sidebar-active);
    color: var(--gp-app-primary);
}

.gp-side-nav__menu li.is-active > a i,
.gp-side-nav__menu a:focus i { color: var(--gp-app-primary); }

.gp-side-nav__menu li.is-active > a::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gp-app-primary);
    border-radius: 0 2px 2px 0;
}

.gp-page-shell.sidebar-collapsed .gp-side-nav__menu > li > a {
    justify-content: center;
    gap: 0;
    min-height: 40px;
    padding: 8px;
}

.gp-page-shell.sidebar-collapsed .gp-side-nav__menu > li > a .title {
    position: absolute;
    left: -9999px;
    width: 0;
    height: 0;
    overflow: hidden;
}

@media (min-width: 992px) {
    .gp-page-shell.sidebar-collapsed .gp-menu-search { display: none !important; }
    .gp-page-shell.sidebar-collapsed.gp-sidebar-hover-open .gp-menu-search { display: block !important; }

    .gp-page-shell.sidebar-collapsed .gp-side-nav {
        overflow: visible;
    }

    .gp-page-shell.sidebar-collapsed.gp-sidebar-hover-open .gp-side-nav {
        z-index: 1196;
    }

    .gp-page-shell.sidebar-collapsed.gp-sidebar-hover-open .gp-side-nav__inner {
        position: fixed;
        left: 0;
        top: var(--gp-header-h);
        width: var(--gp-sidebar-w);
        height: calc(100vh - var(--gp-header-h));
        background: var(--gp-app-sidebar);
        box-shadow: 8px 0 24px rgba(15, 39, 68, 0.16);
        border-right: 1px solid var(--gp-app-sidebar-border);
        overflow-x: hidden;
        overflow-y: auto;
        z-index: 1;
    }

    .gp-page-shell.sidebar-collapsed.gp-sidebar-hover-open .gp-side-nav__menu > li > a {
        justify-content: flex-start;
        gap: 12px;
        min-height: 42px;
        padding: 9px 16px 9px 14px;
    }

    .gp-page-shell.sidebar-collapsed.gp-sidebar-hover-open .gp-side-nav__menu > li > a .title {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        flex: 1;
    }
}

@media (max-width: 991px) {
    .gp-mobile-nav-backdrop {
        display: none;
        position: fixed;
        top: var(--gp-header-h);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1194;
        margin: 0;
        padding: 0;
        border: 0;
        background: rgba(15, 39, 68, 0.35);
        cursor: pointer;
    }

    body.gp-mobile-nav-open .gp-mobile-nav-backdrop,
    .gp-mobile-nav-backdrop:not([hidden]) {
        display: block;
    }

    body.gp-app-shell.gp-admin-shell .gp-context-bar {
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        position: relative !important;
        top: auto !important;
        z-index: 1100 !important;
    }

    body.gp-app-shell.gp-admin-shell {
        padding-top: 0 !important;
    }

    body.gp-app-shell.gp-admin-shell .gp-app-header {
        position: sticky !important;
        top: 0 !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        z-index: 1200 !important;
    }

    .gp-page-shell {
        flex-direction: column;
    }

    .gp-page-shell.sidebar-collapsed .gp-side-nav,
    .gp-side-nav {
        display: block !important;
        flex: none;
        position: fixed !important;
        top: var(--gp-header-h) !important;
        left: 0 !important;
        right: auto !important;
        bottom: 0 !important;
        width: var(--gp-sidebar-w) !important;
        max-width: min(var(--gp-sidebar-w), 86vw);
        height: calc(100vh - var(--gp-header-h)) !important;
        height: calc(100dvh - var(--gp-header-h)) !important;
        z-index: 1195 !important;
        overflow-x: hidden;
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform 0.22s ease;
        background: var(--gp-app-sidebar) !important;
        border-right: 1px solid var(--gp-app-sidebar-border);
        box-shadow: none;
    }

    body.gp-mobile-nav-open .gp-side-nav,
    .gp-side-nav.is-mobile-open {
        transform: translateX(0);
        box-shadow: 8px 0 24px rgba(15, 39, 68, 0.16);
    }

    .gp-page-shell.sidebar-collapsed .gp-menu-search,
    .gp-page-shell.sidebar-collapsed.gp-sidebar-hover-open .gp-menu-search,
    .gp-side-nav .gp-menu-search,
    .gp-side-nav.is-mobile-open .gp-menu-search {
        display: block !important;
    }

    .gp-page-shell.sidebar-collapsed .gp-side-nav__menu > li > a,
    .gp-side-nav.is-mobile-open .gp-side-nav__menu > li > a {
        justify-content: flex-start !important;
        gap: 12px !important;
        min-height: 42px;
        padding: 9px 16px 9px 14px !important;
    }

    .gp-page-shell.sidebar-collapsed .gp-side-nav__menu > li > a .title,
    .gp-side-nav.is-mobile-open .gp-side-nav__menu > li > a .title {
        position: static !important;
        left: auto !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        flex: 1;
    }

    body.gp-app-shell.gp-admin-shell .gp-wrap--home {
        padding-top: 20px;
        padding-left: 12px;
        padding-right: 12px;
    }

    body.gp-app-shell.gp-admin-shell .gp-app-header__inner {
        padding: 0 0 0 12px;
        gap: 8px;
    }

    body.gp-app-shell.gp-admin-shell .gp-app-header__left {
        gap: 6px;
    }

    body.gp-app-shell.gp-admin-shell .gp-app-header__right {
        gap: 0;
    }
}

.gp-portal-fs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 28px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    user-select: none;
}

.gp-portal-fs span,
.gp-portal-fs #gpFsReset {
    font-size: calc(12px * var(--gp-fs, 1));
    opacity: 0.9;
}

.gp-portal-fs button {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-size: calc(0.8rem * var(--gp-fs));
    font-weight: 600;
    padding: 2px 4px;
    line-height: 1;
}

.gp-portal-fs button:hover {
    opacity: 0.85;
}

.gp-a11y-menu {
    position: relative;
    display: flex;
    align-items: stretch;
    align-self: stretch;
    flex-shrink: 0;
    height: var(--gp-header-h, 43px);
}

.gp-a11y-menu__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 100%;
    min-height: var(--gp-header-h, 43px);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}

.gp-a11y-menu__trigger:hover,
.gp-a11y-menu__trigger:focus-visible,
.gp-a11y-menu__trigger[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.16);
    outline: none;
    box-shadow: none;
}

.gp-a11y-menu__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1300;
    width: min(280px, calc(100vw - 24px));
    padding: 14px 14px 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5eaf2;
    box-shadow: 0 10px 28px rgba(15, 39, 68, 0.16);
    color: var(--gp-app-text, #1a1a1a);
    box-sizing: border-box;
}

.gp-a11y-menu__dropdown[hidden] {
    display: none;
}

.gp-a11y-menu__title {
    margin: 0 0 12px;
    font-family: var(--gp-app-font, "Open Sans", Arial, Helvetica, sans-serif);
    font-size: calc(var(--gp-app-body-fs) * var(--gp-fs, 1));
    font-weight: 700;
    line-height: 1.5;
    color: #334155;
}

.gp-a11y-menu__group {
    margin: 0 0 10px;
}

.gp-a11y-menu__label {
    display: block;
    margin: 0 0 6px;
    font-family: var(--gp-app-font, "Open Sans", Arial, Helvetica, sans-serif);
    font-size: calc(var(--gp-app-body-fs) * var(--gp-fs, 1));
    font-weight: 400;
    line-height: 1.5;
    color: var(--gp-app-muted, #4a5568);
}

.gp-a11y-menu__fs {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    border-radius: 8px;
    background: #f1f5f9;
}

.gp-a11y-menu__fs span {
    padding: 0 4px;
    font-family: var(--gp-app-font, "Open Sans", Arial, Helvetica, sans-serif);
    font-size: calc(var(--gp-app-body-fs) * var(--gp-fs, 1));
    font-weight: 400;
    line-height: 1.5;
    color: var(--gp-app-muted, #4a5568);
}

.gp-a11y-menu__fs button,
.gp-a11y-menu__item {
    border: 0;
    background: transparent;
    color: var(--gp-app-text, #1a1a1a);
    cursor: pointer;
    font-family: var(--gp-app-font, "Open Sans", Arial, Helvetica, sans-serif);
    font-size: calc(var(--gp-app-body-fs) * var(--gp-fs, 1));
    font-weight: 600;
    line-height: 1.5;
}

.gp-a11y-menu__fs button {
    min-width: 36px;
    min-height: 32px;
    padding: 4px 6px;
    border-radius: 6px;
}

.gp-a11y-menu__fs button:hover,
.gp-a11y-menu__item:hover {
    background: #e2e8f0;
}

.gp-a11y-menu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 400;
    text-align: left;
}

.gp-a11y-menu__item i {
    width: 1.1rem;
    text-align: center;
    color: #334155;
}

.gp-a11y-menu__item[aria-pressed="true"] {
    background: #e2e8f0;
    font-weight: 600;
}

body.gp-ouv-contrast {
    background: #000 !important;
    color: #fff !important;
}

body.gp-ouv-contrast .gp-wrap,
body.gp-ouv-contrast .gp-home,
body.gp-ouv-contrast .gp-home__card,
body.gp-ouv-contrast .gp-perfil,
body.gp-ouv-contrast .gp-perfil__main {
    background: #000 !important;
    color: #fff !important;
}

body.gp-ouv-contrast .gp-home__card {
    border-color: #fff;
}

body.gp-ouv-contrast .gp-home__section-title,
body.gp-ouv-contrast .gp-home__card-title,
body.gp-ouv-contrast .gp-home__card-desc {
    color: #fff !important;
}

body.gp-ouv-contrast .gp-a11y-menu__dropdown {
    background: #000;
    border-color: #fff;
    color: #fff;
}

body.gp-ouv-contrast .gp-a11y-menu__title,
body.gp-ouv-contrast .gp-a11y-menu__label,
body.gp-ouv-contrast .gp-a11y-menu__fs span,
body.gp-ouv-contrast .gp-a11y-menu__fs button,
body.gp-ouv-contrast .gp-a11y-menu__item,
body.gp-ouv-contrast .gp-a11y-menu__item i {
    color: #fff;
}

body.gp-ouv-contrast .gp-a11y-menu__fs,
body.gp-ouv-contrast .gp-a11y-menu__fs button:hover,
body.gp-ouv-contrast .gp-a11y-menu__item:hover,
body.gp-ouv-contrast .gp-a11y-menu__item[aria-pressed="true"] {
    background: #222;
}

/* Status de conexão (Wi‑Fi) */
.gp-net-status {
    position: relative;
    display: flex;
    align-items: stretch;
    align-self: stretch;
    flex-shrink: 0;
    height: var(--gp-header-h, 43px);
}

.gp-net-status__trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 100%;
    min-height: var(--gp-header-h, 43px);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
    box-shadow: none;
}

.gp-net-status__trigger:hover,
.gp-net-status__trigger:focus-visible,
.gp-net-status__trigger[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.16);
    outline: none;
    box-shadow: none;
}

.gp-net-status__dot {
    position: absolute;
    top: 50%;
    right: 8px;
    bottom: auto;
    margin-top: 1px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid #111;
    background: #94a3b8;
}

.gp-net-status.is-good .gp-net-status__dot,
.gp-net-status.is-good .gp-net-status__badge { background: #22c55e; }

.gp-net-status.is-fair .gp-net-status__dot,
.gp-net-status.is-fair .gp-net-status__badge { background: #eab308; }

.gp-net-status.is-bad .gp-net-status__dot,
.gp-net-status.is-bad .gp-net-status__badge { background: #ef4444; }

.gp-net-status__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 260px;
    max-width: min(340px, calc(100vw - 24px));
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5eaf2;
    box-shadow: 0 10px 28px rgba(15, 39, 68, 0.14);
    color: var(--gp-text);
    box-sizing: border-box;
}

.gp-net-status__dropdown[hidden] { display: none; }

.gp-net-status__text {
    margin: 0;
    flex: 1;
    font-family: var(--gp-font);
    font-size: calc(0.85rem * var(--gp-fs));
    font-weight: 400;
    line-height: 1.35;
    color: #334155;
}

.gp-net-status__badge {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
    background: #94a3b8;
}

/* Menu de atendimento (headset → WhatsApp) */
.gp-atend-menu {
    position: relative;
    display: flex;
    align-items: stretch;
    align-self: stretch;
    flex-shrink: 0;
    height: var(--gp-header-h, 43px);
}

.gp-atend-menu__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 100%;
    min-height: var(--gp-header-h, 43px);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    box-shadow: none;
}

.gp-atend-menu__trigger:hover,
.gp-atend-menu__trigger:focus-visible,
.gp-atend-menu__trigger[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.16);
    outline: none;
    box-shadow: none;
}

.gp-atend-menu__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1300;
    min-width: 280px;
    max-width: min(360px, calc(100vw - 24px));
    padding: 14px 16px 16px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5eaf2;
    box-shadow: 0 10px 28px rgba(15, 39, 68, 0.16);
    color: var(--gp-text);
    box-sizing: border-box;
}

.gp-atend-menu__dropdown[hidden] { display: none; }

.gp-atend-menu__title {
    margin: 0 0 12px;
    font-family: var(--gp-font);
    font-size: calc(0.92rem * var(--gp-fs));
    font-weight: 700;
    color: #6b7280;
}

.gp-atend-menu__cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gp-atend-menu__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 108px;
    min-height: 92px;
    padding: 12px 10px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #1f2937;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.gp-atend-menu__card i {
    font-size: 1.55rem;
    line-height: 1;
    color: #25d366;
}

.gp-atend-menu__card span {
    font-family: var(--gp-font);
    font-size: calc(0.78rem * var(--gp-fs));
    font-weight: 600;
    line-height: 1.2;
    color: #4b5563;
}

.gp-atend-menu__card:hover {
    background: #e5e7eb;
    box-shadow: 0 2px 8px rgba(15, 39, 68, 0.08);
}

/* Menu Utilitários */
.gp-util-menu {
    position: relative;
    display: flex;
    align-items: stretch;
    align-self: stretch;
    flex-shrink: 0;
    height: var(--gp-header-h, 43px);
}

#gpMenuBusca {
    display: flex;
    align-items: stretch;
    align-self: stretch;
    height: var(--gp-header-h, 43px);
    flex-shrink: 0;
}

#gpMenuBusca .gp-util-menu__trigger {
    display: inline-flex !important;
}

#gpMenuBusca .gp-util-menu__dropdown {
    width: min(380px, calc(100vw - 24px));
    max-height: none;
    overflow: visible;
    padding: 12px;
    border-radius: 10px;
}

#gpMenuBusca .gp-menu-busca__list {
    gap: 8px;
    max-height: min(56vh, 420px);
    overflow: auto;
    padding-right: 2px;
}

#gpMenuBusca .gp-menu-busca__item {
    align-items: flex-start;
    min-height: 52px;
    height: auto;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f3f5f8;
    gap: 12px;
}

#gpMenuBusca .gp-menu-busca__item:hover,
#gpMenuBusca .gp-menu-busca__item.is-kb-active {
    background: #e8eef8;
    color: var(--gp-text);
    outline: none;
}

#gpMenuBusca .gp-menu-busca__item i {
    margin-top: 3px;
    width: 20px;
    font-size: 1.05rem;
    color: var(--gp-primary);
}

#gpMenuBusca .gp-menu-busca__item span {
    display: block;
    flex: none;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
}

#gpMenuBusca .gp-menu-busca__text {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto;
    gap: 2px;
    min-width: 0;
    overflow: hidden;
    white-space: normal;
}

#gpMenuBusca .gp-menu-busca__nome {
    display: block !important;
    flex: none !important;
    font-size: calc(0.9rem * var(--gp-fs));
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.3;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

#gpMenuBusca .gp-menu-busca__caminho {
    display: block !important;
    flex: none !important;
    font-size: calc(0.75rem * var(--gp-fs));
    font-weight: 400;
    color: #8a97a8;
    line-height: 1.3;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gp-util-menu__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 100%;
    min-height: var(--gp-header-h, 43px);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
    box-shadow: none;
}

.gp-util-menu__trigger:hover,
.gp-util-menu__trigger:focus-visible,
.gp-util-menu__trigger[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.16);
    outline: none;
    box-shadow: none;
}

.gp-util-menu__dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: min(420px, calc(100vw - 24px));
    padding: 10px;
    margin: 0;
    background: #fff;
    border: 1px solid var(--gp-border);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(15, 39, 68, 0.16);
    z-index: 1200;
    box-sizing: border-box;
}

.gp-util-menu__dropdown[hidden] { display: none; }

.gp-util-menu__dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -8px;
    height: 8px;
}

.gp-util-menu__search { margin-bottom: 10px; }

.gp-util-menu__search-input {
    display: block;
    width: 100%;
    min-height: 32px;
    height: 32px;
    margin: 0;
    padding: 4px 8px;
    border: 1px solid #d0d0d0;
    border-radius: 2px;
    background: #fff;
    color: #1a1a1a;
    font-family: var(--gp-font, "Open Sans", Arial, Helvetica, sans-serif);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.25;
    outline: none;
    box-shadow: none;
    box-sizing: border-box;
}

.gp-util-menu__search-input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

input.gp-util-menu__search-input:focus,
input.gp-util-menu__search-input:focus-visible {
    outline: none !important;
    border-color: #9aa0a6 !important;
    box-shadow: none !important;
}

.gp-util-menu__grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 280px;
    overflow: auto;
}

.gp-util-menu__item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 42px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: #f3f5f8;
    color: var(--gp-text);
    text-decoration: none !important;
    font-family: var(--gp-font);
    font-size: calc(0.85rem * var(--gp-fs));
    font-weight: 400;
    line-height: 1.25;
    box-sizing: border-box;
    width: 100%;
}

.gp-util-menu__item i {
    width: 18px;
    font-size: 1rem;
    color: var(--gp-primary);
    text-align: center;
    flex-shrink: 0;
}

.gp-util-menu__item span {
    display: block;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gp-util-menu__item:hover {
    background: #e8eef8;
    color: var(--gp-primary-hover);
}

.gp-util-menu__item.is-kbd {
    background: #0761ff;
    color: #fff;
}

.gp-util-menu__item.is-hidden { display: none; }

.gp-util-menu__empty {
    margin: 8px 4px 4px;
    font-size: calc(0.85rem * var(--gp-fs));
    color: #64748b;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gp-wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.gp-wrap--home {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 24px var(--gp-header-pad-x) 48px;
    box-sizing: border-box;
}

body.gp-app-shell.gp-admin-shell:has(.gp-context-bar) .gp-wrap--home {
    padding-top: calc(24px + var(--gp-context-h));
}

@media (max-width: 575px) {
    .gp-portal-fs span,
    .gp-portal-fs #gpFsReset { display: none; }
    .gp-app-header__left { gap: 10px; }
    .gp-app-header__brand-name {
        max-width: min(110px, 28vw);
        padding: 0 10px;
        font-size: calc(0.8rem * var(--gp-fs));
    }
}

.gp-perfil__brand {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
    height: 30px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    text-decoration: none;
    color: #fff;
    line-height: 1;
    white-space: nowrap;
    border: none;
    box-shadow: none;
    min-width: 0;
}

.gp-perfil__brand:hover {
    color: #fff;
    text-decoration: none;
    opacity: 0.92;
}

button.gp-sys-switcher__trigger.gp-perfil__brand {
    border: 0;
    cursor: pointer;
    font: inherit;
    padding: 0;
    background: transparent;
}

/* Switcher de sistemas (Mais soluções) — padrão Portal */
.gp-sys-switcher {
    position: relative;
    flex-shrink: 0;
}

.gp-sys-switcher__panel {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    z-index: 1300;
    width: min(420px, calc(100vw - 24px));
    padding: 14px;
    background: #fff;
    border: 1px solid #e5eaf2;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 39, 68, 0.16);
    box-sizing: border-box;
}

.gp-sys-switcher__panel[hidden] {
    display: none !important;
}

.gp-sys-switcher__panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
}

.gp-sys-switcher__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.gp-sys-switcher__head-title {
    font-family: var(--gp-font);
    font-size: calc(0.75rem * var(--gp-fs));
    font-weight: 400;
    color: #94a3b8;
    letter-spacing: 0.02em;
}

.gp-sys-switcher__head-link {
    font-family: var(--gp-font);
    font-size: calc(0.8rem * var(--gp-fs));
    font-weight: 400;
    color: var(--gp-primary);
    text-decoration: none;
}

.gp-sys-switcher__head-link:hover {
    text-decoration: underline;
}

.gp-sys-switcher__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.gp-sys-switcher__tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-height: 88px;
    padding: 12px;
    border-radius: 10px;
    background: #f3f5f8;
    border: 1px solid transparent;
    text-decoration: none !important;
    color: #334155 !important;
    box-sizing: border-box;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

a.gp-sys-switcher__tile:hover {
    background: #e8eef8;
    border-color: #c9dbff;
    box-shadow: 0 2px 8px rgba(7, 97, 255, 0.08);
}

.gp-sys-switcher__tile.is-current {
    background: #e8f1fb;
    border-color: #9dbcf0;
    cursor: default;
}

.gp-sys-switcher__tile-icon {
    width: 32px;
    height: 32px;
    border-radius: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #5b9dff !important;
    font-size: 1.2rem;
}

.gp-sys-switcher__tile-icon i,
.gp-sys-switcher__tile-icon svg {
    font-weight: 900 !important;
    font-style: normal;
    line-height: 1;
    color: inherit !important;
}

.gp-sys-switcher__tile-name {
    font-family: var(--gp-font);
    font-size: calc(0.8rem * var(--gp-fs));
    font-weight: 400;
    line-height: 1.25;
    color: #334155;
}

@media (max-width: 575px) {
    .gp-sys-switcher__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.gp-perfil__brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 8px 0 0 8px;
    background: #263e81;
    box-sizing: border-box;
    color: #fff;
    font-family: var(--gp-app-font);
    font-weight: 700;
    font-size: calc(var(--gp-app-body-fs) * var(--gp-fs));
    line-height: 1;
}

.gp-perfil__brand-icon::before {
    content: "A";
}

.gp-perfil__brand-mark {
    display: none;
}

.gp-perfil__brand-text {
    display: inline-flex;
    align-items: center;
    position: relative;
    height: 30px;
    padding: 0 14px;
    border-radius: 0 8px 8px 0;
    background: #263e81;
    color: #fff;
    opacity: 1;
    font-family: var(--gp-app-font);
    font-style: normal;
    font-weight: 400;
    font-size: calc(var(--gp-app-body-fs) * var(--gp-fs));
    letter-spacing: 0.01em;
    text-transform: uppercase;
    text-shadow: none;
    line-height: 1;
    overflow: visible;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: min(340px, 50vw);
    box-sizing: border-box;
}

.gp-perfil__brand-text::before,
.gp-perfil__brand-text::after {
    content: "";
    position: absolute;
    left: -5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gp-header-bg);
    pointer-events: none;
    z-index: 1;
}

.gp-perfil__brand-text::before {
    top: -5px;
}

.gp-perfil__brand-text::after {
    bottom: -5px;
}

/* Menu do usuário — mesmo padrão do Portal (home) */
.gp-user-menu {
    position: relative;
    display: flex;
    align-items: stretch;
    align-self: stretch;
    height: var(--gp-header-h, 43px);
}

.gp-user-menu__trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 100%;
    min-height: var(--gp-header-h, 43px);
    padding: 0 4px 0 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-family: var(--gp-font);
    font-size: calc(0.9rem * var(--gp-fs));
    font-weight: 400;
    line-height: 1.2;
    box-shadow: none;
}

.gp-user-menu__trigger:hover,
.gp-user-menu__trigger:focus-visible,
.gp-user-menu__trigger[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.16);
    outline: none;
    box-shadow: none;
}

.gp-user-menu__avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.45);
    display: block;
    box-sizing: border-box;
}

.gp-user-menu__avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.65rem;
    line-height: 1;
}

.gp-user-menu__name {
    max-width: 170px;
    font-size: calc(0.9rem * var(--gp-fs));
    font-weight: 400;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: uppercase;
}

.gp-user-menu__trigger .fa-chevron-down {
    font-size: calc(0.65rem * var(--gp-fs));
}

.gp-user-menu__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 260px;
    max-width: min(340px, calc(100vw - 24px));
    background: #fff;
    border: 1px solid #e5eaf2;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(15, 39, 68, 0.14), 0 2px 6px rgba(15, 39, 68, 0.06);
    padding: 0;
    overflow: hidden;
    z-index: 1200;
}

.gp-user-menu__dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -8px;
    height: 8px;
}

.gp-user-menu__email {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 6px 10px;
    margin-bottom: 2px;
    font-size: 0.8rem;
    color: var(--gp-text-muted);
    border-bottom: 1px solid #eef2f7;
    word-break: break-word;
}

.gp-user-menu__identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 14px 14px 12px;
    background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
    border-bottom: 1px solid #eef2f7;
    min-width: 0;
    text-align: center;
}

.gp-user-menu__identity-avatar {
    display: none;
}

.gp-user-menu__identity-avatar--placeholder {
    display: none;
}

.gp-user-menu__identity-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    width: 100%;
}

.gp-user-menu__identity-name {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700 !important;
    color: var(--gp-text);
    line-height: 1.25;
    word-break: break-word;
    text-align: center;
}

.gp-auth-body .gp-user-menu__identity-name,
.gp-perfil-body .gp-user-menu__identity-name {
    font-weight: 700 !important;
}

.gp-user-menu__identity-user {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--gp-text-muted);
    line-height: 1.3;
    word-break: break-word;
    text-align: center;
}

.gp-user-menu__identity-label {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.2;
}

.gp-user-menu__actions {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px;
}

.gp-user-menu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--gp-text);
    text-decoration: none !important;
    font-family: var(--gp-font);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
}

.gp-user-menu__item i {
    width: 1.1em;
    text-align: center;
    color: #64748b;
}

.gp-user-menu__item:hover {
    background: #eef3ff;
    color: var(--gp-primary-hover);
}

.gp-user-menu__item:hover i {
    color: var(--gp-primary);
}

.gp-user-menu__item--danger {
    color: #9b2c2c;
}

.gp-user-menu__item--danger i {
    color: #c53030;
}

.gp-user-menu__item--danger:hover {
    background: #fff5f5;
    color: #c53030;
}

.gp-user-menu__item--danger:hover i {
    color: #c53030;
}

@media (max-width: 767px) {
    .gp-user-menu__name {
        max-width: min(140px, 40vw);
    }
}

@media (max-width: 575px) {
    .gp-user-menu__name {
        max-width: min(110px, 36vw);
    }
}

.gp-perfil__entidade {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 20px;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    flex-shrink: 0;
}

.gp-perfil__entidade-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #555;
    font-size: 0.875rem;
    max-width: 100%;
}

.gp-perfil__entidade-link:hover {
    color: var(--gp-primary);
    text-decoration: none;
}

.gp-perfil__entidade-crest {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0c14a, #2f6fed 55%, #1e9e4a);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    flex-shrink: 0;
}

.gp-perfil__entidade-label {
    font-weight: 400;
    color: #666;
}

.gp-perfil__entidade-nome {
    font-weight: 400;
    color: #444;
    letter-spacing: 0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gp-perfil__entidade-chevron {
    font-size: 0.7rem;
    color: #888;
    margin-left: 2px;
}

.gp-perfil__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 24px 32px;
    box-sizing: border-box;
}

.gp-perfil__title {
    margin: 0;
    font-size: clamp(1.1rem, 2vh, 1.3rem);
    font-weight: 700;
    color: #5a5a5a;
    line-height: 1.3;
}

.gp-perfil__title--strong {
    font-weight: 700;
}

.gp-perfil__divider {
    border: 0;
    border-top: 1px solid #ececec;
    margin: 12px 0 0;
    width: 100%;
}

.gp-perfil__search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 480px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.gp-perfil__search .gp-list-icon-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    background: #fff;
    color: #1a1a1a;
    text-decoration: none;
    box-sizing: border-box;
}

.gp-perfil__search .gp-list-icon-btn:hover {
    background: #f3f4f6;
    border-color: #d5d5d5;
    color: #1a1a1a;
}

.gp-perfil__cards > .gp-perfil__search {
    margin-bottom: 4px;
}

.gp-perfil__card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.gp-perfil__card-desc {
    display: block;
    margin: 0;
    opacity: 0.75;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.3;
}

input.gp-perfil__search-input {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 32px;
    height: 32px;
    margin: 0;
    padding: 4px 8px;
    border: 1px solid #d0d0d0;
    border-radius: 2px;
    background: #fff;
    color: #1a1a1a;
    font-family: var(--gp-app-font, "Open Sans", Arial, Helvetica, sans-serif);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.25;
    outline: none;
    box-shadow: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

input.gp-perfil__search-input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

input.gp-perfil__search-input:focus,
input.gp-perfil__search-input:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
    border-color: #9aa0a6 !important;
    box-shadow: none !important;
}

.gp-perfil__cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 20px 16px 28px;
    width: 100%;
    box-sizing: border-box;
}

.gp-perfil__cards--scroll {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: calc(100vh - 160px);
    padding-right: 4px;
}

.gp-perfil__card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 480px;
    min-height: 68px;
    padding: 14px 12px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    background: #f5f5f5;
    color: #555;
    font-family: var(--gp-font);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.gp-perfil__card:hover {
    background: #eef3ff;
    border-color: #c9dbff;
    box-shadow: 0 2px 10px rgba(7, 97, 255, 0.08);
}

.gp-perfil__card:active {
    transform: translateY(1px);
}

.gp-perfil__card:focus,
.gp-perfil__card:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
    background: #e8f0ff !important;
    border-color: #0761ff !important;
}

.gp-perfil__card--inicial,
.gp-perfil__card.is-selected {
    background: #e8f0ff !important;
    border-color: #0761ff !important;
}

.gp-perfil__card:disabled {
    opacity: 0.7;
    cursor: wait;
}

.gp-perfil__card.is-loading {
    border-color: var(--gp-primary);
    background: #e8f0ff;
}

.gp-perfil__card-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #e8eef8;
    color: #5b9dff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
}

.gp-perfil__card-icon svg {
    width: 36px;
    height: 36px;
}

.gp-perfil__card-brasao {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.gp-perfil__card-label {
    font-size: 1rem;
    font-weight: 400;
    color: #555;
    line-height: 1.3;
}

.gp-perfil__footer-link {
    display: flex;
    justify-content: center;
    padding: 8px 16px 28px;
}

.gp-perfil__footer-link .gp-auth__link {
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .gp-perfil__main {
        padding: 20px 16px 32px;
    }

    .gp-perfil__entidade {
        padding: 0 16px;
    }

    .gp-perfil__title {
        font-size: 1.1rem;
    }

    .gp-perfil__search {
        max-width: 100%;
    }

    .gp-perfil__card {
        max-width: 100%;
        min-height: 68px;
        padding: 12px 10px;
        gap: 10px;
    }

    .gp-perfil__card-icon {
        width: 36px;
        height: 36px;
        font-size: 1.35rem;
    }

    .gp-perfil__card-icon svg {
        width: 32px;
        height: 32px;
    }

    .gp-perfil__card-label {
        font-size: 0.95rem;
    }
}

/* ===== Minha conta ===== */
.gp-conta__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.gp-conta__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gp-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
}

.gp-conta__back:hover {
    color: var(--gp-primary);
    text-decoration: none;
}

.gp-conta {
    display: flex;
    justify-content: center;
    padding: 24px 16px 32px;
    width: 100%;
    box-sizing: border-box;
}

.gp-conta__card {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(15, 39, 68, 0.06);
    padding: 24px 22px;
    box-sizing: border-box;
}

.gp-conta__field {
    margin-bottom: 16px;
}

.gp-conta__foto {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eef2f7;
}

.gp-conta__foto-preview {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #e8edf5;
    border: 2px solid #d0d7e4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gp-conta__foto-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    inset: 0;
}

.gp-conta__foto-img.is-hidden,
.gp-conta__foto-placeholder.is-hidden {
    display: none !important;
}

.gp-conta__foto-placeholder {
    color: #8a94a6;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.gp-conta__foto-placeholder svg {
    display: block;
}

.gp-conta__foto-actions {
    flex: 1;
    min-width: 0;
}

.gp-conta__file {
    display: block;
    width: 100%;
    margin-top: 4px;
    font-family: var(--gp-font);
    font-size: 0.85rem;
    color: var(--gp-text);
}

.gp-conta__check-remove {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #9b2c2c;
    cursor: pointer;
}

.gp-conta__label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gp-text-muted);
}

.gp-req,
.gp-conta__required {
    color: #c0392b;
    font-weight: 400;
    margin-left: 2px;
}

.gp-conta__input {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius-input);
    background: #fff;
    color: var(--gp-text);
    font-family: var(--gp-font);
    font-size: 0.9rem;
    line-height: 1.3;
    box-sizing: border-box;
}

.gp-conta__input[readonly] {
    background: #f1f3f5;
    color: #495057;
    cursor: not-allowed;
}

.gp-conta__input--editable:focus {
    outline: none;
    border-color: var(--gp-primary);
    box-shadow: 0 0 0 3px rgba(7, 97, 255, 0.12);
}

.gp-conta__hint {
    display: block;
    margin-top: 5px;
    font-size: 0.75rem;
    color: var(--gp-text-muted);
}

.gp-conta__password-wrap {
    position: relative;
}

.gp-conta__password-wrap .gp-conta__input {
    padding-right: 42px;
}

.gp-conta__toggle-pass {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #888;
    cursor: pointer;
    padding: 6px;
    line-height: 1;
}

.gp-conta__toggle-pass:hover {
    color: var(--gp-primary);
}

.gp-conta__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.gp-conta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: var(--gp-radius-btn);
    font-family: var(--gp-font);
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: none !important;
    cursor: pointer;
    box-sizing: border-box;
}

.gp-conta__btn--primary {
    border: 1px solid var(--gp-primary);
    background: var(--gp-primary);
    color: #fff;
}

.gp-conta__btn--primary:hover {
    background: var(--gp-primary-hover);
    border-color: var(--gp-primary-hover);
    color: #fff;
}

.gp-conta__btn--secondary {
    border: 1px solid var(--gp-border);
    background: #fff;
    color: #555;
}

.gp-conta__btn--secondary:hover {
    border-color: #b0b0b0;
    color: #333;
}

.gp-conta__senha-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gp-conta__senha-row .gp-conta__input {
    flex: 1;
    min-width: 0;
}

.gp-conta__btn--senha {
    flex-shrink: 0;
    white-space: nowrap;
}

body.gp-senha-modal-open {
    overflow: hidden;
}

.gp-senha-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.gp-senha-modal.is-open {
    display: flex;
}

.gp-senha-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.gp-senha-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(15, 39, 68, 0.22);
    overflow: hidden;
}

.gp-senha-modal__header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 18px 0;
}

.gp-senha-modal__header-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--gp-primary-soft);
    color: var(--gp-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gp-senha-modal__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gp-text);
}

.gp-senha-modal__subtitle {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: var(--gp-text-muted);
}

.gp-senha-modal__close {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #888;
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
}

.gp-senha-modal__close:hover {
    color: var(--gp-text);
}

.gp-senha-modal__body {
    padding: 16px 18px 8px;
}

.gp-senha-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 8px 18px 18px;
    flex-wrap: wrap;
}

@media (max-width: 575px) {
    .gp-conta__card {
        padding: 18px 14px;
    }

    .gp-conta__foto {
        flex-direction: column;
        align-items: flex-start;
    }

    .gp-conta__senha-row {
        flex-direction: column;
        align-items: stretch;
    }

    .gp-conta__actions,
    .gp-senha-modal__footer {
        flex-direction: column-reverse;
    }

    .gp-conta__btn {
        width: 100%;
    }
}


button.gp-conta__back {
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

body.gp-conta-portal .gp-perfil__main {
    padding-top: 28px;
}

/* Home — cards no padrão do Portal / Cidadão */
.gp-home {
    width: 100%;
    max-width: none;
    margin: 0;
}

.gp-home__section-title {
    margin: 0 0 12px;
    font-size: calc(1rem * var(--gp-fs));
    font-weight: 700 !important;
    color: #5a5a5a;
}

.gp-home__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: none;
}

.gp-home__card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 68px;
    padding: 14px 12px;
    background: #f5f5f5;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    text-decoration: none !important;
    color: #555 !important;
    box-shadow: none;
    box-sizing: border-box;
    min-width: 0;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.gp-home__card:hover,
.gp-home__card:focus {
    background: #eef3ff;
    border-color: #c9dbff;
    box-shadow: 0 2px 10px rgba(7, 97, 255, 0.08);
    color: #555 !important;
}

.gp-home__card-icon {
    width: 40px;
    height: 40px;
    border-radius: 0;
    background: transparent;
    color: #5b9dff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
}

.gp-home__card-icon i,
.gp-home__card-icon svg {
    font-weight: 900 !important;
    font-style: normal;
    line-height: 1;
    color: inherit;
    width: 1.2em;
    height: 1.2em;
}

.gp-home__card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.gp-home__card-title {
    margin: 0;
    font-family: var(--gp-font, "Open Sans", Arial, Helvetica, sans-serif);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    color: #555;
}

.gp-home__card-desc {
    margin: 0;
    font-family: var(--gp-font, "Open Sans", Arial, Helvetica, sans-serif);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    color: #777;
    opacity: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 991px) {
    .gp-home__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gp-home__card {
        min-height: 68px;
        padding: 12px 10px;
        gap: 10px;
    }

    .gp-home__card-icon {
        width: 36px;
        height: 36px;
        font-size: 1.35rem;
    }

    .gp-home__card-title {
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .gp-home__grid {
        grid-template-columns: 1fr;
    }
}

body.gp-app-shell:has(.gp-context-bar) {
    padding-top: var(--gp-chrome-h) !important;
}

body.gp-app-shell.gp-admin-shell,
body.gp-app-shell.gp-admin-shell:has(.gp-context-bar) {
    padding-top: var(--gp-header-h) !important;
}

body:has(.gp-context-bar) .gp-perfil__entidade {
    display: none;
}

.gp-context-bar {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    color: #555;
    box-sizing: border-box;
}

body.gp-app-shell .gp-context-bar {
    position: fixed;
    top: var(--gp-header-h);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1190;
    height: var(--gp-context-h);
}

body.gp-app-shell.gp-admin-shell .gp-context-bar {
    left: var(--gp-sidebar-current-w, var(--gp-sidebar-w));
    width: auto;
    right: 0;
}

body.gp-app-shell.gp-admin-shell.gp-sidebar-collapsed .gp-context-bar {
    left: var(--gp-sidebar-current-w, var(--gp-sidebar-collapsed-w));
    width: auto;
    right: 0;
}

.gp-context-bar__inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 16px;
    height: var(--gp-context-h);
    padding: 0 var(--gp-header-pad-x);
    box-sizing: border-box;
    min-width: 0;
}

.gp-context-bar .gp-entidade {
    position: relative;
    min-width: 0;
    max-width: min(420px, 55vw);
}

.gp-context-bar .gp-app-header__entidade {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-width: 0;
    padding: 4px 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #555;
    font-family: var(--gp-app-font);
    font-size: calc(0.875rem * var(--gp-fs));
    line-height: 1.2;
    cursor: pointer;
    overflow: hidden;
}

.gp-context-bar .gp-entidade__trigger:hover,
.gp-context-bar .gp-entidade__trigger[aria-expanded="true"] {
    background: #f3f5f8;
}

.gp-context-bar .gp-entidade--single .gp-entidade__trigger {
    cursor: default;
    pointer-events: none;
}

.gp-context-bar .gp-entidade--single .gp-entidade__trigger:hover,
.gp-context-bar .gp-entidade--single .gp-entidade__trigger[aria-expanded="true"] {
    background: transparent;
}

.gp-context-bar .gp-app-header__entidade-crest {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e8eef8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.gp-context-bar .gp-app-header__entidade-crest img {
    width: 28px;
    height: 28px;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.gp-context-bar .gp-app-header__entidade-label {
    font-weight: 400;
    color: #666;
    white-space: nowrap;
}

.gp-context-bar .gp-app-header__entidade-nome {
    font-weight: 400;
    color: #444;
    letter-spacing: 0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: uppercase;
}

.gp-context-bar .gp-app-header__entidade-chevron {
    font-size: 0.7rem;
    color: #888;
    margin-left: 2px;
    flex-shrink: 0;
}

.gp-entidade__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 1200;
    width: min(420px, calc(100vw - 24px));
    padding: 10px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--gp-app-border);
    box-shadow: 0 10px 28px rgba(15, 39, 68, 0.16);
    color: var(--gp-app-text);
    box-sizing: border-box;
}

.gp-entidade__search {
    margin-bottom: 10px;
}

.gp-entidade__search-input {
    display: block;
    width: 100%;
    min-height: 32px;
    height: 32px;
    margin: 0;
    padding: 4px 8px;
    border: 1px solid #d0d0d0;
    border-radius: 2px;
    background: #fff;
    color: #1a1a1a;
    font-family: var(--gp-app-font);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.25;
    outline: none;
    box-shadow: none;
    box-sizing: border-box;
}

.gp-entidade__search-input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

input.gp-entidade__search-input:focus,
input.gp-entidade__search-input:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
    border-color: #9aa0a6 !important;
    box-shadow: none !important;
}

.gp-entidade__grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 280px;
    overflow: auto;
}

.gp-entidade__item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: #f3f5f8;
    color: var(--gp-app-text);
    text-align: left;
    font-family: var(--gp-app-font);
    font-size: calc(0.85rem * var(--gp-fs));
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.gp-entidade__brasao {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: #e8eef8;
}

.gp-entidade__brasao img {
    width: 28px;
    height: 28px;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.gp-entidade__item-nome {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gp-entidade__item:hover:not(:disabled) {
    background: #e8eef8;
    color: var(--gp-app-primary-dark);
}

.gp-entidade__item.is-active,
.gp-entidade__item:disabled {
    background: #e8f1fb;
    box-shadow: inset 0 0 0 1px #9dbcf0;
    cursor: default;
    color: var(--gp-app-primary-dark);
}

.gp-entidade__item.is-kbd:not(:disabled) {
    background: #0761ff;
    color: #fff;
}

.gp-entidade__item.is-hidden {
    display: none;
}

.gp-entidade__empty {
    margin: 8px 0 0;
    padding: 10px 4px;
    text-align: center;
    font-size: calc(0.85rem * var(--gp-fs));
    color: var(--gp-app-muted);
}

.gp-auth__social {
    margin-top: 18px;
}

.gp-auth__social-label,
.gp-auth__social-note {
    margin: 0 0 12px;
    font-family: var(--gp-app-font, "Open Sans", Arial, Helvetica, sans-serif);
    font-weight: 400;
    font-size: calc(16px * var(--gp-fs, 1));
    line-height: 1.5;
    color: var(--gp-app-muted, #4a5568);
    text-align: center;
}

.gp-auth--split .gp-auth__social-label {
    font-size: 0.82rem;
    line-height: 1.4;
    color: #9ca3af;
}

.gp-auth__social-note {
    text-align: left;
    margin-bottom: 16px;
}

.gp-auth__social-row {
    display: flex;
    gap: 8px;
}

.gp-auth__social-row form {
    flex: 1 1 0;
    min-width: 0;
}

.gp-auth__social-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 4px;
    border-radius: 8px;
    border: 1px solid #d5dbe3;
    background: #fff;
    color: #1a1a1a;
    font-family: var(--gp-app-font, "Open Sans", Arial, Helvetica, sans-serif);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
}

.gp-auth__social-btn:hover {
    background: #f6f7f9;
}

.gp-auth__social-btn--google i {
    color: #ea4335;
}

.gp-auth__social-btn--facebook i {
    color: #1877f2;
}

.gp-auth__social-btn--linkedin i {
    color: #0a66c2;
}

.gp-auth__social-btn--govbr {
    padding: 6px 6px;
}

.gp-auth__govbr {
    display: block;
    height: 26px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.gp-relat-lembrete {
  width: 100%;
  max-width: none;
  margin: 16px 0 1rem;
  padding: 14px 16px 14px 14px;
  border: 1px solid #d7e4f7;
  border-left: 4px solid var(--gp-app-primary, #0761ff);
  background: linear-gradient(180deg, #f7faff 0%, #f0f6ff 100%);
  border-radius: 0 10px 10px 0;
  box-shadow: 0 1px 0 rgba(7, 97, 255, 0.04);
  box-sizing: border-box;
  font-family: var(--gp-app-font);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  color: #1a1a1a;
}
.gp-relat-lembrete__head { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.gp-relat-lembrete__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.25rem; height: 1.25rem; color: var(--gp-app-primary, #0761ff);
  font-size: 0.875rem; flex: 0 0 auto;
}
.gp-relat-lembrete__titulo,
.gp-relat-lembrete p,
.gp-relat-lembrete p strong,
.gp-relat-lembrete p b,
.gp-relat-lembrete strong {
  margin: 0;
  font-family: var(--gp-app-font);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  color: #1a1a1a;
}
.gp-relat-lembrete p a { color: var(--gp-app-primary, #0761ff); font-weight: 400; text-decoration: underline; }
.gp-relat-lembrete__texto { white-space: nowrap; }
.gp-relat-lembrete p + p { margin-top: 8px; }
@media (max-width: 960px) { .gp-relat-lembrete__texto { white-space: normal; } }

.gp-ouv-flag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  margin: 0.25rem 0;
  user-select: none;
  font-family: var(--gp-app-font);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--gp-app-text, #1a1a1a);
}
.gp-ouv-flag input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.gp-ouv-flag__ui {
  flex-shrink: 0;
  width: 30px;
  height: 16px;
  margin-top: 0;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  transition: background 0.15s ease;
}
.gp-ouv-flag__ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
  transition: transform 0.15s ease;
}
.gp-ouv-flag input:focus-visible + .gp-ouv-flag__ui {
  outline: 2px solid var(--gp-app-primary, #0761ff);
  outline-offset: 2px;
}
.gp-ouv-flag input:checked + .gp-ouv-flag__ui {
  background: var(--gp-app-primary, #0761ff);
}
.gp-ouv-flag input:checked + .gp-ouv-flag__ui::after {
  transform: translateX(14px);
}
.gp-ouv-flag__text {
  line-height: 1.25;
  color: var(--gp-app-text, #1a1a1a);
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
}

