/* ========================================
   Responsive File Manager - Main Styles
   ======================================== */

/* Base Styles */
*, *:after, *:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

body, html {
  font-family: 'Open Sans', sans-serif;
  font-size: 100%;
  padding: 0;
  margin: 0;
  height: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-weight: 200;
  background: #ececec;
  overflow: -moz-scrollbars-vertical;
}

/* Button Styles */
.btn {
  background-image: none !important;
  text-shadow: none !important;
  border-color: none !important;
  box-shadow: none !important;
  -webkit-border-radius: 0;
  border-radius: 0;
}

.btn:focus {
  outline: none;
}

/* Bootstrap v2 btn-inverse compatibility */
.btn-inverse {
  background-image: none !important;
  background: #333;
  color: white;
  border-color: #333;
}

.btn-primary,
.btn-primary.disabled,
.btn-primary[disabled] {
  background-color: #333;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
  background-color: #222;
}

/* Code Display */
pre.prettyprint, pre.no-prettify {
  height: 300px;
  margin: 0 !important;
  width: 100% !important;
  overflow: scroll;
  border-radius: 0 !important;
}

/* Legacy Bootstrap v2 input-append styles - not needed in v5 */
.input-append .add-on:last-child,
.input-append .btn:last-child,
.input-append .btn-group:last-child > .dropdown-toggle {
  border-radius: 0 !important;
}

/* Icon Fonts */
[class^="rficon-"],
[class*=" rficon-"] {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  *margin-right: .3em;
  line-height: 16px;
  vertical-align: text-top;
  background-position: 0 0;
  background-repeat: no-repeat
}

.rficon-clipboard-apply {
  background-image: url(../img/clipboard_apply.png);
}

.rficon-clipboard-clear {
  background-image: url(../img/clipboard_clear.png);
}

.rficon-upload {
  background-image: url(../img/upload.png)
}

/* Navigation and Toolbar */
.navbar {
  margin-bottom: 0;
  border-bottom: 1px solid #bbbbbb;
  padding: 0 !important;
  min-height: auto !important;

  .container-fluid {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
  }

  .navbar-inner {
    border: none;
    min-height: 35px;
    -webkit-border-radius: 0;
    border-radius: 0;
    padding-bottom: 2px;
    margin: 0;
    padding-right: 8px;
    padding-left: 8px;

    .container-fluid {
      margin: 0;
      margin-top: 0px !important;
      padding: 0;

      .brand {
        display: none;
      }

      .filters span {
        margin-top: 0;
        font-size: 13px;
        font-weight: 200;
        color: #777;
        text-shadow: 0 1px 0 #fff;
      }
    }
  }
}

/* Navbar layout improvements */
.navbar-collapse {
  .d-flex {
    flex-wrap: nowrap !important;
    
    .btn {
      padding: 0.25rem 0.5rem;
      margin: 0 0.125rem;
      font-size: 0.875rem;
      white-space: nowrap;
    }
    
    .form-control {
      padding: 0.25rem 0.5rem;
      font-size: 0.875rem;
      min-width: 150px;
      max-width: 200px;
    }
  }
}

/* Breadcrumb Styles */
ul.breadcrumb {
  margin-bottom: 5px;
  -webkit-border-radius: 0;
  border-radius: 0;
  padding-bottom: 4px;
  padding-top: 6px;
  background: #f0f0f0;
  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
  border-bottom: 1px solid #bbbbbb;

  .pull-left i {
    margin-top: 2px;
  }

  li.multiple {
    margin-top: -4px;
    padding-right: 20px;
  }
}

/* Better breadcrumb visibility for Bootstrap 5 */
.breadcrumb {
  background-color: #f8f9fa !important;
  padding: 0.5rem 1rem !important;
  margin-bottom: 0.5rem !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 0.375rem !important;
  
  .breadcrumb-item {
    font-size: 0.9rem;
    
    a {
      color: #0d6efd;
      text-decoration: none;
      
      &:hover {
        text-decoration: underline;
      }
    }
    
    &.active {
      color: #6c757d;
    }
  }
}

/* Breadcrumb and action buttons layout */
.breadcrumb {
  margin-bottom: 0 !important;
  padding: 0.5rem 0 !important;
  background: transparent !important;
  border: none !important;
}

/* Image Containers */
.img-precontainer {
  margin: auto;
  width: 100%;
  text-align: center;
  background: white;
  border: none;
}

.img-container {
  height: 91px;
  width: 122px;
  padding: 0;
  border: none;
  overflow: hidden;
  display: table-cell;
  text-align: center;
  vertical-align: middle;
  margin: auto;
  background-image: url(../img/trans.jpg);
  background-size: 13px;
}

.img-container img {
  max-width: 122px;
  max-height: 91px;
}

.img-container *,
.img-container-mini * {
  vertical-align: middle;
}

/* Alerts */
.alert {
  padding: 8px 35px 8px 14px;
  margin-bottom: 2px;
  border: 1px solid #aaaaaa;
  color: #666666;
  font-weight: 200;
  font-size: 13px;
  -webkit-border-radius: 0px;
  border-radius: 0px;
  background: white;
}

/* Utilities */
#help {
  display: none;
}

.text-center {
  text-align: center;
}

.space10 {
  clear: both;
  height: 10px;
}

/* Typography */
h4 {
  font-size: 12px;
  font-weight: 200;
  text-align: center;
  padding: 0;
  margin: 6px 0 0;
  line-height: 18px;
}

h3 {
  font-size: 14px;
  font-weight: 200;
}

/* Layout Containers */
.container-fluid {
  padding: 0 !important;
  overflow: visible !important;
  width: 100% !important;
  min-width: 800px !important;
  
  .row {
    margin: 0.25rem 0 !important;
  }
  
  .d-flex {
    padding: 0.5rem 1rem !important;
  }
}

.d-flex.align-items-center {
  padding: 0.5rem 1rem !important;
  margin: 0 !important;
}

/* Iframe Styles */
iframe {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.viewer-iframe {
  width: 100%;
  height: 500px;
  border: none;
}

.google-iframe {
  width: 100%;
  height: 500px;
  border: none;
}

/* Upload Component */
.uploader {
  position: fixed;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  z-index: 9999;
  background: #eeeeee;
  border: 1px solid #cccccc;
  display: none;
  -webkit-box-shadow: 0 0 10px 0 rgba(1, 1, 1, 0.5);
  box-shadow: 0 0 10px 0 rgba(1, 1, 1, 0.5);

  .d-flex {
    padding: 10px;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
  }

  .container1 {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .container2 {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .upload-help {
    font-size: 11px;
    font-weight: 200;
    color: #777;
    text-shadow: 0 1px 0 #fff;
    text-align: center;
  }

  .upload-tabbable {
    padding: 2px;
    height: 100%;
    overflow: hidden;

    .nav {
      margin: 0;

      li a {
        font-size: 13px;
        font-weight: 200;
        color: #777;
        text-shadow: 0 1px 0 #fff;
      }
    }

    #urlUpload {
      padding: 5px 10px;
    }

    .tab-content {
      padding: 5px;
      border-bottom: 1px solid #dddddd;
      border-left: 1px solid #dddddd;
      border-right: 1px solid #dddddd;
      background: white;
      flex-grow: 2;
      position: relative;

      .tab-pane {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 5px;
      }

      form {
        display: flex;
        flex-direction: column;
        height: 100%;

        #filesTable {
          flex-grow: 2;
          overflow-y: scroll;
          background: #fff;
          font-size: 0.95em;

          .progress {
            margin-bottom: 4px;
          }
        }
      }
    }
  }
}

/* Filter Input */
input#filter-input {
  margin: 0 0 2px;
  width: 84px;
  height: 26px;
  vertical-align: bottom;
  -webkit-border-radius: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 200;
  position: relative;
  left: 1px;
}

/* File Upload Styles */
.qq-uploader .span9 {
  margin-left: 14px !important;
  width: 690px !important;
}

.fileupload-buttonbar {
  margin-bottom: 10px;
  .progress {
    margin: 0;
  }
}

/* File Boxes */
.boxes {
  border: 1px solid #CCCCCC;
  word-wrap: break-word;
  background: white;
  -webkit-box-shadow: 1px 1px 2px 0 rgba(0, 0, 0, 0.2);
  box-shadow: 1px 1px 2px 0 rgba(0, 0, 0, 0.2);
  min-height: 115px;
  text-align: center;
}

.box, .boxx {
  word-wrap: break-word;
  vertical-align: top;
  text-align: left;
  position: relative;
  border: none;
  box-shadow: none;
  z-index: 100;
  padding: 4px;
}

.box .btn {
  width: 100%;
  background: none;
  box-shadow: none;
  border: none;
  z-index: 200;
}

/* Video Player Styles */
body .avpw .avpw_primary_button,
body .avpw .avpw_primary_button:link,
body .avpw .avpw_primary_button:visited,
body .avpw .avpw_primary_button:active {
  color: #ffffff;
  background: #999999;
  border: none;
}

body .avpw .avpw_primary_button:hover {
  border: none;
  background: #666666;
}

/* Download Form */
.download-form {
  margin-bottom: 25px;
}

/* Grid Icons */
.grid li i {
  margin-left: 2px;
  margin-right: 2px;
  z-index: 0;
}

/* Sorting Styles */
ul.sorting {
  position: absolute;
  left: -25px;
  top: 20px;
  min-width: 0;
  background: #eeeeee;

  li a:hover {
    background: #aaaaaa;
  }
}

.btn-group .dropdown-toggle.sorting-btn {
  background: none;
  border: none;
  box-shadow: none;
  position: relative;
  -webkit-box-shadow: none;
  top: -5px;
  font-size: 13px;
}

.btn-group .dropdown-toggle.sorting-btn:hover {
  background: none;
  border: none;
  box-shadow: none;
  -webkit-box-shadow: none;
}

ul.sorting.dropdown-menu > li > a {
  font-size: 12px;
  text-shadow: none;

  &.descending {
    background-image: url(../img/down.png);
    background-repeat: no-repeat;
    background-position: 6px 8px;
  }

  &.ascending {
    background-image: url(../img/up.png);
    background-repeat: no-repeat;
    background-position: 6px 8px;
  }
}

/* Fix sorting dropdown z-index to appear above other elements */
.dropdown-menu {
  z-index: 9999 !important;
  position: absolute !important;
}

/* Sorter Container */
.sorter-container {
  a.sorter {
    color: black;
  }

  a.descending {
    padding-left: 9px;
    background-image: url(../img/down.png);
    background-repeat: no-repeat;
    background-position: 0px 3px;
  }

  a.ascending {
    padding-left: 9px;
    background-image: url(../img/up.png);
    background-repeat: no-repeat;
    background-position: 0px 4px;
  }

  margin-top: 5px;
  margin-bottom: 0px;
  -webkit-border-radius: 0px;
  border-radius: 0px;
  padding-bottom: 4px;
  padding-top: 6px;
  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
  background-color: #f5f5f5;
  position: relative;
  border-bottom: 1px solid #bbbbbb;
  height: 24px;

  .img-dimension,
  .file-date,
  .file-size,
  .file-extension,
  .file-name,
  .file-operations {
    display: block;
    position: absolute;
    top: 0px;
    z-index: 100;
    -webkit-box-shadow: none;
    box-shadow: none;
    text-align: left;
    font-size: 13px;
    margin-top: 1px;
    color: #999999;
  }

  .file-operations {
    width: 110px;
    right: 0px;
  }

  .img-dimension {
    width: 65px;
    right: 123px;
  }

  .file-date {
    width: 70px;
    right: 188px;
  }

  .file-size {
    width: 55px;
    right: 258px;
  }

  .file-extension {
    width: 40px;
    right: 313px;
  }

  .file-name {
    width: 50px;
    left: 52px;
  }
}

.img-dimension, .file-date, .file-size, .file-extension, .file-name, .file-operations {
  font-size: 12px;
  font-weight: 200;
  color: #777;
  text-shadow: 0 1px 0 #fff;
  display: none;
}

/* View Controller */
.view-controller {
  text-align: left;
  .btn-group > .btn:first-child, .btn-group > .btn:last-child {
    -webkit-border-radius: 0px;
    border-radius: 0px;
  }
  
  .btn {
    padding: 0.25rem 0.5rem !important;
    margin: 0 0.125rem !important;
  }
}

/* Fix view controller active states */
.view-controller .btn {
  background-color: #f8f9fa !important;
  border-color: #f8f9fa !important;
  color: #212529 !important;
  
  &.btn-dark {
    background-color: #212529 !important;
    border-color: #212529 !important;
    color: white !important;
  }
}

/* Filter Styles */
.navbar .filters .btn {
  margin-bottom: 2px;
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 5px;
  padding-right: 5px;
  margin-top: 5px;
}

.filters .types {
  text-align: right;
  gap: 0.25rem !important;
  
  span {
    margin-right: 0.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }
  
  .ff-label-type-all,
  .ff-label-type-1,
  .ff-label-type-2,
  .ff-label-type-3,
  .ff-label-type-4,
  .ff-label-type-5 {
    padding: 0.25rem 0.5rem !important;
    margin: 0 0.125rem !important;
    font-size: 0.875rem !important;
    flex-shrink: 0;
  }
  
  .filter-input {
    min-width: 120px !important;
    max-width: 180px !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
    flex-shrink: 0;
  }
}

/* Filter button active states - checked radio buttons should be dark */
input[type="radio"]:checked + label.ff-label-type-1,
input[type="radio"]:checked + label.ff-label-type-2,
input[type="radio"]:checked + label.ff-label-type-3,
input[type="radio"]:checked + label.ff-label-type-4,
input[type="radio"]:checked + label.ff-label-type-5,
input[type="radio"]:checked + label.ff-label-type-all {
  background-color: #212529 !important;
  border-color: #212529 !important;
  color: white !important;
}

/* Ensure unchecked filter buttons are light */
input[type="radio"]:not(:checked) + label.ff-label-type-1,
input[type="radio"]:not(:checked) + label.ff-label-type-2,
input[type="radio"]:not(:checked) + label.ff-label-type-3,
input[type="radio"]:not(:checked) + label.ff-label-type-4,
input[type="radio"]:not(:checked) + label.ff-label-type-5,
input[type="radio"]:not(:checked) + label.ff-label-type-all {
  background-color: #f8f9fa !important;
  border-color: #f8f9fa !important;
  color: #212529 !important;
}

/* Radio button states for sorting */
input[name="radio-sort"]:checked + label {
  background-color: #212529 !important;
  border-color: #212529 !important;
  color: white !important;
}

input[name="radio-sort"]:not(:checked) + label {
  background-color: #f8f9fa !important;
  border-color: #f8f9fa !important;
  color: #212529 !important;
}

/* Action Buttons */
.ms-auto {
  .btn {
    padding: 0.25rem 0.5rem !important;
    margin: 0 0.125rem !important;
    font-size: 0.875rem !important;
  }
  
  .dropdown-toggle {
    padding: 0.25rem 0.5rem !important;
  }
  
  small {
    font-size: 0.8rem !important;
    margin: 0 0.25rem !important;
  }
}

/* Action buttons in breadcrumb area - icon only style */
.flex-shrink-0 {
  .btn {
    background: transparent !important;
    border: none !important;
    padding: 0.25rem !important;
    margin: 0 0.25rem !important;
    font-size: 1rem !important;
    color: #6c757d !important;
    box-shadow: none !important;
    
    &:hover {
      background: rgba(0,0,0,0.1) !important;
      color: #495057 !important;
    }
    
    &:focus {
      box-shadow: none !important;
    }
  }
  
  .dropdown-toggle {
    &::after {
      display: none; // Hide dropdown arrow
    }
  }
  
  small {
    font-size: 0.8rem !important;
    margin: 0 0.25rem !important;
    white-space: nowrap;
  }
}

/* Tooltips */
.tooltip.in {
  z-index: 10000;
  opacity: 1;
  filter: alpha(opacity=1);
  font-weight: bold;
}

.tooltip {
  font-weight: bold;
  z-index: 10000;
}

/* GRID SYSTEM */
.grid {
  padding: 0px 0px;
  margin: 0 auto;
  list-style: none;
  -webkit-overflow-scrolling: touch;
}

.ui-draggable-helper {
  z-index: 10;
}

.grid li {
  display: inline-block;
  width: 124px;
  border: none;
  margin: 4px;
  margin-bottom: 8px;
  padding: 0px;
  vertical-align: top;
}

.grid figure {
  margin: 0;
  position: relative;
  display: block;
  width: 122px;
  margin: auto;

  &:hover {
    background: #e0e0e0 !important;
  }
}

.list-view1.grid li {
  width: 100%;
  figure {
    width: 100%;
  }
}

/* Fix column view (view2) to show 3 columns instead of 2 */
.list-view2.grid {
  li {
    width: calc(33.33% - 8px) !important;
    max-width: calc(33.33% - 8px) !important;
    display: inline-block !important;
    vertical-align: top !important;
  }
}

.grid figcaption {
  text-align: center;
  padding: 2px;
  padding-top: 8px;
  color: white;
  height: 30px;
  width: 122px;
  margin-left: 0px;
  margin-right: 0px;
  position: absolute;
  top: auto;
  bottom: 0;
  -webkit-box-shadow: inset 0px 0px 8px 0px rgba(41, 41, 41, 0.5);
  box-shadow: inset 0px 0px 8px 0px rgba(41, 41, 41, 0.5);

  a {
    margin: 0px;
    padding: 3px;
  }

  h3 {
    margin: 0;
    padding: 0;
    color: #fff;
  }
}

.grid h4 {
  text-align: center;
  color: black;
  padding: 0px;
  margin-bottom: 4px;
  margin-top: 4px;
}

/* Grid Figure Styles */
.grid figure .box {
  box-sizing: content-box;
  cursor: pointer;
}

.list-view0.grid,
.list-view1.grid,
.list-view2.grid {
  figure {
    .box {
      max-width: 100%;
      display: block;
      position: relative;
      overflow: hidden;
      z-index: 1;

      h4.ellipsis {
        height: 18px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      h4 {
        z-index: 1;

        a {
          z-index: 1;
        }
      }
    }
  }
}

/* Grid Hover Effects */
.no-touch .list-view0 figure .box {
  z-index: 1;
  -webkit-transition: -webkit-transform 0.3s;
  -moz-transition: -moz-transform 0.3s;
  transition: transform 0.3s;
}

.list-view0.grid .ui-state-highlight .img-precontainer {
  background: grey !important;
}

.list-view0.grid .ui-state-highlight .img-precontainer .img-container {
  background: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(255, 255, 255, 0.4) 5px, rgba(255, 255, 255, 0.3) 10px);
  border: none;
  overflow: hidden;
}

.list-view0.grid .ui-state-hover .img-precontainer .img-container {
  background: #666;
}

.list-view1.grid, .list-view2.grid {
  .ui-state-highlight:nth-child(odd) figure {
    background: #dddddd !important;
    border-bottom-color: #444 !important;
  }
  .ui-state-highlight:nth-child(even) figure {
    background: #cccccc !important;
    border-bottom-color: #aaa !important;
  }
  .ui-state-highlight.ui-state-hover figure {
    background-color: #aaa !important;
  }
}

.no-touch .list-view0 figure:hover .box,
.no-touch .list-view0 figure.cs-hover .box {
  -webkit-box-shadow: 0px 0px 4px 0px rgba(1, 1, 1, 0.5);
  box-shadow: 0px 0px 4px 0px rgba(1, 1, 1, 0.5);
  -webkit-transform: translateY(-26px);
  -moz-transform: translateY(-26px);
  -ms-transform: translateY(-26px);
  transform: translateY(-26px);
}

.list-view0 figure:hover .box.no-effect,
.list-view0 figure.cs-hover .box.no-effect,
.no-effect {
  -webkit-box-shadow: none;
  box-shadow: none;
  -webkit-transform: none;
  -moz-transform: none;
  -ms-transform: none;
  transform: none;
}

.list-view0 .img-precontainer-mini {
  display: none;
  background: none;
}

/* Links */
a, a:hover {
  color: black;
  text-decoration: none;
}

.back-directory {
  .img-precontainer,
  .img-precontainer-mini,
  .box {
    background: none;
  }
}

/* Forms */
form {
  margin: 0px;
  padding: 0px;
}

/* Modals */
.modal {
  width: 60%;
  margin-left: -30%;
}

.modal-body {
  padding: 6px;
  form, input, textarea {
    margin: 0px;
    border-radius: 0;
  }
  .text-center {
    padding-bottom: 6px;
  }
}

.modal-footer {
  padding: 7px;
}

.modal-header {
  padding: 7px 8px !important;
}

.modal-header h3 {
  font-weight: 300;
  font-size: 20px;
}

/* Fix bootbox modal centering */
.bootbox .modal-dialog {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  width: auto !important;
  max-width: 90vw !important;
}

.bootbox .modal {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* List View Sorter */
.list-view1.sorter-container {
  display: block;
}

.list-view0.sorter-container, .list-view2.sorter-container {
  display: none;
}

/* Selector Styles */
.selector {
  z-index:1;
  .cont {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    input {
      position: absolute;
      opacity: 0;
      cursor: pointer;
      &:checked ~ .checkmark {
        background-color: #2196F3;
      }
    }
    .checkmark {
      position: absolute;
      top: 0;
      left: 0;
      height: 18px;
      width: 18px;
      background-color: #fff;
      border: 1px solid #ddd;
      transition: background-color 0.5s ease;
      -webkit-transition: background-color .5s ease-out;
      -moz-transition: background-color .5s ease-out;
      -o-transition: background-color .5s ease-out;
      &:after {
        content: "";
        position: absolute;
        display: none;
        left: 5px;
        top: 1px;
        width: 6px;
        height: 12px;
        border: solid white;
        border-width: 0 3px 3px 0;
        -webkit-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        transform: rotate(45deg);
      }
    }
    &:hover input ~ .checkmark {
      background-color: #ddd;
    }
    input:checked ~ .checkmark:after {
      display: block;
    }
  }
}

/* List View 0 (Grid View) */
.list-view0.grid {
  .selector {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 22px;
  }
  .img-precontainer {
    .img-container {
      img {
        max-width: 122px !important;
        max-height: 91px !important;
      }
      img.icon {
        width: 122px;
        margin-top: 0px;
      }
    }
    .filetype {
      position: absolute;
      top: 0px;
      width: 122px;
      text-align: center;
      color: white;
      font-size: 13px;
      line-height: 22px;
    }
  }
  .cover {
    background: rgba(255, 255, 255, 0.25);
    width: 122px;
    position: absolute;
    top: 22px;
    right: 0px;
    height: 69px;
  }
  .box {
    background: white;
  }
  .directory {
    background: #dddddd;
  }
  figure.back-directory {
    .directory {
      background: #bbbbbb;
    }
  }
  figcaption {
    background: #ffffff;
  }
  .selected {
    figure {
      border: none;
      height: 126px;
      & > a, figcaption, .box {
        display: none
      }
    }
  }
}

/* List View 1 & 2 (List Views) */
.list-view1.grid, .list-view2.grid {
  li {
    margin: 0px;
    &.back {
      figure.back-directory {
        height: 34px;
      }
    }
    &.no-selector {
      .img-container-mini {
        padding-left: 0;
      }
      figure {
        .box {
          margin-left: 70px;
        }
      }
    }
  }
  li:nth-child(odd) figure {
    background: #f9f9f9;
  }
  li:nth-child(odd) figure.directory {
    background: #eaeaea;
  }

  li figure {
    border-bottom: 1px solid #aaa;
    background: white;
    &.back-directory {
      background: #bbbbbb;
      .box {
        background: none;
      }
    }
    &.directory {
      background: #efefef;
      box {
        padding: 0px;
        min-height: 10px;
      }
    }
    .box {
      h4 {
        padding-top: 1px;
        font-size: 13px;
        text-align: left;
      }
      margin-left: 70px;
      -webkit-transition: none;
      -moz-transition: none;
      transition: none;
    }
  }
  .img-precontainer-mini {
    display: block;
    position: absolute;
    width: 45px;
    left: 22px;
    height: 34px;
    overflow: hidden;
    text-align: center;
    img {
      max-width: 45px;
      width: 45px;
    }
    .filetype {
      position: absolute;
      top: 1px;
      left:0;
      text-align: center;
      padding: 1px 2px;
      font-size: 13px;
      line-height: 32px;
      width: 45px;
      height: 32px;
      color: #fff;
      background: #333;
    }
  }
  .cover {
    display: none;
  }

  .selector{
    top: 8px;
    left: 2px;
    position: relative;
    .cont{
      margin:0;
    }
  }
  .img-container-mini {
    width: 45px;
    height: 34px;
    border: none;
    overflow: hidden;
    text-align: center;
    vertical-align: middle;
    margin: auto;
    left: 24px;
  }
  .img-precontainer-mini.original-thumb {
    padding: 0px;
    img {
      width: auto;
      max-height: 32px;
    }
    img.original {
      width: auto;
      width: auto;
      height: auto;
    }
  }

  .img-precontainer {
    display: none;
  }

  figcaption {
    background: none;
    width: 120px;
    position: absolute;
    right: 0px;
    top: 0px;
    z-index: 1;
    bottom: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
    text-align: right;
  }
  .selected figure {
    background: #cccccc !important;
  }
}

/* List View 1 Specific */
.list-view1.grid {
  .img-dimension, .file-date, .file-size, .file-extension {
    overflow: hidden;
    display: block;
    position: absolute;
    top: 0px;
    z-index: 1;
    -webkit-box-shadow: none;
    box-shadow: none;
    text-align: left;
    margin-top: 7px;
  }
  .img-dimension {
    width: 65px;
    right: 120px;
  }
  .file-date {
    width: 70px;
    right: 185px;
  }
  .file-size {
    width: 55px;
    right: 255px;
  }
  .file-extension {
    width: 40px;
    right: 310px;
  }
  figure .box {
    padding-right: 352px;
  }
}

/* List View 2 Specific */
.list-view2.grid {
  figure {
    .box {
      padding-right: 115px;
    }
  }
}

/* File Type Colors */
.list-view2.grid, .list-view1.grid {
  .img-precontainer-mini .filetype {
    &.pdf {
      background: #CB0011;
    }
    &.css {
      background: #D10698;
    }
    &.ai {
      background: #D6772F;
    }
    &.psd {
      background: #0960A4;
    }
    &.html, &.xhtml {
      background: #035BC4;
    }
    &.fla, &.flv {
      background: #CF302E;
    }
    &.ppt, &.pptx {
      background: #DA5B00;
    }
    &.xls, &.xlsx, &.css {
      background: #1A712C;
    }
    &.rts, &.doc, &.docx {
      background: #002093;
    }
    &.rar, &.zip, &.gzip {
      background: #FE9221;
    }
    &.mp4, &.mpeg, &.mov, &.avi, &.mpg, &.wma, &.webm {
      background: #31231E;
    }
    &.mp3, &.m4a, &.ac3, &.aiff, &.mid, &.ogg, &.wav {
      background: #9F008B;
    }
    &.odt, &.ots, &.ott, &.odb, &.odg, &.otp, &.otg, &.odf, &.ods, &.odp {
      background: #367BBE;
    }
    &.jpg, &.jpeg, &.png, &.bmp, &.gif, &.tiff, &.svg {
      background: #CFA554;
    }
    &.txt, &.sql, &.xml, &.log, &.iso, &.dmg {
      background: #CACACA;
    }
    &.ade, &.adp, &.mdb, &.accdb {
      background: #B61C19;
    }
  }
}

/* Context Menu */
.lightbox-content {
  overflow: hidden;
  padding: 0px;
  background: none;
  box-shadow: none;
  border-radius: 0;
  border: 0;
}

.context-menu-list {
  font-family: 'Open Sans', sans-serif;
  width: 200px;
  background: #fff;
  font-size: 12px;
  margin: 0;
  padding: 5px
}

.context-menu-item {
  background-color: #fff;
  position: relative;
  height: auto;
  word-wrap: break-word;
  -webkit-user-select: none;
  -moz-user-select: 0;
  -ms-user-select: none;
  user-select: none;
  padding: 5px 5px 5px 30px
}

.context-menu-item:last-child {
  border: none
}

.context-menu-separator {
  padding-bottom: 0;
  border-bottom: 1px solid #DDD
}

.context-menu-item.hover {
  background-color: #DDD
}

.context-menu-input.hover,
.context-menu-item.disabled.hover {
  cursor: default;
  background-color: #EEE
}

.context-menu-item.icon {
  vertical-align: middle;
  background-position: 4px 5px;
  width: auto;
  display: list-item
}

/* Context Menu Icons */
.context-menu-item.icon-edit {
  background-image: url(../img/file_edit.png)
}

.context-menu-item.icon-cut {
  background-image: url(../img/cut.png)
}

.context-menu-item.icon-copy {
  background-image: url(../img/copy.png)
}

.context-menu-item.icon-rename {
  background-image: url(../img/rename.png)
}

.context-menu-item.icon-preview {
  background-image: url(../img/preview.png)
}

.context-menu-item.icon-dimension {
  background-image: url(../img/dimension.png)
}

.context-menu-item.icon-date {
  background-image: url(../img/date.png)
}

.context-menu-item.icon-label {
  background-image: url(../img/label.png)
}

.context-menu-item.icon-size {
  background-image: url(../img/size.png)
}

.context-menu-item.icon-download {
  background-image: url(../img/download.png)
}

.context-menu-item.icon-paste {
  background-image: url(../img/page_white_paste.png)
}

.context-menu-item.icon-clipboard-apply {
  background-image: url(../img/clipboard_apply.png)
}

.context-menu-item.icon-delete {
  background-image: url(../img/page_white_delete.png)
}

.context-menu-item.icon-add {
  background-image: url(../img/page_white_add.png)
}

.context-menu-item.icon-quit {
  background-image: url(../img/door.png)
}

.context-menu-item.icon-info {
  background-image: url(../img/info.png)
}

.context-menu-item.icon-extract {
  background-image: url(../img/zip.png)
}

.context-menu-item.icon-url {
  background-image: url(../img/url.png)
}

.context-menu-item.icon-edit_img {
  background-image: url(../img/edit_img.png)
}

.context-menu-item.icon-duplicate {
  background-image: url(../img/duplicate.png)
}

.context-menu-item.icon-key {
  background-image: url(../img/key.png)
}

/* Dropzone */
.dropzone {
  border: 1px solid rgba(0, 0, 0, 0.03);
  min-height: 360px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.03);
  padding: 23px;
  .dz-success * {
    cursor: pointer !important;
  }
}

.dropzone .dz-default.dz-message {
  opacity: 1;
  -ms-filter: none;
  filter: none;
  -webkit-transition: opacity 0.3s ease-in-out;
  -moz-transition: opacity 0.3s ease-in-out;
  -o-transition: opacity 0.3s ease-in-out;
  -ms-transition: opacity 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out;
  background-repeat: no-repeat;
  background-position: 0 0;
  position: absolute;
  width: 428px;
  height: 123px;
  margin-left: -214px;
  margin-top: -61.5px;
  top: 50%;
  left: 50%;
}

/* TUI Image Editor */
.tui-image-editor-container{
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 780px) {
  #view2 {
    display: none;
  }
}

@media (min-width: 840px) {
  .mobile-inline-visible {
    display: none !important;
  }
}

@media (max-width: 839px) {
  body {
    padding-top: 0px !important;
  }

  .mobile-inline-visible {
    display: inline !important;
  }

  .filters .types {
    text-align: left;
  }

  .navbar .navbar-inner .container-fluid .brand {
    display: block;
  }

  .navbar .navbar-inner {
    padding-bottom: 4px;
  }

  .filters {
    div.span3.half, div.span2.half, div.span4.half {
      float: left;
      width: auto;
      margin-right: 10px;
    }
    div.entire {
      float: none;
      width: 100%;
      clear: both;
    }
  }

  .container-fluid {
    margin: 0px !important;
    padding: 0px;
  }

  #qLbar {
    height: 50px !important;
  }
}

@media (min-width: 400px) and (max-width: 839px) {
  .filters .row-fluid .half {
    width: 48.61878453038674%;
    *width: 48.56559304102504%;
    float: left;
  }
}

@media (max-width: 610px) {
  .list-view1.grid figure {
    .box {
      padding-right: 312px;
    }
    .file-extension {
      display: none;
    }
  }

  .sorter-container .file-extension {
    display: none;
  }
}

@media (max-width: 565px) {
  .list-view1.grid figure {
    .box {
      padding-right: 257px;
    }
    .file-size {
      display: none;
    }
  }

  .sorter-container .file-size {
    display: none;
  }
}

@media (max-width: 495px) {
  .list-view1.grid figure {
    .box {
      padding-right: 187px;
    }
    .file-date {
      display: none;
    }
  }

  .sorter-container .file-date {
    display: none;
  }
}

@media (max-width: 430px) {
  .list-view1.grid figure {
    .box {
      padding-right: 115px;
    }
    .img-dimension {
      display: none;
    }
  }

  .sorter-container .img-dimension {
    display: none;
  }

  .breadcrumb {
    margin-left: 0px;
    margin-right: 0px;
  }
}
