/* ═══════════════════════════════════════════════════════════════════════
   Vidroforte SAC — Design System
   Tokens, reset, componentes reutilizáveis. Mobile-first.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* Marca Vidroforte */
  --vf-green-900: #0f3d24;
  --vf-green-800: #14532d;
  --vf-green-700: #166534;
  --vf-green-600: #15803d;
  --vf-green-500: #16a34a;
  --vf-green-100: #dcfce7;
  --vf-green-50:  #f0fdf4;

  /* Neutros */
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #cbd5e1;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --ink-50:  #f8fafc;
  --white:   #ffffff;

  /* Status */
  --s-recebido:   #2563eb;
  --s-pendente:   #f97316;
  --s-analise:    #eab308;
  --s-aprovada:   #16a34a;
  --s-recusada:   #dc2626;
  --s-encerrado:  #6b7280;

  /* Tipografia + espaçamento */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05);
  --shadow-md: 0 4px 12px rgba(15,23,42,.08);
  --shadow-lg: 0 10px 30px rgba(15,23,42,.12);
}

/* ── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--ink-50);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Sticky footer: body vira flex column vertical de altura mínima 100vh
   * e o slot #vf-footer é empurrado pro fim com margin-top:auto —
   * assim o rodapé cola no bottom mesmo quando o conteúdo é curto. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
#vf-footer { margin-top: auto; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: var(--vf-green-700); text-decoration: none; }
a:hover { text-decoration: underline; }
input, select, textarea { font: inherit; color: inherit; }

/* ── Layout base ───────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Topbar (páginas autenticadas) ─────────────────────────────────── */
.topbar {
  background: var(--vf-green-800);
  color: var(--white);
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-sm);
}
.topbar .brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: .5px; color: var(--white);
}
/* A logo tem bastante espaço transparente ao redor no PNG.
 * Uso height grande + margem vertical negativa pra "cortar" esse vazio
 * visualmente sem aumentar a altura real da topbar. */
.topbar .brand img {
  height: 180px; width: auto; display: block;
  margin: -83px 0;
}
.topbar .user {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
}
.topbar .user .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--vf-green-600);
  color: var(--white);
  display: grid; place-items: center;
  font-weight: 700; font-size: 12px;
}
.topbar .btn-sair {
  color: var(--white);
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 6px;
  font-size: 12px;
}
.topbar .btn-sair:hover { background: rgba(255,255,255,.1); }

/* ── Hero verde (Bem-vindo) ────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--vf-green-800) 0%, var(--vf-green-700) 100%);
  color: var(--white);
  padding: 28px 20px;
  border-radius: 0 0 24px 24px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 22px; font-weight: 800; letter-spacing: -.5px;
  margin-bottom: 6px;
}
.hero .kicker { font-size: 13px; opacity: .85; }
.hero p { font-size: 14px; opacity: .9; margin-top: 8px; max-width: 60ch; }
.hero .pillars {
  display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px;
  font-size: 13px;
}
.hero .pillars .p {
  display: flex; align-items: center; gap: 8px; min-width: 200px;
}
.hero .pillars .p .icon {
  width: 22px; height: 22px; display: grid; place-items: center;
  background: rgba(255,255,255,.15); border-radius: 6px;
  color: var(--white);
}
.hero .pillars .p b { display: block; font-size: 13px; }
.hero .pillars .p span { opacity: .8; font-size: 12px; }

/* ── Cards ─────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.card h2 { font-size: 16px; margin-bottom: 4px; color: var(--ink-900); font-weight: 700; }
.card .subtitle { font-size: 13px; color: var(--ink-500); margin-bottom: 14px; }

/* Grid de 6 cards (acesso rápido no portal) */
.grid-cards {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.grid-cards .quick {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  padding: 20px 16px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  cursor: pointer;
  min-height: 180px;
}
.grid-cards .quick:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--vf-green-600);
}
.grid-cards .quick .ico {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  color: var(--vf-green-700);
}
.grid-cards .quick .ttl { font-weight: 700; font-size: 14px; color: var(--ink-900); }
.grid-cards .quick .dsc { font-size: 12px; color: var(--ink-500); line-height: 1.35; }
.grid-cards .quick .cta {
  margin-top: auto;
  background: var(--vf-green-700);
  color: var(--white);
  font-size: 12px; font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
}

/* ── Formulários ───────────────────────────────────────────────────── */
.field { display: block; }
.field + .field { margin-top: 14px; }
.field label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--ink-700); margin-bottom: 6px;
}
.field label .req { color: var(--s-recusada); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--vf-green-600);
  box-shadow: 0 0 0 3px var(--vf-green-100);
}
.field .hint { display: block; font-size: 12px; color: var(--ink-500); margin-top: 4px; }
.field .err  { display: block; font-size: 12px; color: var(--s-recusada); margin-top: 4px; }
.field-row {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 640px) {
  .field-row.cols-2 { grid-template-columns: 1fr 1fr; }
  .field-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}
/* Reset crítico: dentro de um field-row (grid horizontal), o segundo
 * .field NÃO deve ganhar margin-top da regra global .field+.field —
 * senão a coluna da direita fica desalinhada verticalmente da esquerda. */
.field-row > .field + .field { margin-top: 0; }
/* Espaçamento consistente entre rows/fields no topo da árvore de form,
 * substituindo os margin-top inline espalhados pelas páginas. */
.field-row + .field-row,
.field + .field-row,
.field-row + .field { margin-top: 14px; }

/* ── Botões ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  transition: background .15s, transform .05s, opacity .15s;
  min-height: 44px;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary   { background: var(--vf-green-700); color: var(--white); }
.btn-primary:hover:not(:disabled) { background: var(--vf-green-800); }
.btn-secondary { background: var(--ink-100); color: var(--ink-900); border: 1px solid var(--ink-300); }
.btn-secondary:hover:not(:disabled) { background: var(--ink-200); }
.btn-ghost { color: var(--vf-green-700); }
.btn-ghost:hover:not(:disabled) { background: var(--vf-green-50); }
.btn-full { width: 100%; }
.btn-lg { padding: 14px 24px; font-size: 15px; }

/* ── Auth card (login/registrar/etc) ───────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 20px 16px;
  background: linear-gradient(135deg, var(--vf-green-800) 0%, var(--vf-green-900) 100%);
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--white);
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: var(--shadow-lg);
}
.auth-card .brand-block {
  text-align: center; margin-bottom: 22px;
}
/* Mesmo motivo da topbar: o PNG tem transparência ao redor.
 * Margens verticais negativas "aparam" esse espaço vazio. */
.auth-card .brand-block img {
  max-width: 220px; height: auto;
  margin: -30px auto -20px; display: block;
}
.auth-card h1 { font-size: 20px; text-align: center; margin-bottom: 4px; color: var(--vf-green-800); }
.auth-card .subtitle { font-size: 13px; text-align: center; color: var(--ink-500); margin-bottom: 22px; }
.auth-card .foot { margin-top: 18px; text-align: center; font-size: 13px; color: var(--ink-500); }
.auth-card .foot a { font-weight: 600; }

/* ── Feedback (toast/alert) ───────────────────────────────────────── */
.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 14px;
  border-left: 3px solid;
}
.alert-error   { background: #fef2f2; color: #991b1b; border-color: var(--s-recusada); }
.alert-success { background: var(--vf-green-50); color: var(--vf-green-800); border-color: var(--vf-green-600); }
.alert-info    { background: #eff6ff; color: #1e40af; border-color: var(--s-recebido); }

/* ── Status chip ───────────────────────────────────────────────────── */
.status-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ink-100); color: var(--ink-700);
  line-height: 1.4;
}
.status-chip::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-500); flex: 0 0 auto;
}
.status-chip.RECEBIDO { background: #dbeafe; color: #1e40af; }
.status-chip.RECEBIDO::before { background: var(--s-recebido); }
.status-chip.DOCUMENTACAO_PENDENTE { background: #ffedd5; color: #9a3412; }
.status-chip.DOCUMENTACAO_PENDENTE::before { background: var(--s-pendente); }
.status-chip.EM_ANALISE_TECNICA { background: #fef3c7; color: #854d0e; }
.status-chip.EM_ANALISE_TECNICA::before { background: var(--s-analise); }
.status-chip.GARANTIA_APROVADA { background: var(--vf-green-100); color: var(--vf-green-800); }
.status-chip.GARANTIA_APROVADA::before { background: var(--s-aprovada); }
.status-chip.GARANTIA_RECUSADA { background: #fee2e2; color: #991b1b; }
.status-chip.GARANTIA_RECUSADA::before { background: var(--s-recusada); }
.status-chip.ENCERRADO { background: var(--ink-200); color: var(--ink-700); }
.status-chip.ENCERRADO::before { background: var(--s-encerrado); }

/* ── Rodapé ────────────────────────────────────────────────────────── */
.footer {
  background: var(--vf-green-800);
  color: rgba(255,255,255,.85);
  padding: 14px 16px;
  font-size: 12px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
}
.footer .brand { font-weight: 700; color: var(--white); letter-spacing: .5px; }
.footer .brand img { height: 26px; width: auto; display: block; }
.footer .links a { color: rgba(255,255,255,.85); margin-left: 12px; }

/* ── Wizard (nova ocorrência) ──────────────────────────────────────── */
.wizard {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .wizard { grid-template-columns: 1fr 260px; align-items: start; }
}
.wizard .sidebar { display: flex; flex-direction: column; gap: 14px; }
.wizard .sidebar .card { padding: 16px; }
.wizard .sidebar h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--vf-green-800); }
.wizard .step-list { display: flex; flex-direction: column; gap: 8px; }
.wizard .step-list li {
  display: flex; align-items: flex-start; gap: 10px;
  list-style: none;
  font-size: 12.5px;
  color: var(--ink-500);
}
.wizard .step-list li .n {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ink-200); color: var(--ink-500);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
}
.wizard .step-list li.done .n { background: var(--vf-green-700); color: var(--white); }
.wizard .step-list li.done { color: var(--ink-900); }
.wizard .step-list li.current .n { background: var(--vf-green-800); color: var(--white); box-shadow: 0 0 0 3px var(--vf-green-100); }
.wizard .step-list li.current { color: var(--vf-green-800); font-weight: 600; }

/* Cabeçalho de cada step */
.step-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.step-head .num {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--vf-green-700); color: var(--white);
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.step-head h2 { font-size: 15px; margin: 0; }

/* Tipos de produto (etapa 3) — grid clicável */
.tipo-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-bottom: 16px;
}
.tipo-opt {
  border: 2px solid var(--ink-200);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer;
  background: var(--white);
  transition: all .15s;
}
.tipo-opt:hover { border-color: var(--vf-green-600); }
.tipo-opt.active {
  border-color: var(--vf-green-700);
  background: var(--vf-green-50);
}
.tipo-opt .radio {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--ink-300);
  flex: 0 0 auto;
  align-self: flex-end;
  transition: all .15s;
}
.tipo-opt.active .radio {
  border-color: var(--vf-green-700);
  background: var(--vf-green-700);
  box-shadow: inset 0 0 0 2px var(--white);
}
.tipo-opt .ico { color: var(--vf-green-700); }
.tipo-opt .lbl { font-size: 13px; font-weight: 700; }
.tipo-opt.active .lbl { color: var(--vf-green-800); }

/* Upload (dropzone) */
.dropzone-label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--ink-700); margin-bottom: 6px;
}
.dropzone-label .req { color: var(--s-recusada); }
.dropzone {
  /* label é inline por padrão — precisa virar flex column pra o ícone
   * centralizar e o texto alinhar embaixo, ocupando toda a coluna do grid. */
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 150px;
  border: 2px dashed var(--ink-300);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
  transition: all .15s;
  background: var(--ink-50);
}
.dropzone:hover { border-color: var(--vf-green-600); background: var(--vf-green-50); }
.dropzone.has-file {
  border-style: solid; border-color: var(--vf-green-600);
  background: var(--vf-green-50); color: var(--vf-green-800);
}
.dropzone .ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: 50%;
  color: var(--vf-green-700);
  box-shadow: var(--shadow-sm);
}
.dropzone.has-file .ico {
  background: var(--vf-green-700); color: var(--white); border-color: var(--vf-green-700);
}
.dropzone .filename { font-weight: 700; word-break: break-all; max-width: 100%; }
.dropzone-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .dropzone-grid { grid-template-columns: 1fr 1fr; }
}

/* Timeline (detalhe) */
.timeline { list-style: none; padding-left: 8px; border-left: 2px solid var(--ink-200); }
.timeline li { position: relative; padding: 8px 0 14px 22px; }
.timeline li::before {
  content: ""; position: absolute; left: -8px; top: 12px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink-200); border: 3px solid var(--white);
}
.timeline li.done::before { background: var(--vf-green-600); }
.timeline li b { font-size: 13px; color: var(--ink-900); }
.timeline li .when { display: block; font-size: 11px; color: var(--ink-500); }
.timeline li .obs { font-size: 12px; color: var(--ink-700); margin-top: 4px; }

/* Consulta — lista */
.filter-bar {
  display: grid; gap: 10px;
  grid-template-columns: 1fr;
  margin-bottom: 16px;
}
@media (min-width: 640px) {
  .filter-bar { grid-template-columns: 1fr 200px auto; align-items: end; }
}
.oc-list { display: grid; gap: 10px; }
.oc-item {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  padding: 14px;
  display: grid; gap: 6px;
  grid-template-columns: 1fr auto;
  cursor: pointer;
  transition: all .15s;
}
.oc-item:hover { border-color: var(--vf-green-600); box-shadow: var(--shadow-sm); }
.oc-item .proto { font-weight: 800; color: var(--vf-green-800); font-size: 14px; }
.oc-item .meta { font-size: 12px; color: var(--ink-500); }
.oc-item .chip { justify-self: end; }
.empty {
  text-align: center; padding: 40px 20px; color: var(--ink-500); font-size: 14px;
  background: var(--white); border-radius: var(--radius); border: 1px dashed var(--ink-300);
}
.pager {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  margin-top: 16px;
}
.pager button {
  padding: 6px 12px;
  border: 1px solid var(--ink-300);
  border-radius: 6px;
  background: var(--white);
  font-size: 13px;
}
.pager button.active { background: var(--vf-green-700); color: var(--white); border-color: var(--vf-green-700); }
.pager button:disabled { opacity: .5; cursor: not-allowed; }

/* Spinner */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Utility */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-2 { margin-top: 20px; }
.mb-2 { margin-bottom: 20px; }
.py-4 { padding-top: 32px; padding-bottom: 32px; }

/* ── Card de exigência de arquivos (cliente) ──────────────────────
   Card destacado em laranja quando a equipe pede novos documentos. */
.exi-card {
  border-left: 4px solid var(--s-pendente);
  background: linear-gradient(180deg, #fff8ec 0%, #fffdf7 100%);
  padding: 18px;
}
.exi-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.exi-icon {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  background: var(--s-pendente); color: var(--white);
  display: grid; place-items: center;
}
.exi-title { font-size: 15px; font-weight: 800; color: #92400e; margin: 2px 0 4px; line-height: 1.3; }
.exi-sub { font-size: 12.5px; color: #78350f; margin: 0; }
.exi-mensagem {
  background: var(--white); border: 1px solid #fed7aa; border-radius: 8px;
  padding: 12px 14px; font-size: 13.5px; color: var(--ink-900); white-space: pre-wrap;
  margin-bottom: 14px; line-height: 1.5;
}
.exi-progress { margin-bottom: 16px; }
.exi-bar {
  width: 100%; height: 8px; background: #fef3c7; border-radius: 999px;
  overflow: hidden; margin-bottom: 6px;
}
.exi-fill { height: 100%; background: var(--s-pendente); transition: width .3s; }
.exi-progress-txt { font-size: 12px; color: #78350f; }
.exi-input-wrap {
  display: block; position: relative;
  border: 2px dashed #fed7aa; border-radius: 10px;
  padding: 16px; background: var(--white);
  cursor: pointer; margin-bottom: 12px;
  transition: border-color .15s, background .15s;
}
.exi-input-wrap:hover { border-color: var(--s-pendente); background: #fffbeb; }
.exi-input-label {
  display: block; font-weight: 700; font-size: 13.5px; color: var(--ink-900);
}
.exi-input-hint {
  display: block; font-size: 11.5px; color: var(--ink-500); margin-top: 2px;
}
.exi-input-wrap input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.exi-file-name {
  display: block; margin-top: 8px; font-size: 12px;
  color: var(--vf-green-800); font-weight: 600; word-break: break-all;
}
.exi-btn { width: 100%; }
.exi-msg { margin-top: 12px; font-size: 13px; text-align: center; }
.exi-msg .ok  { color: var(--vf-green-800); font-weight: 600; }
.exi-msg .err { color: var(--s-recusada); font-weight: 600; }

/* Mobile ajusta padding e stack */
@media (max-width: 520px) {
  .exi-card { padding: 14px; }
  .exi-header { gap: 10px; }
  .exi-icon { width: 34px; height: 34px; }
  .exi-title { font-size: 14px; }
  .exi-sub { font-size: 12px; }
  .exi-input-wrap { padding: 14px; }
}

/* ═══════════════════════════════════════════════════════════════
   Card de prazo na tela de sucesso (nova ocorrência)
   ═══════════════════════════════════════════════════════════════ */
.suc-prazo {
  display: flex; gap: 14px; align-items: center;
  padding: 14px 18px;
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  border-radius: 0 10px 10px 0;
  margin-bottom: 20px;
  text-align: left;
}
.suc-prazo-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%;
  background: #3b82f6;
  position: relative;
}
.suc-prazo-icon::before, .suc-prazo-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: #fff; border-radius: 2px;
}
/* ponteiro grande (12h) */
.suc-prazo-icon::before { width: 2px; height: 12px; transform: translate(-50%, -100%); }
/* ponteiro pequeno (3h) */
.suc-prazo-icon::after  { width: 8px; height: 2px; transform: translate(0, -50%); }
.suc-prazo-body { flex: 1; }
.suc-prazo-title { font-size: 13.5px; color: #1e40af; font-weight: 600; line-height: 1.5; }
.suc-prazo-title b { color: #1e3a8a; font-weight: 800; }
.suc-prazo-sub { font-size: 12.5px; color: #475569; margin-top: 3px; }
.suc-prazo-sub b { color: #1e40af; }

/* ═══════════════════════════════════════════════════════════════
   Modal de garantia aprovada — obrigatório até o cliente escolher
   ═══════════════════════════════════════════════════════════════ */
.gar-modal-backdrop {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; overflow-y: auto;
  animation: garFadeIn .2s ease-out;
}
@keyframes garFadeIn { from { opacity: 0; } to { opacity: 1; } }
.gar-modal {
  background: var(--white, #fff);
  width: 100%; max-width: 640px;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
  overflow: hidden;
  animation: garSlideIn .25s ease-out;
}
@keyframes garSlideIn { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

.gar-modal-header {
  background: linear-gradient(135deg, #14532d 0%, #166534 60%, #16a34a 100%);
  color: #fff; padding: 24px 28px 22px;
}
.gar-modal-badge {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  color: #fff; font-size: 11.5px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 12px;
}
.gar-modal-header h2 { color: #fff; font-size: 20px; font-weight: 800; margin: 0 0 6px; line-height: 1.25; }
.gar-modal-header p  { color: rgba(255, 255, 255, .9); font-size: 13.5px; margin: 0; line-height: 1.55; }

.gar-modal-body { padding: 20px 24px 12px; }
.gar-modal-detalhes {
  background: #f0fdf4; border-left: 4px solid #16a34a;
  padding: 12px 16px; border-radius: 0 8px 8px 0;
  font-size: 13.5px; color: #1f2937; line-height: 1.55;
  margin-bottom: 18px; white-space: pre-wrap;
}

.gar-opcoes { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.gar-opcao {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px; border: 2px solid #e5e7eb; border-radius: 12px;
  cursor: pointer; background: #fff;
  transition: border-color .15s, background .15s, transform .1s;
}
.gar-opcao:hover { border-color: #16a34a; background: #f0fdf4; }
.gar-opcao input[type="radio"] {
  margin-top: 4px; width: 18px; height: 18px; accent-color: #15803d;
  cursor: pointer; flex-shrink: 0;
}
.gar-opcao-sel { border-color: #15803d; background: #f0fdf4; box-shadow: 0 0 0 4px rgba(21, 128, 61, .12); }
.gar-opcao-body { flex: 1; }
.gar-opcao-tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: #dbeafe; color: #1e40af;
  font-size: 11px; font-weight: 800; letter-spacing: .5px;
  margin-bottom: 6px;
}
.gar-opcao-tag-b { background: #fef3c7; color: #92400e; }
.gar-opcao-texto { font-size: 14px; color: #1f2937; line-height: 1.5; }

.gar-anexos { margin-top: 18px; padding-top: 16px; border-top: 1px solid #f1f5f9; }
.gar-anexos-title {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px;
  font-weight: 800; color: #6b7280; margin-bottom: 10px;
}
.gar-anexos-list { display: flex; flex-direction: column; gap: 8px; }
.gar-anexo {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: #f8fafc;
  border: 1px solid #e5e7eb; border-radius: 8px;
}
.gar-anexo-ico {
  width: 40px; height: 40px; border-radius: 8px;
  background: #15803d; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 11px; letter-spacing: .5px; flex-shrink: 0;
}
.gar-anexo-info { flex: 1; min-width: 0; }
.gar-anexo-nome { font-size: 13px; font-weight: 700; color: #1f2937; }
.gar-anexo-file { font-size: 11.5px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gar-anexo-btn {
  padding: 6px 12px; border-radius: 6px;
  font-size: 12px; font-weight: 700; text-decoration: none;
  color: #15803d; border: 1px solid #15803d; background: #fff;
  transition: background .15s, color .15s;
}
.gar-anexo-btn:hover { background: #dcfce7; }
.gar-anexo-btn-primary { background: #15803d; color: #fff; border-color: #15803d; }
.gar-anexo-btn-primary:hover { background: #14532d; color: #fff; }

.gar-modal-foot {
  padding: 16px 24px 20px;
  border-top: 1px solid #f1f5f9;
  background: #fbfdfa;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.gar-modal-msg { font-size: 13px; color: #dc2626; }
.gar-modal-foot .btn-primary {
  min-width: 200px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
}
.gar-modal-foot .btn-primary:disabled { opacity: .45; cursor: not-allowed; }

@media (max-width: 560px) {
  .gar-modal-header { padding: 20px; }
  .gar-modal-header h2 { font-size: 17px; }
  .gar-modal-body { padding: 16px 18px 10px; }
  .gar-modal-foot { padding: 14px 18px; flex-direction: column; align-items: stretch; }
  .gar-modal-foot .btn-primary { width: 100%; min-width: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   Card informativo da garantia (fica no detalhe da ocorrência)
   ═══════════════════════════════════════════════════════════════ */
.gar-card {
  border-left: 4px solid #16a34a;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}
.gar-card-header { margin-bottom: 14px; }
.gar-card-badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: #dcfce7; color: #166534;
  font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
  margin-bottom: 8px;
}
.gar-card-header h2 { color: #14532d; font-size: 16px; font-weight: 800; margin: 0 0 2px; }
.gar-card-sub { font-size: 12px; color: #6b7280; }
.gar-card-detalhes {
  background: #fff; border: 1px solid #dcfce7;
  padding: 12px 14px; border-radius: 8px;
  font-size: 13.5px; color: #1f2937; line-height: 1.55;
  white-space: pre-wrap; margin: 4px 0 14px;
}
.gar-card-opcoes {
  display: grid; gap: 10px; grid-template-columns: 1fr; margin-bottom: 12px;
}
@media (min-width: 640px) { .gar-card-opcoes { grid-template-columns: 1fr 1fr; } }
.gar-card-opcao {
  background: #fff; border: 1px solid #e5e7eb;
  border-top: 3px solid #3b82f6;
  padding: 12px 14px; border-radius: 8px;
  opacity: .65; transition: opacity .15s;
}
.gar-card-opcao-b { border-top-color: #f59e0b; }
.gar-card-opcao-sel { opacity: 1; box-shadow: 0 0 0 2px #16a34a; }
.gar-card-opcao-tag {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  background: #dbeafe; color: #1e40af;
  font-size: 10.5px; font-weight: 800; letter-spacing: .4px;
  margin-bottom: 5px;
}
.gar-card-opcao-b .gar-card-opcao-tag { background: #fef3c7; color: #92400e; }
.gar-card-opcao-txt { font-size: 13px; color: #1f2937; line-height: 1.5; }
.gar-card-escolha {
  background: #dcfce7; border: 1px solid #86efac; border-radius: 8px;
  padding: 12px 14px; margin: 8px 0 12px;
}
.gar-card-escolha-tag {
  font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  color: #166534; margin-bottom: 4px;
}
.gar-card-escolha-txt { font-size: 13.5px; color: #14532d; line-height: 1.5; }
.gar-card-escolha-quando { font-size: 11.5px; color: #4d7c0f; margin-top: 4px; }
.gar-card-pendente {
  background: #fffbeb; border: 1px dashed #f59e0b; border-radius: 8px;
  padding: 12px 14px; font-size: 13px; color: #92400e; margin: 6px 0 12px; font-weight: 600;
}
