/* ═══ DMTA equipment catalog — shared filters, cards & detail modal ═══ */
.eq-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-bottom: 22px; padding: 16px 18px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
}
.eq-search {
  flex: 1 1 260px; min-width: 220px; display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--border); border-radius: 8px; padding: 0 14px; height: 44px;
  background: #fff;
}
.eq-search i { color: var(--gray-light); font-size: 14px; }
.eq-search input {
  flex: 1; border: none; outline: none; font: inherit; font-size: 13.5px;
  color: var(--navy); background: transparent; min-width: 0;
}
.eq-select {
  height: 44px; min-width: 168px; padding: 0 12px; border-radius: 8px;
  border: 1.5px solid var(--border); background: #fff; color: var(--navy);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.eq-select:focus, .eq-search:focus-within { border-color: var(--gold); outline: none; }
.eq-count {
  margin-left: auto; font-size: 12.5px; color: var(--gray); font-weight: 600;
  white-space: nowrap;
}
.eq-count b { color: var(--navy); font-size: 15px; }
.eq-count .eq-reset {
  margin-left: 10px; color: var(--gold-dark); cursor: pointer; font-weight: 700;
  border: none; background: none; font: inherit; font-size: 12.5px;
}
.eq-count .eq-reset:hover { text-decoration: underline; }

.eq-card-foot { gap: 8px; }
.eq-foot-note {
  font-size: 11px; color: var(--gray-light); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; margin-right: auto;
}
.eq-foot-note i { color: var(--gold-dark); }
.eq-card-foot .pbtn {
  flex: 0 0 auto; padding: 9px 14px; font-size: 10.5px; letter-spacing: .6px;
}
.eq-card .machine-body h4 { word-break: break-word; }
.eq-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.eq-flag {
  font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  background: rgba(30,45,78,.06); color: var(--gray); border-radius: 5px; padding: 4px 8px;
}

.eq-modal-body { max-height: 90vh; overflow-y: auto; }
.eq-modal-info { padding: 30px 32px 28px; }
.eq-modal-info h3 { font-size: 23px; }
.eq-modal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.eq-modal-meta span {
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  background: rgba(245,166,35,.14); color: #8a5b00; border-radius: 20px; padding: 5px 11px;
}
.eq-desc { font-size: 13px; line-height: 1.7; color: var(--gray); margin-bottom: 16px; }
.eq-spec-wrap { max-height: 300px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; }
.eq-spec-wrap .spec-table { margin: 0; font-size: 12.5px; }
.eq-spec-wrap .spec-table td { padding: 8px 12px; }
.eq-spec-wrap .spec-table tr:last-child td { border-bottom: none; }
/* HIDDEN: "Original source page" link — kept hidden as a safety net */
.eq-src {
  display: none !important; align-items: center; gap: 7px; margin: 14px 0 18px;
  font-size: 12px; font-weight: 600; color: var(--gold-dark);
}
.eq-src:hover { text-decoration: underline; }
.eq-modal-actions { display: flex; gap: 10px; }
.eq-modal-actions .pbtn { padding: 13px 0; font-size: 12.5px; }
.eq-empty-specs { font-size: 12.5px; color: var(--gray-light); padding: 14px 0; }

/* parts catalog integration */
.prod-card { cursor: pointer; }
.prod-body .eq-foot-note { margin: auto 0 12px; display: flex; }
.cond-chip.catalog { background: var(--navy); color: #fff; }
.eq-modal-info .modal-actions { margin-top: 16px; }
.eq-modal-info .eq-spec-wrap { margin-bottom: 4px; }

@media (max-width: 900px) {
  .eq-toolbar { padding: 14px; }
  .eq-count { margin-left: 0; }
  .eq-select { flex: 1 1 160px; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-img { min-height: 240px; border-radius: 16px 16px 0 0; }
}

/* Parts without a real photo: no image block at all, only the status chips.
   With a photo the original .prod-img / .modal-img layout is unchanged. */
.prod-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 18px 0; }
.prod-chips > span { position: static; display: inline-flex; align-items: center; }
.prod-card.no-photo .prod-body { padding-top: 10px; }
.modal-grid.no-img { grid-template-columns: 1fr; }


/* Inquiry-list thumbnails for parts without a real photo */
.ditem-img.no-img { background: #F4EFE6 !important; border: 1px dashed #E7DFD2; }
