/* ═══════════════════════════════════════════════════════════
   Print Template Tab — Redesign
   Prefix: new-stock-pt-
   All colors via var(--rw-*) tokens from theme.css
   ═══════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────
   1. WIZARD / STEPPER
   ────────────────────────────────────────────────────────── */

/* Flip wizard layout: stepper on top, content below.
   The wizard directive uses replace:true, so .new-stock-pt-wizard
   IS the root <div> — its direct children are .steps + .steps-indicator */
.new-stock-pt-wizard {
  display: flex;
  flex-direction: column-reverse;
}

/* Constrain content width + bottom padding for sticky bar */
.new-stock-pt-wizard .steps {
  max-width: 980px;
  padding-bottom: 56px;
}

/* Stepper bar — flat inline layout matching reference design:
   ✓ Select Module ——— ✓ Choose Template ——— ③ Configure */
.new-stock-pt-wizard .steps-indicator {
  counter-reset: step;
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  display: flex;
  align-items: center;
  height: auto;
  margin: 0 0 16px 0;
  padding: 10px 0;
  background: transparent;
  border: none;
  border-radius: 0;
  list-style: none;
  box-shadow: none;
}

/* Hide default connecting line */
.new-stock-pt-wizard .steps-indicator:before {
  display: none;
}

/* Reset default step widths */
.new-stock-pt-wizard .steps-indicator.steps-2 li,
.new-stock-pt-wizard .steps-indicator.steps-3 li,
.new-stock-pt-wizard .steps-indicator.steps-4 li {
  width: auto;
}

/* Step item — inline with connecting line */
.new-stock-pt-wizard .steps-indicator li {
  counter-increment: step;
  position: relative;
  float: none;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  text-align: left;
  line-height: normal;
  pointer-events: auto;
}

.new-stock-pt-wizard .steps-indicator li.default {
  pointer-events: none;
}

/* Make the <a> a flex row so circle + label sit side by side */
.new-stock-pt-wizard .steps-indicator li a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--rw-text-light);
  font-family: var(--rw-font, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  text-decoration: none;
  letter-spacing: 0;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.new-stock-pt-wizard .steps-indicator li a:hover {
  color: var(--rw-text);
}

/* Step circle (::before on the <a>) */
.new-stock-pt-wizard .steps-indicator li a:before {
  position: relative;
  top: auto;
  left: auto;
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--rw-font, 'Inter', sans-serif);
  content: counter(step);
  background: var(--rw-bg);
  color: var(--rw-text-light);
  border: 2px solid var(--rw-border);
  transition: all 0.25s ease;
}

/* Current step — pill background behind circle + label */
.new-stock-pt-wizard .steps-indicator li.current a {
  color: var(--rw-primary);
  font-weight: 600;
  background: var(--rw-primary-light);
  border-radius: 999px;
  padding: 8px 20px 8px 8px;
}

.new-stock-pt-wizard .steps-indicator li.current a:before {
  background: var(--rw-primary);
  color: var(--rw-white);
  border-color: var(--rw-primary);
}

/* Done step */
.new-stock-pt-wizard .steps-indicator li.done a {
  color: var(--rw-green);
  font-weight: 500;
}

.new-stock-pt-wizard .steps-indicator li.done a:before {
  content: '\f00c';
  font-family: FontAwesome;
  font-size: 11px;
  background: var(--rw-green);
  color: var(--rw-white);
  border-color: var(--rw-green);
}

/* Editing step (selected + completed) */
.new-stock-pt-wizard .steps-indicator li.editing a {
  color: var(--rw-primary);
  font-weight: 600;
  background: var(--rw-primary-light);
  border-radius: 999px;
  padding: 8px 20px 8px 8px;
}

.new-stock-pt-wizard .steps-indicator li.editing a:before {
  background: var(--rw-primary);
  color: var(--rw-white);
  border-color: var(--rw-primary);
}

/* Connecting line between steps */
.new-stock-pt-wizard .steps-indicator li:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 36px;
  height: 2px;
  margin: 0 14px;
  background: var(--rw-border);
  flex-shrink: 0;
  transition: background 0.25s ease;
}

.new-stock-pt-wizard .steps-indicator li.done:not(:last-child)::after {
  background: var(--rw-green);
}


/* ──────────────────────────────────────────────────────────
   2. TEMPLATE THUMBNAILS (Step 2 — Base Templates)
   ────────────────────────────────────────────────────────── */

.new-stock-pt-template-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 4px;
}

.new-stock-pt-thumbnail {
  position: relative;
  border: 2px solid var(--rw-border);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--rw-card-bg);
  text-align: center;
}

.new-stock-pt-thumbnail:hover {
  border-color: var(--rw-primary);
  box-shadow: 0 2px 8px var(--rw-shadow-sm);
}

.new-stock-pt-thumbnail.selected {
  border-color: var(--rw-primary);
  background: var(--rw-primary-light);
}

/* Checkmark badge on selected thumbnail */
.new-stock-pt-thumbnail.selected::after {
  content: '\f00c';
  font-family: FontAwesome;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--rw-primary);
  color: var(--rw-white);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hide the raw radio inside thumbnail */
.new-stock-pt-thumbnail input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.new-stock-pt-thumb-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--rw-text);
  margin-bottom: 8px;
}

/* Layout preview inside thumbnail */
.new-stock-pt-thumb-preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: var(--rw-bg);
  border-radius: 6px;
  min-height: 80px;
}

.new-stock-pt-layout-row {
  display: flex;
  gap: 6px;
}

.new-stock-pt-layout-row.start  { justify-content: flex-start; }
.new-stock-pt-layout-row.end    { justify-content: flex-end; }
.new-stock-pt-layout-row.spread { justify-content: space-between; }

.new-stock-pt-layout-block {
  height: 20px;
  border-radius: 3px;
  background: var(--rw-primary-light);
  border: 1px solid var(--rw-primary);
  opacity: 0.6;
  font-size: 9px;
  font-weight: 600;
  color: var(--rw-primary);
  display: flex;
  align-items: center;
  padding: 0 4px;
}

.new-stock-pt-layout-block.sm   { width: 35%; }
.new-stock-pt-layout-block.md   { width: 45%; }
.new-stock-pt-layout-block.full { width: 100%; }

/* Table block has different style */
.new-stock-pt-layout-block.tbl {
  width: 100%;
  height: 24px;
  background: var(--rw-bg);
  border: 1px dashed var(--rw-border);
  opacity: 1;
  color: var(--rw-text-secondary, #666);
}


/* ──────────────────────────────────────────────────────────
   3. CREATED TEMPLATES (Step 2 — Saved Templates)
   ────────────────────────────────────────────────────────── */

.new-stock-pt-created-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.new-stock-pt-created-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rw-border);
  border-left: 3px solid transparent;
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--rw-card-bg);
  transition: all 0.2s ease;
}

.new-stock-pt-created-card:hover {
  box-shadow: 0 2px 8px var(--rw-shadow-sm);
  border-left-color: var(--rw-primary);
}

/* Card top row — icon + info + actions */
.new-stock-pt-created-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.new-stock-pt-doc-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--rw-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.new-stock-pt-doc-icon i {
  font-size: 14px;
  color: var(--rw-primary);
}

.new-stock-pt-created-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.new-stock-pt-created-card-name {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--rw-text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.new-stock-pt-type-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: var(--rw-primary-light);
  color: var(--rw-primary);
  white-space: nowrap;
}

.new-stock-pt-created-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.new-stock-pt-empty-state {
  padding: 24px;
  text-align: center;
  color: var(--rw-danger);
  font-size: 13px;
}


/* ──────────────────────────────────────────────────────────
   4. SUB-TABS (Step 3)
   ────────────────────────────────────────────────────────── */

/* Hide default angular-ui tabset nav */
.new-stock-pt-tabset-wrap > tabset > .nav-tabs,
.new-stock-pt-tabset-wrap .nav-tabs {
  display: none !important;
}

/* Underline tab bar — matches inner tab style from design system */
.new-stock-pt-subtabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--rw-border);
  margin-bottom: 16px;
  padding: 0;
  background: transparent;
}

.new-stock-pt-subtab {
  padding: 8px 16px;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: 0;
  background: transparent;
  font-family: var(--rw-font, 'Inter', sans-serif);
  font-size: var(--rw-font-size, 13px);
  font-weight: 500;
  color: var(--rw-text-light);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.new-stock-pt-subtab:hover {
  color: var(--rw-primary);
  border-bottom-color: var(--rw-primary);
}

.new-stock-pt-subtab.active {
  color: var(--rw-primary);
  border-bottom: 2px solid var(--rw-primary);
  font-weight: 600;
  background: transparent;
}

.new-stock-pt-subtab i {
  font-size: 14px;
}


/* ──────────────────────────────────────────────────────────
   5. SECTION BAR
   ────────────────────────────────────────────────────────── */

/* Section header — spans full card width, rounded top, subtle bg, bottom border */
.new-stock-pt-section-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--rw-bg) 0%, var(--rw-card-bg) 100%);
  border-radius: 10px 10px 0 0;
  border-bottom: 1px solid var(--rw-border);
  padding: 14px 18px;
  margin: -24px -24px 20px -24px;
}

.new-stock-pt-section-bar i {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--rw-primary-light);
  color: var(--rw-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.new-stock-pt-section-bar span {
  font-family: var(--rw-font, 'Inter', sans-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--rw-text);
}


/* ──────────────────────────────────────────────────────────
   6. FORM LAYOUT
   ────────────────────────────────────────────────────────── */

.new-stock-pt-form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.new-stock-pt-form-row > * {
  flex: 1;
  min-width: 0;
}

.new-stock-pt-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.new-stock-pt-form-group textarea.form-control {
  resize: vertical;
}

.new-stock-pt-form-group .form-control,
.new-stock-pt-form-group .new-stock-rw-ui-select,
.new-stock-pt-field-size .form-control,
.new-stock-pt-field-size .new-stock-rw-ui-select,
.new-stock-pt-header-size .form-control,
.new-stock-pt-header-size .new-stock-rw-ui-select {
  max-width: 100%;
  box-sizing: border-box;
}

.new-stock-pt-label {
  display: block;
  text-transform: uppercase;
  font-family: var(--rw-font, 'Inter', sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--rw-primary);
  opacity: 0.7;
  margin-bottom: 0;
}


/* ──────────────────────────────────────────────────────────
   7. UPLOAD ZONE
   ────────────────────────────────────────────────────────── */

.new-stock-pt-upload-zone {
  border: 2px dashed var(--rw-border);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  background: var(--rw-card-bg);
}

.new-stock-pt-upload-zone:hover {
  border-color: var(--rw-primary);
  background: var(--rw-primary-light);
}

/* Upload icon circle */
.new-stock-pt-upload-zone::before {
  content: '\f093';
  font-family: FontAwesome;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  background: var(--rw-bg);
  color: var(--rw-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.new-stock-pt-upload-zone input[type="file"] {
  max-width: 100%;
  font-family: var(--rw-font, 'Inter', sans-serif);
  font-size: 13px;
  color: var(--rw-text-light);
}

.new-stock-pt-upload-zone .new-stock-pt-upload-hint {
  font-size: 12px;
  color: var(--rw-primary);
  margin-top: 4px;
}

.new-stock-pt-remove-image {
  font-size: 12px;
  color: var(--rw-danger);
  cursor: pointer;
  margin-top: 4px;
  display: inline-block;
}

.new-stock-pt-remove-image:hover {
  text-decoration: underline;
}


/* ──────────────────────────────────────────────────────────
   8. ALIGNMENT PILLS
   ────────────────────────────────────────────────────────── */

.new-stock-pt-align-pills {
  display: inline-flex;
  border: 1px solid var(--rw-border);
  border-radius: 8px;
  overflow: hidden;
}

.new-stock-pt-pill {
  margin: 0;
  cursor: pointer;
  display: block;
}

.new-stock-pt-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.new-stock-pt-pill span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-family: var(--rw-font, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--rw-text-light);
  border-right: 1px solid var(--rw-border);
  transition: all 0.2s ease;
  user-select: none;
}

.new-stock-pt-pill:last-child span {
  border-right: none;
}

.new-stock-pt-pill input[type="radio"]:checked + span {
  background: var(--rw-primary);
  color: var(--rw-white);
}

.new-stock-pt-pill:hover span {
  background: var(--rw-hover-bg);
}

.new-stock-pt-pill input[type="radio"]:checked:hover + span {
  background: var(--rw-primary-dark);
}


/* ──────────────────────────────────────────────────────────
   9. FIELD ROWS (Repeater)
   ────────────────────────────────────────────────────────── */

.new-stock-pt-field-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rw-border);
}

.new-stock-pt-field-row:last-child {
  border-bottom: none;
}

.new-stock-pt-field-num {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--rw-text-light);
  min-width: 24px;
  text-align: center;
}

.new-stock-pt-field-input {
  flex: 1;
  min-width: 0;
}

.new-stock-pt-field-size {
  width: 140px;
  flex-shrink: 0;
}

.new-stock-pt-field-remove {
  flex-shrink: 0;
  color: var(--rw-danger);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}

.new-stock-pt-field-remove:hover {
  background: var(--rw-danger-soft-bg);
}

.new-stock-pt-add-field-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px dashed var(--rw-border);
  background: transparent;
  color: var(--rw-primary);
  font-family: var(--rw-font, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

.new-stock-pt-add-field-btn:hover {
  border-color: var(--rw-primary);
  background: var(--rw-primary-light);
}


/* ──────────────────────────────────────────────────────────
   10. ACTION BAR
   ────────────────────────────────────────────────────────── */

.new-stock-pt-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--rw-border);
}

/* Sticky action bar — fixed to viewport bottom */
.new-stock-pt-action-bar.sticky {
  position: fixed;
  bottom: 0;
  left: 260px;
  right: 0;
  margin-top: 0;
  padding: 12px 24px;
  background: var(--rw-card-bg);
  border-top: 1px solid var(--rw-border);
  box-shadow: 0 -2px 8px var(--rw-shadow-xs);
  z-index: 100;
}

/* padding-bottom is now on .steps via the max-width rule above */

.new-stock-pt-action-bar-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

.new-stock-pt-action-bar-left {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Permission warning */
.new-stock-pt-permission-warn {
  font-size: 12px;
  color: var(--rw-danger);
  margin-top: 8px;
}


/* ──────────────────────────────────────────────────────────
   11. SETTINGS ROWS (Additional Details)
   ────────────────────────────────────────────────────────── */

.new-stock-pt-setting-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rw-border);
}

.new-stock-pt-setting-row:last-child {
  border-bottom: none;
}

.new-stock-pt-setting-row label {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--rw-text);
  cursor: pointer;
}

.new-stock-pt-setting-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--rw-primary);
}

.new-stock-pt-setting-row .force-update-label {
  color: var(--rw-danger);
}

.new-stock-pt-setting-row .force-update-info {
  font-size: 13px;
  color: var(--rw-text-light);
  cursor: help;
}

/* Print headers form */
.new-stock-pt-header-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.new-stock-pt-header-field > label {
  min-width: 120px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--rw-text);
  padding-top: 8px;
  flex-shrink: 0;
}

.new-stock-pt-header-field > .new-stock-pt-header-input {
  flex: 1;
  min-width: 0;
}

.new-stock-pt-header-field > .new-stock-pt-header-size {
  width: 140px;
  flex-shrink: 0;
}


/* ──────────────────────────────────────────────────────────
   12. TABLE SCROLL
   ────────────────────────────────────────────────────────── */

.new-stock-pt-table-scroll {
  max-height: 320px;
  overflow-y: auto;
  border-radius: 10px;
}

/* Custom scrollbar */
.new-stock-pt-table-scroll::-webkit-scrollbar {
  width: 6px;
}

.new-stock-pt-table-scroll::-webkit-scrollbar-track {
  background: var(--rw-bg);
  border-radius: 3px;
}

.new-stock-pt-table-scroll::-webkit-scrollbar-thumb {
  background: var(--rw-border);
  border-radius: 3px;
}

.new-stock-pt-table-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--rw-text-light);
}

/* Drag handle for reorder rows */
.new-stock-pt-drag-handle {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  margin-right: 8px;
}

.new-stock-pt-drag-handle a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 18px;
  border-radius: 4px;
  font-size: 10px;
  color: var(--rw-text-light);
  background: var(--rw-bg);
  border: 1px solid var(--rw-border);
  transition: all 0.15s;
  text-decoration: none;
}

.new-stock-pt-drag-handle a:hover {
  background: var(--rw-primary-light);
  color: var(--rw-primary);
  border-color: var(--rw-primary);
}

/* Bold button */
.new-stock-pt-bold-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--rw-border);
  border-radius: 6px;
  background: var(--rw-card-bg);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--rw-text);
}

.new-stock-pt-bold-btn:hover,
.new-stock-pt-bold-btn.bold-button {
  background: var(--rw-primary);
  color: var(--rw-white);
  border-color: var(--rw-primary);
}

/* Terms & conditions numbered list */
.new-stock-pt-terms-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rw-border);
}

.new-stock-pt-terms-row:last-child {
  border-bottom: none;
}


/* ──────────────────────────────────────────────────────────
   13. HELP ICON (top-right)
   ────────────────────────────────────────────────────────── */

.new-stock-pt-help-icon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--rw-text-light);
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 12px;
  transition: color 0.15s;
}

.new-stock-pt-help-icon:hover {
  color: var(--rw-primary);
}


/* ──────────────────────────────────────────────────────────
   14. RESPONSIVE
   ────────────────────────────────────────────────────────── */

@media (max-width: 992px) {
  .new-stock-pt-template-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .new-stock-pt-created-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .new-stock-pt-form-row {
    flex-direction: column;
    gap: 12px;
  }

  .new-stock-pt-subtabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .new-stock-pt-wizard .steps-indicator {
    padding: 8px 0;
  }

  .new-stock-pt-field-row {
    flex-wrap: wrap;
  }

  .new-stock-pt-field-size {
    width: 100%;
  }

  .new-stock-pt-header-field {
    flex-direction: column;
    gap: 8px;
  }

  .new-stock-pt-header-field > label {
    min-width: auto;
    padding-top: 0;
  }

  .new-stock-pt-header-field > .new-stock-pt-header-size {
    width: 100%;
  }

  .new-stock-pt-action-bar.sticky {
    left: 0;
  }
}

@media (max-width: 768px) {
  .new-stock-pt-template-grid {
    grid-template-columns: 1fr;
  }

  .new-stock-pt-created-grid {
    grid-template-columns: 1fr;
  }

  .new-stock-pt-subtabs {
    overflow-x: auto;
  }

  .new-stock-pt-wizard .steps-indicator li a {
    font-size: 11px;
    gap: 6px;
  }

  .new-stock-pt-wizard .steps-indicator li a:before {
    width: 22px;
    height: 22px;
    min-width: 22px;
    font-size: 10px;
  }

  .new-stock-pt-wizard .steps-indicator li:not(:last-child)::after {
    width: 20px;
    margin: 0 8px;
  }

  .new-stock-pt-action-bar {
    flex-direction: column;
    gap: 12px;
  }

  .new-stock-pt-action-bar-right,
  .new-stock-pt-action-bar-left {
    width: 100%;
    justify-content: center;
  }

  .new-stock-pt-align-pills {
    flex-wrap: wrap;
  }
}
