body {
  font-size: .875rem;
}

.feather {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
}

.vertical-align[class*='col-'] {
  letter-spacing: -4px;
  font-size: 0;
}

.vertical-align .col-xs-4 {
  vertical-align: middle;
  display: inline-block;
  letter-spacing: 0;
  font-size: 14px;
  float: none;
}

/* Prevent buttons from expanding past their parent */
.btn {
    max-width: 100% !important;
    white-space: normal !important;
}

/*
Prevent overscroll in Chrome on macOS
*/

html {
    overflow: hidden;
    height: 100%;
}

body {
    height: 100%;
    overflow: auto;
}

/*
End prevent overscroll in Chrome on macOS
*/

/*
Sidebar
*/

.sidebar {
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100; /* Behind the navbar */
  padding: 0;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 68px; /* Height of navbar */
  height: calc(100vh - 68px);
  padding-top: .5rem;
  overflow-x: hidden;
  overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

.sidebar .nav-link {
  font-weight: 500;
  color: #333;
}

.sidebar .nav-link .feather {
  margin-right: 4px;
  color: #999;
}

.sidebar .nav-link.active {
  color: #007bff;
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
  color: inherit;
}

.sidebar-heading {
  font-size: .75rem;
  text-transform: uppercase;
}

/*
Navbar
*/

.navbar-brand {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: 1rem;
  box-shadow: inset 1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .form-control {
  padding: .75rem 1rem;
  border-width: 0;
  border-radius: 0;
}

.form-control-dark {
  color: #fff;
  background-color: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .1);
}

.form-control-dark:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}

/*
Utilities
*/

.border-top { border-top: 1px solid #e5e5e5; }
.border-bottom { border-bottom: 1px solid #e5e5e5; }

.form-control::-webkit-input-placeholder {
  color: dimgray;
  opacity: 1;
}

.form-control::-moz-placeholder {
  color: dimgray;
  opacity: 1;
}

.form-control:-ms-input-placeholder {
  color: dimgray;
  opacity: 1;
}

.form-control::-ms-input-placeholder {
  color: dimgray;
  opacity: 1;
}

.form-control::placeholder {
  color: dimgray;
  opacity: 1;
}



/*
DataTables and Select2 Overrides
*/

/* Form text black for more contrast */
.form-control, .form-control-sm {
    color: black !important;
}

/* Override default datatables style of the column headers for more contrast */
.table-responsive-sm th[scope=col] {
    color: black !important;
    font-weight: bold !important;
}

/* Overriding select2 form widget to look like bootstrap4 */
.select2, .select2-container, .select2-container--default {
    border-radius: 0.2rem !important;
    border: 1px solid #ced4da !important;
    max-width: 100% !important;
}

.select2-container--default,
.select2-selection--single,
.select2-selection--multiple,
.select2-selection__rendered {
    color: black !important;
    font-size: inherit !important;
}

.select2-selection  {
    border: none !important;
}

.select2-dropdown {
    border-color: #ced4da !important;
}

li.select2-selection__choice {
    background-color: #f8f9fa !important;
}

/* Removal button on m2m field widget */
button.select2-selection__choice__remove {
    cursor: pointer !important;
    border: none;
    background-color: #f8f9fa !important;
    border-radius: 10px !important;
}

/* Applying Select2 form field heights to all bootstrap inputs to get them aligned (they're slightly bigger) */
.form-control, .form-control-sm {
    /* Original: */
    /*height: calc(1.5em + 0.75rem + 2px) !important;*/

    min-height: calc(1.5em + 0.75rem + 4px) !important;
}

/*
Input for form control has a background color property, if we set the height like on a regular form control
it will create a 2px gap, so adjust here in that unique case
*/
input.form-control[type=file] {
    min-height: calc(1.5em + 0.75rem + 2px) !important;
}

/* This forces the form-control field to grow when selecting multiple entities */
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice {
    width: auto !important;
    /*margin-left: 0.375rem !important;*/
    padding: 3px !important;
    margin: 3px !important;
    display: inline-block !important;
    float: none !important;
}

/*button.select2-selection__clear {*/
/*    color: black !important;*/
/*}*/

/* DataTables / Bootstrap dropdown overrides */
/* Override dropdown menu items for datatables - bootstrap sets them to bright blue */
.dt-button-collection > .dropdown-menu {
    background-color: #fff !important;
}

.dt-button-collection > .dropdown-menu > a.active {
    background-color: #6c757d !important;
}

.dt-button-collection > .dropdown-menu > a {
    font-weight: normal !important;
    font-size: 0.9rem !important;
}


/*
End DataTables and Select2 Overrides
*/




