/* Narrow-screen consoles use the same transaction forms and role permissions as desktop. */
@media screen and (max-width:760px){
 body:has(.phone-shell){background:#f2f6f7}
 .phone-shell{--ink:#182f40;--dim:#536c79;--teal:#007b73;--edge:#d4e2e4;--nav:calc(62px + env(safe-area-inset-bottom,0px));background:#f2f6f7;color:var(--ink);font:16px/1.5 "Microsoft YaHei UI","PingFang SC",sans-serif;min-height:100dvh;overflow-wrap:anywhere;color-scheme:light}
 .phone-shell{height:100vh;height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
 .phone-shell .ph-header{flex:none}.phone-shell .ph-header small{color:#d8e5e9}
 .phone-shell [hidden]{display:none!important}
 .phone-shell :where(svg){width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;flex:none}
 .phone-shell .ph-header{min-height:62px;background:#152e40;color:#fff;padding:8px 16px;display:flex;align-items:center;gap:10px}
 .ph-header img{width:36px;height:36px;border-radius:50%;object-fit:contain;background:white}.ph-header>div{min-width:0;display:flex;align-items:center;gap:8px;flex:1}.ph-header b{font-size:19px;white-space:nowrap}.ph-header small{border-left:1px solid #61737f;padding-left:8px;color:#dae4ed;font-size:13px;line-height:1.25}
 .ph-header>span{white-space:nowrap;padding:4px 7px;background:#2b4355;border-radius:7px;font-size:13px}.phone-shell .ph-menu{border:0;color:white;background:transparent;min-width:44px;padding:7px;display:grid;place-items:center}
 .ph-main{width:100%;max-width:620px;min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;margin:0 auto;padding:16px;scroll-padding:12px}
 .ph-heading{margin-bottom:14px}.phone-shell .ph-heading h1{font-size:30px;color:var(--ink);line-height:1.25;margin:2px 0 4px;letter-spacing:-.7px}.ph-heading p{margin:4px 0;color:var(--dim)}
 .phone-shell button{white-space:normal;min-height:44px;line-height:1.3;border:1px solid var(--edge);border-radius:11px;padding:10px 13px;background:white;color:var(--ink);font-size:16px;box-shadow:none}
 .phone-shell .primary,.phone-shell button.primary{background:var(--teal);color:white;border-color:var(--teal)}.phone-shell button:hover{filter:none}.phone-shell button:active{filter:brightness(.94)}.phone-shell button:focus-visible,.phone-shell summary:focus-visible{outline:3px solid #208a99}
 .phone-shell .ph-back,.phone-shell .ph-text{background:transparent;border:0;color:var(--teal);text-align:left;padding:4px 0}.phone-shell .ph-back{color:var(--dim);font-size:14px;min-height:36px}
 .phone-shell #content,.ph-group,.ph-card{min-width:0}.phone-shell #content{display:grid;gap:13px}.phone-shell .ph-card,.phone-shell .panel,.phone-shell .project-card{padding:15px;border-radius:15px;border:1px solid var(--edge);background:white;color:var(--ink);margin:0;box-shadow:none;min-width:0}
 .ph-group{display:grid;gap:8px}.phone-shell h2,.phone-shell .panel-head h2{font-size:19px;line-height:1.35;margin:0 0 7px;color:var(--ink)}.phone-shell h3{font-size:17px}.ph-group>h2{margin:0}
 .ph-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.phone-shell .ph-tile{display:grid;justify-items:center;align-content:center;gap:8px;min-height:91px;padding:10px 4px;background:#fff;font-size:15px}
 .ph-tile i,.ph-thumb{display:grid;place-items:center;color:#096b64;background:#e0f2eb;border-radius:12px;width:38px;height:38px}.ph-tile:nth-child(3n+2) i,.ph-tile[data-tab="member-search"] i{color:#36678e;background:#e7eefb}.ph-tile[data-tab="card-sale"] i,.ph-tile[data-tab="register"] i{color:#97651d;background:#fbefd6}.ph-tile[data-tab="admission"] i,.ph-tile[data-tab="issue"] i{color:#6b5792;background:#ede8f7}
 .phone-shell .ph-nav,.phone-shell .ph-dock{position:relative;z-index:1;flex:none;background:#fff;box-sizing:border-box;display:flex;gap:7px;align-items:center;justify-content:center;border-top:1px solid var(--edge)}
 .phone-shell .ph-nav{bottom:0;min-height:var(--nav);padding:3px 8px calc(4px + env(safe-area-inset-bottom,0px))}
 .phone-shell .ph-nav button{border:0;display:grid;justify-items:center;gap:2px;align-content:center;color:#5e707b;flex:1 1 0;max-width:154px;min-height:51px;padding:4px 0;font-size:13px;border-radius:9px}
 .phone-shell .ph-nav [aria-current]{background:#e8f5f0;color:#00675f}
 .phone-shell .ph-dock{bottom:auto;min-height:72px;padding:9px max(14px,calc((100vw - 590px)/2));box-shadow:0 -4px 14px #183f4b09}
 .phone-shell .ph-dock>button{flex:1;min-height:49px;font-weight:700}.ph-dock .ph-amount{flex:1}
 .phone-shell .ph-dock.with-confirm{display:grid;grid-template-columns:1fr;gap:2px;padding-top:4px}
 .phone-shell .ph-dock.with-confirm .check{min-height:39px;margin:0;font-size:14px;line-height:1.35;text-align:left}
 .ph-amount,.ph-profile>div,.ph-row>div:first-child{display:grid;align-content:center;gap:1px}.ph-amount strong,.ph-product strong,.ph-row>strong,.ph-choice strong{color:#006e66;font-variant-numeric:tabular-nums}.ph-amount strong{font-size:23px}
 .phone-shell[data-phone-tab="member-enroll"] #staff-member-enroll>button.primary,.phone-shell[data-phone-tab="member-enroll"] .panel-head,.phone-shell[data-phone-tab="member-enroll"] .panel-head+p{display:none}
 .ph-camera{border:1px dashed #8eb6af;border-radius:13px;display:grid;justify-items:center;gap:8px;margin:15px 0;padding:12px;background:#eff8f4}.ph-camera>svg{width:40px;height:40px;color:#06776d}.phone-shell .ph-count{display:grid;grid-template-columns:46px 1fr 46px;gap:7px;margin:6px 0 13px}.ph-count input{text-align:center}
 .ph-amount small,.phone-shell small,.ph-note{font-size:14px;color:var(--dim)}.phone-shell .ph-note{padding:12px;margin:0;background:#e8f1f2;border-radius:11px}
 .ph-row,.ph-pair,.ph-profile{display:flex;justify-content:space-between;align-items:center;gap:10px}.ph-row,.ph-pair{padding:9px 0}.ph-row+.ph-row,.ph-pair+.ph-pair{border-top:1px solid #e3ecee}.ph-row>div,.ph-pair>*{min-width:0}.ph-pair b{text-align:right}.ph-profile{padding:15px;background:#e3f2ed;border:1px solid #c4e1d8;border-radius:14px}.ph-profile .ph-amount{text-align:right}
 .phone-shell :is(input:not([type=checkbox]):not([type=radio]),select,textarea){display:block;min-width:0;max-width:100%;width:100%;min-height:47px;border:1px solid #b7cbd2;background:#fafcfc;color:var(--ink);font-size:17px;border-radius:10px;padding:9px 11px}
 .phone-shell :is(input[type=radio],input[type=checkbox]){accent-color:var(--teal);width:20px;height:20px;min-height:0;flex:none}
 .phone-shell .ph-lookup{display:flex;gap:8px}.ph-lookup input{flex:1}.phone-shell .ph-scan{margin-top:10px;display:flex;gap:8px;align-items:center;color:var(--teal)}
 .phone-shell .ph-pay{display:grid;gap:8px;margin:8px 0 15px}.ph-pay label,.phone-shell .check{display:flex;align-items:center;gap:9px;color:var(--ink);font-size:16px;min-height:44px}.ph-pay label{padding:10px 12px;background:#f5f9f8;border-radius:10px}.ph-pay small{margin-left:auto}
 .ph-pills,.ph-tools,.ph-page,.ph-period{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.ph-page{justify-content:space-between}.ph-tools button{flex:1 1 40%}
 .phone-shell .ph-pills button,.phone-shell .ph-period button{padding:8px 12px}.phone-shell :is(.ph-pills,.ph-period) :is(.active,.on),.phone-shell .ph-choice.on{color:#006860;border-color:#589f95;background:#e4f4ee}.ph-period button{flex:1 0 20%}
 .phone-shell .ph-product{display:flex;flex-direction:row;align-items:center;gap:10px;min-height:78px;padding:9px 0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none}
 .ph-product+.ph-product{border-top:1px solid #e1e9e9}.ph-product>img,.ph-product>.ph-thumb{width:52px;height:52px;border-radius:10px;object-fit:cover;flex:none}.ph-product>div:nth-child(2){min-width:0;flex:1;display:grid;text-align:left}.ph-product small{font-size:13px}.ph-qty{display:flex;align-items:center;gap:2px}.phone-shell .ph-qty button{min-width:44px;min-height:44px;padding:7px;background:#e7f4ef;color:#006d65;font-size:19px}
 .ph-steps{display:flex;gap:5px}.ph-steps span{flex:1;text-align:center;background:#e4ebed;border-radius:8px;padding:7px 1px;font-size:13px;color:#546875}.ph-steps .on{background:#d4eee4;color:#00685f;font-weight:700}
 .phone-shell .ph-choice,.phone-shell .ph-entry,.phone-shell .ph-bar-btn{display:flex;width:100%;align-items:center;gap:12px;text-align:left;min-height:58px;margin-bottom:7px}.ph-choice>span{flex:1}.ph-choice>b{font-size:22px}
 .phone-shell .ph-feature,.phone-shell .ph-success,.phone-shell .ph-error{padding:21px 16px;border-radius:15px;background:linear-gradient(120deg,#006a67,#008579);color:white}
 .ph-feature .ph-amount strong{font-size:34px;color:white}.ph-feature small{color:#e2fff7}.phone-shell .ph-success{text-align:center;background:#e0f3e9;color:#076747}.ph-success svg{width:40px;height:40px}.phone-shell .ph-success h2,.phone-shell .ph-error h2{color:inherit}.ph-success p{color:#3c695b;margin:5px 0}.phone-shell .ph-error{background:#fff1e8;color:#9c3e22}
 .ph-kpis{display:grid;grid-template-columns:1fr 1fr;gap:9px}.ph-kpis .ph-card{text-align:left}.phone-shell .ph-bar-btn{display:block;border:0;padding:0 0 6px;margin:0}.ph-bar{height:7px;border-radius:5px;background:#deeaeb;display:block}.ph-bar i{display:block;height:100%;border-radius:5px;background:#00887b}
 .phone-shell .ph-outline{width:100%;border-color:#368c82;color:#006d64}.phone-shell .ph-entry{justify-content:space-between}.phone-shell .ph-card summary{min-height:44px;cursor:pointer;align-content:center;font-weight:650}
 .phone-shell .ph-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ph-dates button{grid-column:1/-1}
 .phone-shell :is(.grid,.project-grid,.card-sales-grid,.form-grid,.voucher-layout,.voucher-scan-grid,.dash-layout,.business-filter,.export-member-filter,.card-product-choices,.metrics,.analytics-filter){display:grid;grid-template-columns:minmax(0,1fr);gap:12px;width:100%;min-width:0}
 .phone-shell :is(.staff-workspace,.project-card,.media-form,.panel-head,.field,.voucher-help,.voucher-member-search,.member-search-bar,.voucher-modes,.inline,.stack,.card-channel-status,.business-tabs,.camera-actions){min-width:0;max-width:100%}
 .phone-shell .panel-head,.phone-shell .inline,.phone-shell .stack,.phone-shell .voucher-code-line{flex-wrap:wrap;gap:8px}
 .phone-shell .inline input{flex:1 1 160px}.phone-shell .voucher-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.phone-shell .voucher-modes button{padding:8px 2px;min-height:46px}.phone-shell .voucher-modes strong{font-size:15px}.phone-shell .voucher-modes button span{display:none}
 .phone-shell .panel :is(p,small){overflow-wrap:anywhere}.phone-shell .field{margin:8px 0 13px}.phone-shell .member-gender-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.phone-shell .member-gender-options label{padding:3px}.phone-shell .member-gender-options span{font-size:15px}
 .phone-shell .member-photo{display:grid;grid-template-columns:76px 1fr;align-items:center;gap:2px 10px;justify-items:start}.phone-shell .member-photo-frame{width:76px;height:76px;min-width:0;grid-row:span 2}.phone-shell .member-photo-actions{display:flex;flex-wrap:wrap;gap:4px}.phone-shell .member-photo-frame :is(img,video){width:100%;height:100%;object-fit:cover}
 .phone-shell video{width:100%;max-height:55vh;background:#182f40;border-radius:12px}.phone-shell .result{border-radius:13px;background:#ebf7f1;color:#175b4a}
 .phone-shell .table-wrap{width:100%;overflow:visible;min-width:0}.phone-shell table,.phone-shell tbody,.phone-shell tr{display:block;width:100%;min-width:0}.phone-shell thead{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.phone-shell tbody tr{padding:9px 10px;margin:9px 0;border:1px solid var(--edge);border-radius:12px;background:#fff}
 .phone-shell tbody td{display:grid;grid-template-columns:minmax(68px,29%) minmax(0,1fr);gap:3px 8px;white-space:normal;min-width:0;padding:5px 0;color:var(--ink);font-size:15px;border:0;overflow-wrap:anywhere;line-height:1.4}.phone-shell td:before{content:attr(data-label);grid-column:1;color:var(--dim);font-size:13px}.phone-shell td>*{grid-column:2}.phone-shell td small{font-size:13px}
 .phone-shell .panel+.panel{margin-top:12px}.phone-shell .dash-panel{padding:12px;min-width:0}.phone-shell .dash-trend{stroke:none;fill:initial;width:100%;height:auto}.phone-shell .dash-chart-scroll{overflow:auto}.phone-shell .dash-stats{display:grid;grid-template-columns:minmax(0,1fr)}.phone-shell .dash-stat{min-width:0}.phone-shell .staff-project-visual{max-width:100%}
 body:has(.phone-shell) dialog[open]{box-sizing:border-box;max-width:min(95vw,540px);max-height:88dvh;overflow:auto;padding:19px;border-radius:18px;background:white;color:#182f40}
 body:has(.phone-shell) dialog :is(input,select,textarea){max-width:100%;font-size:16px}body:has(.phone-shell) dialog button{white-space:normal;min-height:44px}body:has(.phone-shell) dialog .ph-feature{background:#e1f4eb;padding:11px;border-radius:10px;color:#05665f;font-weight:700}
 body:has(.phone-shell) #toast{pointer-events:none;max-width:calc(100vw - 22px);bottom:calc(138px + env(safe-area-inset-bottom));white-space:normal}
 body:has(#login-form),body:has(#change-initial-password){background:#f2f6f7;color:#182f40}
 .landing:has(#login-form),.landing:has(#change-initial-password){padding:22px 16px}.landing:has(#login-form) .brand,.landing:has(#change-initial-password) .brand{background:#152e40;border-radius:15px;padding:12px;color:white}
 .landing:has(#login-form) :is(.hero,.hero h1,p),.landing:has(#change-initial-password) :is(.hero,.hero h1,p){background:transparent;color:#253e4f}.landing:has(#login-form) .eyebrow{color:#3f6667}.landing :is(#login-form,#change-initial-password){background:white;color:#182f40;border-color:#ccdedf}.landing :is(#login-form,#change-initial-password) :is(label,small){color:#405c69}.landing :is(#login-form,#change-initial-password) :is(input,select){background:#f8fbfb;color:#182f40;border-color:#b7cbd2;font-size:17px;min-height:48px}.landing :is(#login-form,#change-initial-password) .primary{color:white;background:#007b73;border-color:#007b73;min-height:48px}
}
@media print{
 body:has(.voucher-print) > :not(dialog){display:none!important}
 body:has(.voucher-print) dialog[open]{position:static;display:block;width:auto;max-width:78mm;max-height:none;padding:2mm;border:0;color:black;background:white;overflow:visible}
 body:has(.voucher-print) dialog button{display:none!important}.voucher-print .ph-pair{display:flex;justify-content:space-between;gap:5mm;padding:1mm 0;overflow-wrap:anywhere}.voucher-print .ph-pair b{text-align:right}
}
