﻿.loader-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.no-border.rz-button {
  background-color: inherit !important;
  border: none !important;
  padding: 8px;
}

[class*="tab-"] {
  margin-left: calc(var(--level) * 2em);
}

.tab-1 {
  --level: 1;
}
.tab-2 {
  --level: 2;
}

.data-list thead {
  display: none;
}

.page-size {
  height: var(--page-size);
}

.rz-html-editor {
  height: 300px;
  width: 100%;
  overflow: auto;
}

.rz-selectable .rz-data-row,
div.rz-selectable,
.rz-card .rz-selectable {
  cursor: pointer;
}

.image-preview {
  min-width: 100px;
  min-height: 100px;
  max-width: 100px;
  max-height: 100px;
}

.image-preview img {
  object-fit: contain;
  height: 100%;
}

a.no-styling {
  text-decoration: none;
  color: inherit;
}

button.link {
  background-color: inherit !important;
  border: none !important;
  padding: 0;
}

button.link:hover .rz-button-text {
    text-decoration: underline;
}

#project-statistic-label {
  text-align: center;
}

/*  --==============  Radzen Dialog  ==============- */
.rz-dialog-side {
  top: 0;
  width: 500px;
}

.rz-dialog-wrapper + .rz-dialog-side {
  z-index: calc(var(--rz-dialog-zindex) - 1);
}

.rz-dialog-content {
  height: 100%;
  width: 100%;
}

.casualty-vessel-list {
  max-height: 74vh;
  overflow-y: auto;
  padding: 0.5rem;
}

/*  --==============  File Input  ==============- */
.file-input {
  width: 100%;
  border: 1px solid var(--rz-primary);
  border-radius: 0.25rem;
  position: relative;
}

.file-input .rz-fileupload-choose {
  width: 100%;
  text-align: center;
  padding: 1rem 0;
  background-color: transparent;
  color: var(--rz-primary);
}

.file-input .rz-fileupload-choose input {
  width: 100%;
}

.file-input .rz-fileupload-choose span {
  display: inline-block;
  max-width: 75%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-input-clear {
  position: absolute;
  right: 30px;
}

/*  --==============  Factsheet  ==============- */
.factsheet-input .rz-flex-row {
  height: 20px;
}

.factsheet-input input,
.factsheet-input .rz-numeric,
.factsheet-item-title {
  background: transparent;
  border: none;
  box-shadow: none;
  transition: all 0.3s ease;
}

.factsheet-input .rz-numeric-button {
  display: none;
}

.factsheet-item-title {
  font-weight: bold;
  font-size: larger;
  padding: 0;
  margin: auto;
  height: 20px;
  width: 100%;
}

.factsheet-input p {
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
}

.factsheet-input .rz-numeric,
.factsheet-input .rz-textbox {
  width: 100%;
  height: 100%;
}

.factsheet-weather {
  border: 1px solid currentColor;
}

.factsheet-weather p {
  font-size: 15px;
}

.print-graph {
  width: 650px;
}

.factsheet-highlight {
  background-color: var(--rz-base);
}

/*  --==============  Azure Map  ==============- */
.azure-map {
  height: 300px;
}

.azure-map-large {
  height: 600px;
  margin: var(--rz-datalist-padding);
}

.dashboard-azure-map {
  width: 200%;
  height: 600px;
  transform: scale(0.5);
  transform-origin: top left;
}

#dashboard-map-container {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
}

.windy-map {
  height: 300px;
  width: 100%;
  > #map-container {
    z-index: 0;
  }
  > #bottom > #progress-bar {
    overflow: visible;
  }
}

#azure-map-div .tooltiptext {
  display: none !important;
}

.map-popup {
  color: #000000;
  background-color: #ffffff;
  padding: 10px;
}

/*  --==============  Dashboard Page  ==============- */
.dashboard p.dashboard-title {
  font-size: 20px;
  font-weight: bold;
  text-decoration: underline;
  margin-bottom: 16px;
}

.dashboard p {
  font-size: 15px;
}

.dashboard-project-info p {
  white-space: nowrap;
}

/*  --==============  Main Layout  ==============- */
.radzen-header {
  box-shadow: 0 1px 5px 0 rgba(21, 24, 26, 0.1);
}

.radzen-header-content {
  width: 85vw;
}

.radzen-header img {
  width: 2rem;
  position: relative;
  top: -50%;
}

.radzen-body {
  width: 85vw;
}

/*  --==============  Darkmode Only  ==============- */
body:has(.rz-layout.rz-Dark) {
  .carousel-button button {
    color: var(--rz-base-200);
  }
}
