section {
  display: none;
  padding: 20px;
}

@media (max-width: 1024px) {
  section {
    padding: 0px;
  }

  .row {
    margin-left: 0px;
    margin-right: 0px;
  }
}

.main_wrap {
  min-height: 100%;
  padding: 0 0 100px;
  position: relative;
}
footer a {
  color: #888;
}
footer a:hover {
  color: #fff;
}
footer {
  bottom: 0;
  padding: 4px;
  height: 30px;

  left: 0;
  position: absolute;
  width: 100%;
  margin-top: 5px;
  background-color: #343a40;
  color: #888;
  text-align: right;
  padding: 5px;
  font-size: 12px;
}

.btn-waiting {
  background-image: none !important;
  -webkit-animation: fadeIt 1s infinite;
  animation: fadeIt 1s infinite;
}

.btn-selected {
  background-image: none !important;
  -webkit-animation: fadeIt 1s infinite;
  animation: fadeIt 1s infinite;
}

@-webkit-keyframes fadeIt {
  0% {
    background-color: #ffffff;
  }
  50% {
    background-color: #ff0000;
  }
  100% {
    background-color: #ffffff;
  }
}
@keyframes fadeIt {
  0% {
    background-color: #ffffff;
  }
  50% {
    background-color: #ff0000;
  }
  100% {
    background-color: #ffffff;
  }
}

img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

.devicemap-point-selected {
  background-color: red !important;
  border: 2px solid red;
  font-weight: bold;
}

.devicemap-point {
  width: 24px;
  height: 24px;
  /* border-radius: 50px;*/
  background-color: rgb(250, 199, 198);
  color: black;
  padding: 4px;
  border: 1px solid red;
  font-family: sans-serif;

  text-align: center;
  font-size: 13px;
  margin-left: -12px;
  margin-top: -12px;

  cursor: default;
  transition: all 0.5s ease;
}

.devicemap-point-collapsed {
  /* remove the point from the map, show only a x */
  width: 6px;
  height: 6px;
  background-color: rgb(250, 199, 198);
  color: black;
  padding: 4px;
  border: 1px solid red;
  font-family: sans-serif;
  text-align: center;
  font-size: 13px;
  margin-left: -3px;
  margin-top: -3px;
  cursor: default;
  transition: all 0.5s ease;
}

.devicemap-label {
  /*//todo: disse punktene er ikke plassert riktig */
  opacity: 0.9;
  cursor: default;
  background-color: white;
  color: black;
  padding: 4px;
  font-family: sans-serif;
  font-size: 11px;
  border: 1px solid red;
  transform: translate(-50%, 12px);
  white-space: nowrap;
  cursor: default;
  transition: all 0.5s ease;
}

.container {
  padding-right: 0px;
  padding-left: 0px;
}
.form_error {
  border: 2px solid red;
}
.devices_map_image {
  margin: 0 auto;
}
.devices_map_points {
  margin: 0 auto;
}
.devices_map_wrap {
  margin: 0 auto;
  background-color: honeydew;
  max-width: 1000px;
  max-height: 1000px;

  margin-bottom: 40px;

  user-select: none;
}
.devices_map_wrap img {
  cursor: url("data:image/svg+xml,%3Csvg width='23' height='23' viewBox='0 0 23 23' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.2444 11.3203H22.8718M11.5581 0.006558V22.634' stroke='hotpink' stroke-width='2'/%3E%3C/svg%3E") 12.5 12.5, crosshair;
  color: black;
}

.croppie button,
a.croppie-btn {
  background-color: #189094;
  color: white;
  padding: 10px 15px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  text-shadow: none;
  display: inline-block;
  cursor: pointer;
}
input[type="file"] {
  cursor: pointer;
}
button:focus {
  outline: 0;
}

.croppie-file-btn {
  position: relative;
}
.croppie-file-btn input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.actions {
  padding: 5px 0;
}
.actions crobbie-btn {
  margin-right: 5px;
}

.nav-link {
  text-decoration: underline;
}

.devices_row_active,
.projects_row_active {
  border: 3px solid hotpink;
}

.project-alerts-wrapper {
  background-color: #eeb6f473;
  padding-top: 5px;
  padding-bottom: 5px;
}

.projects-leq-wrapper {
  background-color: #e6dbc2a9;
  padding-top: 5px;
  padding-bottom: 5px;
}

.role_admin {
  /* alle funksjoner i programmet som krever admin rolle har denne klassen */
}
.role_super_admin {
}

table thead {
  background-color: #a1c5af;
}

.btn-mmtool {
  margin-right: 15px;
  margin-bottom: 3px;
}

.mminfo {
  color: #fff;
  background-color: #a1c5af;
  border-color: black;
  padding: 5px;
  margin-right: 15px;
  margin-bottom: 3px;
}

.btn-mm {
  color: #fff;
  background-color: #a1c5af;
  border-color: black;
}

.poi-btn-mm {
  color: black;
  background-color: #edfef4c1;
  height: 30px;
  line-height: 30px;
  padding: 0 4px;
  border-color: black;
}
.poi-btn-mm .material-symbols-outlined {
  font-size: 24px;
  margin-top: 2px;
}

.mmform {
  background-color: #ebebeb;
  border-bottom: 1px solid darkolivegreen;
  margin-bottom: 5px;
  padding-bottom: 5px;
  padding-top: 5px;
}

.bootbox-body {
  word-wrap: break-word;
}

.bootbox-wide .modal-dialog {
  max-width: 80% !important;
  width: 80% !important;
}

.material-icons,
.material-symbols-outlined {
  vertical-align: middle;
  line-height: 0 !important;
  position: relative;
  top: -2px;
}

.datepicker thead {
  background-color: transparent;
}

/* ################ */

.form-label-group input:not(:placeholder-shown) ~ label,
.form-label-group input:-webkit-autofill ~ label /* <<<< Add these */ {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  font-size: 12px;
  color: #777;
}

html,
body {
  height: 100%;
}

.form-signin {
  width: 100%;
  max-width: 420px;
  padding: 15px;
  margin: auto;
}

.form-label-group {
  position: relative;
  margin-bottom: 1rem;
}

.form-label-group > input,
.form-label-group > label {
  height: 3.125rem;
  padding: 0.75rem;
}

.form-label-group > label {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  margin-bottom: 0; /* Override default `<label>` margin */
  line-height: 1.5;
  color: #495057;
  pointer-events: none;
  cursor: text; /* Match the input under the label */
  border: 1px solid transparent;
  border-radius: 0.25rem;
  transition: all 0.1s ease-in-out;
}

.form-label-group input::-webkit-input-placeholder {
  color: transparent;
}

.form-label-group input:-ms-input-placeholder {
  color: transparent;
}

.form-label-group input::-ms-input-placeholder {
  color: transparent;
}

.form-label-group input::-moz-placeholder {
  color: transparent;
}

.form-label-group input::placeholder {
  color: transparent;
}

.form-label-group input:not(:placeholder-shown) {
  padding-top: 1.25rem;
  padding-bottom: 0.25rem;
}

.form-label-group input:not(:placeholder-shown) ~ label {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  font-size: 12px;
  color: #777;
}

/* Fallback for Edge
  -------------------------------------------------- */
@supports (-ms-ime-align: auto) {
  .form-label-group > label {
    display: none;
  }
  .form-label-group input::-ms-input-placeholder {
    color: #777;
  }
}

/* Fallback for IE
  -------------------------------------------------- */
/* @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .form-label-group > label {
    display: none;
  }
  .form-label-group input:-ms-input-placeholder {
    color: #777;
  }
} */

.ld_main {
  white-space: nowrap;
  text-align: right;
}

.ld_stdev {
  white-space: nowrap;
  text-align: right;
  font-size: 0.7em;
  color: #844949;
}

.lden_td {
  text-align: right;
  padding-right: 5px;
}
input.lden_date {
  width: 26px;
  height: 26px;
}

/* Prosjekt nedtrekksliste */
.dropdown-header {
  font-weight: bold;
  font-size: 14px;
  color: #6c757d; /* Optional muted color */
  padding: 0.5rem 1.5rem;
}

.collapsible-header {
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  color: #6c757d; /* Muted color */
  padding: 0.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.collapse-icon {
  font-size: 12px;
  margin-left: 5px;
}

.project-group {
  margin-left: 1rem; /* Optional indent for nested items */
}

.summary_point {
  width: 10px;
  height: 10px;
  margin-right: 5px;
  border-radius: 5px;
  display: inline-block;
}

.stats_interval_10 {
  background-color: #de7c86;
}
.stats_interval_10_ok {
  background-color: #78e291;
}

.stats_map_type_btn {
  padding: 3px;
  opacity: 0.5;
  border: none;
  background-color: lightgray;
}

.stats_map_type_active {
  opacity: 1;
  background-color: lightblue;
}

.stats_map_image {
  filter: grayscale(100%);
}

.btn_export {
  margin-right: 5px;
  cursor: pointer;
}

/* thumbnail with enlarged image on hover */
.thumbnail-container {
  position: relative;
  width: 30px;
  height: 30px;
  overflow: hidden;
  cursor: pointer;
}

.thumbnail-img {
  width: 100%;
  height: auto;
}

.devices_node_image_full_wrap {
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 500;
  width: 100%;
  height: 100%;
  background: white;
}
.devices_node_image_full_wrap IMG {
  padding: 12px;
  max-width: 500px;
  max-height: 500px;
}

/* Sortered tables */
th {
  white-space: nowrap;
  padding-right: 20px; /* extra space for icon */
  position: relative;
  vertical-align: middle;
}

th.sorting::after,
th.sorting_asc::after,
th.sorting_desc::after {
  font-family: "Material Icons";
  vertical-align: middle;
  font-size: 18px;
  margin-left: 5px;
  display: inline-block;
}

th.sorting::after {
  content: "unfold_more"; /* Neutral sort icon */
}

th.sorting_asc::after {
  content: "arrow_upward";
}

th.sorting_desc::after {
  content: "arrow_downward";
}

.poi-item {
  padding: 3px;

  margin-bottom: 5px;
}

.clipboard_clickcopy {
  background-color: #bfd8ee;
  padding: 2px;
  border: 1px solid black;
}

@media (min-width: 620px) {
  .modal-dialog {
    max-width: 600px;
  }
}

.nav_current_project_link {
  cursor: pointer;
}

.span_link {
  cursor: pointer;
  text-decoration: underline;
  color: #1b71f2;
}

.adminhardware_latest_btn {
  cursor: pointer;
}
.adminhardware_latest_btn div {
  top: 15px;
}

/* STATS PAGE SPECIFIC CSS, Expandable time period controls */

/* Layout */
.stats_nav {
  position: relative;
  display: inline-block;
} /* anchors the panel */
.stats_controls {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}
/* Already present panel styles can remain */
.stats-panel {
  position: absolute;
  top: 44px;
  right: 0;
  z-index: 1000;
  width: 240px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-height 180ms ease, opacity 150ms ease;
}

.stats-panel.open {
  max-height: 600px;
  opacity: 0.7;
  pointer-events: auto;
}

/* Each row with two buttons side-by-side */
.pair-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px 8px;
}

/* Buttons styling */
.stats-panel .btn-sm {
  background: #6c9c7d58;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 6px 8px;
  text-align: center;
  cursor: pointer;
  font-size: 0.9rem;
  white-space: nowrap;
}

.btn-sm:hover {
  background: #f5f5f5;
}

/* Divider line */
.stats-panel hr {
  margin: 4px 0;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.home-stats-quicklinks-table thead {
  color: white;
}

.home-stats-quicklinks-table {
  /*space out the table columns */
  width: 100%;
  border-collapse: separate;
  border-spacing: 10px 5px;
}
