/* ============================================
   Catalog & Catalog Detail — Page Styles
   Extracted from inline styles + embedded blocks
   ============================================ */

/* === Product-type filters when nested inside the pill-tabs panel === */
.pill-tabs .pricing-pill-filters--inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  background: transparent;
  padding: 0;
}

/* === Catalog page: 5-column KPI grid === */
[data-page="catalog"] .kpi-grid {
  grid-template-columns: repeat(4, 1fr);
}
[data-page="catalog"] .kpi-card { padding: 10px 14px; }
[data-page="catalog"] .kpi-value { font-size: 1.25rem; }
[data-page="catalog"] .kpi-label { font-size: 0.75rem; }

/* === Row Dropdown Menu === */
.row-menu {
  position: absolute;
  right: 0;
  top: 100%;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 10;
  min-width: 130px;
  padding: 4px 0;
}
.row-menu__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 14px;
  border: none;
  background: none;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  text-align: left;
}
.row-menu__item:hover {
  background: #f1f5f9;
}
.row-menu__item--danger {
  color: #dc2626;
}
.row-menu__item--danger:hover {
  background: #fee2e2;
}

/* Photo upload placeholder tile */
.photo-upload-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.photo-upload-placeholder:hover {
  border-color: #0870c2;
  background: #eff6ff;
}

/* === Shared: Sidebar Logo === */
.logo-full--sidebar {
  height: 32px;
  margin: 0 auto;
}
.logo-mark--sidebar {
  height: 24px;
  margin: 0 auto;
  display: none;
}

/* === Shared: Topbar User === */
.topbar-user-trigger {
  cursor: pointer;
}

/* === Shared: Table Header (blue header row) === */
.th-catalog {
  background: #e0e7f2;
  color: #2a60ac;
  font-weight: 700;
}
.th-catalog .th-subhead {
  font-size: 0.75rem;
  font-weight: 400;
  color: #2a60ac;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.th-catalog--empty {
  background: #e0e7f2;
  width: 32px;
}

/* === Shared: Table Header Flex Layout === */
.th-flex {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* === Shared: Add Button (small circle in table header) === */
.th-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 0;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}
.th-add-btn:hover { background: #fff; color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.th-add-btn:hover svg { stroke: var(--primary); }

/* === Shared: Header count muted === */
.th-count-muted {
  font-weight: 400;
  color: #94a3b8;
}

/* === Shared: Badge with border variants === */
.badge--bordered-success {
  border: 1px solid #bbf7d0;
}
.badge--bordered-warning {
  border: 1px solid #fde68a;
}
.badge--bordered-neutral {
  border: 1px solid #d0d5dd;
}
.badge--bordered-info {
  border: 1px solid #bdd7f1;
}

/* === Shared: Dropdown archive action === */
.dropdown-item--danger {
  color: #ef4444;
}

/* === Shared: Product name link in table === */

/* === Shared: Product description in table row === */
.catalog-product-desc {
  margin-top: 2px;
  line-height: 1.4;
}

/* === Shared: Product meta row (badges + material type) === */

/* Badge type variants moved to global styles.css */

/* === Shared: Service name + fee type row === */

/* ============================================
   catalog.html — List Page Styles
   ============================================ */

/* === Type Filter Pills === */
.type-filter {
  padding: 7px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.type-filter--all {
  padding: 7px 16px;
}
.type-filter.tf-active {
  background: #d0e4f7;
  color: var(--primary);
  border-color: var(--primary);
}

/* === Search Row === */

/* === Table column widths — Products === */
.col-pricing {
  width: 90px;
}

/* === Table column widths — Variants (side-by-side layout) === */
.col-price-mod {
  width: 70px;
}

/* === Table column widths — Pricing (side-by-side layout) === */

/* ============================================
   catalog-detail.html — Detail Page Styles
   ============================================ */

/* === Detail Tabs (from embedded <style>) === */
.detail-tab {
  display: none;
}
.detail-tab.active {
  display: block;
}

/* === Chip-style tabs (same look as settings .chip) === */
.tabs--chips {
  display: flex;
  gap: 6px;
  border-bottom: none;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tabs--chips .tab {
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  background: #fff;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  margin-bottom: 0;
  transition: all 0.12s;
}
.tabs--chips .tab:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.tabs--chips .tab.active {
  background: #d0e4f7;
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
}

/* === Two Column Grid (from embedded <style>) === */
.two-col {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 16px;
}

/* === Attribute Row — inverted alignment: label right, value left, tight center === */
.attr-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}
.attr-row > :first-child { text-align: right; }
.attr-row > :last-child  { text-align: left; }
.attr-row:last-child {
  border-bottom: none;
}

/* === Tag Chip (from embedded <style>) === */
.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: #f1f5f9;
  border: 1px solid #d0d5dd;
  border-radius: 5px;
  font-size: 0.75rem;
  color: var(--text-primary);
}

/* === Detail Badge (type badge next to title) === */
.badge--detail-type {
  background: #e8f2fb;
  color: #0364B1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid #bdd7f1;
}

/* === Meta line under H2 (badge + material type) === */
.catalog-detail-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

/* === Overview Grid Rows === */

/* 3-column variant (Attributes + Tags + Variants) */

/* === Card Body Compact === */
.card-body--compact {
  padding: 12px 16px;
}

/* === Textarea styling === */
.textarea--description {
  font-size: 0.8125rem;
  resize: vertical;
}

/* === Photo Grid === */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.photo-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
}
.photo-thumb--1 { background: linear-gradient(135deg, #e8d5b7, #c4a882); }
.photo-thumb--2 { background: linear-gradient(135deg, #d4c4a8, #b8a080); }
.photo-thumb--3 { background: linear-gradient(135deg, #cdb99a, #a89070); }

/* === Photo count text === */

/* === Form Group Compact === */
.form-group--compact {
  margin-bottom: 10px;
}
.form-group--flush {
  margin-bottom: 0;
}

/* === Form Label Small === */
.form-label-sm {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 4px;
}

/* === Input Row with Button === */

/* === Form Control Small === */
.form-control--sm {
  font-size: 0.8125rem;
}

/* === Inline Add Button (small square) === */
.btn-add-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--primary);
  border-radius: 5px;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.btn-add-inline--sm {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

/* === Two Column Sub-Grid === */

/* === Tags Container === */
.tag-container {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

/* === Tag Removable === */
.tag-removable {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #f1f5f9;
  border: 1px solid #d0d5dd;
  border-radius: 4px;
  font-size: 0.75rem;
}
.tag-remove-btn {
  cursor: pointer;
  color: #94a3b8;
  font-size: 0.875rem;
}

/* === Locked Properties Header Icon === */
.locked-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* === Card Body No Padding === */

/* === Locked Properties List Container === */
.locked-list {
  padding: 0 16px;
}

/* === Card Footer Note === */

/* === Storefront Settings Toggle Row (switch on LEFT of label) === */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

/* === Storefront Settings Display-Name block === */

/* === Variant Label Font Size === */
.variant-label {
  font-size: 0.9375rem;
}

/* === Pricing Calc Badge === */

/* === Pricing Input === */

/* === Responsive (from embedded <style>) === */
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   storefront-manager.html — Storefront Manager
   ============================================ */

/* === Global Settings Card === */
.sf-global-settings {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.sf-setting-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 16px 20px;
}
.sf-setting-card__title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.sf-setting-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.sf-setting-row:last-child {
  margin-bottom: 0;
}
.sf-setting-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
}
.sf-setting-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* === Toggle Switch === */
.sf-switch {
  width: 36px;
  height: 20px;
  background: #cbd5e1;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.sf-switch.on {
  background: var(--primary);
}
.sf-switch__knob {
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.sf-switch.on .sf-switch__knob {
  left: 18px;
}

/* === Small Select === */
.sf-select-sm {
  padding: 5px 28px 5px 8px;
  font-size: 0.8125rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background: #fff;
  color: var(--text-primary);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%2364748b' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  cursor: pointer;
}

/* === Product Type Section === */
.sf-type-header__chevron.open {
  transform: rotate(180deg);
}

/* === Eye Toggle Button === */

/* === Checkbox === */
.sf-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* === Excluded Row === */
.tr-excluded {
  opacity: 0.45;
}
.tr-excluded .sf-toggle-btn {
  color: #94a3b8;
}

/* === Table Columns === */
.col-sf-checkbox {
  width: 40px;
  text-align: center;
}

/* === Summary Bar === */
.sf-mgmt-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
}
.sf-mgmt-summary__count {
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.sf-mgmt-summary__count strong {
  color: var(--primary);
  font-weight: 700;
}

/* === Filter Bar (search + type pills) === */

/* === Product row compact === */
.sf-product-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}
.sf-product-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* === Table column widths === */
.sf-col-batches { width: 70px; }
.sf-col-avail { width: 80px; }
.sf-col-price { width: 110px; text-align: center; }
.sf-col-custom-price { width: 160px; text-align: center; }
.sf-col-override { width: 65px; }

/* === Custom Price Inline Input === */
.sf-custom-price {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}
.sf-custom-input-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.sf-custom-input-wrap__symbol {
  position: absolute;
  left: 7px;
  font-size: 0.8125rem;
  color: #94a3b8;
  pointer-events: none;
}
.sf-custom-input {
  width: 100px;
  padding: 5px 8px 5px 18px;
  font-size: 0.8125rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  color: var(--text-primary);
  text-align: right;
}
.sf-custom-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(60,138,204,0.12);
}
.sf-custom-input::placeholder {
  color: #cbd5e1;
  text-align: center;
}
.sf-custom-save {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}
.sf-custom-save:hover {
  text-decoration: underline;
}

/* === Checkbox indeterminate state === */
.sf-checkbox--indeterminate {
  accent-color: #f59e0b;
}

/* === Two-line column header label === */
.sf-col-header-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}
.sf-col-header-label__sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
}

/* === Override Badge === */
.sf-override-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f1f5f9;
  cursor: pointer;
  white-space: nowrap;
}
.sf-override-badge:hover {
  background: #e2e8f0;
  color: var(--text-secondary);
}
.sf-override-badge--hide {
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fecaca;
}

/* (sf-price-select removed — replaced by plain price + custom input) */

/* === Page Header Actions === */
.page-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* === Publish Confirmation Modal === */
.sf-publish-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1000;
}
.sf-publish-overlay.show {
  display: block;
}
.sf-publish-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  padding: 28px 32px;
  z-index: 1001;
  width: 440px;
  max-width: 90vw;
}
.sf-publish-modal.show {
  display: block;
}
.sf-publish-modal__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.sf-publish-modal__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.sf-publish-modal__text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}
.sf-publish-modal__realtime {
  font-weight: 700;
}
.sf-publish-modal__summary {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}
.sf-publish-modal__stat {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.sf-publish-modal__stat strong {
  color: var(--text-primary);
}
.sf-publish-modal__confirm-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.sf-publish-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* === Publish Button (gold, prominent) === */
.btn--publish {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
  box-shadow: 0 2px 8px rgba(217,119,6,0.3);
}
.btn--publish:hover {
  background: linear-gradient(135deg, #b45309, #92400e);
  box-shadow: 0 4px 12px rgba(217,119,6,0.4);
}
.btn--publish-sm {
  padding: 18px 24px;
  font-size: 0.8125rem;
}
.btn--publish-sm .btn--publish-word {
  font-size: 1.0625rem;
}

/* === Product Type Color Bar (vertical bar inside name cell) === */
.td-type-bar {
  position: relative;
  padding-left: 16px !important;
}
.td-type-bar::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 15%;
  height: 70%;
  width: 4px;
  border-radius: 2px;
}
.td-type-bar--natural::before   { background: #5a9fd4; }
.td-type-bar--engineered::before { background: #a78bfa; }
.td-type-bar--tiles::before     { background: #5eead4; }
.td-type-bar--misc::before      { background: #fbbf24; }

/* === Type-colored pill selectors === */
.pricing-pill.pricing-pill--natural   { border-color: #5a9fd4; color: #1e293b; }
.pricing-pill.pricing-pill--engineered { border-color: #a78bfa; color: #1e293b; }
.pricing-pill.pricing-pill--tiles     { border-color: #5eead4; color: #1e293b; }
.pricing-pill.pricing-pill--misc      { border-color: #fbbf24; color: #1e293b; }

.pricing-pill.pricing-pill--natural.pricing-pill--active   { background: #e8f2fb; border-color: #0364B1; color: #0364B1; font-weight: 600; }
.pricing-pill.pricing-pill--engineered.pricing-pill--active { background: #f3e8ff; border-color: #7c3aed; color: #7c3aed; font-weight: 600; }
.pricing-pill.pricing-pill--tiles.pricing-pill--active      { background: #f0fdfa; border-color: #0d9488; color: #0d9488; font-weight: 600; }
.pricing-pill.pricing-pill--misc.pricing-pill--active       { background: #fef3c7; border-color: #92400e; color: #92400e; font-weight: 600; }

.pricing-pill.pricing-pill--active::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
  mask-size: contain;
  -webkit-mask-size: contain;
  flex-shrink: 0;
}

.pricing-pill.pricing-pill--natural:hover   { border-color: #0364B1; color: #0364B1; }
.pricing-pill.pricing-pill--engineered:hover { border-color: #7c3aed; color: #7c3aed; }
.pricing-pill.pricing-pill--tiles:hover      { border-color: #0d9488; color: #0d9488; }
.pricing-pill.pricing-pill--misc:hover       { border-color: #92400e; color: #92400e; }

/* === Type Legend (card footer) === */
.type-legend {
  display: flex;
  align-items: center;
  gap: 10px;
}
.type-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #94a3b8;
}
.type-legend__bar {
  display: inline-block;
  width: 4px;
  height: 14px;
  border-radius: 2px;
}
.type-legend__bar--natural   { background: #5a9fd4; }
.type-legend__bar--engineered { background: #a78bfa; }
.type-legend__bar--tiles     { background: #5eead4; }
.type-legend__bar--misc      { background: #fbbf24; }

/* ============================================================
   Catalog Detail — Single Card w/ Subsections
   One big .detail-card wraps all subsections, separated by dividers.
   ============================================================ */
.detail-card {
  padding: 0;
}
.detail-section {
  padding: 20px 20px;
  border-top: 1px solid var(--border-color);
}
.detail-section--first {
  border-top: none;
}
.detail-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.detail-section-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.detail-section-grid {
  display: grid;
  gap: 24px;
}
.detail-section-grid--2 { grid-template-columns: 1fr 1fr; }
.detail-section-grid--3-1 { grid-template-columns: 3fr 1fr; }
.detail-section-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.detail-sub { min-width: 0; }

/* Pricing — constrained, dense layout (not full-bleed) */
.pricing-body {
  max-width: 520px;
}
/* Money input: [$ | 45.00] */

/* Tier list: header + rows, 4-col grid */
.pricing-tiers { display: block; }
.pricing-tiers__header,
.pricing-tiers__row {
  display: grid;
  grid-template-columns: 120px 1fr 70px 100px 32px;
  align-items: center;
  column-gap: 4px;
  padding: 8px 0;
}
.pricing-tiers__header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  border-bottom: 1px solid var(--border-color);
  padding: 6px 0;
}
.pricing-tiers__th-tier {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
}
.pricing-tiers__row {
  font-size: 0.8125rem;
}
.pricing-tiers__row:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}
.pricing-tiers__row--base {
  background: #fafbfc;
  padding: 10px 8px;
  border-radius: 4px;
}
.pricing-tier-sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  font-style: italic;
  color: #94a3b8;
  margin-top: 1px;
}
.pricing-editable-amount {
  border: 1px solid transparent;
  background: transparent;
  padding: 2px 4px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  width: 100%;
  border-radius: 5px;
  color: var(--text-primary);
}
.pricing-editable-amount:hover {
  border-color: var(--border-color);
  background: #fff;
}
.pricing-editable-amount:focus {
  border-color: var(--primary);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(60,138,204,0.1);
}
.pricing-tiers__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 5px;
  text-decoration: none;
}

/* Locked Properties — smaller/denser */
.detail-sub .locked-list .attr-row {
  padding: 4px 0;
  font-size: 0.75rem;
}
.detail-sub .locked-list .attr-row > * {
  font-size: 0.75rem;
}
.detail-sub .locked-footer-note {
  margin-top: 8px;
  padding-top: 8px;
}
.detail-sub .locked-footer-note .text-sm {
  font-size: 0.75rem;
}

/* Locked footer note — replaces the old .card-footer-note inside the new single-card layout */
.locked-footer-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

/* Responsive: collapse grids to single column on narrow viewports */
@media (max-width: 900px) {
  .detail-section-grid--2,
.detail-section-grid--3-1,
.detail-section-grid--3 { grid-template-columns: 1fr; }
  .pricing-tiers__header,
  .pricing-tiers__row { grid-template-columns: 100px 1fr 60px 90px 28px; }
}
