.batch-page .dossier-sheet {
  padding-bottom: 48px;
}

.batch-workflow,
.batch-job-section {
  width: min(calc(100% - 84px), 1240px);
  margin: 40px auto 0;
}

.batch-section-heading,
.validation-section > header,
.batch-job-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--kpmg-blue);
}

.batch-section-heading > p,
.batch-job-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.batch-steps {
  border-bottom: 1px solid var(--line);
}

.batch-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 92px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.batch-step:last-child {
  border-bottom: 0;
}

.batch-step h3,
.batch-step p {
  margin: 0;
}

.batch-step h3 {
  font-size: 15px;
}

.batch-step p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.access-step label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.access-step label span {
  font-size: 12px;
  font-weight: 700;
}

.access-step input {
  width: min(100%, 420px);
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 8px 11px;
  color: var(--ink);
  background: var(--surface);
}

.file-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
}

.file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.batch-message {
  margin-top: 18px;
  padding: 11px 14px;
  border-left: 3px solid var(--kpmg-medium-blue);
  color: var(--ink-soft);
  background: var(--kpmg-blue-soft);
}

.batch-message.error {
  border-left-color: var(--error);
  color: var(--error);
  background: var(--error-soft);
}

.validation-section {
  margin-top: 32px;
}

.batch-table-shell {
  width: 100%;
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.batch-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}

.batch-table th,
.batch-table td {
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  text-align: left;
  overflow-wrap: anywhere;
}

.batch-table th {
  color: #ffffff;
  background: var(--kpmg-blue);
  font-size: 12px;
}

.batch-table th:first-child,
.batch-table td:first-child {
  width: 120px;
}

.batch-table th:nth-child(3),
.batch-table td:nth-child(3) {
  width: 140px;
}

.batch-table th:nth-child(4),
.batch-table td:nth-child(4) {
  width: 130px;
  text-align: right;
}

.batch-table tr:last-child td {
  border-bottom: 0;
}

.batch-table th:last-child,
.batch-table td:last-child {
  border-right: 0;
}

.batch-job-section {
  padding-top: 8px;
}

.batch-job-heading {
  align-items: center;
}

.batch-job-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.batch-status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.batch-status-strip > div {
  display: grid;
  gap: 2px;
  min-height: 76px;
  padding: 15px 18px;
  border-right: 1px solid var(--line);
}

.batch-status-strip > div:last-child {
  border-right: 0;
}

.batch-status-strip span,
.batch-progress-text {
  color: var(--muted);
  font-size: 12px;
}

.batch-status-strip strong {
  color: var(--kpmg-blue);
  font-size: 18px;
}

.batch-progress {
  height: 8px;
  margin-top: 20px;
  overflow: hidden;
  background: var(--line);
}

.batch-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--kpmg-medium-blue);
  transition: width 180ms ease;
}

.batch-progress-text {
  margin: 8px 0 0;
}

.batch-result-table {
  min-width: 1040px;
}

.batch-result-table th:nth-child(4),
.batch-result-table td:nth-child(4),
.batch-result-table th:nth-child(5),
.batch-result-table td:nth-child(5),
.batch-result-table th:nth-child(6),
.batch-result-table td:nth-child(6) {
  width: 110px;
  text-align: center;
}

.batch-result-table th:last-child,
.batch-result-table td:last-child {
  width: 240px;
}

.batch-status-failed {
  color: var(--error);
  font-weight: 700;
}

.batch-status-completed {
  color: #176b4d;
  font-weight: 700;
}

@media (max-width: 820px) {
  .batch-workflow,
  .batch-job-section {
    width: calc(100% - 32px);
    margin-top: 24px;
  }

  .batch-section-heading,
  .validation-section > header,
  .batch-job-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .batch-step {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .batch-step > :last-child {
    grid-column: 2;
    justify-self: stretch;
  }

  .batch-status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .batch-status-strip > div:nth-child(2) {
    border-right: 0;
  }

  .batch-job-actions {
    justify-content: stretch;
  }

  .batch-job-actions button {
    flex: 1 1 180px;
  }
}
