/* ==============================================================
   WIREFRAME v2 — DETRAN-SC (Consultar Débitos · simplificado)
   Reaproveita o CSS da v1 (header, footer, placa, accordion, paleta)
   e adiciona apenas os componentes novos da v2:
     - Form centralizado com placeholder único (sem labels)
     - Modal de loading "Consultando débitos..."
     - Banner amarelo "Débitos vencidos — multa e juros acumulando"
     - Card de débitos com Total destaque + social proof + Pagar tudo
     - Linhas de débitos compactas com aviso de vencido em rosa
     - Modal PIX centralizado (sobre dossiê) com timer / steps / QR / copy
   Visual extraído de interfacev2/chrome-capture-2026-05-05*.png.
   ============================================================== */

@import url("./wireframe-sc.css");

/* ============================================================
   v2 · TÍTULO CENTRAL DA PÁGINA
   "← Voltar ao início" (link vermelho) → título grande →
   subtitulo cinza uppercase → warning text
   ============================================================ */
.v2-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--sc-secondary);
  text-decoration: none;
  font-size: 14px;
  margin: 22px 0 0;
}
.v2-back:hover { text-decoration: underline; }

.v2-page-head {
  text-align: center;
  margin: 8px 0 22px;
}
.v2-page-head h1 {
  font-size: 30px;
  font-weight: 600;
  color: #2b2b2b;
  margin: 6px 0 14px;
  letter-spacing: -0.2px;
}
.v2-page-head .eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 600;
  color: #8a8a8a;
  margin-bottom: 12px;
}
.v2-page-head .warn {
  max-width: 560px;
  margin: 0 auto;
  color: #2b2b2b;
  font-size: 15px;
  line-height: 1.5;
}

/* ============================================================
   v2 · FORM SIMPLIFICADO (Placa + Renavam, sem labels acima)
   ============================================================ */
.v2-search {
  max-width: 380px;
  margin: 0 auto;
}
.v2-search .v2-input {
  position: relative;
  margin-bottom: 12px;
}
.v2-search .v2-input input {
  width: 100%;
  height: 48px;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  padding: 10px 40px 10px 16px;
  font-size: 14px;
  color: #2b2b2b;
  background: #fff;
  outline: none;
  transition: border-color .15s;
}
.v2-search .v2-input input::placeholder {
  color: #8a8a8a;
}
.v2-search .v2-input input:focus {
  border-color: var(--sc-primary);
}
.v2-search .v2-input .info-ico {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  color: #b8b8b8;
  font-size: 16px;
  pointer-events: none;
}
.v2-help-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px;
  margin: -4px 0 18px;
  padding: 0 4px;
}
.v2-help-row .help {
  color: #5c5c5c;
}
.v2-help-row .help i {
  color: #b8b8b8;
  margin-right: 4px;
}
.v2-help-row .help-link {
  color: var(--sc-secondary);
  text-decoration: underline;
  font-weight: 600;
}
.v2-help-row .help-link:hover { color: var(--sc-secondary-dk); }

.v2-btn-primary {
  display: block;
  width: 100%;
  height: 48px;
  background: var(--sc-primary);
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  line-height: 48px;
  transition: background .15s;
}
.v2-btn-primary:hover { background: var(--sc-primary-dk); color: #fff; }

.v2-ssl {
  display: block;
  text-align: center;
  font-size: 12.5px;
  color: #8a8a8a;
  margin-top: 14px;
}
.v2-ssl i { margin-right: 4px; color: #b8b8b8; }

/* ============================================================
   v2 · LOADING MODAL (overlay + caixinha branca centralizada)
   ============================================================ */
.v2-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.42);
  display: flex; align-items: center; justify-content: center;
  z-index: 50;
  border-radius: 8px;
}
.v2-loading-box {
  background: #fff;
  border-radius: 8px;
  padding: 28px 38px;
  display: flex; align-items: center; gap: 18px;
  font-size: 18px;
  font-weight: 700;
  color: #2b2b2b;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.v2-spinner {
  width: 32px; height: 32px;
  border: 3px solid #e8e8e8;
  border-top-color: var(--sc-primary);
  border-radius: 50%;
  animation: v2spin 1s linear infinite;
}
@keyframes v2spin { to { transform: rotate(360deg); } }

/* Adapta sc-shell pra suportar overlay relativo (variante loading) */
.v2-shell-rel { position: relative; }

/* ============================================================
   v2 · DOSSIÊ — wrapper cinza envolvendo placa + cards
   ============================================================ */
.v2-dossie-shell {
  background: #f4f4f4;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 18px 22px 22px;
  max-width: 868px;
  margin: 14px auto 26px;
}
.v2-dossie-shell .crumb {
  font-size: 13px;
  color: #5c5c5c;
  margin-bottom: 4px;
}
.v2-dossie-shell h2.dossie-ttl {
  font-size: 22px;
  font-weight: 600;
  color: #2b2b2b;
  margin: 0 0 16px;
  display: flex; align-items: center; gap: 10px;
}
.v2-dossie-shell h2.dossie-ttl i {
  color: var(--sc-secondary);
  font-size: 18px;
}

/* Hero da placa centralizado, com município em cima e timestamp embaixo */
.v2-plate-hero {
  background: #fff;
  border-radius: 8px;
  padding: 18px;
  text-align: center;
  margin-bottom: 14px;
}
.v2-plate-hero .municipio {
  display: block;
  text-transform: uppercase;
  letter-spacing: 6px;
  font-size: 12px;
  color: #8a8a8a;
  margin-bottom: 8px;
}
.v2-plate-hero .plate {
  display: inline-block;
  font-family: 'Russo One', 'Lato', sans-serif;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #2b2b2b;
  border: 3px solid #2b2b2b;
  border-radius: 6px;
  padding: 4px 22px 6px;
  line-height: 1;
}
.v2-plate-hero .gerado {
  display: block;
  font-size: 12.5px;
  color: #8a8a8a;
  margin-top: 12px;
}

/* Card branco genérico (Dados / Débitos) */
.v2-card {
  background: #fff;
  border-radius: 8px;
  padding: 18px 20px 20px;
  margin-bottom: 14px;
}
.v2-card-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #5c5c5c;
  margin: 0 0 14px;
}

/* Grid Dados do Veículo: 2 col com label cinza por cima e valor preto */
.v2-data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
  background: #f7f7f7;
  border-radius: 6px;
  padding: 14px 18px;
}
.v2-data-grid .field { display: flex; flex-direction: column; }
.v2-data-grid .field .lbl {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #8a8a8a;
  font-weight: 600;
}
.v2-data-grid .field .val {
  font-size: 14px;
  color: #2b2b2b;
  font-weight: 500;
}

/* Banner amarelo de aviso "Débitos vencidos" */
.v2-banner-warn {
  background: #fffbe6;
  border: 1px solid #f0d775;
  border-radius: 6px;
  padding: 12px 16px;
  display: flex; align-items: flex-start; gap: 12px;
  margin: 14px 0;
}
.v2-banner-warn i.alert {
  color: #c98a00;
  font-size: 18px;
  margin-top: 1px;
}
.v2-banner-warn .txt strong {
  display: block;
  color: #2b2b2b;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.v2-banner-warn .txt p {
  margin: 0;
  font-size: 13px;
  color: #665;
}

/* ============================================================
   v2 · CARD DE DÉBITOS
   header com Total + CTA "Pagar tudo" + social-proof linha
   tabela 4 col: Débito | Vencimento | Valor | Pagar
   ============================================================ */
.v2-debitos {
  display: flex; flex-direction: column; gap: 10px;
}
.v2-debitos .head {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.v2-debitos .head .left h3 {
  font-size: 18px;
  font-weight: 600;
  color: #2b2b2b;
  margin: 0 0 2px;
}
.v2-debitos .head .left .total {
  font-size: 14px;
  color: #5c5c5c;
}
.v2-debitos .head .left .total strong {
  color: var(--sc-secondary);
  font-size: 15px;
  font-weight: 700;
  margin-left: 4px;
}

.v2-btn-pagar-tudo {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sc-primary);
  color: #fff;
  border: 0;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.v2-btn-pagar-tudo:hover { background: var(--sc-primary-dk); color: #fff; }
.v2-btn-pagar-tudo i { font-size: 12px; }

/* Social proof: bolinhas + "846 pessoas quitaram débitos hoje" */
.v2-social-proof {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: #5c5c5c;
  margin: 4px 0 6px;
}
.v2-social-proof .dots {
  display: inline-flex; gap: 2px;
}
.v2-social-proof .dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.v2-social-proof .dots .d1 { background: var(--sc-primary); }
.v2-social-proof .dots .d2 { background: #f0c419; }
.v2-social-proof .dots .d3 { background: #2c84d4; }
.v2-social-proof strong {
  color: #2b2b2b;
  font-weight: 700;
}

/* Tabela compacta */
.v2-debt-table {
  width: 100%;
  border-collapse: collapse;
}
.v2-debt-table th,
.v2-debt-table td {
  padding: 14px 10px;
  text-align: left;
  font-size: 13px;
  vertical-align: top;
  border-bottom: 1px solid #ececec;
}
.v2-debt-table thead th {
  font-size: 12.5px;
  font-weight: 700;
  color: #5c5c5c;
  background: #fafafa;
  border-bottom: 1px solid #e5e5e5;
}
.v2-debt-table .col-pagar,
.v2-debt-table .col-valor,
.v2-debt-table .col-venc {
  text-align: left;
  white-space: nowrap;
}
.v2-debt-table .col-pagar { text-align: right; }
.v2-debt-table tbody tr:last-child td { border-bottom: 0; }

.v2-debt-table .descr-name {
  font-size: 14px;
  color: #2b2b2b;
  font-weight: 500;
}
.v2-debt-table .vencido-warn {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 8px;
  background: #fdecea;
  color: #c4000b;
  border-radius: 3px;
  font-size: 11.5px;
  font-weight: 600;
}
.v2-debt-table .vencido-warn i { margin-right: 4px; }

.v2-debt-table .vencimento.vencido {
  color: #c4000b;
  font-weight: 600;
}
.v2-debt-table .vencimento.vencido i {
  margin-left: 4px;
  color: #c4000b;
}
.v2-debt-table .valor {
  color: #2b2b2b;
  font-weight: 700;
}

.v2-btn-pix {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sc-primary);
  color: #fff;
  border: 0;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.v2-btn-pix:hover { background: var(--sc-primary-dk); color: #fff; }
.v2-btn-pix i { font-size: 11px; }

/* ============================================================
   v2 · MODAL PIX CENTRALIZADO
   ============================================================ */
.v2-pix-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex; align-items: flex-start; justify-content: center;
  z-index: 60;
  padding: 30px 12px;
  border-radius: 8px;
}
.v2-pix-modal {
  background: #fff;
  width: 100%;
  max-width: 440px;
  border-radius: 10px;
  padding: 18px 20px 20px;
  box-shadow: 0 14px 32px rgba(0,0,0,.25);
}
.v2-pix-modal .head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 14px;
}
.v2-pix-modal .head h3 {
  font-size: 17px;
  font-weight: 600;
  color: #2b2b2b;
  margin: 0;
}
.v2-pix-modal .head .valor {
  font-size: 12.5px;
  color: #5c5c5c;
  margin-top: 2px;
}
.v2-pix-modal .head .valor strong { color: #2b2b2b; }
.v2-pix-modal .close {
  background: transparent;
  border: 0;
  font-size: 22px;
  line-height: 1;
  color: #8a8a8a;
  cursor: pointer;
  padding: 0;
}
.v2-pix-modal .close:hover { color: #2b2b2b; }

.v2-pix-banner {
  background: #eaf3fb;
  border: 1px solid #c4dcf0;
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: #1d4263;
  margin-bottom: 12px;
  line-height: 1.5;
}
.v2-pix-banner i { color: #2c84d4; margin-right: 4px; }
.v2-pix-banner strong { color: #1d4263; }

.v2-pix-timer {
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: #5c5c5c;
  text-align: center;
  margin-bottom: 14px;
}
.v2-pix-timer i { margin-right: 6px; color: #8a8a8a; }
.v2-pix-timer strong { color: #2b2b2b; }

.v2-pix-steps {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.v2-pix-steps li {
  display: flex; gap: 10px;
  font-size: 13px;
  color: #2b2b2b;
}
.v2-pix-steps li .num {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--sc-primary);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.v2-pix-steps li strong { font-weight: 700; }
.v2-pix-steps li .sub {
  display: block;
  font-size: 12.5px;
  color: #5c5c5c;
  font-weight: 400;
}

.v2-pix-qr-label {
  text-align: center;
  font-size: 13px;
  color: #5c5c5c;
  margin: 4px 0 8px;
}
.v2-pix-qr-wrap {
  display: flex; justify-content: center;
  margin-bottom: 12px;
}
.v2-pix-qr-wrap img {
  width: 180px; height: 180px;
  border: 1px solid #ececec;
  border-radius: 4px;
}
.v2-pix-code {
  background: #f5f5f5;
  border: 1px solid #ececec;
  border-radius: 4px;
  padding: 10px 12px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  color: #2b2b2b;
  word-break: break-all;
  line-height: 1.5;
  margin-bottom: 12px;
}
.v2-btn-copy {
  display: block;
  width: 100%;
  background: var(--sc-primary);
  color: #fff;
  border: 0;
  padding: 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 10px;
  text-align: center;
}
.v2-btn-copy:hover { background: var(--sc-primary-dk); }
.v2-btn-copy i { margin-right: 6px; }
.v2-btn-confirm {
  display: block;
  width: 100%;
  background: #fff;
  color: #2b2b2b;
  border: 1px solid #d6d6d6;
  padding: 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.v2-btn-confirm:hover { background: #f5f5f5; color: #2b2b2b; }
.v2-btn-confirm + .v2-btn-confirm { margin-top: 8px; }

/* ============================================================
   v2 · RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  .v2-page-head h1 { font-size: 24px; }
  .v2-data-grid { grid-template-columns: 1fr; }
  .v2-debt-table thead { display: none; }
  .v2-debt-table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 12px 0;
    border-bottom: 1px solid #ececec;
  }
  .v2-debt-table td {
    border: 0;
    padding: 0;
  }
  .v2-debt-table .col-descr { grid-column: 1 / -1; }
  .v2-debt-table .col-pagar { grid-column: 2; grid-row: 2 / 4; align-self: center; }
  .v2-debt-table .col-venc, .v2-debt-table .col-valor { font-size: 12.5px; }
  .v2-debitos .head { flex-direction: column; align-items: stretch; }
  .v2-btn-pagar-tudo { justify-content: center; }
}
