/**
 * Carnet Vertical Estándar
 * Diseño vertical simple y limpio
 */

.carnet--portrait {
  width: calc(323px * var(--carnet-chana-scale));
  height: calc(204px * var(--carnet-chana-scale));
  background: #fff;
  border: 2px solid #cfd7ea;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===========================
   Header
   =========================== */
.carnet__header-portrait {
  height: 20px;
  background: #2563eb;
  border-radius: 10px;
}

/* ===========================
   Body
   =========================== */
.carnet__body-portrait {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

/* ===========================
   Foto
   =========================== */
.carnet__foto {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  flex-shrink: 0;
  border: 2px solid #e0e7ff;
}

/* ===========================
   Info
   =========================== */
.carnet__info {
  flex: 1;
  min-width: 0;
}

.carnet__nombre {
  font-weight: 900;
  font-size: 14px;
  margin: 0 0 4px 0;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.carnet__cargo {
  color: #667085;
  font-size: 12px;
  margin: 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.carnet__dni-portrait {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
}

/* ===========================
   Impresión
   =========================== */
@media print {
  .carnet--portrait {
    page-break-inside: avoid;
  }
}