:root{font-family:Inter,"Microsoft YaHei",system-ui,sans-serif;color:#203447;background:#f3f6f8;font-size:14px}*{box-sizing:border-box}body{margin:0}aside{position:fixed;width:225px;height:100vh;background:#102a43;color:#dfe9f0;padding:37px 23px;display:flex;flex-direction:column}.brand{font-size:22px;font-weight:750;letter-spacing:.5px}.brand span{color:#55c6b3}.brand small{display:block;font-size:12px;letter-spacing:2px;color:#9eb6ca;margin-top:12px}nav{display:grid;gap:10px;margin-top:55px}button{font:inherit;border:1px solid #d7e1e7;border-radius:7px;padding:10px 15px;background:white;color:#294155;cursor:pointer}button:hover{background:#eaf2f4}button:disabled{opacity:.5;cursor:wait}nav button{background:transparent;color:#a9c0d2;border:0;text-align:left;padding:14px}nav button.active{background:#24445f;color:white;border-left:3px solid #59d2ba}.aside-bottom{margin-top:auto;line-height:2;font-size:12px;color:#9eb6ca}.aside-bottom span{color:#6f90a9}main{margin-left:225px;padding:35px 42px 20px;max-width:1800px}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px;gap:15px}.eyebrow{font-size:10px;letter-spacing:2px;color:#7b8d9a}h1{font-size:27px;margin:9px 0}h2{font-size:17px;margin:0 0 16px;line-height:1.5}p{line-height:1.85}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.primary{background:#087f76;color:white;border-color:#087f76}.primary:hover{background:#096b64}.status{font-size:12px;padding:8px 13px;border-radius:20px;background:#e6eeef;color:#547076}.intro{display:flex;justify-content:space-between;align-items:center;padding:8px 0 20px}.intro h2{font-size:21px;margin:0}.intro p{color:#7c8e9a;margin-bottom:0}.intro>span{font-size:12px;color:#7c8e9a}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin:7px 0 26px}.card{padding:22px;background:white;border:1px solid #e1e9ed;border-radius:10px}.card .label{color:#6e8392;font-size:12px}.card .value{font-size:26px;font-weight:650;margin:15px 0 10px;font-variant-numeric:tabular-nums}.card small{color:#879aa8}.card.accent{border-top:3px solid #159c8e}.panel{background:white;border:1px solid #e1e9ed;padding:24px;border-radius:10px;margin-bottom:22px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.panel-head h2{margin:0}.panel-head>span,.muted{color:#778c9b;font-size:12px;line-height:1.9}.panel-head button{border:0;color:#087f76;background:none}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:13px}th{font-weight:500;color:#8a9aa8;text-align:left;background:#f7f9fb}td,th{padding:15px 12px;border-bottom:1px solid #edf1f4}td.money{text-align:right;font-variant-numeric:tabular-nums}.positive{color:#087f76}.negative{color:#b55e4d}.badge{background:#edf4f5;padding:4px 9px;border-radius:5px;font-size:11px}.empty{padding:45px 10px;text-align:center;color:#8a9ba9;line-height:2}.empty strong{display:block;color:#4d6576;font-size:16px;font-weight:500}.filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin-bottom:18px}label{display:grid;gap:8px;font-size:12px;color:#637a8c}input,select{font:inherit;color:#243f53;border:1px solid #d7e1e7;border-radius:6px;background:white;padding:11px;width:100%;min-width:0}input:focus,select:focus{outline:2px solid #a1d9d1;outline-offset:1px}.search{flex:1;min-width:180px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.spaced{margin:18px 0}ol{padding-left:22px;line-height:2.1}li{margin-bottom:10px}code{word-break:break-all;background:#f1f5f6;font-size:12px}a{color:#087f76}dialog{width:650px;max-width:95vw;border:0;border-radius:12px;padding:28px;color:#203447;max-height:94vh}dialog::backdrop{background:#102a4399}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin-top:22px}.full{grid-column:1/-1}.error{color:#b24938}.notice{background:#e8f4ef;border:1px solid #bee0d2;padding:14px;border-radius:8px;margin-bottom:20px;line-height:1.7}.danger{background:#fff2e7;border-color:#eec6a1}.conflict{padding:15px;border:1px solid #e7d4b5;border-radius:6px;margin-bottom:12px;white-space:pre-wrap;overflow-wrap:anywhere}footer{display:flex;justify-content:space-between;color:#98a6b1;font-size:11px;padding:17px 0}td button{padding:5px 9px;margin-right:5px;font-size:12px}[hidden]{display:none!important}@media(max-width:1100px){main{padding:25px}.cards{grid-template-columns:repeat(2,1fr)}.settings-grid{grid-template-columns:1fr}}@media(max-width:700px){aside{position:static;width:100%;height:auto;padding:18px}.brand{font-size:19px}.brand small{display:inline;font-size:10px;margin-left:14px}nav{display:flex;margin-top:20px;gap:4px;justify-content:space-between}nav button{padding:9px 6px;font-size:12px}nav button.active{border-left:0;border-bottom:2px solid #59d2ba}.aside-bottom{display:none}main{margin:0;padding:21px 15px}header{align-items:start;flex-wrap:wrap;margin-bottom:18px}h1{font-size:23px}.actions{gap:7px}.intro{display:block}.intro h2{font-size:18px}.intro>span{display:block;margin-top:14px}.cards{gap:10px}.card{padding:17px 13px}.card .value{font-size:21px}.panel{padding:18px 13px}.form-grid{gap:12px}footer span{display:none}.filters label{flex:1;min-width:125px}dialog{padding:20px}}

#authPanel{max-width:480px;margin:10vh auto;padding:18px}#authPanel .brand{color:#102a43;margin-bottom:24px}#authForm{display:grid;gap:18px}body:not(.authenticated)>aside,body:not(.authenticated)>main{display:none}body.authenticated>#authPanel{display:none}body.loading #authForm{display:none}#authError:empty{display:none}

.settings-form{display:grid;gap:16px;max-width:520px}.permission-options{display:flex;flex-wrap:wrap;gap:15px;margin:18px 0}.permission-options label{display:flex;align-items:center;gap:7px}.permission-options input{width:18px;height:18px}.user-card{border:1px solid #dce6eb;border-radius:8px;padding:18px;margin:16px 0}.user-card h3{margin:0 0 8px}.user-card>label{max-width:350px}.account-list{margin-top:24px}.logo-upload{display:flex;align-items:center;gap:20px;margin-top:24px}.logo-preview{width:100px;height:80px;object-fit:contain;border:1px solid #dce6eb;background:#f7f9fb}.brand-logos{display:flex;gap:12px;margin-bottom:20px;flex-wrap:wrap}.company-brand{display:grid;gap:5px;align-items:center;font-size:11px}.company-brand img{width:65px;height:44px;object-fit:contain;background:#fff;border-radius:5px;padding:3px}.audit-list{max-height:260px;overflow:auto;font-size:12px}#resetPasswordForm{display:grid;gap:17px}@media(max-width:700px){nav{flex-wrap:wrap;justify-content:flex-start}nav button{flex:1 1 28%}.brand-logos{margin:0 0 12px}.logo-upload{align-items:flex-start;flex-direction:column}.permission-options{display:grid;grid-template-columns:1fr 1fr}#systemContent .form-grid{grid-template-columns:1fr}}


/* RHC suite palette, shared with Export Manager V2.1.4. */
:root{--rhc-text:#293747;--rhc-background:#f1f5f9;--rhc-sidebar:#f8fafc;--rhc-border:#dfe6ed;--rhc-primary:#c44b55;--rhc-primary-hover:#ad3945;--rhc-primary-soft:#fbecef;--rhc-muted:#7d8c9b;font-family:system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--rhc-text);background:var(--rhc-background)}
aside{background:var(--rhc-sidebar);color:var(--rhc-text);border-right:1px solid var(--rhc-border);padding:22px 13px;overflow-y:auto}
.brand{font-size:19px;font-weight:800;letter-spacing:0}.brand span{color:var(--rhc-primary)}.brand small{color:var(--rhc-muted)}
nav{gap:5px;margin-top:28px}nav button{color:#536273;border-radius:9px;padding:12px 14px}nav button:hover{background:#edf1f5}nav button.active{background:var(--rhc-primary-soft);color:var(--rhc-primary-hover);border:0}
.aside-bottom{color:#667789}.aside-bottom span{color:var(--rhc-muted)}
button{background:#edf1f5;color:#435366;border:1px solid transparent;border-radius:9px}button:hover{background:#e3e9ef}.primary{background:var(--rhc-primary);color:#fff;border-color:var(--rhc-primary)}.primary:hover{background:var(--rhc-primary-hover);border-color:var(--rhc-primary-hover)}
button:focus-visible,a:focus-visible{outline:2px solid var(--rhc-primary);outline-offset:3px}input,select{color:var(--rhc-text);border-color:#dce4eb;border-radius:8px}input:focus,select:focus{outline-color:#e6a3ae}input[type=checkbox]{accent-color:var(--rhc-primary)}label{color:#536273}
.status,.badge{background:var(--rhc-primary-soft);color:#b6424c}.eyebrow,.muted,.intro p,.intro>span,.panel-head>span{color:var(--rhc-muted)}
.card,.card.accent{border:0;border-radius:14px;background:#e9f1fa;padding:22px}.card:nth-child(2){background:#e9f5f0}.card:nth-child(3){background:#fff3e8}.card:nth-child(4){background:#fbecef}.card .label{color:#667789}.card small{color:#6f7f8d}.card .value{color:var(--rhc-text)}
.panel{border-color:var(--rhc-border);border-radius:14px}.panel-head button{color:var(--rhc-primary);background:transparent}.panel-head button:hover{background:var(--rhc-primary-soft)}
th{color:#667789;font-weight:600;background:#f8fafc}td,th{border-bottom-color:#edf1f5}td button[data-edit]{background:#edf1f5;color:#435366}td button[data-delete]{background:#fbecef;color:#aa3340}
.positive{color:#26785a}.negative,.error{color:#b12b39}.empty{color:var(--rhc-muted)}.empty strong{color:#536273}
a{color:var(--rhc-primary-hover)}code{background:#edf1f5}dialog{color:var(--rhc-text);border-radius:14px}dialog::backdrop{background:#29374780}
.notice{background:#e9f5f0;border-color:#c8e3d6;color:#315e4b}.notice.danger{background:var(--rhc-primary-soft);border-color:#edc3cb;color:#aa3340}.conflict{background:#fff9fa;border-color:#edc3cb}
.user-card{border-color:var(--rhc-border);border-radius:12px}.logo-preview{border-color:var(--rhc-border);background:#f8fafc}.company-brand img{border:1px solid var(--rhc-border)}
#authPanel .brand{color:var(--rhc-text)}#authPanel>.panel{border-radius:18px;box-shadow:0 12px 40px #1c354010}footer{color:var(--rhc-muted)}
@media(max-width:700px){aside{padding:16px 15px;border-right:0;border-bottom:1px solid var(--rhc-border);overflow:visible}nav{margin-top:18px}nav button{padding:9px 6px}nav button.active{border:0}.card,.card.accent{padding:17px 13px}.brand small{color:var(--rhc-muted)}}

.login-brand{display:flex;align-items:center;gap:18px;margin-bottom:24px}.login-brand #loginLogo{width:72px;height:60px;object-fit:contain;flex-shrink:0}.login-brand .brand{margin-bottom:0!important;font-size:21px;white-space:nowrap}#authPanel h1{margin:8px 0 10px}#authPanel #authDescription{margin:0 0 24px}#authPanel>.panel{padding:30px 26px}#authPanel #authSubmit{width:100%;min-height:42px}@media(max-width:420px){.login-brand{gap:13px}.login-brand #loginLogo{width:60px;height:52px}.login-brand .brand{font-size:19px}#authPanel{margin:5vh auto}#authPanel>.panel{padding:25px 20px}}

/* Login identity: standalone logo, then a balanced bilingual title. */
#authPanel .login-brand{justify-content:center;margin:0 0 23px;min-height:64px}
#authPanel .login-brand #loginLogo{width:84px;height:68px}
#authPanel .login-wordmark{text-align:center;color:#435366;font-size:13px;font-weight:650;letter-spacing:2px;line-height:1.6;margin:0 0 7px}
#authPanel .login-wordmark span{color:#c44b55;padding:0 3px}
#authPanel h1{text-align:center;font-size:27px;letter-spacing:2px;line-height:1.45;margin:0 0 13px;color:#293747}
#authPanel #authDescription{text-align:center;color:#7d8c9b;font-size:12px;line-height:1.8;margin:0 0 27px}
#authPanel>.panel{padding:32px 30px 27px}
#authPanel>.panel>.muted{text-align:center;margin-top:22px;font-size:11px}
@media(max-width:420px){#authPanel>.panel{padding:28px 23px 24px}#authPanel .login-brand{margin-bottom:19px}#authPanel h1{font-size:25px}#authPanel .login-wordmark{font-size:12px;letter-spacing:1.8px}#authPanel #authDescription{margin-bottom:24px}}

#idleWarning{position:fixed;z-index:10000;right:20px;top:16px;max-width:calc(100vw - 40px);display:flex;align-items:center;gap:16px;padding:15px 18px;background:#fff3e8;border:1px solid #ebc39f;border-radius:12px;box-shadow:0 8px 30px #29374720;color:#704925}#idleWarning button{background:#c44b55;color:#fff;white-space:nowrap}.session-checking>main,.session-checking>aside,.session-checking>dialog{visibility:hidden}@media(max-width:420px){#idleWarning{right:12px;left:12px;max-width:none;font-size:12px;padding:12px;gap:8px}}

