/* Manager-specific additions. Core layout and components intentionally come from admin.css
   so the Manager workspace stays visually identical to the Admin workspace. */
.readonly-note{padding:10px 12px;border:1px solid #e4e9f2;background:#fafbfe;border-radius:12px;color:#6f7b91;font-size:10px;margin-bottom:14px}
.metric-list{display:grid;gap:9px}.metric-row{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #edf1f6}.metric-row:last-child{border-bottom:0}.metric-row span{font-size:10px;color:#77839a}.metric-row strong{font-size:12px}
.compact-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:15px}
.detail-pre{white-space:pre-wrap;word-break:break-word;font-size:10px;background:#0f1b35;color:#dbe5fa;padding:12px;border-radius:12px;max-height:260px;overflow:auto}
.scope-chip{display:inline-flex;padding:5px 8px;border-radius:999px;background:#eef1ff;color:#5262d8;font-size:9px;font-weight:800}
.manager-login .login-visual{background:linear-gradient(145deg,#0b1735,#162b59 58%,#393b86)}
.modern-field small{display:block;margin-top:5px;color:#7b879b;font-size:9px;line-height:1.45}
.payment-account-note{font-size:9px;color:#758198}
@media(max-width:760px){.compact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.readonly-note{font-size:9px}}
@media(max-width:480px){.compact-grid{grid-template-columns:1fr}}

/* Payment account delete zone: directly below page heading */
.payment-account-delete-zone{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 16px;padding:16px 18px;border:1px solid #f2cbd2;border-radius:16px;background:linear-gradient(135deg,#fff8f9,#fff3f5);box-shadow:0 8px 24px rgba(175,48,70,.06)}
.payment-account-delete-copy{display:grid;gap:3px;min-width:0}
.payment-account-delete-copy>span{font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#ca4057}
.payment-account-delete-copy>strong{font-size:13px;color:#7f2637}
.payment-account-delete-copy>small{font-size:9px;line-height:1.45;color:#93616b}
.payment-account-delete-zone .delete-account-btn{flex:0 0 auto;border:1px solid #e6aab5;background:#c83e53;color:#fff;box-shadow:0 7px 16px rgba(200,62,83,.18)}
.payment-account-delete-zone .delete-account-btn:hover{background:#b93449;border-color:#b93449}
@media(max-width:600px){
  .payment-account-delete-zone{display:block;padding:0;margin:0 0 10px;border:0;background:transparent;box-shadow:none}
  .payment-account-delete-copy{display:none}
  .payment-account-delete-zone .delete-account-btn{width:100%;min-height:36px;padding:8px 12px;border-radius:10px;font-size:10px;line-height:1.1;box-shadow:none}
  .payment-account-edit-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .payment-account-edit-actions .btn{width:100%;min-width:0}
}

/* Premium Manager Profile + Wallet */
.profile-premium-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:14px;padding:24px;border-radius:22px;background:linear-gradient(135deg,#0d1c3e 0%,#1a3266 54%,#5142a2 100%);color:#fff;box-shadow:0 20px 48px rgba(20,38,82,.2)}
.profile-premium-hero:before{content:"";position:absolute;width:330px;height:330px;border-radius:50%;right:-150px;top:-210px;background:radial-gradient(circle,rgba(167,145,255,.55),rgba(167,145,255,0) 68%)}
.profile-premium-hero:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;left:35%;bottom:-150px;background:rgba(69,210,190,.12);filter:blur(8px)}
.profile-hero-main,.profile-wallet-actions{position:relative;z-index:1}.profile-hero-main{display:flex;align-items:center;gap:17px;min-width:0}.profile-avatar-xl{width:72px;height:72px;flex:0 0 72px;border-radius:22px;display:grid;place-items:center;background:linear-gradient(135deg,#758dff,#9a67ef);font-size:28px;font-weight:900;box-shadow:0 14px 30px rgba(5,12,34,.25),inset 0 0 0 1px rgba(255,255,255,.2)}
.profile-identity{min-width:0}.profile-eyebrow,.profile-section-label{display:block;font-size:8px;text-transform:uppercase;letter-spacing:.13em;font-weight:900}.profile-eyebrow{color:#b9c8ed}.profile-identity h1{margin:5px 0 3px;font-size:25px;letter-spacing:-.04em}.profile-identity p{margin:0;color:#bdcae8;font-size:11px}.profile-meta-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}.profile-meta-row>span:not(.status-badge){padding:5px 8px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(255,255,255,.06);font-size:8px;color:#d8e1f5}.profile-meta-row .status-badge{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.14);color:#fff}
.profile-wallet-actions{display:grid;grid-template-columns:repeat(2,minmax(118px,1fr));gap:9px}.profile-action{border:1px solid rgba(255,255,255,.16);border-radius:15px;padding:12px 14px;color:#fff;text-align:left;cursor:pointer;min-height:76px;transition:.2s}.profile-action:hover{transform:translateY(-2px)}.profile-action.deposit{background:linear-gradient(135deg,rgba(40,201,155,.9),rgba(27,150,126,.9));box-shadow:0 12px 25px rgba(22,132,107,.24)}.profile-action.withdraw{background:linear-gradient(135deg,rgba(126,101,246,.95),rgba(91,73,205,.95));box-shadow:0 12px 25px rgba(76,59,183,.24)}.profile-action>span{float:right;font-size:20px;line-height:1}.profile-action strong,.profile-action small{display:block}.profile-action strong{font-size:12px}.profile-action small{font-size:8px;margin-top:4px;color:rgba(255,255,255,.72)}
.profile-wallet-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-bottom:15px}.profile-wallet-card{position:relative;overflow:hidden;min-height:116px;padding:16px;border:1px solid var(--line);border-radius:17px;background:#fff;box-shadow:var(--shadow-soft)}.profile-wallet-card:after{content:"";position:absolute;width:85px;height:85px;border-radius:50%;right:-36px;top:-40px;background:var(--wallet-accent,#dce6ff);opacity:.8}.profile-wallet-card span,.profile-wallet-card strong,.profile-wallet-card small{position:relative;z-index:1;display:block}.profile-wallet-card span{font-size:9px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.05em}.profile-wallet-card strong{font-size:19px;margin-top:12px;letter-spacing:-.04em}.profile-wallet-card small{font-size:8px;color:var(--muted);margin-top:6px}.primary-wallet{--wallet-accent:#dce7ff}.frozen-wallet{--wallet-accent:#ffe9c7}.commission-wallet{--wallet-accent:#d7f3e8}.month-wallet{--wallet-accent:#eadfff}
.profile-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.72fr);gap:15px}.profile-main-column,.profile-side-column{min-width:0}.profile-section-label{color:#6676d8;margin-bottom:4px}.profile-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--line);border-radius:14px;overflow:hidden}.profile-detail-grid>div{min-width:0;padding:13px 14px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fff,#fcfdff)}.profile-detail-grid>div:nth-child(2n){border-right:0}.profile-detail-grid>div.wide{grid-column:1/-1;border-right:0}.profile-detail-grid>div:nth-last-child(-n+2){border-bottom:0}.profile-detail-grid span{display:block;font-size:8px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.06em;margin-bottom:5px}.profile-detail-grid strong{display:block;font-size:10px;line-height:1.5;overflow-wrap:anywhere}.profile-security-icon{width:36px;height:36px;border-radius:11px;background:#eef1ff;color:#596be4;display:grid;place-items:center;font-size:18px}.profile-password-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;align-items:end}.profile-password-form .field{margin:0}.profile-password-form .field small{display:block;color:var(--muted);font-size:8px;margin-top:4px}.profile-password-action{grid-column:1/-1;display:flex;justify-content:flex-end}.profile-password-action .btn{min-width:150px}
.profile-network-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.profile-network-grid>div{padding:12px;border:1px solid var(--line);border-radius:12px;background:#fafbfe}.profile-network-grid span{display:block;font-size:8px;color:var(--muted);font-weight:700}.profile-network-grid strong{display:block;font-size:18px;margin-top:6px;letter-spacing:-.04em}.profile-activity-list{display:grid;gap:8px}.profile-activity-item{display:grid;grid-template-columns:9px minmax(0,1fr);gap:9px;padding:9px 0;border-bottom:1px solid var(--line)}.profile-activity-item:last-child{border-bottom:0}.profile-activity-item>i{width:8px;height:8px;border-radius:50%;background:#687af0;box-shadow:0 0 0 4px rgba(104,122,240,.1);margin-top:4px}.profile-activity-item strong,.profile-activity-item span,.profile-activity-item small{display:block}.profile-activity-item strong{font-size:9px}.profile-activity-item span{font-size:8px;color:var(--muted);margin-top:3px;line-height:1.45}.profile-activity-item small{font-size:7px;color:#a0a9b8;margin-top:4px}.profile-empty-activity{padding:20px 8px;text-align:center;color:var(--muted);font-size:9px}
@media(max-width:1100px){.profile-wallet-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-layout{grid-template-columns:1fr}.profile-side-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.profile-side-column .card{margin-bottom:0}.profile-activity-card{grid-column:1/-1}}
@media(max-width:760px){.profile-premium-hero{display:block;padding:18px;border-radius:18px}.profile-wallet-actions{margin-top:15px;grid-template-columns:repeat(2,minmax(0,1fr))}.profile-action{min-height:62px;padding:10px 12px}.profile-avatar-xl{width:58px;height:58px;flex-basis:58px;border-radius:18px;font-size:22px}.profile-identity h1{font-size:20px}.profile-meta-row>span:not(.status-badge){display:none}.profile-wallet-grid{gap:8px}.profile-wallet-card{min-height:100px;padding:13px}.profile-wallet-card strong{font-size:16px}.profile-password-form{grid-template-columns:1fr}.profile-password-action{grid-column:auto}.profile-password-action .btn{width:100%}.profile-side-column{grid-template-columns:1fr}.profile-activity-card{grid-column:auto}.profile-detail-grid{grid-template-columns:1fr}.profile-detail-grid>div,.profile-detail-grid>div:nth-child(2n),.profile-detail-grid>div.wide{grid-column:auto;border-right:0}.profile-detail-grid>div:nth-last-child(-n+2){border-bottom:1px solid var(--line)}.profile-detail-grid>div:last-child{border-bottom:0}}
@media(max-width:430px){.profile-wallet-grid{grid-template-columns:1fr 1fr}.profile-wallet-card{min-height:94px;padding:12px}.profile-wallet-card span{font-size:7px}.profile-wallet-card strong{font-size:14px}.profile-wallet-card small{font-size:7px}.profile-wallet-actions{gap:7px}.profile-action strong{font-size:10px}.profile-action small{display:none}.profile-hero-main{align-items:flex-start}.profile-identity p{max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
/* Manager scoped detail pages */
.mgr-view-hero{background:linear-gradient(135deg,#0d1b46,#17295f);color:#fff;border-radius:26px;padding:24px;margin-bottom:22px;box-shadow:0 18px 45px rgba(15,29,72,.18)}
.mgr-view-hero-top{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.mgr-view-hero h1{margin:6px 0 4px;font-size:30px;line-height:1.1}.mgr-view-hero p{margin:0;color:rgba(255,255,255,.72)}
.mgr-badge-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.mgr-badge-row .status-badge{display:inline-flex!important;width:auto!important;min-height:0!important;padding:7px 11px!important;border-radius:999px!important;font-size:12px!important}
.mgr-view-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}.mgr-view-actions .btn{white-space:nowrap}
.mgr-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:20px}.mgr-detail-card{min-width:0}.mgr-detail-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}.mgr-detail-item{padding:14px 0;border-bottom:1px solid #edf0f7;min-width:0}.mgr-detail-item span{display:block;color:#7c879f;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;margin-bottom:6px}.mgr-detail-item strong,.mgr-detail-item code{display:block;color:#172033;font-size:14px;overflow-wrap:anywhere}.mgr-pre{background:#0d1428;color:#dfe7ff;border-radius:16px;padding:16px;white-space:pre-wrap;overflow:auto;max-height:420px;font:12px/1.65 ui-monospace,SFMono-Regular,Menlo,monospace}.mgr-note{padding:14px 16px;background:#f5f7ff;border:1px solid #e4e9fb;border-radius:15px;color:#64708a;font-size:13px}.mgr-section-gap{margin-top:20px}.mgr-raw{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}
@media(max-width:760px){.mgr-view-hero{padding:19px;border-radius:22px}.mgr-view-hero-top{display:block}.mgr-view-hero h1{font-size:25px}.mgr-view-actions{justify-content:flex-start;margin-top:16px}.mgr-view-actions .btn{flex:1 1 auto}.mgr-detail-grid{grid-template-columns:1fr;gap:14px}.mgr-detail-list{grid-template-columns:1fr}.mgr-badge-row{gap:6px}.mgr-badge-row .status-badge{padding:6px 9px!important;font-size:11px!important}}

/* Unified responsive detail-page polish */
.mgr-view-hero,.mgr-view-hero *{box-sizing:border-box}
.mgr-view-hero-top>div:first-child{min-width:0;max-width:100%}
.mgr-view-hero h1{max-width:100%;overflow-wrap:anywhere;word-break:break-word}
.mgr-view-hero p{max-width:760px;overflow-wrap:anywhere;word-break:break-word;line-height:1.55}
.mgr-view-actions{flex:0 0 auto}
.mgr-view-actions .btn{min-width:108px}
.mgr-detail-grid>.card,.content-grid>.card{min-width:0}
.mgr-detail-grid .card-header h3,.content-grid .card-header h3{margin:3px 0 0;font-size:18px;line-height:1.25;letter-spacing:-.025em}
.mgr-detail-grid .card-header span,.content-grid .card-header span{display:block;color:#6878d5;font-size:10px;font-weight:900;letter-spacing:.11em;text-transform:uppercase}
.mgr-detail-list{border:1px solid #e9edf5;border-radius:16px;overflow:hidden;gap:0;background:#fbfcff}
.mgr-detail-item{padding:14px 16px;border-bottom:1px solid #e9edf5;background:#fff}
.mgr-detail-item:nth-child(odd){border-right:1px solid #e9edf5}
.mgr-detail-item:nth-last-child(-n+2){border-bottom:0}
.mgr-detail-item span{margin-bottom:7px;font-size:10px;line-height:1.25}
.mgr-detail-item strong,.mgr-detail-item code{font-size:14px;line-height:1.5;font-weight:750;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
.mgr-detail-item .status-badge{display:inline-flex!important;width:auto!important}

/* Legacy payment-account detail markup upgraded to the same system */
.detail-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #e9edf5;border-radius:16px;overflow:hidden;background:#fbfcff}
.detail-list>div{min-width:0;padding:14px 16px;border-bottom:1px solid #e9edf5;background:#fff}
.detail-list>div:nth-child(odd){border-right:1px solid #e9edf5}
.detail-list>div:nth-last-child(-n+2){border-bottom:0}
.detail-list>div>span{display:block;margin-bottom:7px;color:#7c879f;font-size:10px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;line-height:1.25}
.detail-list>div>strong{display:block;color:#172033;font-size:14px;line-height:1.5;overflow-wrap:anywhere;word-break:break-word}
.detail-list>div>.status-badge{display:inline-flex!important;width:auto!important}
.capacity-block{padding:15px 0;border-bottom:1px solid #edf0f7}.capacity-block:last-of-type{border-bottom:0}
.capacity-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:9px}
.capacity-head>div{min-width:0}.capacity-head span{display:block;color:#7c879f;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;margin-bottom:5px}.capacity-head strong{display:block;font-size:13px;line-height:1.45;overflow-wrap:anywhere}.capacity-head>b{font-size:13px;color:#5f6ed7;white-space:nowrap}
.usage-bar.large{height:9px;border-radius:999px;background:#edf1f7;overflow:hidden}.usage-bar.large i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#5d72eb,#8669ef)}

/* Summary and related-record consistency */
.stats-grid>*{min-width:0}.stat-card strong{overflow-wrap:anywhere;word-break:break-word;line-height:1.2}
.metric-row{gap:14px}.metric-row>div{min-width:0}.metric-row strong,.metric-row small{overflow-wrap:anywhere;word-break:break-word}.metric-row>div:last-child{min-width:0;text-align:right}
.mgr-pre{max-width:100%;overflow-x:auto;overflow-wrap:anywhere;word-break:break-word}
.mgr-note,.readonly-note{overflow-wrap:anywhere;word-break:break-word;line-height:1.55}
.card{min-width:0}.table-scroll{max-width:100%}

@media(max-width:760px){
  .mgr-view-hero{padding:18px 17px;margin-bottom:14px;border-radius:18px}
  .mgr-view-hero h1{font-size:21px;line-height:1.2;margin-top:5px}
  .mgr-view-hero p{font-size:11px;line-height:1.45}
  .mgr-view-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;margin-top:14px}
  .mgr-view-actions .btn{width:100%;min-width:0;min-height:40px;padding:8px 10px}
  .mgr-view-actions .btn:only-child{grid-column:1/-1}
  .mgr-detail-grid{margin-bottom:12px}
  .mgr-detail-grid .card-header h3,.content-grid .card-header h3{font-size:17px}
  .mgr-detail-list,.detail-list{grid-template-columns:1fr;border-radius:14px}
  .mgr-detail-item,.detail-list>div{padding:13px 14px;border-right:0!important;border-bottom:1px solid #e9edf5!important}
  .mgr-detail-item:last-child,.detail-list>div:last-child{border-bottom:0!important}
  .mgr-detail-item span,.detail-list>div>span{font-size:9px;margin-bottom:5px}
  .mgr-detail-item strong,.mgr-detail-item code,.detail-list>div>strong{font-size:13px;line-height:1.48}
  .compact-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}
  .compact-grid .stat-card{min-height:118px;padding:13px}
  .compact-grid .stat-card strong{font-size:17px}
  .capacity-head{align-items:flex-start}.capacity-head strong{font-size:12px}
  .metric-row{align-items:flex-start;flex-direction:column;gap:7px}
  .metric-row>div:last-child,.metric-row>span{text-align:left;width:100%}
  .mgr-pre{font-size:10px;line-height:1.55;padding:13px;border-radius:13px;max-height:330px}
}
@media(max-width:420px){
  .mgr-view-hero h1{font-size:19px}
  .mgr-badge-row .status-badge{font-size:9px!important;padding:5px 8px!important}
  .compact-grid .stat-card{min-height:106px;padding:11px}
  .compact-grid .stat-card strong{font-size:15px}
  .compact-grid .stat-card small{font-size:8px}
}

/* Manager dashboard polish */
.manager-dashboard-hero{margin-bottom:14px}
.manager-quick-card{margin-bottom:15px;padding:15px 16px;border:1px solid var(--line);border-radius:17px;background:var(--panel);box-shadow:var(--shadow-soft)}
.manager-quick-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.manager-quick-head span{display:block;color:#6474d8;font-size:9px;font-weight:900;letter-spacing:.11em;text-transform:uppercase}
.manager-quick-head h3{margin:4px 0 0;font-size:15px;letter-spacing:-.025em}
.manager-quick-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}
.manager-quick-grid a{display:flex;min-width:0;min-height:72px;flex-direction:column;justify-content:center;padding:11px 12px;border:1px solid #e7ebf4;border-radius:14px;background:linear-gradient(180deg,#fff,#fafbff);transition:.2s ease}
.manager-quick-grid a:hover{transform:translateY(-2px);border-color:#ccd4f7;box-shadow:0 10px 24px rgba(45,63,120,.08)}
.manager-quick-grid b{color:#172033;font-size:11px;line-height:1.3;overflow-wrap:anywhere}
.manager-quick-grid small{margin-top:5px;color:#7b879d;font-size:8px;line-height:1.4}
@media(max-width:1100px){.manager-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
  .manager-dashboard-hero{margin-bottom:10px}
  .manager-quick-card{padding:12px;margin-bottom:10px;border-radius:14px}
  .manager-quick-head{margin-bottom:9px}
  .manager-quick-head h3{font-size:14px}
  .manager-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  .manager-quick-grid a{min-height:64px;padding:9px 8px;border-radius:12px;text-align:center}
  .manager-quick-grid b{font-size:9px}
  .manager-quick-grid small{display:none}
}
@media(max-width:390px){.manager-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Merchant pricing-focused dashboard and profile */
.merchant-pricing-hero .hero-grid{grid-template-columns:1.35fr repeat(4,.58fr)}
.merchant-pricing-hero .fee-mini strong{font-size:21px}
.pricing-limit-grid .stat-card strong{font-size:16px;line-height:1.25;overflow-wrap:anywhere}
.merchant-pricing-wallet-grid .profile-wallet-card strong{white-space:nowrap}
@media(max-width:1180px){
  .merchant-pricing-hero .hero-grid{grid-template-columns:1.25fr repeat(2,.75fr)}
  .merchant-pricing-hero .hero-copy{grid-row:span 2}
}
@media(max-width:760px){
  .merchant-pricing-hero .hero-grid{grid-template-columns:1fr 1fr}
  .merchant-pricing-hero .hero-copy{grid-column:1/-1;grid-row:auto}
  .merchant-pricing-hero .hero-mini{min-width:0}
  .merchant-pricing-hero .hero-mini strong{font-size:16px;overflow-wrap:anywhere}
  .pricing-limit-grid .stat-card strong{font-size:14px}
}
@media(max-width:430px){
  .merchant-pricing-wallet-grid .profile-wallet-card strong{font-size:13px}
  .merchant-pricing-wallet-grid .profile-wallet-card small{line-height:1.35}
}
