/* =========================================================
   UBICACIÓN:
   frontend/src/pages/archivos-tipo/archivos-tipo.css
   ========================================================= */

/* =========================================================
   AGRO INTEL DRIVE · PDF · TXT · IMÁGENES
   ========================================================= */

.file-type-page {
  display: flex;
  flex-direction: column;
  gap: 18px;

  width: 100%;
  min-width: 0;
  padding-bottom: 28px;
}

/* =========================================================
   TOOLBAR
   ========================================================= */

.file-type-page__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  padding: 18px;

  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);

  background: var(--surface);
}

.file-type-page__heading {
  display: flex;
  align-items: center;
  gap: 14px;

  min-width: 0;
}

.file-type-page__heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 50px;
  min-width: 50px;
  height: 50px;

  border: 1px solid var(--accent-border);
  border-radius: 14px;

  color: #8a6700;

  background: var(--accent-soft);
}

.file-type-page__heading-icon svg {
  width: 23px;
  height: 23px;
}

.file-type-page__eyebrow {
  display: block;

  margin-bottom: 3px;

  color: #8a6700;

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.file-type-page__heading h2 {
  margin: 0;

  font-size: 21px;
  letter-spacing: -0.035em;
}

.file-type-page__heading p {
  margin: 4px 0 0;

  color: var(--text-muted);

  font-size: 13px;
}

.file-type-page__toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-type-page__select {
  min-width: 175px;
  height: 42px;
  padding: 0 36px 0 13px;

  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  outline: none;

  color: var(--text);

  font: inherit;
  font-size: 13px;
  font-weight: 600;

  background: var(--surface);

  cursor: pointer;
}

.file-type-page__select:hover {
  border-color: var(--line-focus);
}

.file-type-page__select:focus {
  border-color: var(--accent);

  outline: 3px solid rgba(245, 183, 0, 0.1);
}

.file-type-page__select:disabled {
  cursor: wait;
  opacity: 0.65;
}

/* =========================================================
   BARRA DE SELECCIÓN MÚLTIPLE
   ========================================================= */

.file-type-selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  width: 100%;
  min-width: 0;
  padding: 14px 16px;

  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);

  background: var(--accent-soft);

  animation: file-type-selection-enter 180ms ease-out;
}

.file-type-selection-bar[hidden] {
  display: none;
}

.file-type-selection-bar__summary {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 11px;

  min-width: 0;
}

.file-type-selection-bar__icon {
  display: inline-flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  border: 1px solid var(--accent-border);
  border-radius: 10px;

  color: #8a6700;

  background: #fff8dc;
}

.file-type-selection-bar__icon svg {
  width: 19px;
  height: 19px;
}

.file-type-selection-bar__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;

  min-width: 0;
}

.file-type-selection-bar__copy strong {
  overflow: hidden;

  color: var(--text);

  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-type-selection-bar__copy span {
  overflow: hidden;

  color: var(--text-muted);

  font-size: 11px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-type-selection-bar__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.file-type-selection-bar__actions .button {
  min-height: 38px;
  padding: 0 12px;

  font-size: 11px;
}

@keyframes file-type-selection-enter {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   PROGRESO DE DESCARGA
   ========================================================= */

.file-type-download-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  width: 100%;
  min-width: 0;
  padding: 14px 16px;

  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);

  background: var(--surface);

  animation: file-type-download-enter 180ms ease-out;
}

.file-type-download-progress[hidden] {
  display: none;
}

.file-type-download-progress.is-completed {
  border-color: #9bc8ba;

  background: #f2faf7;
}

.file-type-download-progress.has-error {
  border-color: #dca4a8;

  background: #fff5f6;
}

.file-type-download-progress__identity {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 11px;

  min-width: 0;
}

.file-type-download-progress__icon {
  display: inline-flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  border: 1px solid var(--accent-border);
  border-radius: 10px;

  color: #785817;

  background: var(--accent-soft);
}

.file-type-download-progress.is-completed
  .file-type-download-progress__icon {
  border-color: #a7d0c3;

  color: #1d6752;

  background: #edf9f5;
}

.file-type-download-progress.has-error
  .file-type-download-progress__icon {
  border-color: #dfa6ab;

  color: #ad1720;

  background: #fff0f1;
}

.file-type-download-progress__icon svg {
  width: 19px;
  height: 19px;
}

.file-type-download-progress__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;

  min-width: 0;
}

.file-type-download-progress__copy strong {
  overflow: hidden;

  color: var(--text);

  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-type-download-progress__copy span {
  overflow: hidden;

  color: var(--text-muted);

  font-size: 11px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes file-type-download-enter {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   RESUMEN
   ========================================================= */

.file-type-page__summary {
  display: grid;
  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 14px;
}

.file-type-summary-card {
  display: flex;
  align-items: center;
  gap: 13px;

  min-width: 0;
  padding: 17px;

  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);

  background: var(--surface);
}

.file-type-summary-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  min-width: 44px;
  height: 44px;

  border: 1px solid var(--line-strong);
  border-radius: 12px;

  color: var(--text-muted);

  background: var(--surface-soft);
}

.file-type-summary-card__icon svg {
  width: 20px;
  height: 20px;
}

.file-type-summary-card > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;

  min-width: 0;
}

.file-type-summary-card span {
  color: var(--text-muted);

  font-size: 12px;
  font-weight: 600;
}

.file-type-summary-card strong {
  overflow: hidden;

  font-size: 23px;
  line-height: 1;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   PANEL Y LISTADO
   ========================================================= */

.file-type-page__panel {
  min-width: 0;

  overflow: hidden;

  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);

  background: var(--surface);
}

.file-type-page__table-wrap {
  min-width: 0;

  overflow-x: auto;
  overflow-y: visible;
}

.file-type-page__table-wrap[hidden] {
  display: none;
}

.file-type-page__table-head,
.file-type-row {
  display: grid;
  grid-template-columns:
    42px
    minmax(290px, 1fr)
    100px
    190px
    170px
    150px
    100px;

  align-items: center;

  min-width: 1050px;
}

.file-type-page__table-head {
  min-height: 46px;
  padding: 0 15px;

  border-bottom: 1px solid var(--line-strong);

  color: var(--text-muted);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  background: var(--surface-muted);
}

.file-type-page__table-head > span:last-child {
  text-align: right;
}

.file-type-page__table-selection {
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-type-page__list {
  display: flex;
  flex-direction: column;

  min-width: 0;
}

.file-type-row {
  position: relative;

  min-height: 72px;
  padding: 0 15px;

  border-bottom: 1px solid var(--line);

  background: var(--surface);

  transition:
    background-color var(--transition),
    border-color var(--transition),
    opacity var(--transition);
}

.file-type-row:last-child {
  border-bottom: 0;
}

.file-type-row:hover {
  background: var(--surface-soft);
}

.file-type-row.is-selected {
  background: #fffaf0;
}

.file-type-row.is-selected::before {
  position: absolute;
  inset: 0 auto 0 0;

  width: 3px;

  content: "";

  background: var(--accent);
}

/* =========================================================
   CHECKBOX DE SELECCIÓN
   ========================================================= */

.file-type-row__selection {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 0;
}

.file-type-selection-checkbox {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 30px;
  height: 30px;

  cursor: pointer;
}

.file-type-selection-checkbox input {
  position: absolute;

  width: 1px;
  height: 1px;

  overflow: hidden;

  opacity: 0;
  pointer-events: none;
}

.file-type-selection-checkbox__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 20px;
  height: 20px;

  border: 1px solid var(--line-focus);
  border-radius: 6px;

  color: transparent;

  background: var(--surface);

  transition:
    border-color var(--transition),
    color var(--transition),
    background-color var(--transition),
    opacity var(--transition);
}

.file-type-selection-checkbox:hover
  .file-type-selection-checkbox__control {
  border-color: var(--text-muted);
}

.file-type-selection-checkbox input:checked
  + .file-type-selection-checkbox__control {
  border-color: var(--accent-active);

  color: var(--accent-contrast);

  background: var(--accent);
}

.file-type-selection-checkbox input:indeterminate
  + .file-type-selection-checkbox__control {
  border-color: var(--accent-active);

  color: var(--accent-contrast);

  background: var(--accent);
}

.file-type-selection-checkbox input:indeterminate
  + .file-type-selection-checkbox__control
  svg {
  display: none;
}

.file-type-selection-checkbox input:indeterminate
  + .file-type-selection-checkbox__control::after {
  width: 9px;
  height: 2px;

  border-radius: 999px;

  content: "";

  background: var(--accent-contrast);
}

.file-type-selection-checkbox input:focus-visible
  + .file-type-selection-checkbox__control {
  outline: 3px solid rgba(245, 183, 0, 0.16);
  outline-offset: 2px;
}

.file-type-selection-checkbox input:disabled
  + .file-type-selection-checkbox__control {
  cursor: wait;
  opacity: 0.55;
}

.file-type-selection-checkbox__control svg {
  width: 13px;
  height: 13px;
}

/* =========================================================
   FILA PRINCIPAL
   ========================================================= */

.file-type-row__main {
  display: flex;
  align-items: center;
  gap: 11px;

  min-width: 0;
  padding: 0;

  border: 0;

  color: inherit;

  text-align: left;

  background: transparent;
}

.file-type-row__main:disabled {
  cursor: wait;
  opacity: 0.68;
}

.file-type-row__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  min-width: 44px;
  height: 44px;

  border: 1px solid var(--line-strong);
  border-radius: 12px;

  color: var(--text-muted);

  background: var(--surface);
}

.file-type-row__icon svg {
  width: 20px;
  height: 20px;
}

.file-type-row__icon--pdf {
  border-color: #e5afb4;

  color: #d12630;

  background: #fff4f5;
}

.file-type-row__icon--imagen,
.file-type-row__icon--imagenes,
.file-type-row__icon--image,
.file-type-row__icon--images {
  border-color: #afd2bd;

  color: #238253;

  background: #f1faf5;
}

.file-type-row__icon--texto,
.file-type-row__icon--txt {
  border-color: var(--accent-border);

  color: #8a6700;

  background: var(--accent-soft);
}

.file-type-row__icon--video,
.file-type-row__icon--videos {
  border-color: var(--accent-border);

  color: #785817;

  background: var(--accent-soft);
}

.file-type-row__name {
  display: flex;
  flex-direction: column;
  gap: 3px;

  min-width: 0;
}

.file-type-row__name strong {
  overflow: hidden;

  color: var(--text);

  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-type-row__name small {
  overflow: hidden;

  color: var(--text-soft);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.file-type-row__size,
.file-type-row__date,
.file-type-row__user {
  overflow: hidden;

  padding-right: 10px;

  color: var(--text-muted);

  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-type-row__location {
  display: flex;
  align-items: center;
  gap: 7px;

  min-width: 0;
  padding: 0;

  border: 0;

  color: var(--text-muted);

  font-size: 12px;
  text-align: left;

  background: transparent;
}

.file-type-row__location:hover {
  color: var(--text);
}

.file-type-row__location:focus-visible {
  border-radius: 6px;

  outline: 3px solid rgba(245, 183, 0, 0.1);
}

.file-type-row__location svg {
  width: 16px;
  min-width: 16px;
  height: 16px;
}

.file-type-row__location span {
  overflow: hidden;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-type-row__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.file-type-row__actions .icon-button {
  width: 36px;
  min-width: 36px;
  height: 36px;
}

/* =========================================================
   MINIATURAS EN LISTADO DE IMÁGENES
   ========================================================= */

.file-type-row__preview {
  position: relative;

  display: inline-flex;
  flex: 0 0 58px;
  align-items: center;
  justify-content: center;

  width: 58px;
  min-width: 58px;
  height: 48px;

  overflow: hidden;

  border: 1px solid var(--line-strong);
  border-radius: 10px;

  background: var(--surface-soft);
}

.file-type-row__preview-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  border: 0;
}

.file-type-row__preview-image[hidden] {
  display: none;
}

.file-type-row__preview-placeholder {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--text-soft);

  background: var(--surface-soft);
}

.file-type-row__preview-placeholder svg {
  width: 20px;
  height: 20px;
}

.file-type-row__preview.is-loading
  .file-type-row__preview-placeholder
  svg {
  animation: file-type-preview-pulse 1s ease-in-out infinite;
}

.file-type-row__preview.is-loaded
  .file-type-row__preview-placeholder {
  display: none;
}

.file-type-row__preview.has-error {
  border-color: var(--line-strong);

  background: var(--surface-muted);
}

.file-type-row__preview.has-error
  .file-type-row__preview-placeholder {
  display: flex;

  color: var(--text-soft);
}

.file-type-row__preview.has-error
  .file-type-row__preview-placeholder::after {
  position: absolute;

  width: 24px;
  height: 1px;

  content: "";

  background: currentColor;

  transform: rotate(-45deg);
}

.file-type-row__main:hover
  .file-type-row__preview {
  border-color: var(--line-focus);
}

.file-type-row__main:focus-visible
  .file-type-row__preview {
  border-color: var(--accent);

  outline: 3px solid rgba(245, 183, 0, 0.1);
  outline-offset: 2px;
}

@keyframes file-type-preview-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.92);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* =========================================================
   ESTADOS
   ========================================================= */

.file-type-page__loading,
.file-type-page__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 400px;
  padding: 32px;

  text-align: center;
}

.file-type-page__loading[hidden],
.file-type-page__empty[hidden] {
  display: none;
}

.file-type-page__loading {
  flex-direction: row;
  gap: 12px;

  color: var(--text-muted);
}

.file-type-page__spinner {
  display: inline-block;
  flex: 0 0 auto;

  width: 22px;
  height: 22px;

  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;

  animation: file-type-spin 0.7s linear infinite;
}

.file-type-page__spinner--small {
  width: 16px;
  height: 16px;
}

.file-type-page__empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 68px;
  height: 68px;

  border: 1px solid var(--accent-border);
  border-radius: 18px;

  color: #8a6700;

  background: var(--accent-soft);
}

.file-type-page__empty-icon svg {
  width: 30px;
  height: 30px;
}

.file-type-page__empty h3 {
  margin: 18px 0 0;

  font-size: 22px;
}

.file-type-page__empty p {
  margin: 8px 0 0;

  color: var(--text-muted);
}

/* =========================================================
   PAGINACIÓN
   ========================================================= */

.file-type-page__pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding: 14px 16px;

  border-top: 1px solid var(--line-strong);

  color: var(--text-muted);

  font-size: 12px;

  background: var(--surface-soft);
}

.file-type-page__pagination-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-type-page__pagination-actions .button {
  min-height: 36px;
  padding: 0 12px;

  font-size: 12px;
}

.file-type-page__pagination-actions svg {
  width: 16px;
  height: 16px;
}

@keyframes file-type-spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   SCROLL GENERAL
   ========================================================= */

html,
body,
#app {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

body {
  overflow: hidden;
}

.app-layout {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;

  overflow: hidden;
}

.app-main {
  display: flex;
  flex-direction: column;

  height: 100%;
  min-width: 0;
  min-height: 0;

  overflow: hidden;
}

.app-main__content {
  flex: 1 1 auto;

  width: 100%;
  min-width: 0;
  min-height: 0;
  padding-bottom: 24px;

  overflow-x: hidden;
  overflow-y: auto;

  scrollbar-gutter: stable;
  scrollbar-width: thin;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

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

@media (max-width: 1100px) {
  .file-type-page__table-head,
  .file-type-row {
    grid-template-columns:
      42px
      minmax(260px, 1fr)
      90px
      165px
      150px
      130px
      100px;

    min-width: 980px;
  }
}

@media (max-width: 900px) {
  .file-type-page__toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .file-type-page__toolbar-actions {
    display: grid;
    grid-template-columns:
      minmax(0, 1fr)
      auto;
  }

  .file-type-page__select {
    width: 100%;
  }

  .file-type-page__summary {
    grid-template-columns:
      1fr;
  }

  .file-type-selection-bar {
    align-items: flex-start;
  }

  .file-type-selection-bar__actions {
    flex-wrap: wrap;
  }

  .file-type-row__preview {
    flex-basis: 54px;

    width: 54px;
    min-width: 54px;
    height: 46px;
  }
}

@media (max-width: 760px) {
  .file-type-page__table-wrap {
    overflow: visible;
  }

  .file-type-page__table-head {
    display: none;
  }

  .file-type-page__list {
    gap: 10px;

    padding: 10px;
  }

  .file-type-row {
    display: grid;
    grid-template-columns:
      38px
      minmax(0, 1fr);

    gap: 9px 10px;

    min-width: 0;
    min-height: 0;
    padding: 12px;

    border: 1px solid var(--line-strong);
    border-radius: 10px;

    background: var(--surface);
  }

  .file-type-row:last-child {
    border-bottom: 1px solid var(--line-strong);
  }

  .file-type-row.is-selected {
    border-color: var(--accent-border);

    background: var(--accent-soft);
  }

  .file-type-row__selection {
    grid-column: 1;
    grid-row: 1;

    align-self: center;
  }

  .file-type-row__main {
    grid-column: 2;
    grid-row: 1;

    width: 100%;
    min-width: 0;
    min-height: 52px;
  }

  .file-type-row__size {
    display: none;
  }

  .file-type-row__location {
    grid-column: 1 / -1;

    min-height: 34px;
    padding: 0 6px;

    border-top: 1px solid var(--line);
  }

  .file-type-row__date,
  .file-type-row__user {
    display: none;
  }

  .file-type-row__actions {
    grid-column: 1 / -1;

    padding-top: 8px;

    border-top: 1px solid var(--line);
  }

  .file-type-selection-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .file-type-selection-bar__actions {
    display: grid;
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );

    width: 100%;
  }

  .file-type-selection-bar__actions
    [data-file-type-selection-action="download"] {
    grid-column: 1 / -1;
  }

  .file-type-selection-bar__actions .button {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .file-type-page {
    gap: 14px;
  }

  .file-type-page__toolbar {
    padding: 14px;
  }

  .file-type-page__heading {
    align-items: flex-start;
  }

  .file-type-page__heading-icon {
    width: 44px;
    min-width: 44px;
    height: 44px;

    border-radius: 12px;
  }

  .file-type-page__heading-icon svg {
    width: 20px;
    height: 20px;
  }

  .file-type-page__heading h2 {
    font-size: 19px;
  }

  .file-type-page__heading p {
    font-size: 12px;
    line-height: 1.45;
  }

  .file-type-page__toolbar-actions {
    grid-template-columns:
      1fr;
  }

  .file-type-page__toolbar-actions .button {
    width: 100%;
  }

  .file-type-page__summary {
    gap: 10px;
  }

  .file-type-summary-card {
    padding: 14px;
  }

  .file-type-summary-card strong {
    font-size: 20px;
  }

  .file-type-selection-bar {
    padding: 13px;
  }

  .file-type-selection-bar__summary {
    align-items: flex-start;
  }

  .file-type-selection-bar__icon {
    flex-basis: 36px;

    width: 36px;
    height: 36px;
  }

  .file-type-selection-bar__copy strong,
  .file-type-selection-bar__copy span {
    white-space: normal;
  }

  .file-type-selection-bar__actions {
    grid-template-columns:
      1fr;
  }

  .file-type-selection-bar__actions
    [data-file-type-selection-action="download"] {
    grid-column: auto;
  }

  .file-type-download-progress {
    gap: 10px;

    padding: 13px;
  }

  .file-type-download-progress__icon {
    flex-basis: 36px;

    width: 36px;
    height: 36px;
  }

  .file-type-download-progress__copy strong,
  .file-type-download-progress__copy span {
    white-space: normal;
  }

  .file-type-page__pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .file-type-page__pagination-actions {
    justify-content: space-between;
  }

  .file-type-page__pagination-actions .button {
    width: 42px;
    min-width: 42px;
    padding: 0;
  }

  .file-type-page__pagination-actions .button span {
    display: none;
  }

  .file-type-row {
    grid-template-columns:
      32px
      minmax(0, 1fr);

    padding: 10px;
  }

  .file-type-row__main {
    gap: 8px;
  }

  .file-type-row__preview {
    flex-basis: 50px;

    width: 50px;
    min-width: 50px;
    height: 44px;
  }

  .file-type-row__icon {
    width: 40px;
    min-width: 40px;
    height: 40px;

    border-radius: 10px;
  }

  .file-type-row__name strong {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .file-type-page__spinner,
  .file-type-row__preview.is-loading
    .file-type-row__preview-placeholder
    svg {
    animation: none;
  }

  .file-type-selection-bar,
  .file-type-download-progress,
  .file-type-row,
  .file-type-selection-checkbox__control {
    animation: none;
    transition: none;
  }
}