.opcred-crm{--azul:#1a73e8;--verde:#34a853;--amarelo:#fbbc05;--vermelho:#ea4335;--txt:#202124;--b:#e8eaed;font-family:Arial,sans-serif;color:var(--txt);width:100%;max-width:100%}
.opcred-crm *{box-sizing:border-box}.opcred-card{background:#fff;border:1px solid var(--b);border-radius:18px;padding:24px;margin:18px auto;box-shadow:0 8px 24px rgba(60,64,67,.08);width:100%;max-width:1040px;overflow:visible}.opcred-card h2,.opcred-card h3{margin-top:0;color:#0b2445}.opcred-grid{display:grid;grid-template-columns:repeat(2,minmax(280px,1fr));gap:18px 16px;align-items:start;width:100%}.opcred-crm label{display:block;font-weight:700;margin:0;color:#111827;min-width:0;width:100%}.opcred-crm label>input,.opcred-crm label>select,.opcred-crm label>textarea{margin-top:7px}.opcred-crm input,.opcred-crm select,.opcred-crm textarea{display:block;width:100%!important;max-width:100%!important;min-width:0!important;border:1px solid #dadce0!important;border-radius:10px!important;padding:11px 13px!important;background:#fff!important;color:#202124!important;font-size:15px!important;line-height:1.35!important;min-height:48px!important;height:48px!important;box-shadow:none!important;outline:none!important}.opcred-crm select{appearance:auto!important;-webkit-appearance:menulist!important;padding-right:38px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.opcred-crm textarea{height:auto!important;min-height:115px!important}.opcred-crm input:focus,.opcred-crm select:focus,.opcred-crm textarea:focus{border-color:var(--azul)!important;box-shadow:0 0 0 3px rgba(26,115,232,.12)!important}.opcred-crm .opcred-invalid{border-color:var(--vermelho)!important;background:#fff8f8!important}.opcred-check{display:flex!important;align-items:flex-start!important;gap:10px!important;font-weight:400!important;margin-top:18px!important}.opcred-check input{width:18px!important;min-width:18px!important;height:18px!important;min-height:18px!important;margin:2px 0 0!important;padding:0!important}.opcred-btn{display:inline-block;border:0;border-radius:999px;padding:12px 18px;background:var(--azul);color:#fff!important;text-decoration:none;font-weight:700;cursor:pointer;margin-top:14px}.opcred-btn:hover{filter:brightness(.95)}.opcred-alert{border-radius:12px;padding:12px 14px;margin:12px auto;border-left:5px solid var(--verde);background:#f1f8f4;max-width:1040px}.opcred-err{border-color:var(--vermelho);background:#fce8e6}.opcred-warn{border-color:var(--amarelo);background:#fff8e1}.opcred-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.opcred-kpis b{display:block;border:1px solid var(--b);border-radius:14px;padding:16px;background:#f8fafd;text-align:center}.opcred-table-wrap{overflow:auto}.opcred-crm table{width:100%;border-collapse:collapse}.opcred-crm th,.opcred-crm td{padding:10px;border-bottom:1px solid var(--b);text-align:left}.opcred-tempo{display:none}.opcred-show{display:block!important}@media(max-width:900px){.opcred-grid{grid-template-columns:1fr}.opcred-card{padding:18px;border-radius:14px}.opcred-crm input,.opcred-crm select,.opcred-crm textarea{font-size:16px!important}}
.opcred-kanban-tools{max-width:100%;margin:12px 0 16px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.opcred-kanban{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(260px,1fr);gap:14px;overflow-x:auto;padding:8px 0 20px}.opcred-kanban-col{background:#f8fafd;border:1px solid #e8eaed;border-radius:16px;min-height:260px;display:flex;flex-direction:column}.opcred-kanban-col header{position:sticky;top:0;background:#f8fafd;border-bottom:1px solid #e8eaed;border-radius:16px 16px 0 0;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;color:#0b2445}.opcred-kanban-col header span{background:#1a73e8;color:#fff;border-radius:999px;padding:3px 9px;font-size:12px}.opcred-kanban-drop{padding:12px;display:flex;flex-direction:column;gap:12px;min-height:180px;flex:1}.opcred-kanban-drop.opcred-drag-over{outline:2px dashed #1a73e8;outline-offset:-8px;background:#eef4ff}.opcred-kanban-card{background:#fff;border:1px solid #dadce0;border-radius:14px;padding:14px;box-shadow:0 6px 18px rgba(60,64,67,.08);cursor:grab}.opcred-kanban-card:active{cursor:grabbing}.opcred-kanban-card h3{font-size:15px;margin:0 0 8px;color:#0b2445;line-height:1.3}.opcred-kanban-card p{font-size:12px;margin:5px 0;line-height:1.35}.opcred-kanban-actions{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.opcred-status-form{display:grid;grid-template-columns:1fr auto;gap:6px;align-items:center;margin-top:8px}.opcred-status-form select{height:36px!important;min-height:36px!important;font-size:12px!important;padding:6px 8px!important}.opcred-status-form button,.opcred-btn-mini{display:inline-block;border:0;border-radius:999px;padding:8px 11px;background:#1a73e8;color:#fff!important;text-decoration:none;font-weight:700;font-size:12px;line-height:1;cursor:pointer}.opcred-kanban-public{max-width:100%!important}@media(max-width:900px){.opcred-kanban{grid-auto-columns:minmax(82vw,1fr)}.opcred-status-form{grid-template-columns:1fr}.opcred-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
.opcred-filters{margin:0}.opcred-filters .opcred-grid{grid-template-columns:repeat(4,minmax(180px,1fr));gap:14px}.opcred-filters input,.opcred-filters select{height:42px!important;min-height:42px!important;padding:8px 10px!important;font-size:14px!important}.opcred-filters label{font-size:12px}.opcred-table-wrap .widefat th,.opcred-table-wrap .widefat td{white-space:nowrap}.opcred-table-wrap .widefat td:nth-child(2){white-space:normal;min-width:180px}@media(max-width:1100px){.opcred-filters .opcred-grid{grid-template-columns:repeat(2,minmax(180px,1fr))}}@media(max-width:700px){.opcred-filters .opcred-grid{grid-template-columns:1fr}}
.opcred-paid-fields{grid-template-columns:1fr;gap:8px;margin-top:8px;padding:10px;border:1px solid #e8edf5;border-radius:12px;background:#f8fbff}
.opcred-paid-fields label{font-size:12px;font-weight:700;color:#0b1f3a}
.opcred-paid-fields input,.opcred-paid-fields select{width:100%;min-height:40px;border:1px solid #d7dee8;border-radius:10px;padding:8px;background:#fff}

.opcred-kanban-drop{max-height:70vh;overflow-y:auto;overflow-x:hidden;}

/* v1.1.6 - resumo CRM nos cards */
.opcred-crm-resumo{font-size:12px;line-height:1.45;margin:8px 0;padding:9px;border-left:4px solid #fbbc05}
.opcred-kanban-card .opcred-crm-resumo strong{display:block;margin-bottom:3px}


/* v1.2.0 - correção visual do formulário público de lead */
.opcred-crm .opcred-lead-card{
  display:block!important;
  max-width:1040px!important;
  width:100%!important;
  margin:18px auto!important;
  padding:28px!important;
}
.opcred-crm .opcred-form-title,
.opcred-crm .opcred-lead-card h2{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  margin:0 0 24px!important;
  padding:0!important;
  grid-column:1/-1!important;
  color:#0b2445!important;
  font-size:30px!important;
  line-height:1.2!important;
}
.opcred-crm .opcred-lead-card .opcred-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:18px 18px!important;
  width:100%!important;
  max-width:100%!important;
  align-items:start!important;
}
.opcred-crm .opcred-lead-card label{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  clear:none!important;
}
.opcred-crm .opcred-lead-card input,
.opcred-crm .opcred-lead-card select,
.opcred-crm .opcred-lead-card textarea{
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
.opcred-crm .opcred-lead-card .opcred-check{
  display:flex!important;
  align-items:flex-start!important;
  gap:10px!important;
  width:100%!important;
  max-width:720px!important;
  margin:22px 0 12px!important;
  line-height:1.5!important;
  white-space:normal!important;
}
.opcred-crm .opcred-lead-card .opcred-check input[type="checkbox"]{
  flex:0 0 18px!important;
  width:18px!important;
  min-width:18px!important;
  max-width:18px!important;
  height:18px!important;
  min-height:18px!important;
  margin:3px 0 0!important;
}
.opcred-crm .opcred-lead-card .g-recaptcha{
  display:block!important;
  width:100%!important;
  max-width:320px!important;
  margin:16px 0!important;
  clear:both!important;
}
.opcred-crm .opcred-lead-card .opcred-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:190px!important;
  margin-top:14px!important;
}
@media(max-width:900px){
  .opcred-crm .opcred-lead-card{padding:20px!important;}
  .opcred-crm .opcred-lead-card .opcred-grid{grid-template-columns:1fr!important;}
  .opcred-crm .opcred-form-title,.opcred-crm .opcred-lead-card h2{font-size:26px!important;margin-bottom:18px!important;}
}

.opcred-crm .opcred-accept{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:16px 0 14px;
  font-size:14px;
  line-height:1.45;
}
.opcred-crm .opcred-accept input{
  width:18px;
  height:18px;
  min-width:18px;
  margin-top:2px;
}
.opcred-crm .opcred-accept a{
  color:#1a73e8;
  font-weight:700;
  text-decoration:underline;
}


/* v1.2.2 - correção do aceite dos termos no cadastro do indicador */
.opcred-crm .opcred-indicador-card .opcred-accept,
.opcred-crm .opcred-card > .opcred-accept{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  gap:10px!important;
  width:100%!important;
  max-width:100%!important;
  margin:20px 0 16px!important;
  padding:0!important;
  clear:both!important;
  grid-column:1/-1!important;
  text-align:left!important;
  font-size:14px!important;
  line-height:1.45!important;
  white-space:normal!important;
}
.opcred-crm .opcred-indicador-card .opcred-accept input[type="checkbox"],
.opcred-crm .opcred-card > .opcred-accept input[type="checkbox"]{
  display:inline-block!important;
  flex:0 0 18px!important;
  width:18px!important;
  min-width:18px!important;
  max-width:18px!important;
  height:18px!important;
  min-height:18px!important;
  max-height:18px!important;
  margin:2px 0 0!important;
  padding:0!important;
  position:static!important;
  transform:none!important;
  box-shadow:none!important;
}
.opcred-crm .opcred-indicador-card .opcred-accept span,
.opcred-crm .opcred-card > .opcred-accept span{
  display:block!important;
  width:auto!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  text-align:left!important;
}
.opcred-crm .opcred-indicador-card .g-recaptcha{
  display:block!important;
  width:100%!important;
  max-width:320px!important;
  margin:16px 0!important;
  clear:both!important;
}
.opcred-crm .opcred-indicador-card .opcred-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:150px!important;
  margin-top:10px!important;
}

/* v1.2.3 - alinhamento do aceite LGPD no formulário de lead */
.opcred-crm .opcred-lead-card .opcred-check{
  display:flex!important;
  flex-direction:row!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  gap:10px!important;
  width:100%!important;
  max-width:100%!important;
  margin:22px 0 12px!important;
  padding:0!important;
  clear:both!important;
  text-align:left!important;
  white-space:normal!important;
  line-height:1.45!important;
}
.opcred-crm .opcred-lead-card .opcred-check input[type="checkbox"]{
  display:inline-block!important;
  flex:0 0 18px!important;
  width:18px!important;
  min-width:18px!important;
  max-width:18px!important;
  height:18px!important;
  min-height:18px!important;
  max-height:18px!important;
  margin:3px 0 0!important;
  padding:0!important;
  position:static!important;
  transform:none!important;
}
.opcred-crm .opcred-lead-card .opcred-check span{
  display:block!important;
  width:auto!important;
  max-width:720px!important;
  margin:0!important;
  padding:0!important;
  text-align:left!important;
}
.opcred-crm .opcred-lead-card .opcred-check a{
  display:inline!important;
  color:#1a73e8!important;
  font-weight:700!important;
  text-decoration:underline!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  padding:0!important;
  margin:0!important;
}

/* OP Cred CRM v1.2.4 - força exibição condicional do tempo de carteira */
.opcred-crm label.opcred-tempo{display:none!important;}
.opcred-crm label.opcred-tempo.opcred-show{display:block!important;}

/* OP Cred CRM v1.2.5 - paginação administrativa */
.opcred-crm .opcred-pagination{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin:12px 0;
}
.opcred-crm .opcred-current-page{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:28px;
  height:28px;
  padding:0 8px;
  border-radius:8px;
  background:#1a73e8;
  color:#fff;
}
.opcred-crm .opcred-pagination a:not(.button){
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:28px;
  height:28px;
  padding:0 8px;
  border:1px solid #d9dee8;
  border-radius:8px;
  text-decoration:none;
}

/* v1.2.7 - reCAPTCHA nos logins */
.opcred-login-card .opcred-recaptcha-wrap{margin:14px 0 18px;display:flex;align-items:center;justify-content:flex-start;max-width:100%;overflow:hidden;}
.opcred-login-card .g-recaptcha{transform-origin:left top;}
@media(max-width:420px){.opcred-login-card .g-recaptcha{transform:scale(.88);}}

.opcred-paid-summary{margin:8px 0;padding:9px 10px;border:1px solid #cce7d0;background:#f0fff4;border-radius:12px;font-size:12px;line-height:1.45;color:#0b3d1b}

/* v1.6.1 - seleção e ações em massa */
.opcred-crm .opcred-bulk-actions{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;margin:14px 0;padding:12px;background:#f6f7f7;border:1px solid #dcdcde;border-radius:8px}
.opcred-crm .opcred-bulk-actions label{min-width:190px;margin:0}
.opcred-crm .opcred-bulk-actions select{width:100%;min-height:36px}
.opcred-crm .opcred-selected-count{font-weight:600;padding-bottom:8px}

/* v1.6.2 - aproveitamento da largura do wp-admin */
body.wp-admin .wrap.opcred-crm{width:auto;max-width:none;margin-right:20px}
body.wp-admin .wrap.opcred-crm>.opcred-card,
body.wp-admin .wrap.opcred-crm .opcred-card{max-width:none!important;margin:18px 0!important}
body.wp-admin .wrap.opcred-crm .opcred-filters .opcred-grid{grid-template-columns:repeat(5,minmax(150px,1fr))}
body.wp-admin .wrap.opcred-crm .opcred-bulk-actions{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto auto;align-items:end}
body.wp-admin .wrap.opcred-crm .opcred-bulk-actions label{min-width:0}
body.wp-admin .wrap.opcred-crm .opcred-table-wrap{width:100%;max-width:100%;overflow-x:auto}
body.wp-admin .wrap.opcred-crm .opcred-table-wrap table{min-width:1450px}
body.wp-admin .wrap.opcred-crm .opcred-table-wrap th,
body.wp-admin .wrap.opcred-crm .opcred-table-wrap td{padding:9px 10px}
@media(max-width:1600px){body.wp-admin .wrap.opcred-crm .opcred-filters .opcred-grid{grid-template-columns:repeat(4,minmax(150px,1fr))}}
@media(max-width:1200px){body.wp-admin .wrap.opcred-crm .opcred-filters .opcred-grid{grid-template-columns:repeat(3,minmax(150px,1fr))}body.wp-admin .wrap.opcred-crm .opcred-bulk-actions{grid-template-columns:1fr 1fr}}
@media(max-width:782px){body.wp-admin .wrap.opcred-crm{margin-right:10px}body.wp-admin .wrap.opcred-crm .opcred-filters .opcred-grid,body.wp-admin .wrap.opcred-crm .opcred-bulk-actions{grid-template-columns:1fr}}

/* v1.7.0 - financeiro */
body.wp-admin .wrap.opcred-crm .opcred-fin-kpis{grid-template-columns:repeat(6,minmax(140px,1fr));margin-top:18px}
body.wp-admin .wrap.opcred-crm .opcred-fin-kpis b{font-size:14px;line-height:1.55}
@media(max-width:1500px){body.wp-admin .wrap.opcred-crm .opcred-fin-kpis{grid-template-columns:repeat(4,minmax(140px,1fr))}}
@media(max-width:1000px){body.wp-admin .wrap.opcred-crm .opcred-fin-kpis{grid-template-columns:repeat(2,minmax(140px,1fr))}}
@media(max-width:600px){body.wp-admin .wrap.opcred-crm .opcred-fin-kpis{grid-template-columns:1fr}}

/* v1.7.2 - tabela de leads e seleção visível */
body.wp-admin .wrap.opcred-crm .opcred-table-wrap table.opcred-data-table-leads{min-width:1180px}
body.wp-admin .wrap.opcred-crm input.opcred-row-select,
body.wp-admin .wrap.opcred-crm input.opcred-select-all{
  -webkit-appearance:none!important;appearance:none!important;
  width:22px!important;min-width:22px!important;max-width:22px!important;
  height:22px!important;min-height:22px!important;
  margin:0!important;padding:0!important;border:2px solid #64748b!important;
  border-radius:5px!important;background-color:#fff!important;
  background-position:center!important;background-repeat:no-repeat!important;
  cursor:pointer!important;vertical-align:middle!important;
}
body.wp-admin .wrap.opcred-crm input.opcred-row-select:checked,
body.wp-admin .wrap.opcred-crm input.opcred-select-all:checked{
  border-color:#1a73e8!important;background-color:#1a73e8!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M4 10l4 4 8-9'/%3E%3C/svg%3E")!important;
}
body.wp-admin .wrap.opcred-crm input.opcred-select-all:indeterminate{
  border-color:#1a73e8!important;background-color:#1a73e8!important;
  background-image:linear-gradient(#fff,#fff)!important;background-size:11px 2px!important;
}
body.wp-admin .wrap.opcred-crm input.opcred-row-select:focus,
body.wp-admin .wrap.opcred-crm input.opcred-select-all:focus{box-shadow:0 0 0 3px rgba(26,115,232,.22)!important;outline:0!important}
