.table thead th
{
  vertical-align: middle;
}

.btn-default {
  color: #333;
  background-color: #fff;
  border-color: #ccc;
}
.btn-default:focus {
  color: #333;
  background-color: #e6e6e6;
  border-color: #8c8c8c;
}
.btn-default:hover {
  color: #333;
  background-color: #e6e6e6;
  border-color: #adadad;
}
.btn-default:active {
  color: #333;
  background-color: #e6e6e6;
  border-color: #adadad;
}

.main-buttons
{
  margin-bottom: 10px;
  padding-top: 65px;
  padding-bottom: 12px;
  border-bottom: solid #efefef 1px;
  width: 100%;
  position: fixed;
  background: #fff;
  z-index: 5;
}

.main-buttons .btn
{
  margin-right: 5px;
}

.main-buttons + div.container
{
  padding-top: 125px;
}

.user-view .balance
{
  display: inline-block;
  margin-left: 15px;
  font-size: 1.2em;
  font-weight: bold;
  vertical-align: middle;
  line-height: 36px;
  background: #efefef;
  padding: 0px 15px;
  border: solid #dee2e6 1px;
  border-radius: 0.25rem;
}

.user-view .balance span
{
  font-size: 1.2em;
  color: #ffc107;
}

label .add-value, label .add-photo
{
  cursor: pointer;
}

#tmp_file_form
{
  display: flex;
}

#tmp_file_form button
{
  margin: 0px 0px 0px 5px;
}

#photos-holder .photo
{
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

#photos-holder .photo .remove
{
  color: #ff0000;
  font-weight: bold;
  margin-right: 15px;
  cursor: pointer;
}

#photos-holder img
{
  margin-right: 15px;
  border: solid #ccc 1px;
  padding: 5px;
  flex: 0 0 100px;
  max-width: 100px;
}

.form-group.loading::before
{
  display: inline-block;
  width: 160px;
  height: 24px;
  content: '';
  background: url('../images/loading.gif') left top no-repeat;
}

.form-group.loading button
{
  display: none;
}


#add_new_card .form-control + .form-control
{
  margin-top: 5px;
}

.file-import-form
{
  border: solid #ccc 1px;
  padding: 10px;
  max-width: 500px;
  margin-bottom: 15px;
}

.file-input span:first-child
{
  margin-right: 5px;
  align-self: center;
}

.file-input
{
  display: flex;
}

.file-input .custom-file-label::after
{
  content: 'Выбрать';
}

.file-input button
{
  margin-left: 5px;
  white-space: nowrap;
}

.required label::after
{
  display: inline;
  content: ' *';
  color: #ff0000;
}

.has-error .help-block {
  color: #ff0000;
}

main > .container {
  padding: 70px 15px 20px;
}

.footer {
  background-color: #f5f5f5;
  font-size: .9em;
  height: 60px;
}

.footer > .container {
  padding-right: 15px;
  padding-left: 15px;
}

.not-set {
  color: #c55;
  font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
  content: '';
  left: 3px;
  display: inline-block;
  width: 0;
  height: 0;
  border: solid 5px transparent;
  margin: 4px 4px 2px 4px;
  background: transparent;
}

a.asc:after {
  border-bottom: solid 7px #212529;
  border-top-width: 0;
}

a.desc:after {
  border-top: solid 7px #212529;
  border-bottom-width: 0;
}

.grid-view th {
  white-space: nowrap;
}

.hint-block {
  display: block;
  margin-top: 5px;
  color: #999;
}

.error-summary {
  color: #a94442;
  background: #fdf7f7;
  border-left: 3px solid #eed3d7;
  padding: 10px 20px;
  margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
  padding-top: 7px;
  color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
  .nav li > form > button.logout {
    display:block;
    text-align: left;
    width: 100%;
    padding: 10px 0;
  }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
  outline: none;
}
