/* Transitional aliases for existing EDM/module markup, not a Bootstrap dependency.
   New pages should use Radzen components and rz-* utilities. */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #212529;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    background-color: white;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3, .h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p, ul, ol, dl, pre {
    margin-top: 0;
    margin-bottom: 1rem;
}

ul ul, ul ol, ol ul, ol ol { margin-bottom: 0; }
b, strong { font-weight: bolder; }
small, .small { font-size: 0.875em; }
label { display: inline-block; margin-bottom: 0.5rem; }
img, svg { vertical-align: middle; }
table { border-collapse: collapse; }
th { text-align: inherit; }

button, input, select, textarea, optgroup {
    margin: 0;
    font: inherit;
}

button, select { text-transform: none; }
textarea { resize: vertical; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { width: 100%; margin-bottom: 0.5rem; font-size: 1.5rem; }
hr { margin: 1rem 0; border: 0; border-top: 1px solid #d5d9de; }
pre, code, kbd, samp { font-family: Consolas, monospace; }
pre { overflow: auto; }
code { font-size: 0.875em; color: #a31565; overflow-wrap: break-word; }
a { color: #005e90; }
[hidden] { display: none !important; }

/* The old grid uses 15px gutters, with narrower gutters for form rows. */
.row, .form-row {
    --edm-column-gutter: 15px;
    display: flex;
    flex-wrap: wrap;
    margin-right: calc(-1 * var(--edm-column-gutter));
    margin-left: calc(-1 * var(--edm-column-gutter));
}

.form-row { --edm-column-gutter: 5px; }

:where(.col, [class^="col-"], [class*=" col-"]) {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-right: var(--edm-column-gutter, 15px);
    padding-left: var(--edm-column-gutter, 15px);
}

.col { flex: 1 0 0%; }
.col-1 { flex-basis: 8.333333%; max-width: 8.333333%; }
.col-2 { flex-basis: 16.666667%; max-width: 16.666667%; }
.col-3 { flex-basis: 25%; max-width: 25%; }
.col-4 { flex-basis: 33.333333%; max-width: 33.333333%; }
.col-6 { flex-basis: 50%; max-width: 50%; }
.col-7 { flex-basis: 58.333333%; max-width: 58.333333%; }
.col-8 { flex-basis: 66.666667%; max-width: 66.666667%; }
.col-12 { flex-basis: 100%; max-width: 100%; }

.container, .container-fluid {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

.form-group { margin-bottom: 1rem; }

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-wrap: break-word;
    background-color: white;
    border: 1px solid #d5d9de;
    border-radius: 0.25rem;
}

.card-header, .card-footer { padding: 0.75rem 1.25rem; background-color: #f7f7f7; }
.card-header { border-bottom: 1px solid #d5d9de; border-radius: 0.25rem 0.25rem 0 0; }
.card-body { flex: 1 1 auto; min-height: 1px; padding: 1.25rem; }
.card-footer { border-top: 1px solid #d5d9de; border-radius: 0 0 0.25rem 0.25rem; }

.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid;
    border-radius: 0.25rem;
}

.alert-primary { color: #173c70; background-color: #e4efff; border-color: #9ebce5; }
.alert-secondary { color: #41474c; background-color: #eef0f2; border-color: #c4c9ce; }
.alert-info { color: #174e65; background-color: #e3f3fa; border-color: #94c6da; }
.alert-warning { color: #674b00; background-color: #fff3cd; border-color: #e4c56a; }
.alert-danger { color: #7b2330; background-color: #fbe7ea; border-color: #e1a3ad; }

/* Only native legacy buttons get these rules; Radzen buttons keep their own theme. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    background-color: transparent;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
}

.btn.btn-primary { color: white; background-color: #005e90; border-color: #005e90; }
.btn.btn-secondary { color: white; background-color: #586574; border-color: #586574; }
.btn.btn-outline-secondary { color: #475361; background-color: transparent; border-color: #586574; }
.btn.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.875rem; }
.btn:hover { filter: brightness(0.9); text-decoration: none; }
.btn:focus-visible { outline: 2px solid #005e90; outline-offset: 3px; }
.btn:disabled, .btn.disabled { opacity: 0.65; pointer-events: none; }

.badge {
    display: inline-block;
    padding: 0.25em 0.5em;
    border-radius: 0.25rem;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    vertical-align: baseline;
}

.badge-primary { color: white; background-color: #005e90; }
.badge-danger { color: white; background-color: #b32132; }
.badge-success { color: white; background-color: #24733b; }

.d-flex { display: flex !important; }
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-fill { flex: 1 1 auto !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.align-items-center { align-items: center !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.gap-2 { gap: 0.5rem !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.text-right { text-align: right !important; }
.text-muted { color: #5c6570 !important; }
.text-danger { color: #b32132 !important; }
.text-nowrap { white-space: nowrap !important; }
.font-weight-bold { font-weight: 700 !important; }
.link-dark { color: #212529 !important; }
.bg-white { background-color: white !important; }
.border { border: 1px solid #d5d9de !important; }
.border-2 { border-width: 2px !important; }
.border-black { border-color: black !important; }
.border-primary { border-color: #005e90 !important; }
.shadow-sm { box-shadow: 0 2px 4px #00000014 !important; }

.m-1 { margin: 0.25rem !important; }
.my-1 { margin-top: 0.25rem !important; margin-bottom: 0.25rem !important; }
.mx-auto { margin-right: auto !important; margin-left: auto !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mr-1 { margin-right: 0.25rem !important; }
.ms-1 { margin-inline-start: 0.25rem !important; }
.me-2 { margin-inline-end: 0.5rem !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pl-4 { padding-left: 1.5rem !important; }
.ps-3 { padding-inline-start: 1rem !important; }
.px-3 { padding-right: 1rem !important; padding-left: 1rem !important; }
.px-4 { padding-right: 1.5rem !important; padding-left: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.p-4 { padding: 1.5rem !important; }

.nav { display: flex; flex-wrap: wrap; margin: 0; padding-left: 0; list-style: none; }
.nav-link { display: block; padding: 0.5rem 1rem; text-decoration: none; }
.navbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 0.5rem 1rem; }
.navbar > .container-fluid { display: flex; flex-wrap: inherit; align-items: center; justify-content: space-between; }
.navbar-brand { margin-right: 1rem; padding: 0.3125rem 0; font-size: 1.25rem; text-decoration: none; }
.navbar-dark .navbar-brand { color: white; }
.navbar-toggler { padding: 0.25rem 0.75rem; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 0.25rem; }
.navbar-toggler-icon { display: inline-block; width: 1.5em; height: 1.5em; vertical-align: middle; background: linear-gradient(currentColor, currentColor) center 25% / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center 75% / 100% 2px no-repeat; }
.collapse:not(.show) { display: none; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (min-width: 576px) {
    .container { max-width: 540px; }
    .col-sm-6 { flex-basis: 50%; max-width: 50%; }
    .col-sm-12 { flex-basis: 100%; max-width: 100%; }
    .offset-sm-3 { margin-left: 25%; }
}

@media (min-width: 768px) {
    .container { max-width: 720px; }
    .col-md-1 { flex-basis: 8.333333%; max-width: 8.333333%; }
    .col-md-2 { flex-basis: 16.666667%; max-width: 16.666667%; }
    .col-md-3 { flex-basis: 25%; max-width: 25%; }
    .col-md-4 { flex-basis: 33.333333%; max-width: 33.333333%; }
    .col-md-5 { flex-basis: 41.666667%; max-width: 41.666667%; }
    .col-md-6 { flex-basis: 50%; max-width: 50%; }
    .col-md-7 { flex-basis: 58.333333%; max-width: 58.333333%; }
    .col-md-8 { flex-basis: 66.666667%; max-width: 66.666667%; }
    .col-md-9 { flex-basis: 75%; max-width: 75%; }
    .col-md-10 { flex-basis: 83.333333%; max-width: 83.333333%; }
    .col-md-11 { flex-basis: 91.666667%; max-width: 91.666667%; }
    .col-md-12 { flex-basis: 100%; max-width: 100%; }
    .text-md-left { text-align: left !important; }
    .text-md-right { text-align: right !important; }
    .text-md-center { text-align: center !important; }
    .p-md-5 { padding: 3rem !important; }
}

@media (min-width: 992px) {
    .container { max-width: 960px; }
}

@media (min-width: 1200px) {
    .container { max-width: 1140px; }
    .col-xl-5 { flex-basis: 41.666667%; max-width: 41.666667%; }
}
