/* Transitional styles for pages moving from Bootstrap 3 to Bootstrap 5.3.8. */
html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    padding-top: 0;
    font-size: 12px;
}

.portal-container {
    width: 80%;
    max-width: none;
}

.portal-wrapper {
    min-height: calc(100vh - 100px);
}

.portal-current-menu {
    min-height: 30px;
    padding: 0 0 0 10px;
    margin: 0;
    line-height: 30px;
    color: #fff;
    background: #808080;
    border-radius: .25rem;
}

.portal-navbar {
    padding-top: 5px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e7e7e7;
}

.portal-navbar .portal-container {
    width: 100%;
}

.portal-navbar .navbar-brand {
    padding: 0 10px 0 0;
}

.portal-navbar .nav-link,
#mainmenu .dropdown-item {
    color: #004f99;
}

.portal-navbar .navbar-toggler-icon {
    width: 1.25em;
    height: 1.25em;
}

@media (min-width: 768px) {
    .portal-navbar.navbar-expand-md,
    .portal-navbar.navbar-expand-md > .portal-container,
    .portal-navbar.navbar-expand-md .navbar-collapse,
    .portal-navbar.navbar-expand-md .navbar-nav {
        flex-wrap: wrap;
    }

    .portal-navbar.navbar-expand-md .navbar-collapse {
        min-width: 0;
    }

    .portal-navbar.navbar-expand-md .navbar-collapse > .navbar-nav:first-child {
        flex: 1 1 0;
        min-width: 0;
    }
}

.portal-footer {
    min-height: 30px;
}

.modal-header {
    padding: 9px 15px;
    color: #fff;
    background-color: #0086b3;
    border-bottom: 1px solid #eee;
}

.modal-dialog.portal-modal-sm {
    max-width: 400px;
}

.modal-dialog.portal-progress-modal {
    max-width: 200px;
}

#message_modal_body {
    white-space: pre-line;
}

.form-group.required .control-label::after {
    color: red;
    content: " *";
}

.list_table th,
.modal_list_table th,
.hist_table th {
    text-align: center;
}

.list_table td,
.modal_list_table td,
.hist_table td {
    text-align: center;
}

.hist_table th,
.search_list_table th {
    color: #fff;
    background-color: #004f99;
}

.hist_table td,
.search_list_table td {
    border: 1px solid #e5e6e7;
}

.left { text-align: left !important; }
.center { text-align: center !important; }
.right { text-align: right !important; }
.red, .no_email { color: #ff1616; }
.sent_email { color: green; }

/* Narrow compatibility layer. Remove each rule as migrated pages stop using it. */
.well {
    min-height: 20px;
    padding: 19px;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
}

.well-sm { padding: 9px; }
.btn-default { color: #333; background-color: #fff; border-color: #ccc; }
.pull-left { float: left !important; }
.pull-right { float: right !important; }
.control-label { margin-bottom: 5px; font-weight: 700; }
.help-block { display: block; margin: 5px 0 10px; color: #737373; }
.input-group-addon {
    display: table-cell;
    width: 1%;
    padding: 6px 12px;
    color: #555;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    background-color: #eee;
    border: 1px solid #ccc;
}

.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6,
.col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {
    position: relative;
    float: left;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

.col-xs-1 { width: 8.33333333%; }
.col-xs-2 { width: 16.66666667%; }
.col-xs-3 { width: 25%; }
.col-xs-4 { width: 33.33333333%; }
.col-xs-5 { width: 41.66666667%; }
.col-xs-6 { width: 50%; }
.col-xs-7 { width: 58.33333333%; }
.col-xs-8 { width: 66.66666667%; }
.col-xs-9 { width: 75%; }
.col-xs-10 { width: 83.33333333%; }
.col-xs-11 { width: 91.66666667%; }
.col-xs-12 { width: 100%; }

@media (max-width: 767.98px) {
    body,
    .btn {
        font-size: 10px;
    }

    .portal-container {
        width: 95%;
    }
}
