/* CAE_R4_67_AFP_CONSULTA_SEGURA_20260912
   Presentacion solamente. No modifica formulas, persistencia ni motor de planilla. */

#afp .cae-afp-r467-shell{
  display:grid;
  gap:16px;
  margin-top:14px;
}

#afp .cae-afp-r467-hero{
  padding:18px;
  border:1px solid #d7e2ef;
  border-left:5px solid #8b0f1a;
  border-radius:14px;
  background:linear-gradient(135deg,#ffffff 0%,#f8fafc 100%);
  box-shadow:0 8px 24px rgba(15,23,42,.07);
}

#afp .cae-afp-r467-head{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
}

#afp .cae-afp-r467-head h3{
  margin:0 0 5px;
  color:#0f2945;
  font-size:20px;
}

#afp .cae-afp-r467-head p{
  margin:0;
  color:#64748b;
  font-size:12.5px;
  line-height:1.5;
}

#afp .cae-afp-r467-period{
  display:grid;
  gap:6px;
  min-width:190px;
  color:#334155;
  font-size:12px;
  font-weight:800;
}

#afp #afpR467Period{
  min-width:170px;
  height:40px;
  padding:8px 10px;
  border:1px solid #cbd5e1;
  border-radius:9px;
  background:#fff;
  color:#0f172a;
  font-weight:800;
}

#afp .cae-afp-r467-source{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:14px;
  padding:10px 12px;
  border:1px solid #dbe6f0;
  border-radius:10px;
  background:#f8fbff;
  color:#475569;
  font-size:12px;
}

#afp .cae-afp-r467-source b{color:#173f77}

#afp .cae-afp-r467-status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 9px;
  border-radius:999px;
  background:#fff4db;
  color:#8a5600;
  font-size:11px;
  font-weight:900;
}

#afp .cae-afp-r467-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(190px,1fr));
  gap:12px;
  margin-top:15px;
}

#afp .cae-afp-r467-card{
  overflow:hidden;
  border:1px solid #dbe4ee;
  border-radius:12px;
  background:#fff;
  box-shadow:0 5px 16px rgba(15,23,42,.05);
}

#afp .cae-afp-r467-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:12px 13px 10px;
  border-bottom:1px solid #edf2f7;
  background:#f8fafc;
}

#afp .cae-afp-r467-card-head b{
  color:#102a4b;
  font-size:14px;
}

#afp .cae-afp-r467-badge{
  padding:4px 7px;
  border-radius:999px;
  font-size:10px;
  font-weight:900;
  white-space:nowrap;
}

#afp .cae-afp-r467-badge.exact{
  background:#dcfce7;
  color:#166534;
}

#afp .cae-afp-r467-badge.inherited{
  background:#fef3c7;
  color:#92400e;
}

#afp .cae-afp-r467-badge.missing{
  background:#fee2e2;
  color:#991b1b;
}

#afp .cae-afp-r467-values{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
}

#afp .cae-afp-r467-value{
  padding:10px 12px;
  border-bottom:1px solid #f1f5f9;
}

#afp .cae-afp-r467-value:nth-child(odd){
  border-right:1px solid #f1f5f9;
}

#afp .cae-afp-r467-value small{
  display:block;
  margin-bottom:3px;
  color:#64748b;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
}

#afp .cae-afp-r467-value strong{
  color:#0f172a;
  font-size:13px;
}

#afp .cae-afp-r467-empty{
  grid-column:1/-1;
  padding:18px;
  border:1px dashed #cbd5e1;
  border-radius:10px;
  color:#64748b;
  background:#fff;
  text-align:center;
}

#afp .cae-afp-r467-history{
  overflow:hidden;
  border:1px solid #dbe3ee;
  border-radius:13px;
  background:#fff;
}

#afp .cae-afp-r467-history summary{
  cursor:pointer;
  padding:14px 16px;
  color:#173f77;
  background:#f8fafc;
  font-weight:900;
  user-select:none;
}

#afp .cae-afp-r467-history[open] summary{
  border-bottom:1px solid #e2e8f0;
}

#afp .cae-afp-r467-history-body{
  padding:15px;
}

#afp .cae-afp-r467-history-note{
  margin:0 0 12px;
  color:#64748b;
  font-size:12px;
  line-height:1.5;
}

#afp #applySbsRates,
#afp #resetAfp{
  display:none !important;
}

@media(max-width:1180px){
  #afp .cae-afp-r467-grid{grid-template-columns:repeat(2,minmax(190px,1fr))}
}

@media(max-width:650px){
  #afp .cae-afp-r467-grid{grid-template-columns:1fr}
  #afp .cae-afp-r467-period{width:100%}
  #afp #afpR467Period{width:100%}
}
