/* Shared controls, scoped to authenticated web panels. */
/* User editor: keep account, password and destructive actions independent. */
.users-edit-page{min-width:0}
.users-edit-page .card{min-width:0;overflow:hidden}
.users-edit-page .card-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:18px 20px}
.users-edit-page .card-title{font-size:15px;line-height:1.5;margin:0}
.users-edit-page .card-body{padding:20px}
.users-edit-page .field{box-sizing:border-box;width:100%;max-width:100%;min-height:44px}
.users-edit-page .field-hint{font-size:12px;line-height:1.65;color:#64748b;margin-top:7px}
.users-edit-page .label{font-size:13px;font-weight:600;line-height:1.5}
.users-edit-page #password-admin{scroll-margin-top:90px}
.users-edit-page #password-admin .card-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.users-edit-page #password-admin .card-body>p,.users-edit-page #password-admin .card-body>input[type=submit]{grid-column:1 / -1}
.users-edit-page #password-admin .card-body>*{margin-top:0!important;min-width:0}
.users-edit-page :is(.card-body,.card-header) svg{width:20px;height:20px;flex-shrink:0}
@media(max-width:640px){
 .users-edit-page .card-header,.users-edit-page .card-body{padding:16px}
 .users-edit-page #password-admin .card-body{grid-template-columns:minmax(0,1fr)}
 .users-edit-page .card-body .flex{flex-wrap:wrap}
}
:is(.owner-shell-yes,.agent-page) :is(.owner-content,.agent-content){min-width:0}
:is(.owner-shell-yes,.agent-page) :is(.owner-content,.agent-content) :is(.grid,.flex)>*{min-width:0}
:is(.owner-shell-yes,.agent-page) :is(.owner-content,.agent-content) .grid{gap:20px}
:is(.owner-shell-yes,.agent-page) :is(.owner-content,.agent-content)>:is(.space-y-5,.space-y-6,.space-y-7)>*+*{margin-top:24px}
:is(.owner-shell-yes,.agent-page) :is(.owner-content,.agent-content) .stat-card{padding:20px;min-height:126px;height:auto;overflow:visible}
:is(.owner-shell-yes,.agent-page) :is(.owner-content,.agent-content) .stat-label{line-height:1.6;white-space:normal}
:is(.owner-shell-yes,.agent-page) :is(.owner-content,.agent-content) .stat-value{line-height:1.4;white-space:normal;overflow-wrap:anywhere;font-size:clamp(20px,2vw,27px)}
:is(.owner-shell-yes,.agent-page) :is(.owner-content,.agent-content) :is(.card-body,.panel-body){padding:22px}
:is(.owner-shell-yes,.agent-page) :is(.owner-content,.agent-content) :is(.card-header,.panel-head,.page-header){height:auto;gap:16px;flex-wrap:wrap}
:is(.owner-shell-yes,.agent-page) :is(.owner-content,.agent-content) :is(p,h1,h2,h3,dd){overflow-wrap:anywhere}
:is(.owner-shell-yes,.agent-page) :is(.owner-content,.agent-content) :is(input.field,select.field){box-sizing:border-box;display:block;width:100%;min-width:0;max-width:100%;height:44px;min-height:44px;padding:10px 12px;font-size:14px;line-height:22px}
:is(.owner-shell-yes,.agent-page) :is(.owner-content,.agent-content) select.field{padding-right:32px;text-overflow:ellipsis}
:is(.owner-shell-yes,.agent-page) :is(.owner-content,.agent-content) .label{display:block;margin:0 0 8px;line-height:20px;white-space:normal}
:is(.owner-shell-yes,.agent-page) :is(.owner-content,.agent-content) form[method="get"].card-body{align-items:end;gap:16px}
:is(.owner-shell-yes,.agent-page) :is(.owner-content,.agent-content) form[method="get"] :is(.btn-primary,.btn-secondary){min-height:44px}
:is(.owner-shell-yes,.agent-page) :is(.owner-content,.agent-content) .balance-filter-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));align-items:start;gap:16px}
:is(.owner-shell-yes,.agent-page) :is(.owner-content,.agent-content) .balance-filter-fields>div{display:flex;flex-direction:column;min-width:0}
:is(.owner-shell-yes,.agent-page) :is(.owner-content,.agent-content) .balance-filter-fields .label{min-height:20px}
:is(.owner-shell-yes,.agent-page) :is(.owner-content,.agent-content) .balance-filter-actions{display:flex;flex-wrap:wrap;gap:12px;padding-top:18px;margin-top:18px;align-items:center}
.owner-shell-yes .owner-content .overflow-x-auto{min-width:0;max-width:100%;overscroll-behavior-inline:contain}
.owner-shell-yes .owner-content .table-base{width:100%}
.owner-shell-yes .owner-content .page-actions{display:flex;flex-wrap:wrap;gap:10px}
.owner-mobile-header{display:none}
.notification-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px;align-items:center}
.notification-detail{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}
.agent-dashboard .stats-grid{gap:20px;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))}
.agent-dashboard .stat-card{display:flex;align-items:flex-start;gap:14px;padding:22px;min-height:140px;height:auto}
.agent-dashboard .stat-card>div{min-width:0;flex:1}
.agent-dashboard .stat-card h2{font-size:11px;line-height:1.6;white-space:normal}
.agent-dashboard .stat-card strong{display:block;font-size:clamp(20px,2vw,27px);line-height:1.4;white-space:normal;overflow-wrap:anywhere;margin:8px 0}
.agent-dashboard .stat-card small{display:block;font-size:11px;line-height:1.6;white-space:normal}
.agent-dashboard :is(.card-heading,.rank-current,.rank-rate,.balance-detail){height:auto;flex-wrap:wrap;gap:14px}
.agent-dashboard :is(.device-row,.transaction-row){gap:12px;padding-block:18px}
.agent-dashboard .stat-card:last-child{grid-column:auto}
@media(max-width:1023px){
 .owner-mobile-header{display:flex;position:sticky;top:0;z-index:30;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #e2e8f0;background:#fff}
 .owner-mobile-header button,.owner-mobile-header a{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px}
 .owner-shell-yes .owner-content{padding:18px 14px 90px}
 .owner-shell-yes .owner-content>:is(.space-y-5,.space-y-6,.space-y-7){padding:0}
 .owner-shell-yes #mobile-menu{max-width:85vw}
}
@media(max-width:640px){
 :is(.owner-shell-yes,.agent-page) :is(.owner-content,.agent-content) .grid{gap:14px}
 :is(.owner-shell-yes,.agent-page) :is(.owner-content,.agent-content) :is(.card-body,.panel-body){padding:16px}
 :is(.owner-shell-yes,.agent-page) :is(.owner-content,.agent-content) .stat-card{padding:16px;min-height:124px}
 :is(.owner-shell-yes,.agent-page) :is(.owner-content,.agent-content) .balance-filter-fields{grid-template-columns:1fr;gap:16px}
 :is(.owner-shell-yes,.agent-page) :is(.owner-content,.agent-content) .page-header{flex-direction:column}
 :is(.owner-shell-yes,.agent-page) :is(.owner-content,.agent-content) .page-actions{width:100%}
 .agent-dashboard .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 .agent-dashboard .stat-card{padding:16px;flex-direction:column;min-height:160px}
 .agent-dashboard .stat-card strong{font-size:22px}
 .notification-actions>*{flex:1 1 auto;justify-content:center}
}
