/* eFruit v4 — Responsive Grid Fix */
/* Overrides inline grid-template-columns on mobile */

@media(max-width:639px){
  .ef-blog-grid,.ef-vd-kpi,
  [style*='grid-template-columns:repeat(4'],
  [style*='grid-template-columns:repeat(3'],
  [style*="grid-template-columns:1fr 1fr 1fr"]{
    grid-template-columns:1fr!important;
    gap:10px!important}
  [style*='grid-template-columns:repeat(2'],
  [style*="grid-template-columns:1fr 1fr"]{
    grid-template-columns:1fr!important;
    gap:10px!important}
}

@media(min-width:640px) and (max-width:1023px){
  .ef-blog-grid,[style*='repeat(4']{
    grid-template-columns:repeat(2,1fr)!important}
  [style*='repeat(3']{grid-template-columns:repeat(2,1fr)!important}
}

@media(max-width:639px){
  [style*="translateY(-4px)"]{transform:none!important}
}
@media(min-width:640px) and (max-width:899px){
  .ef-page-1200 [style*='repeat(4,1fr)']{
    grid-template-columns:repeat(2,1fr)!important}
}

@media(max-width:639px){
  .ef-page-1200 table{font-size:.7rem}
  .ef-page-1200 table th,.ef-page-1200 table td{padding:7px 6px!important}
  .ef-page-1200 table th:first-child,.ef-page-1200 table td:first-child{
    position:sticky;left:0;background:#fff;z-index:1;min-width:100px}
}

@media(max-width:639px){
  .ef-vd-kpi{grid-template-columns:1fr 1fr!important;gap:8px!important}
}

@media(max-width:479px){
  #ef-cross-inner{grid-template-columns:repeat(2,1fr)!important}
}

@media(max-width:479px){
  [style*="font-size:1.5rem"],[style*="font-size:1.6rem"],
  [style*="font-size:1.7rem"]{font-size:1.15rem!important}
}

@media(max-width:639px){
  .ef-page-1200,.ef-layout__center{overflow-x:hidden}
  .ef-page-1200 img{max-width:100%;height:auto}
}

@media(max-width:479px){
  .efc-progress{gap:0;justify-content:space-between}
  .efc-progress__label{font-size:.6rem}
}
