#inerp-pwa-offer, #inerp-pwa-help { font: 14px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #302a26; box-sizing: border-box; text-align: left; }
#inerp-pwa-offer *, #inerp-pwa-help * { box-sizing: border-box; }
#inerp-pwa-offer[hidden], #inerp-pwa-help[hidden] { display: none !important; }
#inerp-pwa-offer { position: fixed; z-index: 1040; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); left: 12px; right: 12px; width: calc(100% - 24px); max-width: 480px; margin: 0 auto; padding: 16px; border: 1px solid #ded6ce; border-radius: 18px; background: #fffdfb; box-shadow: 0 8px 40px rgb(48 42 38 / 18%); }
#inerp-pwa-offer .inerp-pwa-heading { display: flex; align-items: center; gap: 12px; }
#inerp-pwa-offer img { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; }
#inerp-pwa-offer h2, #inerp-pwa-help h2 { margin: 0 0 4px; font-size: 18px; font-weight: 700; line-height: 1.3; color: #302a26; }
#inerp-pwa-offer p { margin: 0; font-size: 13px; color: #675d55; }
#inerp-pwa-offer .inerp-pwa-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#inerp-pwa-offer button, #inerp-pwa-help button { appearance: none; min-height: 44px; margin: 0; padding: 10px 16px; border: 1px solid transparent; border-radius: 10px; font: inherit; font-weight: 600; line-height: 1.35; cursor: pointer; text-transform: none; letter-spacing: normal; box-shadow: none; width: auto; }
#inerp-pwa-offer .inerp-pwa-install, #inerp-pwa-help button { color: #fff; background: #3a312c; border-color: #3a312c; }
#inerp-pwa-offer .inerp-pwa-later { color: #675d55; background: transparent; }
#inerp-pwa-offer .inerp-pwa-never { color: #675d55; background: transparent; text-decoration: underline; margin-right: auto; }
#inerp-pwa-offer button:focus-visible, #inerp-pwa-help button:focus-visible, #inerp-pwa-help a:focus-visible { outline: 3px solid #97684c; outline-offset: 3px; }
#inerp-pwa-offer button:disabled { opacity: .6; cursor: wait; }
body.inerp-pwa-offer-visible { padding-bottom: calc(var(--inerp-pwa-offer-height, 180px) + 24px + env(safe-area-inset-bottom, 0px)) !important; }
#inerp-pwa-help { position: fixed; z-index: 11000; inset: 0; display: flex; align-items: center; justify-content: center; padding: max(20px, env(safe-area-inset-top, 0px)) 20px max(20px, env(safe-area-inset-bottom, 0px)); background: rgb(30 25 21 / 55%); }
#inerp-pwa-help .inerp-pwa-dialog { width: 100%; max-width: 440px; max-height: 100%; overflow-y: auto; padding: 24px; border: 1px solid #ded6ce; border-radius: 20px; background: #fffdfb; box-shadow: 0 16px 60px rgb(0 0 0 / 24%); }
#inerp-pwa-help h2 { font-size: 22px; margin-bottom: 12px; }
#inerp-pwa-help p { margin: 0 0 16px; }
#inerp-pwa-help ol { margin: 0 0 20px; padding-left: 22px; }
#inerp-pwa-help li { margin: 0 0 10px; }
#inerp-pwa-help button { display: block; width: 100%; }
@media (display-mode: standalone) { #inerp-pwa-offer, #inerp-pwa-help { display: none !important; } body.inerp-pwa-offer-visible { padding-bottom: 0 !important; } }
/* Con sesión, en móvil hay barra inferior (z-index 2200): el aviso va encima de ella, no debajo. */
@media (max-width: 767px) { body.ix-shell #inerp-pwa-offer, body.erp-workspace-2026 #inerp-pwa-offer { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); z-index: 2250; } body.ix-shell.inerp-pwa-offer-visible, body.erp-workspace-2026.inerp-pwa-offer-visible { padding-bottom: calc(var(--inerp-pwa-offer-height, 180px) + 86px + env(safe-area-inset-bottom, 0px)) !important; } }
@media (max-width: 380px) { #inerp-pwa-offer .inerp-pwa-actions button { padding: 10px 12px; } #inerp-pwa-offer .inerp-pwa-never { flex: 1 0 100%; margin-right: 0; order: 3; } }
