.notifikasjon_bjelle {
  float: right;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  background-color: transparent;
  border: none;
}

.notifikasjon_bjelle-knapp {
  display: flex;
  flex-direction: column;
  color: var(--a-text-default);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: transparent;
  border-radius: .25rem;
  border: none;
  width: 54px;
  height: 60px;
}

.notifikasjon_bjelle-knapp svg path {
  fill: var(--a-gray-900);
}

.notifikasjon_bjelle-knapp:focus-visible {
  outline-style: solid;
}

@media (hover: hover) {
  .notifikasjon_bjelle-knapp:focus,
  .notifikasjon_bjelle-knapp:hover,
  .notifikasjon_bjelle-knapp:focus-visible {
    border: none;
    color: var(--a-text-on-inverted);
    background-color: var(--a-deepblue-500);
  }

  .notifikasjon_bjelle-knapp:focus svg path,
  .notifikasjon_bjelle-knapp:hover svg path {
    fill: var(--a-white);
  }
}

.notifikasjon_bjelle-ikon {
  --width: 32px;
  --height: 32px;
  --ulest-diameter: 22px;
  --ulest-top: calc(var(--height) * 0.2);
  --ulest-left: calc(var(--width) * 0.05);
  position: relative;
  width: var(--width);
  height: var(--height);
}
.notifikasjon_bjelle-ikon__ulest-sirkel {
  position: absolute;
  opacity: 1;
  z-index: 4;
  top: -10px;
  right: -5px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: var(--ulest-diameter);
  width: var(--ulest-diameter);
  border-radius: 50%;
  background-color: var(--a-red-500);
  transform: translate(var(--ulest-left), var(--ulest-top));
  animation: synlig 1s;
}

.notifikasjon_bjelle-ikon__ulest-sirkel--hide {
  visibility: hidden;
  transition: 0.2s all linear;
}

.notifikasjon_bjelle-ikon__ulest-antall {
  color: white;
  font-weight: bold;
  font-size: 14px;
}

.notifikasjon_bjelle-understrek {
  width: 4.5rem;
  height: 0.25rem;
  margin-top: 0.25rem;
  background-color: var(--a-deepblue-500);
}

.notifikasjon_bjelle-understrek--closed {
  visibility: hidden;
}

.notifikasjon_bjelle-ikon-svinger > svg {
  top: 100px;
  animation: sving 1s;
  transform-origin: center 5px;
}

@keyframes sving {
  0% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(-25deg);
  }
  40% {
    transform: rotate(25deg);
  }
  60% {
    transform: rotate(-25deg);
  }
  80% {
    transform: rotate(25deg);
  }

  100% {
    transform: rotate(0deg);
  }
}


@keyframes synlig {
  0% {
    opacity: 0;
  }
  98% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}


.notifikasjon_liste_element {
  display: flex;
  flex-direction: column-reverse;
  padding: 16px;
  gap: 4px;
}

.notifikasjon_liste_element-todo{
  border-left: 8px solid rgba(255, 215, 153, 1)
}
.notifikasjon_liste_element,
.notifikasjon_liste_element:hover,
.notifikasjon_liste_element:active {
  text-decoration: none;
  color: inherit;
  display: grid;
  grid-template-areas:
    "virksomhet virksomhet tomt"
    "saktekst saktekst tomt"
    "tilleggsinformasjon tilleggsinformasjon tomt"
    "ikon innhold chevron"
    ". innhold chevron";
  grid-template-columns: 32px auto 28px;
  column-gap: 8px;
  row-gap: 0;

}

.notifikasjon_liste_element:focus {
  outline: none;
}

.notifikasjon_liste_element-lenkepanel-chevron {
  grid-area: chevron;
  height: 24px;
  width: 24px;
}

.notifikasjon_liste_element:hover .notifikasjon_liste_element-lenkepanel-chevron {
  transform: translateX(25%);
  transition: all 100ms linear;
}

.notifikasjon_liste_element-virksomhet {
  grid-area: virksomhet;
}

.notifikasjon_liste_element-lenkepanel-ikon {
  grid-area: ikon;
}

.notifikasjon_liste_element-lenkepanel-sakstekst {
  grid-area: saktekst;
}

.notifikasjon_liste_element-lenkepanel-tilleggsinformasjon {
  grid-area: tilleggsinformasjon;
  margin-bottom: 8px;
}

.notifikasjon_liste_element-tomt {
  grid-area: tomt;
}

.notifikasjon_liste_element-innhold {
  grid-area: innhold;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notifikasjon_panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  color: var(--a-gray-900);
  margin: 0;
  padding: 0;
  background-color: white;
  outline: none;
}
.notifikasjon_panel li {
  border: transparent 4px solid;
}
.notifikasjon_panel li:hover {
  background-color: #F0F6FB;
  border-left: var(--a-deepblue-500) 4px solid;
}
.notifikasjon_panel li:focus-within {
  border: var(--a-deepblue-500) 4px solid;
}
.notifikasjon_panel li:not(:last-child):focus-within .notifikasjon_liste_element {
  border-bottom: transparent 1px solid;
}
.notifikasjon_panel li:not(:last-child):not(:focus-within) .notifikasjon_liste_element {
  border-bottom: var(--a-gray-400) 1px solid;
}

.notifikasjon_panel-feilmelding {
  margin: 16px 16px 0 16px;
  border-bottom: var(--a-gray-400) 1px solid;
}
.notifikasjon_panel-feilmelding > div {
  margin: 16px 0;
}
.notifikasjon_panel-header {
  margin: 16px 16px 0 16px;
  padding-bottom: 16px;
  border-bottom: var(--a-gray-600) 1px solid;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notifikasjon_panel-header-title-help {
  display: flex;
  gap: 8px;
  align-items: center;
}

.notifikasjon_panel-header-xbtn {
  padding: 0;
  margin: 0;
  cursor: pointer;
  border: none;
  background-color: transparent;
}

.notifikasjon_panel-liste {
  display: flex;
  flex-direction: column;
  max-height: 100%;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  overflow-x: hidden;
  list-style: none;
}

.notifikasjon_panel-liste_shadows {
  background:
    /* Shadow covers */
    linear-gradient(white 30%, rgba(255,255,255,0)),
    linear-gradient(rgba(255,255,255,0), white 70%) 0 100%,

      /* Shadows */
    radial-gradient(50% 0, farthest-side, rgba(0,0,0,.2), rgba(0,0,0,0)),
    radial-gradient(50% 100%,farthest-side, rgba(0,0,0,.2), rgba(0,0,0,0)) 0 100%;
  background:
    /* Shadow covers */
    linear-gradient(white 30%, rgba(255,255,255,0)),
    linear-gradient(rgba(255,255,255,0), white 70%) 0 100%,

      /* Shadows */
    radial-gradient(farthest-side at 50% 0, rgba(0,0,0,.2), rgba(0,0,0,0)),
    radial-gradient(farthest-side at 50% 100%, rgba(0,0,0,.2), rgba(0,0,0,0)) 0 100%;
  background-repeat: no-repeat;
  background-color: white;
  background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;

  background-attachment: local, local, scroll, scroll;
}
.notifikasjon_panel-liste::-webkit-scrollbar-track {
  border-radius: 10px;
  background-color: transparent;
}
.notifikasjon_panel-liste::-webkit-scrollbar {
  width: 12px;
  background-color: transparent;
}
.notifikasjon_panel-liste::-webkit-scrollbar-thumb {
  border-radius: 6px;
  background-color: var(--a-gray-700);
}
@media (max-width: 768px) {
   .notifikasjon_panel-header {
    height: 5vh; /* får 6 ekstra piksler fra et sted ¯\_(ツ)_/¯ */
  }
}

.notifikasjon-Dropdown-panel {
  display: flex;
  z-index: 999;
  position: absolute;
  top: 5rem;
  right: 0;
  margin: 0;
  padding: 0;
  width: 100vw;
  max-width: 30rem;
  border: solid 2px var(--a-deepblue-700);
  border-radius: 4px;
  max-height: 65vh;
}

@media (max-width: 768px), (max-height: 600px) and (orientation: landscape){
  .notifikasjon-Dropdown-panel {
    max-height: unset;
    max-width: unset;
    width: min(100vw, 768px);
    position: fixed;
    top: calc(var(--decorator-sticky-offset, 0px) + 0rem);
    height: calc(100vh - env(safe-area-inset-bottom) - var(--decorator-sticky-offset, 0px));
  }
}

