img, video { max-width: 100%; height: auto; }

.featurette { position: relative; }

.bf-screenreader-only {
  position: absolute;
  top: auto;
  left: -10000px;

  width: 1px;
  height: 1px;

  overflow:hidden;
}

.bfcms-loading {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999998;

  background: rgba(0,0,0,0.3) url('../../loading.svg') no-repeat center center;
}

.bf-align-left { text-align: left; }
.bf-align-right { text-align: right; }
.bf-align-center { text-align: center; }

.bf-text-small { font-size: 0.75em; }
.bf-text-large { font-size: 1.5em; }
.bf-text-xlarge { font-size: 2em; }

.bf-flash-messages {
  margin-top: 2em;
}

  .bf-flash-messages .flash_message_info,
  .bf-flash-messages .flash_message_error {
    padding: 7px 25px;
    margin-bottom: 5px;

    color: #fff;
    background: #f00;
  }
    .bf-flash-messages .flash_message_info {
      color: #000;
      background: #f1f1f1;
    }
    .bf-flash-messages .flash_message_error a { color: #fff; }


.bf-bg-position-left-top:not(.bf-parallax)      { background-position: left top !important; }
.bf-bg-position-left-25:not(.bf-parallax)       { background-position: left 25% !important; }
.bf-bg-position-left-center:not(.bf-parallax)   { background-position: left center !important; }
.bf-bg-position-left-75:not(.bf-parallax)       { background-position: left 75% !important; }
.bf-bg-position-left-bottom:not(.bf-parallax)   { background-position: left bottom !important; }

.bf-bg-position-25-top:not(.bf-parallax)        { background-position: 25% top !important; }
.bf-bg-position-25-25:not(.bf-parallax)         { background-position: 25% 25% !important; }
.bf-bg-position-25-center:not(.bf-parallax)     { background-position: 25% center !important; }
.bf-bg-position-25-75:not(.bf-parallax)         { background-position: 25% 75% !important; }
.bf-bg-position-25-bottom:not(.bf-parallax)     { background-position: 25% bottom !important; }

.bf-bg-position-center-top:not(.bf-parallax)    { background-position: center top !important; }
.bf-bg-position-center-25:not(.bf-parallax)     { background-position: center 25% !important; }
.bf-bg-position-center-center:not(.bf-parallax) { background-position: center center !important; }
.bf-bg-position-center-75:not(.bf-parallax)     { background-position: center 75% !important; }
.bf-bg-position-center-bottom:not(.bf-parallax) { background-position: center bottom !important; }

.bf-bg-position-75-top:not(.bf-parallax)        { background-position: 75% top !important; }
.bf-bg-position-75-25:not(.bf-parallax)         { background-position: 75% 25% !important; }
.bf-bg-position-75-center:not(.bf-parallax)     { background-position: 75% center !important; }
.bf-bg-position-75-75:not(.bf-parallax)         { background-position: 75% 75% !important; }
.bf-bg-position-75-bottom:not(.bf-parallax)     { background-position: 75% bottom !important; }

.bf-bg-position-right-top:not(.bf-parallax)     { background-position: right top !important; }
.bf-bg-position-right-25:not(.bf-parallax)      { background-position: right 25% !important; }
.bf-bg-position-right-center:not(.bf-parallax)  { background-position: right center !important; }
.bf-bg-position-right-75:not(.bf-parallax)      { background-position: right 75% !important; }
.bf-bg-position-right-bottom:not(.bf-parallax)  { background-position: right bottom !important; }


.bfcms-ctr-container.bf-has-video-bg {
  position: relative;
  overflow: hidden;
}
  .bfcms-ctr-container.bf-has-video-bg div[class ^= "col"] { z-index: 1; }
  .bfcms-ctr-container.bf-has-video-bg .bf-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;

    min-width: 100%;
  }

  .bfcms-ctr-container > .container .featurette,
  .bfcms-ctr-container > .container-fluid .featurette {
    z-index: 2;
  }

  .bfcms-ctr-container .bf-ctr-underlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
  }

.bf-video-embed {
  max-width: 100%;
  overflow: hidden;
}


.bfcms-ctr-container.bf-column-bleed,
.bfcms-ctr-container.bf-column-bleed .row > div[class^="col-"] {
  padding-left: 0;
  padding-right: 0;
}
  .bfcms-ctr-container.bf-column-bleed > .container,
  .bfcms-ctr-container.bf-column-bleed > .container-fluid {
    position: relative;
    z-index: 10;
  }

  .bfcms-ctr-container.bf-column-bleed:before,
  .bfcms-ctr-container.bf-column-bleed:after {
    content: ' ';

    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 50%;
    z-index: 1;
  }
    .bfcms-ctr-container.bf-column-bleed:after { left: 50%; }


.bf-social-links {
  max-height: 120px;
  margin: 2em 0 1em;

  overflow: hidden;
}
  .bf-social-links ul { 
    margin: 0;
    padding: 0;
    list-style: none;
  }
    .bf-social-links li {
      display: inline-block;
    }

.bfcms-lightbox {
  position: fixed !important;
  top: 5% !important;
  left: 5% !important;
  z-index: 999999;

  display: none;

  max-width: 90%;
  max-height: 90%;

  box-shadow: 0 0 10px rgba(0,0,0,0.5);

  overflow: scroll;
}
  .bfcms-lightbox .bf-lb-shim {
    max-width: 100%;
    max-height: 100%;
  }

  .bfcms-lightbox .bf-lb-close {
    display: block;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 999;

    width: 40px;
    height: 40px;
    line-height: 40px;

    cursor: pointer;

    opacity: 0.75;
  }
    .bfcms-lightbox .bf-lb-close:hover {
      opacity: 1;
    }

.fb_iframe_widget {
  float: left;
}

.bf-sys-login,
.bf-sys-logout {
  max-width: 100%;
  width: 340px;
  margin: 0 auto;
  padding: 30px;

  text-align: center;
}
  .bf-sys-login .bf-sso-provider { margin-bottom: 8px; }
  .bf-sys-login .bf-sso-provider:last-of-type { margin-bottom: 1em; }

  .bf-sys-login form > div {
    margin-bottom: 8px;
  }
    .bf-sys-login form input[type="text"],
    .bf-sys-login form input[type="email"],
    .bf-sys-login form input[type="submit"],
    .bf-sys-login form input[type="password"] {
      width: 100%;
    }

  .bf-sys-login .bf-sys-register {
    margin-top: 2em;
    padding-top: 1.5em;

    border-top: 1px solid #ccc;
  }

.bf-sys-register {
}
  .bf-sys-register .bf-sys-register-firstname,
  .bf-sys-register .bf-sys-register-lastname {
    float: left;
    width: 47%;
  }
    .bf-sys-register .bf-sys-register-lastname {
      margin-left: 6%;
    }


.bf-table {
  position: relative;
}
  .bf-table-wait {
    display: none;

    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;

    background: rgba( 0, 0, 0, 0.25 );
    background-image: url('/res/js/bfc_common/loading.svg');
    background-repeat: no-repeat;
    background-position: 50% 50%;
  }

  .bf-table .bf-table-body {
    max-width: 100%;
    overflow-x: scroll;
  }

  .bf-table .bf-table-filter {
    margin: 1em 0;
    text-align: center;
  }
    .bf-table .bf-table-filter-toggle {
      display: block;
      width: 100%;
    }

    .bf-table .bf-table-filter-ctr {
      display: none;

      text-align: left;

      background: #fff;
    }
    .bf-table .bf-table-filter-ctr .row > div {
      margin-top: 0.5em;
      margin-bottom: 0.5em;
    }

  .bf-table .bf-table-search {
    margin: 1em 0;
  }

  .bf-table-row {
    display: table-row;
    clear: left;

    border-bottom: 1px solid #f6f6f6;
  }
    .bf-table-heading {
      font-weight: bold;
      font-size: 0.9em;
      line-height: 1.4em;
      text-transform: uppercase;

      background: #eee;
    }

    .bf-table-row:not(.bf-table-heading) {
      font-size: 0.8em;
      line-height: 1.4em;
    }
      .bfcms_pane_content .bf-table-heading { font-size: 1.15em; }
      .bfcms_pane_content .bf-table-row:not(.bf-table-heading) { font-size: 1.1em; }

    .bf-table-row > .bf-table-col-sm,
    .bf-table-row > .bf-table-col-md,
    .bf-table-row > .bf-table-col-lg {
      display: table-cell;

      min-width: 100px;
      padding: 8px 15px;

      border-bottom: 1px solid #ddd;
    }
    .bf-table-row > .bf-table-col-md { min-width: 150px; }
    .bf-table-row > .bf-table-col-lg { min-width: 250px; }

  .bf-table-row:not(.bf-table-heading):hover {
    background: #f6f6f6;
    cursor: pointer;
  }

  .bf-table-totals .row > div {
    margin: 1em 0;
  }

  .bf-table-totals {
    padding: 10px 20px;

    text-align: center;

    color: #fff;
    background: #aaa;
  }
    .bf-table-totals h4 {
      font-weight: 300;
      text-transform: uppercase;
    }

  .bf-table-export {
    margin: 1em 0 2em;
    text-align: center;
  }

  .bf-table-pagination a.pag_next,
  .bf-table-pagination a.pag_previous {
    display: none;
  }


.bf-ctable {
  overflow-x: auto;
}
  .bf-ctable table { margin: 2em 0; }
    .bf-ctable th, .bf-ctable td { padding: 8px 15px; }
    .bf-ctable thead th {
      font-weight: 700;
      background: #f1f1f1;
    }
    .bf-ctable tbody td {
      background: #fff;
      border-bottom: 1px solid #f1f1f1;
    }
      .bf-ctable tbody > tr:hover td { background: #f1f1f1; }

    .bf-ctable tbody > tr:nth-child(2n) td { background: #f8f8f8; }
      .bf-ctable tbody > tr:nth-child(2n):hover td { background: #f1f1f1; }


.bf-form-row {
  padding-right: 1%;
  clear: left;
}
.bf-form-row.bf-form-field-size-1-2,
.bf-form-row.bf-form-field-size-1-3,
.bf-form-row.bf-form-field-size-2-3 {
  float: left;
  clear: none;
}
  .bf-form-row.bf-form-field-size-1-2 { width: 50%; }
  .bf-form-row.bf-form-field-size-1-3 { width: 33.33333%; }
  .bf-form-row.bf-form-field-size-2-3 { width: 66.66666%; }

  .bf-form-row input[type="text"],
  .bf-form-row input[type="email"],
  .bf-form-row textarea,
  .bf-form-row select {
    width: 100%;
  }


.bf-photo {
}
  .bf-photo .bf-photo-credit {
    margin: 5px 0 1em;

    font-size: 0.75em;
    text-align: center;
    text-transform: uppercase;
  }


.bf-cache-updating {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;

  background-color: rgba( 255, 255, 255, 0.75 );
  background-image: url('/res/js/bfc_common/loading.svg');
  background-repeat: no-repeat;
  background-position: center center;
}


.bfcms-ctr-container.bf-header.full-width {
  padding: 0;
}
  .bfcms-ctr-container.bf-header.full-width .bfcms-listing {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    padding: 0;
  }
    .bfcms-ctr-container.bf-header.full-width .bfcms-listing .bf-listing-row > .col-xs-12 { padding: 0; }
    .bfcms-ctr-container.bf-header .bf-textoverlay-background {
      height: 100%;

      background-size: cover;
      background-position: center center;
    }

.bf-user-icon {
  display: inline-block;
  width: 30px;
  height: 30px;

  font-size: 16px;
  line-height: 30px;
  font-weight: bold;
  text-align: center;
  letter-spacing: -1px;
  font-family: 'Open Sans',sans-serif;

  color: #fff;
  background: #00aeef;
  border-radius: 15px;
}


@media (min-width: 768px ) and (pointer:fine) {
/*
  .bf-parallax {
    background-color: transparent !important;
    background-image: none !important;
  }
*/
}

@media (min-width: 768px ) { 

  .bf-table .bf-table-search {
    text-align: right;
  }

  .bf-table .bf-table-filter {
    text-align: left;
  }
    .bf-table .bf-table-filter-toggle {
      display: inline-block;
      width: auto;
    }

    .bf-table .bf-table-filter-ctr .row > div {
      margin-top: 0.5em;
      margin-bottom: 0.5em;
    }

  .bf-table-totals .row > div {
    margin: 0;
  }

  .bf-table-pagination a.pag_next,
  .bf-table-pagination a.pag_previous {
    display: inline-block;
  }

  .bf-sys-login,
  .bf-sys-logout {
    width: 450px;
    margin-top: 100px !important;
  }

  .bfcms-lightbox {
    top: 50% !important;
    left: 50% !important;

    overflow: hidden;
  }
}
