/* UI v9: optimized visual consistency, better spacing, enhanced feedback. */
:root{--ui-ink:#172b4d;--ui-muted:#53657e;--ui-blue:#1d4ed8;--ui-navy:#123b67;--ui-line:#dce4ef;--ui-soft:#f4f7fb;--ui-radius:12px;--ui-viewport-height:100dvh;--ui-viewport-top:0px;--ui-success:#059669;--ui-danger:#dc2626;--ui-warning:#d97706;--ui-shadow-sm:0 1px 3px rgba(0,0,0,0.08),0 1px 2px rgba(0,0,0,0.06);--ui-shadow-md:0 4px 12px rgba(0,0,0,0.1),0 2px 4px rgba(0,0,0,0.06);--ui-shadow-lg:0 24px 70px #12304c26;color-scheme:light}
html{scroll-padding-top:90px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
html body{zoom:1!important;min-width:0;margin:0;background:var(--ui-soft);font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;font-size:15px;line-height:1.6;color:var(--ui-ink);overflow-x:visible!important}
body,button,input,select,textarea{font-family:inherit}
button,a,input,select,textarea,[role=button]{-webkit-tap-highlight-color:transparent}
button,a[onclick],[role=button]{touch-action:manipulation}
button:focus-visible,a:focus-visible,[tabindex]:focus-visible,summary:focus-visible{outline:3px solid #93b4ff;outline-offset:3px}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #dbeafe!important;border-color:var(--ui-blue)!important;box-shadow:none!important}
button:disabled{cursor:not-allowed;opacity:.48}
input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{font-size:15px!important;line-height:1.5;min-height:42px;border-radius:8px!important;border-color:#cbd7e6!important;padding:9px 12px;max-width:100%;color:var(--ui-ink)}
input[type=checkbox],input[type=radio]{width:19px;height:19px;accent-color:var(--ui-blue);vertical-align:middle;flex-shrink:0}
textarea{min-height:96px;resize:vertical;white-space:pre-wrap}
label{line-height:1.55}
.ui-small{font-size:13px!important;line-height:1.6!important}
.ui-wrap-text{white-space:normal!important;overflow-wrap:anywhere;min-width:0}
.ui-text-muted{color:var(--ui-muted)!important}
#mainTopbar{background:#fff;color:var(--ui-navy);padding:16px 28px;min-height:76px;gap:18px;box-shadow:0 1px 0 var(--ui-line);border-top:4px solid var(--ui-navy);align-items:center;z-index:100}
#mainTopbar h1{font-size:20px;letter-spacing:.3px;font-weight:750;display:flex;align-items:center;flex-wrap:wrap;gap:10px;line-height:1.4;min-width:0}
#roleBadge{font-size:13px!important;line-height:1.5!important;background:#eaf1ff!important;color:#214b85!important;margin-left:0!important;padding:4px 10px!important;border-radius:6px!important}
#mainTopbar .actions{flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px}
#mainTopbar button{background:#fff;color:#365171;border:1px solid var(--ui-line);padding:8px 13px;font-size:14px;min-height:38px;white-space:nowrap}
#mainTopbar button:hover{background:#edf3ff;color:var(--ui-blue)}
#mainContainer{width:100%;max-width:1920px;margin:0 auto;padding:0 28px 40px;min-width:0}
#mainContainer>.tab-nav{border-bottom:1px solid var(--ui-line);background:transparent;gap:6px;padding:14px 0 0;flex-wrap:wrap}
#mainContainer .tab-nav .tab{font-size:15px;padding:12px 18px;min-height:48px;color:#52647d;border-radius:8px 8px 0 0;border-bottom:3px solid transparent;white-space:nowrap}
#mainContainer .tab-nav .tab.active{color:var(--ui-blue);border-bottom-color:var(--ui-blue);background:#e9f0ff;font-weight:700}
#mainContainer .sub-tab-nav,.ui-subnav{border-bottom:1px solid var(--ui-line)!important;gap:6px!important;flex-wrap:wrap;min-width:0}
#mainContainer .sub-tab{font-size:15px!important;padding:11px 16px!important;min-height:44px;line-height:1.4!important;color:#53657e!important;white-space:nowrap;border-radius:7px 7px 0 0}
#mainContainer .sub-tab.active{color:var(--ui-blue)!important;border-bottom:3px solid var(--ui-blue)!important;background:#edf3ff!important;font-weight:700!important}
.ui-event-bar{background:#fff!important;border:1px solid var(--ui-line)!important;border-left:4px solid var(--ui-blue)!important;padding:15px 18px!important;border-radius:10px!important;gap:12px!important}
.ui-event-bar>span:first-child{color:var(--ui-navy)!important;font-size:15px!important}
#globalEvent,#archEventSelect{min-width:240px!important;max-width:min(100%,580px)!important;flex:0 1 580px;font-size:15px!important;font-weight:650!important}
#globalEventInfo,#archEventInfo{color:var(--ui-muted)!important;font-size:13px!important;line-height:1.6}
h2{font-size:21px;line-height:1.4;color:var(--ui-navy)}
#mainContainer h2{font-size:20px!important}
#mainContainer h3{font-size:17px!important;line-height:1.5}
.filters{padding:16px!important;gap:10px!important;box-shadow:none;border:1px solid var(--ui-line);border-radius:10px;margin-bottom:18px;min-width:0}
.filters input{min-width:180px;flex:1 1 220px}
.filters select{max-width:100%;flex:0 1 auto}
.filters .op-btn{margin:0!important}
.op-btn,.btn,.rt-act-btn,.cand-act-btn{font-size:14px!important;line-height:1.4!important;padding:9px 13px!important;min-height:38px;border-radius:7px!important;margin-right:4px;white-space:nowrap;font-weight:550;transition:all .15s ease}
.op-btn:hover,.btn:not(:disabled):hover{transform:translateY(-1px);box-shadow:var(--ui-shadow-sm)}
.op-btn:active,.btn:active{transform:translateY(0)}
.op-add,.btn-save{background:var(--ui-blue)!important;color:#fff!important;border-color:var(--ui-blue)!important}
.op-add:hover,.btn-save:hover{background:#1e40af!important;border-color:#1e40af!important}
.op-edit{background:#edf3ff;color:#244fb6}
.op-pay{background:#e6f5ef;color:#096649}
.op-del{background:#fef2f2;color:#dc2626;border:1px solid #fecaca}
.op-del:hover{background:#fee2e2;color:#b91c1c;border-color:#fca5a5}
.op-warn,.op-unpay{background:#fff5e5;color:#965b0c}
.stat-card,.breakdown-section{border:1px solid var(--ui-line);box-shadow:var(--ui-shadow-sm);border-radius:10px}
.stats{gap:16px;grid-template-columns:repeat(auto-fit,minmax(155px,1fr))}
.stat-card{padding:17px 20px;min-width:0}
.stat-card .num{font-size:29px;line-height:1.3;color:var(--ui-navy);font-variant-numeric:tabular-nums}
.stat-card .label{font-size:14px;color:var(--ui-muted);margin-top:6px}
.bd-card .bd-label,.bd-card .bd-paid,.bd-card .bd-unpaid{font-size:13px;line-height:1.6}
.breakdown-title{font-size:16px}.breakdown-grid{gap:12px}
.table-wrap,.ui-table-scroll{max-width:100%;min-width:0;overflow-x:auto!important;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#b6c5d9 #f4f7fb;border:1px solid var(--ui-line);border-radius:10px;box-shadow:none}
.ui-table-scroll:focus-visible{outline:3px solid #c7daff;outline-offset:1px}
.ui-scroll-caption{font-size:13px;color:var(--ui-muted);padding:8px 12px;background:#f8faff;border-bottom:1px solid var(--ui-line);display:flex;gap:10px;align-items:center}
.ui-scroll-caption span{margin-left:auto;white-space:nowrap}
#mainContainer table:not(.fw-table){font-size:14px;line-height:1.55}
#mainContainer th,.modal th{font-size:14px!important;color:#405674;padding:12px 14px;background:#eef3f8;border-bottom:2px solid #d0dae6;font-weight:650;white-space:nowrap}
#mainContainer td,.modal td{font-size:14px!important;padding:12px 14px;color:#263c58;line-height:1.6;border-bottom:1px solid #e8edf5;min-width:0}
#mainContainer td .op-btn{font-size:13px!important;padding:7px 10px!important;min-height:34px}
#mainContainer table:not(.rt-tbl) tbody tr:nth-child(even)>td{background-color:#fafbfc}
#mainContainer table:not(.rt-tbl) tbody tr:hover>td{background-color:#e8f0fe}
.tag,.pay-note-badge,.c-assoc-chip,.c-link-badge{font-size:13px!important;line-height:1.5!important;padding:3px 7px}
.c-tax{font-size:14px!important;line-height:1.6;letter-spacing:.15px;white-space:normal;overflow-wrap:anywhere}
.col-coy{min-width:230px;max-width:340px;white-space:normal;word-break:normal;overflow-wrap:anywhere}
.c-assoc-chip .x{min-width:26px;min-height:26px;font-size:17px}
.imp-edit input,.imp-edit select{font-size:14px!important;min-height:36px}
.imp-autofix{font-size:13px!important;min-height:28px;padding:5px 8px}
html.ui-v8-ready #regTable th,html.ui-v8-ready #regTable td{position:static!important;left:auto!important;box-shadow:none!important}
html.ui-v8-ready #regTable th.ui-frozen,html.ui-v8-ready #regTable td.ui-frozen{position:sticky!important;z-index:3;background:#fff}
html.ui-v8-ready #regTable thead th.ui-frozen{z-index:5;background:#f5f8fc}
html.ui-v8-ready #regTable th.ui-frozen-last,html.ui-v8-ready #regTable td.ui-frozen-last{box-shadow:4px 0 8px -5px #8496b4!important}
#regTable th,#regTable td{font-variant-numeric:tabular-nums}
#groupsGrid{grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr))!important;gap:18px!important}
.gcard{padding:16px!important;box-shadow:none!important;border:1px solid var(--ui-line)!important;border-radius:10px!important;min-width:0}
.gcard-head{margin-bottom:8px;min-width:0}
.gcard-head>div:first-child>span:first-child{font-size:19px!important;color:var(--ui-navy)!important}
.gmember:not(.gvolchip){display:grid!important;grid-template-columns:minmax(70px,.7fr) minmax(0,1.3fr) 30px;gap:8px!important;min-height:48px;padding:8px!important;border-bottom:1px solid #f0f3f8!important;border-radius:5px!important}
.gmember>span{min-width:0}
.gmember:not(.gvolchip)>span:first-child{flex-wrap:wrap}
.gmember:not(.gvolchip)>span:nth-child(2){font-size:13px!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.55}
.gmember-n{font-size:15px!important;min-width:3em;white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere}
.gmember-x{width:28px!important;height:28px!important;font-size:18px!important;color:#637b98!important}
.gvolchip{padding:5px 10px!important;min-height:32px;white-space:normal!important;font-size:14px!important}
#groupStatsWrap,#ungroupedWrap,#pinPanel{min-width:0;max-width:100%}
#poolPeriodCards{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(96px,1fr))!important;gap:10px!important}
#poolPeriodCards>button,#poolPeriodCards>[onclick]{min-width:90px!important;width:auto!important;min-height:56px;padding:10px 12px!important;font-size:14px!important;white-space:normal;line-height:1.5!important}
.rt-sec{box-shadow:none}.rt-sec-head{padding:13px 16px;font-size:16px}.rt-sec-head .rt-cnt,.rt-sec-head .rt-arr{font-size:13px}
.rt-sec-body{min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.rt-tbl{min-width:1100px;font-size:14px!important}
.rt-tbl td{display:table-cell!important;padding:10px!important;vertical-align:middle}
.rt-tbl .rt-name{display:table-cell!important;min-width:110px;white-space:normal}
.rt-name .nm{white-space:normal;overflow-wrap:anywhere}.rt-co{white-space:normal;font-size:13px!important;overflow-wrap:anywhere}
.rt-nights,.rt-date,.rt-seq,.rt-ops,.rt-merge-head,.rt-merge-bed,.rt-merge-empty,.rt-type{font-size:13px!important}
.rt-ops a{display:inline-flex;align-items:center;min-height:36px;min-width:38px;padding:4px 0;text-underline-offset:3px}
.rt-merge-bed select{font-size:14px!important;padding:5px;min-height:34px}
.rt-actions{padding:12px;gap:8px}.rt-chip{font-size:14px;min-height:38px;padding:8px 14px}
.rb-main{grid-template-columns:300px minmax(0,1fr)}.rm-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:12px}
.pl-row,.rm-member{padding:8px;font-size:14px;gap:5px}.pl-co,.pl-op,.rm-co{font-size:13px!important}.rm-card{padding:12px}.rm-tag,.rm-bed,.pl-nights{font-size:13px!important}
.ui-help{color:var(--ui-muted);border:1px solid var(--ui-line);border-radius:8px;background:#f9fbff;padding:0 12px;margin:12px 0;font-size:14px;line-height:1.7}
.ui-help>summary{cursor:pointer;min-height:42px;display:flex;align-items:center;gap:8px;color:#4e6582;font-size:13px;font-weight:600;list-style:none}
.ui-help>summary::before{content:'＋';color:var(--ui-blue);font-size:16px;flex:none}.ui-help[open]>summary::before{content:'－'}
.ui-help-content{padding:0 0 13px}.ui-help-content>p{margin:8px 0}.ui-help-content [style]{font-size:14px!important}
/* All legacy form dialogs: viewport bounds are physical CSS pixels, no page zoom. */
.modal-bg,.login-modal-bg,.confirm-overlay,.collection-modal-bg,.fw-dialog-bg,#ccModal,.group-lookup-modal{padding:24px;inset:0;max-width:100%;max-height:100%;overscroll-behavior:contain}
body.ui-dialog-open{overflow:hidden!important;overscroll-behavior:none}
body.ui-dialog-open .am-bottom-nav{visibility:hidden!important;pointer-events:none!important}
.modal-bg{z-index:1200}.login-modal-bg{z-index:1300}.confirm-overlay{z-index:1400}
#teacherLibModal,#candModal,#roomPickModal,#roomStayModal,#taxModal{z-index:1250}
.modal-bg>.modal,.login-modal,.confirm-box,.ui-dialog-panel{position:relative;width:min(var(--ui-dialog-width,620px),calc(100vw - 48px))!important;min-width:0!important;max-width:calc(100vw - 48px)!important;max-height:calc(var(--ui-viewport-height) - 48px)!important;height:auto!important;overflow:auto!important;overscroll-behavior:contain;border:1px solid var(--ui-line);border-radius:14px!important;background:#fff;color:var(--ui-ink);padding:24px!important;box-shadow:var(--ui-shadow-lg);margin:auto!important;scroll-padding:74px 0 84px;animation:ui-modal-in .2s ease-out}
.modal>h2{font-size:21px!important;color:var(--ui-navy)!important;line-height:1.4;margin-bottom:22px;padding-right:36px}
.modal .field{margin-bottom:18px;min-width:0}
.modal .field>label{display:block;margin-bottom:7px;font-size:14px!important;font-weight:600;color:#405674}
.modal input:not([type=checkbox]):not([type=radio]),.modal select,.modal textarea{min-width:0;max-width:100%;font-size:15px!important}
.modal .field-row{gap:16px;min-width:0}
.modal .field-row>.field{min-width:0;flex:1 1 0}
.modal .btn-row{position:sticky;bottom:-24px;z-index:3;background:#fff;border-top:1px solid var(--ui-line);padding:16px 0 0;gap:10px;margin-top:24px;display:flex;flex-wrap:wrap;justify-content:flex-end}
.modal .btn-row .btn{min-width:90px;min-height:42px;padding:10px 16px!important}
.ui-dialog-x{position:sticky;top:0;float:right;z-index:6;width:34px;min-height:34px;border:1px solid #dae3f0;background:#fff;color:#526680;border-radius:8px;font-size:24px!important;line-height:1!important;display:grid;place-items:center;margin:0 0 4px 8px;cursor:pointer}
.ui-dialog-panel .ui-dialog-x{position:sticky}
.modal img{max-width:100%;height:auto}
#qrModal .modal{--ui-dialog-width:440px}.qr-url{font-size:14px!important;overflow-wrap:anywhere}.qr-box img{max-width:min(100%,280px)!important;height:auto!important}
#posterModal .modal{--ui-dialog-width:480px;padding:12px!important;background:#fff!important}#posterContent img{max-width:100%;height:auto!important}
#posterContent>div{max-width:100%}
#editModal .modal,#manualModal .modal{--ui-dialog-width:620px}#eventModal .modal,#editFeeModal .modal,#hotelModal .modal,#archiveImportModal .modal,#attendanceImportModal .modal{--ui-dialog-width:880px}
#roomStayModal .modal,#roomPickModal .modal,#appsModal .modal,#candModal .modal,#attendanceModal .modal,#importModal .modal,#dupModal .modal{--ui-dialog-width:820px}
.modal .ui-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
.ui-grid>*{min-width:0}
.modal .ui-field-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0 18px!important;min-width:0}
.modal .ui-field-grid>.field{width:auto!important;min-width:0!important;flex:initial!important}
@media(max-width:760px){.modal .ui-field-grid,.modal .row{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:0!important}.modal .ui-field-grid>.field,.modal .row>.field{width:100%!important;min-width:0!important}}
.ui-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;min-width:0;max-width:100%}
.login-modal{width:min(440px,calc(100vw - 32px))!important;padding:36px!important;border-top:4px solid var(--ui-blue)}
.login-modal h2{font-size:25px;color:var(--ui-navy);margin-bottom:28px;font-weight:750}
.login-modal input,.login-modal select{font-size:16px!important;min-height:48px;border:1px solid #cbd7e6;line-height:1.5;margin-bottom:14px}
.login-modal button{background:var(--ui-blue);min-height:48px;font-size:16px;font-weight:650;border-radius:8px}
.login-tip{font-size:14px!important;line-height:1.8;margin-top:20px;color:#53657e}.login-tip a{color:var(--ui-blue);text-underline-offset:3px}
.login-error{font-size:14px!important;line-height:1.6}
.confirm-title{font-size:21px}.confirm-msg{font-size:15px!important;line-height:1.75;overflow-wrap:anywhere}.confirm-btns button{min-height:44px;font-size:15px}
#ccModal .cc-box{max-width:calc(100vw - 48px)!important;max-height:calc(var(--ui-viewport-height) - 48px)!important;overflow:auto!important}
#ctxMenu{max-width:calc(100vw - 24px);font-size:15px;max-height:calc(100dvh - 24px);overflow:auto}.ctx-item{padding:12px 18px;min-height:44px}
#roomStayBody,#roomPickPool,#volQrCards,#bankList,#hotelList,#eventsList{min-width:0;max-width:100%}
.ui-section-head{font-size:18px!important;color:var(--ui-navy)!important;font-weight:700!important;line-height:1.5}
@media(min-width:1100px){#mainTopbar{padding-left:32px;padding-right:32px}#mainContainer{padding-left:32px;padding-right:32px}}
@media(max-width:1100px){#mainTopbar{align-items:flex-start;gap:12px;padding:14px 20px}#mainTopbar .actions{gap:6px}#mainContainer{padding-left:20px;padding-right:20px}.rb-main{grid-template-columns:260px minmax(0,1fr)}}
@media(max-width:760px){
#mainContainer{padding:0 14px 100px}#mainTopbar{padding:12px 14px;min-height:66px;position:relative}#mainTopbar h1{font-size:19px}#roleBadge{font-size:12px!important}
#globalEvent,#archEventSelect{width:100%!important;min-width:0!important;max-width:100%!important;flex-basis:100%}
.ui-event-bar{padding:12px!important;gap:8px!important;margin-top:14px!important}.ui-event-bar>span:last-child{width:100%}
.filters{gap:10px!important;padding:12px!important;align-items:stretch}.filters input{flex-basis:100%;width:100%;min-width:0!important}.filters select{min-width:0;flex:1 1 120px}.filters button{min-height:44px!important;margin:0!important}
input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{font-size:16px!important;min-height:46px}input[type=checkbox],input[type=radio]{width:22px;height:22px}
.op-btn,.btn{min-height:42px;font-size:14px!important}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat-card{padding:14px}.stat-card .num{font-size:25px}.stat-card .label{font-size:13px;white-space:normal}.breakdown-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bd-card{padding:12px}.bd-card .bd-amount{font-size:22px}.breakdown-section{padding:14px}
.table-wrap,.ui-table-scroll{border-radius:8px}#regTable .ui-frozen{position:static!important;left:auto!important;box-shadow:none!important}#regTable th,#regTable td{position:static!important;left:auto!important;box-shadow:none!important}
.modal-bg,.login-modal-bg,.confirm-overlay,.collection-modal-bg,.fw-dialog-bg,#ccModal,.group-lookup-modal{padding:10px!important;align-items:center!important;top:var(--ui-viewport-top)!important;height:var(--ui-viewport-height)!important;bottom:auto!important;overflow:hidden!important}
.modal-bg>.modal,.login-modal,.confirm-box,.ui-dialog-panel{width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;max-height:calc(var(--ui-viewport-height) - 20px)!important;border-radius:12px!important;padding:18px!important;margin:auto!important;scroll-padding:64px 0 76px}
.modal>h2{font-size:20px!important;margin-bottom:18px}.modal .field-row{flex-direction:column!important;gap:0!important}.modal .field-row>.field{width:100%;flex:auto!important}.modal .ui-grid{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}.modal .btn-row{bottom:-18px;padding-top:12px;gap:8px;margin-top:18px}.modal .btn-row button{flex:1 1 auto;min-height:46px!important}.modal .field{margin-bottom:15px}.modal input:not([type=checkbox]):not([type=radio]),.modal select,.modal textarea{font-size:16px!important}
#ccModal .cc-box{max-width:calc(100vw - 20px)!important;max-height:calc(var(--ui-viewport-height) - 20px)!important}.modal img{max-width:100%!important}#posterContent>div{padding-left:14px!important;padding-right:14px!important}.login-modal{padding:26px!important}.login-modal h2{font-size:24px!important}.login-tip{font-size:13px!important}
#groupsGrid{grid-template-columns:minmax(0,1fr)!important;gap:14px!important}.gcard{padding:14px!important}.gmember:not(.gvolchip){grid-template-columns:minmax(0,1fr) 32px;gap:3px 8px!important;padding:10px 8px!important}.gmember:not(.gvolchip)>span:first-child{grid-column:1;grid-row:1;min-width:0}.gmember:not(.gvolchip)>span:nth-child(2){grid-column:1;grid-row:2;white-space:normal!important;font-size:13px!important}.gmember:not(.gvolchip)>.gmember-x{grid-column:2;grid-row:1 / 3;width:32px!important;height:40px!important}.gmember-n{font-size:16px!important}.gcard-head>div:first-child{align-items:center!important}.gcard-head>div:first-child>span:first-child{font-size:19px!important}
#groupSearch{width:100%!important;min-width:0!important}.ui-actions>*{max-width:100%}.ui-actions>input{min-width:0!important}.ui-actions>button{min-height:44px!important}.ui-actions>span{white-space:normal!important;overflow-wrap:anywhere}
#poolPeriodCards{grid-template-columns:repeat(auto-fill,minmax(92px,1fr))!important;gap:8px!important}#poolPeriodCards>*{min-width:0!important;margin:0!important;max-width:100%}
.rb-main{grid-template-columns:minmax(0,1fr)!important}.rm-grid{grid-template-columns:minmax(0,1fr)!important}.rt-ops a{min-height:44px}.rt-sec-head{font-size:15px;flex-wrap:wrap}.rt-sec-head .rt-cnt{margin-left:0}.rt-actions button{min-height:44px}.rt-chip{min-height:44px}.rt-tbl{min-width:1040px}.ui-help{margin:10px 0}
#roomStayBody>div[style*="grid"],#roomStayBody .ui-grid{grid-template-columns:minmax(0,1fr)!important}#roomStayBody>*{min-width:0;max-width:100%}
}
/* Precision fixes for formerly inline-only components. */
#regTable button{font-size:13px!important;min-height:30px;line-height:1.45;padding:5px 8px!important;border-radius:6px}
#ccModal .cc-dialog{max-width:calc(100vw - 32px)!important;max-height:calc(var(--ui-viewport-height) - 32px)!important;overflow:auto!important;overscroll-behavior:contain}
#ccModal button{font-size:14px!important;min-height:40px!important;line-height:1.5}
#ccModal label,#ccModal p,#ccModal .cc-sub,#ccModal .cc-impact{font-size:14px!important;white-space:normal!important;line-height:1.65!important}
#ccModal .cc-head{position:sticky;top:-20px;z-index:3;background:#fff;padding:12px 0}
#payNoteModal{padding:16px!important;height:var(--ui-viewport-height)!important;top:var(--ui-viewport-top)!important;bottom:auto!important;overscroll-behavior:contain}
#payNoteModal>div{max-height:calc(var(--ui-viewport-height) - 32px)!important;max-width:calc(100vw - 32px)!important;overflow:auto!important;overscroll-behavior:contain;width:min(520px,calc(100vw - 32px))!important;padding:22px!important}
#payNoteModal>div>div:first-child{font-size:19px!important;line-height:1.5}
#payNoteModal>div>div:last-child{position:sticky;bottom:-22px;padding:12px 0 0;background:#fff}
#payNoteOk{min-height:44px;font-size:14px!important}
.bank-card{min-width:0;max-width:100%}.bank-info{min-width:0;flex:1 1 0;overflow-wrap:anywhere}.bank-detail{font-size:14px!important;white-space:normal;overflow-wrap:anywhere}.bank-info>*{max-width:100%}.bank-detail a{overflow-wrap:anywhere;white-space:normal!important;max-width:100%!important}.bank-name{font-size:17px!important}
@media(max-width:760px){
#bankList .bank-card,#regionAdminList .bank-card{display:flex;flex-direction:column!important;align-items:stretch!important;gap:14px;padding:16px!important}
#bankList .bank-info,#regionAdminList .bank-info{width:100%;flex:auto;min-width:0;max-width:100%}
#bankList .bank-actions,#regionAdminList .bank-actions{display:flex;flex-wrap:wrap;width:100%;gap:8px;min-width:0}
#bankList .bank-actions button{min-height:44px!important;flex:1 1 auto}
#bankList .bank-detail>span{white-space:normal!important;max-width:100%!important}
#panelRegions>div,#regionList>div{min-width:0;max-width:100%;flex-wrap:wrap!important}
#panelRegions div[style*="display:flex"],#panelRegions div[style*="display: flex"]{min-width:0;max-width:100%;flex-wrap:wrap}
#panelRegions input{min-width:0!important;max-width:100%!important}
#ccModal button{min-height:44px!important}
html.ui-mobile-ready .am-top-menu{color:var(--ui-navy)!important;border-color:#cbd7e6!important;background:#fff!important}
html.ui-mobile-ready #regTable th,html.ui-mobile-ready #regTable td{font-size:14px!important}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media print{body{background:#fff!important}.tab-nav,#mainTopbar,.am-bottomnav,.ui-scroll-caption,.ui-dialog-x{display:none!important}#mainContainer{padding:0!important;max-width:none}body.ui-dialog-open{overflow:visible!important}}

/* 侧栏 v11：只调整后台外壳和导航，不覆盖业务卡片及收款工作台。 */
body.sidebar-v11{--sidebar-width:276px;--sidebar-toolbar-height:148px;background:#f4f7fb}
.sidebar-v11 .sidebar-nav{position:fixed;inset:0 auto 0 0;width:var(--sidebar-width);background:#fff;border-right:1px solid #e2e8f0;z-index:110;display:flex;flex-direction:column}
.sidebar-v11 .sidebar-brand{padding:26px 20px 22px;border-bottom:1px solid #edf1f6;flex:none;text-align:center}
.sidebar-v11 .sidebar-brand-title{color:#123b67;font-size:23px;font-weight:750;letter-spacing:.5px}
.sidebar-v11 .sidebar-brand-subtitle{color:#8290a6;font-size:13px;letter-spacing:4px;margin:6px 0 12px}
.sidebar-v11 #roleBadge{display:inline-block;max-width:100%;white-space:normal}
.sidebar-v11 .sidebar-scroll{overflow-y:auto;overscroll-behavior:contain;padding:14px 12px 24px;scrollbar-width:thin;flex:1;min-height:0}
.sidebar-v11 .sidebar-group{margin-bottom:10px}
.sidebar-v11 .sidebar-group-title{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:40px;padding:9px 12px;background:transparent;border:0;color:#8290a6;font-size:14px;font-weight:650;letter-spacing:1px;text-align:center;cursor:pointer;border-radius:8px}
.sidebar-v11 .sidebar-group-title::after{content:'⌄';font-size:17px;transition:transform .15s}
.sidebar-v11 .sidebar-group-title[aria-expanded=false]::after{transform:rotate(-90deg)}
.sidebar-v11 .sidebar-group.is-current>.sidebar-group-title{color:#1d4ed8}
.sidebar-v11 .sidebar-group-items{display:grid;gap:3px}
.sidebar-v11 .sidebar-group.is-collapsed .sidebar-group-items{display:none}
.sidebar-v11 .sidebar-item{position:relative;display:block;width:100%;text-align:center;background:transparent;border:0;border-radius:8px;padding:11px 16px;min-height:46px;font-size:16px;line-height:1.5;font-weight:550;color:#53657e;cursor:pointer}
.sidebar-v11 .sidebar-item:hover{background:#f4f7fb;color:#1d4ed8}
.sidebar-v11 .sidebar-item.active{background:#e8f0fe;color:#1d4ed8;font-weight:650}
.sidebar-v11 .sidebar-item.active::before{content:'';position:absolute;left:0;top:10px;bottom:10px;width:4px;border-radius:2px;background:#1d4ed8}
.sidebar-v11 .sidebar-single{margin:8px 0 14px;font-weight:600}
.sidebar-v11 .sidebar-course-nav{padding-left:16px}
.sidebar-v11 .sidebar-course-nav #archSubNav{margin:2px 0 5px!important;flex-direction:column;gap:3px!important;border:0!important;flex-wrap:nowrap}
.sidebar-v11 #sidebarNav #archSubNav .sub-tab{position:relative;border:0!important;background:transparent!important;border-radius:7px;min-height:40px;padding:8px 12px!important;margin:0!important;font-size:14px!important;text-align:center;color:#64748b!important;cursor:pointer;font-weight:500!important}
.sidebar-v11 #sidebarNav #archSubNav .sub-tab.active{border:0!important;background:#eef4ff!important;color:#1d4ed8!important;box-shadow:inset 3px 0 #1d4ed8;font-weight:650!important}
.sidebar-v11 .toolbar-breadcrumb{display:flex;align-items:center;gap:10px;min-width:0;color:#8290a6;font-size:13px;white-space:normal}
.sidebar-v11 .toolbar-breadcrumb b{font-weight:400;color:#b5c0d0}
.sidebar-v11 .toolbar-breadcrumb strong{color:#172b4d;font-size:15px;font-weight:650}
.sidebar-v11 #mainTopbar .toolbar-event{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0;margin:0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important}
.sidebar-v11 .toolbar-label{font-size:12px!important;color:#8290a6!important;white-space:nowrap}
.sidebar-v11 #mainTopbar #globalEvent{min-width:0!important;width:100%;max-width:100%!important;flex:1 1 240px;font-size:14px!important;min-height:38px;padding:7px 10px!important;font-weight:600!important}
.sidebar-v11 #mainTopbar #globalEventInfo{font-size:12px!important;flex:1 1 100%;line-height:1.4;overflow-wrap:anywhere}
.sidebar-v11 #mainTopbar #filterRegion{min-width:110px;max-width:180px;min-height:36px}
.sidebar-v11 .sidebar-nav[hidden],.sidebar-v11 .sidebar-item[hidden],.sidebar-v11 .sidebar-group[hidden]{display:none!important}
@media(min-width:761px){
  body.sidebar-v11{overflow:hidden!important}
  .sidebar-v11 #mainTopbar{position:fixed;top:0;left:var(--sidebar-width);right:0;border-top:0;border-bottom:1px solid #e2e8f0;box-shadow:0 2px 10px #123b6704;min-height:0;padding:16px 24px;display:grid;align-items:center;flex-wrap:wrap;gap:12px 24px}
  .sidebar-v11 #mainTopbar .toolbar-breadcrumb{flex:1 1 150px;align-self:center}
  .sidebar-v11 #mainTopbar .toolbar-event{flex:0 1 410px;max-width:470px;margin-left:auto!important;gap:4px 8px!important}
  .sidebar-v11 #mainTopbar .toolbar-label{display:none}
  .sidebar-v11 #mainTopbar .actions{display:flex;flex:1 0 100%;justify-content:flex-end;gap:8px}
  .sidebar-v11 #mainTopbar .actions button{min-height:34px;padding:6px 10px;font-size:13px}
  .sidebar-v11 #mainContainer{position:fixed;top:var(--sidebar-toolbar-height);right:0;bottom:0;left:var(--sidebar-width);width:auto;max-width:none;margin:0;padding:20px 24px 40px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
  .sidebar-v11 #mainContainer>.tab-nav,.sidebar-v11 #panelReg>.sub-tab-nav,.sidebar-v11 #panelDb>.ui-subnav{display:none!important}
  .sidebar-v11 #mainContainer>[id^=panel]{min-width:0;margin-top:0!important}
  .sidebar-v11 #stats{margin-top:0!important}
  .sidebar-v11 #panelAccounts,.sidebar-v11 #panelRegions,.sidebar-v11 #panelLogs,.sidebar-v11 #panelTrash{background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 3px 14px #123b6705;padding:22px}
  .sidebar-v11 .sidebar-course-nav[hidden]{display:none!important}
}
@media(min-width:761px) and (max-width:1100px){
  body.sidebar-v11{--sidebar-width:238px}
  .sidebar-v11 #mainTopbar{padding:14px 18px;gap:12px 16px}
  .sidebar-v11 #mainTopbar .toolbar-event{flex:1 1 240px;max-width:none}
  .sidebar-v11 #mainTopbar #globalEventInfo{display:none}
  .sidebar-v11 #mainContainer{padding:18px 18px 36px}
  .sidebar-v11 .sidebar-brand{padding:20px 18px}
  .sidebar-v11 .sidebar-brand-title{font-size:23px}
}
@media(max-width:760px){
  .sidebar-v11 .sidebar-nav{display:none!important}
  html.ui-mobile-ready .sidebar-v11 #mainTopbar{position:relative;border-top:0;gap:10px;padding:14px 12px;align-items:center}
  .sidebar-v11 .toolbar-breadcrumb{flex:1 1 calc(100% - 100px);order:0;font-size:12px;gap:7px}
  .sidebar-v11 .toolbar-breadcrumb strong{font-size:14px}
  .sidebar-v11 #mainTopbar .toolbar-event{order:2;flex:1 0 100%;width:100%;max-width:100%}
  .sidebar-v11 #mainTopbar #globalEventInfo{display:none}
  .sidebar-v11 #mainTopbar .toolbar-label{display:none}
  .sidebar-v11 #mainTopbar .am-top-menu{order:1}
  html.ui-mobile-ready .sidebar-v11 #mainTopbar #globalEvent{font-size:16px!important;min-height:48px;flex:1 1 100%;width:100%}
  .sidebar-v11 #mainTopbar #filterRegion{min-width:0;max-width:100%;width:100%;flex:1 1 100%;order:3;font-size:16px!important}
  .sidebar-v11 #mainTopbar>.actions{display:none}
  .sidebar-v11 #subPanelRooms .ui-actions{flex-wrap:wrap!important;min-width:0;max-width:100%}
  .sidebar-v11 #roomStayRule span{min-width:0!important;max-width:100%;overflow-wrap:anywhere}
  .sidebar-v11 #mainContainer{position:relative;inset:auto;width:100%;min-width:0}
}
/* 活动管理：列表分层，只有字段行参与两列排版。 */
#eventModal .modal{--ui-dialog-width:880px;overflow-x:hidden!important}
#eventList{display:grid;gap:12px;min-width:0;margin-bottom:24px}
#eventModal .event-card{min-width:0;padding:16px;border:1px solid var(--ui-line);border-radius:10px;background:#fff;display:grid;gap:10px}
#eventModal .event-card-archived{background:#f8fafc}
#eventModal .event-card-head{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;min-width:0}
#eventModal .event-card-name{font-size:17px;line-height:1.5;color:var(--ui-navy);overflow-wrap:anywhere;min-width:0}
#eventModal .event-card .tag{margin:0;border-radius:5px;white-space:normal;overflow-wrap:anywhere}
#eventModal .event-region{background:#eef2ff;color:#3730a3}
#eventModal .event-version{background:#eaf8ee;color:#166534}
#eventModal .event-date{background:#edf4ff;color:#1e40af}
#eventModal .event-status{padding:3px 8px;border-radius:5px;font-size:13px;white-space:nowrap;background:#edf1f6;color:#53657e}
#eventModal .event-status-open{background:#e6f5ef;color:#096649}
#eventModal .event-fees{display:flex;flex-wrap:wrap;gap:6px}
#eventModal .event-fee-chip{background:#f4f7fb;border:1px solid #e6edf5;border-radius:5px;padding:3px 7px;font-size:13px;line-height:1.5;color:#405674;max-width:100%;overflow-wrap:anywhere}
#eventModal .event-fee-note{background:#fff8e9;border-color:#fae9bd;color:#8a5b12}
#eventModal .event-payment-summary{display:flex;flex-wrap:wrap;gap:3px 12px;font-size:13px;color:#405674;overflow-wrap:anywhere;min-width:0}
#eventModal .event-line-label{color:var(--ui-muted);flex:none}
#eventModal .event-signup-link{display:flex;flex-wrap:wrap;gap:2px 6px;font-size:13px;min-width:0}
#eventModal .event-signup-link a{min-width:0;overflow-wrap:anywhere;color:var(--ui-blue);text-underline-offset:3px}
#eventModal .event-actions,#eventModal .event-action-group{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}
#eventModal .event-actions{gap:8px 12px;border-top:1px solid #edf1f6;padding-top:10px}
#eventModal .event-action-group+.event-action-group{padding-left:12px;border-left:1px solid var(--ui-line)}
#eventModal .event-actions .op-btn{margin:0;padding:6px 9px!important;min-height:34px;font-size:13px!important}
#eventModal .event-merge-details{min-width:0;border:1px solid #dbeaf7;border-radius:7px;background:#f5faff;padding:0 10px;font-size:13px;color:#365b7d}
#eventModal .event-merge-details summary{cursor:pointer;padding:8px 0;font-weight:600;overflow-wrap:anywhere}
#eventModal .event-merge-details p{margin:0 0 8px}
#eventModal .event-merge-source{display:grid;gap:4px;margin:0 0 8px;padding:8px 10px;border:1px solid #e2e8f0;border-radius:6px;background:var(--event-source-color,#fff);min-width:0}
#eventModal .event-merge-name{overflow-wrap:anywhere;min-width:0}
#eventModal .event-merge-actions{display:flex;flex-wrap:wrap;gap:4px 14px}
#eventModal .event-merge-actions a{display:inline-flex;align-items:center;min-height:32px;color:var(--ui-blue);text-underline-offset:3px}
#eventModal .event-merge-actions .event-source-unmerge{color:#b42318}
#eventModal .event-create-section{display:block;min-width:0;border-top:1px solid var(--ui-line);padding-top:22px}
#eventCreateTitle{font-size:19px;color:var(--ui-navy);margin-bottom:18px}
#eventModal .row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;min-width:0;align-items:start}
#eventModal .row>.field{min-width:0}
#eventModal .row>.field>label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:22px}
#eventModal .field input:not([type=checkbox]):not([type=radio]):not([type=file]),#eventModal .field select{width:100%;box-sizing:border-box}
#eventModal .pay-config-section{min-width:0;padding:16px 0 2px;background:transparent;border:0;border-top:1px solid var(--ui-line);border-radius:0;margin:18px 0 14px}
#eventModal .pay-config-section .section-title{flex-wrap:wrap;overflow-wrap:anywhere}
#eventModal .pay-config-section>.field:last-child{margin-bottom:0}
#eventModal .method-selector{flex-wrap:wrap;min-width:0;gap:8px}
#eventModal .method-selector label{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:0 1 auto}
#eventModal .toggle-wrap{min-width:0;padding:0;gap:12px;background:transparent;border:0}
#eventModal .toggle-switch{flex:0 0 42px}
#eventModal .toggle-label{min-width:0;overflow-wrap:anywhere}
#eventModal .qr-upload-area{flex-wrap:wrap;min-width:0}
#eventModal .modal>.btn-row{bottom:-24px;margin:20px 0 -24px;padding:14px 0 24px;box-shadow:0 -8px 12px #fff;flex-shrink:0}
@media(max-width:760px){
  #eventModal .event-card{padding:12px;gap:9px}
  #eventModal .event-card-name{flex-basis:100%;font-size:17px}
  #eventModal .event-actions{gap:8px}
  #eventModal .event-action-group+.event-action-group{padding-left:0;border-left:0}
  #eventModal .event-actions .op-btn{min-height:42px;padding:8px 10px!important}
  #eventModal .row{grid-template-columns:minmax(0,1fr);gap:0}
  #eventModal .row>.field>label{white-space:normal;overflow:visible;min-height:0}
  #eventModal .pay-config-section{padding:14px 0 2px}
  #eventModal .method-selector label{flex:1 1 100%;width:100%}
  #eventModal .event-merge-actions a{min-height:42px}
  #eventModal .modal>.btn-row{bottom:-18px;margin-bottom:-18px;padding:12px 0 18px}
}

/* 活动表单：同一白底、同一间距，不影响活动列表卡片。 */
#editFeeModal .modal{--ui-dialog-width:620px;overflow-x:hidden!important}
/* 旧 UI 自动补的网格类只应作用于字段 row，不能把整个费用分区拆成两列。 */
#editFeeModal .ui-field-grid:not(.row):not(.field):not([style*="display: none"]):not([style*="display:none"]){display:block!important;grid-template-columns:none!important}
#editFeeModal .ui-field-grid[style*="display: none"],#editFeeModal .ui-field-grid[style*="display:none"]{display:none!important}
:is(#editFeeModal,#eventModal .event-create-section) .field{margin-bottom:16px;min-width:0}
:is(#editFeeModal,#eventModal .event-create-section) .field>label{margin-bottom:6px;font-size:14px!important;line-height:22px;color:#405674;font-weight:600}
:is(#editFeeModal,#eventModal .event-create-section) .row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;align-items:start;min-width:0}
:is(#editFeeModal,#eventModal .event-create-section) .row>.field>label{white-space:nowrap;overflow:visible;min-height:22px}
:is(#editFeeModal,#eventModal .event-create-section) input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),
:is(#editFeeModal,#eventModal .event-create-section) select{width:100%;height:44px;min-height:44px;box-sizing:border-box;border-width:1px;background:#fff}
:is(#editFeeModal,#eventModal .event-create-section) .field:has(>.toggle-wrap){display:grid;grid-template-columns:168px minmax(0,1fr);gap:0 16px;align-items:center;min-height:44px;padding:4px 0}
:is(#editFeeModal,#eventModal .event-create-section) .field:has(>.toggle-wrap)>label{margin:0;line-height:22px}
:is(#editFeeModal,#eventModal .event-create-section) .field:has(>.toggle-wrap)>div:not(.toggle-wrap){grid-column:2;margin-top:12px!important}
:is(#editFeeModal,#eventModal .event-create-section) .toggle-wrap{padding:0;background:transparent;border:0;gap:12px;min-height:32px;min-width:0}
:is(#editFeeModal,#eventModal .event-create-section) .toggle-switch{flex:0 0 42px;background:#cbd5e1}
:is(#editFeeModal,#eventModal .event-create-section) .toggle-switch.on{background:var(--ui-blue)}
:is(#editFeeModal,#eventModal .event-create-section) .toggle-label{font-size:13px;font-weight:400;line-height:1.6;color:var(--ui-muted)}
:is(#editFeeModal,#eventModal .event-create-section) .pay-config-section{border:0;border-top:1px solid var(--ui-line);border-radius:0;padding:18px 0 0;margin:20px 0 16px;background:transparent;min-width:0}
:is(#editFeeModal,#eventModal .event-create-section) .section-title{color:var(--ui-navy);font-size:15px;font-weight:650;margin-bottom:14px;line-height:24px;flex-wrap:wrap}
:is(#editFeeModal,#eventModal .event-create-section) .pay-config-section .field:last-child{margin-bottom:0}
:is(#editFeeModal,#eventModal .event-create-section) .method-selector{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px;margin-bottom:16px;min-width:0}
:is(#editFeeModal,#eventModal .event-create-section) .method-selector label{flex:0 0 auto;display:inline-flex;align-items:center;white-space:nowrap;overflow:visible;overflow-wrap:normal;min-width:0;max-width:100%;height:44px;min-height:44px;margin:0;padding:0 12px;line-height:20px;font-size:13px!important;gap:7px;font-weight:500}
:is(#editFeeModal,#eventModal .event-create-section) .method-selector input{width:18px;height:18px;min-height:0;padding:0;border:0;flex:0 0 18px;margin:0}
:is(#editFeeModal,#eventModal .event-create-section) .qr-upload-area{align-items:center;gap:16px;min-width:0;flex-wrap:wrap}
:is(#editFeeModal,#eventModal .event-create-section) .qr-preview{flex:0 0 100px;width:100px;height:100px;background:#f8fafc;border:1px dashed #c5d2e3;border-radius:8px}
:is(#editFeeModal,#eventModal .event-create-section) .qr-preview img{width:100%;height:100%;object-fit:contain}
:is(#editFeeModal,#eventModal .event-create-section) .qr-upload-btn{min-height:44px;border-width:1px;border-color:#b8ccec;color:var(--ui-blue);background:#fff}
:is(#editV2Fields,#newV2Fields)>div:first-child{background:#f4f7fb!important;color:#53657e!important;padding:10px 12px!important;margin-bottom:16px!important;line-height:1.65}
#editFeeModal .modal>h2{top:-24px;margin-top:-24px;padding-top:24px;padding-bottom:14px;margin-bottom:18px;border-bottom:1px solid #edf1f6;text-align:left}
#editFeeModal .modal>.btn-row{bottom:-24px;margin:20px 0 -24px;padding:14px 0 24px;box-shadow:0 -8px 12px #fff}
#editFeeModal .btn-row .btn,#eventModal .modal>.btn-row .btn{margin-right:0}
@media(max-width:760px){
  :is(#editFeeModal,#eventModal .event-create-section) .row{grid-template-columns:minmax(0,1fr)!important;gap:0!important}
  :is(#editFeeModal,#eventModal .event-create-section) .field:has(>.toggle-wrap){grid-template-columns:minmax(0,1fr);gap:8px;padding:0}
  :is(#editFeeModal,#eventModal .event-create-section) .field:has(>.toggle-wrap)>div:not(.toggle-wrap){grid-column:1}
  :is(#editFeeModal,#eventModal .event-create-section) .toggle-wrap{min-height:36px}
  :is(#editFeeModal,#eventModal .event-create-section) .method-selector label{flex:0 0 auto;width:auto;max-width:100%;padding:0 10px}
  :is(#editFeeModal,#eventModal .event-create-section) input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),
  :is(#editFeeModal,#eventModal .event-create-section) select{height:46px;min-height:46px}
  #editFeeModal .modal>h2{top:-18px;margin-top:-18px;padding-top:18px}
  #editFeeModal .modal>.btn-row{bottom:-18px;margin-bottom:-18px;padding:12px 0 18px}
}
@media print{.sidebar-v11 .sidebar-nav{display:none!important}.sidebar-v11 #mainContainer{position:static;overflow:visible;width:auto}}

/* ========== UI v9 增强样式 ========== */

/* 弹窗打开动画 */
@keyframes ui-modal-in{from{opacity:0;transform:translateY(-12px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}

/* Toast 通知系统 */
.ui-toast-container{position:fixed;top:20px;right:20px;z-index:9999;display:flex;flex-direction:column;gap:10px;pointer-events:none;max-width:400px}
.ui-toast{pointer-events:auto;display:flex;align-items:flex-start;gap:12px;padding:14px 18px;border-radius:10px;box-shadow:var(--ui-shadow-md);font-size:14px;line-height:1.5;animation:ui-toast-in .3s ease-out;max-width:100%}
.ui-toast.ui-toast-out{animation:ui-toast-out .25s ease-in forwards}
@keyframes ui-toast-in{from{opacity:0;transform:translateX(100%)}to{opacity:1;transform:translateX(0)}}
@keyframes ui-toast-out{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(100%)}}
.ui-toast-success{background:#f0fdf4;border:1px solid #bbf7d0;color:#166534}
.ui-toast-error{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}
.ui-toast-info{background:#eff6ff;border:1px solid #bfdbfe;color:#1e40af}
.ui-toast-icon{flex-shrink:0;font-size:18px;margin-top:1px}
.ui-toast-close{flex-shrink:0;background:none;border:none;color:inherit;opacity:.5;cursor:pointer;font-size:18px;padding:0 0 0 8px;line-height:1}
.ui-toast-close:hover{opacity:1}
.ui-toast-message{flex:1;min-width:0}

/* Loading 状态 */
.ui-loading{position:relative;pointer-events:none!important}
.ui-loading::after{content:'';position:absolute;inset:0;background:rgba(255,255,255,.7);border-radius:inherit;display:flex;align-items:center;justify-content:center}
.btn-loading{position:relative;color:transparent!important;min-width:60px}
.btn-loading::after{content:'';position:absolute;top:50%;left:50%;width:18px;height:18px;margin:-9px 0 0 -9px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:ui-spin .6s linear infinite}
@keyframes ui-spin{to{transform:rotate(360deg)}}

/* 表单错误状态 */
.field-error input,.field-error select,.field-error textarea{border-color:#dc2626!important;background-color:#fef2f2!important}
.field-error .field-error-msg{color:#dc2626;font-size:13px;margin-top:4px;display:flex;align-items:center;gap:4px}

/* 必填标记强化 */
.field>label .required-mark{color:#dc2626;margin-left:2px;font-weight:700}

/* 卡片悬浮效果 */
.stat-card:hover,.gcard:hover,.bd-card:hover{box-shadow:var(--ui-shadow-md);transition:box-shadow .2s ease}

/* 操作按钮组优化 */
.op-btn-group{display:inline-flex;gap:4px}
.op-btn-group .op-btn{margin-right:0!important}

/* 空状态 */
.ui-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;text-align:center;color:var(--ui-muted)}
.ui-empty-state-icon{font-size:48px;margin-bottom:16px;opacity:.4}
.ui-empty-state-title{font-size:16px;font-weight:600;color:var(--ui-navy);margin-bottom:8px}
.ui-empty-state-desc{font-size:14px;max-width:300px}

/* 移动端表格滚动提示 */
@media(max-width:760px){
  .ui-table-scroll::after{content:'← 左滑查看更多 →';position:sticky;right:0;bottom:0;background:linear-gradient(90deg,transparent,rgba(0,0,0,.05));font-size:12px;color:var(--ui-muted);padding:6px 12px;text-align:center;pointer-events:none}
}

/* 按钮主要操作高亮 */
#mainTopbar .btn-primary,#mainTopbar button.btn-primary{background:var(--ui-blue)!important;color:#fff!important;border-color:var(--ui-blue)!important}
#mainTopbar .btn-primary:hover{background:#1e40af!important;border-color:#1e40af!important}

