/* V8.56: O menu usa nome fantasia em texto; logo continua salvo para documentos. */
.brand strong{white-space:normal;overflow-wrap:break-word;line-height:1.1}
.brand.g88-brand-long strong{font-size:18px;letter-spacing:-.35px;line-height:1.18}
@media(max-width:900px){.brand.g88-brand-long strong{font-size:12px}}
.gemp-page{max-width:1080px;margin:0 auto 30px;color:#142c48;font-family:'Inter','Segoe UI',Arial,sans-serif}
.gemp-heading{display:flex;align-items:start;justify-content:space-between;gap:16px;margin:5px 0 22px}
.gemp-heading h1{margin:0 0 7px;font-size:32px;letter-spacing:-.6px;line-height:1.2}
.gemp-heading p{margin:0;color:#667d99;font-size:14px}
.gemp-back{border:1px solid #d0dfef;background:#edf3fa;border-radius:9px;padding:12px 14px;white-space:nowrap;color:#213a55;font-size:12px;font-weight:700;cursor:pointer}
.gemp-back:hover{background:#e4effa}
.gemp-intro{background:#e8f2ff;border:1px solid #dae8fa;border-radius:11px;padding:12px 16px;color:#245b99;font-size:12px;margin-bottom:16px}
.gemp-top{display:grid;grid-template-columns:minmax(0,1.42fr) minmax(300px,1fr);gap:15px;align-items:stretch}
.gemp-card{border:1px solid #d8e4f1;background:#fff;border-radius:13px;padding:20px;box-shadow:0 5px 18px rgba(41,93,151,.04)}
.gemp-card h2{margin:0 0 6px;font-size:18px;line-height:1.25}
.gemp-card .gemp-descr{margin:0 0 17px;color:#7588a1;font-size:12px;line-height:1.4}
.gemp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.gemp-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.gemp-field.wide{grid-column:1/-1}
.gemp-field label{font-size:12px;font-weight:700;color:#233c56}
.gemp-field label em{font-style:normal;color:#dc3645}
.gemp-field input{border:1px solid #cbdcec;border-radius:8px;background:#fff;width:100%;min-width:0;height:40px;padding:9px 12px;font-size:13px;color:#183451}
.gemp-field input:focus{outline:2px solid #a8d3ff;border-color:#1975da}
.gemp-preview{min-height:110px;padding:16px;background:#f1f6fc;border:1px dashed #bdcee2;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px}
.gemp-preview-logo{display:block;max-width:240px;width:100%;height:80px;object-fit:contain}
.gemp-preview-logo[hidden]{display:none}
.gemp-preview-text{font-size:20px;font-weight:850;font-style:italic;color:#1b3653;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gemp-preview-text[hidden]{display:none}
.gemp-preview-caption{font-size:11px;color:#778aa1}
.gemp-logo-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 10px}
.gemp-upload{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#1379e6;border:0;border-radius:8px;color:#fff;padding:10px 12px;font-size:12px;font-weight:750;cursor:pointer;color:#fff!important}
.gemp-logo-actions button{border:1px solid #d7e4f2;background:#f3f7fb;color:#285077;border-radius:8px;padding:10px 12px;font-size:12px;font-weight:750;cursor:pointer}
.gemp-logo-info{font-size:12px;line-height:1.65;color:#637b94;margin:0}
.gemp-logo-info strong{color:#213f61}
.gemp-address{margin-top:15px}
.gemp-address .gemp-grid{grid-template-columns:1fr 2fr 1fr}
.gemp-save-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:16px}
.gemp-save{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:8px;color:#fff;background:#1179e9;padding:12px 19px;font-size:13px;font-weight:750;cursor:pointer}
.gemp-save svg{width:17px;height:17px}
.gemp-save:hover,.gemp-upload:hover{background:#0a67cb}
.gemp-notice{color:#6b819a;font-size:11px;max-width:650px;line-height:1.5}
.gemp-message{font-size:12px;line-height:1.4;min-height:18px;color:#167446;margin-top:9px}
.gemp-message.error{color:#c1263e}
@media(max-width:850px){.gemp-top{grid-template-columns:1fr}.gemp-heading{flex-wrap:wrap}.gemp-address .gemp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:570px){.gemp-heading h1{font-size:25px}.gemp-card{padding:15px}.gemp-grid,.gemp-address .gemp-grid{grid-template-columns:1fr}.gemp-field.wide{grid-column:auto}.gemp-save-row{justify-content:flex-start}}

/* V8.55 - Lookup CEP using ViaCEP. Visual changes scoped to the address field only. */
.gemp-cep-row{display:flex;align-items:stretch;gap:7px;min-width:0}
.gemp-cep-row>input{min-width:0;flex:1;width:100%}
.gemp-cep-find{display:inline-flex;justify-content:center;align-items:center;gap:5px;min-width:94px;flex-shrink:0;border:1px solid #bfd7f2;border-radius:8px;color:#1269c6;background:#e9f3ff;font-size:12px;font-weight:750;cursor:pointer;padding:0 9px;height:40px}
.gemp-cep-find svg{width:15px;height:15px;flex-shrink:0}
.gemp-cep-find:hover{background:#dcecff}
.gemp-cep-find:focus-visible{outline:2px solid #1677d7;outline-offset:2px}
.gemp-cep-find:disabled{opacity:.62;cursor:wait}
.gemp-cep-status{font-size:11px;line-height:1.4;color:#71859b;min-height:16px}
.gemp-cep-status.success{color:#197744}
.gemp-cep-status.error{color:#b52c42}
@media(max-width:570px){.gemp-cep-row>input{max-width:none}}

/* V8.57 — tooltip isolado do campo Nome fantasia (mouse, teclado e toque). */
.gemp-label-with-help{display:flex;align-items:center;gap:7px;min-width:0}
.gemp-help-wrap{position:relative;display:inline-flex;align-items:center;flex-shrink:0}
.gemp-help-btn{width:18px;height:18px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:transparent;color:#1977d5;cursor:help}
.gemp-help-btn svg{width:16px;height:16px}
.gemp-help-btn:hover,.gemp-help-btn:focus-visible{background:#e6f1ff;color:#1169bd}
.gemp-help-btn:focus-visible{outline:2px solid #85bdf5;outline-offset:2px}
.gemp-help-popup{position:absolute;top:50%;left:calc(100% + 11px);z-index:40;width:max-content;max-width:min(285px,calc(100vw - 70px));padding:9px 11px;background:#111827;color:#fff;font-size:12px;font-weight:500;line-height:1.45;border-radius:7px;box-shadow:0 7px 18px rgba(0,0,0,.23);opacity:0;visibility:hidden;pointer-events:none;transform:translate(-4px,-50%);transition:opacity .13s,transform .13s,visibility .13s;white-space:normal}
.gemp-help-popup::after{content:"";position:absolute;top:50%;right:100%;border:6px solid transparent;border-right-color:#111827;transform:translateY(-50%)}
.gemp-help-wrap:hover .gemp-help-popup,.gemp-help-wrap:focus-within .gemp-help-popup{opacity:1;visibility:visible;transform:translate(0,-50%)}
@media(max-width:570px){.gemp-help-popup{top:calc(100% + 9px);left:auto;right:-45px;transform:translateY(4px)}.gemp-help-wrap:hover .gemp-help-popup,.gemp-help-wrap:focus-within .gemp-help-popup{transform:translateY(0)}.gemp-help-popup::after{top:auto;bottom:100%;right:45px;transform:none;border-right-color:transparent;border-bottom-color:#111827}}
