/* TeamAct Lead Import Engine V13.1
   Generic tenant-scoped Custom Fields + resolver UI + primary-action color guard. */
.lead-import-engine-dialog .crm-dialog-x{
  width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;
  padding:0!important;border:1px solid transparent!important;border-radius:7px!important;
  background:transparent!important;color:#64748b!important;box-shadow:none!important;
  display:grid!important;place-items:center!important;font-size:21px!important;font-weight:400!important;
}
.lead-import-engine-dialog .crm-dialog-x:hover{
  background:#f1f5f9!important;color:#334155!important;border-color:#e2e8f0!important;
}
.lead-import-engine-dialog [data-lie-next],
.lead-import-engine-dialog .lie-foot button.primary,
.lead-import-engine-dialog .lie-report-actions button.primary{
  background:#4f46e5!important;border:1px solid #4f46e5!important;color:#fff!important;
  box-shadow:none!important;border-radius:7px!important;
}
.lead-import-engine-dialog [data-lie-next]:hover:not(:disabled),
.lead-import-engine-dialog .lie-foot button.primary:hover:not(:disabled),
.lead-import-engine-dialog .lie-report-actions button.primary:hover:not(:disabled){background:#4338ca!important;border-color:#4338ca!important}
.lead-import-engine-dialog [data-lie-next]:disabled{background:#a5b4fc!important;border-color:#a5b4fc!important;color:#fff!important;cursor:not-allowed}
.lead-import-engine-dialog .lie-foot button.secondary,
.lead-import-engine-dialog [data-lie-cancel],
.lead-import-engine-dialog [data-lie-back]{background:#fff!important;color:#334155!important;border:1px solid #cbd5e1!important;box-shadow:none!important}
.lead-import-engine-dialog .lie-foot button.secondary:hover,
.lead-import-engine-dialog [data-lie-cancel]:hover,
.lead-import-engine-dialog [data-lie-back]:hover{background:#f8fafc!important;border-color:#94a3b8!important;color:#1e293b!important}

.lie-map-group{margin-bottom:15px}.lie-map-group>h4,.lie-map-group-head h4{margin:0;font-size:13px;font-weight:600;color:#334155}.lie-map-group>h4{margin-bottom:7px}.lie-map-group-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px}.lie-map-group-head span{font-size:11px;color:#64748b}
.lie-existing-custom .lie-map-target small{color:#7c3aed}
.lie-unmapped-list{border:1px solid #e5e7eb;border-radius:9px;overflow:hidden;background:#fff}
.lie-unmapped-row{display:grid;grid-template-columns:minmax(170px,1.15fr) minmax(180px,1fr) minmax(150px,.9fr) minmax(120px,.65fr);gap:8px;align-items:end;padding:10px 11px;border-bottom:1px solid #eef1f4;background:#fff}
.lie-unmapped-row:last-child{border-bottom:0}.lie-unmapped-source{align-self:center;min-width:0}.lie-unmapped-source b{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lie-unmapped-source small{display:block;font-size:11px;color:#94a3b8;margin-top:3px}
.lie-unmapped-row label>span{display:block;font-size:10px;color:#64748b;margin-bottom:4px}.lie-unmapped-row select,.lie-unmapped-row input{width:100%;height:34px;border:1px solid #d7dde7;border-radius:7px;background:#fff;padding:0 8px;color:#1f2937;outline:none}.lie-unmapped-row select:focus,.lie-unmapped-row input:focus{border-color:#8b85ef;box-shadow:0 0 0 2px rgba(79,70,229,.08)}
.lie-unmapped-row .lie-new-options{grid-column:2/-1}.lie-unmapped-row .hidden{display:none!important}.lie-profile-scroll{max-height:360px;overflow:auto}.lie-mini-preview .tablewrap{max-height:190px}
.lie-resolver{margin:14px 0;border-top:1px solid #e5e7eb;padding-top:13px}.lie-resolver-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.lie-resolver-grid label{border:1px solid #e5e7eb;border-radius:8px;background:#fff;padding:9px}.lie-resolver-grid label>span{display:block;color:#475569;font-size:12px;margin-bottom:6px}.lie-resolver-grid label small{color:#94a3b8;font-weight:400}.lie-resolver-grid select{width:100%;height:34px;border:1px solid #d7dde7;border-radius:7px;background:#fff;padding:0 8px;color:#1f2937}
.admin-drawer-custom-fields dl{grid-template-columns:150px 1fr}.admin-drawer-custom-fields dd{word-break:break-word}

@media(max-width:1050px){.lie-unmapped-row{grid-template-columns:1fr 1fr}.lie-unmapped-row .lie-new-options{grid-column:1/-1}}
@media(max-width:700px){.lie-unmapped-row,.lie-resolver-grid{grid-template-columns:1fr}.lie-unmapped-row .lie-new-options{grid-column:auto}}
