/* Document rows and type-specific icons. */
.lotaip-browser .lotaip-browser__search,
.lotaip-browser .lotaip-browser__search > span {
  color: #fff;
}

.lotaip-browser__type {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 48px;
  height: 52px;
  padding: 0;
  flex: 0 0 auto;
  background: #eef3f8;
  color: var(--lb-navy);
  font-weight: 800;
  border-radius: 8px;
}

.lotaip-browser__type svg { width: 25px; height: 25px; }
.lotaip-browser__type small { font-size: .54rem; line-height: 1; color: inherit; }
.lotaip-browser__type--pdf { background: #fcebed; color: #d9303e; }
.lotaip-browser__type--word { background: #e9f2fc; color: #2565ae; }
.lotaip-browser__type--excel { background: #e8f6ee; color: #21834f; }
.lotaip-browser__type--powerpoint { background: #fff0e8; color: #d9632e; }
.lotaip-browser__type--image { background: #f0ecfb; color: #7653b8; }
.lotaip-browser__type--archive { background: #fff5d9; color: #9a6a00; }
.lotaip-browser__file-info strong { color: var(--lb-blue); }

.lotaip-browser__actions a,
.lotaip-browser__actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 4px;
  padding: 9px 13px;
  font-size: .76rem;
  font-weight: 600;
}

.lotaip-browser__actions svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lotaip-browser__actions button { background: var(--lb-sky); border-color: var(--lb-sky); color: #fff; }
.lotaip-browser__actions a { background: var(--lb-navy); border-color: var(--lb-navy); color: #fff; }

.lotaip-browser__grid[data-view="list"] .lotaip-browser__file {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  grid-template-rows: auto;
  align-items: center;
  min-height: 80px;
  padding: 14px 16px;
  border-color: #aebcca;
  border-radius: 5px;
}

.lotaip-browser__grid[data-view="list"] .lotaip-browser__type { grid-row: auto; width: 44px; height: 44px; }
.lotaip-browser__grid[data-view="list"] .lotaip-browser__type small { display: none; }
.lotaip-browser__grid[data-view="list"] .lotaip-browser__file-info { grid-column: 2; }
.lotaip-browser__grid[data-view="list"] .lotaip-browser__file-info strong { display: block; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.lotaip-browser__grid[data-view="list"] .lotaip-browser__file-info small { display: none; }
.lotaip-browser__grid[data-view="list"] .lotaip-browser__actions { grid-column: 3; align-self: center; flex-wrap: nowrap; min-width: 260px; justify-content: flex-end; }
.lotaip-browser__grid[data-view="list"] .lotaip-browser__actions a,
.lotaip-browser__grid[data-view="list"] .lotaip-browser__actions button { min-width: 128px; }

@media (max-width: 680px) {
  .lotaip-browser__grid[data-view="list"] .lotaip-browser__file { grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto auto; }
  .lotaip-browser__grid[data-view="list"] .lotaip-browser__actions { grid-column: 1 / -1; grid-row: 2; min-width: 0; justify-content: flex-end; }
  .lotaip-browser__grid[data-view="list"] .lotaip-browser__actions a,
  .lotaip-browser__grid[data-view="list"] .lotaip-browser__actions button { min-width: 0; }
  .lotaip-browser__grid[data-view="list"] .lotaip-browser__file-info strong { white-space: normal; }
}
