/* SpeedTex Stage One Back Office — operations workflow refinement v0.58.32 */
:root {
  --st32-blue: #0878bc;
  --st32-green: #28ad63;
  --st32-navy: #062f52;
  --st32-text: #36546c;
  --st32-muted: #6b8294;
  --st32-line: #d7e4ed;
  --st32-soft: #f4f8fb;
}

/* Lifecycle: marker on the line, label centered beneath it. */
.speedtex-workflow-strip {
  position: relative;
  align-items: start;
  padding-top: .1rem;
}
.speedtex-workflow-strip li {
  display: grid;
  grid-template-rows: 1.75rem auto;
  gap: .32rem;
  justify-items: center;
  min-width: 0;
  color: var(--st32-muted);
  text-align: center;
}
.speedtex-workflow-strip li:not(:last-child)::after {
  top: .76rem;
  right: -50%;
  left: 50%;
  height: 2px;
  background: var(--st32-line);
}
.speedtex-workflow-strip .speedtex-workflow-marker {
  z-index: 2;
  width: 1.55rem;
  height: 1.55rem;
  border: 2px solid #bfd0dc;
  background: #fff;
  font-size: .68rem;
  font-weight: 900;
}
.speedtex-workflow-strip .speedtex-workflow-label {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font-size: .76rem;
  font-weight: 850;
  line-height: 1.15;
}
.speedtex-workflow-strip .is-complete { color: #176d41; }
.speedtex-workflow-strip .is-complete .speedtex-workflow-marker {
  border-color: var(--st32-green);
  color: #fff;
  background: var(--st32-green);
}
.speedtex-workflow-strip .is-complete .speedtex-workflow-label,
.speedtex-workflow-strip .is-current .speedtex-workflow-label {
  width: 100%;
  height: auto;
  border: 0;
  color: inherit;
  background: transparent;
}
.speedtex-workflow-strip .is-complete:not(:last-child)::after { background: #89d8ad; }
.speedtex-workflow-strip .is-current { color: var(--st32-blue); }
.speedtex-workflow-strip .is-current .speedtex-workflow-marker {
  border-color: var(--st32-blue);
  color: #fff;
  background: var(--st32-blue);
  box-shadow: 0 0 0 4px rgba(8,120,188,.13);
}
.speedtex-workflow-strip .is-current .speedtex-workflow-label { font-weight: 900; }

/* A single clear recommendation between status and page navigation. */
.speedtex-next-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin: 0 0 .8rem;
  padding: .78rem .9rem;
  border: 1px solid #b9d9ec;
  border-left: 4px solid var(--st32-blue);
  border-radius: .72rem;
  background: linear-gradient(100deg, #f2f9fd, #f8fcfa);
}
.speedtex-next-action span,
.speedtex-next-action strong,
.speedtex-next-action p { display: block; }
.speedtex-next-action span {
  color: #26709c;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.speedtex-next-action strong { margin-top: .1rem; color: var(--st32-navy); font-size: 1rem; }
.speedtex-next-action p { margin: .1rem 0 0; color: var(--st32-text); font-size: .84rem; }
.speedtex-next-action > a {
  min-width: 6.75rem;
  padding: .68rem .9rem;
  border-radius: .58rem;
  color: #fff;
  background: var(--st32-blue);
  text-align: center;
  font-size: .85rem;
  font-weight: 850;
  text-decoration: none;
}

/* Price and schedule: work through one review block at a time. */
.speedtex-task-panel[data-step="request-review"] > .speedtex-panel,
.speedtex-task-panel[data-step="request-review"] > section { position: relative; }
.speedtex-review-section > h2 { padding-right: 9.5rem; }
.speedtex-review-toggle {
  position: absolute;
  top: .72rem;
  right: .75rem;
  min-height: 2.25rem;
  padding: .4rem .7rem;
  border: 1px solid #c3d5e1;
  border-radius: .5rem;
  color: #28536f;
  background: #fff;
  font-size: .76rem !important;
  font-weight: 850;
}
.speedtex-review-section.is-collapsed > :not(h2):not(.speedtex-review-toggle) { display: none !important; }
.speedtex-review-section.is-collapsed { min-height: 4rem; }

/* Photos stay visual without turning into a full-width vertical wall. */
.speedtex-photo-groups { display: grid; gap: 1rem; }
.speedtex-photo-group { min-width: 0; }
.speedtex-photo-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-bottom: .55rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--st32-line);
}
.speedtex-photo-group-head h3 { margin: 0; color: var(--st32-navy); font-size: 1rem; }
.speedtex-photo-group-head span {
  display: grid;
  place-items: center;
  min-width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  color: #176d41;
  background: #e6f7ed;
  font-size: .72rem;
  font-weight: 900;
}
.speedtex-photo-group .speedtex-photo-grid { grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); }
.speedtex-photo-group figure { margin: 0; }
.speedtex-photo-group img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .45rem; }
.speedtex-photo-group figcaption { display: grid; gap: .08rem; padding-top: .4rem; }
.speedtex-photo-group figcaption strong { color: var(--st32-navy); font-size: .78rem; }
.speedtex-photo-group figcaption span { color: var(--st32-muted); font-size: .7rem; }

/* History is useful first; technical evidence is available on demand. */
.speedtex-admin-evidence { padding: 0 !important; overflow: hidden; }
.speedtex-admin-evidence > summary {
  padding: .9rem 1rem;
  color: var(--st32-navy);
  cursor: pointer;
  font-weight: 850;
}
.speedtex-admin-evidence[open] > summary { border-bottom: 1px solid var(--st32-line); background: var(--st32-soft); }
.speedtex-admin-evidence-body { padding: 1rem; }
.speedtex-action-grid form { display: grid; gap: .7rem; }

@media (max-width: 700px) {
  .speedtex-record-command { padding: .8rem; }
  .speedtex-workflow-strip {
    grid-template-columns: repeat(5, minmax(4.7rem, 1fr)) !important;
    padding: .15rem .15rem .45rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }
  .speedtex-workflow-strip li { min-width: 4.7rem !important; scroll-snap-align: center; }
  .speedtex-workflow-strip .speedtex-workflow-label { font-size: .75rem; white-space: normal; }
  .speedtex-next-action { grid-template-columns: 1fr; }
  .speedtex-next-action > a { width: 100%; min-height: 2.75rem; }
  .speedtex-review-section > h2 { padding-right: 0; }
  .speedtex-review-toggle { position: static; width: 100%; margin: .45rem 0 .2rem; }
  .speedtex-review-section.is-collapsed { min-height: 0; }
  .speedtex-photo-group .speedtex-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 420px) {
  .speedtex-photo-group .speedtex-photo-grid { grid-template-columns: 1fr !important; }
}

@media print {
  .speedtex-next-action,
  .speedtex-review-toggle { display: none !important; }
  .speedtex-review-section.is-collapsed > :not(h2):not(.speedtex-review-toggle) { display: revert !important; }
}
