.volunteer-id-card,
.volunteer-id-card * {
  box-sizing: border-box;
}

.volunteer-id-card {
  width: 83mm;
  height: 53mm;
  flex: none;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0.5mm solid #5a0815;
  border-radius: 3mm;
  background: #fffdf8;
  color: #281918;
  font-family: Arial, sans-serif;
  line-height: normal;
  box-shadow: 0 4px 14px rgba(56, 4, 12, 0.18);
  break-inside: avoid;
  page-break-inside: avoid;
}

.volunteer-id-header {
  height: 11mm;
  flex: 0 0 11mm;
  display: flex;
  align-items: center;
  gap: 2mm;
  padding: 1mm 2mm;
  background: #5a0815;
  color: #fff;
  border-bottom: 0.4mm solid #d4af37;
}

.volunteer-id-header img {
  width: 8mm;
  height: 8mm;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
}

.volunteer-id-header-title {
  color: #fee89d;
  font-size: 8pt;
  font-weight: 800;
  line-height: 1.15;
}

.volunteer-id-header-subtitle {
  font-size: 5.5pt;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.volunteer-id-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 19mm minmax(0, 1fr);
  gap: 2.5mm;
  padding: 2mm 2.5mm;
}

.volunteer-id-photo-column {
  min-width: 0;
  text-align: center;
}

.volunteer-id-photo {
  display: block;
  width: 17mm;
  height: 21mm;
  margin: 0 auto 1mm;
  border: 0.4mm solid #d4af37;
  border-radius: 1.5mm;
  background: #fff;
  object-fit: cover;
}

.volunteer-id-badge {
  color: #5a0815;
  font-size: 6.5pt;
  font-weight: 800;
  white-space: nowrap;
}

.volunteer-id-code {
  color: #786960;
  font-size: 4pt;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.volunteer-id-details {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8mm;
}

.volunteer-id-label {
  color: #786960;
  font-size: 5pt;
  font-weight: 700;
  text-transform: uppercase;
}

.volunteer-id-name,
.volunteer-id-value {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  line-height: 1.15;
}

.volunteer-id-name {
  max-height: 2.3em;
  color: #5a0815;
  font-size: 8pt;
  font-weight: 800;
}

.volunteer-id-value {
  max-height: 2.3em;
  font-size: 6.5pt;
  font-weight: 700;
}

.volunteer-id-meta {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2mm;
  min-width: 0;
}

.volunteer-id-meta > div {
  min-width: 0;
}

.volunteer-id-status {
  align-self: flex-start;
  padding: 0.4mm 1mm;
  border: 0.25mm solid #31c48d;
  border-radius: 1mm;
  background: #def7ec;
  color: #03543f;
  font-size: 5pt;
  font-weight: 700;
}

.volunteer-id-status.pending {
  border-color: #f59e0b;
  background: #fef3c7;
  color: #92400e;
}

.volunteer-id-footer {
  flex: 0 0 4mm;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #5a0815;
  color: #fee89d;
  font-size: 5pt;
  font-weight: 700;
  white-space: nowrap;
}

@media print {
  .volunteer-id-card {
    box-shadow: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
.volunteer-id-card,
.volunteer-id-card * {
  box-sizing: border-box;
}

.volunteer-id-card {
  width: 83mm;
  height: 53mm;
  flex: none;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0.5mm solid #5a0815;
  border-radius: 3mm;
  background: #fffdf8;
  color: #281918;
  font-family: Arial, sans-serif;
  line-height: normal;
  box-shadow: 0 4px 14px rgba(56, 4, 12, 0.18);
  break-inside: avoid;
  page-break-inside: avoid;
}

.volunteer-id-header {
  height: 11mm;
  flex: 0 0 11mm;
  display: flex;
  align-items: center;
  gap: 2mm;
  padding: 1mm 2mm;
  background: #5a0815;
  color: #fff;
  border-bottom: 0.4mm solid #d4af37;
}

.volunteer-id-header img {
  width: 8mm;
  height: 8mm;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
}

.volunteer-id-header-title {
  color: #fee89d;
  font-size: 8pt;
  font-weight: 800;
  line-height: 1.15;
}

.volunteer-id-header-subtitle {
  font-size: 5.5pt;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.volunteer-id-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 19mm minmax(0, 1fr);
  gap: 2.5mm;
  padding: 2mm 2.5mm;
}

.volunteer-id-photo-column {
  min-width: 0;
  text-align: center;
}

.volunteer-id-photo {
  display: block;
  width: 17mm;
  height: 21mm;
  margin: 0 auto 1mm;
  border: 0.4mm solid #d4af37;
  border-radius: 1.5mm;
  background: #fff;
  object-fit: cover;
}

.volunteer-id-badge {
  color: #5a0815;
  font-size: 6.5pt;
  font-weight: 800;
  white-space: nowrap;
}

.volunteer-id-code {
  color: #786960;
  font-size: 4pt;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.volunteer-id-details {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8mm;
}

.volunteer-id-label {
  color: #786960;
  font-size: 5pt;
  font-weight: 700;
  text-transform: uppercase;
}

.volunteer-id-name,
.volunteer-id-value {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  line-height: 1.15;
}

.volunteer-id-name {
  max-height: 2.3em;
  color: #5a0815;
  font-size: 8pt;
  font-weight: 800;
}

.volunteer-id-value {
  max-height: 2.3em;
  font-size: 6.5pt;
  font-weight: 700;
}

.volunteer-id-meta {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2mm;
  min-width: 0;
}

.volunteer-id-meta > div {
  min-width: 0;
}

.volunteer-id-status {
  align-self: flex-start;
  padding: 0.4mm 1mm;
  border: 0.25mm solid #31c48d;
  border-radius: 1mm;
  background: #def7ec;
  color: #03543f;
  font-size: 5pt;
  font-weight: 700;
}

.volunteer-id-status.pending {
  border-color: #f59e0b;
  background: #fef3c7;
  color: #92400e;
}

.volunteer-id-footer {
  flex: 0 0 4mm;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #5a0815;
  color: #fee89d;
  font-size: 5pt;
  font-weight: 700;
  white-space: nowrap;
}

@media print {
  .volunteer-id-card {
    box-shadow: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
