﻿@charset "UTF-8";
/* 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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTcuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDgA+NjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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 1.75rem 0 0.6rem !important;
  height: 40px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

/* Remove blue focus border from all select inputs */
.form-select:focus,
select:focus,
select.form-control:focus,
select.form-select:focus {
  border-color: var(--bs-border-color) !important;
  outline: 0 !important;
  box-shadow: none !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%;
  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;
}

/* KPI */
.kpi-selector-container {
  position: relative;
  /**
      Create a stacking context for the product selector. A small z-index ensures the dropdown
      overlays the chart while remaining below the global tooltip.
  */
  z-index: 50;
}

.kpi-selector-container .input-group.filter {
  width: auto !important;
  max-width: none;
  min-width: 100%;
}

.kpi-selector-container,
.kpi-selector-container .dropdown {
  overflow: visible;
}

.kpi-selector-container .dropdown-menu.show {
  position: absolute;
  /* Slightly higher than the container to appear on top of it. */
  z-index: 60; /* Higher than chart surface */
  overflow: visible;
  width: max-content;
  min-width: 100%;
  max-width: none;
  white-space: nowrap;
  margin-top: 0.2rem;
  right: 0; /* Anchor to right edge */
  left: auto; /* Allow growth to the left */
  border-radius: 18px !important;
  margin-right: 2px !important;
  background-clip: padding-box; /* Make rounded corners visible */
  transform: translateZ(0);
}

/* Inner scroll area with constrained height, without clipping menu corners */
.kpi-selector-container .dropdown-menu .dropdown-scroll {
  max-height: 280px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0;
}

.kpi-selector-container .dropdown-menu .dropdown-item {
  white-space: nowrap;
}

.kpi-selector-container .kpi-select-trigger {
  justify-content: flex-start; /* Left-justify within .btn (overrides Bootstrap/iceberg center) */
  background-color: transparent !important;
  box-shadow: none !important;
  text-align: start;
  border: 1px solid var(--bs-border-color);
  border-radius: 20px !important;
  padding-right: 10px !important;
}

.kpi-selector-container .kpi-select-trigger:hover,
.kpi-selector-container .kpi-select-trigger:focus {
  background-color: transparent !important;
  box-shadow: none !important;
}

.kpi-selector-container .kpi-select-trigger:disabled {
  background-color: transparent !important;
  box-shadow: none !important;
  opacity: 1; /* Readable when disabled */
}

.kpi-selector-container .kpi-select-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 auto; /* Allow ellipsis with right-side caret */
  width: auto;
}

/* Right-aligned caret, inherits text color */
.kpi-selector-container .kpi-caret {
  width: 0;
  height: 0;
  border-left: 0.3em solid transparent;
  border-right: 0.3em solid transparent;
  border-top: 0.35em solid currentColor; /* Down arrow */
  transition: transform 0.15s ease-in-out;
  flex: 0 0 auto;
  margin-left: 0.4rem !important;
}

.kpi-selector-container .kpi-select-trigger.open .kpi-caret {
  transform: rotate(180deg); /* Point up when open */
}

/* Centering logic moved to small-screen media query; on larger screens keep right-aligned and shrink-to-fit */
.kpi-selector-container .dropdown-menu.kpi-menu-center {
  /* Inherit right:0 from .dropdown-menu.show (right-aligned) */
  min-width: 0; /* Allow shrink to content (no forced 100%) */
  width: max-content;
  max-width: none;
  /* Extra safety: when inside search mode suggestion list (the separate search branch) */
  z-index: 60;
}

/* Keep the dropdown above the chart */
::deep .k-chart {
  position: relative;
  z-index: 10;
}

.kpi-clear-icon {
  font-size: 1.35rem; /* Adjust size of the × */
  line-height: 1; /* Prevent extra vertical space */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem; /* Larger clickable area (≈32px) */
  height: 2rem;
  cursor: pointer;
  border-radius: 0.375rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.kpi-clear-icon:hover,
.kpi-clear-icon:focus {
  background-color: #000000;
  background-color: rgba(0, 0, 0, 0.07);
  text-decoration: none;
}

.kpi-clear-icon:active {
  background-color: #000000;
  background-color: rgba(0, 0, 0, 0.15);
}

/* Allow vertical scrolling over the chart on touch devices */
.kpi-chart,
.kpi-chart .k-chart,
.kpi-chart .k-chart-surface {
  touch-action: pan-y !important;
}

/* Descendants are rendered by Telerik outside kpi-chart component's scope */
::deep .kpi-chart .k-chart,
::deep .kpi-chart .k-chart-surface {
  touch-action: pan-y !important;
}

.kpi-selector-outer {
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: 0;
}

@media (max-width: 1060px) {
  .kpi-selector-outer {
    justify-content: center;
  }
  .kpi-selector-container .dropdown-menu.kpi-menu-center {
    right: auto !important;
    left: 50% !important;
    transform: translateX(-50%) translateZ(0);
    max-width: 340px;
    width: 92vw; /* Responsive width up to max-width */
    min-width: 0;
  }
}
.kpi-header-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.75rem;
  width: 100%;
}

.kpi-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  min-width: 0;
}

.principals-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  flex: 0 0 auto;
  min-width: 0;
}

.principals-inline > label {
  margin: 0;
  flex: 0 0 auto;
  white-space: nowrap;
}

.principals-inline .principal-select-wrapper {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 230px;
  max-width: 230px;
  min-width: 140px;
  white-space: nowrap;
  min-height: 1px;
}

.principals-inline .principal-select-wrapper select,
.principals-inline .principal-select-wrapper .form-select {
  white-space: nowrap;
}

/* Mobile: stack rows, but keep label + select together horizontally */
@media (max-width: 530px) {
  .kpi-header-row {
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .kpi-header-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .principals-inline {
    white-space: nowrap;
  }
  .principals-inline .principal-select-wrapper {
    width: 230px;
    max-width: 100%;
  }
}
