/* Public layout and form styles. The administration interface has its own stylesheet. */
*, ::before, ::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
h1, h2, h3, h4, h5, h6, p { margin: 0 0 .75rem; }
img, svg { vertical-align: middle; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; }
.container { width: 100%; margin-inline: auto; padding-inline: calc(var(--bs-gutter-x, 1.5rem) / 2); }
.row { display: grid; gap: 1.5rem; }
.d-none { display: none !important; }
.breadcrumb { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.breadcrumb-item.active { color: #5b6475; }
.mb-3 { margin-bottom: 1rem; }
.form-label { display: inline-block; margin-bottom: .45rem; }
.form-control, .form-select {
    display: block;
    width: 100%;
    color: inherit;
    background: #fff;
    border: 1px solid #cfd6e0;
}
.alert { padding: .8rem 1rem; margin-bottom: 1rem; border: 1px solid; border-radius: .4rem; }
.alert :last-child { margin-bottom: 0; }
.alert a { text-decoration: underline; }
.alert-danger { color: #842029; background: #f8d7da; border-color: #f1aeb5; }
.alert-success { color: #0a3622; background: #d1e7dd; border-color: #a3cfbb; }

@media (max-width: 991.98px) {
    .nav-enhanced [data-nav-collapsed] { display: none; }
}
@media (min-width: 992px) {
    .row { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
    .d-lg-none { display: none !important; }
    .d-lg-grid { display: grid !important; }
}

/* Bootstrap's modal script is only loaded on pages with a configured popup. */
.modal { display: none; position: fixed; inset: 0; z-index: 1055; overflow: auto; }
.modal-dialog { width: min(32rem, calc(100% - 2rem)); margin: 1rem auto; pointer-events: none; }
.modal-dialog-centered { display: grid; align-content: center; min-height: calc(100% - 2rem); }
.modal-content { border-radius: .5rem; background: white; pointer-events: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; border-bottom: 1px solid #e4e8ee; }
.modal-body { padding: 1rem; }
.modal-backdrop { position: fixed; inset: 0; z-index: 1050; background: #11151c; opacity: .65; }
.btn-close { width: 2.25rem; height: 2.25rem; color: #11151c; background: transparent; border: 1px solid #cfd6e0; border-radius: .35rem; }
.btn-close::before { content: '×'; font-size: 1.25rem; }
.p-4 { padding: 1.5rem; }
