/*  *//* ============================================================
   CATÁLOGO COMERCIAL — Abrasil Corretora
   CSS fiel à referência (mesmos tokens, fonte, layout)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap');

/* ── Tokens — Paleta Abrasil Corretora (escura) ─────────────── */
:root {
  --ink:    #0d1033;        /* azul muito escuro         */
  --muted:  #4a5275;        /* azul acinzentado escuro   */
  --green:  #007f7f;        /* teal escuro               */
  --deep:   #1a2060;        /* azul escuro profundo      */
  --gold:   #d4890a;        /* laranja escuro            */
  --line:   #c8cee8;        /* borda azulada             */
  --bg:     #eef1f9;        /* fundo azulado escuro      */
  --white:  #fff;
  --serif:  Georgia, serif;
  --sans:   "Instrument Sans", system-ui, sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body   { margin: 0; background: var(--bg); color: var(--ink); font: 15px var(--sans); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button  { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
a       { color: inherit; text-decoration: none; }
h1,h2,h3,p { margin: 0; }
[hidden] { display: none !important; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: 2px solid #00a8a8; outline-offset: 3px; }

/* ── Layout ─────────────────────────────────────────────────── */
.wrap { width: min(1240px, calc(100% - 88px)); margin-inline: auto; }

/* ── Header ─────────────────────────────────────────────────── */
header {
  width: 100%;
  background: rgba(12,25,38,0.85);
  border-bottom: 3px solid rgba(255,255,255,.18);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.top {
  max-width: 1280px; margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 120px);
  height: clamp(72px, 10vw, 108px);
  display: flex; align-items: center; gap: 24px;
}
.brand img { height: clamp(44px, 6vw, 88px); width: auto; object-fit: contain; display: block; }
.top nav   { margin-left: auto; display: flex; align-items: center; gap: 34px; height: 100%; }
.top nav a { position: relative; display: flex; align-items: center; gap: 6px; color: #f5f7f9; font-weight: 700; font-size: 16px; transition: color .2s; }
.top nav a:hover { color: #08b7b8; }
.top nav a[aria-current]       { color: #08b7b8; }
.top nav a[aria-current]::after { content: ""; height: 2px; position: absolute; bottom: -2px; left: 0; right: 0; background: #08b7b8; }
#nav-count { background: rgba(8,183,184,.2); border-radius: 10px; padding: 0 6px; font-size: 12px; }

/* ── Botões base ────────────────────────────────────────────── */
.icon { width: 18px; height: 18px; display: inline-block; vertical-align: middle; flex: none; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border-radius: 8px; padding: 10px 15px;
  font-weight: 700; border: 1px solid transparent;
  background: var(--green); color: var(--white); line-height: 1.2;
}
.outline  { background: var(--white); color: var(--green); border-color: #d5e2d8; }
.outline:hover, .subtle:hover { background: #e6f7f7; }
.subtle   { background: #e6f7f7; color: var(--green); }
.link     { background: transparent; color: var(--green); padding: 5px; border: 0; }
.link:hover { background: transparent; text-decoration: underline; }
.icon-button { padding: 8px; background: transparent; color: var(--muted); border: 1px solid var(--line); }
.danger   { background: var(--white); color: #9b3a27; border-color: #f0c4bb; }
.danger:hover { background: #fdf2f0; }

/* ── Botão WhatsApp header ──────────────────────────────────── */
.contact {
  margin-left: 24px; height: 44px; min-width: 160px; padding: 0 22px;
  border: 0; background: #08b2b5; color: white !important;
  font-size: 15px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 7px;
  text-decoration: none; border-radius: 0;
  transition: background .2s, transform .2s; flex-shrink: 0;
}
.contact:hover { background: #079a9d; transform: translateY(-1px); }
.partners-strip  { background: var(--white); border-bottom: 1px solid var(--line); padding: 14px 0; }
.partners-label  { text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.partners-logos  { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; }
.partner-item    { display: flex; align-items: center; justify-content: center; height: 46px; padding: 5px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); transition: box-shadow .15s; }
.partner-item:hover { box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.partner-item img { height: 28px; width: auto; object-fit: contain; }

/* ── Main ───────────────────────────────────────────────────── */
main { min-height: 70vh; padding-block: 32px 45px; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 308px; display: flex; align-items: center;
  border-radius: 17px; overflow: hidden; background: #1a2060; color: var(--white);
  padding: 40px 49px; isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, #0d1033 4%, #0d1033 29%, #0d1033df 45%, #0d103322 76%);
}
.hero-img {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 60%; z-index: -1;
  object-fit: cover; object-position: 30% -60px;
  mask-image: linear-gradient(to right, transparent 10%, black 45%);
  -webkit-mask-image: linear-gradient(to right, transparent 10%, black 45%);
}
.hero::after {
  content: ""; position: absolute; inset: 14px;
  border: 1px solid #d4890a40; border-radius: 12px; z-index: -1; pointer-events: none;
}
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  color: var(--gold); font-size: 11px; font-weight: 800;
  letter-spacing: .17em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.hero h1 { font: normal clamp(42px, 5vw, 69px)/.99 var(--serif); letter-spacing: -.05em; margin: 17px 0; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p  { max-width: 375px; color: rgba(255,255,255,.85); line-height: 1.55; }

/* ── Filtros ────────────────────────────────────────────────── */
.filters {
  position: relative; margin-top: 21px; background: var(--white);
  border: 1px solid var(--line); border-radius: 13px; padding: 16px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 11px; align-items: end;
}
.field        { display: grid; gap: 5px; font-size: 12px; font-weight: 700; color: #465b50; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; padding: 10px 11px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fafbf8; color: var(--ink); font-size: 14px; font-weight: 500;
}
.field textarea { resize: vertical; min-height: 73px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid #00a8a8; outline-offset: 1px;
}
.search { position: relative; }
.search .icon { position: absolute; left: 10px; bottom: 11px; color: #4a90b8; }
.search input  { padding-left: 36px; }
.filters .link { margin-bottom: 7px; }

/* ── Section head ───────────────────────────────────────────── */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 30px 0 14px; }
.section-head h2, .page-title h1 { font-family: var(--serif); font-weight: 400; font-size: 37px; letter-spacing: -.035em; }
.section-head p, .page-title p   { color: var(--muted); margin-top: 5px; }

/* ── Tabs ───────────────────────────────────────────────────── */
.tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs button {
  background: transparent; border-color: var(--line);
  color: #506357; border-radius: 30px; font-size: 13px; padding: 8px 14px;
}
.tabs button.active { background: var(--deep); color: var(--white); border-color: var(--deep); }

/* ── Grid de cards ──────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* ── Card ───────────────────────────────────────────────────── */
.card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: 14px; padding: 18px; min-width: 0;
}
.card:hover { border-color: #a7bfae; }
.card-top, .card-foot, .row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ── Carrier (operadora) ────────────────────────────────────── */
.carrier { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 13px; min-width: 0; }
.monogram {
  width: 37px; height: 37px; display: grid; place-items: center; border-radius: 10px;
  font-size: 13px; font-weight: 800; flex: none;
  background: var(--tint, #e0f4f4); color: var(--tone, #00a8a8);
}
.carrier-logo { width: 54px; height: 34px; object-fit: contain; border-radius: 7px; background: #f6f7f3; padding: 3px 5px; border: 1px solid var(--line); flex: none; }

/* ── Tag / Badge ────────────────────────────────────────────── */
.tag { font-size: 11px; line-height: 1.3; font-weight: 800; border-radius: 6px; padding: 5px 8px; background: #e0f4f4; color: #00a8a8; white-space: nowrap; }
.tag.gold  { background: #fef3dc; color: #c47d00; }
.tag.gray  { background: #eef0f5; color: #5a6480; }
.tag.red   { background: #fbece7; color: #873e28; }
.tag.blue  { background: #e8ecfb; color: #2d3480; }

/* ── Card body ──────────────────────────────────────────────── */
.card h3  { font-size: 19px; letter-spacing: -.03em; margin: 15px 0 6px; }
.card > p { color: var(--muted); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.facts    { display: grid; gap: 8px; margin: 15px 0; color: #526559; font-size: 13px; }
.fact     { display: flex; align-items: start; gap: 8px; overflow-wrap: anywhere; }
.fact .icon { width: 15px; height: 15px; color: #00a8a8; }

/* ── Card foot ──────────────────────────────────────────────── */
.card-foot { border-top: 1px solid #edf0f8; padding-top: 13px; margin-top: auto; }
.card-foot .outline { font-size: 13px; padding: 8px 10px; }
.check { display: flex; gap: 5px; align-items: center; font-size: 13px; color: var(--green); font-weight: 700; cursor: pointer; }
.check input { accent-color: var(--green); width: 16px; height: 16px; margin: 0; }

/* ── Ações admin no card ────────────────────────────────────── */
.card-admin-actions {
  display: none; gap: 6px; padding-top: 10px;
  border-top: 1px dashed var(--line); margin-top: 10px; flex-wrap: wrap;
}
.admin-mode .card-admin-actions { display: flex; }
.card-admin-actions button { font-size: 12px; padding: 6px 10px; }

/* ── Estado vazio ───────────────────────────────────────────── */
.empty { text-align: center; color: var(--muted); padding: 60px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.empty p  { margin-bottom: 12px; }
.empty .empty-icon { width: 48px; height: 48px; margin: 0 auto 16px; opacity: .35; }
.wide { grid-column: 1 / -1; }

/* ── Tray de comparação ─────────────────────────────────────── */
#tray {
  position: fixed; z-index: 20; bottom: 14px; left: 50%; transform: translateX(-50%);
  width: min(580px, calc(100% - 24px)); padding: 9px 11px 9px 17px;
  border-radius: 12px; background: var(--deep); color: var(--white);
  box-shadow: 0 10px 40px #142d2440;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
#tray button { background: #e9ca89; color: #23362b; }
#tray .link  { background: transparent; color: var(--white); }

/* ── Admin bar ──────────────────────────────────────────────── */
#admin-bar {
  background: rgba(12,25,38,0.95);
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding: 10px 0; position: sticky; top: clamp(72px,10vw,108px); z-index: 40;
}
#admin-bar .wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px,5vw,120px); }
#admin-bar .admin-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #08b7b8; margin-right: auto; }

/* ── Page title ─────────────────────────────────────────────── */
.page-title { margin-bottom: 22px; }
.page-title .link { margin-bottom: 14px; }

/* ── Panel / painel de detalhes ─────────────────────────────── */
.panel { padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0; }
.detail-grid p  { white-space: pre-line; line-height: 1.55; margin-top: 6px; overflow-wrap: anywhere; }
.detail-grid h3 { font-size: 14px; font-weight: 700; color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Comparação ─────────────────────────────────────────────── */
.table-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; min-width: 560px; text-align: left; }
th, td { padding: 13px; vertical-align: top; border-bottom: 1px solid var(--line); white-space: pre-line; overflow-wrap: anywhere; }
th { color: var(--green); background: #eaf7f7; }
td:first-child, th:first-child { font-weight: 700; }

/* ── Campanhas ──────────────────────────────────────────────── */
.campaigns { display: grid; gap: 12px; }
.campaigns p { margin: 6px 0; color: var(--muted); overflow-wrap: anywhere; }
.campaigns .actions { margin-top: 12px; }
.campaign-status { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Notice ─────────────────────────────────────────────────── */
.notice { padding: 11px 14px; border-radius: 8px; background: #fff3d8; color: #654a1f; margin: 0 0 15px; font-size: 13px; }

/* ── Dialog / Modal ─────────────────────────────────────────── */
dialog {
  border: 1px solid var(--line); border-radius: 16px;
  width: min(680px, calc(100% - 26px)); max-height: 90dvh;
  padding: 21px; color: var(--ink);
  box-shadow: 0 18px 65px #0d2c2440;
}
dialog::backdrop { background: #142d2488; }
dialog h2 { font: normal 30px var(--serif); letter-spacing: -.02em; }
.modal-head { margin-bottom: 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.form-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 17px; flex-wrap: wrap; }
.error { color: #9b3a27; margin-top: 8px; font-size: 13px; }

/* ── Login dialog ───────────────────────────────────────────── */
#login-dialog { width: min(400px, calc(100% - 26px)); }
.login-header {
  background: #1a2060; color: var(--white); margin: -21px -21px 20px;
  border-radius: 15px 15px 0 0; padding: 20px; text-align: center;
}
.login-header img  { height: 40px; margin: 0 auto 10px; }
.login-header h2   { font-size: 20px; letter-spacing: .1em; margin: 0; font-family: var(--sans); font-weight: 800; }
.login-header span { font-size: 12px; color: rgba(255,255,255,.5); text-transform: lowercase; letter-spacing: .2em; }

/* ── Proposta ───────────────────────────────────────────────── */
.proposal-text { width: 100%; margin-top: 12px; min-height: 220px; resize: vertical; border: 1px solid var(--line); border-radius: 8px; padding: 12px; font: 14px var(--sans); }
.proposal-print { display: none; white-space: pre-wrap; }
@media print { body > *:not(dialog) { display: none !important; } dialog[open] { display: block !important; position: static; width: auto; max-height: none; border: 0; box-shadow: none; } dialog > *:not(.proposal-print) { display: none !important; } .proposal-print { display: block !important; color: black; font-size: 12pt; } dialog::backdrop { display: none; } }

/* ── Toast ──────────────────────────────────────────────────── */
#toast {
  position: fixed; z-index: 100; right: 18px; top: 16px;
  background: var(--deep); color: var(--white); padding: 12px 15px;
  border-radius: 8px; max-width: calc(100% - 36px); font-size: 14px;
  box-shadow: 0 8px 30px #0002; transition: opacity .3s;
}

/* ── Botão admin no footer (discreto) ──────────────────────── */
#btn-admin-access {
  position: relative; display: flex; align-items: center; gap: 4px;
  background: transparent; border: 0; padding: 6px; cursor: default;
  color: rgba(255,255,255,.12); font-size: 8px; letter-spacing: .2em;
  text-transform: uppercase; select: none;
}
#btn-admin-access img  { width: 18px; opacity: .15; }
#admin-progress-ring   { position: absolute; inset: 0; pointer-events: none; }
#admin-progress-circle { transition: stroke-dashoffset .05s linear; }
/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: #0d1527; color: white; margin-top: 40px;
}
.footer-body {
  max-width: 1280px; margin: 0 auto;
  padding: clamp(40px,6vw,56px) clamp(16px,5vw,120px) clamp(32px,5vw,48px);
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px 32px;
  align-items: start;
}
.footer-col h4 { color: white; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col > p { color: rgba(255,255,255,.55); font-size: 13px; line-height: 1.6; max-width: 220px; margin-top: 12px; }
.footer-logo { height: auto; width: 70%; max-width: 180px; object-fit: contain; object-position: left; display: block; }

.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact a, .footer-contact span { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.65); font-size: 13px; transition: color .2s; }
.footer-contact a:hover { color: white; }
.footer-contact svg { width: 15px; height: 15px; color: rgba(255,255,255,.45); flex-shrink: 0; }

.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.65); font-size: 13px; transition: color .2s; }
.footer-links a:hover { color: white; }
.footer-bullet { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; background: #0ea5a5; flex-shrink: 0; }
.footer-bullet svg { width: 9px; height: 9px; color: white; }

.footer-social-icons { display: flex; gap: 10px; margin-bottom: 16px; }
.footer-social-icons a { width: 38px; height: 38px; border-radius: 50%; background: #161f35; display: flex; align-items: center; justify-content: center; color: white; transition: background .2s, transform .2s; }
.footer-social-icons a:hover { background: #1f2f4a; transform: translateY(-2px); }
.footer-social-icons svg { width: 17px; height: 17px; }

.footer-wpp { display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: white; font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 6px; transition: background .2s, transform .2s; text-decoration: none; }
.footer-wpp:hover { background: #20c05c; transform: translateY(-2px); }
.footer-wpp svg { width: 15px; height: 15px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); background: #0d1527; }
.footer-bottom-inner { max-width: 1280px; margin: 0 auto; padding: 14px clamp(16px,5vw,120px); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-copy-left  { color: #1ecece; font-size: 11px; }
.footer-copy-right { display: flex; align-items: center; gap: 12px; }
.footer-copy-right p { color: rgba(255,255,255,.3); font-size: 11px; white-space: nowrap; }

@media (max-width: 950px) {
  .footer-body { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .footer-body { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}

/* ── Responsivo ─────────────────────────────────────────────── */
@media (max-width: 950px) {
  .wrap { width: calc(100% - 48px); }
  .filters { grid-template-columns: 2fr 1fr 1fr; }
  .filters .link { justify-self: start; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .wrap    { width: calc(100% - 28px); }
  .top     { height: auto; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
  .brand img { width: 127px; }
  .top nav { order: 3; width: 100%; justify-content: space-between; gap: 8px; }
  .top nav a { padding: 11px 4px; }
  .contact { padding: 7px 9px; font-size: 12px; }
  main     { padding-top: 16px; }
  .hero    { min-height: 260px; padding: 30px 24px; }
  .hero p  { max-width: 245px; }
  .filters { grid-template-columns: 1fr 1fr; padding: 11px; gap: 8px; }
  .search  { grid-column: 1 / -1; }
  .grid, .detail-grid { grid-template-columns: 1fr; }
  .section-head h2, .page-title h1 { font-size: 29px; }
  .section-head button { padding: 8px; font-size: 12px; }
  .row-between { align-items: start; }
  .card .row-between { align-items: center; }
  .form-grid { grid-template-columns: 1fr; }
  #tray { font-size: 12px; }
  #tray button { padding: 8px; font-size: 12px; }
  #admin-bar { top: 0; }
}

/* ============================================================
   IMPORTAÇÃO EM MASSA — estilos do modal
   ============================================================ */

/* ── Corpo do modal de importação ────────────────────────────── */
.imp-body {
  padding: 4px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  max-height: calc(90dvh - 80px);
}

/* ── Passos numerados ────────────────────────────────────────── */
.imp-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.imp-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.imp-step-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.imp-step-content strong {
  font-size: 14px;
  color: var(--ink);
}

.imp-step-content p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.imp-step-content code {
  background: var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 12px;
  font-family: monospace;
}

/* ── Área de upload (drag & drop) ────────────────────────────── */
.imp-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px dashed var(--line);
  border-radius: 10px;
  padding: 24px 16px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  margin-top: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.imp-upload-area:hover,
.imp-upload-area.drag-over {
  border-color: var(--green);
  background: rgba(0, 127, 127, .04);
}

.imp-upload-area.drag-over {
  background: rgba(0, 127, 127, .08);
}

.imp-upload-icon {
  width: 32px;
  height: 32px;
  color: var(--green);
  margin-bottom: 4px;
}

.imp-upload-area small {
  font-size: 11px;
  color: var(--muted);
  opacity: .7;
}

/* Quando já tem arquivo selecionado */
.imp-upload-area:has(.icon) {
  flex-direction: row;
  padding: 12px 16px;
  align-items: center;
  border-style: solid;
  border-color: var(--green);
  background: rgba(0, 127, 127, .04);
}

/* ── Resumo da validação ─────────────────────────────────────── */
.imp-resumo {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.imp-resumo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  flex: 1;
  min-width: 140px;
}

.imp-resumo-item strong {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.imp-resumo-item.ok {
  background: rgba(0, 127, 127, .08);
  color: #0a5a5a;
  border: 1px solid rgba(0, 127, 127, .2);
}

.imp-resumo-item.erro {
  background: rgba(155, 58, 39, .07);
  color: #7f1d1d;
  border: 1px solid rgba(155, 58, 39, .2);
}

/* ── Tabela de erros (dentro de <details>) ───────────────────── */
.imp-erros-det {
  margin-top: 12px;
  font-size: 13px;
}

.imp-erros-det summary {
  cursor: pointer;
  color: #7f1d1d;
  font-weight: 600;
  padding: 6px 0;
  user-select: none;
}

.imp-erros-det summary:hover {
  text-decoration: underline;
}

.imp-erros-tabela {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 12px;
}

.imp-erros-tabela th {
  background: rgba(155, 58, 39, .08);
  text-align: left;
  padding: 7px 10px;
  font-weight: 700;
  color: #7f1d1d;
  border-bottom: 1px solid rgba(155, 58, 39, .2);
}

.imp-erros-tabela td {
  padding: 7px 10px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.imp-erros-tabela tr:last-child td {
  border-bottom: none;
}

.imp-erros-tabela ul {
  margin: 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.imp-erros-tabela li {
  line-height: 1.4;
}

/* ── Barra de progresso da importação ────────────────────────── */
.imp-progress-bar {
  height: 8px;
  background: var(--line);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 8px;
}

.imp-progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 100px;
  transition: width .3s ease;
}

/* ── Responsivo ──────────────────────────────────────────────── */
@media (max-width: 540px) {
  .imp-step { gap: 10px; }
  .imp-resumo { flex-direction: column; }
  .imp-resumo-item { min-width: unset; }
  .imp-erros-tabela { font-size: 11px; }
}
