.job-file-preview {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.job-file-preview[hidden],
.job-files-clear[hidden] {
  display: none;
}

.job-file-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(7, 27, 44, 0.14);
  border-radius: 10px;
  background: #f4f7f9;
  box-shadow: 0 5px 16px rgba(7, 27, 44, 0.08);
}

.job-file-badge {
  display: grid;
  width: 46px;
  height: 52px;
  place-items: center;
  border-radius: 7px;
  background: #0b2539;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.job-file-info {
  min-width: 0;
}

.job-file-name {
  display: block;
  overflow: hidden;
  color: #071b2c;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-file-size {
  display: block;
  margin-top: 3px;
  color: #66798a;
  font-size: 0.74rem;
  line-height: 1.3;
}

.job-file-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.job-file-view,
.job-file-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(7, 27, 44, 0.16);
  border-radius: 6px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
}

.job-file-view {
  background: #078fd6;
  color: #fff;
  text-decoration: none;
}

.job-file-remove {
  background: #fff;
  color: #071b2c;
}

.job-file-view:hover,
.job-file-view:focus-visible,
.job-file-remove:hover,
.job-file-remove:focus-visible {
  border-color: #078fd6;
  outline: 2px solid rgba(7, 143, 214, 0.22);
  outline-offset: 1px;
}

.job-files-clear {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #078fd6;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 750;
  cursor: pointer;
}

.job-files-clear:hover,
.job-files-clear:focus-visible {
  color: #071b2c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 520px) {
  .job-file-item {
    padding: 11px;
  }

  .job-file-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
