/* hack for firefox and responsive tables, see
   https://stackoverflow.com/questions/17408815/fieldset-resizes-wrong-appears-to-have-unremovable-min-width-min-content/17863685#17863685
*/
@-moz-document url-prefix() {
  fieldset { display: table-cell; }
}

/* Remove increase/decrease buttons on numerical input fields */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance:textfield;
}

a.navbar-brand {
  padding: 0;
}

img.nav-logo {
  max-height:48px;
}

/* In order to make .clickable elements span the entire td or th*/
table.table td a, table.table th a {
  display: block;
  height: 100%;
  width: 100%;
}

/* Stop clickable headers looking like links */
table.table th a {
  text-decoration: none;
}

/* to use instead of .hidden class, which apparently clashes with jquery */
.hide-this {
  display: none;
}

/* to stop wells getting too big */
.well {
  padding: 10px;
}

/* To make objects invisible but still rendered (for consistent spacing) */
.transparent {
  visibility: hidden;
}

/* Remove the lower margin after tables inside panels */
div.panel table.table {
  margin-bottom: 0;
}

/* Remove the standard padding for when we are inside a form table */
table.form div.form-group {
  margin-bottom: 0px;
}

/* As bootstrap is customised to font-size 12px, increase the font size for
navbars and buttons*/
nav.navbar * {
  font-size: 16px;
}

.btn, .btn * {
  font-size:15px;
}

/* Make sure the header bar is displayed as inline block to full width */
div.crypsis-header-bar {
  display:inline-block;
  width:100%;
}

/* Double the size of checkboxes - mixed results in Chrome/Safari, so disabled */
/*div.increase-size {*/
/*zoom:1.5;*/
/*transform:scale(1.5, 1.5);*/
/*-ms-transform:scale(1.5, 1.5);*/
/*-webkit-transform:scale(1.5, 1.5);*/
/*-o-transform:scale(1.5, 1.5);*/
/*-moz-transform:scale(1.5, 1.5);*/
/*transform-origin:center center;*/
/*-ms-transform-origin:center center;*/
/*-webkit-transform-origin:center center;*/
/*-o-transform-origin:center center;*/
/*-moz-transform-origin:center center;*/
/*}*/

/* Borderless td elements, for hiding borders in one-td footer with a button*/
tfoot td.borderless {
  border:none!important;
}

/*Override padding and borders for inline formsets for select2 */

table.form span.form-control.select2-container {
  padding:0px;
}

table.form span.select2-selection {
  border:none;
}

/*A hack to make firefox keep the bottom border visible for select2 */
@supports (-moz-transform: translate(0, 0)) {
  table.form span.select2-selection {
    border-bottom: 1px solid #ccc;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
  }
}

/* Override text colour of grey background links/badges to use white text */
.badge a.alert-link {
  color:white;
}

/*Make breadcrumbs not have margin (as they are displayed in a well)*/
.breadcrumb {
  margin:0px;
}

.breadcrumb * {
  font-size:16px;
}

/* Remove the bordering from the calendar events*/
.event {
  border: none;
  -webkit-box-shadow: none;
}

/*!* Override active tab colour *!*/

/*.nav-tabs > li.active > a,*/
/*.nav-tabs > li.active > a:hover,*/
/*.nav-tabs > li.active > a:focus {*/
/*background-color: #FFFFFF;*/
/*}*/

.nav-tabs > li > a {
  background-color:  rgb(245, 245, 245);
}

/* Add a class to set td to have minimum width */
td.min {
  width: 1%;
  white-space: nowrap;
}

/* Ad a class to set td to have small width*/
td.small-width {
  width:100px;
  white-space: nowrap;
}

/* Centre images */

img.centered {
  display: block;
  margin: 0 auto;
}

/* Colour box used to display small boxes of colour */
.color-box {
  /*float: left;*/
  width: 20px;
  height: 20px;
  /*margin: 5px;*/
  border: 1px solid rgba(0, 0, 0, .2);
  display: inline-block;
}

.bootstrap-purple {
  background-color: #862d86;
}

.warning-background {
  background-color: #f2dede;
}

/* Quick hack to keep select2 widgets wide enough in filters */
form.crypsis-filter-form select.django-select2 {
  min-width: 250px;
}

form.crypsis-filter-form div.form-group {
  margin-bottom: 5px;
}

/* Tables which are also forms */
table.form-table {
  width: 100%;
  margin-bottom: 20px;
}

table.form-table div.form-group {
  margin: 5px;
}

/* Keep checkboxes middle aligned */
/*table.form-table input[type=checkbox] {*/
/*  height: 18px;*/
/*}*/

table.detail-table {
  width: 100%;
  margin-bottom: 20px;
}

table.detail-table tr {
  height: 43px;
}

table.detail-table span {
  margin: 5px;
}

/* To stop content from shrinking out labels in detail tables*/
table.detail-table td.detail-label {
  min-width: 30%;
}

/* Keep checkboxes at their original size */
input.form-control[type=checkbox] {
  height: inherit!important;
}