.file-explorer-panel {
  flex: 1 1 auto;
  background-color: var(--s-card-bg);
  border: 1px solid var(--s-card-border);
  border-radius: 6px;
}

.file-explorer-folder-tree {
  padding: 10px 5px;
}

.file-explorer-folder-tree ul {
  margin-left: 0;
  padding-left: 0;
}

.file-explorer-folder-tree li ul {
  padding-left: 1rem;
  display: none;
}

.file-explorer-folder-tree li.expanded > ul {
  display: block;
}

.file-explorer-folder {
  list-style: none;
}

.file-explorer-folder .folder-name {
  display: block;
  padding: 4px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.file-explorer-folder.active > .folder-name {
  font-weight: bold;
  color: rgb(var(--bs-link-hover-color-rgb));
}

.file-explorer-folder .folder-icon {
  margin-right: 4px;
  color: var(--bs-orange);
}

@media (min-width: 767px) {
  .file-explorer-panel {
    display: flex;
    flex-direction: row;
    align-items: stretch;
  }

  .file-explorer-folder-tree {
    flex: 0 0 250px;
  }
}

.file-explorer-tiles-view {
  display: flex;
  flex: 1 1 auto;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 10px;
  align-content: flex-start;
}

.file-explorer-tile {
  cursor: move;
  padding: 0;
  overflow: hidden;
  margin: 6px;
  position: relative;
  width: calc(100% - 12px);
}

@media (min-width: 968px) {
  .file-explorer-tile {
    width: calc(50% - 12px);
  }
}

@media (min-width: 1200px) {
  .file-explorer-tile {
    width: calc(25% - 12px);
  }
}

@media (min-width: 1540px) {
  .file-explorer-tile {
    width: calc(16.66% - 12px);
  }
}

@media (min-width: 1800px) {
  .file-explorer-tile {
    width: calc(12.5% - 12px);
  }
}

.file-explorer-tile .file-icon {
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--s-card-border);
  border-radius: 6px;
  aspect-ratio: 1/1;
}

.file-explorer-tile .file-icon-font {
  font-size: 72px;
  color: #333;
}

.file-explorer-tile .file-icon-inner {
  display: flex;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.file-explorer-tile .file-icon-thumb img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  -o-object-fit: cover;
  object-fit: cover;
  transition: transform .5s ease;
}

.file-explorer-tile .file-icon-thumb:hover img {
  transform: scale(1.25);
}


.file-explorer-tile .file-icon-font.fa-folder {
  color: var(--bs-orange);
}

.file-explorer-tile .file-icon-font.fa-file-excel {
  color: green;
}

.file-explorer-tile .file-icon-font.fa-file-word {
  color: #3580d0;
}

.file-explorer-tile .file-icon-font.fa-file-pdf {
  color: indianred;
}

.file-explorer-tile .file-icon-font.fa-file-image {
  color: rebeccapurple;
}

.file-explorer-tile .file-icon-font.fa-file-text {
  color: navy;
}

.file-explorer-tile .file-name,
.file-explorer-tile .file-info {
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
}

.file-explorer-tile .file-name {
  white-space: normal;
  word-break: break-all;
  font-size: 12px;
  margin-top: 4px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.file-explorer-tile .file-name a {
  text-decoration: none;
}

.file-explorer-tile .file-info {
  color: #666;
  font-size: 11px;
  white-space: nowrap;
  margin-bottom: 4px;
}

.file-explorer-tile .file-actions {
  cursor: pointer;
  position: absolute;
  right: 2px;
  top: 2px;
}

.file-explorer-tile .file-actions > button {
  border: 0;
  font-size: 20px;
  opacity: 0.4;
  padding: 0;
}

.file-explorer-tile .file-actions > button:hover {
  opacity: 1;
}

.file-explorer-tile .file-actions > button::after {
  display: none;
}
