  .table thead th { white-space: nowrap; }
    .table td, .table th { vertical-align: middle; }
    .rw-pulse { background: #fff3cd; transition: background .6s ease; }
    .rw-sort { font-weight:700; text-decoration:none; margin-left:.25rem; color:#6c757d; }
    .rw-sort.active { color:#000; }
    .rw-sort:hover { text-decoration:none; color:#000; }
    .rw-table, .rw-table td, .rw-table a { word-break: break-word; overflow-wrap:anywhere; }
    @media (max-width: 576px) {
      .table-responsive { overflow-x: visible; }
      .rw-table thead { position:absolute; left:-9999px; height:0; width:0; overflow:hidden; }
      .rw-table, .rw-table tbody, .rw-table tr, .rw-table td { display:block; width:100%; }
      .rw-table tbody tr { border:1px solid #eee; border-radius:10px; padding:.5rem .75rem; margin-bottom:.75rem;
        box-shadow:0 1px 6px rgba(0,0,0,.04); background:#fff; }
      .rw-table td { position:relative; padding-left:35vw; border:0!important; }
      .rw-table td::before { content:attr(data-label); position:absolute; left:12px; top:.6rem; width:6.2rem;
        font-weight:600; color:#6c757d; white-space:nowrap; }
      .rw-table td[data-label="Action"] .btn { width:100%; margin-bottom:.4rem; }
    }
    .rw-step-badge { min-width:1.75rem; text-align:center; }
    .rw-step-row textarea { min-height: 72px; }
    .rw-muted { color:#6c757d; font-size:.875rem; }



/* Progress tracker */
.rw-progress {
  --rw-dot: 36px;
  --rw-gap: 14px;
  --rw-line: 3px;
  --rw-done: var(--secondary-colour);     /* green */
  --rw-current: var(--primary-colour);  /* bootstrap primary */
  --rw-todo: #eee;     /* light gray */

  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

/* Vertical (mobile) */
.rw-progress .rw-step {
  display: grid;
  grid-template-columns: var(--rw-dot) 1fr;
  column-gap: var(--rw-gap);
  position: relative;
}
.rw-progress .rw-dot {
  width: var(--rw-dot);
  height: var(--rw-dot);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
}
.rw-progress .rw-line {
  position: absolute;
  left: calc((var(--rw-dot) / 2) - (var(--rw-line) / 2));
  top: calc(var(--rw-dot) + .15rem);
  width: var(--rw-line);
  height: calc(100% - var(--rw-dot));
  background: var(--rw-todo);
  z-index: 0;
}
.rw-progress .rw-step:last-child .rw-line { display: none; }

.todo .rw-title {
    color: #eee;
}

.rw-progress .rw-step.done .rw-dot { background: var(--rw-done); }
.rw-progress .rw-step.current .rw-dot { background: var(--rw-current); }
.rw-progress .rw-step.todo   .rw-dot { background: var(--rw-todo); color:#6c757d; }

.rw-progress .rw-body .rw-title { font-weight: 600;font-size:13px; }
.rw-progress .rw-meta { color: #6c757d; font-size: .875rem; }
.rw-progress .rw-remark { margin-top: .25rem;font-size:small; }


/* Horizontal (≥ md) — each step = single vertical column */
@media (min-width: 768px){
  .rw-progress {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 0.2rem 0 1rem;
  }

  /* main continuous base line */
  .rw-progress::before {
    content: "";
    position: absolute;
    top: calc(var(--rw-dot) / 2);
    left: calc(var(--rw-dot) / 2);
    right: calc(var(--rw-dot) / 2);
    height: var(--rw-line);
    background: var(--rw-todo);
    z-index: 0;
  }

  /* colored progress line up to current step */
  .rw-progress::after {
    content: "";
    position: absolute;
    top: calc(var(--rw-dot) / 2);
    left: calc(var(--rw-dot) / 2);
    height: var(--rw-line);
    background: var(--rw-current);
    z-index: 1;
    width: 0%;
    transition: width .4s ease;
  }
  .rw-progress[data-progress]::after {
    width: attr(data-progress percentage);
  }

  .rw-progress .rw-step {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
  }

  .rw-progress .rw-dot {
    margin-bottom: .5rem;
    z-index: 3;
  }

  .rw-progress .rw-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: .25rem;
  }

  .rw-progress .rw-title {
    font-weight: 600;
    line-height: 1.3;
  }

  .rw-progress .rw-meta {
    color: #6c757d;
    font-size: .875rem;
  }

  .rw-progress .rw-remark {
    margin-top: .15rem;
  }

  /* hide vertical line inside each step */
  .rw-progress .rw-line { display: none; }
}



/* Small linear progress bar above the tracker (optional) */
.rw-linear {
  height: 6px;
  background: #e9ecef;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: .75rem;
}
.rw-linear > span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--primary-colour);
  border-radius: 999px;
  transition: width .3s ease;
}