/* Application layout rules retained while the underlying components use Bootstrap 5. */
.form-group { margin-bottom: 16px; }
.has-error .form-control { border-color: var(--edu-bad, #c8432f) !important; }
.help-block.with-errors { color: var(--edu-bad, #c8432f); font-size: 14px; }
.form-inline { display: flex; flex-flow: row wrap; align-items: center; gap: 8px; }
.form-row { display: flex; flex-wrap: wrap; margin-right: -5px; margin-left: -5px; }
.form-row > [class*="col"] { padding-right: 5px; padding-left: 5px; }
.input-group-prepend, .input-group-append { display: flex; }
.input-group-prepend .input-group-text { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group-append .input-group-text { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.btn-block { display: block; width: 100%; }
.close { padding: 0; border: 0; background: transparent; color: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.modal-header .close { margin-left: auto; padding: 4px 8px; }
.modal { --bs-modal-zindex: 1055; --bs-modal-header-padding: 16px; }
.modal-backdrop { --bs-backdrop-zindex: 1050; }
.badge-primary { color: #fff; background: var(--edu-p, #0e7a5f); }
.badge-secondary { color: #fff; background: #6c757d; }
.badge-success { color: #fff; background: #198754; }
.badge-danger { color: #fff; background: #dc3545; }
.badge-warning { color: #212529; background: #ffc107; }
.badge-info { color: #212529; background: #0dcaf0; }
.badge-light { color: #212529; background: #f8f9fa; }
.badge-dark { color: #fff; background: #212529; }
.badge-pill { border-radius: 50rem; }
.custom-control { position: relative; display: block; min-height: 24px; padding-left: 24px; }
.custom-control-input { position: absolute; left: 0; top: 5px; width: 16px; height: 16px; accent-color: var(--edu-p, #0e7a5f); }
.custom-control-label { margin-bottom: 0; }
.custom-file { position: relative; display: block; width: 100%; }
.custom-file-input { width: 100%; padding: 8px; border: 1px solid var(--edu-line, #dcd6c8); border-radius: 10px; background: #fff; }
.custom-file-label { display: none; }
.media { display: flex; align-items: flex-start; }
.media-body { flex: 1; }
.list-inline-item:not(:last-child) { margin-right: 8px; }
/* The tree widget's Bootstrap 3 icon names use the current Font Awesome font. */
.treeview .glyphicon { font-family: "Font Awesome 7 Free"; font-style: normal; font-weight: 900; }
.treeview .glyphicon-plus::before { content: "\f067"; }
.treeview .glyphicon-minus::before { content: "\f068"; }
.treeview .glyphicon-check::before { content: "\f14a"; }
.treeview .glyphicon-unchecked::before, .treeview .glyphicon-stop::before { content: "\f0c8"; }
.treeview .glyphicon-chevron-right::before { content: "\f054"; }
.treeview .glyphicon-chevron-down::before { content: "\f078"; }
/* Keep the calendar in the application's configured colour palette. */
:root {
    --fc-monarch-primary: var(--edu-p, #0e7a5f);
    --fc-monarch-primary-foreground: #fff;
    --fc-monarch-primary-over: var(--edu-p-dark, #0a5c47);
    --fc-monarch-primary-down: var(--edu-p-dark, #0a5c47);
}
