/*
 * Bootstrap 5, set to the layout of Bootstrap 3 the website was designed with.
 *
 * The grid classes in the templates are one tier up: Bootstrap 3 "sm" (768px) is Bootstrap 5 "md", "md" (992px)
 * is "lg". What differs beyond that is set back here: container widths, gutters and the base styles (reboot) that
 * website.css builds on.
 */

/* ==========================================================================
   Grid: 750/970/1170px containers with 15px padding, fluid below 768px
   ========================================================================== */

.container {
  --bs-gutter-x: 30px;
}
@media (min-width: 576px) {
  .container {
    max-width: none;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 750px;
  }
}
@media (min-width: 992px) {
  .container {
    max-width: 970px;
  }
}
@media (min-width: 1200px) {
  .container {
    max-width: 1170px;
  }
}

/*
 * No gutters: website.css removes them from rows and columns, and Bootstrap 3 had none on other children of a row.
 * Columns keep their own height and are a containing block, as the floated columns of Bootstrap 3.
 */
.row {
  --bs-gutter-x: 0;
  align-items: flex-start;
}
[class*="col-"] {
  position: relative;
  min-height: 1px;
}

/* Containers contain their floats, and the margins of their children */
.container::before,
.container::after,
.clearfix::before {
  display: table;
  content: " ";
}
.container::after {
  clear: both;
}

/* ==========================================================================
   Base styles
   ========================================================================== */

:root {
  scroll-behavior: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: inherit;
  font-weight: 500;
  line-height: 1.1;
  color: inherit;
}
h1,
h2,
h3 {
  margin-top: 20px;
  margin-bottom: 10px;
}
h4,
h5,
h6 {
  margin-top: 10px;
  margin-bottom: 10px;
}
h1 {
  font-size: 36px;
}
h2 {
  font-size: 30px;
}
h3 {
  font-size: 24px;
}
h4 {
  font-size: 18px;
}
h5 {
  font-size: 14px;
}
h6 {
  font-size: 12px;
}

p {
  margin: 0 0 10px;
}

ul,
ol {
  margin-top: 0;
  margin-bottom: 10px;
  padding-left: 40px;
}
ul ul,
ul ol,
ol ul,
ol ol {
  margin-bottom: 0;
}

a {
  color: #337ab7;
  text-decoration: none;
}
a:hover,
a:focus {
  color: #23527c;
  text-decoration: underline;
}

b,
strong {
  font-weight: 700;
}

small,
.small {
  font-size: 85%;
}

hr {
  margin-top: 20px;
  margin-bottom: 20px;
  border: 0;
  border-top: 1px solid #eee;
  opacity: 1;
}

button,
input,
optgroup,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  border-radius: 0;
}
input[type="checkbox"],
input[type="radio"] {
  margin: 4px 0 0;
  line-height: normal;
}

label {
  max-width: 100%;
  margin-bottom: 5px;
  font-weight: 700;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-control {
  height: 34px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #555;
  border-color: #ccc;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  appearance: auto;
  transition:
    border-color ease-in-out 0.15s,
    box-shadow ease-in-out 0.15s;
}
.form-control:focus {
  border-color: #66afe9;
  outline: 0;
  box-shadow:
    inset 0 1px 1px rgba(0, 0, 0, 0.075),
    0 0 8px rgba(102, 175, 233, 0.6);
}
.form-control::placeholder {
  color: #999;
}
textarea.form-control {
  height: auto;
  resize: both;
}
.form-control-plaintext {
  min-height: 34px;
  padding: 7px 0;
  line-height: inherit;
  color: inherit;
  border: 0;
}

.btn {
  --bs-btn-font-size: 14px;
  --bs-btn-line-height: 1.42857143;
  --bs-btn-border-radius: 4px;
  white-space: nowrap;
  transition: none;
}

/* The default button of Bootstrap 3, which Bootstrap 5 does not have */
.btn-default {
  --bs-btn-color: #333;
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #ccc;
  --bs-btn-hover-color: #333;
  --bs-btn-hover-bg: #e6e6e6;
  --bs-btn-hover-border-color: #adadad;
  --bs-btn-focus-shadow-rgb: 204, 204, 204;
  --bs-btn-active-color: #333;
  --bs-btn-active-bg: #e6e6e6;
  --bs-btn-active-border-color: #adadad;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

.alert {
  --bs-alert-padding-x: 15px;
  --bs-alert-padding-y: 15px;
  --bs-alert-margin-bottom: 20px;
  --bs-alert-border-radius: 4px;
}
.alert-danger {
  --bs-alert-color: #a94442;
  --bs-alert-bg: #f2dede;
  --bs-alert-border-color: #ebccd1;
}

/* Date and time fields as the browser draws them */
.form-control::-webkit-date-and-time-value {
  min-width: revert;
  height: revert;
  margin: revert;
}
.form-control::-webkit-datetime-edit {
  display: revert;
  padding: revert;
}
::-webkit-datetime-edit-fields-wrapper,
::-webkit-datetime-edit-text,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-year-field,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-minute-field {
  padding: revert;
}

/* ==========================================================================
   Navbar: website.css styles the menu on top of the Bootstrap 3 navbar, without its JavaScript
   ========================================================================== */

.navbar {
  --bs-navbar-brand-color: #337ab7;
  --bs-navbar-brand-hover-color: #23527c;
  display: block;
  min-height: 50px;
  margin-bottom: 20px;
  padding: 0;
  border: 1px solid transparent;
}
.navbar.fixed-top {
  border-width: 0 0 1px;
}
.navbar > .container {
  display: block;
}
.navbar::before,
.navbar::after,
.navbar-header::before,
.navbar-header::after,
.nav::before,
.nav::after {
  display: table;
  content: " ";
}
.navbar::after,
.navbar-header::after,
.nav::after {
  clear: both;
}
.container > .navbar-header {
  margin-right: -15px;
  margin-left: -15px;
}
@media (min-width: 768px) {
  .navbar-header {
    float: left;
  }
  .container > .navbar-header {
    margin-right: 0;
    margin-left: 0;
  }
}

.navbar-brand {
  float: left;
  height: 50px;
  padding: 15px;
  margin-right: 0;
  font-size: 18px;
  line-height: 20px;
  white-space: normal;
}
.navbar-brand > img {
  display: block;
}
@media (min-width: 768px) {
  .navbar > .container .navbar-brand {
    margin-left: -15px;
  }
}

.navbar-toggle {
  position: relative;
  float: right;
  padding: 9px 10px;
  margin-top: 8px;
  margin-right: 15px;
  margin-bottom: 8px;
  background-color: transparent;
  background-image: none;
  border: 1px solid transparent;
  border-radius: 4px;
}
.navbar-toggle:focus {
  outline: 0;
}
.navbar-toggle .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
}
.navbar-toggle .icon-bar + .icon-bar {
  margin-top: 4px;
}
@media (min-width: 768px) {
  .navbar-toggle {
    display: none;
  }
}

.nav {
  display: block;
}
.nav > li {
  position: relative;
  display: block;
}
.nav > li > a {
  position: relative;
  display: block;
  padding: 10px 15px;
}
.nav > li > a:hover,
.nav > li > a:focus {
  text-decoration: none;
  background-color: #eee;
}
.navbar-nav {
  display: block;
  margin: 7.5px -15px;
}
.navbar-nav > li > a {
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 20px;
}
@media (min-width: 768px) {
  .navbar-nav {
    float: left;
    margin: 0;
  }
  .navbar-nav > li {
    float: left;
  }
  .navbar-nav > li > a {
    padding-top: 15px;
    padding-bottom: 15px;
  }
}

/* ==========================================================================
   Datepicker: bootstrap-datepicker3.css builds on the dropdown menu and the condensed table of Bootstrap 3
   ========================================================================== */

.datepicker.dropdown-menu {
  --bs-dropdown-min-width: 160px;
  --bs-dropdown-font-size: 14px;
  --bs-dropdown-color: inherit;
  --bs-dropdown-border-color: rgba(0, 0, 0, 0.15);
  float: left;
  margin-top: 2px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}
.table-condensed {
  border-spacing: 0;
}
.table-condensed > thead > tr > th,
.table-condensed > thead > tr > td,
.table-condensed > tbody > tr > th,
.table-condensed > tbody > tr > td,
.table-condensed > tfoot > tr > th,
.table-condensed > tfoot > tr > td {
  padding: 5px;
}
