.imports-view {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.imports-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.imports-head h2 { margin-bottom: 0.25rem; }
.imports-head .meta { margin: 0; max-width: 40rem; }

.upload {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  white-space: nowrap;
}
.upload:hover { border-color: var(--accent); }
.upload.busy { opacity: 0.6; pointer-events: none; }

.imports-table { flex: 1; }
.imports-table table {
  table-layout: fixed;
  width: 100%;
}
.imports-table col.col-when { width: 11rem; }
.imports-table col.col-file { width: auto; }
.imports-table col.col-status { width: 5.5rem; }
.imports-table col.col-aircraft { width: 5.5rem; }
.imports-table col.col-num { width: 5.5rem; }
.imports-table col.col-events { width: 7rem; }
.imports-table col.col-size { width: 5rem; }
.imports-table col.col-actions { width: 9.5rem; }
.imports-table th,
.imports-table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  box-sizing: border-box;
}
.imports-table th.num,
.imports-table td.num {
  font-family: var(--mono);
  text-align: right;
}
.imports-table th.actions-head,
.imports-table td.row-actions {
  text-align: left;
  overflow: visible;
}
.imports-table .file { overflow: hidden; text-overflow: ellipsis; }
.imports-table a.dl {
  color: var(--accent-2);
  text-decoration: none;
  font-size: 0.8rem;
}
.imports-table a.dl:hover { text-decoration: underline; }

.imports-table .row-actions {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}
.imports-table button.revert {
  background: transparent;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0;
}
.imports-table button.revert:hover { text-decoration: underline; }
.imports-table button.revert:disabled {
  color: var(--muted);
  cursor: default;
  text-decoration: none;
}
.status-pill {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ok);
}
.status-pill.reverted { color: var(--muted); }
