﻿/* iOS Safari zoom prevention - must be 16px minimum */
@supports (-webkit-touch-callout: none) {
  @media only screen and (max-width: 428px) {
    input[type=text],
    input[type=number],
    input[type=email],
    input[type=tel],
    input[type=password],
    input[type=search],
    input[type=url],
    textarea,
    select,
    .form-control,
    .form-select {
      font-size: 16px !important;
    }
  }
}
.selecteditem {
  border-style: solid !important;
  border-width: 0.1rem !important;
  border-color: #0075db !important;
  border-radius: 10px !important;
}

.search-row {
  width: 50%;
}

@media (max-width: 767px) {
  .search-row {
    width: 100% !important;
  }
}
.iceberg-navbar-left {
  margin-right: 0px !important;
}

.display-7 {
  font-size: 36px;
}

button.btn.dropdown-toggle::after {
  display: none;
}

button.btn.dropdown-toggle::before {
  display: none;
}

tbody td.fit-content {
  width: 1%;
  white-space: nowrap;
}

/* Navigation Active State Styling */
.nav-active {
  position: relative;
  width: 190px !important;
  margin-left: 4px !important;
  background-color: transparent !important;
  color: #0075db !important;
  transition: background-color 0.2s ease !important;
}
.nav-active svg, .nav-active i {
  color: #0075db !important;
}
.nav-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #0075db;
  pointer-events: none;
}

/* Force text (anchors, spans, etc.) inside active item to adopt active color */
.nav-active a,
.nav-active .nav-link,
.nav-active span,
.nav-active li {
  color: #0075db !important;
}

/* Alternative active state for submenu items under TS brukere */
.nav-active-submenu {
  position: relative;
  width: 172px !important;
  margin-left: 4px !important;
  background-color: transparent !important;
  color: #0075db !important;
  transition: background-color 0.2s ease !important;
}
.nav-active-submenu svg, .nav-active-submenu i {
  color: #0075db !important;
}
.nav-active-submenu::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #0075db;
  pointer-events: none;
}

/* Force text for submenu active items */
.nav-active-submenu a,
.nav-active-submenu .nav-link,
.nav-active-submenu span,
.nav-active-submenu li {
  color: #0075db !important;
}

#blazor-error-ui {
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

.blazor-error-boundary {
  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}

.blazor-error-boundary::after {
  content: "An error has occurred.";
}

h1:focus-visible {
  outline: none;
}

.noCaret .dropdown-toggle::after {
  display: none;
}

.icon-round-border {
  display: flex;
  width: 40px !important;
  height: 40px !important;
  justify-content: center;
  align-items: center;
}

.table td, .table th {
  vertical-align: middle;
}

.form-select {
  border-radius: 24px !important;
  padding: 0 0 0 0.6rem !important;
  height: 40px !important;
}

AzureMap {
  width: 100%;
}

#tableContainerDiv {
  overflow-y: auto !important;
  width: 100% !important;
}

#tableContainerDiv .table {
  position: relative;
  border-collapse: collapse;
}

#tableContainerDiv .table th {
  background: #FBFAFC !important;
  position: sticky;
  top: 0;
  box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
}

.scrollbar-gutter-stable {
  scrollbar-gutter: stable;
}

/* MaxHeight */
.vh100-160px-maxheight {
  max-height: calc(100vh - 160px) !important;
}

/* Height */
.vh100-50px {
  height: calc(100vh - 160px) !important;
}

.vh100-160px {
  height: calc(100vh - 160px) !important;
}

.vh100-180px {
  height: calc(100vh - 180px) !important;
}

.vh100-200px {
  height: calc(100vh - 200px) !important;
}

.vh100-210px {
  height: calc(100vh - 210px) !important;
}

.vh100-220px {
  height: calc(100vh - 220px) !important;
}

.vh100-230px {
  height: calc(100vh - 230px) !important;
}

.vh100-240px {
  height: calc(100vh - 240px) !important;
}

.vh100-250px {
  height: calc(100vh - 250px) !important;
}

.vh100-260px {
  height: calc(100vh - 260px) !important;
}

.vh100-270px {
  height: calc(100vh - 270px) !important;
}

.vh100-280px {
  height: calc(100vh - 280px) !important;
}

.vh100-290px {
  height: calc(100vh - 290px) !important;
}

.vh100-300px {
  height: calc(100vh - 300px) !important;
}

.vh100-310px {
  height: calc(100vh - 310px) !important;
}

.vh100-320px {
  height: calc(100vh - 320px) !important;
}

.vh100-360px {
  height: calc(100vh - 360px) !important;
}

.vh100-380px {
  height: calc(100vh - 380px) !important;
}

.vh100-400px {
  height: calc(100vh - 400px) !important;
}

.vh100-420px {
  height: calc(100vh - 420px) !important;
}

.vh100-460px {
  height: calc(100vh - 460px) !important;
}

.vh100-500px {
  height: calc(100vh - 500px) !important;
}

/* Size */
.size-12px {
  height: 12px !important;
  width: 12px !important;
}

.size-16px {
  height: 16px !important;
  width: 16px !important;
}

.size-18px {
  height: 18px !important;
  width: 18px !important;
}

.size-20px {
  height: 20px !important;
  width: 20px !important;
}

.size-24px {
  height: 24px !important;
  width: 24px !important;
}

.size-28px {
  height: 28px !important;
  width: 28px !important;
}

.size-34px {
  height: 34px !important;
  width: 34px !important;
}

.size-40px {
  height: 40px !important;
  width: 40px !important;
}

.size-56px {
  height: 56px !important;
  width: 56px !important;
}

.size-72px {
  height: 72px !important;
  width: 72px !important;
}

.k-calendar-header {
  display: none !important;
}

.justify-content-vs-icon {
  padding-top: 2px;
}

.pagetopelement {
  padding: 1rem 1rem;
  display: flex;
  background-color: #ffffff !important;
}

.bg-white {
  background-color: #ffffff !important;
}

.page-content {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 4rem);
}

.page-body {
  padding: 1rem !important;
}

@media (max-width: 767px) {
  .page-body {
    padding: 0.25rem !important;
  }
}
.cursor-pointer {
  cursor: pointer;
}

.cursor-none {
  cursor: none !important;
}

.cursor-default {
  cursor: default !important;
}

.whitespace-preline {
  white-space: pre-line;
}

.flex-even {
  flex: 1;
}

.ts-spinner {
  z-index: 1000;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ts-center-in-parent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ts-gradient-hr {
  border: none;
  height: 2px;
  display: block;
  width: 166px;
  opacity: 0.5;
  margin-top: 3rem;
  margin-left: 1rem;
  margin-right: 1rem;
  background: linear-gradient(to right, red, blue);
}

/*
    Toast Customisation
    NOTE: It is important that this section is kept here and not in app.scss - as it does not work!
    Override the default background of all .toast elements.
*/
.toast {
  /* Ensure the body has opaque background. Default is semi-transparent. */
  background-color: white !important;
  /* This affects all toasts (wherever they are displayed). Therefore, it doe not suit Toasts placed on the left side. */
}

/* TopRight */
.blazorstrap-toaster.position-fixed.top-0.end-0 .toast {
  margin-top: 0.5rem !important;
  margin-right: 0.5rem !important;
}

/* Overwrite the standard Blazor bg-info */
.blazorstrap-toaster.top-0.end-0 .toast .toast-header.bg-info.text-white {
  background-color: #0075db !important;
}

/* MiddleRight */
.blazorstrap-toaster.top-50.end-0.translate-middle-y .toast {
  margin-top: 0.5rem;
  margin-right: 0.5rem;
}

.blazorstrap-toaster.top-50.end-0.translate-middle-y .toast .toast-header.bg-info.text-white {
  background-color: #0075db !important;
}

/* BottomRight */
.blazorstrap-toaster.bottom-0.end-0 .toast {
  margin-bottom: 0.5rem;
  margin-right: 0.5rem;
}

.blazorstrap-toaster.bottom-0.end-0 .toast .toast-header.bg-info.text-white {
  background-color: #0075db !important;
}

/* BottomCenter */
.blazorstrap-toaster.bottom-0.start-50.translate-middle-x .toast {
  margin-bottom: 0.5rem;
}

.blazorstrap-toaster.bottom-0.start-50.translate-middle-x .toast .toast-header.bg-info.text-white {
  background-color: #0075db !important;
}

/* BottomLeft */
.blazorstrap-toaster.bottom-0.start-0 .toast {
  margin-bottom: 0.5rem;
  margin-left: 0.5rem;
}

.blazorstrap-toaster.bottom-0.start-0 .toast .toast-header.bg-info.text-white {
  background-color: #0075db !important;
}

/* MiddleLeft */
.blazorstrap-toaster.top-50.start-0.translate-middle-y .toast {
  margin-top: 0.5rem;
  margin-left: 0.5rem;
}

.blazorstrap-toaster.top-50.start-0.translate-middle-y .toast .toast-header.bg-info.text-white {
  background-color: #0075db !important;
}

/* TopLeft */
.blazorstrap-toaster.top-0.start-0 .toast {
  margin-top: 0.5rem;
  margin-left: 0.5rem;
}

.blazorstrap-toaster.top-0.start-0 .toast .toast-header.bg-info.text-white {
  background-color: #0075db !important;
}

/* TopCenter */
.blazorstrap-toaster.top-0.start-50.translate-middle-x .toast {
  margin-top: 0.5rem;
}

.blazorstrap-toaster.top-0.start-50.translate-middle-x .toast .toast-header.bg-info.text-white {
  background-color: #0075db !important;
}

/* MiddleCenter */
.blazorstrap-toaster.top-50.start-50.translate-middle .toast {
  margin-top: 0.5rem;
}

.blazorstrap-toaster.top-50.start-50.translate-middle .toast .toast-header.bg-info.text-white {
  background-color: #0075db !important;
}

.cursor-pointer {
  cursor: pointer;
}

.kpi-select-ellipsis {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  display: block;
  width: 100%;
  /* The below transition is optional for smooth padding effect */
  transition: padding-right 0.2s !important;
}

.form-select.kpi-select-ellipsis {
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  /*Ensure enough space for the dropdown arrow */
  padding-right: 2rem !important;
}

.accordion-item.first-item {
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  overflow: hidden;
}

.accordion-item.last-item {
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  overflow: hidden;
}
