@page {
  size: A4;
  margin: 20mm;
}

/* ===== RESET CƠ BẢN ===== */
body {
  font-family: "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.4;
  color: #000;
  margin: 0;
  padding: 0;
}

/* ===== TIÊU ĐỀ ===== */
.title {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

/* ===== CÁC KHỐI THÔNG TIN ===== */
.section {
  margin-bottom: 6px;
}

/* ===== DANH SÁCH THUỐC (THỤT LỀ TOÀN BỘ) ===== */
.drug-list {
  padding-left: 28px;   /* <<< THỤT LỀ NGUYÊN KHỐI */
  margin-top: 8px;
}

.drug-list table {
  width: 100%;
  border-collapse: collapse;
}

.drug-list td {
  vertical-align: top;
  padding: 2px 0;
  border: none;
}

/* tên thuốc */
.drug-name {
  font-weight: bold;
}

/* cách dùng */
.drug-usage {
  padding-left: 5px;   /* <<< cách dùng lùi thêm */
  font-style: italic;
}

/* số lượng */
.drug-qty {
  text-align: right;
  white-space: nowrap;
}

/* ===== GHI CHÚ ===== */
.note {
  margin-top: 10px;
}

/* ===== CHÂN KÝ ===== */
.footer {
  margin-top: 28px;
  display: flex;
  justify-content: flex-end; /* Đẩy khối ký sang phải */
}

.signature-block {
  text-align: center;
  /* Tăng min-width lên để tên bác sĩ dài không bị xuống dòng */
  min-width: 350px; 
  max-width: 450px;
  white-space: nowrap; /* Giữ tên trên một hàng nếu cần */
}

.signature-img {
  max-height: 100px; /* Tăng nhẹ chiều cao chữ ký */
  max-width: 250px;  /* Tăng chiều ngang ảnh chữ ký */
  margin: 10px auto;
  display: block;
  object-fit: contain;
}

.doctor-name {
  font-weight: bold;
  font-size: 20px;
  margin-top: 8px;
  text-transform: uppercase; /* Thường tên bác sĩ in hoa sẽ trang trọng hơn */
}
.doctor-phone {
  font-size: 18px;
  margin-top: 2px;
}
