:root{--erp-ink:#244b6d;--erp-line:#cbdff1;--erp-soft:#eff6fd;--erp-orange:#ee8131}
body,input,select,textarea,button{font-family:"Microsoft YaHei","Segoe UI",sans-serif}body{color:var(--erp-ink)}
.erp-nav-icon{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;margin-right:11px}
.wf-nav-item>button[data-wf-open],.nav button[data-view],.nav button[data-s-view],.nav button[data-p-view],.nav a{display:flex;align-items:center;text-align:left;line-height:1.55;min-height:44px;font-size:15px}
.wf-nav-item>button[data-wf-fav]{display:none!important}
.wf-nav-item>button.active,.nav button.active,.wf-module-tabs button.active{background:#fff1e4;color:#bd571b;border-color:#efb47e;font-weight:600}
.wf-main,.workspace,.s-workspace,.cw-workspace{min-width:0}input,select,textarea{color:var(--erp-ink)}input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible{outline:2px solid #6296c5;outline-offset:2px}
body dialog{border:1px solid var(--erp-line);border-radius:14px;max-height:92dvh;max-width:96vw}dialog::backdrop{background:rgba(26,47,69,.3)}
.table-wrap,.table-scroll,.cw-table-scroll{max-width:100%;overflow-x:auto}.workspace table th,.workspace table td{border-color:#dce7f2}
button.primary,.primary[type=submit]{background:var(--erp-orange);border-color:var(--erp-orange);color:white}button.selected,button[aria-pressed=true]{color:#a9480e;background:#fff1e4;border-color:#efa366}
@media(prefers-reduced-motion:no-preference){button,a,input,select{transition:background-color .15s ease,border-color .15s ease}.wf-home{animation:erp-fade-in .18s ease-out}@keyframes erp-fade-in{from{opacity:.2}to{opacity:1}}}
@media(max-width:1366px){.wf-embedded .workspace{padding:22px 20px 36px}.wf-nav-item>button[data-wf-open]{font-size:14px}.cw-heading,.s-heading,.heading{gap:12px;flex-wrap:wrap}}
@media print{.erp-nav-icon{display:none}table{border-collapse:collapse}th,td{border:1px solid #8292a0!important}button,nav,.wf-sidebar{print-color-adjust:exact}}

#wf-nav .wf-nav-item:has(>button.active){background:#fff1e4;border-color:#efb47e}#wf-nav .wf-nav-item>button.active{color:#bd571b!important;background:#fff1e4!important;border-left-color:#ee8131!important}

.login-brand{position:relative;overflow:hidden}.login-brand:before,.login-brand:after{content:"";position:absolute;width:300px;height:300px;border:1px solid #ffffff15;border-radius:50%;right:-160px;top:8%;pointer-events:none}.login-brand:after{width:420px;height:420px;top:auto;bottom:-230px;right:30px}.wf-login-choice{transition:background-color .15s ease,border-color .15s ease}

.erp-business-dialog-open #aq-launcher{visibility:hidden;pointer-events:none}

/* All application dialogs share one right-side page layout. Print stays unbounded. */
@media screen {
html.erp-drawer-open34{overflow:hidden}
html body .erp-drawer34{position:fixed!important;inset:0 0 0 auto!important;margin:0!important;width:min(1120px,calc(100vw - 72px))!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;min-height:0!important;padding:0!important;border:0!important;border-left:1px solid #dce5f0!important;border-radius:0!important;background:#fff;box-shadow:-18px 0 65px #26384b26;overflow:hidden!important;transform:translateX(0);box-sizing:border-box;isolation:isolate}
html body dialog.erp-drawer34:not([open]){display:none}
html body .erp-drawer34[open],html body .erp-drawer34:not(dialog):not([hidden]){display:flex;flex-direction:column;gap:0}
html body .erp-drawer34[data-erp-drawer-size=compact]{width:min(660px,calc(100vw - 52px))!important}
html body .erp-drawer34[data-erp-drawer-size=wide]{width:min(1400px,calc(100vw - 52px))!important}
html body .erp-drawer34::backdrop{background:#24364b52;backdrop-filter:blur(1px)}
.erp-drawer-overlay34{position:fixed!important;inset:0!important;display:flex;justify-content:flex-end;background:#24364b52;padding:0!important}
.erp-drawer-overlay34[hidden],.erp-drawer34[hidden]{display:none!important}
html body .erp-drawer-head34{position:relative!important;top:auto!important;flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0!important;padding:22px 28px!important;border-bottom:1px solid #e0e7ef;background:#fff;z-index:4;min-width:0}
html body .erp-drawer-head34 h2,html body h2.erp-drawer-head34{font-size:22px;line-height:1.45;font-weight:650;color:#27354a}
.erp-drawer-head34>h2{margin:0;min-width:0;overflow-wrap:anywhere}
.erp-drawer-head34>button{flex:none;min-height:38px}
html body .erp-drawer-form34{display:flex!important;flex:1 1 auto;flex-direction:column;min-height:0!important;min-width:0!important;padding:0!important;margin:0!important;overflow:hidden}
html body .erp-drawer-scroll34{flex:1 1 auto;min-height:0!important;min-width:0!important;max-height:none!important;overflow:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable;padding:24px 28px!important;scroll-padding:20px;box-sizing:border-box}
html body .erp-drawer-foot34{position:relative!important;bottom:auto!important;flex:none;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin:0!important;padding:16px 28px!important;border-top:1px solid #dce5f0;background:#fbfcff;z-index:5;min-width:0}
.erp-drawer-foot34>button{min-height:42px}
.erp-drawer-scroll34:is(.form-grid,.s-formgrid,.formgrid,.cw-formgrid),.erp-drawer-scroll34 :is(.form-grid,.s-formgrid,.formgrid,.cw-formgrid){min-width:0;align-items:start;align-content:start;gap:18px 20px}
.erp-drawer34[data-erp-drawer-size=compact] :is(.form-grid,.s-formgrid,.formgrid,.cw-formgrid){grid-template-columns:repeat(2,minmax(0,1fr))}
.erp-drawer-scroll34 :is(label,.field){min-width:0;line-height:1.5}
.erp-drawer-scroll34 :is(input,select,textarea){max-width:100%;box-sizing:border-box}
.erp-drawer-scroll34 :is(input:not([type=checkbox]):not([type=radio]),select,textarea){min-height:40px}
.erp-drawer-scroll34 textarea{resize:vertical;min-height:76px;max-height:40dvh}
.erp-drawer-scroll34 :is(.note,.info,.s-note,.warning){line-height:1.75;overflow-wrap:anywhere}
.erp-drawer-scroll34 :is(.actions,.s-actions,.wf-tools,.cw-actions){gap:8px;flex-wrap:wrap}
.erp-table-scroll34,.erp-drawer-scroll34 :is(.table-wrap,.table-scroll,.cw-table-scroll){max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.erp-drawer-scroll34 table{min-width:max-content;max-width:none}
.erp-drawer-scroll34 :is(th,td){max-width:420px;overflow-wrap:anywhere}
.erp-drawer-scroll34 :is(.cw-print-pages,.cw-print-page,.export-page,.long-preview){max-width:100%}
.erp-drawer-scroll34 :is(.cw-print-page img,.long-preview,#image-output img,#long-output img){max-width:100%;height:auto;object-fit:contain}
.erp-drawer-scroll34 :is(#cw-lines,.catalog-results){overscroll-behavior:contain}
.erp-drawer-scroll34 #cw-lines{max-height:none;overflow-x:auto}
.erp-drawer-scroll34 #cw-total{position:static}
[data-erp-discard34]{width:100%;background:#fff7e8;border:1px solid #edcf9b;padding:14px 16px;border-radius:8px;color:#825000;display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px}
[data-erp-discard34]>div{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:700px){html body .erp-drawer34,html body .erp-drawer34[data-erp-drawer-size]{width:100vw!important;border-left:0!important}.erp-drawer-head34,.erp-drawer-foot34{gap:8px!important}html body .erp-drawer-head34{padding:16px 18px!important}html body .erp-drawer-scroll34{padding:18px!important}html body .erp-drawer-foot34{padding:12px 18px max(12px,env(safe-area-inset-bottom))!important}.erp-drawer-scroll34:is(.form-grid,.s-formgrid,.formgrid,.cw-formgrid),.erp-drawer-scroll34 :is(.form-grid,.s-formgrid,.formgrid,.cw-formgrid){grid-template-columns:1fr!important}.erp-drawer-scroll34 :is(.wide,.span2){grid-column:1/-1}.erp-drawer-foot34>button{flex:1 1 auto}.erp-drawer-head34 h2{font-size:19px!important}.erp-drawer-scroll34 .querybar{min-width:0}.erp-drawer-scroll34 .query-field{max-width:100%}}
@media(prefers-reduced-motion:no-preference){.erp-drawer34[open],.erp-drawer34:not(dialog):not([hidden]){animation:erp-drawer-enter34 .24s cubic-bezier(.2,.7,.2,1)}@keyframes erp-drawer-enter34{from{opacity:.65;transform:translateX(50px)}to{opacity:1;transform:translateX(0)}}@supports(transition-behavior:allow-discrete){dialog.erp-drawer34{transition:display .16s allow-discrete,overlay .16s allow-discrete,transform .16s ease,opacity .16s ease}dialog.erp-drawer34:not([open]){opacity:0;transform:translateX(50px)}}}
@media(prefers-reduced-motion:reduce){.erp-drawer34{animation:none!important;transition:none!important}}
}
@media print{
html.erp-drawer-open34{overflow:visible!important}
html body .erp-drawer34[open]{position:static!important;inset:auto!important;width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;padding:0!important;margin:0!important;overflow:visible!important;border:0!important;box-shadow:none!important;transform:none!important;display:block!important}
html body .erp-drawer34[open] :is(.erp-drawer-form34,.erp-drawer-scroll34,.erp-table-scroll34){display:block!important;height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;padding:0!important}
.erp-drawer34 .erp-drawer-head34{position:static!important;margin:0 0 10px!important;padding:0!important;border:0!important}
.erp-drawer34 :is(.erp-drawer-foot34,[data-erp-discard34]){display:none!important}
.erp-drawer34 table{min-width:0!important;max-width:100%!important}
.erp-drawer34::backdrop{background:white!important;backdrop-filter:none!important}
}
