@font-face {
  font-family: "LTSRaelaPro";
  src: url("fonts/LTSRaelaPro-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LTSRaelaPro";
  src: url("fonts/LTSRaelaPro-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LTSRaelaPro";
  src: url("fonts/LTSRaelaPro-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LTSRaelaPro";
  src: url("fonts/LTSRaelaPro-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LTSRaelaPro";
  src: url("fonts/LTSRaelaPro-ExtraBold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LTSRaelaPro";
  src: url("fonts/LTSRaelaPro-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --av-font-family: "LTSRaelaPro", sans-serif;
  --bs-font-sans-serif: var(--av-font-family);
  --bs-body-font-family: var(--av-font-family);
}

html, body {
  font-family: var(--av-font-family);
  margin: 0;
  padding: 0;
  background: #edf2f8;
}

body,
button,
input,
optgroup,
select,
textarea {
  font-family: var(--av-font-family);
}

a, .btn-link {
  color: #006bb7;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.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;
}

.content {
  padding-top: 1.1rem;
}

h1:focus {
  outline: none;
}

.valid.modified:not([type=checkbox]) {
  outline: 1px solid #26b050;
}

.invalid {
  outline: 1px solid #e50000;
}

.validation-message {
  color: #e50000;
}

.blazor-error-boundary {
  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPS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0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}

  .blazor-error-boundary::after {
    content: "An error has occurred."
  }

.darker-border-checkbox.form-check-input {
  border-color: #929292;
}

/*  NEW CSS */
.c--red {
  color: #cd1f8a !important;
}

.btn-style.btn-active {
  background: #cd1f8a !important;
  color: #fff;
}

.btn-style.btn-submitted {
  background: green !important;
  color: #fff;
}

.btn-style.btn-disabled {
  opacity: 0.5;
  pointer-events: none;
  color: #a8a8a8;
}

.font-weight-bold {
  font-weight: 700;
}

.hide {
  display: none !important;
}

.av-toggle-input,
input.av-toggle-input,
.av-toggle-switch input[type="checkbox"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  appearance: none !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

.av-toggle-switch {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

.av-toggle-switch span {
  position: relative;
  display: block;
  width: 60px;
  height: 32px;
  border-radius: 999px;
  background: var(--av-border, #e8e4df);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.av-toggle-switch span::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.12);
  transition: transform 0.2s ease;
}

.av-toggle-switch input[type="checkbox"]:checked + span,
.av-toggle-switch span.is-checked {
  background: var(--av-primary, #932782);
}

.av-toggle-switch input[type="checkbox"]:checked + span::before,
.av-toggle-switch span.is-checked::before {
  transform: translateX(24px);
}

.av-toggle-switch:focus-within span {
  box-shadow: 0 0 0 4px rgba(147, 39, 130, 0.12);
}

/* Global login override so Bootstrap's .form-control radius cannot win */
.auth-card input.form-control.auth-input,
.auth-card .login-field input.form-control.auth-input {
  --bs-border-radius: 10px !important;
  border-radius: 10px !important;
}

/* Global client sidebar styles so Blazor NavLink output cannot miss isolated CSS */
.client-layout-shell .client-side-nav {
  position: sticky;
  top: 16px;
  align-self: start;
  padding-right: 1rem;
}

.client-layout-shell .client-side-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
}

.client-layout-shell .client-side-nav-links a.client-side-link,
.client-layout-shell .client-side-nav-links a.client-side-link:link,
.client-layout-shell .client-side-nav-links a.client-side-link:visited,
.client-layout-shell .client-side-nav-links a.client-side-link:focus,
.client-layout-shell .client-side-nav-links a.client-side-link:active,
.client-layout-shell .client-side-bottom-links a.client-side-link,
.client-layout-shell .client-side-bottom-links a.client-side-link:link,
.client-layout-shell .client-side-bottom-links a.client-side-link:visited,
.client-layout-shell .client-side-bottom-links a.client-side-link:focus,
.client-layout-shell .client-side-bottom-links a.client-side-link:active {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  min-height: auto !important;
  padding: 0.5rem 0.75rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #475569 !important;
  text-decoration: none !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
}

.client-layout-shell .client-side-nav-links a.client-side-link span,
.client-layout-shell .client-side-bottom-links a.client-side-link span {
  color: inherit !important;
  text-decoration: none !important;
}

.client-layout-shell .client-side-nav-links a.client-side-link .client-side-icon,
.client-layout-shell .client-side-bottom-links a.client-side-link .client-side-icon {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  flex: 0 0 24px !important;
  color: #94a3b8 !important;
  stroke-width: 2 !important;
  overflow: visible !important;
}

.client-layout-shell .client-side-nav-links a.client-side-link .client-side-icon-book {
  background-color: currentColor !important;
  -webkit-mask-image: url("/images/icons/svg/cashbook.svg") !important;
  mask-image: url("/images/icons/svg/cashbook.svg") !important;
  -webkit-mask-position: center !important;
  mask-position: center !important;
  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;
  -webkit-mask-size: contain !important;
  mask-size: contain !important;
  overflow: hidden !important;
}

.client-layout-shell .client-side-nav-links a.client-side-link .client-side-icon-sales {
  background-color: currentColor !important;
  -webkit-mask-image: url("/images/icons/svg/Sales_Invoice.svg") !important;
  mask-image: url("/images/icons/svg/Sales_Invoice.svg") !important;
  -webkit-mask-position: center !important;
  mask-position: center !important;
  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;
  -webkit-mask-size: contain !important;
  mask-size: contain !important;
  overflow: hidden !important;
}

.client-layout-shell .client-side-nav-links a.client-side-link .client-side-icon-home {
  background-color: currentColor !important;
  -webkit-mask-image: url("/images/icons/svg/dashboard.svg") !important;
  mask-image: url("/images/icons/svg/dashboard.svg") !important;
  -webkit-mask-position: center !important;
  mask-position: center !important;
  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;
  -webkit-mask-size: contain !important;
  mask-size: contain !important;
  overflow: hidden !important;
}

.client-layout-shell .client-side-nav-links a.client-side-link .client-side-icon-calendar {
  background-color: currentColor !important;
  -webkit-mask-image: url("/images/icons/svg/calendar.svg") !important;
  mask-image: url("/images/icons/svg/calendar.svg") !important;
  -webkit-mask-position: center !important;
  mask-position: center !important;
  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;
  -webkit-mask-size: contain !important;
  mask-size: contain !important;
  overflow: hidden !important;
}

.client-layout-shell .client-side-nav-links a.client-side-link:hover,
.client-layout-shell .client-side-bottom-links a.client-side-link:hover {
  background: linear-gradient(90deg, rgba(238, 225, 244, 0) 0%, rgba(238, 225, 244, 1) 100%) !important;
  border-top-right-radius: 10px !important;
  border-bottom-right-radius: 10px !important;
  color: #0f172a !important;
  text-decoration: none !important;
}

.client-layout-shell .client-side-nav-links a.client-side-link:hover .client-side-icon,
.client-layout-shell .client-side-bottom-links a.client-side-link:hover .client-side-icon {
  color: #94a3b8 !important;
}

.client-layout-shell .client-side-nav-links a.client-side-link.active,
.client-layout-shell .client-side-bottom-links a.client-side-link.active {
  background: linear-gradient(90deg, rgba(238, 225, 244, 0) 0%, rgba(238, 225, 244, 1) 100%) !important;
  border-top-right-radius: 10px !important;
  border-bottom-right-radius: 10px !important;
  color: #0f172a !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}

.client-layout-shell .client-side-nav-links a.client-side-link.active .client-side-icon,
.client-layout-shell .client-side-bottom-links a.client-side-link.active .client-side-icon {
  color: #475569 !important;
}

.client-layout-shell.client-layout-shell-collapsed .client-side-nav {
  padding-right: 0 !important;
  overflow-x: hidden !important;
}

.client-layout-shell.client-layout-shell-collapsed .client-side-nav-links,
.client-layout-shell.client-layout-shell-collapsed .client-side-bottom-links {
  align-items: center !important;
  width: 100% !important;
}

.client-layout-shell.client-layout-shell-collapsed .client-side-nav-links a.client-side-link,
.client-layout-shell.client-layout-shell-collapsed .client-side-nav-links a.client-side-link:link,
.client-layout-shell.client-layout-shell-collapsed .client-side-nav-links a.client-side-link:visited,
.client-layout-shell.client-layout-shell-collapsed .client-side-nav-links a.client-side-link:focus,
.client-layout-shell.client-layout-shell-collapsed .client-side-nav-links a.client-side-link:active,
.client-layout-shell.client-layout-shell-collapsed .client-side-bottom-links a.client-side-link,
.client-layout-shell.client-layout-shell-collapsed .client-side-bottom-links a.client-side-link:link,
.client-layout-shell.client-layout-shell-collapsed .client-side-bottom-links a.client-side-link:visited,
.client-layout-shell.client-layout-shell-collapsed .client-side-bottom-links a.client-side-link:focus,
.client-layout-shell.client-layout-shell-collapsed .client-side-bottom-links a.client-side-link:active {
  justify-content: center !important;
  gap: 0 !important;
  width: 64px !important;
  min-height: 56px !important;
  padding: 0 !important;
  border-radius: 14px !important;
}

.client-layout-shell.client-layout-shell-collapsed .client-side-nav-links a.client-side-link .client-side-link-label,
.client-layout-shell.client-layout-shell-collapsed .client-side-bottom-links a.client-side-link .client-side-link-label,
.client-layout-shell.client-layout-shell-collapsed .client-side-toggle-text,
.client-layout-shell.client-layout-shell-collapsed .client-side-section-label span {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  white-space: nowrap !important;
}

/* Global client breadcrumb override so shell links keep the design system style. */
.client-layout-shell .client-breadcrumb,
.client-layout-shell .client-breadcrumb ol,
.client-layout-shell .client-breadcrumb li {
  font-weight: 700 !important;
}

.client-layout-shell .client-breadcrumb a.client-breadcrumb-link,
.client-layout-shell .client-breadcrumb a.client-breadcrumb-link:link,
.client-layout-shell .client-breadcrumb a.client-breadcrumb-link:visited,
.client-layout-shell .client-breadcrumb a.client-breadcrumb-link:focus,
.client-layout-shell .client-breadcrumb a.client-breadcrumb-link:active {
  color: var(--av-primary, #932782) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.client-layout-shell .client-breadcrumb a.client-breadcrumb-link:hover,
.client-layout-shell .client-breadcrumb a.client-breadcrumb-link:focus-visible {
  color: var(--av-primary-hover, #7a2069) !important;
  text-decoration: none !important;
}

.client-layout-shell .client-breadcrumb .client-breadcrumb-current {
  font-weight: 700 !important;
  text-decoration: none !important;
}

@media (min-width: 1400px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: 1520px;
  }
}
