﻿@font-face {
  font-family: "Sora";
  src: url("/fonts/Sora/Sora-VariableFont_wght.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: "Open Sans";
  src: url("/fonts/Open_Sans/OpenSans-VariableFont_wdth,wght.ttf") format("truetype");
  font-style: normal;
  font-weight: normal;
}
/* Reset styling to get the default dropdown appearance */
.form-group .form-control,
input[type=select],
select {
  -webkit-appearance: menulist; /* Restores default appearance in WebKit browsers */
  -moz-appearance: menulist; /* Restores default appearance in Firefox */
  appearance: menulist; /* Restores default appearance in modern browsers */
  border: 1px solid #ccc; /* Default border */
  padding: 0.375rem 0.75rem; /* Default padding (adjust as needed) */
}

label {
  margin-bottom: 4px;
}

.validation-errors {
  background-color: #fe5d26;
  color: white;
  border-radius: 8px;
  padding-left: 0;
  margin-bottom: 2rem;
}
.validation-errors li {
  color: white;
  list-style: none;
  padding: 1rem;
}

html, body, label {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Sora";
}

h1, h2, h3, h4 {
  font-weight: bold;
  font-size: 0.9rem;
  color: #141D68;
  margin-bottom: 0.5rem;
}

h3 {
  margin-bottom: 0;
}

p {
  font-size: 0.8rem;
}

.btn-primary {
  background-color: #336DFF !important;
  border-radius: 51px;
  padding: 0.5rem 1.5rem;
}

.btn-primary:hover {
  background-color: #1E57E5 !important;
}

.btn-outline-primary {
  background-color: white;
  border-radius: 51px;
  padding: 0.5rem 1.5rem;
  color: #336DFF !important;
  border-color: #336DFF !important;
}

.btn-outline-primary:hover, .btn-outline-primary.active {
  background-color: #336DFF !important;
  color: white !important;
}

.btn-danger {
  border-radius: 51px;
  padding: 0.5rem 1.5rem;
  background-color: #fe5d26 !important;
  border-color: #EC4309 !important;
}

.btn-success {
  border-radius: 51px;
  padding: 0.5rem 1.5rem;
  background-color: #a6cc39 !important;
  border-color: #a6cc39 !important;
}

.btn-danger:hover {
  background-color: #EC4309 !important;
}

.btn-outline-danger {
  border-radius: 51px;
  padding: 0.5rem 1.5rem;
  border-color: #fe5d26 !important;
}

.btn-outline-danger:hover {
  background-color: #fe5d26 !important;
  color: white !important;
}

.btn.small {
  font-size: 1rem;
  border-radius: 50% !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
  max-width: 2.5rem !important;
  max-height: 2.5rem !important;
  min-width: 2.5rem !important;
  min-height: 2.5rem !important;
  padding: 0.5rem !important;
}

.btn-outline-danger {
  background-color: white;
}

@media (min-width: 1024px) {
  .btn.big-desktop {
    max-width: initial !important;
    width: initial !important;
    border-radius: 8px !important;
  }
}
textarea {
  width: 100%;
  border-radius: 8px;
  padding: 1rem;
  border: 2px solid #141D68;
  resize: none;
  min-height: 200px;
}

textarea.invalid {
  border: 2px solid #fe5d26;
}

textarea.invalid::placeholder {
  color: #fe5d26;
}

.alert-danger {
  background-color: #fe5d26;
  color: white;
  margin-bottom: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.alert-danger .buttons button i {
  color: #fe5d26;
}
.alert-danger .buttons button i:hover {
  color: white;
}

.component {
  width: 100%;
  border-radius: 8px;
  background-color: #f6f6f6;
  padding: 1rem;
}
.component .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.component .header .title {
  font-weight: bold;
  align-items: center;
}
.component .header .title h2 {
  margin-bottom: 0;
}
.component .header .buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.component .content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.component.blue {
  background-color: #E5F5F8;
}

strong {
  color: #141D68;
}

.sidebar {
  height: 100%;
}

/* Responsive Table Styling */
.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive table {
  width: 100%;
  border-collapse: collapse;
}

.table-responsive th, .table-responsive td {
  padding: 1rem;
  text-align: left;
  white-space: nowrap;
}

.table-responsive th {
  background-color: #f8f9fa;
  font-weight: bold;
  font-size: 0.8rem;
}

.table-responsive td {
  font-size: 0.8rem;
}

.table-responsive tbody tr:not(:last-child) {
  border-bottom: 1px solid #dee2e6;
}

.badge {
  padding: 1rem;
  font-family: "Open Sans" !important;
  font-weight: normal;
}

.badge.bg-light {
  color: black;
  background-color: #E5F5F8 !important;
}

button i.fa-margin {
  margin-right: 0.5rem;
}

@media (max-width: 1024px) {
  .mobile-hidden {
    display: none !important;
  }
  .btn.small-mobile {
    font-size: 1rem;
    border-radius: 50% !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
    padding: 0.5rem !important;
  }
  .btn.small-mobile .fa-margin {
    margin: 0;
  }
}
@media (min-width: 1024px) {
  .table-responsive th, .table-responsive td {
    padding: 0.5rem;
  }
  .table-responsive th {
    font-size: 1rem;
  }
  .table-responsive td {
    font-size: 1rem;
  }
  h1, h2, h3 {
    font-weight: bold;
    font-size: 20px;
    color: #141D68;
    margin-bottom: 1rem;
  }
  h3 {
    margin-bottom: 0;
  }
  p {
    font-size: 1rem;
  }
  .component {
    padding: 2rem;
  }
  .component header {
    margin-bottom: 2rem;
  }
  #app, .page, .sidebar {
    min-height: 100svh; /* Allow the elements to grow based on content */
  }
}
h1:focus {
  outline: none;
}

a, .btn-link {
  color: #0071c1;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.breadcrumb {
  margin-bottom: 0;
}

.breadcrumb .breadcrumb-item a {
  margin-left: 0 !important;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.valid.modified:not([type=checkbox]) {
  outline: 1px solid #26b050;
}

.invalid {
  outline: 1px solid red;
}

.validation-message {
  color: red;
}

#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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}

.blazor-error-boundary::after {
  content: "An error has occurred.";
}

.loading-progress {
  position: relative;
  display: block;
  width: 8rem;
  height: 8rem;
  margin: 20vh auto 1rem auto;
}

.loading-progress circle {
  fill: none;
  stroke: #e0e0e0;
  stroke-width: 0.6rem;
  transform-origin: 50% 50%;
  transform: rotate(-90deg);
}

.loading-progress circle:last-child {
  stroke: #1b6ec2;
  stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
  transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
  position: absolute;
  text-align: center;
  font-weight: bold;
  inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
  content: var(--blazor-load-percentage-text, "Loading");
}

.line {
  display: flex;
  position: absolute;
  bottom: 0;
  zoom: 0.9;
  pointer-events: none; /* Prevents the image from hijacking scroll events */
  touch-action: none; /* Disables touch interactions on the image */
}

code {
  color: #c02d76;
}

body {
  --print-color-adjust: exact;
  overflow-x: clip;
}
