.table-host{
  min-height: 320px;
  max-width: 100%;
  overflow-x: auto;
}

.raw-pre{
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.35;
}

/* stepper */
.stepper{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stepper-item{
  display: flex;
  align-items: center;
  gap: 8px;
}

.stepper-badge{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e9ecef;
  color: #6c757d;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stepper-label{
  font-size: 14px;
  color: #6c757d;
  font-weight: 600;
}

.stepper-item.active .stepper-badge{
  background: #0d6efd;
  color: #fff;
}

.stepper-item.active .stepper-label{
  color: #0d6efd;
}

.stepper-item.completed .stepper-badge{
  background: #198754;
  color: #fff;
}

.stepper-item.completed .stepper-label{
  color: #198754;
}

.stepper-line{
  flex: 1 1 40px;
  height: 2px;
  background: #dee2e6;
  min-width: 24px;
}

.step-card.is-locked{
  border-style: dashed;
}

/* prevent select/file inputs from overflowing their grid columns on zoom */
.upload-log select,
.upload-log input[type="file"]{
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.upload-log .col-md-4,
.upload-log .col-md-3,
.upload-log .col-md-5{
  min-width: 0;
}

/* row level */
.audit-row-important{ background: #fff1f1; }
.audit-row-secondary{ background: #fff9e6; }
.derived-row{ background: #e6f4ff; }

/* cell level */
.audit-cell-important{ background: #ffd6d6 !important; }
.audit-cell-secondary{ background: #ffe9b3 !important; }

/* pre-arp tabs: close button (hidden until hover) */
.tab-item{
  position: relative;
}

.tab-item .nav-link{
  padding-right: 1.75rem; /* leave room for the X */
}

.tab-close-form{
  position: absolute;
  top: 2px;
  right: 2px;
  margin: 0;
  z-index: 5;
}

.tab-close-btn{
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.08);
  color: rgba(0,0,0,.55);
  line-height: 18px;
  font-size: 14px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease, background-color .12s ease, color .12s ease;
}

.tab-item:hover .tab-close-btn,
.tab-item:focus-within .tab-close-btn{
  opacity: 1;
  pointer-events: auto;
}

.tab-close-btn:hover{
  background: rgba(0,0,0,.16);
  color: rgba(0,0,0,.78);
}
