/* LANOTTI Learning Hub — isolated PWA experience. */

.employee-pwa-splash { position: fixed; z-index: 12000; inset: 0; display: none; min-height: 100dvh; padding: max(28px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); color: #fff; background: radial-gradient(circle at 74% 18%, rgba(133,38,52,.5), transparent 32%), linear-gradient(145deg, #251b1a, #151212 72%); place-items: center; opacity: 0; visibility: hidden; transition: opacity .48s ease, visibility .48s ease; }
html.employee-pwa-launch { overflow: hidden; }
html.employee-pwa-launch .employee-pwa-splash { display: grid; opacity: 1; visibility: visible; }
.employee-pwa-splash__stage { position: relative; display: grid; width: min(86vw, 440px); min-height: 340px; align-content: center; justify-items: center; text-align: center; }
.employee-pwa-splash__orbit { position: absolute; width: min(78vw, 360px); aspect-ratio: 1; border: 1px solid rgba(216,189,144,.2); border-radius: 50%; }
.employee-pwa-splash__orbit::before { position: absolute; width: 12px; height: 12px; border: 2px solid #d8bd90; border-radius: 50%; content: ""; top: 13%; right: 17%; background: #711f2b; box-shadow: 0 0 0 9px rgba(216,189,144,.08); }
.employee-pwa-splash__logo { position: relative; z-index: 1; width: min(68vw, 285px); filter: invert(1); }
.employee-pwa-splash__logo img { display: block; width: 100%; height: auto; }
.employee-pwa-splash__rule { position: relative; z-index: 1; width: 58px; height: 1px; margin: 24px 0 18px; background: #d8bd90; }
.employee-pwa-splash strong, .employee-pwa-splash small { position: relative; z-index: 1; display: block; text-transform: uppercase; }
.employee-pwa-splash strong { font-family: var(--ep-serif); font-size: clamp(25px, 5vw, 36px); font-weight: 400; letter-spacing: .08em; }
.employee-pwa-splash small { margin-top: 9px; color: rgba(255,255,255,.5); font-size: 10px; font-weight: 800; letter-spacing: .22em; }

.employee-pwa-install { position: fixed; z-index: 500; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); display: grid; width: min(540px, calc(100vw - 40px)); grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 17px; padding: 20px 22px; border: 1px solid rgba(216,189,144,.34); border-radius: 8px; color: #fff; background: radial-gradient(circle at 92% -15%, rgba(136,40,55,.6), transparent 44%), #181514; box-shadow: 0 26px 80px rgba(18,11,11,.32); }
.employee-pwa-install[hidden], .employee-pwa-network[hidden], .employee-pwa-update[hidden], .employee-pwa-push[hidden] { display: none !important; }
.employee-pwa-install > img { width: 58px; height: 58px; border: 1px solid rgba(216,189,144,.32); border-radius: 17px; object-fit: cover; }
.employee-pwa-install > div { min-width: 0; }
.employee-pwa-install > div > span { display: block; margin-bottom: 4px; color: #d8bd90; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.employee-pwa-install > div > strong { display: block; font-family: var(--ep-serif); font-size: 21px; font-weight: 400; line-height: 1.1; }
.employee-pwa-install > div > p { margin: 7px 0 0; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.employee-pwa-install__action { min-height: 46px; padding: 0 18px; border: 1px solid #fff; border-radius: 3px; color: #171514; -webkit-text-fill-color: #171514; background: #fff; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.employee-pwa-install__action:hover, .employee-pwa-install__action:focus-visible { color: #fff; -webkit-text-fill-color: #fff; background: transparent; }
.employee-pwa-install__close { position: absolute; top: 7px; right: 8px; width: 28px; height: 28px; padding: 0; border: 0; color: rgba(255,255,255,.55); background: transparent; font-size: 20px; line-height: 1; cursor: pointer; }

.employee-pwa-network { position: fixed; z-index: 520; top: max(18px, env(safe-area-inset-top)); right: max(18px, env(safe-area-inset-right)); display: flex; min-height: 46px; align-items: center; gap: 10px; padding: 0 17px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: #fff; background: #1b1716; box-shadow: 0 14px 36px rgba(0,0,0,.2); font-size: 14px; font-weight: 700; }
.employee-pwa-network i { width: 8px; height: 8px; border-radius: 50%; background: #c64d5c; box-shadow: 0 0 0 5px rgba(198,77,92,.14); }
.employee-pwa-network.is-online i { background: #65b18d; box-shadow: 0 0 0 5px rgba(101,177,141,.14); }
.employee-pwa-update { position: fixed; z-index: 510; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); display: flex; min-height: 58px; align-items: center; gap: 24px; padding: 8px 9px 8px 19px; border: 1px solid rgba(113,31,43,.16); border-radius: 6px; color: #181716; background: #fff; box-shadow: 0 22px 64px rgba(30,20,18,.2); font-size: 14px; font-weight: 700; }
.employee-pwa-update button { min-height: 42px; padding: 0 16px; border: 0; border-radius: 3px; color: #fff; -webkit-text-fill-color: #fff; background: var(--ep-wine); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }

.employee-pwa-push { position: fixed; z-index: 505; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); display: grid; width: min(560px, calc(100vw - 40px)); min-height: 122px; grid-template-columns: 56px minmax(0,1fr) auto; align-items: center; gap: 18px; padding: 22px 24px; overflow: hidden; border: 1px solid rgba(216,189,144,.3); border-radius: 10px; color: #fff; background: radial-gradient(circle at 94% -12%, rgba(139,41,56,.66), transparent 44%), linear-gradient(145deg,#231a18,#171413); box-shadow: 0 28px 86px rgba(18,11,11,.34); opacity: 0; transform: translateY(16px); transition: opacity .28s ease, transform .36s cubic-bezier(.2,.75,.24,1); }
.employee-pwa-push.is-visible { opacity: 1; transform: none; }
.employee-pwa-push__icon { display: grid; width: 56px; height: 56px; border: 1px solid rgba(216,189,144,.52); border-radius: 50%; color: #d8bd90; background: rgba(255,255,255,.04); font-size: 28px; place-items: center; }
.employee-pwa-push > div { display: grid; min-width: 0; gap: 5px; }
.employee-pwa-push > div > span { color: #d8bd90; font-size: 11px; font-weight: 800; letter-spacing: .13em; line-height: 1.4; }
.employee-pwa-push strong { font-family: var(--ep-serif); font-size: 23px; font-weight: 400; line-height: 1.15; overflow-wrap: anywhere; }
.employee-pwa-push p { margin: 0; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.employee-pwa-push__action { min-height: 48px; padding: 0 18px; border: 1px solid #fff; border-radius: 3px; color: #171514; -webkit-text-fill-color: #171514; background: #fff; cursor: pointer; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.employee-pwa-push__action:hover, .employee-pwa-push__action:focus-visible { color: #fff; -webkit-text-fill-color: #fff; background: transparent; outline: 2px solid rgba(216,189,144,.32); outline-offset: 3px; }
.employee-pwa-push__action:disabled { cursor: default; opacity: .66; }
.employee-pwa-push__close { position: absolute; top: 7px; right: 8px; display: grid; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; color: rgba(255,255,255,.62); background: transparent; cursor: pointer; font-size: 22px; line-height: 1; place-items: center; }
.employee-pwa-push__close:hover, .employee-pwa-push__close:focus-visible { color: #fff; background: rgba(255,255,255,.08); outline: none; }

html.employee-pwa-standalone body.lanotti-employee-portal { min-height: 100dvh; overscroll-behavior-y: none; }

@media (display-mode: standalone) {
  html { margin-top: 0 !important; }
  #wpadminbar { display: none !important; }
  body.admin-bar .employee-sidebar { top: 0; padding-top: calc(28px + env(safe-area-inset-top)); }
  body.admin-bar .employee-topbar { top: 0; }
  .employee-sidebar { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .employee-topbar { height: calc(78px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); padding-right: max(clamp(28px, 4vw, 64px), env(safe-area-inset-right)); }
  .employee-login__brand-inner { padding-top: max(clamp(38px, 5vw, 76px), env(safe-area-inset-top)); padding-bottom: max(clamp(38px, 5vw, 76px), env(safe-area-inset-bottom)); }
  .employee-login__form-side { padding-top: max(clamp(35px, 6vw, 100px), env(safe-area-inset-top)); padding-bottom: max(clamp(35px, 6vw, 100px), env(safe-area-inset-bottom)); }
}

@media (max-width: 680px) {
  .employee-pwa-splash__stage { min-height: 300px; }
  .employee-pwa-splash__logo { width: min(74vw, 250px); }
  .employee-pwa-install { left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); width: auto; grid-template-columns: 48px minmax(0, 1fr); gap: 13px; padding: 17px; }
  .employee-pwa-install > img { width: 48px; height: 48px; border-radius: 14px; }
  .employee-pwa-install > div > strong { padding-right: 18px; font-size: 19px; }
  .employee-pwa-install__action { width: 100%; grid-column: 1 / -1; min-height: 46px; }
  .employee-pwa-update { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); left: max(12px, env(safe-area-inset-left)); justify-content: space-between; }
  .employee-pwa-network { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
  .employee-pwa-push { left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); width: auto; max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); grid-template-columns: 48px minmax(0,1fr); gap: 13px; padding: 19px; overflow-y: auto; }
  .employee-pwa-push__icon { width: 48px; height: 48px; font-size: 24px; }
  .employee-pwa-push strong { padding-right: 18px; font-size: 21px; }
  .employee-pwa-push p { font-size: 14px; }
  .employee-pwa-push__action { grid-column: 1 / -1; width: 100%; min-height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .employee-pwa-splash, .employee-pwa-install__action, .employee-pwa-push { transition: none; }
}

/* 5.27.2 — PWA prompts use a sturdy reading face instead of the display font. */
.employee-pwa-install, .employee-pwa-push, .employee-pwa-update, .employee-pwa-network {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.employee-pwa-install > div > span, .employee-pwa-push > div > span { font-size: 12px; letter-spacing: .07em; }
.employee-pwa-install > div > strong, .employee-pwa-push strong {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 20px; font-weight: 650; line-height: 1.3; hyphens: none; overflow-wrap: break-word; word-break: normal;
}
.employee-pwa-install > div > p, .employee-pwa-push p {
  color: rgba(255,255,255,.9); font-size: 16px; line-height: 1.5; hyphens: none; overflow-wrap: break-word; word-break: normal;
}
.employee-pwa-install__action, .employee-pwa-push__action, .employee-pwa-update button { font-size: 14px; }
.employee-pwa-install__close, .employee-pwa-push__close { width: 36px; height: 36px; color: #fff; }
@media (max-width: 680px) {
  .employee-pwa-install > div > strong, .employee-pwa-push strong { padding-right: 20px; font-size: 18px; }
  .employee-pwa-install > div > p, .employee-pwa-push p { font-size: 15px; }
}
