/* Área do corretor — funciona com o tema G2X Negócios e com qualquer outro. */
.g2x-portal { --p-verde: #0B1524; --p-verde-2: #17263D; --p-linha: #E1DED7; --p-claro: #F4F2EE; --p-texto-2: #5F6773; --p-amarelo: #C9A063; }
.g2x-portal h2, .g2x-portal h3 { margin-top: 0; }
.g2x-portal .g2x-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; text-decoration: none; cursor: pointer; font: inherit; font-weight: 600; }
.g2x-portal .g2x-btn--primary { background: var(--p-verde); color: #fff; }
.g2x-portal .g2x-btn--primary:hover { background: var(--p-verde-2); color: #fff; }
.g2x-portal .g2x-btn--ghost { background: transparent; border-color: var(--p-linha); color: inherit; }
.g2x-portal .g2x-btn--ghost:hover { border-color: var(--p-verde); color: var(--p-verde); }
.g2x-portal .g2x-btn--sm { min-height: 36px; padding: 0 14px; font-size: .9rem; }
.g2x-portal .g2x-btn--lg { min-height: 52px; padding: 0 28px; font-size: 1.05rem; }
.g2x-portal .g2x-alert { padding: 12px 14px; border-radius: 10px; font-weight: 600; margin: 0 0 18px; }
.g2x-portal .g2x-alert--ok { background: #E3F4EA; color: #145B33; }
.g2x-portal .g2x-alert--erro { background: #FBE7E5; color: #8E2318; }
.g2x-portal .g2x-help { color: var(--p-texto-2); font-size: .88rem; }

/* Login */
.g2x-login { max-width: 420px; margin: 0 auto; padding: 32px; border: 1px solid var(--p-linha); border-radius: 18px; }
.g2x-login h2 { font-size: 1.5rem; }
.g2x-login .login-username, .g2x-login .login-password, .g2x-login .login-remember { margin: 0 0 14px; }
.g2x-login label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.g2x-login .login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.g2x-login input[type=text], .g2x-login input[type=password] { width: 100%; padding: 12px; border: 1px solid var(--p-linha); border-radius: 10px; font: inherit; }
.g2x-login input[type=submit] { width: 100%; min-height: 48px; border: 0; border-radius: 999px; background: var(--p-verde); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.g2x-login input[type=submit]:hover { background: var(--p-verde-2); }
.g2x-login__help { text-align: center; margin: 14px 0 0; font-size: .92rem; }

/* Cabeçalho e lista */
.g2x-portal__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 24px; }
.g2x-portal__head h2 { margin: 0; font-size: 1.6rem; }
.g2x-portal__sub { margin: 4px 0 0; color: var(--p-texto-2); }
.g2x-portal__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.g2x-portal__empty { text-align: center; padding: 48px 16px; border: 1px dashed var(--p-linha); border-radius: 18px; }
.g2x-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.g2x-list__item { display: grid; grid-template-columns: 88px 1fr auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--p-linha); border-radius: 14px; }
.g2x-list__thumb { display: block; width: 88px; height: 66px; border-radius: 8px; overflow: hidden; background: var(--p-claro); color: var(--p-texto-2); font-size: .78rem; display: grid; place-items: center; text-decoration: none; }
.g2x-list__thumb img { width: 100%; height: 100%; object-fit: cover; }
.g2x-list__body { display: grid; gap: 2px; min-width: 0; }
.g2x-list__meta { color: var(--p-texto-2); font-size: .9rem; }
.g2x-list__status { font-size: .82rem; font-weight: 600; }
.g2x-list__status.is-on { color: #145B33; }
.g2x-list__status.is-off { color: #8E2318; }
.g2x-list__actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) {
	.g2x-list__item { grid-template-columns: 72px 1fr; }
	.g2x-list__actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Formulário */
.g2x-pform__box { padding: 20px 22px; border: 1px solid var(--p-linha); border-radius: 14px; margin-bottom: 16px; }
.g2x-pform__box h3 { font-size: 1.1rem; margin-bottom: 12px; }
.g2x-pform__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px 16px; }
.g2x-pform__grid--3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.g2x-pform__field { margin: 0 0 10px; }
.g2x-pform__field--wide { grid-column: 1 / -1; }
.g2x-pform__field label, .g2x-pform__field legend { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.g2x-pform__field input[type=text], .g2x-pform__field input[type=number], .g2x-pform__field select, .g2x-pform__field textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--p-linha); border-radius: 10px; font: inherit; background: #fff; }
.g2x-pform__field small { display: block; margin-top: 3px; }
fieldset.g2x-pform__field { border: 0; padding: 0; margin: 0; }
.g2x-pform__check { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; margin: 0 0 6px; cursor: pointer; }
.g2x-pform__check input { width: 18px; height: 18px; margin: 0; accent-color: var(--p-verde); }
.g2x-pform__checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 16px; }
.g2x-pform__upload { display: block; padding: 22px; border: 2px dashed var(--p-linha); border-radius: 12px; text-align: center; cursor: pointer; }
.g2x-pform__upload:hover { border-color: var(--p-verde); }
.g2x-pform__upload span { display: block; font-weight: 700; color: var(--p-verde); }
.g2x-pform__upload small { color: var(--p-texto-2); }
.g2x-pform input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.g2x-pform__photos, .g2x-pform__preview { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 12px; }
.g2x-pform__photos li, .g2x-pform__preview li { position: relative; width: 96px; height: 96px; border-radius: 8px; overflow: hidden; margin: 0; }
.g2x-pform__photos img, .g2x-pform__preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g2x-pform__photos label { display: block; height: 100%; cursor: pointer; }
.g2x-pform__photos input { position: absolute; top: 6px; left: 6px; z-index: 2; width: 20px; height: 20px; accent-color: var(--p-verde); }
.g2x-pform__photos input:not(:checked) + img { opacity: .3; }
.g2x-pform__preview li:first-child::after { content: "Capa"; position: absolute; left: 6px; bottom: 6px; background: var(--p-amarelo); font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 3px; }
.g2x-pform__submit { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.g2x-pform__trash { margin-left: auto; color: #8E2318; font-size: .9rem; }
.g2x-pform [data-submit][disabled] { opacity: .6; cursor: wait; }

/* Dados de acesso do corretor */
.g2x-cred { padding: 18px 22px; border: 2px solid var(--p-amarelo); border-radius: 14px; margin-bottom: 18px; background: #FBF7EF; }
.g2x-cred h3 { margin: 0 0 4px; font-size: 1.1rem; }
.g2x-cred p { margin: 0 0 10px; }
.g2x-cred__box { margin: 0 0 10px; padding: 12px 14px; background: #fff; border: 1px solid var(--p-linha); border-radius: 10px; font: 500 .95rem/1.5 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; user-select: all; }
.g2x-cred__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.g2x-list__initials { width: 56px; height: 56px; border-radius: 50%; background: var(--p-verde); color: var(--p-amarelo); font-weight: 700; font-size: 1.1rem; }

/* Progresso do envio */
.g2x-progress { flex-basis: 100%; display: grid; gap: 6px; margin-top: 6px; }
.g2x-progress__bar { height: 10px; width: 0; border-radius: 999px; background: var(--p-amarelo); transition: width .2s; box-shadow: inset 0 0 0 100px var(--p-amarelo); }
.g2x-progress { background: linear-gradient(var(--p-claro), var(--p-claro)) no-repeat 0 0 / 100% 10px; }
.g2x-progress__text { font-size: .9rem; color: var(--p-texto-2); }

/* Contatos */
.g2x-badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--p-amarelo); color: var(--p-verde); font-size: .75rem; font-weight: 700; line-height: 20px; text-align: center; vertical-align: middle; }
.g2x-list--leads .g2x-list__item { grid-template-columns: 44px 1fr auto; }
.g2x-lead__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--p-claro); color: var(--p-verde); font-weight: 700; }
.g2x-lead--wa .g2x-lead__icon { background: #1F9D55; color: #fff; }
.g2x-lead.is-new { border-color: var(--p-amarelo); background: #FBF7EF; }
.g2x-lead__msg { display: block; margin-top: 4px; padding: 8px 10px; background: var(--p-claro); border-radius: 8px; font-size: .92rem; white-space: pre-line; }
@media (max-width: 640px) { .g2x-list--leads .g2x-list__item { grid-template-columns: 44px 1fr; } }
