/* ==========================================================
   Procuração Particular — DETRAN/GO
   ========================================================== */

/* ── Cabeçalho ── */
.header {
  text-align: center;
  padding: 10px 0 4px;
}
.header img {
  height: 55px;
  display: inline-block;
}

/* ── Título ── */
.inicio {
  margin: 6px 0 10px;
}
.inicio h3 {
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  margin: 0;
}
.subtitulo {
  font-size: 13px;
  margin: 2px 0 0;
  font-style: normal;
}

/* ── Seção ── */
.form-section {
  margin-bottom: 4px;
  text-align: left;
}

.section-label {
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  margin: 6px 0 0;
  padding: 0;
  text-align: left;
}

/* ── Tabela de campos ── */
.form-table {
  border: 1px solid #767676;
  border-collapse: collapse;
  width: 100%;
}

.form-row {
  display: flex;
  width: 100%;
  border-bottom: 1px solid #767676;
}

.form-row:last-child {
  border-bottom: none;
}

.form-cell {
  border-right: 1px solid #767676;
  padding: 3px 6px 4px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.form-cell:last-child {
  border-right: none;
}

/* Flex ratios para colunas */
.form-cell.full    { flex: 1; }
.form-cell.flex-2  { flex: 2; }
.form-cell.flex-25 { flex: 2.5; }
.form-cell.flex-3  { flex: 3; }
.form-cell.flex-4  { flex: 4; }
.form-cell.flex-45 { flex: 4.5; }
.form-cell.flex-5  { flex: 5; }
.form-cell.flex-55 { flex: 5.5; }
.form-cell.uf      { flex: 0.8; min-width: 40px; }

/* ── Labels e inputs ── */
.cell-label {
  font-size: 10px;
  font-weight: bold;
  color: #000;
  line-height: 1.2;
  display: block;
}

.cell-input {
  font-family: 'Times New Roman', Times, serif;
  font-size: 13px;
  border: none;
  border-bottom: 1px solid #bbb;
  padding: 1px 2px;
  background: transparent;
  width: 100%;
  outline: none;
  color: #000;
  min-width: 0;
  margin-top: 2px;
}

.cell-input:focus {
  border-bottom-color: #0078d4;
  background: #f0f7ff;
}

/* ── PODERES ── */
.poderes-box {
  border: 1px solid #767676;
  padding: 6px 10px;
  text-align: justify;
}

.poderes-box p {
  font-size: 13px;
  line-height: 20px;
  margin: 0;
}

/* ── Data e Assinatura ── */
.assin-area {
  margin-top: 22px;
  text-align: left;
}

.data-linha {
  font-size: 14px;
  line-height: 28px;
  text-align: left;
}

.data-input {
  font-family: 'Times New Roman', Times, serif;
  font-size: 14px;
  border: none;
  border-bottom: 1px solid #767676;
  padding: 1px 4px;
  background: transparent;
  outline: none;
  vertical-align: middle;
}

.data-input:focus {
  border-bottom-color: #0078d4;
  background: #f0f7ff;
}

.cidade-inp { width: 140px; }
.num-inp    { width: 32px; text-align: center; }
.mes-inp    { width: 110px; }
.ano-inp    { width: 28px; text-align: center; }

.assin-box {
  margin-top: 36px;
  text-align: center;
}

.assin-linha {
  font-size: 15px;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.assin-box p {
  font-size: 14px;
  margin: 0;
}

/* ── Documentação exigida ── */
.docs-exigidos {
  margin-top: 14px;
  border-top: 1px solid #767676;
  padding-top: 8px;
  text-align: left;
}

.docs-exigidos p {
  font-size: 11px;
  line-height: 16px;
  margin: 2px 0;
}

.doc-item {
  padding-left: 12px;
}

.doc-obs {
  font-size: 10.5px;
  line-height: 15px;
  margin-top: 4px !important;
}

/* ── Botão imprimir ── */
.print {
  margin: 16px 0 24px;
  text-align: center;
}

.print img {
  width: 32px;
  height: 32px;
  cursor: pointer;
}


/* ==========================================================
   DOCUMENTO PDF (#pdf-document)
   Oculto na tela — exibido apenas no @media print
   ========================================================== */

#pdf-document {
  padding: 8mm 13mm 6mm 13mm;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9pt;
  color: #000;
  background: #fff;
  line-height: 1.3;
}

/* ── Cabeçalho PDF — tabela (evita bug de flex em print) ── */
.pdf-hd-tbl {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 5pt;
}

.pdf-hd-logo {
  width: 60pt;
  vertical-align: middle;
}

.pdf-hd-logo img {
  height: 30pt;
  display: block;
}

.pdf-hd-center {
  text-align: center;
  vertical-align: middle;
}

.pdf-title {
  font-size: 13pt;
  font-weight: bold;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.3pt;
}

.pdf-hd-right {
  width: 70pt;
  text-align: right;
  vertical-align: bottom;
}

.pdf-subtitle {
  font-size: 7.5pt;
  margin: 0;
}

/* ── Labels de seção ── */
.pdf-section-label {
  font-size: 8.5pt;
  font-weight: bold;
  text-transform: uppercase;
  margin: 4pt 0 0;
  padding: 0;
  line-height: 1.3;
}

/* ── Tabelas de campos ── */
.pdf-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

/* colgroup distribui as 20 colunas igualmente */
.pdf-table col {
  width: 5%;
}

.pdf-cell {
  border: 1px solid #000;
  padding: 1pt 3pt 2pt;
  vertical-align: top;
  overflow: hidden;
}

.pdf-label {
  display: block;
  font-size: 6.5pt;
  font-weight: bold;
  line-height: 1.2;
  white-space: nowrap;
}

.pdf-val {
  display: block;
  font-size: 8.5pt;
  line-height: 11pt;
  font-weight: normal;
  min-height: 10pt;
}

/* ── PODERES ── */
.pdf-poderes {
  border: 1px solid #000;
  border-top: none;
  padding: 3pt 5pt;
}

.pdf-poderes p {
  font-size: 8pt;
  line-height: 12pt;
  text-align: justify;
  margin: 0;
}

/* ── Data e assinatura ── */
.pdf-data-assin {
  margin-top: 8pt;
}

.pdf-data-linha {
  font-size: 9pt;
  line-height: 13pt;
  margin: 0;
}

.pdf-inline-val {
  font-size: 9pt;
  font-weight: normal;
}

.pdf-assin-box {
  margin-top: 14pt;
  text-align: center;
  page-break-inside: avoid;
}

.pdf-assin-linha {
  font-size: 10pt;
  letter-spacing: 1pt;
  margin: 0 0 1pt;
}

.pdf-assin-box p {
  font-size: 8.5pt;
  margin: 0;
  text-align: center;
}

/* ── Documentação exigida ── */
.pdf-docs {
  margin-top: 7pt;
  border-top: 1px solid #000;
  padding-top: 3pt;
}

.pdf-docs p {
  font-size: 7pt;
  line-height: 10pt;
  margin: 0.5pt 0;
}

.pdf-obs {
  font-size: 6.5pt !important;
  line-height: 9.5pt !important;
  margin-top: 2pt !important;
}

/* ── Rodapé ── */
.pdf-footer {
  margin-top: 6pt;
  text-align: center;
  border-top: 1px solid #000;
  padding-top: 3pt;
  position: relative;
}

.pdf-footer p {
  font-size: 6.5pt;
  margin: 0;
  line-height: 10pt;
}

.pdf-doc-id {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 6pt !important;
}


/* ==========================================================
   Responsividade (tela)
   ========================================================== */
@media (max-width: 768px) {
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 10px;
  }

  .form-row {
    flex-wrap: wrap;
  }

  .form-cell {
    flex: 1 1 45% !important;
    min-width: 120px;
  }

  .form-cell.uf {
    flex: 1 1 30% !important;
  }

  .cell-input {
    font-size: 14px;
  }

  .data-linha {
    line-height: 34px;
  }

  .cidade-inp { width: 110px; }
}

@media (max-width: 480px) {
  .form-cell {
    flex: 1 1 100% !important;
    border-right: none;
    border-bottom: 1px solid #767676;
  }

  .form-cell:last-child {
    border-bottom: none;
  }
}
