/* ===== 파일 탐색기 ===== */
.ex-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
}

.ex-toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0 8px;
  background: #f9f9f9;
  border-bottom: 1px solid #e3e3e3;
}

.ex-nav-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 3px;
  font-size: 15px;
  color: #333;
  cursor: default;
}

.ex-nav-btn:hover:not(:disabled) {
  background: #e8e8e8;
}

.ex-nav-btn:disabled {
  color: #bbb;
}

.ex-address {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 28px;
  margin-left: 6px;
  padding: 0 8px;
  background: #fff;
  border: 1px solid #d0d0d0;
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
}

.ex-crumb {
  padding: 2px 4px;
  border-radius: 2px;
}

.ex-crumb:hover {
  background: #e5f0fb;
}

.ex-crumb-sep {
  color: #888;
  padding: 0 2px;
}

.ex-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

.ex-sidebar {
  flex: 0 0 170px;
  padding: 8px 0;
  border-right: 1px solid #e3e3e3;
  background: #fafafa;
  overflow-y: auto;
  font-size: 12px;
}

.ex-side-title {
  padding: 6px 14px 4px;
  color: #666;
  font-size: 11px;
}

.ex-side-title:empty {
  padding: 4px 0;
}

.ex-side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 22px;
  cursor: default;
}

.ex-side-item:hover {
  background: #e9e9e9;
}

.ex-side-item.is-active {
  background: #cce4f7;
}

.ex-side-icon {
  width: 16px;
  height: 16px;
}

.ex-side-icon svg {
  width: 16px;
  height: 16px;
}

.ex-content {
  flex: 1 1 auto;
  min-width: 0;
  overflow: auto;
  position: relative;
}

.ex-list {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 12px;
}

.ex-list th {
  position: sticky;
  top: 0;
  background: #fff;
  font-weight: 400;
  color: #444;
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid #e3e3e3;
  border-right: 1px solid #eee;
  white-space: nowrap;
}

.ex-list td {
  padding: 4px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ex-col-name { width: 45%; }
.ex-col-date { width: 25%; }
.ex-col-type { width: 20%; }
.ex-col-size { width: 10%; text-align: right; }

.ex-name-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ex-row-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ex-row-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  position: relative;
}

.ex-row-icon > svg {
  width: 16px;
  height: 16px;
}

.ex-row-icon .lock-badge {
  width: 10px;
  height: 10px;
  right: -4px;
  bottom: -3px;
}

/* 휴지통 보기: 마지막 열(유형)은 왼쪽 정렬 */
.ex-app.is-recycle .ex-col-size {
  text-align: left;
  width: 18%;
}

.ex-app.is-recycle .ex-col-date { width: 20%; }

.ex-row {
  cursor: default;
}

.ex-row:hover td {
  background: #e5f3ff;
}

.ex-row.is-selected td {
  background: #cce8ff;
}

.ex-empty {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  text-align: center;
  color: #888;
  font-size: 12px;
}

.ex-statusbar {
  flex: 0 0 auto;
  height: 24px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 12px;
  color: #333;
  border-top: 1px solid #e3e3e3;
  background: #fff;
}

@media (max-width: 720px) {
  .ex-sidebar { display: none; }
  .ex-col-date, .ex-col-type { display: none; }
}

/* 검색 */
.ex-search { display: flex; align-items: center; margin-left: 6px; flex: 0 0 200px; }
.ex-search-input { flex: 1 1 auto; height: 26px; padding: 0 8px; border: 1px solid #c9ced6; border-radius: 3px; font: inherit; font-size: 12px; min-width: 0; }
.ex-search-btn { height: 26px; width: 28px; border: 1px solid #c9ced6; border-left: none; border-radius: 0 3px 3px 0; background: #f6f7f9; font-size: 12px; }
.ex-search-btn:hover { background: #e9ecf0; }

/* 정보 칸 */
.ex-details { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-top: 1px solid #e3e3e3; background: #fafafa; font-size: 12px; }
.ex-details-icon svg { width: 28px; height: 28px; }
.ex-details-name { font-weight: 600; }
.ex-details-meta { color: #555; }
