/* LOCAL_AXIS_OVERLAP_FIX_V6: dedicated local-axis layout, no other table changes. */
#keiba-all-local #kpm-axis .kpm-table-wrap{max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain;}
#keiba-all-local #kpm-axis table.kpm-candidate-table.kpm-local-axis-layout-v6{
  table-layout:fixed!important;width:1450px!important;min-width:1450px!important;max-width:none!important;
  border-collapse:collapse!important;overflow:visible!important;
}
#keiba-all-local #kpm-axis table.kpm-candidate-table.kpm-local-axis-layout-v6 th,
#keiba-all-local #kpm-axis table.kpm-candidate-table.kpm-local-axis-layout-v6 td{
  box-sizing:border-box!important;vertical-align:middle!important;overflow:hidden!important;
}
/* A <td> must remain a table-cell, not display:flex, for deterministic column geometry. */
#keiba-all-local #kpm-axis table.kpm-candidate-table.kpm-local-axis-layout-v6 td.kpm-grade-cell{
  display:table-cell!important;white-space:nowrap!important;
}
#keiba-all-local #kpm-axis table.kpm-candidate-table.kpm-local-axis-layout-v6 td.kpm-grade-cell .kpm-grade{
  vertical-align:middle!important;margin-right:6px!important;
}
#keiba-all-local #kpm-axis table.kpm-candidate-table.kpm-local-axis-layout-v6 th:nth-child(6),
#keiba-all-local #kpm-axis table.kpm-candidate-table.kpm-local-axis-layout-v6 td:nth-child(6){
  width:245px!important;min-width:245px!important;max-width:245px!important;white-space:normal!important;
  padding-left:12px!important;padding-right:12px!important;
}
#keiba-all-local #kpm-axis table.kpm-candidate-table.kpm-local-axis-layout-v6 .kpm-local-horse-text{
  display:block!important;max-width:100%!important;min-width:0!important;overflow:hidden!important;
  text-overflow:ellipsis!important;white-space:nowrap!important;line-height:1.4!important;
}
#keiba-all-local #kpm-axis table.kpm-candidate-table.kpm-local-axis-layout-v6 th:nth-child(7),
#keiba-all-local #kpm-axis table.kpm-candidate-table.kpm-local-axis-layout-v6 td:nth-child(7){
  width:100px!important;min-width:100px!important;max-width:100px!important;
  white-space:nowrap!important;text-align:right!important;
}
@media(max-width:650px){
  #keiba-all-local #kpm-axis table.kpm-candidate-table.kpm-local-axis-layout-v6 .kpm-local-horse-text{
    display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
    white-space:normal!important;overflow-wrap:anywhere!important;text-overflow:ellipsis!important;
  }
}
