/* Shared V8 foundation: every role uses the same controls, color and spacing. */
:root{--green:#245dd0;--forest:#eaf4fc;--ink:#21334b;--muted:#6e8096;--line:#e0e8f0;--bg:#f7f9fb;--mint:#edf3ff;--gold:#92702f;--blue:#386fc3;--mobile-nav-height:0px;--mobile-safe-bottom:env(safe-area-inset-bottom,0px)}
body{background:var(--bg);color:var(--ink);font-family:"Segoe UI","Microsoft YaHei UI","Microsoft YaHei","PingFang SC",sans-serif}
button,input,select,textarea{font-family:inherit}button:disabled{cursor:not-allowed}h1{font-weight:600;letter-spacing:-.6px}small,.muted{color:var(--muted)}
.desk-main{min-width:0}.content{padding:28px 30px 32px;min-width:0}.content>*{min-width:0}.panel,.metric,.province-card,.product,.policy{background:white;border:1px solid var(--line);border-radius:10px;box-shadow:none}
.sidebar{background:#eaf4fc;border-right:1px solid #dce7f0;color:#5d7490;box-shadow:none;padding:25px 15px 0}
.sidebar .logo,.login-art .logo{color:var(--ink);font-size:22px}.logo-mark,.sidebar .logo-mark{background:#2c568d;color:white;border-radius:8px;width:33px;height:33px;box-shadow:none}
.sidebar .logo small{color:#6e86a0;letter-spacing:1px}.side-scope{background:#f6fbff;border:1px solid #dce7f2;border-radius:8px}.side-scope b,.side-user b{color:#2f4968}.side-scope small,.side-user small{color:#69829b}.side-user{border-color:#dce7f0}.sidebar .side-user button{color:#597b9d}.avatar,.small-avatar{background:#e8eff8;color:#506e98}
.nav-title,.finance-nav-label{color:#6b83a0;letter-spacing:.5px}.sidebar .nav a,.sidebar .finance-nav-group a{color:#4c6581;border:1px solid transparent;border-radius:7px;box-shadow:none}.sidebar .nav a:hover,.sidebar .finance-nav-group a:hover{background:#f7fbff;color:#245dd0}.sidebar .nav a.active,.sidebar .finance-nav-group a.active,.finance-nav-group a.active:hover{background:white;color:#245dd0;border-color:#dce7f3;box-shadow:0 2px 6px #253e5d04}.nav a .count,.nav-count{background:#e4edf8;color:#42678f;border:0}.nav a.active .count,.finance-nav-group a.active .nav-count{background:#edf3ff;color:#245dd0}.nav-link-content>small,.finance-nav-group a.active .nav-link-content>small{color:#71879e}.side-help{background:transparent;color:#7b8da1;border:0;padding:4px 10px;font-size:10px}.side-help b{color:#5b7390}
.topbar{height:64px;background:#fff;border-bottom:1px solid var(--line);box-shadow:none}.crumb,.top-right,.topbar .notification{color:#768ba3}.crumb b{color:#526b89}.notification b{background:#4f72a3}.brand-footer{color:#91a0b1;border-color:var(--line);font-size:10px}.heading{gap:16px}.heading h1{font-size:26px;font-weight:600}.heading p{color:#75879b}.eyebrow{color:#7a8fa8;letter-spacing:.6px}.panel-h{padding:18px 20px;border-color:var(--line)}.panel-h h2{font-size:15px;font-weight:600}.panel-h p{color:#7d8ea1}.pad{padding:20px}.metric{padding:18px;min-width:0}.metric .metric-label{color:#73849a}.metric strong{font-size:27px;color:#233b58;letter-spacing:-.6px;overflow-wrap:anywhere}.metric .iconbox{color:#6b8cb5;background:#f1f5fa}.metric p,.metric strong em{color:#8596aa}.cards{gap:14px}.columns{gap:18px}.columns>*{min-width:0}
input,select,textarea{min-width:0;max-width:100%;color:var(--ink);background-color:white;border:1px solid #dbe4ee;border-radius:7px;box-shadow:none;line-height:1.4}
input::placeholder,textarea::placeholder{color:#94a2b3;opacity:1}input:focus,select:focus,textarea:focus,.finance-workspace input:focus,.finance-workspace select:focus{border-color:#739cdd;box-shadow:0 0 0 3px #245dd010}
input[readonly],input:disabled,select:disabled,textarea:disabled{background:#f4f7fa;color:#71849a;opacity:1}select option{background:#fff;color:var(--ink)}input[type=checkbox],input[type=radio]{accent-color:#245dd0}
.field>span,.m-field>span,.finance-workspace .field>span,.export-filter-row .field>span,.performance-filter-row .field>span,.report-controls label,.upload-field>b,.expense-hub-search>span,.detail-info label{color:#627891}
.btn,.finance-workspace .btn,.expense-hub-category,.expense-hub-status,.dealer-group,.performance-options>summary,.export-advanced>summary{background:#fff;color:#456180;border:1px solid #dbe4ee;border-radius:7px;box-shadow:none;line-height:1.4;font-weight:500}
.btn:hover:not(:disabled),.finance-workspace .btn:not(.primary):not(.danger):hover{background:#f6f9ff;border-color:#bbcee8}
.btn.primary,.finance-workspace .btn.primary,.attendance-punch-actions .btn.primary{background:#245dd0;border-color:#245dd0;color:#fff;box-shadow:none}.btn.primary:hover:not(:disabled){background:#1b50bc;border-color:#1b50bc}
.btn.subtle,.finance-workspace .btn.subtle,.expense-hub-category.active,.expense-hub-status.active,.export-type.active{color:#245dd0;background:#edf3ff;border-color:#d3e1fa}.btn.danger{color:#a54b45;background:#fff;border-color:#ecd6d3}.textbtn{color:#245dd0}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #90b0e5;outline-offset:2px}
.tag{border-radius:4px}.tag.green{color:#33715b;background:#edf5f1}.tag.orange{color:#966e24;background:#fcf5e5}.tag.blue{color:#3c6dab;background:#edf3fc}.tag.purple{color:#71618f;background:#f4f0f8}.tag.red{color:#ac584c;background:#fcf0ed}
.note,.note.blue{background:#f2f6fc;border-color:#dce7f4;color:#577294}.note.amber{background:#fdf8ec;border-color:#ede2bf;color:#92712e}.empty{background:#fafbfd;color:#8798ab}.empty b{color:#71859c}.empty>.icon{color:#9cb1ca}.onboarding{color:#506c8f}.onboarding p{color:#7b8fa7}
.tabs,.table-foot,.money-row.total,.profile-stats,.info-list .info-row,.timeline-row{border-color:var(--line)}.tabs span,.tabs button{color:#768ba1}.tabs .active{color:#245dd0}.period{background:#f0f4f9;border-color:#e1e8f0}.period .active{color:#245dd0}
th{background:#f7f9fc;color:#6b819c;border-color:#e5ecf4;font-size:12px}td{border-color:#edf1f6;color:#304964;font-size:13px}td small{color:#8596aa}.table-wrap{max-width:100%;min-width:0;overscroll-behavior-x:contain}.table-wrap th,.table-wrap td{padding:15px 18px}
.summary-box,.goods-totals>div{background:#f5f8fc;border-color:#e1e9f3}.summary-box strong,.section-summary strong{color:#2d4f80}.summary-box p,.summary-box small,.money-row,.info-row>span{color:#758ba3}.money-row strong{color:#304b70}.upload,.upload-field{background:#f9fbfe;border-color:#c5d5e9;color:#5d7da3}.upload small{color:#879cb5}.proof{background:#f8fafc;border-color:#e0e7f0;color:#69839d}.pack-thumb{background:#f3f6fa}
.footer-actions{background:#fff;border-color:var(--line)}dialog{background:white;border:1px solid #dce5ef;border-radius:12px;color:var(--ink);box-shadow:0 20px 80px #172a482b}dialog::backdrop{background:#182d4b55;backdrop-filter:blur(3px)}dialog .dialog-h{background:#fff;border-color:var(--line)}dialog .dialog-body{background:white}dialog .dialog-actions{background:#fdfefe;border-color:var(--line)}dialog pre{white-space:pre-wrap;overflow-wrap:anywhere}.record{border-color:var(--line)}#toast{background:#263d59;color:#fff;border-radius:8px}
.finance-shortcuts{background:#fff;border:1px solid var(--line);box-shadow:none;border-radius:8px}.finance-shortcuts .active{background:#edf3ff;color:#245dd0}.finance-shortcuts .nav-count{color:#245dd0;background:#dfeaff}.export-type{background:white;border:1px solid var(--line);border-radius:9px;box-shadow:none}.export-type .icon,.export-type-icon{color:#5f82b0;background:#f1f5fa}.export-action-bar,.export-selection-bar{background:#f7faff;border-color:#e1e8f2}.expense-hub,.expense-hub-tools,.expense-hub-tabs{background:white;border-color:var(--line)}.expense-hub-category{min-width:0}.export-preview-summary-card{background:white;border-color:var(--line)}
.executive-tabs,.executive-record,.executive-money>div{border-color:var(--line)}.executive-filters .active{background:#edf3ff;color:#245dd0;border-color:#d4e1fa}.executive-kind{color:#5075a8}.executive-money span,.executive-money small,.executive-record small{color:#71869f}.executive-empty{color:#788da7}
.real-cart{background:white;border:1px solid #dce5f0;box-shadow:0 -2px 16px #21375209;border-radius:10px}.product-art{background:#f5f8fc}.login{background:white}.login-art{background:#eaf4fc}.login-art:after{border-color:#d3e4f5;box-shadow:0 0 0 70px #e2eef9,0 0 0 140px #e2eef950}.login-copy h1{color:#253e5d;font-size:44px}.login-copy h1 span{color:#517bb2}.login-copy p,.login-form p{color:#7a8fa7}.login-workflow>div{background:#ffffffb8;border-color:#dce7f2;border-radius:8px}.login-workflow .icon{color:#6b8db6}.login-form h2{font-weight:600}.login-bottom{color:#899db4}
.finance-shortcuts>a{color:#3c5778;border-color:var(--line);background:white}.finance-shortcuts>a>.icon{color:#5b80b2}.finance-shortcuts small,.finance-workspace .heading p{color:#758ba3}.finance-shortcuts a.active{border-color:#c8d8f0;background:#f2f6ff;box-shadow:inset 3px 0 0 #245dd0}.finance-shortcuts a:hover{border-color:#bbcee8;background:#f8faff}
.export-kind-tabs>button{color:#395574;background:white;border-color:var(--line)}.export-kind-tabs small{color:#7d90a8}.export-kind-icon{background:#f1f5fa;color:#6383ad}.export-kind-tabs>button.active{background:#f2f6ff;border-color:#94b1e6;box-shadow:inset 0 0 0 1px #94b1e6}.export-kind-tabs>button.active .export-kind-icon{background:#245dd0;color:white}.export-kind-tabs>button:hover{background:#f7faff;border-color:#b6cce8}.export-kind-tabs>button>i{color:#245dd0}.export-advanced[open]>summary,.performance-options[open]>summary{background:#f1f6ff;border-color:#c2d5f2}.export-advanced-content,.performance-options-content{background:white;border-color:var(--line)}
.export-action-bar>div:first-child>small,.export-action-bar>small,.export-action-bar>span:not(.btn),.export-scope-hint,.export-selection-bar>small,.export-review-context,.export-review-scope,.export-review-detailtext,.export-review-toolbar small{color:#7489a2}.export-selection-bar,.export-selection-bar strong{color:#466387}.export-format-note{background:#f8fafd;border-color:#e0e8f3;color:#697e98}.export-format-note>summary{color:#527199}.export-review-summary>div{border-color:var(--line)}.export-review-summary>div>strong{color:#2d4f80}.export-review-summary>div>span,.export-review-summary>div>small,.export-review-meta,.export-review-meta small{color:#7488a0}.export-review-meta strong{color:#3a597e}.export-review-state{border-color:var(--line);color:#6d829c}.export-review-state>b,.export-review-state>strong{color:#365579}.export-review-state>p{color:#7a8fa7}.export-review-table-hint{background:#f7f9fc;color:#7287a0}.export-review-table th{color:#6b819c}.export-review-table td{color:#304964}.export-review-table td>small,.export-review-table td:before{color:#7b90a8}
.expense-hub-category>strong{background:#f0f4fa;color:#6882a4}.expense-hub-category.active{box-shadow:none}.expense-hub-category.active>strong{background:#245dd0;color:white}.expense-hub-category:hover,.expense-hub-status:hover{background:#f4f8ff;border-color:#bfd2ef}.expense-hub-status.active{background:#245dd0;border-color:#245dd0;color:white}.expense-hub-statuses{border-color:var(--line)}.expense-hub-summary,.expense-hub-list td>small{color:#758ba3}.expense-hub-list th{color:#6b819c}.finance-mobile-links{display:none!important}
.invoice-metrics{background:#f7faff;border-color:var(--line)}.invoice-metrics strong{color:#2d4f80}.invoice-metrics span,.invoice-candidate-status,.invoice-upload-results{color:#758ba3}.invoice-entry{background:white;border-color:var(--line)}.invoice-draft-total{background:#f0f5ff;border-color:#d4e1f5;color:#3a5e91}.invoice-file-status{border-color:var(--line)}.invoice-ai-heading b,.invoice-ai-details dd{color:#3b5b87}.invoice-ai-heading p,.invoice-ai-details dt{color:#7389a3}.invoice-ai-test-result{background:#f5f8fc;color:#577292}.personal-expense-group{border-color:var(--line);background:#f8fafd}.personal-expense-total>strong,.personal-expense-breakdown strong{color:#2d4f80}.performance-filter-summary{color:#758ba3}.attendance-location-address{background:#f3f7fd;border-color:#d9e5f4}.attendance-location-address>b,.attendance-location-address dd{color:#486b99}.attendance-location .attendance-full-address{color:#294c7b}.attendance-location-address dt{color:#7188a3}
.mobile-profile-button{display:none}.mobile-profile-info{display:grid;gap:12px}.mobile-profile-info p{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding:10px 0}.mobile-profile-info span{color:var(--muted)}.mobile-profile-info b{text-align:right;overflow-wrap:anywhere}.mobile-profile-info .flex{flex-wrap:wrap}
@media(min-width:651px) and (max-width:1050px){.content{padding:22px}.columns.detail{grid-template-columns:minmax(0,1fr)}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){
 body{background:#f5f8fc}.sidebar{display:none}.desk-main{margin:0;padding-bottom:calc(22px + var(--mobile-safe-bottom))}.content{padding:20px 16px 30px;max-width:100%}.content .heading{gap:10px;flex-wrap:wrap;margin-bottom:18px}.heading h1{font-size:24px}.heading p{font-size:12px}.heading>.flex{width:auto;max-width:100%;justify-content:flex-start}.heading .btn{white-space:normal}
 .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric{padding:15px 13px;min-width:0}.metric strong{font-size:23px}.metric .iconbox{display:none}.metric p{font-size:10px}.columns,.columns.equal,.columns.detail{grid-template-columns:minmax(0,1fr)}.panel-h,.pad{padding:16px}.panel-h{flex-wrap:wrap;gap:10px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}.field{min-width:0}.field>span{font-size:12px}.field small{font-size:11px}
 input:not([type=checkbox]):not([type=radio]),select,.field input,.field select{height:44px;min-height:44px;font-size:16px;padding:9px 11px;line-height:24px;min-width:0;max-width:100%;box-sizing:border-box}textarea,.field textarea{font-size:16px;line-height:1.5;min-height:88px}input[type=file]{height:auto!important;font-size:13px!important}input[type=checkbox],input[type=radio]{width:19px;height:19px;flex:none;padding:0}
 input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:none;appearance:none;display:block;width:100%;min-width:0;text-align:left;min-inline-size:0;overflow:hidden}input::-webkit-date-and-time-value{text-align:left;min-height:24px}input::-webkit-datetime-edit{padding:0;display:inline-flex;align-items:center;height:24px}input::-webkit-calendar-picker-indicator{padding:0;margin:0 0 0 3px;flex:none}
 .btn,.btn.sm,.textbtn,.expense-hub-category,.expense-hub-status,summary{min-height:44px;font-size:13px}.btn{padding:10px 13px}.tabs{gap:18px;overflow-x:auto;max-width:100%;white-space:nowrap}.tabs>button{min-height:44px;flex:none}.table-wrap{overflow-x:auto;max-width:100%}.table-wrap th,.table-wrap td{padding:13px}.table-wrap .btn.sm{font-size:12px}.table-foot{gap:12px;flex-wrap:wrap}.toolbar{flex-wrap:wrap;min-width:0}.toolbar>*{max-width:100%;min-width:0}.detail-info{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.detail-info b{overflow-wrap:anywhere}.info-row b{overflow-wrap:anywhere}.profile-stats{gap:9px}.profile-stats b{font-size:20px}
 dialog{width:calc(100% - 20px);max-width:calc(100% - 20px);max-height:calc(100dvh - 24px);padding:0;border-radius:11px}dialog .dialog-h{padding:18px 16px}dialog .dialog-body{padding:16px;min-width:0}dialog .dialog-actions{padding:13px 16px calc(13px + var(--mobile-safe-bottom));gap:8px}dialog .dialog-actions .btn{white-space:normal}dialog .dialog-body .form-grid{grid-template-columns:minmax(0,1fr)}dialog .dialog-h h2{font-size:18px;overflow-wrap:anywhere}
 .finance-shortcuts{display:none}.brand-footer{display:none}.real-cart{bottom:calc(12px + var(--mobile-safe-bottom));left:12px;right:12px}.export-action-bar .action-list{bottom:0;background:white;border-top:1px solid var(--line);padding-bottom:calc(12px + var(--mobile-safe-bottom))}.desk-main[data-route=exports] .content{padding-bottom:calc(112px + var(--mobile-safe-bottom))}.export-action-bar .action-list .btn{white-space:normal}.export-filter-row .field input,.export-filter-row .field select{height:44px;min-height:44px}.export-filter-row{align-items:end}.export-advanced>summary{display:flex;align-items:center;justify-content:space-between}.export-advanced{min-width:0}
 .login-form{padding:35px 22px}.login-form>div{max-width:100%}.login-form .field input{font-size:16px}.login-bottom{margin-top:40px}.mobile-profile-button{display:grid;place-items:center;width:44px;height:44px;flex:none;padding:7px}.mobile-profile-button .avatar{width:30px;height:30px;font-size:12px;background:#e1ebf6;color:#55779f}.mobile-profile-info .btn{flex:1}#toast{bottom:calc(100px + var(--mobile-safe-bottom));max-width:calc(100% - 32px);overflow-wrap:anywhere}
}
@media(max-width:360px){.content{padding-left:12px;padding-right:12px}.cards{gap:8px}.metric{padding:13px 10px}.metric strong{font-size:21px}.form-grid{grid-template-columns:minmax(0,1fr)}.detail-info{grid-template-columns:minmax(0,1fr)}}
@media print{body{background:white}.sidebar,.topbar,.brand-footer,.mobile-home,.mobile-bottom{display:none!important}.desk-main{margin:0;padding:0}.content{max-width:none;padding:0}.panel,.metric{box-shadow:none;break-inside:avoid}.export-action-bar .action-list,.real-cart{position:static!important}}

/* Dongyao identity: fixed-size vector mark and readable full name on every viewport. */
.dongyao-mark{display:block;width:34px;height:34px;flex:none;object-fit:contain;border-radius:9px}
.dongyao-brand{display:flex;flex-direction:column;gap:4px;min-width:0;letter-spacing:0;text-align:left}
.dongyao-brand>strong{font-size:16px;line-height:1.35;font-weight:650;white-space:nowrap;color:var(--ink)}
.dongyao-brand>small{font-size:10px;line-height:1.4;font-weight:400;letter-spacing:.4px;color:#6e86a0}
.sidebar .logo{padding:0 8px;gap:9px;min-width:0}
.sidebar .logo .dongyao-mark{width:34px;height:34px}
.sidebar .logo .dongyao-brand>strong{font-size:15px;letter-spacing:-.3px}
.sidebar .logo .dongyao-brand>small{font-size:9px;letter-spacing:.4px;margin:0}
.login-art>.logo{gap:13px}.login-art>.logo .dongyao-mark{width:46px;height:46px;border-radius:12px}
.login-art>.logo .dongyao-brand>strong{font-size:24px;letter-spacing:.5px}
.login-art>.logo .dongyao-brand>small{font-size:11px;letter-spacing:1px}
.login-mobile-brand{display:none}
@media(max-width:650px){
 .login-mobile-brand{display:flex;align-items:center;gap:11px;margin:0 0 32px}
 .login-mobile-brand .dongyao-mark{width:40px;height:40px;border-radius:10px}
 .login-mobile-brand .dongyao-brand>strong{font-size:20px}
 .login-mobile-brand .dongyao-brand>small{font-size:10px}
 .desk-main .mobile-shell-brand{gap:8px;font-size:16px;letter-spacing:0;min-width:0;flex:0 1 auto}
 .mobile-shell-brand>.dongyao-mark{width:28px;height:28px;border-radius:7px}
 .mobile-shell-brand>strong{font-size:inherit;line-height:1.35;font-weight:600;white-space:nowrap}
}
@media(max-width:360px){.desk-main .mobile-shell-brand{font-size:15px;gap:6px}.mobile-shell-brand>.dongyao-mark{width:26px;height:26px}.login-mobile-brand .dongyao-brand>strong{font-size:19px}}
