/* ============================================================
   VC Pages — Painel do Afiliado (v0.8.167)
   O Affiliates Manager continua responsável por dados e ações.
   Esta folha fornece somente a camada de interface.
   ============================================================ */

.vcp-affiliate-dashboard-page{
  --affdash-navy:#09275a;
  --affdash-blue:#1477e8;
  --affdash-orange:#f26b2a;
  --affdash-green:#23884b;
  --affdash-ink:#173b68;
  --affdash-text:#536a83;
  --affdash-muted:#74879e;
  --affdash-line:#d8e4f0;
  --affdash-soft:#f3f7fc;
  color:var(--affdash-ink);
  background:var(--affdash-soft);
  font-family:Inter,var(--ff-body),sans-serif;
}

.vcp-affdash-main{min-height:640px;background:var(--affdash-soft)}

/* ---------- Cabeçalho compacto ---------- */
.vcp-affdash-head{
  background:#f7faff;
  border-bottom:1px solid var(--affdash-line);
}
.vcp-affdash-head__inner{padding-top:40px;padding-bottom:38px}
.vcp-affdash-kicker{
  display:block;
  margin-bottom:13px;
  color:var(--affdash-blue);
  font-size:11px;
  line-height:1;
  font-weight:800;
  letter-spacing:.15em;
  text-transform:uppercase;
}
.vcp-affdash-head h1{
  margin:0;
  color:var(--affdash-navy);
  font-family:Inter,var(--ff-body),sans-serif;
  font-size:clamp(35px,3vw,46px);
  line-height:1.08;
  font-weight:820;
  letter-spacing:-.035em;
  text-transform:none!important;
}
.vcp-affdash-head p{
  margin:12px 0 0;
  color:#60758e;
  font-size:16px;
  line-height:1.55;
}

/* ---------- Limpeza da estrutura do WPBakery ---------- */
.vcp-affdash-content{padding:38px 0 78px;background:var(--affdash-soft)}
.vcp-affdash-host>.wpb-content-wrapper,
.vcp-affdash-host .vc_row,
.vcp-affdash-host .wpb_column,
.vcp-affdash-host .vc_column-inner,
.vcp-affdash-host .wpb_wrapper,
.vcp-affdash-host .wpb_text_column{
  display:contents!important;
  width:auto!important;
  max-width:none!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}

/* ---------- Estrutura principal ---------- */
.vcp-affdash-host .aff-wrap{
  display:grid;
  grid-template-columns:272px minmax(0,1fr);
  align-items:stretch;
  gap:32px;
  width:100%;
  min-height:580px;
  margin:0!important;
  padding:0!important;
}
.vcp-affdash-host .aff-wrap>#aff-controls{
  position:sticky;
  top:94px;
  align-self:start;
  width:100%!important;
  min-height:580px;
  margin:0!important;
  padding:14px!important;
  overflow:hidden;
  background:#fff!important;
  border:1px solid var(--affdash-line)!important;
  border-radius:13px!important;
  box-shadow:0 18px 45px -38px rgba(9,39,90,.42);
}
.vcp-affdash-host #aff-controls .pure-menu-list{
  display:flex!important;
  flex-direction:column;
  width:100%;
  height:100%;
  min-height:550px;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
.vcp-affdash-host #aff-controls .pure-menu-item{
  display:block!important;
  width:100%;
  margin:0!important;
  padding:0!important;
  white-space:normal!important;
}
.vcp-affdash-host #aff-controls .pure-menu-item:last-child{
  margin-top:auto!important;
  padding-top:13px!important;
  border-top:1px solid #e2eaf3;
}
.vcp-affdash-host #aff-controls .pure-menu-link{
  position:relative;
  display:grid!important;
  grid-template-columns:23px minmax(0,1fr);
  align-items:center;
  gap:12px;
  min-height:54px;
  margin:0!important;
  padding:13px 14px!important;
  overflow:hidden;
  color:#24476e!important;
  background:transparent!important;
  border:0!important;
  border-radius:8px!important;
  font-family:Inter,var(--ff-body),sans-serif!important;
  font-size:14px!important;
  line-height:1.28!important;
  font-weight:650!important;
  text-decoration:none!important;
  transition:color .18s ease,background .18s ease;
}
.vcp-affdash-host #aff-controls .pure-menu-link::after{
  content:"";
  position:absolute;
  top:9px;
  bottom:9px;
  left:0;
  width:3px;
  border-radius:99px;
  background:transparent;
}
.vcp-affdash-host #aff-controls .pure-menu-link:hover,
.vcp-affdash-host #aff-controls .pure-menu-link:focus-visible{
  color:#0d67ca!important;
  background:#f3f8ff!important;
}
.vcp-affdash-host #aff-controls .pure-menu-selected>.pure-menu-link{
  color:#0b65c9!important;
  background:#edf5ff!important;
}
.vcp-affdash-host #aff-controls .pure-menu-selected>.pure-menu-link::after{background:var(--affdash-blue)}
.vcp-affdash-nav-icon{display:grid;width:23px;height:23px;place-items:center;color:currentColor}
.vcp-affdash-nav-icon svg{display:block;width:22px;height:22px}

.vcp-affdash-host .aff-wrap>.wrap{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-content:start;
  gap:24px;
  width:100%!important;
  max-width:none!important;
  min-width:0;
  margin:0!important;
  padding:31px!important;
  background:#fff;
  border:1px solid var(--affdash-line);
  border-radius:13px;
  box-shadow:0 20px 54px -43px rgba(9,39,90,.44);
}
.vcp-affdash-host .aff-wrap>.wrap>*{grid-column:1/-1;min-width:0}
.vcp-affdash-host .aff-wrap>.wrap>.vcp-affdash-table--period{grid-column:auto}

/* ---------- Quadros e tabelas do shortcode ---------- */
.vcp-affdash-host .pure-table{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  color:var(--affdash-text)!important;
  background:#fff!important;
  border:1px solid #dbe5f0!important;
  border-radius:10px!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  box-shadow:none!important;
  font-family:Inter,var(--ff-body),sans-serif!important;
  font-size:14px!important;
  line-height:1.5!important;
}
.vcp-affdash-host .pure-table th,
.vcp-affdash-host .pure-table td{
  padding:14px 17px!important;
  color:inherit!important;
  background:transparent!important;
  border-right:0!important;
  border-bottom:1px solid #e4ecf4!important;
  text-align:left!important;
  vertical-align:middle!important;
}
.vcp-affdash-host .pure-table tr:last-child td{border-bottom:0!important}
.vcp-affdash-host .pure-table thead th{
  color:var(--affdash-navy)!important;
  background:#f8fafd!important;
  font-size:13px!important;
  font-weight:780!important;
  letter-spacing:0!important;
  text-transform:none!important;
}

/* Saldo */
.vcp-affdash-host .vcp-affdash-table--account{
  grid-column:1/-1;
  padding:26px 29px!important;
  border-color:#d7e3ef!important;
}
.vcp-affdash-host .vcp-affdash-table--account thead{
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  padding:0;
  overflow:hidden;
  clip:rect(0 0 0 0);
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}
.vcp-affdash-host .vcp-affdash-table--account tbody,
.vcp-affdash-host .vcp-affdash-table--account tr,
.vcp-affdash-host .vcp-affdash-table--account td{display:block}
.vcp-affdash-host .vcp-affdash-table--account tr:first-child{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:8px 20px;
}
.vcp-affdash-host .vcp-affdash-table--account tr:first-child td{
  padding:0!important;
  border:0!important;
}
.vcp-affdash-host .vcp-affdash-table--account tr:first-child td:first-child{
  grid-column:1/-1;
  color:var(--affdash-navy)!important;
  font-size:17px!important;
  line-height:1.25!important;
  font-weight:760!important;
}
.vcp-affdash-host .vcp-affdash-table--account tr:first-child td:last-child{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  grid-column:1/-1;
}
.vcp-affdash-host .positiveMoney{
  color:var(--affdash-navy)!important;
  font-size:clamp(35px,4vw,49px)!important;
  line-height:1!important;
  font-weight:820!important;
  letter-spacing:-.04em!important;
}
.vcp-affdash-account-status{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:29px;
  padding:5px 10px;
  color:var(--affdash-green);
  background:#eef9f1;
  border:1px solid #b9dfc3;
  border-radius:6px;
  font-size:12px;
  line-height:1;
  font-weight:720;
}
.vcp-affdash-account-status svg{width:15px;height:15px}
.vcp-affdash-host .vcp-affdash-table--account tr:nth-child(2){margin-top:18px}
.vcp-affdash-host .vcp-affdash-table--account tr:nth-child(2) td{
  display:inline!important;
  padding:0!important;
  color:var(--affdash-text)!important;
  border:0!important;
  font-size:14px!important;
}
.vcp-affdash-host .vcp-affdash-table--account tr:nth-child(2) td:first-child::after{content:":"}
.vcp-affdash-host .vcp-affdash-table--account tr:nth-child(2) td:last-child{margin-left:4px;font-weight:650!important}

/* Hoje / Este mês */
.vcp-affdash-host .vcp-affdash-table--period{
  display:block!important;
  min-width:0;
  padding:22px 25px 24px!important;
}
.vcp-affdash-host .vcp-affdash-table--period thead,
.vcp-affdash-host .vcp-affdash-table--period tbody,
.vcp-affdash-host .vcp-affdash-table--period tr,
.vcp-affdash-host .vcp-affdash-table--period th,
.vcp-affdash-host .vcp-affdash-table--period td{display:block!important}
.vcp-affdash-host .vcp-affdash-table--period thead th{
  padding:0 0 18px!important;
  background:transparent!important;
  border:0!important;
  font-size:20px!important;
  line-height:1.25!important;
  font-weight:780!important;
}
.vcp-affdash-host .vcp-affdash-table--period tbody td{padding:0!important;border:0!important}
.vcp-affdash-host .summaryPanel{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  width:100%;
  margin:0!important;
  padding:0!important;
}
.vcp-affdash-host .summaryPanelLine{
  position:relative;
  display:grid!important;
  grid-template-rows:27px auto auto;
  justify-items:center;
  gap:7px;
  min-width:0;
  margin:0!important;
  padding:0 12px!important;
  text-align:center;
}
.vcp-affdash-host .summaryPanelLine+.summaryPanelLine{border-left:1px solid #e0e8f1}
.vcp-affdash-metric-icon{display:grid;width:27px;height:27px;place-items:center;color:#126bd2}
.vcp-affdash-metric-icon svg{display:block;width:25px;height:25px}
.vcp-affdash-host .summaryPanelLineValue{
  color:var(--affdash-navy)!important;
  font-size:22px!important;
  line-height:1.15!important;
  font-weight:800!important;
  letter-spacing:-.025em!important;
}
.vcp-affdash-host .summaryPanelLineLabel{
  color:#647991!important;
  font-size:11.5px!important;
  line-height:1.35!important;
  font-weight:550!important;
}

/* ---------- Demais telas do Affiliates Manager ---------- */
.vcp-affdash-host .aff-wrap>.wrap>.pure-table:not(.vcp-affdash-table--account):not(.vcp-affdash-table--period){grid-column:1/-1}
.vcp-affdash-host .aff-wrap>.wrap>form,
.vcp-affdash-host .aff-wrap>.wrap>.pure-form,
.vcp-affdash-host .aff-wrap>.wrap>.wpam-form,
.vcp-affdash-host .aff-wrap>.wrap>.wpam-creative-list,
.vcp-affdash-host .aff-wrap>.wrap>h2,
.vcp-affdash-host .aff-wrap>.wrap>h3,
.vcp-affdash-host .aff-wrap>.wrap>p{grid-column:1/-1}
.vcp-affdash-host .aff-wrap>.wrap h1,
.vcp-affdash-host .aff-wrap>.wrap h2,
.vcp-affdash-host .aff-wrap>.wrap h3,
.vcp-affdash-host .aff-wrap>.wrap h4{
  margin:0 0 16px!important;
  color:var(--affdash-navy)!important;
  font-family:Inter,var(--ff-body),sans-serif!important;
  line-height:1.25!important;
  letter-spacing:-.02em!important;
  text-transform:none!important;
}
.vcp-affdash-host .aff-wrap>.wrap h2{font-size:25px!important}
.vcp-affdash-host .aff-wrap>.wrap h3{font-size:20px!important}
.vcp-affdash-host label{
  display:block;
  margin:0 0 7px!important;
  color:#21466f!important;
  font-family:Inter,var(--ff-body),sans-serif!important;
  font-size:13.5px!important;
  line-height:1.35!important;
  font-weight:700!important;
}
.vcp-affdash-host input[type="text"],
.vcp-affdash-host input[type="email"],
.vcp-affdash-host input[type="password"],
.vcp-affdash-host input[type="url"],
.vcp-affdash-host input[type="number"],
.vcp-affdash-host input[type="date"],
.vcp-affdash-host select,
.vcp-affdash-host textarea{
  width:100%!important;
  min-height:45px!important;
  margin:0!important;
  padding:10px 13px!important;
  color:#24476e!important;
  background:#fff!important;
  border:1px solid #cbd9e8!important;
  border-radius:7px!important;
  box-shadow:none!important;
  font-family:Inter,var(--ff-body),sans-serif!important;
  font-size:14px!important;
  line-height:1.4!important;
}
.vcp-affdash-host textarea{min-height:120px!important;resize:vertical}
.vcp-affdash-host input:focus,
.vcp-affdash-host select:focus,
.vcp-affdash-host textarea:focus{outline:0!important;border-color:var(--affdash-blue)!important;box-shadow:0 0 0 3px rgba(20,119,232,.12)!important}
.vcp-affdash-host input[type="submit"],
.vcp-affdash-host button:not(.vcp-affdash-copy),
.vcp-affdash-host .pure-button{
  min-height:43px!important;
  padding:11px 18px!important;
  color:#fff!important;
  background:var(--affdash-blue)!important;
  border:1px solid var(--affdash-blue)!important;
  border-radius:7px!important;
  box-shadow:none!important;
  font-family:Inter,var(--ff-body),sans-serif!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:720!important;
  text-transform:none!important;
  cursor:pointer;
}
.vcp-affdash-host input[type="submit"]:hover,
.vcp-affdash-host button:not(.vcp-affdash-copy):hover,
.vcp-affdash-host .pure-button:hover{background:#0e66c9!important;border-color:#0e66c9!important}
.vcp-affdash-host .wpam_message,
.vcp-affdash-host .wpam-message,
.vcp-affdash-host .wpam-error,
.vcp-affdash-host .wpam_form_errors{
  grid-column:1/-1;
  margin:0 0 18px!important;
  padding:14px 16px!important;
  color:#405e7d!important;
  background:#f4f8fd!important;
  border:1px solid #d5e3f1!important;
  border-radius:8px!important;
  font-size:13.5px!important;
  line-height:1.5!important;
}
.vcp-affdash-host img{max-width:100%;height:auto}
.vcp-affdash-host pre,
.vcp-affdash-host textarea[readonly]{overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}

/* ---------- Link de apoio ---------- */
.vcp-affdash-program-link{
  position:relative;
  grid-column:1/-1;
  margin:8px 0 0!important;
  padding:0!important;
  border:1px solid #dbe5f0;
  border-radius:9px;
  background:#fbfdff;
}
.vcp-affdash-program-link a{
  display:flex!important;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:64px;
  padding:16px 19px!important;
  color:#24476e!important;
  font-size:13.5px!important;
  line-height:1.4!important;
  font-weight:650!important;
  text-decoration:none!important;
}
.vcp-affdash-program-link a:hover{color:#0c68cd!important;background:#f5f9ff}
.vcp-affdash-program-link__copy{display:grid;gap:3px;min-width:0}
.vcp-affdash-program-link__copy strong{
  color:var(--affdash-navy);
  font-size:14px;
  line-height:1.3;
  font-weight:760;
}
.vcp-affdash-program-link__copy>span{
  color:#647991;
  font-size:12.5px;
  line-height:1.4;
  font-weight:500;
}
.vcp-affdash-program-link__arrow{flex:0 0 auto;color:var(--affdash-blue);font-size:23px;line-height:1}

/* Estado sem painel: visitante ou usuário ainda não afiliado. */
.vcp-affdash-host.is-fallback{
  max-width:820px;
  margin:0 auto;
  padding:0;
  background:#fff;
  border:1px solid var(--affdash-line);
  border-radius:13px;
  box-shadow:0 20px 54px -43px rgba(9,39,90,.44);
}
.vcp-affdash-host.is-fallback p{color:var(--affdash-text);font-size:15px;line-height:1.65}
.vcp-affdash-state-card{padding:37px 40px 35px}
.vcp-affdash-state-card__eyebrow{
  display:block;
  margin-bottom:11px;
  color:var(--affdash-blue);
  font-size:10.5px;
  line-height:1;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.vcp-affdash-state-card h2{
  max-width:620px;
  margin:0!important;
  color:var(--affdash-navy)!important;
  font-family:Inter,var(--ff-body),sans-serif!important;
  font-size:27px!important;
  line-height:1.2!important;
  font-weight:800!important;
  letter-spacing:-.025em!important;
  text-transform:none!important;
}
.vcp-affdash-state-card>p{max-width:650px;margin:12px 0 0!important}
.vcp-affdash-state-card__actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:24px}
.vcp-affdash-state-button{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:11px 18px!important;
  border:1px solid transparent!important;
  border-radius:7px!important;
  font-family:Inter,var(--ff-body),sans-serif!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:720!important;
  text-decoration:none!important;
  transition:color .18s ease,background .18s ease,border-color .18s ease;
}
.vcp-affdash-state-button--primary{color:#fff!important;background:var(--affdash-blue)!important;border-color:var(--affdash-blue)!important}
.vcp-affdash-state-button--primary:hover{color:#fff!important;background:#0e66c9!important;border-color:#0e66c9!important}
.vcp-affdash-state-button--secondary{color:#145fae!important;background:#fff!important;border-color:#a9c4e1!important}
.vcp-affdash-state-button--secondary:hover{color:#fff!important;background:#145fae!important;border-color:#145fae!important}
.vcp-affdash-state-card__program{
  display:flex!important;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-top:26px!important;
  padding-top:19px!important;
  color:#315679!important;
  border-top:1px solid #e0e9f2;
  font-size:12.5px!important;
  line-height:1.4!important;
  font-weight:650!important;
  text-decoration:none!important;
}
.vcp-affdash-state-card__program span{color:var(--affdash-blue);font-size:20px;line-height:1}
.vcp-affdash-state-card__program:hover{color:#0c68cd!important}

/* ---------- Responsividade ---------- */
@media (max-width:1100px){
  .vcp-affdash-host .aff-wrap{grid-template-columns:235px minmax(0,1fr);gap:24px}
  .vcp-affdash-host .aff-wrap>.wrap{padding:25px!important;gap:19px}
  .vcp-affdash-host .vcp-affdash-table--period{padding:20px 17px 22px!important}
  .vcp-affdash-host .summaryPanelLine{padding:0 7px!important}
}

@media (max-width:900px){
  .vcp-affdash-head__inner{padding-top:34px;padding-bottom:33px}
  .vcp-affdash-content{padding-top:28px}
  .vcp-affdash-host .aff-wrap{grid-template-columns:1fr;gap:20px;min-height:0}
  .vcp-affdash-host .aff-wrap>#aff-controls{position:static;min-height:0;padding:9px!important;overflow-x:auto}
  .vcp-affdash-host #aff-controls .pure-menu-list{
    flex-direction:row;
    width:max-content;
    height:auto;
    min-height:0;
  }
  .vcp-affdash-host #aff-controls .pure-menu-item{width:auto}
  .vcp-affdash-host #aff-controls .pure-menu-item:last-child{margin-top:0!important;padding-top:0!important;border-top:0;border-left:1px solid #e2eaf3}
  .vcp-affdash-host #aff-controls .pure-menu-link{grid-template-columns:20px auto;min-height:46px;padding:10px 13px!important;white-space:nowrap!important}
  .vcp-affdash-host #aff-controls .pure-menu-link::after{top:auto;right:9px;bottom:0;left:9px;width:auto;height:3px}
  .vcp-affdash-nav-icon,.vcp-affdash-nav-icon svg{width:19px;height:19px}
}

@media (max-width:680px){
  .vcp-affdash-head__inner{padding-top:29px;padding-bottom:29px}
  .vcp-affdash-head h1{font-size:34px}
  .vcp-affdash-head p{font-size:15px}
  .vcp-affdash-content{padding:20px 0 55px}
  .vcp-affdash-content>.vcp-wrap{width:calc(100% - 24px)}
  .vcp-affdash-host .aff-wrap>.wrap{grid-template-columns:minmax(0,1fr);gap:16px;padding:16px!important;border-radius:11px}
  .vcp-affdash-host .vcp-affdash-table--account{padding:21px 19px!important}
  .vcp-affdash-host .positiveMoney{font-size:37px!important}
  .vcp-affdash-host .vcp-affdash-table--period{padding:19px 14px 21px!important}
  .vcp-affdash-host .summaryPanel{grid-template-columns:1fr}
  .vcp-affdash-host .summaryPanelLine{
    grid-template-columns:27px 64px minmax(0,1fr);
    grid-template-rows:auto;
    align-items:center;
    justify-items:start;
    gap:10px;
    min-height:53px;
    padding:10px 2px!important;
    text-align:left;
  }
  .vcp-affdash-host .summaryPanelLine+.summaryPanelLine{border-top:1px solid #e0e8f1;border-left:0}
  .vcp-affdash-host .summaryPanelLineValue{font-size:19px!important}
  .vcp-affdash-host .summaryPanelLineLabel{font-size:12px!important}
  .vcp-affdash-program-link a{min-height:60px;padding:14px 15px!important}
  .vcp-affdash-host .pure-table:not(.vcp-affdash-table--account):not(.vcp-affdash-table--period){display:block!important;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .vcp-affdash-state-card{padding:28px 22px}
  .vcp-affdash-state-card h2{font-size:23px!important}
  .vcp-affdash-state-card__actions{align-items:stretch;flex-direction:column}
  .vcp-affdash-state-button{width:100%}
}

@media (prefers-reduced-motion:reduce){
  .vcp-affdash-host #aff-controls .pure-menu-link{transition:none!important}
}
