/* PWA: aviso de nova versão, botão/diálogo "Instalar app" e link da Área do Membro (tema Petróleo & Coral) */
.gi-pwa-nova {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 99999; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px;
  background: #1f4f58; color: #fff; border-radius: 999px; box-shadow: 0 10px 30px #0b2a3040;
  font: 600 14px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; max-width: min(620px, calc(100vw - 24px));
  width: max-content; border-radius: 16px;
}
.gi-pwa-nova span { flex: 1 1 auto; }
.gi-pwa-nova .gi-pwa-btn { flex: 0 0 auto; }
.gi-pwa-btn {
  border: 0; border-radius: 999px; padding: 9px 16px; background: #d98b73; color: #2a1810; font-weight: 700; font-size: 14px; line-height: 1;
  font-family: inherit; cursor: pointer; min-height: 36px;
}
.gi-pwa-btn:hover { background: #e39c86; }
.gi-pwa-btn:focus-visible, .gi-pwa-x:focus-visible, .lg-membro:focus-visible, .lg-instalar:focus-visible { outline: 3px solid #d98b73; outline-offset: 2px; }
.gi-pwa-x { border: 0; background: transparent; color: #cfe3e6; font-size: 22px; line-height: 1; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.gi-pwa-x:hover { background: #ffffff1a; color: #fff; }

.gi-pwa-ov { position: fixed; inset: 0; z-index: 100000; background: #0d262b8c; display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.gi-pwa-dlg {
  background: #fff; color: #22343a; width: min(440px, 100%); border-radius: 18px; padding: 22px 22px 18px;
  box-shadow: 0 20px 60px #0b2a3055; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  margin-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 640px) { .gi-pwa-ov { align-items: center; } }
.gi-pwa-dlg h3 { margin: 0 0 10px; font-size: 18px; color: #224b52; }
.gi-pwa-dlg ol { margin: 0 0 12px; padding-left: 20px; }
.gi-pwa-dlg li { margin: 6px 0; }
.gi-pwa-dlg li svg { vertical-align: -3px; color: #2c6e7a; }
.gi-pwa-obs { font-size: 13px; color: #5f7277; margin: 0 0 14px; }
.gi-pwa-dlg .gi-pwa-btn { width: 100%; background: #2c6e7a; color: #fff; min-height: 44px; }

/* tela de login */
.lg-membro {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; padding: 11px 14px;
  border: 1.5px solid #2c6e7a; border-radius: 10px; color: #2c6e7a; font-weight: 700; text-decoration: none; font-size: 14.5px;
}
.lg-membro svg { width: 22px; height: 22px; flex: 0 0 auto; }
.lg-membro:hover { background: #2c6e7a0f; }
.lg-membro[hidden], .lg-instalar[hidden] { display: none; }
.lg-instalar { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: #2c6e7a; font-weight: 700; font-size: 12px; line-height: 1; font-family: inherit; cursor: pointer; padding: 4px; }

/* menu do usuário do sistema */
#giPwaMenuInst svg { flex: 0 0 auto; }

/* Área do Membro — janela da equipe */
.gi-am-badge { font-style: normal; margin-left: auto; background: #d98b73; color: #2a1810; border-radius: 999px; padding: 1px 7px; font-size: 11px; font-weight: 800; }
.gi-am-ov { align-items: center; }
.gi-am-dlg { background: #fff; color: #22343a; width: min(720px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; border-radius: 16px; box-shadow: 0 20px 60px #0b2a3055; font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.gi-am-cab { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: #2c6e7a; color: #fff; border-radius: 16px 16px 0 0; }
.gi-am-cab h3 { margin: 0; font-size: 17px; display: flex; gap: 8px; align-items: center; }
.gi-am-x { border: 0; background: transparent; color: #fff; font-size: 26px; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }
.gi-am-x:hover { background: #ffffff22; }
.gi-am-abas { display: flex; gap: 4px; padding: 8px 12px 0; border-bottom: 1px solid #dbe7e9; flex-wrap: wrap; }
.gi-am-abas button { border: 0; background: none; padding: 10px 14px; font-weight: 600; font-size: 14px; line-height: 1; font-family: inherit; color: #5f7277; border-bottom: 3px solid transparent; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.gi-am-abas button[aria-selected="true"] { color: #224b52; border-bottom-color: #d98b73; }
.gi-am-corpo { padding: 16px 18px 20px; overflow: auto; }
.gi-am-corpo label { display: block; margin: 10px 0; font-weight: 600; color: #3c5a60; }
.gi-am-corpo input:not([type=checkbox]), .gi-am-corpo select { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 9px 10px; border: 1px solid #c9dadd; border-radius: 8px; font-size: 14px; font-family: inherit; }
.gi-am-corpo input:focus, .gi-am-corpo select:focus { outline: none; border-color: #2c6e7a; box-shadow: 0 0 0 3px #2c6e7a26; }
.gi-am-chk { display: flex !important; gap: 8px; align-items: center; font-weight: 500 !important; }
.gi-am-corpo fieldset { border: 1px solid #dbe7e9; border-radius: 10px; padding: 6px 14px; margin: 10px 0; }
.gi-am-corpo legend { font-weight: 700; color: #224b52; padding: 0 6px; }
.gi-am-obs { color: #5f7277; font-size: 13px; }
.gi-am-alerta { background: #fbeee9; border: 1px solid #efc9bb; color: #7a3d27; padding: 10px 12px; border-radius: 10px; }
.gi-am-acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.gi-am-b { border: 0; border-radius: 8px; padding: 9px 14px; background: #2c6e7a; color: #fff; font-weight: 700; font-size: 13.5px; line-height: 1.1; font-family: inherit; cursor: pointer; text-decoration: none; display: inline-block; }
.gi-am-b:hover { background: #245a64; }
.gi-am-b.sec { background: #fff; color: #a2492c; border: 1.5px solid #d98b73; }
.gi-am-b.verde { background: #2f8a5f; }
.gi-am-msg.ok { color: #2f7a52; font-weight: 600; }
.gi-am-msg.erro { color: #b23b22; font-weight: 600; }
.gi-am-res { display: grid; gap: 4px; }
.gi-am-res button { text-align: left; border: 1px solid #dbe7e9; background: #f7fbfb; border-radius: 8px; padding: 8px 10px; cursor: pointer; font-family: inherit; }
.gi-am-res button:hover { border-color: #2c6e7a; }
.gi-am-res small, .gi-am-card small, .gi-am-sol-h small { display: block; color: #5f7277; font-size: 12px; }
.gi-am-card { border: 1px solid #dbe7e9; border-radius: 12px; padding: 12px 14px; margin-top: 10px; }
.gi-am-st { margin-top: 8px; }
.gi-am-sol { border: 1px solid #dbe7e9; border-left: 4px solid #d98b73; border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.gi-am-tab { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.gi-am-tab th, .gi-am-tab td { text-align: left; padding: 5px 6px; border-bottom: 1px solid #edf3f4; vertical-align: top; }
.gi-am-tab th { color: #5f7277; font-weight: 600; }
.gi-am-obsm { background: #f3f8f8; padding: 8px 10px; border-radius: 8px; }
.gi-am-hist summary { cursor: pointer; font-weight: 700; color: #224b52; margin-top: 12px; }
