/* ════════════════════════════════════════════════════════════════════
   CAMPOS FISCAIS — Fase 1
   ════════════════════════════════════════════════════════════════════ */

.cp-fiscal-section{
  margin-top:14px;
  background:rgba(124,58,237,.06);
  border:1px solid rgba(167,139,250,.2);
  border-radius:10px;
  overflow:hidden;
}
[data-theme="light"] .cp-fiscal-section{
  background:rgba(124,58,237,.04);
}

.cp-fiscal-header{
  padding:10px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
  user-select:none;
  transition:background .15s;
}
.cp-fiscal-header:hover{
  background:rgba(167,139,250,.08);
}

.cp-fiscal-title{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:var(--fn);
  font-size:13px;
  font-weight:700;
  color:var(--tx);
  flex-wrap:wrap;
}

.cp-fiscal-badge{
  font-family:var(--mo);
  font-size:10px;
  font-weight:700;
  padding:3px 8px;
  border-radius:6px;
  background:rgba(255,255,255,.08);
  color:var(--t2);
  letter-spacing:.04em;
}
.cp-fiscal-badge.cp-fiscal-pronto{
  background:rgba(16,185,129,.18);
  color:#10b981;
}
.cp-fiscal-badge.cp-fiscal-incompleto{
  background:rgba(251,191,36,.18);
  color:#fbbf24;
}

.cp-fiscal-toggle-btn{
  background:transparent;
  border:none;
  color:var(--t2);
  font-size:14px;
  cursor:pointer;
  padding:4px 8px;
}

.cp-fiscal-body{
  padding:12px 14px 14px;
  border-top:1px solid rgba(167,139,250,.15);
}

.cp-fiscal-cnpj-action{
  margin-bottom:12px;
  padding:10px 12px;
  background:rgba(34,211,238,.06);
  border:1px dashed rgba(34,211,238,.3);
  border-radius:8px;
}
.cp-fiscal-hint{
  font-size:10.5px;
  color:var(--t3);
  margin-top:4px;
  font-style:italic;
}

.cp-fiscal-btn-buscar{
  display:inline-block;
  padding:7px 12px;
  background:linear-gradient(135deg, rgba(34,211,238,.2), rgba(167,139,250,.15));
  border:1px solid rgba(34,211,238,.4);
  border-radius:7px;
  color:var(--tx);
  font-family:var(--fn);
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  transition:all .15s;
}
.cp-fiscal-btn-buscar:hover{
  background:linear-gradient(135deg, rgba(34,211,238,.35), rgba(167,139,250,.25));
  border-color:rgba(34,211,238,.6);
}

.cp-fiscal-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:8px 12px;
  margin-bottom:10px;
}

.cp-fiscal-fld{
  display:flex;
  flex-direction:column;
  gap:3px;
}
.cp-fiscal-fld label{
  font-size:10.5px;
  font-weight:600;
  color:var(--t2);
  text-transform:uppercase;
  letter-spacing:.04em;
}
.cp-fiscal-fld input,
.cp-fiscal-fld select{
  padding:7px 10px;
  background:rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.08);
  border-radius:6px;
  color:var(--tx);
  font-family:var(--fn);
  font-size:12px;
  outline:none;
  transition:border-color .15s, background .15s;
}
[data-theme="light"] .cp-fiscal-fld input,
[data-theme="light"] .cp-fiscal-fld select{
  background:rgba(245,243,255,.6);
  border-color:rgba(0,0,0,.08);
}
.cp-fiscal-fld input:focus,
.cp-fiscal-fld select:focus{
  border-color:rgba(34,211,238,.5);
  background:rgba(0,0,0,.3);
}
.cp-fiscal-fld input[readonly]{
  background:rgba(255,255,255,.04);
  color:var(--t3);
  cursor:not-allowed;
}

.cp-fiscal-checkbox{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  color:var(--t2);
  margin-top:4px;
  cursor:pointer;
  user-select:none;
}
.cp-fiscal-checkbox input{
  margin:0;
  cursor:pointer;
}

.cp-fiscal-divisor{
  font-family:var(--mo);
  font-size:10.5px;
  font-weight:700;
  color:var(--ac2, #a78bfa);
  letter-spacing:.06em;
  text-transform:uppercase;
  margin:14px 0 8px;
  padding-bottom:6px;
  border-bottom:1px solid rgba(167,139,250,.15);
}

.cp-fiscal-cep-row{
  display:flex;
  align-items:flex-end;
  gap:10px;
  margin-bottom:10px;
}

.cp-fiscal-status{
  margin-top:10px;
  padding:8px 12px;
  background:rgba(0,0,0,.2);
  border-radius:6px;
  font-size:11px;
  line-height:1.5;
}
[data-theme="light"] .cp-fiscal-status{
  background:rgba(0,0,0,.04);
}

@media (max-width:600px){
  .cp-fiscal-grid{
    grid-template-columns:1fr;
  }
  .cp-fiscal-cep-row{
    flex-direction:column;
    align-items:stretch;
  }
  .cp-fiscal-cep-row .cp-fiscal-fld{
    flex:1 !important;
  }
}
