/* Figma 402:189402: Downloads in File Explorer. */
#folder-window {
  width: min(1282px, calc(100vw - 32px));
  height: min(818px, calc(100vh - 80px));
  top: calc(50% - 24px);
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 8px;
  background: linear-gradient(110deg, #fce8de, #f7e3dd 55%, #dff3f1);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.12);
}

#folder-window.fw-maximized {
  width: 100vw;
  height: calc(100vh - 48px);
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
  border-radius: 0;
}

body:has(#folder-window.fw-maximized.open) #hv-switcher {
  display: none;
}

.fw-asset-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
  pointer-events: none;
}

#folder-window .fw-tabs {
  height: 40px;
  padding: 8px 8px 0;
  align-items: flex-end;
  background: transparent;
}

#folder-window .fw-tab {
  width: 240px;
  max-width: 240px;
  height: 32px;
  padding: 0 0 0 8px;
  gap: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 6px 6px 0 0;
}

#folder-window .fw-tab > img { width: 16px; height: 16px; }
#folder-window .fw-tab-x { width: 40px; height: 32px; padding: 0; }
#folder-window .fw-tab-x .window-control-icon { width: 10px; height: 10px; }
#folder-window .fw-new-tab { width: 40px; height: 32px; margin: 0; }
#folder-window .fw-new-tab img { width: 12px; height: 12px; }
#folder-window .fw-win-controls { align-self: flex-start; margin-top: -4px; }
#folder-window .fw-wc-btn { height: 32px; }

#folder-window .fw-nav {
  height: 48px;
  padding: 0 8px;
  gap: 8px;
  border: 0;
  background: rgba(255, 255, 255, 0.5);
}

#folder-window .fw-nav-btn { width: 40px; height: 40px; flex-shrink: 0; }
#folder-window .fw-nav-btn img { width: 12px; height: 12px; }
#folder-window .fw-nav-btn:disabled { opacity: 0.45; }
#folder-window .fw-breadcrumb { height: 32px; background: rgba(255, 255, 255, 0.8); border-radius: 3px; }
#folder-window .fw-breadcrumb > img { margin-right: 4px; }
#folder-window .fw-search-box { width: 268px; height: 32px; border: 0; background: rgba(255, 255, 255, 0.8); border-radius: 3px; gap: 12px; padding: 0 16px; }
#folder-window .fw-search-box input { min-width: 0; }

#folder-window .fw-toolbar {
  height: 46px;
  padding: 3px 0;
  gap: 0;
  border-bottom: 1px solid #f0f0f0;
}

#folder-window .fw-tb-btn { width: 40px; height: 40px; justify-content: center; padding: 0; gap: 8px; border-radius: 4px; flex-shrink: 0; }
#folder-window .fw-command-new { width: 95px; }
#folder-window .fw-command-sort { width: 93px; }
#folder-window .fw-command-view { width: 97px; }
#folder-window .fw-tb-right { width: 98px; }
#folder-window .fw-tb-sep { width: 4px; margin: 0; border-left: 1px solid #eee; background: transparent; height: 24px; }
.fw-chevron { display: inline-block; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; flex-shrink: 0; }
.fw-chevron-down { transform: translateY(-2px) rotate(45deg); }
.fw-chevron-up { transform: translateY(2px) rotate(225deg); }
#folder-window .fw-tb-btn .fw-chevron { width: 5px; height: 5px; }

#folder-window .fw-body { background: #fff; }
#folder-window .fw-sidebar { width: 258px; background: #fff; padding: 7px 0; border-color: #f0f0f0; }
#folder-window .fw-sb-item { position: relative; height: 32px; margin: 0 8px; padding: 0 8px 0 32px; gap: 8px; color: #242424; font-size: 12px; line-height: 16px; border-radius: 4px; }
#folder-window .fw-file-name { line-height: 16px; }
#folder-window .fw-sb-item.active { background: #f3f3f3; color: #242424; }
#folder-window .fw-sb-item.active::before { content: ''; position: absolute; left: 0; top: 8px; width: 3px; height: 16px; border-radius: 2px; background: #0078d4; }
#folder-window .fw-sb-sep { height: 32px; margin: 0 8px; border-bottom: 1px solid #eee; background: transparent; transform: translateY(-16px); pointer-events: none; }
#folder-window #fw-sb-pc::before { content: ''; position: absolute; left: 14px; width: 6px; height: 6px; border-right: 1px solid #888; border-bottom: 1px solid #888; transform: rotate(-45deg); }
.fw-pin { position: relative; margin-left: auto; width: 12px; height: 12px; transform: rotate(40deg); }
.fw-pin::before { content: ''; position: absolute; top: 1px; left: 3px; width: 6px; height: 6px; background: #909090; clip-path: polygon(0 0, 100% 0, 75% 65%, 100% 100%, 0 100%, 25% 65%); }
.fw-pin::after { content: ''; position: absolute; top: 6px; left: 5.5px; width: 1px; height: 6px; background: #909090; }

#folder-window .fw-content-area { padding: 20px 38px 0 21px; overflow-x: auto; }
#folder-window .fw-list-header,
#folder-window .fw-file-row { grid-template-columns: 27px minmax(180px, 1fr) 240px 221px 137px; min-width: 805px; }
#folder-window .fw-list-header { height: 36px; padding: 0; border: 0; }
#folder-window .fw-list-header > span { height: 36px; display: flex; align-items: center; font-size: 12px; font-weight: 400; color: #242424; }
#folder-window .fw-list-header > span:nth-child(3),
#folder-window .fw-list-header > span:nth-child(4) { border-left: 1px solid #eee; padding-left: 8px; }
#folder-window .fw-list-header > span:nth-child(5) { padding-left: 8px; text-align: left !important; }
#folder-window .fw-list-header .fw-chevron { margin-left: 10px; }
#folder-window .fw-list-header .fw-header-check { width: 14px; height: 14px; border: 1px solid #888; border-radius: 2px; margin: auto; }
#folder-window .fw-header-check[aria-checked="true"] { background: url('icons/Checkbox.png') center / contain no-repeat; border: 0; }
#folder-window .fw-header-check[aria-checked="mixed"] { background: #0067c0; border-color: #0067c0; }
#folder-window .fw-header-check[aria-checked="mixed"]::after { content: ''; width: 8px; height: 2px; margin: auto; background: #fff; }
#folder-window .fw-file-list { padding: 12px 0 0; min-width: 805px; }
.fw-list-group { display: flex; align-items: center; height: 16px; margin-bottom: 12px; gap: 8px; color: #005a9e; font-size: 12px; }
.fw-list-group:not(:first-child) { margin-top: 2px; }
.fw-list-group .fw-chevron { width: 5px; height: 5px; color: #242424; }
#folder-window .fw-file-row { height: 22px; padding: 0; margin: 0 0 10px; border-radius: 2px; }
#folder-window .fw-file-row.selected { background: #ccecff; }
#folder-window .fw-thumb-item.selected { border-color: transparent; }
#folder-window .fw-row-check { width: 12px; height: 12px; border-radius: 2px; border-width: 1px; visibility: visible; cursor: pointer; }
#folder-window .fw-file-row.selected .fw-row-check,
#folder-window .fw-thumb-item.selected .fw-thumb-check { background: url('icons/Checkbox.png') center / contain no-repeat; border: 0; box-shadow: none; }
#folder-window [role="checkbox"]:focus-visible { outline: 2px solid #0078d4; outline-offset: 2px; }
#folder-window [role="listbox"]:focus,
#folder-window [role="option"]:focus { outline: none; }
.fw-selection-box { position: fixed; z-index: 9400; pointer-events: none; border: 1px solid #0078d4; background: rgba(0, 120, 212, 0.16); }
.drag-ghost-plate { width: 54px; height: 54px; border-radius: 8px; }
.drag-icon-stack { position: relative; width: 29.25px; height: 29.25px; }
.drag-icon-stack .drag-icon-item { position: absolute; width: 29.25px; height: 29.25px; }
.drag-icon-stack .drag-icon-item > *,
.drag-icon-stack .drag-icon-item img { width: 29.25px !important; height: 29.25px !important; }
.drag-icon-stack .drag-icon-item .img-file-thumb { height: 22px !important; }
.drag-icon-stack-mixed .drag-icon-item {
  transform: translate(calc(-6.375px + var(--stack-offset)), calc(6.375px - var(--stack-offset)));
}
.drag-icon-stack-mixed .drag-icon-item > * {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.22));
}
.drag-icon-stack-images,
.drag-icon-stack-images .drag-icon-item { width: 27.6px; height: 27.6px; }
.drag-icon-stack-images .drag-icon-item > *,
.drag-icon-stack-images .drag-icon-item img { width: 27.6px !important; height: 27.6px !important; }
.drag-icon-stack-images .drag-icon-item .img-file-thumb { height: 27.6px !important; }
.drag-icon-stack-images .drag-icon-item {
  transform: translate(calc(-5.2px + var(--stack-offset)), calc(5.2px - var(--stack-offset)));
}
.drag-icon-item > svg { flex-shrink: 0; }
.drag-count-badge {
  top: -16px;
  right: -16px;
  min-width: 32px;
  height: 32px;
  border-radius: 16px;
  font-weight: 400;
}
#folder-window .fw-col-name { padding-left: 7px; gap: 10px; }
#folder-window .fw-col-date,
#folder-window .fw-col-type,
#folder-window .fw-col-size { padding-left: 8px; color: #737373; }
#folder-window .fw-col-size { text-align: left; }
#folder-window .fw-file-icon img { width: 16px; height: 16px; }
#folder-window .fw-statusbar { height: 35px; padding: 0 20px; background: #fff; border-top: 1px solid #f0f0f0; color: #777; font-size: 12px; }
.fw-status-controls { display: flex; margin-left: auto; gap: 16px; align-items: center; }
.fw-status-controls > span { display: flex; }
#folder-window [hidden] { display: none !important; }

#folder-window[data-folder="Camera"] .fw-file-list { min-width: 0; padding: 0; }
#folder-window .fw-thumb-grid { padding: 0; }
#folder-window .fw-thumb-section {
  height: 16px;
  padding: 0;
  margin-bottom: 12px;
  gap: 4px;
  font-size: 12px;
  font-weight: 400;
  color: #005a9e;
}
#folder-window .fw-thumb-section svg { width: 12px; height: 12px; color: #242424; }
#folder-window .fw-thumb-row { gap: 8px; min-height: 158px; margin-bottom: 12px; }
#folder-window .fw-thumb-row:nth-child(2) { min-height: 157px; }
#folder-window .fw-thumb-row:last-child { gap: 12px; min-height: 133px; margin-bottom: 0; }
#folder-window .fw-thumb-item {
  width: 142px;
  height: 134px;
  padding: 4px 0 0;
  gap: 4px;
  border: 0;
  border-radius: 4px;
  cursor: default;
}
#folder-window .fw-thumb-preview { width: 114px; height: 114px; border-radius: 4px; background: transparent; }
#folder-window .fw-thumb-name { max-width: 142px; font-size: 8px; line-height: 12px; }
#folder-window .fw-thumb-document { height: 145px; }
#folder-window .fw-thumb-document .fw-thumb-preview { width: 104px; height: 121px; }
#folder-window .fw-thumb-document .fw-thumb-name { font-size: 9px; line-height: 13px; }
#folder-window .fw-thumb-check { width: 14px; height: 14px; top: 4px; left: 4px; }

@media (max-width: 900px) {
  #folder-window .fw-sidebar { width: 190px; }
  #folder-window .fw-content-area { padding-right: 16px; padding-left: 16px; }
  #folder-window .fw-search-box { width: 180px; }
  #folder-window .fw-tb-right { margin-left: 0; }
  #folder-window .fw-toolbar { overflow-x: auto; }
}
