/*
 * Copyright (c) BBJT 2019.
 *
 * @project BBJT CMS
 * @file override.4.css
 * @author josephtaylor
 * @site https://bbjt.co.uk
 *
 */

/*
 * Global add-ons
 */
.btn-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sub-header {
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

/*
 * Sidebar
 */

.sidebar {
  position: fixed;
  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: 48px; /* Height of navbar */
  height: calc(100vh - 48px);
  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 .fa, .sidebar .nav-link .fas, .sidebar .nav-link .far{
  margin-right: 4px;
  color: #999;
}

.sidebar .nav-link.active {
  color: #007bff;
}

.sidebar .nav-link:hover .fa,
.sidebar .nav-link.active .fa, .sidebar .nav-link:hover .fas,
.sidebar .nav-link.active .fas, .sidebar .nav-link:hover .far,
.sidebar .nav-link.active .far{
  color: inherit;
}

.sidebar-heading {
  font-size: .75rem;
  text-transform: uppercase;
}


/*
 * Main content
 */

.main {
  padding: 20px;
}
@media (min-width: 768px) {
  .main {
    padding-right: 40px;
    padding-left: 40px;


  }

  /*Stops the action dropdown menus from clipping, not showing outside of the table*/
  .table-responsive {
    overflow: visible !important;
  }
}
.main .page-header {
  margin-top: 0;
}

@media (max-width: 768px) {
    .table-responsive {
        overflow-y: visible !important;
    }
}

/*The BBJT logo on the nav bar*/
.navbar_logo {
  width: 132px;
  height: 40px;
  background-image: url(../../images/navbar_logo.png);

}


/*Makes smaller grey text for tables*/
.table_subtitle {
  font-size: small;
  color: #777777;
}


/*CSS for serving the retina image to devices with a high "device-pixel-ratio":*/
@media only screen and (min--moz-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-devicepixel-ratio: 1.5), only screen and (min-resolution: 1.5dppx) {
  .navbar_logo {
    background-image: url(../../images/navbar_logo@2x.png);
    background-size: 132px 40px;
    width: 132px;
    height: 40px;
  }
}

/*Puts everything in tables in the middle*/
.table > tbody > tr > td {
  vertical-align: middle;
}


.divider {
  height: 1px;
  width:100%;
  display:block; /* for use on default inline elements like span */
  margin: 9px 0;
  overflow: hidden;
  background-color: #373737;
}

.dropdown-menu {
  min-width: 109px;
}
.panel-heading {
  cursor: pointer;
}
.panel-title {
  height: 17px;
}
.toggle-editor-btn {
  margin-top: -5px;
  margin-right: 10px;
}
.no-padding {
  padding: 0;
}
.no-margin {
  margin: 0;
}
.mce-tinymce.mce-container.mce-panel {
  border: 0px !important;
}

div.mce-edit-area {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.panel-body .form-inline .form-control-static {
  display: inline-block;
}
.seo-preview-title {
  color: #1a0dab;
  text-decoration: underline;
  font-size: 18px;
  margin: 0;
}
.seo-preview-url {
  color: #006621;
  margin: 0;
}
.seo-preview-description {
  color: #545454;
  line-height: 1.4;
}
.fb-preview-image {
  width: 525px;
  height: 275px;
}
.fb-preview-container {
  width: 525px;
  border: 1px solid #d1d1d1;
}
.scroll-overflow {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.fb-preview-text-container {
  height: auto;
  border-top: 1px solid #d1d1d1;
  padding: 10px 12px;
  max-height: 100px;
}
.fb-preview-title {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 22px;
  margin-bottom: 5px;
}
.fb-preview-description {
  font-family: Helvetica, Arial, sans-serif;
  line-height: 16px;
  font-size: 12px;
  margin-bottom: 5px;
  color: #4b4f56;
}
.fb-preview-url {
  font-size: 11px;
  line-height: 11px;
  text-transform: uppercase;
  color: #90949c;
  margin:0;
}
label {
  line-height: 30px;
}

@media (min-width: 1200px) {
    .edit-affix {
        position: absolute;
        padding-right: 15px;

    }
    .edit-affix-fixed {
        position: fixed;
        padding-right: 40px;
        top: 70px;

    }

    .publish-panel {
      display: block !important;
    }

}

@media (min-width: 1200px), (max-width: 420px) {
  #save-button {
    margin-bottom: 5px;
  }


}

