/* Portal compatibility for WebForms markup predating Bootstrap 5.
   Keep framework CSS unmodified; retire these rules as the corresponding
   server controls/pages are migrated. No Bootstrap 3 JavaScript is required. */

/* Preserve the existing portal's rem scale while changing framework versions. */
html { font-size: 62.5%; }

.panel {
    margin-bottom: 20px;
    background-color: #fff;
    border: 1px solid transparent;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
}
.panel-heading {
    padding: 10px 15px;
    border-bottom: 1px solid transparent;
    border-radius: 3px 3px 0 0;
}
.panel-body { padding: 15px; }
.panel-body::after { display: table; clear: both; content: ""; }
.panel-default { border-color: #ddd; }
.panel-default > .panel-heading {
    color: #333;
    background-color: #f5f5f5;
    border-color: #ddd;
}
.panel-primary { border-color: #012169; }
.panel-primary > .panel-heading {
    color: #fff;
    background-color: #012169;
    border-color: #012169;
}

.form-group { margin-bottom: 15px; }
.form-horizontal .form-group {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}
.form-horizontal .form-group > [class*="col-"] {
    padding-right: 15px;
    padding-left: 15px;
}
.form-horizontal .control-label { padding-top: 7px; margin-bottom: 0; }
.form-row { display: flex; flex-wrap: wrap; }
.form-row > [class*="col-"] { padding-right: 15px; padding-left: 15px; }
.checkbox { min-height: 20px; margin-top: 10px; margin-bottom: 10px; }
.checkbox label { font-weight: normal; }
.input-group-btn { display: flex; align-items: stretch; }
.input-group-btn > .btn { border-radius: 0 4px 4px 0; }
.btn-default {
    --bs-btn-color: #333;
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #ccc;
    --bs-btn-hover-color: #333;
    --bs-btn-hover-bg: #ebebeb;
    --bs-btn-hover-border-color: #adadad;
}
.pull-left { float: left !important; }
.pull-right { float: right !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.img-responsive { display: block; max-width: 100%; height: auto; }

/* Existing authenticated navigation uses a wrapping horizontal link list. */
.navbar-inverse { min-height: 50px; margin-bottom: 20px; }
.navbar-inverse > .container { display: block; }
.navbar-inverse .navbar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0;
}
.navbar-inverse .navbar-nav > li > a {
    display: block;
    padding: 15px;
    text-decoration: none;
}
.portal-brand { min-width: 0; }
.portal-brand img { display: block; max-width: 100%; height: auto; }
.portal-account-nav {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 0 15px;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .col-md-offset-2 { margin-left: 16.66666667%; }
    .form-horizontal .control-label { text-align: right; }
}
@media (max-width: 767.98px) {
    .col-xs-5 { flex: 0 0 auto; width: 41.66666667%; }
    .col-xs-7 { flex: 0 0 auto; width: 58.33333333%; }
}

/* One existing date control still uses the locally shipped calendar glyph. */
@font-face {
    font-family: "Glyphicons Halflings";
    src: url("../fonts/glyphicons-halflings-regular.woff") format("woff");
    font-display: block;
}
.glyphicon {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: "Glyphicons Halflings";
    font-style: normal;
    font-weight: normal;
    line-height: 1;
}
.glyphicon-calendar::before { content: "\e109"; }
