html {
  height: 100%;
  font-size: 14px;
}

body {
  height: 100%;
  overflow: hidden;
}

a {
  text-decoration: none;
}

#app {
  height: 100%;
  display: grid;
  grid-template-areas: "header header header" "menu content sidebar" "footer footer footer";
  grid-template-rows: auto 1fr auto;
  grid-template-columns: auto 1fr auto;
}
#app .main-layout-header {
  grid-area: header;
}
#app .main-layout-menu {
  grid-area: menu;
  box-shadow: 1px 0px 4px rgba(0, 0, 0, 0.15);
}
#app .main-layout-content {
  grid-area: content;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
#app .main-layout-content > hr {
  flex-shrink: 0;
}
#app .main-layout-sidebar {
  grid-area: sidebar;
  overflow-y: auto;
}
#app .main-layout-footer {
  grid-area: footer;
}

.form-layout {
  height: 100%;
  display: grid;
  grid-template-areas: "content";
  grid-template-columns: 1fr;
}
.form-layout .form-layout-content {
  grid-area: content;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  padding: 20px;
  height: 100%;
}
.form-layout .form-layout-content .grid-fill {
  flex: 1 1 0;
  min-height: 0;
}
.form-layout .form-layout-content .scrollable-content {
  flex: 1;
  overflow-x: clip;
  overflow-y: auto;
  padding-right: 20px;
}
.form-layout .form-layout-content .form-layout-tab-content {
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.window-overlay {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  overflow: auto;
  z-index: 22000;
  display: grid;
  place-items: center;
  background-color: rgba(232, 243, 247, 0.6);
}

.busy-indicator {
  user-select: none;
  text-align: center;
}
.busy-indicator .message {
  margin-bottom: 16px;
}
.busy-indicator .initial-load-message::after {
  content: var(--blazor-load-percentage-text);
}
.busy-indicator .ball {
  width: 16px;
  height: 16px;
  background-color: #1a6b8a;
  border-radius: 100%;
  display: inline-block;
  animation: bounce-animation 1.4s infinite ease-in-out both;
}
.busy-indicator .ball:nth-of-type(1) {
  animation-delay: -0.32s;
}
.busy-indicator .ball:nth-of-type(2) {
  animation-delay: -0.16s;
}
@keyframes bounce-animation {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

.w-100-md {
  width: 100px !important;
}
@media (max-width: 768px) {
  .w-100-md {
    width: 100% !important;
  }
}

.w-200-md {
  width: 200px !important;
}
@media (max-width: 768px) {
  .w-200-md {
    width: 100% !important;
  }
}

.w-300-md {
  width: 300px !important;
}
@media (max-width: 768px) {
  .w-300-md {
    width: 100% !important;
  }
}

.w-400-md {
  width: 400px !important;
}
@media (max-width: 768px) {
  .w-400-md {
    width: 100% !important;
  }
}

.w-500-xl {
  width: 500px !important;
}
@media (max-width: 1200px) {
  .w-500-xl {
    width: 100% !important;
  }
}

.w-600-xl {
  width: 600px !important;
}
@media (max-width: 1200px) {
  .w-600-xl {
    width: 100% !important;
  }
}

/* This overrides the css of a message dialog box so that it will have a higher z-index that the grid loading indicator */
.message-dialog {
  z-index: 25000 !important;
}

.k-dialog-wrapper:has(.message-dialog) {
  z-index: 25000 !important;
}

hr {
  min-height: 1px;
}

.t2-drawer-item {
  color: #1a6b8a;
  margin: 0 12px;
  outline: 0;
  font-size: 1rem;
  line-height: 2;
  display: flex;
  flex-flow: row nowrap;
  cursor: pointer;
}
.t2-drawer-item:hover {
  background-color: #e8f3f7;
  font-weight: 600;
}
.t2-drawer-item.selected {
  background-color: #e8f3f7;
  color: #1a6b8a;
  border-radius: 5px;
  font-weight: 600;
}
.t2-drawer-item .item-text {
  flex: 1;
}
.t2-drawer-item .item-text.no-anchor {
  cursor: default;
  background-color: white;
  font-weight: 400;
}

.t2-drawer-item.k-level-0 > a,
.t2-drawer-item.k-level-0 > a:visited,
.t2-drawer-item.k-level-0 > span {
  color: #1a6b8a;
}

.t2-drawer-item.k-level-1 {
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.k-level-0 > .side-menu-icon,
.k-level-0 > a {
  padding: 0.5rem 0rem 0.5rem 1rem;
}

.k-level-0 > a > .side-menu-icon {
  padding: 0;
}

.k-level-0 > .item-text {
  padding: 0.5rem 1rem 0.5rem 1rem;
}

.k-level-0 > a.item-text-anchor {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 1rem;
}

.k-level-1 > a,
.k-level-1 > span {
  padding: 0.5rem 1rem 0.5rem 3.375rem;
  width: 100%;
}

.k-drawer-wrapper {
  padding-top: 10px;
}

.k-drawer-content {
  display: none;
}

.k-drawer-container {
  position: relative;
  height: 100%;
}

.preserve-line-breaks {
  white-space: pre-wrap;
}

#blazor-error-ui {
  background: #5bb5d5;
  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;
}

:root {
  --kendo-color-error: #d32b29;
  --kendo-color-app-surface: #fdfeff;
  --kendo-color-surface: #fdfeff;
  --kendo-color-surface-alt: #fdfeff;
  --kendo-color-on-app-surface: #212830;
  --kendo-color-on-warning: #50565d;
  --bs-body-bg: #fdfeff;
  --bs-body-color: #212830;
  --bs-link-color: #5bb5d5;
  --bs-link-color-rgb: 91, 181, 213;
  --bs-link-hover-color: #60a9c5;
  --bs-heading-color: #1a6b8a;
  --bs-warning-text-emphasis: #1a6b8a;
}

.btn-secondary,
.k-button-solid-secondary {
  --bs-btn-bg: transparent;
  --bs-btn-border-color: #1a6b8a;
  --bs-btn-color: #1a6b8a;
  --bs-btn-hover-bg: #e8f3f7;
  --bs-btn-hover-border-color: #1a6b8a;
  --bs-btn-hover-color: #1a6b8a;
  --bs-btn-active-bg: #c4e1ec;
  --bs-btn-active-border-color: #1a6b8a;
  --bs-btn-active-color: #1a6b8a;
  --kendo-color-secondary: transparent;
  --kendo-color-on-secondary: #1a6b8a;
  --kendo-color-secondary-hover: #e8f3f7;
  --kendo-color-secondary-active: #c4e1ec;
  border-color: #1a6b8a !important;
}

.validation-message {
  color: #d32b29;
}

.form-label {
  color: #50565d;
}

.k-grid .k-table-tbody > .k-table-row:not(.k-detail-row).k-hover {
  color: #212830;
}

.k-picker {
  background-color: #fdfeff;
  color: #212830;
}

.k-grid a {
  color: #5bb5d5;
  text-decoration: underline;
}
.k-grid a:hover {
  text-decoration: underline;
}

/* Webkit based browsers */
meter[value="1"].passwordstrength::-webkit-meter-optimum-value {
  background: red;
}

meter[value="2"].passwordstrength::-webkit-meter-optimum-value {
  background: yellow;
}

meter[value="3"].passwordstrength::-webkit-meter-optimum-value {
  background: orange;
}

meter[value="4"].passwordstrength::-webkit-meter-optimum-value {
  background: green;
}

/* Gecko based browsers */
meter[value="1"].passwordstrength::-moz-meter-bar {
  background: red;
}

meter[value="2"].passwordstrength::-moz-meter-bar {
  background: yellow;
}

meter[value="3"].passwordstrength::-moz-meter-bar {
  background: orange;
}

meter[value="4"].passwordstrength::-moz-meter-bar {
  background: green;
}

.badge-draft {
  background-color: #212830 !important;
  color: white !important;
}

.badge-screening {
  background-color: #1a6b8a !important;
  color: white !important;
}

.badge-pending {
  background-color: #5bb5d5 !important;
  color: white !important;
}

.badge-published {
  background-color: #3a8c6e !important;
  color: white !important;
}

.badge-enabled {
  background-color: #3a8c6e !important;
  color: white !important;
}

.badge-disabled {
  background-color: #212830 !important;
  color: #fdfeff !important;
}

.badge-retired {
  background-color: #212830 !important;
  color: white !important;
}
