/* Padrão visual tipo govbr.consulta-rg-vio.info — STARNET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #f5f5f5;
}

.header {
  background-color: #6baa3d;
  color: white;
  padding: 15px;
  display: flex;
  align-items: center;
  position: relative;
}

.back-button {
  font-size: 28px;
  margin-right: 15px;
  color: white;
  text-decoration: none;
  line-height: 1;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0 4px;
}

.header-title {
  font-size: 24px;
  flex-grow: 1;
}

.info-button {
  width: 30px;
  height: 30px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #6baa3d;
  font-weight: bold;
}

.content {
  padding: 20px;
  background-color: #f0f0f0;
  min-height: calc(100vh - 60px);
}

.title {
  text-align: center;
  font-size: 32px;
  color: #444;
  margin-bottom: 5px;
}

.subtitle {
  text-align: center;
  color: #777;
  margin-bottom: 12px;
}

.status-pill {
  text-align: center;
  font-size: 13px;
  margin-bottom: 18px;
  font-weight: 600;
}

.status-pill.ok { color: #047857; }
.status-pill.preview { color: #b45309; }
.status-pill.err { color: #b91c1c; }

/* Quadro de mídia — CIN e CHA (sempre 3×4; CHA usa foto, não digital) */
.photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 28px;
  gap: 8px;
}

.photo-container,
.photo-container-3x4 {
  width: 150px;
  height: 200px; /* 3:4 exato */
  border: 5px solid #ddd;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.photo,
.photo-3x4 {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover; /* preenche o 3×4 como no cartão */
  object-position: center top;
  display: block;
}

.photo-placeholder {
  color: #bbb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 8px;
  line-height: 1.3;
}

.photo-caption {
  font-size: 12px;
  color: #6baa3d;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.photo-wrap-cha .photo-container {
  border-color: #8fbf9a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* Nunca mostrar impressão digital nesta tela (só foto 3×4) */
.fingerprint,
.digital-print,
.impressao-digital {
  display: none !important;
}

.info-row {
  margin-bottom: 20px;
}

.info-label {
  color: #6baa3d;
  font-size: 14px;
  margin-bottom: 5px;
}

.info-value {
  font-size: 22px;
  color: #333;
  padding-bottom: 10px;
  border-bottom: 1px solid #ccc;
  min-height: 1.3em;
  word-break: break-word;
}

.foot {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #ddd;
  font-size: 11px;
  color: #888;
  line-height: 1.45;
  text-align: center;
}

.foot code {
  font-size: 10px;
  color: #666;
}

.loading {
  text-align: center;
  color: #666;
  padding: 2rem 0;
  font-size: 15px;
}

.sign-box {
  margin: 1rem 0 1.25rem;
  padding: 0.65rem 0.75rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-align: center;
}
.sign-img {
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
}
