body {
    font-family: "Montserrat", sans-serif, "Open Sans";
    font-size: 16px;
    background-color: rgb(237, 237, 237);
    color: #333;
}

html,
body,
#root,
#app,
.container {
    height: 100%;
}

#app-content {
    padding-top: 85px;
    min-height: calc(100% - 383px);
    overflow-y: auto;
    overflow-x: hidden;
}

h1 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 34px;
    font-weight: bold;
    line-height: 1.5;
    color: #4a4a4a;
}

h4 {
    font-size: 22px;
    font-weight: bold;
    line-height: 1.5;
    color: #4a4a4a;
}

h5 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #4a4a4a;
}

h6 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: #4a4a4a;
}

p {
    font-size: 16px;
    line-height: 1.38;
    color: #4a4a4a;
}

hr {
   border-color: rgba(0,0,0,.1);
}
.searchPanel h5 {
    padding-top: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
    color: navy;
}

.display.inline-block {
    display: inline-block;
}

.margin-right.half-em {
    margin-right: 0.5em;
}

.margin-left.half-em {
    margin-left: 0.5em;
}

a.freshwidget-theme {
    display: none;
}

li.cc-mobile-get-help {
    display: block;
}

.cc-hide-on-mobile {
    display: none;
}

.semi-bold {
    font-weight: 600;
}

.open-sans-14px {
    font-family: "Open Sans";
    font-size: 14px;
}

.open-sans-12px {
    font-family: "Open Sans";
    font-size: 12px;
}

.color.red {
    color: #d83d2d;
}

div.display.inline-block {
    display: inline-block;
}

i.vertical-align.text-top {
    vertical-align: text-top;
}

h6.list-group-item-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 10em;
}

li.list-group-item.cc-panel-item {
    border: 1px solid #dadada;
    border-left: 0;
    border-right: 0;
    padding-left: 15px;
}

div.panel-heading + li.list-group-item.cc-panel-item {
    border-top: 0;
}

li.list-group-item.cc-panel-item:last-child {
    margin-bottom: -1px;
}

.card {
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2);
}

.cc-lms-frontend_foundations-greenanchor:hover {
    color: green;
}

.cc-loading span {
    animation: blink 1s infinite both;
}

    .cc-loading span:nth-child(2) {
        animation-delay: 0.2s;
    }

    .cc-loading span:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes blink {
    0% {
        opacity: 0.2;
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}

@media (min-width: 414px) {
    h6.list-group-item-text {
        max-width: 14em;
    }
}

@media (min-width: 768px) {
    a.freshwidget-theme {
        display: block;
    }

    li.cc-mobile-get-help {
        display: none;
    }

    .cc-hide-on-mobile {
        display: inherit;
    }

    h6.list-group-item-text {
        max-width: 23em;
    }
}

@media (min-width: 992px) {
    .cc-or-divider {
        /* 37px = height of h5 with margin bottom
          * 86px = height of an input control with margin bottom */
        margin-top: calc(37px + 86px);
    }

    .cc-center-sm {
        text-align: left;
    }
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.card > .card-header {
    background-color: #f8f8f8;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #4a4a4a;
}

.cc-dashboard {
    margin-bottom: 1.5em;
}

a {
    color: #d83d2d;
    cursor: pointer;
}

/* Links styled as buttons (a.btn, and a.button: the site's outlined button look) keep their button colour and weight; :where() adds no specificity, so this rule outranks exactly what it did before. */
div.card a:where(:not(.btn, .button)), div.modal a:where(:not(.btn, .button)) {
    color: #4a4a4a;
    font-weight: 300;
}

div a.forgot-password {
    color: #d83d2d;
    cursor: pointer;
}

.cc-dashboard a {
    color: #9b9b9b;
    cursor: pointer;
}

.active a {
    color: #4a4a4a;
    font-weight: bold;
}

.muted-text, a.muted-text {
  color: #4a4a4a;
  font-size: 100%;
}

.cc-panel-item {
    padding-left: 15px;
}

div.card a:hover {
    text-decoration: none;
}

div.card h6 {
    display: inline-block;
    margin: 0px 0.5em 0px 0px;
}

p.sub-title {
    font-size: 12px;
}

.cc-btn-sign-in {
    background-color: #d83d2d;
    border-color: #d83d2d;
    border-radius: 2px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    height: 50px;
    line-height: 1;
    letter-spacing: 0.5px;
    min-width: 180px;
    text-align: center;
}

.cc-btn-trash {
    background-color: #428bca;
    border-color: #428bca;
    border-radius: 2px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    height: 25px;
    line-height: 1;
    letter-spacing: 0.5px;
    min-width: 40px;
    text-align: center;
}

    .cc-btn-trash:hover,
    .cc-btn-trash:focus,
    .cc-btn-trash:active {
        background-color: #428bca;
        border-color: #428bca;
        color: #ffffff;
    }

.cc-btn-sign-in:hover,
.cc-btn-sign-in:focus,
.cc-btn-sign-in:active {
    background-color: #ce3323;
    border-color: #ce3323;
    color: #ffffff;
}

.cc-btn {
    border-radius: 2px;
    font-size: 14px;
    height: 50px;
    line-height: 1;
    letter-spacing: 0.5px;
    text-align: center;
    width: 100%;
}

.cc-btn-facebook {
    background-color: #3b5998;
    border-color: #3b5998;
    color: #ffffff;
}

    .cc-btn-facebook:hover,
    .cc-btn-facebook:focus,
    .cc-btn-facebook:active {
        background-color: #22407f;
        border-color: #22407f;
        color: #ffffff;
    }

.cc-btn-google {
    background-color: #dd4b39;
    border-color: #dd4b39;
    color: #ffffff;
}

    .cc-btn-google:hover,
    .cc-btn-google:focus,
    .cc-btn-google:active {
        background-color: #c43220;
        border-color: #c43220;
        color: #ffffff;
    }

.cc-btn-microsoft {
    background-color: #094ab2;
    border-color: #094ab2;
    color: #ffffff;
}

    .cc-btn-microsoft:hover,
    .cc-btn-microsoft:focus,
    .cc-btn-microsoft:active {
        background-color: #003199;
        border-color: #003199;
        color: #ffffff;
    }

.cc-button-inline {
    display: inline;
}

.cc-group-addon {
    height: 20px;
    font-size: 16px;
    border: solid 1px #cccccc;
    border-radius: 2px;
    top: 0px;
}

.cc-form-control {
    background-color: #ffffff;
    border: solid 1px #cccccc;
    border-radius: 2px;
    font-size: 16px;
    height: 44px;
}

button,
.button {
    display: block;
    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    border: solid 1px #5179a2;
    border-radius: 2px;
    color: #5179a2;
    background-color: white;
}

.cc-checkbox {
    width: 24px;
    position: relative;
}

.cc-checkbox-trigger {
    color: #333;
    cursor: pointer;
}

/* The site's toggle (role, claim and client-setting checkboxes): unchecked is an empty white box
   with a gray edge (#6c757d: 4.7:1 against the white cards, WCAG non-text contrast), checked the
   filled brand-blue box with the white tick -- a filled blue box without the tick would read as
   "on". The edge is an inset box-shadow, so no box moves. The real checkbox stays in the tab order
   (opacity 0, under the label; visibility: hidden would take it out of the keyboard's reach) and
   shows a focus ring on the box when focused by keyboard. */
.cc-checkbox label {
    width: 24px;
    height: 24px;
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    background: #fff;
    border-radius: 2px;
    box-shadow: inset 0 0 0 2px #6c757d;
}

    .cc-checkbox input[type="checkbox"]:checked + label {
        background: #3498db;
        box-shadow: none;
    }

    /* The focus ring: a white gap, then #0069d9 (5.2:1 against white), so it reads next to the blue box too. */
    .cc-checkbox input[type="checkbox"]:focus-visible + label {
        box-shadow: inset 0 0 0 2px #6c757d, 0 0 0 2px #fff, 0 0 0 4px #0069d9;
    }

    .cc-checkbox input[type="checkbox"]:checked:focus-visible + label {
        box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0069d9;
    }

    .cc-checkbox label[disabled],
    .cc-checkbox input[type="checkbox"]:disabled + label {
        cursor: default;
        background: #e9ecef;
        box-shadow: inset 0 0 0 2px #adb5bd;
    }

    .cc-checkbox label[disabled]:after,
    .cc-checkbox input[type="checkbox"]:disabled + label:after {
        border-color: #6c757d;
    }

    .cc-checkbox label:after {
        content: "";
        width: 9px;
        height: 5px;
        position: absolute;
        top: 9px;
        left: 8px;
        border: 3px solid #fff;
        border-top: none;
        border-right: none;
        background: transparent;
        opacity: 0;
        -webkit-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }

    .cc-checkbox label:hover::after {
        opacity: 0.5;
    }

    .cc-checkbox input[type="checkbox"]:not(:checked) + label:hover::after {
        border-color: #3498db;
    }

.cc-checkbox input[type="checkbox"] {
    opacity: 0;
}

    .cc-checkbox input[type="checkbox"]:checked + label:after {
        opacity: 1;
    }

.error-top-buffer {
    padding-top: 36px;
}

.cc-tos {
    text-align: center;
    padding-top: 30px;
}

.btn-danger {
    background-color: #c84e4b;
}

div.site-card {
   margin-bottom: 20px;
   box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2);
}

.cursor-pointer {
   cursor: pointer;
}

.superscript {
    vertical-align: super;
}

/* ------------------------------------------------------------------------------------------------
   Bootstrap 5 compatibility (docs/HTMX-MIGRATION.md). Bootstrap 5.3 changed
   defaults this site's markup was laid out against; each rule below restores the Bootstrap 4.6
   value it names, so the upgrade does not restyle the admin screens. Delete a rule to accept
   Bootstrap 5's default instead. (The white-label pages have their own block in base.css.)
   ------------------------------------------------------------------------------------------------ */

/* Palette: BS4's primary #007bff, success #28a745, link and code colours (BS5: #0d6efd, #198754,
   #0d6efd, #d63384). Feeds .text-primary, .text-success, .btn-link and <code>. */
:root {
    --bs-primary: #007bff;
    --bs-primary-rgb: 0, 123, 255;
    --bs-success: #28a745;
    --bs-success-rgb: 40, 167, 69;
    --bs-link-color: #007bff;
    --bs-link-color-rgb: 0, 123, 255;
    --bs-link-hover-color: #0056b3;
    --bs-link-hover-color-rgb: 0, 86, 179;
    --bs-code-color: #e83e8c;
}

/* Radii: BS4 used .25rem / .2rem / .3rem (BS5: .375rem / .25rem / .5rem). */
:root {
    --bs-border-radius: .25rem;
    --bs-border-radius-sm: .2rem;
    --bs-border-radius-lg: .3rem;
}

/* Grid: BS4's 30px gutters and 15px container padding (BS5: 1.5rem gutters). */
.container,
.container-fluid,
.row {
    --bs-gutter-x: 30px;
}

/* Grid columns outside a .row (Clients/_ClientPolicyDocumentList, _LtiPlatformSelect, _ClientToSCard,
   _ClientTokenClaimChoices): BS4 padded every column 15px; BS5 pads only a .row's children. */
:not(.row) > .col-9,
:not(.row) > .col-md-7,
:not(.row) > .col-sm-1 {
    padding-right: 15px;
    padding-left: 15px;
}

/* Bare checkboxes placed straight in a .row (Lti/_ToolConfigurationCard): BS5 stretches every
   child of a .row to full width; BS4 left them at their own size. */
.row > input[type="checkbox"] {
    flex-shrink: 1;
    width: auto;
    max-width: none;
}

/* Text colour: BS4's cards, modals and list-group rows inherited the page's #333 (body, above);
   BS5 paints them in its own #212529. */
.card,
.modal-content,
.list-group-item {
    color: inherit;
}

/* Links: BS4 underlined a link only on hover (BS5's Reboot underlines every link). */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.btn:hover,
.nav-link:hover,
.dropdown-item:hover {
    text-decoration: none;
}

.btn-link {
    text-decoration: none;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Buttons: the site's button font (the button rule above). BS5's .btn sets a font-family of its
   own (the inherited body font), which outranks that element rule. Icon buttons keep FontAwesome. */
button.btn:not(.fa) {
    font-family: "Open Sans", sans-serif;
}

/* Labels: BS4's Reboot gave every label a .5rem bottom margin (BS5 gives it to .form-label only). */
label {
    margin-bottom: .5rem;
}

.form-check-label {
    margin-bottom: 0;
}

/* Headings: BS4's fixed h2/h3 sizes (BS5 scales them down below 1200px). h1, h4-h6 are set above. */
h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

/* Small text: BS4's 80% <small> and block-level .form-text (BS5: .875em, and .form-text inline). */
small,
.small:not(.form-control) {
    font-size: 80%;
}

.form-text {
    display: block;
    font-size: 80%;
}

/* Lists: the browser's 40px list indent (BS5's Reboot sets 2rem). */
ol,
ul {
    padding-left: 40px;
}

/* Rules: BS4 drew hr at full strength in the colour set above (BS5 fades it to 25%). */
hr {
    opacity: 1;
}

/* Muted text: BS4's #6c757d (BS5 derives a translucent body colour). */
.text-muted {
    color: #6c757d !important;
}

/* Cards: BS4's 1.25rem body padding, .75rem 1.25rem header padding and border colour. */
.card {
    --bs-card-spacer-y: 1.25rem;
    --bs-card-spacer-x: 1.25rem;
    --bs-card-title-spacer-y: .75rem;
    --bs-card-cap-padding-y: .75rem;
    --bs-card-cap-padding-x: 1.25rem;
    --bs-card-border-color: rgba(0, 0, 0, .125);
    --bs-card-cap-bg: rgba(0, 0, 0, .03);
}

/* List-group items: the cards place .list-group-item rows without a .list-group parent, and BS5
   defines the item variables on .list-group only, so those rows lost their padding, border and
   background. Define them where the rows are, with BS4's .75rem 1.25rem padding and border. */
.list-group,
.list-group-item {
    --bs-list-group-bg: #fff;
    --bs-list-group-border-color: rgba(0, 0, 0, .125);
    --bs-list-group-border-width: 1px;
    --bs-list-group-border-radius: .25rem;
    --bs-list-group-item-padding-x: 1.25rem;
    --bs-list-group-item-padding-y: .75rem;
}

/* Navbar: BS4's 1rem side padding, its navbar-light link colours and toggler icon (BS5 has no
   navbar padding without a container, darker link colours and a darker icon). */
.navbar {
    --bs-navbar-padding-x: 1rem;
    --bs-navbar-color: rgba(0, 0, 0, .5);
    --bs-navbar-hover-color: rgba(0, 0, 0, .7);
    --bs-navbar-active-color: rgba(0, 0, 0, .9);
    --bs-navbar-brand-color: rgba(0, 0, 0, .9);
    --bs-navbar-brand-hover-color: rgba(0, 0, 0, .9);
    --bs-navbar-toggler-border-color: rgba(0, 0, 0, .1);
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Navbar toggler: no focus ring after a mouse click (BS4 had none; BS5 rings it on every :focus).
   Keyboard focus keeps BS5's ring. */
.navbar-toggler:focus:not(:focus-visible) {
    box-shadow: none;
}

/* Modals: BS4's rgba(0, 0, 0, .2) dialog border (BS5: .175). */
.modal {
    --bs-modal-border-color: rgba(0, 0, 0, .2);
}

/* Modal headers: BS4 top-aligned the title and the close button (BS5 centres them). */
.modal-header {
    align-items: flex-start;
    justify-content: space-between;
}

/* Dropdowns: BS4's 1.5rem item padding and border colour. */
.dropdown-menu {
    --bs-dropdown-item-padding-x: 1.5rem;
    --bs-dropdown-border-color: rgba(0, 0, 0, .15);
}

/* Alerts: BS4's .75rem 1.25rem padding and its success / warning / danger colours. */
.alert {
    --bs-alert-padding-x: 1.25rem;
    --bs-alert-padding-y: .75rem;
}

.alert-success {
    --bs-alert-color: #155724;
    --bs-alert-bg: #d4edda;
    --bs-alert-border-color: #c3e6cb;
}

.alert-warning {
    --bs-alert-color: #856404;
    --bs-alert-bg: #fff3cd;
    --bs-alert-border-color: #ffeeba;
}

.alert-danger {
    --bs-alert-color: #721c24;
    --bs-alert-bg: #f8d7da;
    --bs-alert-border-color: #f5c6cb;
}

/* Dismissible alerts: the site's banners were laid out with their close button floating at the end
   of the text with no extra right padding. Keep that (BS5's alert-dismissible reserves 3rem and pins
   the button to the corner). */
.alert-dismissible {
    padding-right: var(--bs-alert-padding-x);
}

.alert-dismissible .btn-close {
    position: static;
    float: right;
    padding: .25em;
}

/* Popovers: BS4's .5rem .75rem header and body padding, #f7f7f7 header and .2 border (BS5: 1rem
   padding, a grey #e9ecef header, .175 border and arrow). BS4's arrow edge was .25. */
.popover {
    --bs-popover-border-color: rgba(0, 0, 0, .2);
    --bs-popover-arrow-border: rgba(0, 0, 0, .25);
    --bs-popover-header-padding-x: .75rem;
    --bs-popover-header-bg: #f7f7f7;
    --bs-popover-body-padding-x: .75rem;
    --bs-popover-body-padding-y: .5rem;
}

.popover-header {
    border-bottom-color: #ebebeb;
}

/* Badges: BS4's size and padding, and its dark text on the warning badge (BS5: black). */
.badge {
    --bs-badge-padding-x: .4em;
    --bs-badge-padding-y: .25em;
    --bs-badge-font-size: 75%;
}

.text-bg-warning {
    color: #212529 !important;
}

/* Form controls: BS4's #495057 text, #ced4da border and #80bdff / .2rem focus ring (BS5: #212529,
   #dee2e6, #86b7fe / .25rem), and BS4's grey read-only fields (BS5 greys only disabled ones).
   BS4 also fixed a single-line field's height (BS5 lets it size to its content, which paints a
   taller text selection) and greyed placeholders #6c757d. */
.form-control,
.form-select {
    --bs-border-color: #ced4da;
    color: #495057;
}

.form-control {
    height: calc(1.5em + .75rem + 2px);
}

textarea.form-control {
    height: auto;
}

.form-control::placeholder {
    color: #6c757d;
}

.form-control:focus,
.form-select:focus {
    color: #495057;
    border-color: #80bdff;
    box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .25);
}

/* Date and search fields: the browser's own date-field spacing and blue search-clear glyph (BS5's
   Reboot zeroes the date-field padding and greys the clear glyph). */
::-webkit-datetime-edit-fields-wrapper,
::-webkit-datetime-edit-text,
::-webkit-datetime-edit-minute,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-year-field {
    padding: revert;
}

.form-control::-webkit-date-and-time-value {
    min-width: revert;
    height: revert;
    margin: revert;
}

.form-control::-webkit-datetime-edit {
    display: revert;
    padding: revert;
}

[type="search"]::-webkit-search-cancel-button {
    filter: none;
}

.form-control[readonly] {
    background-color: #e9ecef;
}

/* Selects: BS4 left <select class="form-control"> to the browser's own drop-down (BS5's
   .form-select draws its own chevron). */
.form-select {
    appearance: auto;
    background-image: none;
    padding-right: .75rem;
    height: calc(1.5em + .75rem + 2px);
}

.form-select[multiple],
.form-select[size]:not([size="1"]) {
    height: auto;
}

/* Checkboxes: BS4 left .form-check-input to the browser's own checkbox, absolutely placed in a
   1.25rem gutter (BS5 draws its own 1em box, floated in a 1.5em gutter). */
.form-check {
    position: relative;
    min-height: 0;
    padding-left: 1.25rem;
}

.form-check .form-check-input {
    position: absolute;
    float: none;
    width: auto;
    height: auto;
    margin-top: .3rem;
    margin-left: -1.25rem;
    vertical-align: baseline;
    appearance: auto;
    background: none;
    border: 0;
    border-radius: 0;
}

.form-check .form-check-input:focus {
    box-shadow: none;
    outline: revert;
}

/* Buttons: BS4's #007bff primary, #28a745 success and its secondary / danger / light states
   (BS5: #0d6efd, #198754 and slightly different hover and active shades). */
.btn-primary {
    --bs-btn-bg: #007bff;
    --bs-btn-border-color: #007bff;
    --bs-btn-hover-bg: #0069d9;
    --bs-btn-hover-border-color: #0062cc;
    --bs-btn-active-bg: #0062cc;
    --bs-btn-active-border-color: #005cbf;
    --bs-btn-disabled-bg: #007bff;
    --bs-btn-disabled-border-color: #007bff;
    --bs-btn-focus-shadow-rgb: 38, 143, 255;
}

.btn-success {
    --bs-btn-bg: #28a745;
    --bs-btn-border-color: #28a745;
    --bs-btn-hover-bg: #218838;
    --bs-btn-hover-border-color: #1e7e34;
    --bs-btn-active-bg: #1e7e34;
    --bs-btn-active-border-color: #1c7430;
    --bs-btn-disabled-bg: #28a745;
    --bs-btn-disabled-border-color: #28a745;
    --bs-btn-focus-shadow-rgb: 72, 180, 97;
}

.btn-secondary {
    --bs-btn-hover-bg: #5a6268;
    --bs-btn-hover-border-color: #545b62;
    --bs-btn-active-bg: #545b62;
    --bs-btn-active-border-color: #4e555b;
}

.btn-danger {
    --bs-btn-hover-bg: #c82333;
    --bs-btn-hover-border-color: #bd2130;
    --bs-btn-active-bg: #bd2130;
    --bs-btn-active-border-color: #b21f2d;
}

.btn-light {
    --bs-btn-color: #212529;
    --bs-btn-hover-color: #212529;
    --bs-btn-hover-bg: #e2e6ea;
    --bs-btn-hover-border-color: #dae0e5;
    --bs-btn-active-color: #212529;
    --bs-btn-active-bg: #dae0e5;
    --bs-btn-active-border-color: #d3d9df;
    --bs-btn-disabled-color: #212529;
}
