// Logo
.navbar-logo {
  margin: 9px;
  img {
    width: 32px;
    height: 32px;
  }
}

// Navbar color
.navbar {
  background-color: #263238;
}

// Selected table line
.table tr {
  &.active {
    td {
      background-color: #e8e8e8 !important;
    }
  }
}

// Documents list
.table-documents {
	thead th {
    cursor: pointer;
	}
	
	tbody tr {
    cursor: pointer;
	}
	
	.cell-tags {
    padding: 2px;
    
    .label {
      margin-left: 2px;
      
      .full {
        display: none;
      }
    }
    
    &:hover {
      .tags {
        position: absolute;

        .label {
          .full {
            display: inline;
          }
          
          .shorten {
            display: none;
          }
        }
      }
    }
	}
}

// $http loader
.loader {
	position: relative;
	top: -2px;

	&.loader-hide {
	  visibility: hidden;
	}
}

// Users list
.table-users {
	tbody tr {
    cursor: pointer;
  }
}

// Logs list
.table-logs {
	tbody tr td {
    &:first-child {
      white-space: nowrap;
    }
    
    .cell-message {
      word-wrap: break-word;
    }
	}
}

// File view
.modal-fileview {
	top: 2%;
	max-height: 96%;
	overflow-y: scroll;

  img {
    width: 100%;
  }
}

// File thumbnails
.thumbnail-file {
	cursor: pointer;
}

.thumbnails-file [class*="span"]:first-child {
    margin-left: 2.5641%;
}

.collapse[style="height: auto;"] {
	overflow: visible;
}

// Fields bound to datepicker
input[readonly][datepicker-popup] {
	cursor: pointer;
}

// Share link
input[readonly].share-link {
  cursor: pointer;
}

// Inline edition
.inline-edit {
	cursor: pointer;
	display: block;
	
	span {
    display: block;
	}
	
	input {
	  display: none;
	  margin-bottom: 0;
	}
	
	&.active {
    span {
		  display: none;
		}
		
		input {
		  display: inline-block;
		}
	}
}

// Pagination
.pagination > .active > a {
  cursor: pointer !important;
}

// Pagination box
.pagination-box {
  pagination {
    vertical-align: top;
  }

  select {
    vertical-align: top;
    width: auto;
    display: inline-block;
    margin: 20px 0;
  }
}

.nav-text-error {
  color: #b94a48 !important;
}

// Dirty Bootstrap 3 fix, see https://github.com/twbs/bootstrap/issues/6686
.row { margin: 0; padding: 0 }
.navbar-nav.navbar-right:last-child {
  margin-right: auto;
}

// Drag & drop related
.bg-success {
  background-color: #dff0d8;
}

.upload-zone {
  min-height: 150px;
}

.thumbnail-checked {
  background-color: #dff0d8;
}

.pointer {
  cursor: pointer;
}

.tab-pane {
  margin-top: 20px;
}

// Tag tree
.tag-tree-dropdown {
  padding-left: 0;

  .tag-tree {
    li {
      margin-left: 20px;
      margin-top: 8px;
      margin-bottom: 8px;
      white-space: nowrap;
    }
  }
}

// Vertical alignment
.vertical-center {
  min-height: 100vh;

  /* Make it a flex container */
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;

  /* Align the bootstrap's container vertically */
  -webkit-box-align : center;
  -webkit-align-items : center;
  -moz-box-align : center;
  -ms-flex-align : center;
  align-items : center;
}

// Login
.login-box-container {
  background: url('../img/background.jpg') no-repeat center;
}

.login-box {
  background: rgba(255, 255, 255, 0.5);
  padding: 20px;
  border-radius: 4px;

  .help-block, .checkbox {
    color: white;
  }
}

/* Styling for the ngProgress itself */
#ngProgress {
  margin: 0;
  padding: 0;
  z-index: 99998;
  background-color: green;
  color: green;
  box-shadow: 0 0 10px 0; /* Inherits the font color */
  height: 2px;
  opacity: 0;

  /* Add CSS3 styles for transition smoothing */
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}

/* Styling for the ngProgress-container */
#ngProgress-container {
  position: fixed;
  margin: 0;
  padding: 0;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
}