#uploader h1 b {
  font-weight: normal;
  color:  $color-gray;
}

.file_listing {
  min-width: 100%;

  .file_listing_table_no_data {
    height: auto !important;
  }

  .file_listing_table {
    height: 100%;
    display: block;
    padding: 0;
    overflow-y: hidden !important;
  }

  .file_listing_table thead {
    display: table;
    width: 100%;
  }

  .file_listing_table thead tr {
    position: relative;
    display: block;
    width: 100%;
    border-bottom: $panel-border;
  }

  .file_listing_table tbody {
    display: block;
    overflow: auto;
    width: 100%;
    /* 100% minus thead height */
    height: calc(100% - 30px);
  }

  .file_listing_table tbody tr {
    max-width: 100%;
    width: 100%;
  }

  .file_listing_table tbody tr td:nth-child(1),
  .file_listing_table thead tr th:nth-child(1) {
    width: 400px;
    min-width: 400px;
  }

  .file_listing_table tbody tr td:nth-child(2),
  .file_listing_table thead tr th:nth-child(2) {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
  }

  .file_listing_table tbody tr td:nth-child(3),
  .file_listing_table thead tr th:nth-child(3) {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
  }
}

.file_listing #contents.grid li:hover,
.file_listing #contents.grid li.selected {
  cursor: pointer;
  border: $table-hover-border;
  background: $table-hover-bg-color;
}

.fileinfo table#contents tr td {
  font-family: $font-family-primary;
}

.fileinfo #contents li span.less_text {
  width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
  display: block;
}

.fileinfo table#contents tr td:first-child {
  & span.less_text {
    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: calc(400px - 30px);
  }

  & .fa {
    line-height: inherit;
  }
}

.fm_folder_grid, .fm_file_grid {
  font-size: xx-large !important;
}

.fm_folder_list,
.fm_folder_grid,
.fm_file_grid,
.fm_file_list {
  color: $color-gray-darker;
}

.fm_drive {
  font-size: xx-large !important;
  color:  $color-gray;
}

.newfile {
  position: absolute;
  top:0;
  left: 3px;
  right:0;
  width: 152px;
  height:23px;
  opacity:0;  filter: alpha(opacity=0);
  cursor: pointer;
  border:1px solid $color-primary;
}

.alt-fileinput {
  display: inline;
  wrap: no-wrap;
}

.filepath {
  background-color: $color-gray-lighter;
  border: 1px solid $color-gray-lighter;
  margin: 0;
  padding: 0.1em 0.3em;
  line-height: 1.7em;
  -webkit-border-top-left-radius: 6px;
  -webkit-border-bottom-left-radius: 6px;
  -moz-border-radius-topleft: 6px;
  -moz-border-radius-bottomleft: 6px;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.file_listing #contents.grid li {
  display: block;
  float: left;
  width: 100px;
  height: 80px;
  text-align: center;
  overflow: hidden;
  margin: 0.5rem;
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  border-radius: 2px;
  border: 1px solid $color-bg;
}

.file_listing #contents.list thead {
  background: $color-gray-lighter; /* Old browsers */
  background: -moz-linear-gradient(top, rgba($color-primary, 0.71) 0%, rgba($color-primary, 0.98) 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba($color-primary, 0.71)), color-stop(100%,rgba($color-primary, 0.98))); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top, rgba($color-primary, 0.71) 0%,rgba($color-primary, 0.98) 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top, rgba($color-primary, 0.71) 0%,rgba($color-primary, 0.98) 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top, rgba($color-primary, 0.71) 0%,rgba($color-primary, 0.98) 100%); /* IE10+ */
  background: linear-gradient(to bottom, rgba($color-primary, 0.71) 0%,rgba($color-primary, 0.98) 100%);
  border-bottom: 1px solid $color-gray-lighter;
  display: inline-block;
  width: 100%;
}

.btn-group.filemanager-btn-group .btn:not(:first-child):not(:last-child),
.btn-group.filemanager-path-group .btn:not(:first-child):not(:last-child) {
  border-left: 1px solid $color-gray-light;
}

.file_manager {
  position: absolute;
  top: 0px;
  bottom: 0px;
  left: 0px;
  right: 0px;
}

.file_manager #uploader {
  border-bottom: $panel-border;
}

.file_manager #uploader .filemanager-path-group {
  padding: 0;
  display: block;
  border: 1px solid  $color-gray;
  height: 30px;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  float: left;
  margin-right: 10px;
  background: $color-gray-lighter;
}

.file_manager #uploader .btn-group .btn[disabled] {
  color:  $color-gray-light;
  background-color: $color-gray-lighter;
}

.file_manager #uploader .filemanager-btn-group {
  border: 1px solid  $color-gray;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  width: auto;
  float: left;
  overflow: hidden;
}

.file_manager .upload_file #dropzone-container {
  background: $color-gray-light;
}

.fileinfo .prompt-info {
  text-align: center;
  color: $color-fg-theme;
}

.allowed_file_types {
  border-top: $panel-border;
  background: $color-bg-theme;
  z-index: 5;
  padding: 0.25rem;
}

.upload_file{
  min-width: 100%;
}

.upload_file .file_upload_main {
  position: relative;
  height: 127px;;
  width: 120px;
  display: inline-block;
  margin: 0 15px 15px 0 !important;
  border: 1px solid $color-bg;
  position: relative;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  background: $color-bg;
  margin: 2px;
  opacity: 1;
}

.upload_file .file_upload_main .show_error {
  padding: 10px 0 0 10px;
  color: $color-fg;
}

.file_upload_main .dz-progress {
  float: left;
  width: 100%;
  height: 21px !important;
  border: 1px solid  $color-gray-dark;
  border-radius: 0 !important;
  -moz-border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
}

.file_upload_main .dz-progress .dz-upload {
  background: $color-primary-light !important;
  text-align: center;
}

.file_upload_main .dz-progress .dz-upload.success {
  background: $color-success-light !important;
  float: left;
  width: 100%;
}

.upload_file .file_upload_main a.dz_file_remove {
  position: absolute;
  top: 0;
  right: 0;
  color: $color-danger;
  cursor: pointer;
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  font-size: large;
}

.upload_file .file_upload_main a.dz_file_remove:hover {
  border: 1px solid $color-fg;
}

.dropzone .dz-message {
  color: $color-gray;
}

.fileinfo .fm_dimmer {
  display: none;
  top: 0;
  bottom: 0;
  background: $loading-bg;
  opacity: 0.5;
  width: 100%;
  position: absolute;
  z-index: 3;
}

.fileinfo .delete_item, .fileinfo .replace_file {
  display: none;
  padding: 1rem;
  border-bottom: $panel-border;
  background: $color-bg-theme;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
}

.upload_file .dz_cross_btn {
  color: $color-fg-theme;
  right: 0px;
  position: absolute;
  background: transparent;
  border: none;
}

.file_manager .fileinfo #contents .fm_lock_icon {
  color: $color-danger;
  position: absolute;
  top: 6px;
  right: 0;
  left: 19px;
  font-size: 16px;
}

.file_manager .fileinfo #contents .fa-lock.tbl_lock_icon {
  color: $color-danger;
  position: relative;
  left: -5px;
  top: -5px;
  font-size: 10px;
}

.file_manager button.ON {
  background: $color-primary;
  color: $color-primary-fg;
}

.fileinfo .is_file_replace {
  width: 100%;
  height: 100%;
  background: $color-gray-lighter;
}

.file_selection_ctrl button.select_item {
  display: inline;
  background:  $color-bg-theme;
  padding: 9px 0px 9px 0px;
  margin-left: 0px;
  margin-right: -7px;
  min-width: 30px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}


.cap_select_file {
  cursor: pointer;
}

.add-folder-icon {
  position: relative;
  top: -8px;
  left: -6px;
  font-size: 8px;
  margin-right: -8px;
}
