/* NEXO_PARENT_APPS_NATIVE_V4 */

.nexoParentAppsNavLabelV2 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nexo-install-request-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #ef4444;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 5px 14px rgba(239, 68, 68, .22);
}

.nexo-install-request-badge[data-count="0"] {
  display: none;
}

.nexoParentAppsMobileIconV2 {
  position: relative;
}

.nexo-install-request-badge--mobile {
  position: absolute;
  top: -7px;
  right: -13px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  font-size: 9px;
}

@media (max-width: 900px) {
  #parentScreen
  nav.mobile-action-bar.school-mobile-nav.parent-mobile-nav.parentNavB1.nexoParentNavFiveV2 {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 5px;
    padding-inline: 8px;
  }

  #parentScreen .parentNavB1.nexoParentNavFiveV2 button {
    min-width: 0;
    padding-inline: 4px;
    font-size: 10px;
  }
}

#parentScreen .parentAppsV2 {
  min-width: 0;
}

#parentScreen .nexoParentAppsHeroV2 {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(180px, .65fr);
  align-items: center;
  gap: 24px;
  padding: 34px 38px;
  border: 1px solid rgba(76, 105, 170, .14);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 18%, rgba(92, 119, 255, .18), transparent 16rem),
    linear-gradient(145deg, #ffffff 0%, #f7f9ff 55%, #f2f5ff 100%);
  box-shadow: 0 22px 64px rgba(52, 75, 125, .09);
}

#parentScreen .nexoParentAppsHeroCopyV2 {
  position: relative;
  z-index: 2;
}

#parentScreen .nexoParentAppsHeroCopyV2 .eyebrow {
  margin-bottom: 8px;
  color: #5268e8;
}

#parentScreen .nexoParentAppsHeroCopyV2 h1 {
  max-width: 680px;
  margin: 0;
  color: #132343;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

#parentScreen .nexoParentAppsHeroCopyV2 h1 span {
  color: #5268e8;
}

#parentScreen .nexoParentAppsHeroCopyV2 > p:last-child {
  max-width: 640px;
  margin: 18px 0 0;
  color: #7182a2;
  font-size: 1rem;
  line-height: 1.65;
}

#parentScreen .nexoParentAppsHeroArtV2 {
  display: grid;
  place-items: center;
}

#parentScreen .nexoParentAppsHeroArtV2 svg {
  width: min(220px, 100%);
  fill: #ffffff;
  stroke: #5268e8;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 18px 30px rgba(70, 91, 190, .18));
}

#parentScreen .nexoParentAppsHeroArtV2 svg rect:first-child {
  fill: #eef2ff;
  stroke: #5268e8;
}

#parentScreen .nexoParentAppsHeroArtV2 svg rect:not(:first-child) {
  fill: #dfe7ff;
  stroke: #6a7ef0;
}

#parentScreen .nexoParentAppsMetricsV2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

#parentScreen .nexoParentAppsMetricsV2 article {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid rgba(76, 105, 170, .13);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(52, 75, 125, .06);
}

#parentScreen .nexoParentAppsMetricsV2 span {
  display: block;
  color: #7b8ba8;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

#parentScreen .nexoParentAppsMetricsV2 strong {
  display: block;
  margin-top: 6px;
  color: #132343;
  font-size: 1.7rem;
}

#parentScreen .nexoParentAppsPanelV2 {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(76, 105, 170, .13);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(52, 75, 125, .07);
}

#parentScreen .nexoParentAppsPanelHeadV2 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

#parentScreen .nexoParentAppsPanelHeadV2 h2 {
  margin: 3px 0 0;
  color: #132343;
}

#parentScreen .nexoParentAppsPanelHeadV2 p:last-child {
  margin: 7px 0 0;
  color: #7182a2;
  line-height: 1.55;
}

.nexo-install-request-list {
  display: grid;
  gap: 12px;
}

.nexo-install-request-card {
  border: 1px solid rgba(70, 91, 136, .14);
  border-radius: 19px;
  padding: 17px;
  background: #fbfcff;
}

.nexo-install-request-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.nexo-install-request-card__copy {
  min-width: 0;
}

.nexo-install-student {
  display: inline-block;
  color: #5268e8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.nexo-install-request-card h3 {
  margin: 5px 0 0;
  color: #172748;
  font-size: 17px;
}

.nexo-install-request-card p {
  margin: 6px 0 0;
  color: #66728a;
  font-size: 13px;
}

.nexo-install-package {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px !important;
  opacity: .78;
}

.nexo-install-request-card__status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  background: #edf1f7;
  color: #536077;
  font-size: 11px;
  font-weight: 850;
}

.nexo-install-request-card__status[data-status="PENDING"] {
  background: #fff3cf;
  color: #8a6300;
}

.nexo-install-request-card__status[data-status="APPROVED"] {
  background: #def7e8;
  color: #187545;
}

.nexo-install-request-card__status[data-status="INSTALLED"] {
  background: #e5edff;
  color: #3557bb;
}

.nexo-install-request-card__status[data-status="EXPIRED"],
.nexo-install-request-card__status[data-status="EXPIRED_CLIENT"],
.nexo-install-request-card__status[data-status="CANCELLED"] {
  background: #f1f3f7;
  color: #69758b;
}

.nexo-install-request-card__status[data-status="REJECTED"],
.nexo-install-request-card__status[data-status="FAILED"] {
  background: #ffe3e3;
  color: #a43a3a;
}

.nexo-install-request-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.nexo-install-request-card__actions button,
.nexo-install-request-card__actions a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.nexo-install-request-card__actions button:disabled {
  opacity: .55;
  cursor: default;
}

.nexo-install-approve {
  border: 0;
  color: #ffffff;
  background: #5268e8;
}

.nexo-install-reject {
  border: 1px solid #d6ddeb;
  color: #5a657b;
  background: #ffffff;
}

.nexo-install-store {
  border: 1px solid #d6ddeb;
  color: #4f5d78;
  background: #f8faff;
}

.nexo-install-request-empty {
  display: grid;
  gap: 6px;
  border: 1px dashed #ccd5e7;
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
  color: #65718a;
}

.nexo-install-request-empty strong {
  color: #31415f;
}

.nexo-install-request-error {
  margin-bottom: 12px;
  border-radius: 14px;
  padding: 11px 13px;
  color: #9b3434;
  background: #fff0f0;
}

.nexo-install-request-error.hidden {
  display: none !important;
}

@media (max-width: 720px) {
  #parentScreen .parentAppsV2 {
    padding-bottom: 8px;
  }

  #parentScreen .nexoParentAppsHeroV2 {
    width: calc(100% + 48px);
    max-width: none;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 108px;
    gap: 6px;
    margin-left: -24px;
    margin-right: -24px;
    padding: 24px 20px 24px 24px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  #parentScreen .nexoParentAppsHeroCopyV2 h1 {
    font-size: clamp(1.75rem, 9vw, 2.45rem);
  }

  #parentScreen .nexoParentAppsHeroCopyV2 > p:last-child {
    margin-top: 12px;
    font-size: .88rem;
  }

  #parentScreen .nexoParentAppsHeroArtV2 svg {
    width: 112px;
  }

  #parentScreen .nexoParentAppsMetricsV2 {
    gap: 8px;
    margin-top: 14px;
  }

  #parentScreen .nexoParentAppsMetricsV2 article {
    padding: 12px 10px;
    border-radius: 16px;
  }

  #parentScreen .nexoParentAppsMetricsV2 span {
    font-size: .63rem;
  }

  #parentScreen .nexoParentAppsMetricsV2 strong {
    font-size: 1.35rem;
  }

  #parentScreen .nexoParentAppsPanelV2 {
    margin-top: 12px;
    padding: 16px;
    border-radius: 18px;
  }

  #parentScreen .nexoParentAppsPanelHeadV2 {
    display: grid;
  }

  #parentScreen .nexoParentAppsPanelHeadV2 .button {
    justify-self: start;
  }

  .nexo-install-request-card__top {
    display: grid;
  }

  .nexo-install-request-card__status {
    justify-self: start;
  }

  .nexo-install-request-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nexo-install-store {
    grid-column: 1 / -1;
  }
}


/* NEXO_PARENT_APPS_HISTORY_REFRESH_V4 */
#parentScreen .nexoParentAppsPanelHeadV2 > #nexoInstallRequestsRefresh {
  flex: 0 0 auto;
}

#parentScreen .nexo-install-refresh-status {
  align-self: center;
  margin-left: auto;
  color: #7b8ba8;
  font-size: .74rem;
  font-weight: 700;
  white-space: nowrap;
}

#parentScreen #nexoInstallRequestsRefresh:disabled {
  opacity: .72;
  cursor: wait;
}

.nexo-install-active-list {
  display: grid;
  gap: 12px;
}

.nexo-install-request-empty--compact {
  padding-block: 20px;
}

.nexo-install-history {
  margin-top: 14px;
  border: 1px solid rgba(76, 105, 170, .13);
  border-radius: 18px;
  background: #f8faff;
  overflow: hidden;
}

.nexo-install-history > summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 15px;
  color: #34415d;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.nexo-install-history > summary::-webkit-details-marker {
  display: none;
}

.nexo-install-history > summary::before {
  content: "›";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #5268e8;
  font-size: 22px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform .18s ease;
}

.nexo-install-history[open] > summary::before {
  transform: rotate(90deg);
}

.nexo-install-history > summary span {
  font-weight: 900;
}

.nexo-install-history > summary strong {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #5268e8;
  background: #e9edff;
  font-size: .72rem;
}

.nexo-install-history > summary small {
  margin-left: auto;
  color: #8996ad;
  font-size: .72rem;
}

.nexo-install-history__list {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.nexo-install-history__list .nexo-install-request-card {
  background: #ffffff;
}

@media (max-width: 720px) {
  #parentScreen .nexoParentAppsPanelHeadV2 {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  #parentScreen .nexo-install-refresh-status {
    grid-column: 1 / -1;
    margin-left: 0;
    white-space: normal;
  }

  .nexo-install-history > summary {
    flex-wrap: wrap;
  }

  .nexo-install-history > summary small {
    width: 100%;
    margin-left: 29px;
  }
}


/* NEXO_PARENT_APPS_MULTI_APPROVALS_V4 */

.nexo-install-active-list {
  gap: 16px;
}

.nexo-install-active-group {
  display: grid;
  gap: 10px;
}

.nexo-install-active-group__title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 2px 0;
  color: #596985;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .025em;
}

.nexo-install-active-group__title strong {
  min-width: 23px;
  height: 23px;
  display: inline-grid;
  place-items: center;
  padding-inline: 6px;
  border-radius: 999px;
  color: #5268e8;
  background: #edf0ff;
  font-size: .72rem;
}

.nexo-install-active-group[data-kind="pending"]
.nexo-install-active-group__title strong {
  color: #8a6300;
  background: #fff3cf;
}

.nexo-install-active-group[data-kind="approved"]
.nexo-install-active-group__title strong {
  color: #187545;
  background: #def7e8;
}

.nexo-install-active-group__list {
  display: grid;
  gap: 12px;
}

.nexo-install-history
.nexo-install-request-card__status[data-status="EXPIRED_CLIENT"] {
  background: #f1f3f7;
  color: #69758b;
}

@media (max-width: 720px) {
  .nexo-install-active-group__title {
    padding-inline: 1px;
  }
}
