﻿.error-box {
  border: 1px solid red;
  padding: 8px;
  margin-top: 4px;
}
.success-box {
  border: 1px solid green;
  padding: 8px;
  margin-top: 4px;
}
.validation-container {
  position: relative;
  /* anchor for absolute positioning */
}
.validation-popover {
  position: absolute;
  top: 100%;
  /* just below the link */
  left: 0;
  z-index: 1000;
  width: 100%;
}
.validation-header {
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 8px;
  margin-bottom: 4px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}
.validation-header.error {
  background-color: #D63B3B;
  /* light red background */
}
.validation-header.success {
  background-color: #26824A;
  /* light green background */
}
.validation-message {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}
.validation-message.error {
  background-color: #FDEEEE;
  /* light red background */
}
.validation-message.success {
  background-color: #e8f5e9;
  /* light green background */
}
.validation-message .mud-icon {
  margin-right: 6px;
}
.validation-header .mud-icon-button {
  color: white;
}
/* To restrict the hover on cancel icon because it's hiding the icon with same color */
.no-hover:hover {
  background-color: transparent !important;
  box-shadow: none !important;
}
/* To hide the default validation message imposed by MudBlazor,
    since we now have a custom error handling component and no longer need the default one */
.custom-validation .mud-input-control-helper-container {
  display: none;
}