.wp-repair-repair-card .mri-card-stock-area,
.mri-card-stock-area {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  clear: both !important;
  margin: 6px 0 0 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  position: relative !important;
  z-index: 0 !important;
  overflow: visible !important;
  pointer-events: none !important;
}

.wp-repair-repair-card .repair-name-and-info .mri-card-stock-area,
.wp-repair-repair-card .mri-card-stock-area--inline {
  display: block !important;
  width: 100% !important;
  margin: 5px 0 0 0 !important;
  padding: 0 !important;
}

.mri-card-stock-result {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 2px 0 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.72);
  white-space: normal;
}

.wp-repair-repair-card.active .mri-card-stock-result {
  color: rgba(0, 0, 0, 0.84);
}

.mri-card-stock-result[hidden] {
  display: none !important;
}

/* Legacy cleanup: stock must not be shown in RepairPlugin's badge text area. */
.rp-dm-price-badge.mri-inventory-badge,
.mri-inventory-badge-cont,
.mri-created-badge-cont,
.mri-created-badge,
.mri-attr-stock {
  display: none !important;
}

.mri-cart-stock {
  display: block;
  margin-top: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.72);
  white-space: normal;
}

.mri-cart-stock[hidden] {
  display: none !important;
}


/* Dynamic pricing options: show stock beside each exact part option, not in the main card badge/header. */
.wp-repair-repair-card .more-card-options li .mri-attr-stock-result,
.more-card-options li .mri-attr-stock-result {
  display: block !important;
  clear: both !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 0 5px 0 !important;
  padding: 0 5px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  font-size: 11.5px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  color: rgba(0, 0, 0, 0.68) !important;
  white-space: normal !important;
  position: static !important;
  z-index: auto !important;
  pointer-events: none !important;
}

.wp-repair-repair-card .more-card-options li .mri-attr-stock-result[hidden],
.more-card-options li .mri-attr-stock-result[hidden] {
  display: none !important;
}

html body.hasMouseOver .wp-repair-fe-types-conatiner.page-repairs.page-types .wp-repair-select-container .wp-repair-col-9 .wp-repair-repair-card .more-card-options li:hover .mri-attr-stock-result,
html .wp-repair-fe-types-conatiner.page-repairs.page-types .wp-repair-select-container .wp-repair-col-9 .wp-repair-repair-card .more-card-options li:focus .mri-attr-stock-result,
html .wp-repair-fe-types-conatiner.page-repairs.page-types .wp-repair-select-container .wp-repair-col-9 .wp-repair-repair-card .more-card-options li.active .mri-attr-stock-result,
.more-card-options li.active .mri-attr-stock-result {
  color: #fff !important;
  opacity: 0.95 !important;
}

/* Disabled repair cards: these are service/non-part cards where inventory must not be queried or displayed. */
.wp-repair-repair-card[data-mri-inventory-disabled="1"] .mri-card-stock-area,
.wp-repair-repair-card[data-mri-inventory-disabled="1"] .mri-card-stock-result,
.wp-repair-repair-card[data-mri-inventory-disabled="1"] .mri-attr-stock-result {
  display: none !important;
}


/* Admin local DB sync progress */
.mri-cache-progress {
  max-width: 1040px;
  margin: 12px 0 10px 0;
  padding: 12px 14px;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 1px rgba(0,0,0,.03);
}
.mri-cache-progress[hidden] { display: none !important; }
.mri-cache-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}
.mri-cache-progress-track {
  position: relative;
  width: 100%;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
  border: 1px solid #d8dee7;
}
.mri-cache-progress-bar {
  height: 100%;
  min-width: 3px;
  border-radius: 999px;
  background: #2271b1;
  transition: width .35s ease;
}
.mri-cache-progress-bar.is-done { background: #008a20; }
.mri-cache-progress-bar.is-indeterminate {
  width: 100% !important;
  min-width: 100%;
  background: repeating-linear-gradient(45deg, #2271b1 0, #2271b1 12px, #72aee6 12px, #72aee6 24px);
  background-size: 40px 40px;
  animation: mri-cache-progress-move 1.2s linear infinite;
}
.mri-cache-progress-detail {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.4;
}
.mri-cache-progress-error { color: #b32d2e; }
@keyframes mri-cache-progress-move {
  from { background-position: 0 0; }
  to { background-position: 40px 0; }
}
