:root{font-family:system-ui,'Microsoft YaHei',sans-serif;color:#172c42;background:#f1f5f9}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}.login{max-width:420px;margin:9vh auto;background:white;border-radius:18px;padding:32px;box-shadow:0 12px 40px #1233}.login h1{color:#10365a}.hint{color:#68788c;font-size:13px}.layout{display:flex;min-height:100vh}.sidebar{background:#092c4c;color:white;width:215px;flex-shrink:0;padding:20px 12px}.brand{font-size:25px;color:#f2c873;font-weight:800;padding:10px}.subbrand{font-size:12px;color:#a6c5dd;padding:0 10px 24px}.nav{display:block;width:100%;text-align:left;border:0;border-radius:9px;padding:13px;color:#d8e7f2;background:transparent;margin-bottom:5px}.nav.active,.nav:hover{background:#196bab;color:white}.main{flex:1;min-width:0;padding:25px;max-width:1250px}.top{display:flex;justify-content:space-between;align-items:center;gap:15px}.top h2{margin:0 0 20px}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.card,.panel{background:white;border-radius:13px;padding:20px;box-shadow:0 1px 4px #0c2b4410}.card small{display:block;color:#718096;margin-bottom:10px}.card strong{font-size:21px;overflow-wrap:anywhere}.green{color:#15965d}.negative{color:#34465c}.muted{color:#758397}.panel{margin-top:16px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}label{display:block;font-size:13px;font-weight:600;margin-bottom:6px}input,select{width:100%;padding:11px;border:1px solid #ced8e2;border-radius:8px;background:white;color:#17344c}.btn{background:#176aaa;color:white;border:0;border-radius:8px;padding:11px 17px;margin:4px 5px 4px 0}.btn.secondary{background:#e8eff6;color:#153955}.btn.small{font-size:12px;padding:8px}.notice{background:#e4f7ed;padding:12px;border-radius:8px;color:#116b40}.error{background:#fff1ee;padding:12px;border-radius:8px;color:#a33425}.tablewrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px}th,td{text-align:left;border-bottom:1px solid #e7edf3;padding:11px 8px;white-space:nowrap}th{background:#f7fafc;color:#53697d}tr:hover td{background:#fbfdff}.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:15px 0}.stat{background:#f3f7fa;padding:16px;border-radius:10px}.stat span{display:block;color:#677b8b;font-size:12px;margin-bottom:8px}.stat strong{font-size:19px}.filters{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin:12px 0}.filters>div{min-width:135px;flex:1}.pill{display:inline-block;padding:4px 8px;border-radius:7px;background:#eef2f6;font-size:12px}.foot{margin-top:20px;color:#7c8792;font-size:12px}@media(max-width:850px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar{width:145px;padding:12px 5px}.brand{font-size:20px}.nav{font-size:12px;padding:10px 6px}.main{padding:12px}.fields{grid-template-columns:1fr}}@media(max-width:500px){.sidebar{width:108px}.brand{font-size:16px;padding:6px}.subbrand{font-size:10px;padding:0 5px 12px}.grid{gap:7px}.card{padding:11px}.card strong{font-size:15px}.panel{padding:12px}.stats{grid-template-columns:1fr}.top{display:block}}

.client-link{background:transparent;border:0;padding:0;color:#2563eb;font:inherit;font-weight:700;text-decoration:underline;cursor:pointer}.client-link:hover{color:#123c86}.card small{display:block;margin-top:5px}.tablewrap small{color:#64748b}

/* Exchange result displayed separately from actual payment */
.exchange-result{font-size:1.55rem;font-weight:800;color:#0b8f69;letter-spacing:.2px;padding:9px 12px;background:#eaf8f3;border:1px solid #bde9d8;border-radius:10px;min-height:30px}

/* Dashboard and customer balance color coding */
.amount-teal{color:#009f9a!important;font-weight:800}
.amount-red{color:#d93643!important;font-weight:800}

/* Dashboard grouped in vertical pairs */
.dashboard-pair-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:start}
.dashboard-pair{min-width:0}
.dashboard-pair h3{font-size:15px;color:#153955;margin:0 0 10px 3px}
.dashboard-pair-stack{display:flex;flex-direction:column;gap:12px}
.dashboard-pair-stack .card{min-height:104px}
@media(max-width:1050px){.dashboard-pair-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){.dashboard-pair-grid{grid-template-columns:1fr}}

.wallet-name-link{background:none;border:0;padding:0;color:#5bc9d0;text-decoration:underline;cursor:pointer;font:inherit;font-weight:700}.wallet-name-link:hover{color:#9af0ec}

/* Agent account wallet balances */
.agent-account-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px 0;border-bottom:1px solid #dbe5f0}.agent-account-balances{display:flex;flex-wrap:wrap;gap:8px;flex:1}.agent-wallet-chip{display:inline-flex;gap:6px;align-items:center;padding:7px 10px;border:1px solid #dbe5f0;border-radius:8px;background:#f5f8fc;font-size:14px}.agent-wallet-chip strong{font-variant-numeric:tabular-nums}

/* 交易记录：按顾客折叠显示 */
.history-groups{display:grid;gap:12px;margin:16px 0 24px}
.history-group{border:1px solid #dce6f1;border-radius:12px;background:#fff;overflow:hidden}
.history-group>summary{cursor:pointer;display:flex;align-items:center;gap:16px;padding:16px 18px;list-style:none;flex-wrap:wrap}
.history-group>summary::-webkit-details-marker{display:none}
.history-group[open]>summary{border-bottom:1px solid #dce6f1;background:#f4f8fc}
.history-customer{font-weight:700;color:#0c3155;min-width:140px}
.history-customer small{font-weight:400;color:#64748b;margin-left:8px}
.history-final{display:flex;flex-direction:column;gap:3px;margin-left:auto;text-align:right}
.history-final small{color:#64748b;font-size:12px}
.history-final strong{color:#146ba7;font-size:18px}
.history-count{color:#64748b;white-space:nowrap}
.history-group[open] .history-arrow{display:inline-block;transform:rotate(180deg)}
.history-details{padding:14px 16px}
@media(max-width:600px){.history-final{margin-left:0;text-align:left}.history-group>summary{gap:10px}.history-count{margin-left:auto}}

.receipt-actions{margin:16px 0}.receipt-actions .receipt-btn{margin:4px}.receipt-btn{font-size:12px}

/* Login screen: scoped so existing dashboards stay unchanged */
.login-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:34px 18px;background:radial-gradient(circle at 10% 15%,#244b73 0,transparent 35%),linear-gradient(135deg,#071e35,#0c3556 58%,#071c32)}
.login-shell{width:min(960px,100%);min-height:540px;display:grid;grid-template-columns:1fr 1fr;overflow:hidden;border-radius:22px;box-shadow:0 25px 80px #020e1c77;background:#fff}
.login-intro{padding:64px 54px;color:#fff;background:linear-gradient(155deg,#0b3154,#08243e);display:flex;flex-direction:column;align-items:flex-start}
.login-mark{height:60px;width:60px;display:grid;place-items:center;border:1px solid #dfbb78;border-radius:15px;color:#f1d18d;font-size:30px;font-weight:800;margin-bottom:29px}
.login-overline{font-size:11px;letter-spacing:4px;color:#d9bc83;font-weight:700}.login-intro h1{font-size:44px;letter-spacing:5px;margin:12px 0 6px;color:#fff}.login-intro-sub{color:#bed3e5;margin:0 0 45px;font-size:15px}.login-feature{font-size:14px;color:#e4edf5;margin:0 0 19px}.login-feature span{color:#dbb76e;margin-right:11px}.login-footnote{margin:auto 0 0;color:#8eabc3;font-size:12px}
.login-form-area{padding:78px 52px 40px;display:flex;flex-direction:column}.login-eyebrow{color:#b58b44;font-size:12px;letter-spacing:2px;font-weight:800}.login-form-area h2{color:#112e49;font-size:30px;margin:10px 0 6px}.login-form-sub{color:#718297;font-size:13px;margin:0 0 34px}.login-form-area label{font-size:13px;color:#28455f}.login-form-area input{height:46px;border:1px solid #d8e1e9;background:#fafcff}.login-form-area input:focus{outline:2px solid #9bbfe2;border-color:#4386bb}.login-password-wrap{position:relative}.login-password-wrap input{padding-right:65px}.login-password-toggle{position:absolute;right:10px;top:8px;background:transparent;border:0;color:#226493;font-size:12px;padding:7px;cursor:pointer}.login-submit{width:100%;margin:26px 0 0;min-height:47px;background:#0c416b;font-weight:700;display:flex;justify-content:center;align-items:center;gap:12px}.login-submit:hover{background:#145786}.login-submit span{font-size:19px}.login-support{color:#55718a;font-size:13px;margin-top:22px}.login-local-note{margin:auto 0 0;padding-top:35px;color:#96a5b3;font-size:12px}.login-form-area .error{margin-top:15px}.login-mobile-brand{display:none}
@media(max-width:700px){.login-screen{padding:18px 12px;align-items:center}.login-shell{display:block;max-width:460px;min-height:0}.login-intro{display:none}.login-form-area{padding:39px 27px 30px;min-height:460px}.login-mobile-brand{display:block;color:#0b416c;font-size:25px;font-weight:800;margin-bottom:26px}.login-form-area h2{font-size:26px}}

/* Company branding on sign-in screen */
.login-company-logo{display:block;width:min(100%,290px);max-height:285px;object-fit:contain;align-self:center;margin:0 auto 16px;filter:drop-shadow(0 7px 16px #0008)}
.login-intro .login-company-title{align-self:center;font-size:28px;letter-spacing:5px;margin:0 0 16px;color:#f2d18b}
.login-intro{justify-content:center}
.login-intro-sub{align-self:center;text-align:center;margin-bottom:34px}
.login-feature{margin-bottom:14px}
.login-mobile-brand{align-items:center;gap:10px}
.login-mobile-brand img{width:52px;height:52px;object-fit:contain;background:#070707;border-radius:8px}
@media(max-width:700px){.login-mobile-brand{display:flex;margin-bottom:22px}}

/* Premium login refresh: branding only, authentication unchanged */
.login-screen{background:radial-gradient(ellipse at 5% 8%,#79551e66,transparent 38%),radial-gradient(ellipse at 90% 92%,#8b601e44,transparent 45%),linear-gradient(135deg,#030d1c,#071c36 52%,#030b19);min-height:100vh}
.login-shell{width:min(1100px,100%);min-height:610px;background:transparent;border:1px solid #c8994855;box-shadow:0 28px 90px #0009;border-radius:24px}
.login-intro{background:radial-gradient(ellipse at 35% 65%,#77500e3b,transparent 65%),linear-gradient(155deg,#07172c,#081e34);align-items:center;justify-content:center;padding:48px 35px}
.login-company-logo{width:min(100%,390px);max-height:395px;object-fit:contain;filter:drop-shadow(0 8px 24px #b9843b33);border-radius:12px}
.login-intro .login-company-title{font-size:28px;color:#eac06a;letter-spacing:5px;margin:8px 0}
.login-intro-sub{color:#d2ac66;letter-spacing:4px;font-size:12px;margin:0 0 22px}
.login-feature,.login-footnote{color:#c7b28d}.login-feature span{color:#e6b957}
.login-form-area{background:linear-gradient(145deg,#0c223c,#061426);border-left:1px solid #a7803b88;color:#f7e8c7;padding:84px 55px 48px}
.login-form-area h2{color:#f7e4ba;font-size:34px;margin:10px 0 35px}.login-eyebrow{color:#d6ad61}.login-form-area label{color:#f6e7cb;font-weight:600}
.login-form-area input{background:#0b2039;color:#fff;border:1px solid #8c734e;height:50px;border-radius:9px}.login-form-area input::placeholder{color:#a9b6c4}.login-form-area input:focus{border-color:#e5b861;outline:2px solid #b88a4a66}
.login-password-toggle{color:#e6c27f}.login-submit{background:linear-gradient(110deg,#f6d783,#c38c38);color:#09182a;border:1px solid #e8c67a;min-height:52px;border-radius:10px}.login-submit:hover{background:linear-gradient(110deg,#ffe6a4,#dca64f)}
.login-support{color:#d3b47b}.login-local-note{color:#93a5b9}
@media(max-width:700px){.login-screen{padding:14px}.login-shell{width:min(460px,100%);border-radius:18px}.login-form-area{padding:28px 25px 32px;min-height:0;border-left:0}.login-mobile-brand{justify-content:center;flex-direction:column;color:#eac06a;font-size:21px;gap:9px}.login-mobile-brand img{width:126px;height:126px;object-fit:contain;background:transparent;border-radius:10px}.login-form-area h2{font-size:27px;margin-bottom:27px}}

/* Gold coin theme, design 2. Login-only override; rest of app unchanged. */
.login-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:#050e1b url('/gold-login-background.png') center center/cover no-repeat}
.login-shell{width:min(1450px,100%);min-height:670px;display:grid;grid-template-columns: 55% 45%;border:0;box-shadow:none;background:transparent;overflow:visible}
.login-intro{background:transparent;border:0;padding:0;visibility:hidden}
.login-form-area{align-self:center;min-height:630px;border:1px solid #d6a34b;border-radius:24px;background:linear-gradient(145deg,#09192bf7,#1a1b1cf5);box-shadow:0 20px 75px #000b, inset 0 0 25px #dca64b0c;padding:62px 52px 38px;display:flex;justify-content:center}
.login-form-area h2{font-family:Georgia,'Microsoft YaHei',serif;font-size:37px;margin:0 0 12px;color:#ffdf9a}
.login-eyebrow{order:0;color:#e3bc76;font-size:15px;letter-spacing:2px;margin:0 0 32px}
.login-form-area label{font-size:16px;color:#f9e8c7}
.login-form-area input{height:56px;border:1px solid #77736d;background:#111d2bcf;color:#fff}
.login-form-area .login-submit{margin-top:28px;height:60px;font-size:19px}
.login-support{font-size:12px;margin-top:18px}.login-local-note{display:none}
.login-mobile-brand{display:none}
@media(max-width:850px){
.login-screen{padding:18px 12px;background:#050e1b radial-gradient(circle at 50% 15%,#5a3b1166,transparent 55%)}
.login-shell{width:min(480px,100%);min-height:0;display:block}
.login-intro{display:none}
.login-form-area{min-height:0;padding:25px 24px 35px;border-radius:20px}
.login-mobile-brand{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;margin-bottom:25px;color:#eecb7d;font-size:20px}
.login-mobile-brand img{height:200px;width:200px;object-fit:contain;background:transparent}
.login-form-area h2{font-size:29px;margin:0 0 15px}
.login-eyebrow{font-size:12px;margin-bottom:23px}
}

/* Fix: keep real logo visible even if background fails to load. */
.login-intro{visibility:visible;display:flex;flex-direction:column;align-items:center;justify-content:center;background:transparent}
.login-company-logo{width:min(72%,430px);max-height:440px;object-fit:contain;filter:drop-shadow(0 0 25px #e7ac484d)}
.login-intro .login-company-title,.login-intro .login-intro-sub{display:none}
@media(max-width:850px){.login-intro{display:none}}

/* Login artwork fix: the left artwork already contains the logo.
   Do not render a second logo or the mock login fields baked into the artwork. */
@media (min-width:851px){
 .login-screen{position:relative;isolation:isolate;overflow:hidden;background:#050e1b;}
 .login-screen::before{content:"";position:absolute;inset:0 auto 0 0;width:55%;z-index:-1;background-image:url('/gold-login-background.png');background-repeat:no-repeat;background-position:left center;background-size:auto 100%;}
 .login-shell{position:relative;grid-template-columns:55% 45%;}
 .login-intro{visibility:hidden!important;pointer-events:none;}
 .login-form-area{position:relative;background:linear-gradient(145deg,#09192b,#191b1e);}
}

/* Final single-form fix: the background file is CROPPED to artwork only. */
@media(min-width:851px){
 .login-screen{background:#050e1b!important;overflow:hidden;}
 .login-screen::before{background-image:url('/gold-login-background.png')!important;background-size:cover!important;background-position:center center!important;width:55%!important;inset:0 auto 0 0!important;}
 .login-shell{width:min(1450px,100%);grid-template-columns:55% 45%;}
 .login-intro{visibility:hidden!important;}
 .login-form-area{z-index:1;background:#0c1825!important;box-shadow:0 20px 75px #000b!important;}
}


/* 2026-10-18: approved design, real single form; cropped artwork has no painted form */
.login-screen{min-height:100vh!important;padding:0!important;background:#060d17!important;overflow:auto!important;position:relative!important;isolation:auto!important}
.login-screen::before,.login-screen::after{content:none!important;display:none!important}
.login-shell{width:100%!important;max-width:none!important;min-height:100vh!important;display:grid!important;grid-template-columns:minmax(0,56%) minmax(0,44%)!important;gap:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#060d17!important;overflow:visible!important}
.login-intro{display:block!important;visibility:visible!important;pointer-events:none!important;min-height:100vh!important;padding:0!important;background:#060d17 url('/login-left-artwork.webp') center center/cover no-repeat!important;border:0!important}
.login-intro>*{display:none!important}
.login-form-area{position:relative!important;z-index:1!important;align-self:stretch!important;justify-content:center!important;min-height:100vh!important;max-width:none!important;border:0!important;border-left:1px solid #c89b47!important;border-radius:0!important;box-shadow:inset 18px 0 50px #0007!important;background:radial-gradient(circle at 90% 8%,#6a471d45,transparent 40%),linear-gradient(145deg,#101e2a,#0a121c 70%,#171811)!important;padding:clamp(28px,5vw,86px)!important;color:#f7e6be!important}
.login-form-area h2{font-size:clamp(32px,3.1vw,47px)!important;color:#ffe0a0!important;margin:0 0 20px!important}
.login-eyebrow{color:#eac57d!important;font-size:15px!important;margin:0 0 22px!important;letter-spacing:1.5px!important}
.login-form-area label{font-size:16px!important;color:#f8e3b8!important;margin:16px 0 8px!important}
.login-form-area input{height:58px!important;background:#17212cbf!important;border:1px solid #b98a47!important;color:white!important;border-radius:10px!important}
.login-form-area input:focus{outline:2px solid #e3b75d88!important}
.login-password-toggle{color:#f4c876!important;top:12px!important}
.login-submit{width:100%!important;min-height:64px!important;margin-top:32px!important;border:1px solid #ffdc8c!important;border-radius:10px!important;background:linear-gradient(120deg,#ffe49a,#c58e3b)!important;color:#172031!important;font-size:19px!important;font-weight:800!important}
.login-submit:hover{filter:brightness(1.08)}
.login-support{font-size:13px!important;color:#e8c481!important;margin-top:23px!important}
.login-local-note{display:none!important}
.login-mobile-brand{display:none!important}
@media(max-width:850px){
 .login-screen{padding:0!important}
 .login-shell{display:flex!important;flex-direction:column!important;min-height:100vh!important}
 .login-intro{display:block!important;min-height:0!important;height:clamp(190px,39vh,330px)!important;background-size:cover!important;background-position:center 43%!important;flex:none!important}
 .login-form-area{min-height:0!important;flex:1!important;border-left:0!important;border-top:1px solid #c89b47!important;border-radius:0!important;padding:32px 24px 45px!important;box-shadow:none!important}
 .login-form-area h2{font-size:30px!important;margin-bottom:20px!important}
 .login-form-area input{height:52px!important}
 .login-submit{min-height:56px!important}
}

/* Report page visual refresh */
.report-panel{padding:26px;border:1px solid #e6edf5;box-shadow:0 8px 26px #1538580c}.report-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:20px;border-bottom:1px solid #e7edf4}.report-heading small{color:#b18b51;font-weight:800;letter-spacing:2px}.report-heading h3{font-size:24px;margin:8px 0;color:#153651}.report-heading p{margin:0;color:#7b8b9e;font-size:13px}.report-heading>span{border-radius:40px;background:#eaf7f1;color:#238262;padding:8px 12px;font-size:12px}.report-filters{display:grid;grid-template-columns:minmax(170px,1fr) minmax(280px,1.5fr);gap:18px;background:#f5f8fc;border:1px solid #e6edf4;border-radius:14px;padding:20px;margin:20px 0 25px}.report-filters>div{min-width:0;flex:initial}.report-filters input,.report-filters select{height:46px}.report-date-row{display:flex;align-items:center;gap:9px}.report-date-row input{flex:1;min-width:0}.report-date-row .btn{margin:0;height:46px;white-space:nowrap}.report-quick{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.report-quick button{background:white;color:#1d5b89;border:1px solid #d2e1ef;border-radius:8px;padding:7px 12px;cursor:pointer}.report-quick button:hover{background:#e8f3fb}.report-section-title{color:#153651;margin:24px 0 15px}.report-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.report-stats .card{border:1px solid #e5edf4;box-shadow:none;min-height:106px;background:linear-gradient(145deg,#fff,#f9fbfe)}.report-stats .card strong{font-size:22px;color:#153c5d}.report-panel #export{background:#133e64}@media(max-width:850px){.report-filters{grid-template-columns:1fr}.report-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.report-panel{padding:14px}.report-heading h3{font-size:20px}.report-heading>span{display:none}.report-filters{padding:12px}.report-stats{gap:8px}.report-stats .card{padding:12px;min-height:90px}.report-stats .card strong{font-size:16px}}

/* Mobile navigation upgrade. Desktop sidebar and financial logic unchanged. */
.mobile-header,.mobile-bottom,.mobile-sidebar-head,.mobile-shade{display:none}
@media(max-width:850px){
 .layout{display:block;min-height:100dvh}
 .main{width:100%;max-width:none;min-width:0;padding:15px 13px calc(95px + env(safe-area-inset-bottom))}
 .mobile-header{display:flex;align-items:center;gap:12px;position:sticky;top:0;z-index:25;margin:-15px -13px 16px;padding:12px 15px;background:#092c4c;color:#fff;box-shadow:0 3px 12px #092c4c25;min-height:58px}
 .mobile-header strong{font-size:18px;letter-spacing:1px}
 .mobile-header-user{margin-left:auto;max-width:35%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#d6e5f3}
 .mobile-menu,.mobile-close{border:0;background:#ffffff18;color:#fff;border-radius:9px;min-width:39px;min-height:39px;font-size:23px}
 .sidebar{position:fixed;z-index:51;inset:0 auto 0 0;width:min(82vw,300px)!important;height:100dvh;overflow-y:auto;padding:15px 14px 35px!important;transform:translateX(-105%);transition:transform .22s ease;box-shadow:8px 0 30px #061a2c33}
 .sidebar.mobile-open{transform:translateX(0)}
 .mobile-sidebar-head{display:flex;align-items:center;justify-content:space-between;color:#dbe7f1;font-size:13px;padding:3px 4px 12px}
 .sidebar .brand{font-size:25px;padding:10px}
 .sidebar .subbrand{font-size:12px;padding:0 10px 24px}
 .sidebar .nav{font-size:14px;padding:13px 12px;margin-bottom:5px}
 .mobile-shade:not([hidden]){display:block;position:fixed;inset:0;z-index:50;background:#05172999}
 body.mobile-nav-open{overflow:hidden}
 .mobile-bottom{display:flex;position:fixed;z-index:40;bottom:0;left:0;right:0;justify-content:space-around;align-items:stretch;background:#fff;border-top:1px solid #dfe8f2;box-shadow:0 -4px 18px #0a28421a;padding:6px 5px calc(6px + env(safe-area-inset-bottom));min-height:64px}
 .mobile-tab{flex:1;min-width:0;border:0;background:transparent;color:#6c7f90;font-size:10px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;padding:3px 1px;border-radius:8px;white-space:nowrap}
 .mobile-tab.active{color:#176aaa;background:#eef6fc;font-weight:800}
 .mobile-tab-icon{font-size:22px;line-height:24px}
 .top{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-bottom:12px}
 .top h2{margin:0;font-size:21px}
 .top .muted{font-size:11px}
 .tablewrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
 .panel{max-width:100%;min-width:0}
 .fields>*{min-width:0}
}
@media(max-width:500px){.main{padding:12px 10px calc(90px + env(safe-area-inset-bottom))}.mobile-header{margin:-12px -10px 14px}.top{display:flex}.top h2{font-size:19px}}
@media(prefers-reduced-motion:reduce){.sidebar{transition:none}}

/* 2026-10-21: payment detail modal and reconciliation improvements */
.payment-mini{font-size:11px;color:#597084;margin:5px 0 8px;line-height:1.55;min-width:160px}
.payment-dialog{border:1px solid #d5e2ee;border-radius:17px;box-shadow:0 24px 90px #06182a66;padding:0;width:min(620px,calc(100vw - 28px));max-height:min(88dvh,850px);overflow-y:auto;color:#183852;background:#fff}
.payment-dialog::backdrop{background:#061a2bbb}
.payment-dialog-form{padding:24px}
.payment-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;border-bottom:1px solid #e1e9f1;margin-bottom:14px;padding-bottom:14px}
.payment-dialog-head small{color:#a8874e;font-size:11px;letter-spacing:1.7px;font-weight:800}
.payment-dialog-head h3{font-size:21px;margin:5px 0;color:#173d5d}
.payment-x{border:0;background:#eff3f7;border-radius:9px;min-width:36px;min-height:36px;font-size:25px;color:#325574;cursor:pointer}
.payment-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0}
.payment-fields>div{min-width:0}
.payment-fields label{display:block;font-size:13px;font-weight:700;color:#34566f;margin-bottom:6px}
.payment-fields input,.payment-fields select,.payment-fields textarea{display:block;width:100%;box-sizing:border-box;min-height:42px;padding:9px 10px;border:1px solid #cad9e6;border-radius:8px;background:#fff;color:#1b364d;font:inherit}
.payment-fields textarea{resize:vertical}
.payment-wide{grid-column:1/-1}
.payment-dialog-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
@media(max-width:540px){.payment-dialog-form{padding:16px}.payment-fields{grid-template-columns:1fr;gap:10px}.payment-dialog-head h3{font-size:18px}.payment-dialog{max-height:90dvh}}

/* Operating expense ledger and net-profit dashboard */
.expense-finance{margin:26px 0 20px;padding:20px;border:1px solid #dce7f0;border-radius:16px;background:linear-gradient(145deg,#f9fcff,#fff)}
.expense-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:17px}
.expense-heading small{font-size:11px;font-weight:800;letter-spacing:1.8px;color:#ae874b}
.expense-heading h3{font-size:22px;color:#153651;margin:5px 0}
.expense-heading p,.expense-heading>span{font-size:12px;color:#6d8293;margin:0}
.expense-currency-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.expense-currency{border:1px solid #e1eaf2;border-radius:13px;background:white;padding:15px;min-width:0}
.expense-currency h4{margin:0 0 12px;color:#183e5d;font-size:15px}
.expense-kpis{display:flex;flex-direction:column;gap:12px}
.expense-kpi{display:flex;flex-direction:column;gap:3px;border-bottom:1px solid #eef2f6;padding-bottom:9px;min-width:0}
.expense-kpi:last-child{border:0;padding:0}
.expense-kpi small{color:#758798;font-size:11px}
.expense-kpi strong{font-size:19px;overflow-wrap:anywhere;color:#153651}
.expense-kpi strong.amount-teal{color:#14836d}.expense-kpi strong.amount-red{color:#b5444b}
.expense-finance>h4{font-size:16px;color:#24445c;margin:24px 0 10px}
.expense-entry-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:25px 0 10px}
.expense-entry-head h4{margin:0;color:#24445c}
.expense-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;background:#f3f7fb;border:1px solid #e0eaf2;border-radius:12px;padding:15px}
.expense-form-grid>div{min-width:0}.expense-form-grid label{display:block;font-size:12px;color:#38566e;font-weight:700;margin-bottom:6px}
.expense-form-grid input,.expense-form-grid select{width:100%;box-sizing:border-box;min-height:42px;padding:8px 9px;border:1px solid #cbdce9;border-radius:8px;background:#fff;color:#1e405c;font:inherit}
.expense-form-grid .expense-wide{grid-column:span 2}.expense-form-grid [hidden]{display:none}
.expense-actions{display:flex;gap:10px;margin-top:12px}
.expense-finance .tablewrap{max-width:100%;overflow-x:auto}.expense-finance table{min-width:600px}
@media(max-width:1100px){.expense-currency-grid{grid-template-columns:1fr}.expense-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.expense-kpi{border:0;border-right:1px solid #eef2f6;padding:0 8px 0 0}.expense-kpi strong{font-size:17px}.expense-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.expense-finance{padding:13px}.expense-heading h3{font-size:19px}.expense-kpis{grid-template-columns:1fr}.expense-kpi{border:0;border-bottom:1px solid #eef2f6;padding:0 0 8px}.expense-form-grid{grid-template-columns:1fr;padding:12px}.expense-form-grid .expense-wide{grid-column:auto}.expense-currency{padding:12px}}

/* 日进斗金 · 管理员待处理提醒 (2026-10-21) */
.reminder-nav-count{display:inline-flex;min-width:23px;justify-content:center;padding:2px 6px;border-radius:99px;background:#f2b66b;color:#183d58;font-size:11px;font-weight:800;margin-left:5px}
.reminder-top-btn{border:1px solid #e7d6b4;background:#fff8eb;color:#775425;border-radius:30px;padding:7px 12px;font-size:12px;font-weight:800;cursor:pointer}
.reminder-header-btn{display:none;border:1px solid #ffffff40;background:#ffffff14;color:#fff;border-radius:10px;padding:7px 9px;white-space:nowrap;font-size:14px;cursor:pointer}
.reminder-header-btn span{font-size:11px;font-weight:800;margin-left:3px}
.reminder-home,.reminder-full{border:1px solid #dce7f0;background:linear-gradient(155deg,#f8fbff,#fff);margin-bottom:18px}
.reminder-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.reminder-heading small{font-size:11px;font-weight:800;letter-spacing:1.8px;color:#a67c41}
.reminder-heading h3{margin:6px 0;color:#153d5c;font-size:21px}
.reminder-heading p,.reminder-list-head p{font-size:12px;line-height:1.6;color:#637f94;margin:5px 0 0}
.reminder-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:19px 0}
.reminder-summary>div{background:#fff;border:1px solid #e0eaf2;border-radius:13px;padding:15px;display:flex;flex-direction:column;gap:7px;min-width:0}
.reminder-summary small{color:#60798c;font-size:12px}
.reminder-summary strong{font-size:27px;color:#143b5b;font-variant-numeric:tabular-nums}
.reminder-summary em{font-size:13px;font-style:normal;color:#647e92}
.reminder-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.reminder-preview-grid>div{border:1px solid #e4ebf3;border-radius:13px;padding:14px;background:#fff;min-width:0}
.reminder-preview-grid h4{color:#1a405e;margin:0 0 10px}
.reminder-preview-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #edf1f5;padding:12px 0}
.reminder-preview-row>div{min-width:0;display:flex;flex-direction:column;gap:4px}
.reminder-preview-row strong{font-size:13px;color:#244a65;overflow-wrap:anywhere}
.reminder-preview-row small{font-size:11px;color:#71889a;overflow-wrap:anywhere}
.reminder-link{background:#eaf3fb;color:#185985;border:1px solid #d3e4f2;border-radius:8px;padding:8px 10px;font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer}
.reminder-empty{font-size:13px;color:#778d9d;margin:13px 0}
.reminder-filters{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:12px;padding:15px;border:1px solid #e1eaf2;background:#f2f7fb;border-radius:12px;margin:18px 0}
.reminder-filters>div{min-width:0}
.reminder-filters label{display:block;font-size:12px;font-weight:800;color:#365773;margin-bottom:7px}
.reminder-filters input,.reminder-filters select{width:100%;box-sizing:border-box;min-height:43px;padding:8px 10px;border:1px solid #cedeea;border-radius:8px;background:#fff;color:#1d405c}
.reminder-list-head{margin:25px 0 12px}
.reminder-list-head h3{color:#1c435f;font-size:17px;margin:0}
.reminder-list-head h3 small{font-size:12px;color:#8a9bad}
.reminder-list{border:1px solid #e1eaf2;background:#fff;border-radius:13px;overflow:hidden}
.reminder-list>.reminder-empty{padding:8px 15px}
.reminder-item{display:flex;align-items:center;gap:15px;justify-content:space-between;padding:15px;border-bottom:1px solid #eaf0f5}
.reminder-item:last-child{border-bottom:0}
.reminder-item-main{display:flex;flex:1;min-width:0;flex-direction:column;align-items:flex-start;gap:6px}
.reminder-item-main strong{color:#1c415f;font-size:14px;overflow-wrap:anywhere}
.reminder-item-main small{font-size:12px;color:#74899a;line-height:1.5;overflow-wrap:anywhere}
.reminder-tag{font-size:11px;font-weight:800;padding:4px 8px;border-radius:7px}
.reminder-tag-debt{color:#ad454c;background:#fff0ef}
.reminder-tag-unpaid{color:#97652a;background:#fff4e4}
.reminder-amount{color:#b84c52;font-size:16px;white-space:nowrap}
.reminder-item .btn{font-size:12px;white-space:nowrap}
.reminder-item-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.reminder-pay-btn{background:#1d735e!important;color:#fff!important}
.reminder-target{outline:2px solid #e9a94e;outline-offset:-2px;background:#fff8e9!important}
@media(max-width:850px){.reminder-header-btn{display:inline-flex;align-items:center;margin-left:auto}.mobile-header-user{margin-left:0}.reminder-top-btn{display:none}}
@media(max-width:650px){.reminder-heading h3{font-size:18px}.reminder-summary{gap:7px}.reminder-summary>div{padding:10px}.reminder-summary small{font-size:10px}.reminder-summary strong{font-size:20px}.reminder-preview-grid{grid-template-columns:1fr}.reminder-filters{grid-template-columns:1fr}.reminder-item{align-items:flex-start;flex-wrap:wrap;gap:9px}.reminder-item-main{flex-basis:100%}.reminder-amount{font-size:14px}.reminder-item-actions{width:100%;justify-content:flex-start}.reminder-item .btn{padding:8px 10px}.reminder-home,.reminder-full{padding:13px}}

/* 历史批量确认入口：桌面和手机均可使用 */
.bulk-paid-banner{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#edf7f5;border:1px solid #c9e7de;border-radius:13px;padding:16px;margin:17px 0}
.bulk-paid-banner strong{color:#145e56;font-size:15px}
.bulk-paid-banner p{color:#607b76;font-size:12px;margin:5px 0 0;line-height:1.5}
.bulk-paid-banner .btn{white-space:nowrap}
.bulk-paid-dialog{width:min(570px,calc(100vw - 26px));max-height:calc(100dvh - 28px);overflow-y:auto}
.bulk-paid-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}
.bulk-paid-fields>div{min-width:0}
.bulk-paid-dialog label{display:block;font-size:13px;font-weight:700;color:#25475f;margin:8px 0 5px}
.bulk-paid-dialog input,.bulk-paid-dialog select{width:100%;box-sizing:border-box;min-height:40px;padding:9px;border:1px solid #cddce6;border-radius:8px}
.bulk-paid-preview{padding:13px;background:#eff7fc;border:1px solid #d6e7f2;border-radius:10px;margin:13px 0;color:#234961}
.bulk-paid-preview strong{font-size:16px}.bulk-paid-preview p{font-size:13px;margin:7px 0}.bulk-paid-preview small{color:#688497}
.bulk-paid-warning{color:#945e2c;background:#fff5e7;border-radius:9px;padding:11px;font-size:12px;line-height:1.7}
.bulk-paid-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:14px}
.bulk-paid-actions button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:650px){.bulk-paid-banner{flex-direction:column;align-items:stretch}.bulk-paid-fields{grid-template-columns:1fr}.bulk-paid-banner .btn{width:100%}.bulk-paid-actions .btn{flex:1}}

.bulk-paid-preview .bulk-paid-sample{font-size:11px;color:#617f90;line-height:1.6;overflow-wrap:anywhere}

/* 代理佣金日期筛选 · 适配手机 */
.commission-date-panel{margin:12px 0 20px}
.commission-date-filter{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:12px 0}
.commission-date-filter>div{min-width:145px;flex:1 1 165px}
.commission-date-filter label{display:block;font-size:12px;margin-bottom:5px}
.commission-date-filter input{width:100%;box-sizing:border-box}
.commission-date-filter .btn{min-height:39px}
.commission-period-total{font-weight:600;margin:10px 0;color:inherit}
.payment-status-hint{display:inline-block;margin:0 8px 5px 0;opacity:.7;white-space:nowrap}
@media(max-width:600px){.commission-date-filter>div{min-width:calc(50% - 8px);flex:1 1 calc(50% - 8px)}.commission-date-filter .btn{flex:1 1 auto}}
