/* Xensec Customer Mobile App / PWA Foundation - acp-v1.8.64 */
:root {
  --xensec-pwa-safe-bottom: env(safe-area-inset-bottom, 0px);
}

body.xensec-pwa-standalone.customer-portal-body,
body.xensec-pwa-standalone.customer-auth-body {
  overscroll-behavior-y: none;
}

body.xensec-is-offline::after {
  content: 'Offline';
  position: fixed;
  left: 50%;
  bottom: calc(18px + var(--xensec-pwa-safe-bottom));
  transform: translateX(-50%);
  z-index: 9999;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 196, 87, .42);
  background: rgba(72, 48, 12, .88);
  color: #ffe2a4;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  pointer-events: none;
}

.xensec-pwa-install-card {
  position: fixed;
  right: 22px;
  bottom: calc(22px + var(--xensec-pwa-safe-bottom));
  z-index: 9998;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  width: min(560px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid rgba(132, 156, 220, .24);
  border-radius: 22px;
  background:
    radial-gradient(circle at 10% 10%, rgba(35, 211, 255, .2), transparent 42%),
    radial-gradient(circle at 92% 18%, rgba(224, 54, 217, .18), transparent 44%),
    rgba(10, 15, 34, .94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .42);
  backdrop-filter: blur(18px);
}

.xensec-pwa-install-card span {
  display: block;
  color: #78f5ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.xensec-pwa-install-card b {
  display: block;
  margin-top: 2px;
  color: #f8fbff;
  font-size: 15px;
  font-weight: 900;
}

.xensec-pwa-install-card small {
  display: block;
  margin-top: 3px;
  color: #aab8d5;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.xensec-pwa-install-card button {
  border: 0;
  border-radius: 14px;
  padding: 12px 15px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.xensec-pwa-install-card [data-pwa-install] {
  background: linear-gradient(135deg, #25cfff, #e13bd8);
  box-shadow: 0 12px 34px rgba(42, 200, 255, .22);
}

.xensec-pwa-install-card [data-pwa-dismiss] {
  width: 42px;
  height: 42px;
  padding: 0;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #cbd6ef;
  font-size: 20px;
  line-height: 1;
}

.customer-pwa-bottom-nav {
  display: none;
}

@media (max-width: 860px) {
  body.customer-portal-body {
    padding-bottom: calc(80px + var(--xensec-pwa-safe-bottom));
  }

  .customer-pwa-bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + var(--xensec-pwa-safe-bottom));
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(132, 156, 220, .24);
    border-radius: 24px;
    background:
      radial-gradient(circle at 12% 0%, rgba(35, 211, 255, .18), transparent 36%),
      radial-gradient(circle at 86% 0%, rgba(224, 54, 217, .16), transparent 38%),
      rgba(7, 11, 24, .88);
    box-shadow: 0 18px 70px rgba(0, 0, 0, .45);
    backdrop-filter: blur(20px);
  }

  .customer-pwa-bottom-nav a {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 52px;
    border-radius: 18px;
    color: #9fafcf;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: -.03em;
    transition: .18s ease;
  }

  .customer-pwa-bottom-nav a span {
    width: 24px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #80f2ff;
    font-size: 15px;
  }

  .customer-pwa-bottom-nav a b {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
    line-height: 1;
  }

  .customer-pwa-bottom-nav a.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(31, 207, 255, .2), rgba(226, 59, 216, .18));
    box-shadow: inset 0 0 0 1px rgba(94, 231, 255, .26);
  }

  .customer-pwa-bottom-nav a.active span {
    color: #fff;
    background: linear-gradient(135deg, #18cfff, #e23bd8);
  }

  .xensec-pwa-install-card {
    left: 12px;
    right: 12px;
    bottom: calc(90px + var(--xensec-pwa-safe-bottom));
    width: auto;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .xensec-pwa-install-card [data-pwa-dismiss] {
    position: absolute;
    top: -10px;
    right: -6px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
  }
}

@media (max-width: 480px) {
  .customer-pwa-bottom-nav {
    left: 8px;
    right: 8px;
    gap: 4px;
    padding: 6px;
    border-radius: 20px;
  }

  .customer-pwa-bottom-nav a {
    min-height: 50px;
    border-radius: 15px;
  }

  .customer-pwa-bottom-nav a b {
    font-size: 9px;
  }

  .xensec-pwa-install-card {
    grid-template-columns: 1fr;
  }

  .xensec-pwa-install-card [data-pwa-install] {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-pwa-bottom-nav a,
  .xensec-pwa-install-card button {
    transition: none;
  }
}

/* Xensec PWA Mobile Touch Scroll Fix - acp-v1.8.64a
   Restores normal touch scrolling inside installed/standalone mobile app mode. */
html {
  height: auto !important;
  min-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
  touch-action: pan-y;
}

body.customer-portal-body,
body.customer-auth-body,
body.xensec-pwa-standalone.customer-portal-body,
body.xensec-pwa-standalone.customer-auth-body {
  height: auto !important;
  min-height: 100dvh !important;
  max-height: none !important;
  position: relative !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto !important;
  touch-action: pan-y;
}

body.customer-portal-body .customer-shell,
body.customer-portal-body .customer-main,
body.customer-portal-body .customer-content,
body.customer-auth-body .customer-auth-wrap,
body.xensec-pwa-standalone .customer-shell,
body.xensec-pwa-standalone .customer-main,
body.xensec-pwa-standalone .customer-content {
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

body.xensec-pwa-standalone .customer-sidebar,
body.xensec-pwa-standalone .customer-command-modal,
body.xensec-pwa-standalone .palette-results,
body.xensec-pwa-standalone .customer-service-tabs,
body.xensec-pwa-standalone .customer-ticket-tabs,
body.xensec-pwa-standalone .customer-profile-filter-row,
body.xensec-pwa-standalone .customer-update-filter-pills,
body.xensec-pwa-standalone .customer-notification-tabs,
body.xensec-pwa-standalone .customer-notification-pills {
  -webkit-overflow-scrolling: touch;
}

.customer-pwa-bottom-nav,
.customer-pwa-bottom-nav * {
  touch-action: manipulation;
}

.xensec-pwa-install-card,
.xensec-pwa-install-card * {
  touch-action: manipulation;
}

@supports (height: 100svh) {
  body.customer-portal-body,
  body.customer-auth-body,
  body.xensec-pwa-standalone.customer-portal-body,
  body.xensec-pwa-standalone.customer-auth-body {
    min-height: 100svh !important;
  }
}

/* Xensec Customer Mobile App Suite - acp-v1.8.64b
   Combines notification readiness, mobile evidence upload, service workspace polish and offline/cache polish. */
:root {
  --xensec-pwa-nav-height: 78px;
  --xensec-pwa-card-border: rgba(132, 156, 220, .24);
  --xensec-pwa-panel: rgba(9, 15, 34, .88);
  --xensec-pwa-panel-strong: rgba(12, 20, 45, .94);
}

.xensec-pwa-update-card,
.xensec-pwa-quick-strip,
.xensec-pwa-file-preview,
.xensec-pwa-service-actionbar,
.xensec-pwa-refresh-card,
.xensec-pwa-offline-banner {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.xensec-pwa-offline-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  top: calc(12px + env(safe-area-inset-top, 0px));
  z-index: 10002;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 196, 87, .44);
  border-radius: 18px;
  color: #ffe6ad;
  background: rgba(48, 33, 11, .92);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .36);
  backdrop-filter: blur(18px);
}

body.xensec-is-offline .xensec-pwa-offline-banner {
  display: flex;
}

.xensec-pwa-offline-banner b {
  display: block;
  color: #fff1c9;
  font-size: 13px;
  font-weight: 900;
}

.xensec-pwa-offline-banner small {
  color: #f5d38a;
  font-size: 11px;
  font-weight: 800;
}

.xensec-pwa-offline-banner button,
.xensec-pwa-refresh-card button {
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  color: #0d1020;
  background: #ffd681;
  font-weight: 900;
  cursor: pointer;
  touch-action: manipulation;
}

.xensec-pwa-refresh-card {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(98px + var(--xensec-pwa-safe-bottom));
  z-index: 10001;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(94, 231, 255, .28);
  border-radius: 20px;
  color: #f8fbff;
  background:
    radial-gradient(circle at 12% 0%, rgba(35, 211, 255, .2), transparent 38%),
    radial-gradient(circle at 88% 0%, rgba(224, 54, 217, .16), transparent 38%),
    rgba(7, 11, 24, .94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .44);
  backdrop-filter: blur(20px);
}

.xensec-pwa-refresh-card span {
  color: #7df4ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.xensec-pwa-refresh-card b {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 900;
}

.xensec-pwa-refresh-card small {
  display: block;
  margin-top: 2px;
  color: #aab8d5;
  font-size: 11px;
  font-weight: 700;
}

.xensec-pwa-refresh-card [data-pwa-refresh-dismiss] {
  width: 38px;
  height: 38px;
  padding: 0;
  color: #d8e2ff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 18px;
}

.xensec-pwa-bottom-nav a {
  position: relative;
}

.xensec-pwa-bottom-nav a[data-pwa-badge]::after {
  content: attr(data-pwa-badge);
  position: absolute;
  top: 4px;
  right: 9px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff4bb8, #ff7a45);
  box-shadow: 0 8px 18px rgba(255, 75, 184, .28);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.xensec-pwa-quick-strip {
  display: none;
}

.xensec-pwa-update-card {
  display: none;
}

.xensec-pwa-file-preview {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(132,156,220,.22);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
}

.xensec-pwa-file-preview[hidden] {
  display: none !important;
}

.xensec-pwa-file-preview div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  background: rgba(5, 9, 22, .48);
}

.xensec-pwa-file-preview i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, rgba(37,207,255,.9), rgba(226,59,216,.9));
  font-style: normal;
  font-weight: 900;
}

.xensec-pwa-file-preview b {
  display: block;
  overflow: hidden;
  color: #f8fbff;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xensec-pwa-file-preview small,
.xensec-pwa-file-preview em {
  display: block;
  color: #aab8d5;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.xensec-pwa-file-preview .warn {
  border-color: rgba(255, 92, 138, .32);
  background: rgba(80, 16, 36, .34);
}

.xensec-pwa-file-preview .warn em {
  color: #ff9dbd;
}

.xensec-pwa-file-hint {
  display: block;
  margin-top: 8px;
  color: #9fafcf;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
}

.xensec-mobile-file-picker input[type="file"] {
  min-height: 46px;
  padding: 11px;
  border: 1px dashed rgba(94, 231, 255, .3) !important;
  border-radius: 15px !important;
  background: rgba(94, 231, 255, .05) !important;
}

.xensec-pwa-service-actionbar {
  display: none;
}

@media (max-width: 860px) {
  body.customer-portal-body {
    padding-bottom: calc(var(--xensec-pwa-nav-height) + 30px + var(--xensec-pwa-safe-bottom));
  }

  body.customer-portal-body .customer-content {
    padding-bottom: calc(var(--xensec-pwa-nav-height) + 32px + var(--xensec-pwa-safe-bottom)) !important;
  }

  body.customer-portal-body .customer-topbar {
    position: sticky;
    top: 0;
    z-index: 900;
    border-radius: 0 0 22px 22px;
    background: rgba(7, 11, 24, .82);
    backdrop-filter: blur(18px);
  }

  .xensec-pwa-bottom-nav {
    min-height: var(--xensec-pwa-nav-height);
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .xensec-pwa-bottom-nav a {
    min-height: 54px;
  }

  .xensec-pwa-bottom-nav a b {
    font-size: 9px;
  }

  .xensec-pwa-quick-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 0 0 14px;
    padding: 2px 2px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .xensec-pwa-quick-strip::-webkit-scrollbar {
    display: none;
  }

  .xensec-pwa-quick-strip a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(132,156,220,.2);
    border-radius: 999px;
    color: #dce6ff;
    background: rgba(255,255,255,.055);
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
    touch-action: manipulation;
  }

  .xensec-pwa-quick-strip a.active {
    color: #fff;
    border-color: rgba(94,231,255,.36);
    background: linear-gradient(135deg, rgba(36,207,255,.16), rgba(226,59,216,.15));
  }

  .xensec-pwa-update-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin: 0 0 16px;
    padding: 14px;
    border: 1px solid rgba(132,156,220,.22);
    border-radius: 22px;
    color: #f8fbff;
    background:
      radial-gradient(circle at 16% 0%, rgba(35, 211, 255, .17), transparent 42%),
      radial-gradient(circle at 95% 12%, rgba(224, 54, 217, .15), transparent 40%),
      var(--xensec-pwa-panel);
    box-shadow: 0 18px 55px rgba(0,0,0,.22);
  }

  .xensec-pwa-update-card span {
    color: #7df4ff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .xensec-pwa-update-card b {
    display: block;
    margin-top: 3px;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -.03em;
  }

  .xensec-pwa-update-card small {
    display: block;
    margin-top: 3px;
    color: #aab8d5;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
  }

  .xensec-pwa-update-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 14px;
    padding: 0 13px;
    color: #fff;
    background: linear-gradient(135deg, #24cfff, #e23bd8);
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
  }

  .customer-page-hero,
  .customer-service-header,
  .customer-health-snapshot,
  .customer-panel,
  .customer-ticket-composer,
  .customer-updates-switch,
  .customer-notification-pills,
  .customer-service-focus-row,
  .customer-services-status-grid,
  .customer-billing-summary-grid,
  .customer-activity-summary-grid {
    scroll-margin-top: 92px;
  }

  .customer-service-tabs,
  .customer-service-tabs-v24,
  .customer-ticket-tabs,
  .customer-notification-pills,
  .customer-updates-switch,
  .customer-profile-filter-row,
  .customer-filter-tabs,
  .customer-billing-filter-tabs,
  .customer-activity-filter-tabs {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
  }

  .customer-service-tabs::-webkit-scrollbar,
  .customer-ticket-tabs::-webkit-scrollbar,
  .customer-notification-pills::-webkit-scrollbar,
  .customer-updates-switch::-webkit-scrollbar,
  .customer-profile-filter-row::-webkit-scrollbar,
  .customer-filter-tabs::-webkit-scrollbar,
  .customer-billing-filter-tabs::-webkit-scrollbar,
  .customer-activity-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  body.xensec-pwa-page-service .customer-service-header {
    position: relative;
    padding-bottom: 18px;
  }

  body.xensec-pwa-page-service .customer-service-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 10px;
  }

  body.xensec-pwa-page-service .customer-service-tabs,
  body.xensec-pwa-page-service .customer-service-tabs-v24 {
    position: sticky;
    top: 74px;
    z-index: 850;
    margin-left: -2px;
    margin-right: -2px;
    padding: 8px 2px;
    background: linear-gradient(180deg, rgba(7,11,24,.94), rgba(7,11,24,.72));
    backdrop-filter: blur(18px);
  }

  .xensec-pwa-service-actionbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(94px + var(--xensec-pwa-safe-bottom));
    z-index: 999;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(132,156,220,.22);
    border-radius: 22px;
    background: rgba(7, 11, 24, .86);
    box-shadow: 0 18px 70px rgba(0,0,0,.42);
    backdrop-filter: blur(20px);
  }

  .xensec-pwa-service-actionbar a {
    display: grid;
    place-items: center;
    min-height: 42px;
    border-radius: 16px;
    color: #dce6ff;
    background: rgba(255,255,255,.055);
    text-decoration: none;
    font-size: 11px;
    font-weight: 900;
    touch-action: manipulation;
  }

  .xensec-pwa-service-actionbar a.primary {
    color: #fff;
    background: linear-gradient(135deg, #24cfff, #e23bd8);
  }

  body.xensec-pwa-page-service {
    padding-bottom: calc(148px + var(--xensec-pwa-safe-bottom));
  }

  body.xensec-pwa-page-service .customer-content {
    padding-bottom: calc(156px + var(--xensec-pwa-safe-bottom)) !important;
  }

  .customer-wizard-step,
  .customer-delivery-section,
  .customer-action-request,
  .customer-file-card,
  .customer-report-card,
  .customer-finding-card,
  .customer-ticket-card,
  .customer-billing-row {
    border-radius: 20px !important;
  }

  input[type="file"] {
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .xensec-pwa-bottom-nav {
    left: 6px;
    right: 6px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 3px;
    padding: 5px;
  }

  .xensec-pwa-bottom-nav a {
    min-height: 48px;
    border-radius: 14px;
  }

  .xensec-pwa-bottom-nav a span {
    width: 21px;
    height: 20px;
    font-size: 13px;
  }

  .xensec-pwa-bottom-nav a b {
    font-size: 8px;
  }

  .xensec-pwa-update-card {
    grid-template-columns: 1fr;
  }

  .xensec-pwa-update-card a {
    width: 100%;
  }

  .xensec-pwa-refresh-card {
    grid-template-columns: 1fr;
  }
}

/* XENSEC-CUSTOMER-MOBILE-NAV-CLEANUP:START */
.customer-pwa-bottom-nav,
.customer-pwa-bottom-nav * {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.customer-portal-body .customer-mobile-dock {
  display: none !important;
}

@media (max-width: 860px) {
  body.customer-portal-body,
  body.xensec-pwa-page-service {
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.customer-portal-body .customer-content,
  body.xensec-pwa-page-service .customer-content {
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.customer-menu-open {
    overflow: hidden !important;
  }

  body.customer-portal-body .customer-sidebar {
    width: min(84vw, 360px) !important;
    max-width: 360px !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    z-index: 1200 !important;
    border-right: 1px solid rgba(132, 156, 220, .22) !important;
    background:
      radial-gradient(circle at 20% 0%, rgba(35, 217, 255, .13), transparent 34%),
      linear-gradient(180deg, rgba(5, 12, 28, .98), rgba(3, 7, 18, .94)) !important;
    box-shadow: 0 0 0 999px rgba(0, 0, 0, .58), 24px 0 80px rgba(0, 0, 0, .44) !important;
    overflow: hidden !important;
  }

  body.customer-portal-body .customer-sidebar:not(.open) {
    box-shadow: none !important;
  }

  body.customer-portal-body .customer-sidebar-inner {
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.customer-portal-body .customer-nav a {
    min-height: 48px !important;
    font-size: 15px !important;
  }

  body.customer-portal-body .customer-topbar {
    z-index: 900 !important;
  }

  .xensec-pwa-install-card,
  .xensec-pwa-refresh-card {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .xensec-pwa-service-actionbar {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 430px) {
  body.customer-portal-body .customer-sidebar {
    width: min(86vw, 340px) !important;
  }
}
/* XENSEC-CUSTOMER-MOBILE-NAV-CLEANUP:END */

/* XENSEC-CUSTOMER-DESKTOP-SIDEBAR-STICKY-FIX:START */
@media (min-width: 861px) {
  .customer-shell {
    display: grid !important;
    grid-template-columns: 270px minmax(0, 1fr) !important;
    align-items: start !important;
    min-height: 100vh !important;
    overflow: visible !important;
  }

  .customer-sidebar {
    position: sticky !important;
    top: 0 !important;
    align-self: start !important;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    padding: 0 !important;
    overflow: hidden !important;
    z-index: 30 !important;
  }

  .customer-sidebar-inner {
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
  }

  .customer-content {
    min-width: 0 !important;
    overflow: visible !important;
  }

  .customer-sidebar-status,
  .customer-upgrade-card {
    flex: 0 0 auto !important;
  }
}

@media (min-width: 1181px) {
  .customer-shell {
    grid-template-columns: 285px minmax(0, 1fr) !important;
  }
}
/* XENSEC-CUSTOMER-DESKTOP-SIDEBAR-STICKY-FIX:END */

/* XENSEC-CUSTOMER-DESKTOP-SIDEBAR-FIXED-LAYOUT:START */
@media (min-width: 861px) {
  html,
  body.customer-portal-body {
    min-height: 100% !important;
    overflow-x: hidden !important;
  }

  .customer-shell {
    display: block !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    overflow: visible !important;
  }

  .customer-sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    width: 285px !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    padding: 0 !important;
    overflow: hidden !important;
    z-index: 40 !important;
    border-right: 1px solid rgba(255,255,255,.12) !important;
    background: linear-gradient(180deg,rgba(6,13,28,.98),rgba(4,8,18,.91)) !important;
  }

  .customer-sidebar-inner {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 28px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    scrollbar-width: none !important;
  }

  .customer-sidebar-inner::-webkit-scrollbar {
    display: none !important;
  }

  .customer-sidebar .customer-logo,
  .customer-sidebar .customer-nav,
  .customer-sidebar .customer-sidebar-status,
  .customer-sidebar .customer-upgrade-card {
    flex: 0 0 auto !important;
  }

  .customer-sidebar .customer-sidebar-status {
    margin-top: auto !important;
  }

  .customer-main {
    margin-left: 285px !important;
    min-width: 0 !important;
    width: calc(100% - 285px) !important;
  }

  .customer-topbar {
    left: auto !important;
    right: 0 !important;
    width: 100% !important;
  }

  .customer-content {
    min-width: 0 !important;
    overflow: visible !important;
  }
}

@media (min-width: 861px) and (max-width: 1180px) {
  .customer-sidebar {
    width: 252px !important;
  }

  .customer-main {
    margin-left: 252px !important;
    width: calc(100% - 252px) !important;
  }
}

@media (max-width: 860px) {
  .customer-shell {
    display: block !important;
  }

  .customer-main {
    margin-left: 0 !important;
    width: auto !important;
  }
}
/* XENSEC-CUSTOMER-DESKTOP-SIDEBAR-FIXED-LAYOUT:END */

/* XENSEC-PWA-DESKTOP-NOTICE-CLEANUP:START */
@media (min-width: 861px) {
  body.customer-portal-body .xensec-pwa-refresh-card,
  body.customer-portal-body .xensec-pwa-install-card,
  body.customer-portal-body .xensec-pwa-update-card,
  body.customer-auth-body .xensec-pwa-refresh-card,
  body.customer-auth-body .xensec-pwa-install-card,
  body.customer-auth-body .xensec-pwa-update-card {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}
/* XENSEC-PWA-DESKTOP-NOTICE-CLEANUP:END */
