/* RA V23 final polish: mobile table fit, modal label fit, and reliable checkbox targets */
.ra-row-select,.ra-check-head{cursor:pointer!important;pointer-events:auto!important;user-select:none!important;touch-action:manipulation!important;position:relative!important;z-index:100!important;}
.ra-row-check,.ra-select-all,.ra-user-check,.ra-reseller-check,.ra-dns-check{cursor:pointer!important;pointer-events:auto!important;touch-action:manipulation!important;appearance:none!important;-webkit-appearance:none!important;background:#fff!important;border:2px solid #9b9b9b!important;border-radius:3px!important;display:inline-block!important;vertical-align:middle!important;position:relative!important;z-index:101!important;}
.ra-row-check:checked,.ra-select-all:checked,.ra-user-check:checked,.ra-reseller-check:checked,.ra-dns-check:checked{background:#5e35b1!important;border-color:#5e35b1!important;}
.ra-row-check:checked:after,.ra-select-all:checked:after,.ra-user-check:checked:after,.ra-reseller-check:checked:after,.ra-dns-check:checked:after{content:'\f00c'!important;font-family:'Font Awesome 5 Free'!important;font-weight:900!important;color:#fff!important;font-size:10px!important;position:absolute!important;left:2px!important;top:-1px!important;line-height:1!important;}
.table-listuser .ra-usage-wrap,.table-listreseller .ra-reseller-wrap,.table-listdns .ra-dns-wrap{min-width:0!important;max-width:100%!important;}
.table-listuser .ra-limit-main,.table-listuser .ra-pack-limit{display:inline-flex!important;align-items:center!important;justify-content:center!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.table-listuser .ra-limit-main i,.table-listuser .ra-pack-limit i{margin-right:4px!important;}
.normal-modal-dialog{max-width:720px!important;width:calc(100% - 18px)!important;margin:20px auto!important;}
.normal-modal-content{max-width:100%!important;overflow:hidden!important;}
.ra-field-row{grid-template-columns:minmax(0,1fr) 62px!important;max-width:100%!important;}
.ra-field-box{min-width:0!important;max-width:100%!important;}
.ra-field-label{max-width:calc(100% - 18px)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.ra-field-value{word-break:break-word!important;overflow-wrap:anywhere!important;}
@media(max-width:767px){
  html,body,.main-content,.section,.section-body,.card,.card-body,.dataTables_wrapper{max-width:100%!important;overflow-x:hidden!important;}
  .normal-modal-dialog{width:calc(100% - 16px)!important;max-width:calc(100% - 16px)!important;margin:14px auto!important;}
  .ra-field-row{grid-template-columns:minmax(0,1fr) 50px!important;gap:7px!important;margin-bottom:13px!important;}
  .ra-field-btn{width:50px!important;min-width:50px!important;height:52px!important;font-size:16px!important;}
  .ra-field-box{min-height:52px!important;padding:16px 10px 8px!important;}
  .ra-field-label{top:-12px!important;left:10px!important;font-size:11px!important;letter-spacing:.2px!important;line-height:1.1!important;}
  .ra-field-value{font-size:16px!important;line-height:1.25!important;}
  .ra-bandwidth-box{padding:15px 10px 10px!important;}
  .ra-bandwidth-label{font-size:12px!important;left:10px!important;}
  .ra-bandwidth-inline{flex-wrap:nowrap!important;gap:6px!important;}
  .ra-bandwidth-inline .form-control{max-width:none!important;min-width:0!important;flex:1 1 auto!important;font-size:13px!important;}
  .ra-bandwidth-inline .btn{flex:0 0 auto!important;padding:8px 10px!important;font-size:12px!important;}
  /* User mobile: Username | Online | Session | Limit fits without clipping. */
  .table-listuser{table-layout:fixed!important;width:100%!important;min-width:0!important;max-width:100%!important;}
  .table-listuser thead th,.table-listuser tbody td{box-sizing:border-box!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;padding:9px 3px!important;}
  .table-listuser thead th:nth-child(1),.table-listuser tbody td:nth-child(1){display:table-cell!important;width:33%!important;max-width:33%!important;}
  .table-listuser thead th:nth-child(2),.table-listuser tbody td:nth-child(2){display:table-cell!important;width:19%!important;max-width:19%!important;text-align:center!important;}
  .table-listuser thead th:nth-child(4),.table-listuser tbody td:nth-child(4){display:table-cell!important;width:20%!important;max-width:20%!important;text-align:center!important;}
  .table-listuser thead th:nth-child(5),.table-listuser tbody td:nth-child(5){display:table-cell!important;width:28%!important;max-width:28%!important;text-align:left!important;}
  .table-listuser thead th:nth-child(3),.table-listuser tbody td:nth-child(3),.table-listuser thead th:nth-child(6),.table-listuser tbody td:nth-child(6),.table-listuser thead th:nth-child(7),.table-listuser tbody td:nth-child(7){display:none!important;}
  .table-listuser .ra-row-select{width:15px!important;min-width:15px!important;margin-right:2px!important;}
  .table-listuser .ra-row-check,.table-listuser .ra-select-all{width:15px!important;height:15px!important;min-width:15px!important;}
  .table-listuser .avatar,.table-listuser .avatar img{width:23px!important;height:23px!important;min-width:23px!important;}
  .table-listuser .ra-user-wrap{gap:3px!important;min-width:0!important;max-width:100%!important;}
  .table-listuser .ra-user-name-pill{min-width:48px!important;max-width:64px!important;padding:6px 6px!important;font-size:10.5px!important;letter-spacing:0!important;}
  .table-listuser .ra-online-wrap .badge,.table-listuser .ra-session-wrap .badge{min-width:0!important;max-width:100%!important;padding:6px 5px!important;font-size:10px!important;letter-spacing:0!important;}
  .table-listuser .ra-online-wrap .badge i,.table-listuser .ra-session-wrap .badge i{display:none!important;}
  .table-listuser .ra-usage-wrap{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;}
  .table-listuser .ra-limit-main,.table-listuser .ra-pack-limit{max-width:100%!important;padding:5px 5px!important;font-size:9.2px!important;line-height:1.05!important;border-radius:999px!important;letter-spacing:0!important;}
  .table-listuser .ra-pack-limit{display:none!important;}
  .table-listuser .ra-usage-line{height:4px!important;margin:5px 0 3px!important;}
  .table-listuser .ra-usage-wrap small{display:block!important;font-size:10px!important;line-height:1.1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important;}
  .table-listuser .ra-usage-wrap small.text-danger,.table-listuser .ra-usage-wrap small.text-muted:not(:first-of-type){display:none!important;}
  /* Reseller mobile: clients badge remains inside card. */
  .table-listreseller{table-layout:fixed!important;width:100%!important;min-width:0!important;max-width:100%!important;}
  .table-listreseller thead th,.table-listreseller tbody td{box-sizing:border-box!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;padding:9px 3px!important;}
  .table-listreseller thead th:nth-child(1),.table-listreseller tbody td:nth-child(1){width:45%!important;max-width:45%!important;display:table-cell!important;}
  .table-listreseller thead th:nth-child(2),.table-listreseller tbody td:nth-child(2){width:22%!important;max-width:22%!important;text-align:center!important;display:table-cell!important;}
  .table-listreseller thead th:nth-child(3),.table-listreseller tbody td:nth-child(3){width:33%!important;max-width:33%!important;text-align:center!important;display:table-cell!important;}
  .table-listreseller thead th:nth-child(n+4),.table-listreseller tbody td:nth-child(n+4){display:none!important;}
  .table-listreseller .badge{max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:10.5px!important;padding:6px 7px!important;letter-spacing:0!important;}
  .table-listreseller .badge i{margin-right:2px!important;}
  .table-listreseller .avatar,.table-listreseller .avatar img{width:24px!important;height:24px!important;min-width:24px!important;}
  .table-listreseller .ra-reseller-wrap{gap:3px!important;}
  .table-listreseller .ra-row-select{width:16px!important;min-width:16px!important;margin:0 3px 0 0!important;position:relative!important;left:0!important;top:0!important;box-shadow:none!important;background:transparent!important;}
  .table-listreseller .ra-row-check,.table-listreseller .ra-select-all{width:16px!important;height:16px!important;min-width:16px!important;}
}
