@import 'typeahead.css';

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  padding-top: 50px;
  padding-bottom: 40px;
  background-color: #eee;
}

.dropdown-menu>li>a {
	padding: 8px 20px;
}
.form-signin input[type="email"] {
  margin-bottom: -1px;
}

.form-signin input[type="password"] {
  margin-bottom: 10px;
}

.form-signin .field {
  margin-bottom: 1em;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  /* Set the fixed height of the footer here */
  height: 60px;
}

.text-muted {
  margin: 20px 0;
}

.homepage-template {
  padding: 40px 15px;
  text-align: center;
}

.table td .label {
  position: relative;
  top: -2px;
}

.folders {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 30px;
}

.folders .column {
  display: flex;
  flex-direction: column;
  width: 100%;
}

@media (min-width: 992px) {
  .folders .column {
    width: 48%;
  }
}

.file-categories {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.file-categories a {
	text-decoration: none;
	border-bottom:1px solid transparent;
}
.file-categories a:hover {
	text-decoration: none;
	border-color:inherit;
}

.file-categories a span {
  white-space: nowrap;
}

.file-categories a span:not(.fa) {
  font-size: 16px;
}

.file-categories h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding-right: 16px;
  padding-bottom: 10px;
}

.file-categories button.expand {
  width: 30px;
  text-indent: -999em;
  position: relative;
  background: none;
  border: none;
}

.file-categories button.expand:after {
  position: absolute;
  display: block;
  content: '\25B2';
  color: #337ab7;
  top: 2px;
  left: 0;
  width: 25px;
  height: 28px;
  text-indent: 0;
  transform: rotate(90deg);
  transition: transform 200ms ease-in-out;
}

.file-categories button.expand:not(.collapsed):after {
  transform: rotate(180deg);
}

.file-categories button.expand.empty {
  pointer-events: none;
}

.file-categories button.expand.empty:after {
  content: '\1403';
  color: #aaa;
}

.file-categories .child-content {
  width: 100%;
}

.file-categories .child-content ul {
  padding-inline-start: 34px;
  list-style: square;
  font-size: 18px;
  color: #337ab7;
  line-height: 28px;
}

.file-categories .child-content .contents-list {
  min-height: 28px;
  padding: 0;
  margin-left: 30px;
}

.file-categories .child-content .contents-list li.folder {
  list-style: none;
  width: 100%;
  padding-left: 0;
}

.file-categories .child-content .contents-list li.file {
  padding-left: 7px;
  list-style: none;
}

.file-categories .child-content .contents-list li.file::before {
  position: relative;
  top: -3px;
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background-color: #337ab7;
  margin-right: 15px;
}

.file-categories .child-content .contents-list li.loading {
  list-style: none;
  padding-left: 0;
  width: 100%;
}

.file-categories .child-content ul li button.expand:after {
  top: 0;
}

@media (min-width: 768px) and (max-width: 991px) {
  .container {
    width: 97.6%;
  }
}

.container.entry {
    background: white;
    border: #ddd 1px solid;
    border-radius: 10px;
    padding: 30px;
    margin-top: 40px;
}
.container.entry .body .edit-link {
    margin-bottom: 20px;
    display: inline-block;
}
.container.entry .page-header {
	margin: 0 0 20px;
}
.container.edit-form {
	padding: 0px;
	width: 100%;
}
.container.edit-form .edit-buttons {
	margin-bottom: 30px;
}

.form-field {
	margin: 20px 0;
}
.form-field label,
.form-field select,
.form-field textarea,
.form-field input {
	display: block;
}
.form-field textarea,
.form-field select,
.form-field input,
.form-field .redactor-toolbar,
.form-field .redactor-styles,
.form-field .bootstrap-tagsinput {
	border: #d8d8d8 solid 1px;
	border-radius: 0;
}
.form-field textarea,
.form-field select,
.form-field input,
.form-field .redactor-styles {
	padding: 5px 10px;
	min-width: 300px;
}
.form-field .redactor-styles {
	padding: 5px 10px;
	min-width: 300px;
}
.form-field input[type="checkbox"] {
	min-width: inherit;
    vertical-align: text-bottom;
    margin-right: 5px;
}
.form-field .redactor-toolbar,
.form-field .redactor-styles {
	box-shadow: none;
}
.form-field .redactor-styles {
	border-top: none;
	font-family: inherit;
	font-size: inherit;
}
.form-field .tag-checkbox input {
	display: inline-block;
}
.form-field .entry-tags {
	margin: 10px 0;
}
.form-field .bootstrap-tagsinput .label {
	font-size: 14px;
	display: inline-block;
    line-height: 20px;
    margin-bottom: 5px;
}
.form-field .twitter-typeahead input {
	border:none;
	padding: 10px 0 5px;
}
.form-field .bootstrap-tagsinput {
	padding: 10px;
}
#ui-datepicker-div {
	z-index: 1000 !important;
}

.entry-actions a,
.entry-actions button {
  margin-right: 10px;
}

.btn-nostyle {
  background: none;
  border: 0;
  color: #337ab7;
  padding-left: 0;
  padding-right: 0;
}

.btn-nostyle:hover {
  color: #23527c;
  text-decoration: underline;
}

#mini_calendar td.today div, #mini_calendar td.today div a {
  color: #ff0000;
}

.page-header.page-header-inline  h1 {
  display: inline;
}

.page-header.page-header-inline a {
  float: right;
}

.dashboard-element {
  background-color: #fff;
  position: relative;
  padding: 0 15px 0;
  margin: 0 0 15px;
  border-color: #e5e5e5 #eee #eee;
  border-style: solid;
  border-width: 1px 0;
  -webkit-box-shadow: inset 0 3px 6px rgba(0,0,0,.05);
  box-shadow: inset 0 3px 6px rgba(0,0,0,.05);
  width: 100%;
  flex: 1;
}

@media (min-width: 768px) {
  .dashboard-element {
    border-color: #ddd;
    border-width: 1px;
    border-radius: 4px 4px 0 0;
    -webkit-box-shadow: none;
    box-shadow: none;
  }
}

.dashboard-element table tr td:first-child {
  padding-left: 0;
}

.dashboard-element table.announcements tr td {
  padding: 10px 20px;
  white-space: nowrap;
}

.dashboard-element table.announcements tr td:first-child {
  width: 100%;
  white-space: normal;
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 880px) {
  .dashboard-element table.announcements tr,
  .dashboard-element table.announcements td {
    display: block;
  }

  .dashboard-element table.announcements tr td:nth-child(2),
  .dashboard-element table.announcements tr td:nth-child(3) {
    width: 50%;    
    border: none;
    padding-top: 0;
  }

  .dashboard-element table.announcements tr td:nth-child(2) {
    padding-left: 0;
    float: left;
  }
}

.dashboard-element a {
  font-weight: bold;
}

.dashboard-element span {
  color: #98a0a7;
}

@media (min-width: 992px) {
  .dashboard .display-flex,
  .dashboard .display-flex .row,
  .dashboard .display-flex [class*="col-"] {
    display: flex;
  }

  .dashboard .display-flex [class*="col-"] {
    flex-direction: column;
  }

  .dashboard .display-flex .flex-fill {
    flex: 1;
  }

  .dashboard .afm-sites .equal,
  .dashboard .afm-sites .equal [class*="col-"],
  .dashboard .afm-sites .equal a {
    display: flex;
    flex-wrap: wrap;
  }

  .dashboard .afm-sites a {
    text-align: center;
    width: 100%;
  }

  .dashboard .afm-sites a .panel {
    flex: 1;
  }
}

.dashboard .afm-sites a .panel-body {
  color: #000;
  padding: 5px 15px;
}

.dashboard .afm-sites a .panel-primary>.panel-heading {
  transition: all 0.3s ease-in-out;
}

.dashboard .afm-sites a:hover,
.dashboard .afm-sites a:hover .panel-title,
.dashboard .afm-sites a:hover .panel-body {
  text-decoration: none;
}

.dashboard .afm-sites a:hover .panel-primary,
.dashboard .afm-sites a:hover .panel-primary>.panel-heading {
  border-color: #5d9cd2;
}

.dashboard .afm-sites a:hover .panel-primary>.panel-heading {
  background-color: #5d9cd2;
}

.files-list {
  padding-bottom: 5px;
}

.files-list .ajaxFileUploadTitle {
  line-height: 30px;
}

.files-list.display .ajaxFileUploadTitle {
  margin-top: 0;
}

.files-list.display + h4 {
  margin-top: 10px;
}

.ajaxFileUploadTitleIcon {
  max-width:25px; float: left; margin-right: 10px;
}

.ajaxFileUploadPreview {
  max-width: 100%;
}

.file .body h4 {
  margin-top: 20px;
}

.alert .glyphicon {
  margin-right: 10px;
}

@media (min-width: 768px) and (max-width: 880px) {
  .navbar-header {
    display: none;
  }

  .navbar-nav > li > a {
    padding-left: 14px;
    padding-right: 14px;
  }
}

.show-sm {
  display: none !important;
}

@media (min-width: 768px) and (max-width: 992px) {
  .show-sm {
    display: block !important;
  }

  .hide-sm {
    display: none !important;
  }
}

.lds-dual-ring {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 5px;
}
.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 20px;
  height: 20px;
  margin: 3px 0;
  border-radius: 50%;
  border: 3px solid #337ab7;
  border-color: #337ab7 transparent #337ab7 transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}
@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
