/* نمایش نسخه: لاتین (نام/شکل) + راهنمای فارسی بیمار */
.rx-item-block {
  margin-bottom: 0.25rem;
}

.rx-item-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.4rem;
}

.rx-item-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f172a;
  letter-spacing: 0.01em;
}

.rx-item-latin {
  font-size: 0.88rem;
  color: #475569;
  font-family: ui-monospace, 'Segoe UI', sans-serif;
  direction: ltr;
  unicode-bidi: embed;
}

.rx-patient-guide {
  font-size: 0.92rem;
  color: #1e293b;
  line-height: 1.65;
  padding: 0.5rem 0.65rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  margin-bottom: 0.35rem;
}

.rx-guide-part {
  font-weight: 500;
}

.rx-guide-sep {
  color: #94a3b8;
  margin: 0 0.15rem;
  font-weight: 400;
}

.rx-total-qty {
  font-size: 0.88rem;
  color: #0f766e;
  padding: 0.35rem 0.5rem;
  background: #ecfdf5;
  border-radius: 6px;
  border: 1px solid #a7f3d0;
}

.rx-total-label {
  color: #047857;
}

.rx-calc-hint {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 400;
}

.rx-instructions {
  font-size: 0.85rem;
  color: #0369a1;
  margin-top: 0.35rem;
}

.rx-item-actions {
  flex-shrink: 0;
}

.rx-items-list .list-group-item {
  border-right: 3px solid #0ea5e9;
}

#rxCalcPreview {
  border-radius: 8px;
  border: 1px dashed #7dd3fc;
  background: #f0f9ff;
  color: #0c4a6e;
}

@media print {
  .rx-patient-guide {
    background: #fff;
    border-color: #cbd5e1;
  }
}
