/* Shared page visibility and header controls. */

  .page-view { display: none; }
  .page-view.active { display: flex; flex-direction: column; gap: 16px; }
  .goal-return-bar { display: none; align-items: center; justify-content: space-between; gap: 12px; }
  .page-view.goal-return-active .goal-return-bar { display: flex; }
  .coming-soon-page { position: relative; }
  .coming-soon-page .goal-return-bar { position: absolute; z-index: 2; top: 18px; right: 18px; left: 18px; }
  .online-page-heading { display: flex; min-width: 0; align-items: center; gap: 12px; }
  .online-page-nav { display: inline-flex; width: 38px; height: 38px; flex: 0 0 auto; align-items: center; justify-content: center; border: 1px solid #dfe2e8; border-radius: 10px; background: #fff; color: #5d636e; font: inherit; font-size: 22px; line-height: 1; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease; }
  .online-page-nav:hover { border-color: rgba(67,183,168,.55); background: rgba(67,183,168,.08); color: #278f82; }
  .online-page-nav:active { transform: translateY(1px); }
  .online-page-nav:focus-visible { outline: 2px solid #43b7a8; outline-offset: 2px; }
  .online-page-close { font-size: 25px; }

/* Login history also appears in embedded employee profiles. */

  .online-avatar { display: inline-flex; width: 38px; height: 38px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 50%; background: rgba(47,186,131,.13); color: #1da36f; font-size: 12px; font-weight: 800; }

  .online-device-icon { display: inline-flex; width: 16px; height: 16px; flex: 0 0 auto; align-items: center; justify-content: center; color: #20a673; }
  .online-device-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .online-device-icons { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 2px; }

  .login-history-modal[hidden] { display: none; }
  .login-history-modal { position: fixed; z-index: 1200; inset: 0; display: flex; align-items: center; justify-content: center; padding: 22px; background: rgba(13,15,20,.58); backdrop-filter: blur(3px); }
  .login-history-dialog { display: flex; width: min(720px, 100%); max-height: min(820px, calc(100vh - 44px)); flex-direction: column; overflow: hidden; border: 1px solid #dfe2e8; border-radius: 18px; background: #fff; box-shadow: 0 28px 80px rgba(10,12,18,.32); }
  .login-history-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 18px; border-bottom: 1px solid #eceef1; }
  .login-history-identity { display: flex; min-width: 0; flex: 1 1 auto; align-items: center; gap: 12px; }
  .login-history-identity .online-avatar { width: 44px; height: 44px; font-size: 13px; }
  .login-history-title { color: #22262d; font-size: 19px; font-weight: 800; }
  .login-history-login { margin-top: 3px; color: #8b9099; font-size: 11px; }
  .login-history-recognition { display: inline-flex; min-width: 210px; min-height: 50px; flex: 0 1 230px; align-items: center; justify-content: center; gap: 12px; padding: 9px 16px 9px 18px; border: 1px solid rgba(238,155,40,.45); border-radius: 13px; background: linear-gradient(135deg,rgba(238,155,40,.21),rgba(238,155,40,.08)); box-shadow: inset 4px 0 #ee9b28; color: #a75f08; font: inherit; cursor: pointer; transition: border-color .15s ease,background .15s ease,transform .15s ease; }
  .login-history-recognition span { font-size: 14px; font-weight: 820; line-height: 1.12; }
  .login-history-recognition b { flex: 0 0 auto; font-size: 25px; font-weight: 400; line-height: 1; }
  .login-history-recognition:hover { border-color: rgba(238,155,40,.72); background: linear-gradient(135deg,rgba(238,155,40,.29),rgba(238,155,40,.13)); transform: translateY(-1px); }
  .login-history-recognition:focus-visible { outline: 3px solid rgba(238,155,40,.34); outline-offset: 2px; }
  .login-history-recognition:disabled { cursor: default; opacity: .5; transform: none; }
  .login-history-close { display: inline-flex; width: 36px; height: 36px; flex: 0 0 auto; align-items: center; justify-content: center; border: 1px solid #dfe2e8; border-radius: 10px; background: transparent; color: #707680; font: inherit; font-size: 22px; cursor: pointer; }
  .login-history-close:hover { border-color: rgba(67,183,168,.55); background: rgba(67,183,168,.08); color: #278f82; }
  .login-history-summary { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 10px; padding: 16px 24px; border-bottom: 1px solid #eceef1; background: #fafbfc; }
  .login-history-stat { padding: 10px 12px; border: 1px solid #e7e9ed; border-radius: 10px; background: #fff; }
  .login-history-stat-featured { grid-column: span 6; min-height: 92px; padding: 16px 18px; border-radius: 13px; }
  .login-history-stat-featured.is-active { border-color: rgba(47,186,131,.42); background: linear-gradient(135deg,rgba(47,186,131,.2),rgba(47,186,131,.08)); box-shadow: inset 4px 0 #2fba83; }
  .login-history-stat-featured.is-idle { border-color: rgba(238,155,40,.45); background: linear-gradient(135deg,rgba(238,155,40,.21),rgba(238,155,40,.08)); box-shadow: inset 4px 0 #ee9b28; }
  .login-history-stat-secondary { grid-column: span 3; min-height: 61px; padding: 9px 10px; }
  .login-history-stat-label { color: #8b9099; font-size: 9px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
  .login-history-stat-value { margin-top: 4px; color: #252931; font-size: 12px; font-weight: 760; }
  .login-history-stat-featured .login-history-stat-label { font-size: 10px; }
  .login-history-stat-featured .login-history-stat-value { margin-top: 6px; font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; }
  .login-history-stat-featured.is-active .login-history-stat-label,
  .login-history-stat-featured.is-active .login-history-stat-value { color: #16875d; }
  .login-history-stat-featured.is-idle .login-history-stat-label,
  .login-history-stat-featured.is-idle .login-history-stat-value { color: #c6760e; }
  .login-history-stat-note { margin-top: 7px; color: #707680; font-size: 9px; font-weight: 600; }
  .login-history-sections-card { position: relative; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease,background .15s ease; }
  .login-history-sections-card:hover { border-color: rgba(67,183,168,.6); background: rgba(67,183,168,.06); }
  .login-history-sections-card:focus-visible { outline: 2px solid #43b7a8; outline-offset: 2px; }
  .login-history-sections-card .login-history-stat-label,
  .login-history-sections-card .login-history-stat-value,
  .login-history-sections-card .login-history-stat-note { display: block; }
  .login-history-sections-card .login-history-stat-note { margin-top: 3px; padding-right: 14px; font-size: 8px; }
  .login-history-sections-card-chevron { position: absolute; right: 10px; bottom: 12px; width: 8px; height: 8px; border-right: 1.5px solid #8b9099; border-bottom: 1.5px solid #8b9099; transform: rotate(45deg); transition: transform .16s ease; }
  .login-history-sections-card[aria-expanded="true"] .login-history-sections-card-chevron { transform: rotate(225deg) translate(-2px,-2px); }
  .login-history-section-panel { grid-column: 1 / -1; padding: 13px 14px; border: 1px solid #e5e8ec; border-radius: 11px; background: #fff; }
  .login-history-section-panel[hidden] { display: none; }
  .login-history-section-panel-total { margin-top: 1px; }
  .login-history-section-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 14px; }
  .login-history-section-row { min-width: 0; }
  .login-history-section-copy { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
  .login-history-section-copy strong { overflow: hidden; color: #343942; font-size: 10px; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
  .login-history-section-copy span { flex: 0 0 auto; color: #707680; font-size: 9px; font-weight: 680; font-variant-numeric: tabular-nums; }
  .login-history-section-track { display: block; height: 5px; margin-top: 5px; overflow: hidden; border-radius: 99px; background: #eef1f3; }
  .login-history-section-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#43b7a8,#55c4b5); }
  .login-history-section-note,
  .login-history-section-empty { color: #7b818b; font-size: 9px; line-height: 1.4; }
  .login-history-section-note { margin-top: 10px; }
  .login-history-section-empty { padding: 3px 1px; }
  .login-history-body { min-height: 220px; overflow-y: auto; padding: 18px 24px 24px; }
  .login-history-day { overflow: hidden; border: 1px solid #e8eaee; border-radius: 12px; background: #fff; }
  .login-history-day + .login-history-day { margin-top: 10px; }
  .login-history-day-summary { display: flex; min-height: 52px; align-items: center; gap: 10px; padding: 10px 12px; transition: background .15s ease,border-color .15s ease; }
  .login-history-day-title { display: inline-flex; min-width: 190px; flex: 1 1 230px; align-items: center; gap: 6px; color: #4d535d; font-size: 11px; font-weight: 800; text-transform: capitalize; }
  .login-history-day-totals { display: flex; flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
  .login-history-day-total { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 8px; border-radius: 99px; font-size: 9px; font-weight: 750; white-space: nowrap; }
  .login-history-day-total.is-active { background: rgba(47,186,131,.11); color: #1d9769; }
  .login-history-day-total.is-idle { background: rgba(238,155,40,.13); color: #c6760e; }
  .login-history-day-sections { display: inline-flex; min-height: 26px; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid rgba(67,183,168,.28); border-radius: 99px; background: rgba(67,183,168,.08); color: #278f82; font: inherit; font-size: 9px; font-weight: 750; white-space: nowrap; cursor: pointer; }
  .login-history-day-sections strong { font-size: 9px; }
  .login-history-day-sections:hover { border-color: rgba(67,183,168,.6); background: rgba(67,183,168,.14); }
  .login-history-day-sections:focus-visible,
  .login-history-day-sessions:focus-visible { outline: 2px solid #43b7a8; outline-offset: 2px; }
  .login-history-day-sections:disabled { opacity: .45; cursor: default; }
  .login-history-day-sessions { display: inline-flex; width: 28px; height: 28px; flex: 0 0 28px; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: #8b9099; cursor: pointer; }
  .login-history-day-sessions:hover { background: rgba(67,183,168,.08); color: #278f82; }
  .login-history-day-chevron { position: relative; width: 18px; height: 18px; flex: 0 0 18px; color: #8b9099; transition: transform .18s ease; }
  .login-history-day-chevron::before { position: absolute; top: 50%; left: 50%; content: '›'; font-size: 22px; line-height: 1; transform: translate(-50%,-52%); }
  .login-history-day-sessions[aria-expanded="true"] .login-history-day-chevron { transform: rotate(90deg); }
  .login-history-section-panel-day { border-width: 1px 0 0; border-radius: 0; background: #fbfcfc; }
  .login-history-events { display: flex; flex-direction: column; gap: 7px; padding: 10px; border-top: 1px solid #eceef1; }
  .login-history-events[hidden] { display: none; }
  .login-history-event { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid #e8eaee; border-radius: 10px; background: #fafbfc; }
  .login-history-event-label { min-width: 0; flex: 1; color: #343942; font-size: 11px; font-weight: 700; }
  .login-history-event-title { display: inline-flex; align-items: center; gap: 6px; }
  .login-history-event-breakdown { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
  .login-history-event-breakdown b { padding: 3px 6px; border-radius: 99px; background: rgba(47,186,131,.11); color: #1d9769; font-size: 8px; font-weight: 750; }
  .login-history-event-breakdown b + b { background: rgba(238,155,40,.13); color: #c6760e; }
  .login-history-session-times { display: grid; grid-template-columns: repeat(2,minmax(78px,auto)); gap: 18px; }
  .login-history-session-time { display: flex; flex-direction: column; gap: 2px; }
  .login-history-session-caption { color: #8b9099; font-size: 8px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
  .login-history-event-time { color: #1da36f; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .login-history-event-time.is-online { color: #20a673; }
  .login-history-event-time.is-idle { color: #d98517; }
  .login-history-duration { min-width: 72px; color: #717782; font-size: 10px; font-weight: 750; text-align: right; white-space: nowrap; }
  .login-history-state { display: flex; min-height: 210px; align-items: center; justify-content: center; padding: 28px; color: #8b9099; font-size: 12px; text-align: center; }

  .pv2-participants-pagination { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; }
  .pv2-participants-pagination > span { color:var(--crm-text-muted,#8b9099); font-size:12px; }
  .pv2-participants-pagination > div { display:flex; gap:8px; }

  .coming-soon-page.active { min-height: calc(100vh - 40px); align-items: center; justify-content: center; border: 1px solid #252832; border-radius: 16px; background: #08090c; color: #f5f5f7; text-align: center; }
  .coming-soon-state { display: flex; max-width: 560px; padding: 48px 32px; flex-direction: column; align-items: center; gap: 12px; }
  .coming-soon-kicker { color: #55c4b5; font-size: 11px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
  .coming-soon-title { font-size: clamp(34px,5vw,64px); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
  .coming-soon-message { color: #9da1ad; font-size: 18px; font-weight: 550; line-height: 1.5; }
