/* Nekon HUB v26.20 — wallet history layout reset
   This file intentionally loads last and neutralizes legacy wallet layout rules. */
html.nekon-next #billetera{
  width:100%;
  box-sizing:border-box;
  overflow-x:hidden;
}
html.nekon-next #billetera .page-title,
html.nekon-next #billetera .member-auth-gate,
html.nekon-next #billetera .wallet-private{
  position:static!important;
  float:none!important;
  inset:auto!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
  box-sizing:border-box!important;
}
html.nekon-next #billetera .page-title{
  width:min(1240px,calc(100% - 56px))!important;
  max-width:1240px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
html.nekon-next #billetera .wallet-private{
  display:block!important;
  width:min(1240px,calc(100% - 56px))!important;
  max-width:1240px!important;
  margin:24px auto 0!important;
  padding:0!important;
}
html.nekon-next #billetera .wallet-workspace-nav{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
  width:100%!important;
  max-width:none!important;
  margin:0 0 18px!important;
  padding:8px!important;
  box-sizing:border-box!important;
  position:static!important;
  transform:none!important;
}
html.nekon-next #billetera .wallet-workspace-nav button{
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
html.nekon-next #billetera .wallet-tab-panel{
  position:static!important;
  float:none!important;
  inset:auto!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  transform:none!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  box-sizing:border-box!important;
  grid-column:auto!important;
  grid-row:auto!important;
}
html.nekon-next #billetera .wallet-tab-panel[hidden]{
  display:none!important;
}
html.nekon-next #billetera .wallet-history-panel:not([hidden]){
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:24px!important;
  border-radius:22px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
html.nekon-next #billetera .wallet-history-panel .member-panel__head{
  width:100%!important;
  margin:0 0 18px!important;
  box-sizing:border-box!important;
}
html.nekon-next #billetera .wallet-history-pending{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  width:100%!important;
  box-sizing:border-box!important;
  margin:0 0 14px!important;
}
html.nekon-next #billetera .wallet-history-tabs{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
  width:100%!important;
  box-sizing:border-box!important;
  margin:0 0 14px!important;
  position:static!important;
  top:auto!important;
}
html.nekon-next #billetera .wallet-history-tabs button{
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
html.nekon-next #billetera .wallet-history-list{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:12px!important;
  width:100%!important;
  min-width:0!important;
  min-height:130px!important;
  max-width:none!important;
  margin:0!important;
  padding:0 4px 0 0!important;
  box-sizing:border-box!important;
  overflow:visible!important;
  position:static!important;
  transform:none!important;
}
html.nekon-next #billetera .wallet-history-list[hidden]{
  display:none!important;
}
html.nekon-next #billetera .wallet-history-list.has-scroll{
  max-height:650px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  scrollbar-gutter:stable!important;
}
html.nekon-next #billetera .wallet-empty{
  display:grid!important;
  align-content:center!important;
  justify-items:start!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
  min-height:126px!important;
  margin:0!important;
  padding:22px!important;
  box-sizing:border-box!important;
  border-radius:18px!important;
  position:static!important;
  transform:none!important;
}
html.nekon-next #billetera .wallet-request-card,
html.nekon-next #billetera .wallet-transaction-card{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  box-sizing:border-box!important;
  position:static!important;
  transform:none!important;
}

/* Mobile/PWA: same hierarchy, compact and always visible. */
@media(max-width:820px){
  html.nekon-next #billetera .page-title,
  html.nekon-next #billetera .wallet-private{
    width:calc(100% - 28px)!important;
    max-width:none!important;
  }
  html.nekon-next #billetera .wallet-private{
    margin-top:14px!important;
  }
  html.nekon-next #billetera .wallet-workspace-nav{
    margin-bottom:14px!important;
    padding:7px!important;
  }
  html.nekon-next #billetera .wallet-workspace-nav button{
    min-height:48px!important;
    font-size:.63rem!important;
    letter-spacing:.055em!important;
  }
  html.nekon-next #billetera .wallet-history-panel:not([hidden]){
    display:block!important;
    width:100%!important;
    padding:17px!important;
    min-height:250px!important;
  }
  html.nekon-next #billetera .wallet-history-pending{
    padding:13px 14px!important;
  }
  html.nekon-next #billetera .wallet-history-tabs{
    position:static!important;
    top:auto!important;
  }
  html.nekon-next #billetera .wallet-history-tabs button{
    min-height:44px!important;
    font-size:.64rem!important;
  }
  html.nekon-next #billetera .wallet-history-list{
    min-height:132px!important;
  }
  html.nekon-next #billetera .wallet-history-list.has-scroll{
    max-height:520px!important;
  }
  html.nekon-next #billetera .wallet-empty{
    min-height:126px!important;
    padding:18px!important;
  }
}
