:root{font-family:system-ui,-apple-system,"PingFang SC",sans-serif;color:#302540;background:#f7f5fa;font-size:15px;line-height:1.65}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;padding:24px;max-width:1280px;margin-inline:auto}header,.section-head,.actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}header{margin-bottom:20px}h1{font-size:30px;margin:4px 0}h2{font-size:20px;margin:0 0 12px}h3{font-size:17px}.eyebrow{color:#6944a3;font-weight:700;font-size:13px}p{margin:8px 0}.muted,footer{color:#71697b;font-size:13px}.intro,.card{border:1px solid #e3dbee;background:white;border-radius:16px;padding:22px;margin-bottom:18px}.intro{background:#f1ebf8}.intro strong{font-size:18px}button,a{font:inherit;color:#654199}button{border:1px solid #d8cce8;background:white;border-radius:9px;padding:10px 15px;cursor:pointer;min-height:42px}button.primary{background:#6941a6;color:white;border-color:#6941a6}button:disabled{opacity:.5;cursor:default}button:hover:not(:disabled){box-shadow:0 2px 8px #33204022}input,select,textarea{width:100%;font:inherit;color:inherit;border:1px solid #d9d1e4;border-radius:8px;padding:9px;background:#fff;min-width:0}textarea{min-height:82px;resize:vertical}label{display:block;font-size:13px;font-weight:650;margin:8px 0}label input,label select,label textarea{margin-top:5px;font-weight:400}#filter,.fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}#filter button{align-self:end}.stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:18px}.stat{background:#fff;border:1px solid #e3dbee;padding:18px;border-radius:12px}.stat strong{font-size:28px;display:block;color:#6941a6}.record{border-top:1px solid #ece7f1;padding:16px 0;display:grid;grid-template-columns:1fr auto;gap:12px}.record h3{margin:4px 0}.record p{overflow-wrap:anywhere}.badge{display:inline-block;background:#f0e9f9;color:#67409d;border-radius:6px;padding:2px 8px;font-size:12px}.record .meta{font-size:13px;color:#706778}.record .amount{font-size:20px;font-weight:bold}.actions{justify-content:flex-start}.pager{justify-content:center;margin-top:15px}#notice:not(:empty),#detail-error:not(:empty){background:#fff4df;padding:12px;border-radius:8px;color:#855610}dialog{border:1px solid #ddd2e8;border-radius:16px;width:min(760px,calc(100vw - 24px));max-height:90vh;padding:24px;color:inherit}dialog::backdrop{background:#22173566}#evidence{background:#f8f6fb;padding:12px;border-radius:8px;overflow-wrap:anywhere}#evidence:empty{display:none}.source,.history{border-bottom:1px solid #e6e0ec;padding:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}#edit-actions{margin:20px 0}footer{text-align:center;padding:18px}.money-row{display:flex;gap:16px;flex-wrap:wrap;padding:10px 0;border-bottom:1px solid #eee}.money-row strong{min-width:80px}#backlog{color:#895e22;margin-top:15px}:focus-visible{outline:3px solid #ac8ce2;outline-offset:2px}@media(max-width:600px){body{padding:14px}h1{font-size:25px}.intro,.card{padding:16px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.stat{padding:12px}#filter,.fields{grid-template-columns:repeat(2,minmax(0,1fr))}.record{grid-template-columns:1fr}.record button{width:100%}dialog{padding:16px}.section-head{align-items:flex-start}#edit-actions button{flex:1 1 42%}}@media(max-width:380px){#filter,.fields{grid-template-columns:1fr}button{padding-inline:12px}}

summary{cursor:pointer;color:#67419d;font-size:13px}#sync{font-size:13px;color:#71697b}
/* Finance V2: compact review workspace */
:root{color:#24364a;background:#f3f6f9;font-size:14px}body{max-width:1440px;padding:28px}header{padding:0 0 24px;border-bottom:1px solid #dfe6ed;margin-bottom:24px}h1{font-size:24px;letter-spacing:-.5px}h2{font-size:19px;line-height:1.35}h3{font-size:14px;margin-top:24px}.brand{display:flex;gap:12px;align-items:center}.brand-icon{display:grid;place-items:center;width:44px;height:44px;background:#233c51;color:white;border-radius:12px;font-size:24px;font-weight:800}.eyebrow{color:#6a7b8c;font-size:10px;letter-spacing:1.5px}.hero{border-radius:20px;background:linear-gradient(115deg,#163d4c,#245869);padding:30px 34px;display:flex;justify-content:space-between;align-items:center;gap:24px;color:#fff}.hero h2{font-size:29px;font-weight:650;margin:14px 0}.hero .eyebrow{color:#a5cfd6}.hero p{font-size:12px;color:#c2d9df}.hero-actions{display:grid;gap:10px;min-width:160px}.hero-actions button{background:#ffffff12;border-color:#ffffff44;color:white}.hero-actions .primary{background:#cdeae5;color:#153f42;border-color:#cdeae5}.tabs{display:flex;gap:24px;border-bottom:1px solid #dfe6ed;margin:24px 0}.tabs button{border:none;border-radius:0;padding:14px 0;background:none;color:#71808d;font-weight:600}.tabs button.active{color:#22586c;border-bottom:3px solid #22586c}.card{border-color:#e2e8ee;border-radius:14px;box-shadow:0 3px 8px #22334404;padding:22px}.stats{margin-top:16px;gap:12px}.stat{border-color:#e2e8ee;border-radius:12px;padding:18px;cursor:pointer;position:relative}.stat strong{font-size:32px;font-weight:600;color:#27485c;margin-top:6px}.stat:first-child strong{color:#a16c37}.stat span{font-size:12px;color:#71808d}.stat.active{border-color:#4c8790}.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.tag{background:#edf3f5;color:#4e7180;font-size:11px;border-radius:6px;padding:3px 8px}.money-row{font-size:16px;justify-content:space-between;border-color:#e9edf2}.money-row strong{color:#395366}.money-row b{margin-left:auto;font-variant-numeric:tabular-nums}.muted,footer{color:#7b8794;font-size:12px}.customer-row{width:100%;border:0;border-radius:0;padding:9px 0;background:none;display:grid;grid-template-columns:1fr auto;gap:8px;text-align:left;color:#41596b;font-size:12px;border-bottom:1px solid #eff2f5}.customer-row span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.customer-row small{color:#8593a0}.backlog,.data-note{color:#6d7e8d;font-size:12px;padding:10px 0}.sources{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}.source-card{border:1px solid #dfe7ee;background:white;border-radius:12px;padding:20px}.source-card strong{font-size:25px;display:block;margin:5px 0;color:#264d61}.source-card p{font-size:12px;color:#7c8995}.reconcile-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}.reconcile-toolbar select{width:auto;min-width:160px}.match-row{padding:18px 0;border-top:1px solid #e5ebef}.match-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.match-head input{width:18px}.match-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:10px;font-size:12px}.match-pair div{background:#f6f8fa;border-radius:8px;padding:10px;overflow-wrap:anywhere}.match-pair b{display:block;font-size:16px;margin-bottom:5px}.match-status{padding:3px 8px;border-radius:5px;background:#fff0db;color:#976321;font-size:11px}.match-status.matched,.match-status.confirmed{background:#e3f4ee;color:#237259}.quick-ranges{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.quick-ranges button{min-height:32px;padding:4px 12px;font-size:12px}button{color:#426778;border-color:#d4e0e8;border-radius:8px}button.primary{background:#285f73;border-color:#285f73;color:white}a{color:#386d83}.badge{background:#edf2f7;color:#567085}#filter{grid-template-columns:repeat(3,minmax(0,1fr))}#filter button{min-height:38px;padding:6px 12px}.record{grid-template-columns:minmax(0,1fr) 180px;padding:16px 0}.record h3{font-size:14px}.record .meta{font-size:11px}.record p{margin:5px 0}.record .amount{font-size:18px;color:#284d63}.record .suggestion{font-size:12px;color:#9b773e}#receipt-result{margin:14px 0;white-space:pre-wrap;overflow-wrap:anywhere}#import-result{color:#956223}#notice:not(:empty),#detail-error:not(:empty){background:#fff0db;color:#8a6028}dialog{border-color:#d6e0e9}#evidence{background:#f4f7fa}#sync{color:#7b8794}summary{color:#436879}.empty{padding:28px 10px;text-align:center;color:#7c8996}.empty strong{display:block;font-size:18px;color:#456575;margin-bottom:8px}@media(max-width:900px){.dashboard-grid{grid-template-columns:1fr}.hero h2{font-size:25px}}@media(max-width:600px){body{padding:14px}header{padding-bottom:14px;gap:12px}.brand-icon{width:35px;height:35px}h1{font-size:20px}.hero{padding:22px;display:block}.hero h2{font-size:24px}.hero-actions{display:flex;flex-wrap:wrap;margin-top:20px}.hero-actions button{font-size:12px;min-width:0;flex:1 1 40%;padding:8px}.tabs{gap:18px;margin:18px 0}.tabs button{font-size:12px;padding:12px 0}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{padding:14px}.stat strong{font-size:28px}.sources{grid-template-columns:1fr}.source-card{padding:14px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}.source-card p{width:100%;margin:0}.source-card strong{font-size:22px;margin-left:auto}.card{padding:16px}.record{grid-template-columns:minmax(0,1fr)}.record>div:last-child{display:flex;justify-content:space-between;align-items:center;gap:8px}.record button{width:auto;font-size:12px}.record .amount{font-size:16px}.match-pair{grid-template-columns:1fr}.match-head{gap:8px}.reconcile-toolbar{display:grid;grid-template-columns:1fr 1fr}.reconcile-toolbar select{width:100%;min-width:0}.reconcile-toolbar .primary{grid-column:1/-1}#filter{grid-template-columns:repeat(2,minmax(0,1fr))}.section-head button{font-size:12px}footer{font-size:10px}.dashboard-grid{gap:0}}

.hero{padding:22px 28px}.hero h2{font-size:23px;margin:8px 0}.hero-actions{display:flex;flex-wrap:wrap;min-width:0}.hero-actions button{font-size:13px}.stats{grid-template-columns:repeat(4,minmax(0,1fr))}.stat:first-child strong{color:#27485c}.stat:last-child strong{color:#a16c37}@media(max-width:600px){header{margin-bottom:16px}.hero{padding:18px}.hero .eyebrow{display:none}.hero h2{font-size:21px}.hero-actions{margin-top:12px}.hero-actions button{flex:1 1 42%;padding:7px;min-height:36px}.hero-actions #create{flex-basis:100%}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.section-head h2{margin-bottom:6px}.section-head p{margin:4px 0}}

.source-message{padding:14px;margin:10px 0;border:1px solid #dae4eb;border-radius:12px;white-space:pre-wrap;overflow-wrap:anywhere}.source-message.anchor{border:2px solid #296477;background:#eef8fc}.source-message:focus{outline:3px solid #9bc5d5}.source-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.source-actions button{white-space:normal}#source-dialog{max-height:90vh;overflow:auto}#source-content{overflow-wrap:anywhere}.source-link{text-align:left;width:100%;white-space:pre-wrap;overflow-wrap:anywhere}

/* Overseas warehouse report keeps its controls within the finance sidebar. */
.tabs{flex-wrap:wrap;column-gap:20px;row-gap:0}
.tabs [data-tab="warehouse-monthly"].active{color:#6941a6;border-bottom-color:#6941a6}
.warehouse-report h2{color:#4d3180}
.warehouse-report fieldset{min-width:0;border:0;padding:0;margin:0}
.warehouse-report legend{font-weight:650;color:#4d3180;margin-bottom:8px}
.warehouse-report-fields,.warehouse-report-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));gap:8px 12px}
.warehouse-report-fields label{margin:0}
.warehouse-report fieldset.warehouse-report-warehouses{margin-top:16px}
.warehouse-report .warehouse-report-check{display:flex;align-items:center;gap:8px;min-height:38px;margin:0;padding:4px 8px;border:1px solid #e3dbee;border-radius:8px;font-weight:500;overflow-wrap:anywhere}
.warehouse-report-check input{width:17px;height:17px;flex:0 0 auto;margin:0;accent-color:#6941a6}
.warehouse-report .warehouse-report-all{margin-bottom:8px;font-weight:650;background:#f6f1fb}
.warehouse-report-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.warehouse-report button{color:#613e96;border-color:#d8cce8}
.warehouse-report button.primary{background:#6941a6;color:white;border-color:#6941a6}
.warehouse-report-table{max-width:100%;overflow:auto}
.warehouse-report-table table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:left;font-variant-numeric:tabular-nums}
.warehouse-report-table caption{text-align:left;color:#71697b;padding:4px 0 8px}
.warehouse-report-table th,.warehouse-report-table td{padding:8px;border-bottom:1px solid #ece6f4}
.warehouse-report-table th{background:#f6f1fb;color:#4d3180}
.warehouse-report details{margin-top:12px}
.warehouse-report details li{margin:6px 0;overflow-wrap:anywhere}
