
/* V220 — Dashboard: Tổng hợp KPI toàn hệ thống stays one row on mobile/tablet. */
@media (max-width:1100px){
  .v220-global-kpi-summary{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    column-gap:8px!important;
    row-gap:8px!important;
    width:100%!important;
    min-width:0!important;
    align-items:stretch!important;
  }

  /* Heading spans full width above the KPI row. */
  .v220-global-kpi-summary > .w-full{
    grid-column:1/-1!important;
    width:100%!important;
    min-width:0!important;
    margin-bottom:2px;
  }

  /* Hide old vertical separators. */
  .v220-global-kpi-summary > .h-10.w-px{
    display:none!important;
  }

  /* KPI cells: three equal columns, one row. */
  .v220-global-kpi-summary > div:not(.w-full):not(.h-10){
    min-width:0!important;
    max-width:100%!important;
    width:100%!important;
    margin:0!important;
  }

  .v220-global-kpi-summary > div.flex.items-center.gap-3{
    display:block!important;
  }

  /* Icon area compact. */
  .v220-global-kpi-summary > div.flex.items-center.gap-3 > div:first-child{
    width:30px!important;
    height:30px!important;
    margin-bottom:5px!important;
  }

  .v220-global-kpi-summary > div.flex.items-center.gap-3 > div:first-child svg{
    width:16px!important;
    height:16px!important;
  }

  .v220-global-kpi-summary .eyebrow{
    font-size:8.5px!important;
    line-height:1.2!important;
    letter-spacing:.06em!important;
    white-space:normal!important;
  }

  .v220-global-kpi-summary .stat-figure{
    margin-top:3px!important;
    font-size:clamp(13px,2.2vw,18px)!important;
    line-height:1.15!important;
    letter-spacing:-.03em!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:clip!important;
  }

  .v220-global-kpi-summary .stat-figure span{
    display:none!important;
  }

  /* Keep the annual estimate from pushing outside the card. */
  .v220-global-kpi-summary > div:nth-of-type(4) .stat-figure{
    font-size:clamp(12px,2vw,17px)!important;
  }
}

@media (max-width:560px){
  .v220-global-kpi-summary{
    column-gap:5px!important;
    padding:10px!important;
  }

  .v220-global-kpi-summary .eyebrow{
    font-size:7.8px!important;
  }

  .v220-global-kpi-summary .stat-figure{
    font-size:clamp(11px,3.2vw,15px)!important;
  }

  .v220-global-kpi-summary > div.flex.items-center.gap-3 > div:first-child{
    width:26px!important;
    height:26px!important;
  }

  .v220-global-kpi-summary > div.flex.items-center.gap-3 > div:first-child svg{
    width:14px!important;
    height:14px!important;
  }
}
