/* NANO GO – Digital Passport Enhanced v2.3.0 */

.ng-passport {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  align-items: flex-start;
  margin: 2rem 0;
  font-family: Verdana, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

/* LEFT COLUMN – product image + QR */
.ng-passport__media {
  position: sticky;
  top: 20px;
}

.ng-passport__media-main img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* QR Code - NEW v2.2.0 */
.ng-passport__qr {
  margin-top: 1rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  text-align: center;
}

.ng-passport__qr img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Tab badge - NEW v2.2.0 */
.ng-passport-badge {
  font-size: 0.9em;
  margin-left: 0.25rem;
  filter: grayscale(0%);
}

/* RIGHT COLUMN – info */
.ng-passport__info {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
}

.ng-passport__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e2e8f0;
}

.ng-passport__title {
  font-size: 20px;
  font-weight: 700;
  color: #1a202c;
}

/* Download Button - NEW v2.2.0 */
.ng-passport__download {
  padding: 0.5rem 1rem;
  background: #4299e1;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.ng-passport__download:hover {
  background: #3182ce;
}

/* Section titles - NEW v2.2.0 */
.ng-passport__section {
  margin-bottom: 1.5rem;
}

.ng-passport__section-title {
  font-size: 15px;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #edf2f7;
}

/* META TABLE */
.ng-passport__meta {
  display: grid;
  grid-template-columns: 180px 1fr;
  column-gap: 1.5rem;
  row-gap: 0.75rem;
}

.ng-passport__meta dt {
  font-weight: 600;
  color: #4a5568;
  font-size: 13px;
}

.ng-passport__meta dd {
  margin: 0;
  color: #2d3748;
  font-size: 14px;
}

/* CONTENT BLOCKS */
.ng-passport__block {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #edf2f7;
}

.ng-passport__block:first-of-type {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #edf2f7;
}

.ng-passport__block-title {
  margin: 0 0 0.75rem;
  font-size: 15px;
  font-weight: 600;
  color: #2d3748;
}

.ng-passport__block-body {
  font-size: 14px;
  line-height: 1.7;
  color: #4a5568;
}

.ng-passport__block-body p {
  margin: 0 0 0.75rem;
}

.ng-passport__block-body ul,
.ng-passport__block-body ol {
  margin: 0 0 0.75rem;
  padding-left: 1.5rem;
}

.ng-passport__block-body li {
  margin-bottom: 0.5rem;
}

/* HAZARD PICTOGRAMS */
.ng-passport__hazards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 1.5rem;
}

.ng-passport__hazards--bottom {
  border-top: 1px solid #edf2f7;
  padding-top: 1rem;
}

/* Safety Warning - NEW v2.3.0 */
.ng-passport__safety-warning {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
  border: 1px solid #ffc107;
  border-left: 4px solid #ff9800;
  border-radius: 4px;
  color: #856404;
  font-size: 14px;
  font-weight: 500;
}

.ng-passport__safety-warning strong {
  color: #664d03;
}

/* Pictograms container - NEW v2.3.0 */
.ng-passport__pictograms {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
}

.ng-passport__pictograms img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 4px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .ng-passport {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ng-passport__media {
    position: static;
  }

  .ng-passport__media-main img {
    max-width: 250px;
    margin: 0 auto;
  }

  .ng-passport__qr {
    max-width: 200px;
    margin: 1rem auto 0;
  }

  .ng-passport__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .ng-passport__download {
    width: 100%;
  }

  .ng-passport__meta {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .ng-passport__meta dt {
    font-weight: 700;
    margin-bottom: 0.25rem;
  }

  .ng-passport__pictograms {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .ng-passport__pictograms img {
    flex: 0 0 calc(25% - 6px);
    max-width: 100%;
  }
  
  .ng-passport__safety-warning {
    font-size: 13px;
  }
}

/* Print styles */
@media print {
  .ng-passport {
    grid-template-columns: 200px 1fr;
  }

  .ng-passport__info {
    border: 1px solid #ddd;
    box-shadow: none;
  }

  .ng-passport__download {
    display: none;
  }

  .ng-passport__qr {
    page-break-inside: avoid;
  }
}
