/*
 ====================
  General Site Layout
 ====================
 */

body {
  font-family: 'urw-din', sans-serif;
  color: #1d1f20;
}

/*
 ====================
  Navbar
 ====================
 */

/* The SHCS logo shown in the navbar. */
.navbar-brand {
  background: url("/static/swissprepared/logo.11afdc2e87de.png");
  background-repeat: no-repeat;
  background-size: 48px;
  background-position: 15px 8px;
  width: 64px;
  padding-right: 0;
}

/*
 * Make the navbar taller (64px instead of 50px) in medium-to-large-devices.
 * This vertical space is needed for the SHCS logo.
 */
.navbar-brand,
.navbar-title,
.navbar-nav > li > a {
  padding-top: 0;
  padding-bottom: 0;
  height: 64px;
  line-height: 64px;
  margin-bottom: 0;
  margin-top: 0;
}

.navbar-title {
  float: left;
  font-size: 18px;
  padding-left: 15px;
  padding-right: 15px;
}

.navbar-title .btn {
  margin-right: 8px;
}

@media (max-width: 767px) {
  .navbar-toggle {
    margin-top: 15px;
  }

  .navbar-nav > li > a {
    height: 40px;
    line-height: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

.disabled {
  pointer-events: none;
  cursor: default;
  opacity: 0.5;
}

.space-left {
  margin-left: 5px;
}

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

/* Add thin line between form sections */
form h3:not(:first-of-type) {
  border-top: 1px solid #ccc;
  padding-top: 25px;
}

/* Ensure that toggle radio button groups appear below the label. */
form .btn-group {
  width: 100%;
}

/* Small input field, e.g. for short numbers like percentages */
.small-input-group .input-group,
.small-input input {
  width: 120px !important;
}

/* Form field help-text icon */
.form-help-text-icon {
  padding-left: 5px;
  margin-top: 3px;
}

/* Container for the label and the form field help-text */
form .help-text-label {
  display: flex;
  align-items: flex-start;
}

/* Required form fields */
form .form-group.required .control-label:after {
  content: '*';
  color: red;
  font-size: 125%;
}

/*
  Conditional Fields
 --------------------
 */

/* Conditional fields are hidden by default. */
.conditional-field:not(.shown) {
  display: none !important;
  pointer-events: none;
}

.breadcrumb li.active {
  font-weight: 600;
}

/*
  Form Table
 --------------------
 */

.form-table {
  padding-top: 5px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

/* Table rows */
.form-table .form-group {
  border-top: 1px solid #ddd;
  padding: 5px;
  margin-bottom: 0;

  /* Position of the fields within a row */
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Stripes */
.form-table .form-group:nth-of-type(odd) {
  background-color: #f9f9f9;
}

/* Force the help-block to wrap to the next line */
.form-table .help-block {
  clear: both;
  flex-basis: 100%;
}

/* Width of the input field */
.form-table .input-group {
  width: 50%;
}

/* Width of select box */
.form-table .select2,
.form-table select {
  width: 25% !important;
}

/* Width of buttons */
.form-table .btn-group {
  width: inherit;
}

/* Small Screens */
@media only screen and (max-width: 767px) {
  /* Switch to column layout */
  .form-table .form-group {
    flex-direction: column;
    align-items: left;
  }

  /* Stretch select2 field */
  .form-table .select2,
  .form-table select {
    width: 100% !important;
  }

  /* Stretch form field labels*/
  .form-table .form-group > div:first-child,
  .form-table .form-group label:first-child {
    max-width: 100%;
  }
}

/*
 ====================
  Patient Details
 ====================
 */

.patient-identifier {
  font-size: 30px;
  margin-bottom: 0;
}

/*
 ====================
  Tables
 ====================
 */

table .btn {
  margin: 3px;
}
