.central-defaults{color:var(--ink);font-size:12px;min-width:0;padding-bottom:14px}.central-defaults *{box-sizing:border-box}.central-defaults button,.central-defaults input,.central-defaults select{font:inherit;min-height:30px;border:1px solid #cddbd8;border-radius:2px;background:#fff;color:inherit;padding:4px 7px}.central-defaults button{cursor:pointer}.central-defaults button:disabled{cursor:default;opacity:.5}.central-defaults button.primary{background:#286f63;color:#fff;border-color:#286f63}.central-defaults input[type=checkbox]{width:14px;height:14px;min-height:14px;accent-color:#286f63}.cd-tabs{display:flex;gap:0;background:#e8eeea;margin:10px 0 12px;min-height:42px}.cd-tabs button{border:0;background:transparent;padding:10px 18px;font-size:14px}.cd-tabs button[aria-selected=true]{background:#fff;border-bottom:3px solid #2b7567;font-weight:700}.cd-toolbar,.cd-toolbar form,.cd-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.cd-toolbar{margin-bottom:9px}.cd-toolbar form{flex:1}.cd-toolbar input[type=search]{width:280px;max-width:100%}.cd-toolbar select{max-width:220px}.cd-actions{margin-left:auto}.cd-actions button{min-width:115px}.cd-meta{display:flex;gap:20px;align-items:center;justify-content:space-between;color:var(--muted);padding:3px 0 9px}.cd-error:not(:empty){padding:9px;background:#fff0ec;color:#9c332a;margin:7px 0}.cd-notice:not(:empty){padding:7px;background:#e9f4ec;color:#25664f;margin:7px 0}.cd-scroll{overflow:auto;max-height:calc(100dvh - 300px);background:#fff;border:1px solid #d1ddda}.cd-table{width:100%;min-width:1360px;border-collapse:collapse;table-layout:auto;font-size:12px}.cd-table th,.cd-table td{padding:5px 6px;border-bottom:1px solid #d8e2dc;text-align:left;vertical-align:middle}.cd-table thead th{position:sticky;top:0;z-index:2;background:#e7eeea;font-weight:700;white-space:nowrap}.central-defaults .cd-table th:first-child,.central-defaults .cd-table td:first-child:not([colspan]){width:28px;min-width:28px;max-width:28px;padding:5px;left:0;z-index:3}.cd-table td[data-column=code]{width:85px;min-width:85px}.cd-table td[data-column=name]{min-width:150px}.cd-table td[data-column=payment_method]{min-width:95px}.cd-table td[data-column=company],.cd-table td[data-column=location]{min-width:145px}.cd-table td[data-column=account]{min-width:185px}.cd-table td[data-column=tax]{min-width:160px}.cd-table td[data-column=price]{min-width:80px}.cd-table td[data-column=color]{min-width:55px;width:65px}.cd-table td[data-column=active]{min-width:80px}.cd-table td[data-column=details]{min-width:100px}.cd-table input:not([type=checkbox]),.cd-table select{width:100%;min-width:0;min-height:27px;height:27px;padding:3px 5px}.cd-table tbody tr:nth-child(even){background:#f7f9f6}.cd-table tr.cd-marked>td,.cd-table tr.cd-dirty>td{background:#edf5f0}.cd-table tr.cd-dirty>td{box-shadow:inset 0 -1px #bfd4c5}.cd-table .cd-active{display:flex;gap:5px;align-items:center;white-space:nowrap}.cd-color{display:flex;gap:4px;align-items:center}.cd-color>span{display:block;width:25px;height:22px;flex:none;border:1px solid #e3e5df}.cd-color select{width:23px!important;padding:0!important;color:transparent}.cd-color option{color:var(--ink)}.cd-link{border:0!important;background:transparent!important;color:#25647a!important;white-space:nowrap;padding:3px!important}.cd-muted{color:var(--muted);font-size:12px}.cd-blocked{display:block;font-size:11px;color:#97712e;margin:3px 0}.central-defaults .cd-table .cd-expanded{position:static;min-width:0;background:#edf5f0;padding:10px 15px;border-bottom:1px solid #cadbd1}.cd-detail-heading{display:flex;align-items:center;gap:20px;margin-bottom:10px}.cd-detail-heading>span{color:var(--muted)}.cd-detail-fields{display:grid;grid-template-columns:1.5fr 1.5fr 1.2fr 1fr 1fr;gap:15px}.cd-detail-fields>label,.cd-detail-fields>div{display:flex;flex-direction:column;gap:5px;font-size:12px}.cd-finance-main{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-top:12px}.cd-finance-main>label:first-child{display:flex;align-items:center;gap:7px;min-width:260px}.cd-finance-main select{min-width:180px}.cd-other-defaults{margin-top:10px}.cd-other-defaults summary{cursor:pointer;color:#2b7468;padding:5px 0}.cd-company-default{display:grid;grid-template-columns:135px 1fr 1fr 1fr 100px 70px;gap:10px;align-items:center;padding:9px 0;border-top:1px solid #d6e2d9}.cd-company-default>label{display:flex;flex-direction:column;gap:4px}.cd-company-default>label.cd-active{flex-direction:row}.cd-empty{text-align:center!important;padding:30px!important;color:var(--muted)}.cd-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#e7eeea;margin-top:12px;padding:10px 15px}.cd-footer nav{display:flex;align-items:center;gap:8px}.cd-dialog{width:min(760px,calc(100vw - 28px));max-height:85dvh;overflow:auto;border:1px solid var(--line);border-radius:5px;padding:15px;color:var(--ink);background:#fff}.cd-dialog::backdrop{background:#1a382b66}.cd-dialog header{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:10px}.cd-dialog header strong{font-size:16px}.cd-column-list>div{display:flex;align-items:center;gap:8px;padding:4px 0}.cd-column-list label{display:flex;align-items:center;gap:7px;flex:1}.cd-history{max-height:55dvh;overflow:auto}.cd-history details{border:1px solid var(--line);margin-bottom:7px}.cd-history summary{padding:9px;background:#edf4ef;cursor:pointer}.cd-history table{width:100%;border-collapse:collapse;font-size:12px}.cd-history th,.cd-history td{padding:7px;border-bottom:1px solid var(--line);word-break:break-word;text-align:left}.central-defaults .cd-history th:first-child,.central-defaults .cd-history td:first-child{position:static;min-width:70px;background:transparent}.cd-dialog footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:10px}.central-defaults :focus-visible{outline:2px solid #387e8f;outline-offset:1px}@media(max-width:1100px){.cd-toolbar form{flex-basis:100%}.cd-actions{margin-left:auto}.cd-scroll{max-height:calc(100dvh - 340px)}}@media(max-width:700px){.central-defaults button,.central-defaults input,.central-defaults select{min-height:40px}.cd-tabs button{padding:8px 12px;font-size:13px}.cd-toolbar input[type=search]{width:100%}.cd-toolbar form{align-items:stretch}.cd-toolbar select{max-width:100%}.cd-toolbar form>*{flex:1}.cd-actions{width:100%;margin:0;justify-content:space-between}.cd-actions button{min-width:0;flex:1}.cd-scroll{max-height:65dvh}.cd-table input:not([type=checkbox]),.cd-table select{min-height:33px;height:33px}.cd-table td{padding:5px}.cd-meta{align-items:flex-start}.cd-footer{flex-wrap:wrap}.cd-footer nav{flex-wrap:wrap}.cd-detail-fields{gap:9px}.cd-company-default{gap:7px}.cd-column-list button{min-width:55px}.cd-dialog{max-height:88dvh}}

#content.content:has(>.central-defaults){max-width:1600px}
#content.content>.central-defaults .cd-table input:not([type=checkbox]):not([type=radio]):not([type=file]),#content.content>.central-defaults .cd-table select{min-height:27px;height:27px}
@media(max-width:700px){#content.content>.central-defaults .cd-table input:not([type=checkbox]):not([type=radio]):not([type=file]),#content.content>.central-defaults .cd-table select{min-height:33px;height:33px}}

.cd-table td[data-column=portal]{min-width:100px}.cd-table [data-portal-account]{white-space:nowrap;padding:3px 7px}.cd-more{position:relative}.cd-more summary{cursor:pointer;padding:6px}.cd-more[open]{display:flex;gap:5px;align-items:center}

/* 1107-08 step 3: 默认分摊 (per 开给, to leaf accounts; store colours from organisation settings). */
.cd-allocation{margin-top:12px;border-top:1px solid var(--line);padding-top:8px;font-size:13px}
.cd-allocation .sa-head{font-weight:700;margin:0 0 4px}
.cd-allocation .sa-rule-h{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid #edf0ec}
.cd-allocation .sa-space{flex:1}
.cd-allocation .sa-tag{display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:999px;background:var(--c);color:#fff;font-size:12px;font-weight:600;white-space:nowrap}
.cd-allocation .sa-unset{color:#8a918b;border:1px dashed #b5bbb6;border-radius:999px;padding:0 8px;font-size:12px;line-height:18px}
.cd-allocation .sa-editing{color:#9a3fd0;font-size:12px}
.cd-allocation .sa-bar{display:flex;width:120px;height:6px;border-radius:999px;overflow:hidden;gap:2px}.cd-allocation .sa-bar i{display:block;height:100%}
.cd-allocation .sa-lines{width:100%;border-collapse:collapse}.cd-allocation .sa-lines td{padding:4px 6px;border-bottom:1px solid #f3f4f1}
.cd-allocation .sa-code{color:#6b746d;width:60px}.cd-allocation .num{text-align:right}
.cd-allocation input[data-line-ratio]{width:64px;text-align:right}
.cd-allocation .sa-foot{display:flex;align-items:center;gap:8px;padding:6px 0}
.cd-allocation .sa-add{border:0;background:none;color:#2f6b4a;cursor:pointer}
.cd-allocation .sa-bad{color:#b4473e}.cd-allocation .sa-error{color:#b4473e;margin:4px 0}.cd-allocation .sa-muted{color:#8a918b}
.cd-allocation select{height:30px;min-height:30px;padding:0 6px;line-height:normal;font-size:13px;max-width:240px}
.cd-allocation .sa-lines td.sa-code{white-space:nowrap;padding-right:16px}

/* 1108-02: one supplier page — list left, one profile right (mockup B). */
.sp-host [hidden]{display:none!important}
.sp-wrap{display:grid;grid-template-columns:220px minmax(0,1fr);gap:18px;align-items:start;font-size:13px}
.sp-side{position:sticky;top:8px;display:grid;gap:8px}
.central-defaults .sp-side input[type=search]{width:100%;height:32px;border-radius:8px;border-color:#dfe3df}
.sp-list{display:grid;gap:2px;max-height:calc(100dvh - 230px);overflow:auto}
.central-defaults .sp-list button{display:flex;align-items:center;justify-content:space-between;gap:6px;height:36px;padding:0 10px;border:0;border-radius:8px;background:none;text-align:left}
.central-defaults .sp-list button[aria-current=true]{background:#eef6f0}
.sp-list .sp-off .sp-tag{opacity:.45}
.sp-dot{width:7px;height:7px;border-radius:50%;background:#e07000;flex:none}
.central-defaults .sp-new{border-radius:8px;border-color:#dfe3df;height:32px}
.sp-tag{display:inline-flex;align-items:center;max-width:100%;height:22px;padding:0 9px;border-radius:999px;background:var(--c);color:#fff;font-weight:600;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sp-main{min-width:0;background:#fff;border:1px solid #e3e7e3;border-radius:12px;padding:14px 16px}
.sp-head{display:flex;align-items:center;gap:8px;padding-bottom:6px}
.sp-head .sp-tag{font-size:15px;height:26px;padding:0 12px}
.sp-space{flex:1}
.sp-pending{display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:999px;background:#fff0de;color:#b35a00;font-size:12px;font-weight:600}
.central-defaults .sp-head button{height:32px;border-radius:8px;padding:0 14px}
.central-defaults .sp-head button.primary{background:#2f6b4a;border-color:#2f6b4a}
.sp-sec{font-size:13px;font-weight:700;color:#24312a;margin:16px 0 4px}
.sp-kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px}
.sp-f{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;min-height:44px;border-bottom:1px solid #edf0ec}
.sp-f>span{color:#6b746d}
.central-defaults .sp-f input:not([type=checkbox]),.central-defaults .sp-f select{width:100%;max-width:320px;height:32px;border-radius:6px;border-color:#dfe3df}
.central-defaults .sp-f button{height:30px;border-radius:6px}
.sp-switch{display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.sp-switch b{display:inline-flex;height:20px;align-items:center;padding:0 8px;border-radius:999px;font-size:12px}
.sp-switch b.on{background:#e3f5e8;color:#248a3d}.sp-switch b.off{background:#eef0ec;color:#6b746d}
.sp-palette{display:flex;flex-wrap:wrap;gap:6px;padding:6px 0}
.central-defaults .sp-palette button{width:18px;height:18px;min-height:18px;padding:0;border:0;border-radius:50%;background:var(--c)}
.central-defaults .sp-palette button[aria-checked=true]{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--c)}
.sp-scroll{overflow-x:auto}
.sp-rules{width:100%;border-collapse:collapse;min-width:720px}
.sp-rules th,.sp-rules td{padding:6px 8px;border-bottom:1px solid #edf0ec;text-align:left;vertical-align:middle}
.sp-rules thead th{background:#f6f7f4;color:#6b746d;font-weight:600;font-size:12px}
.central-defaults .sp-rules select{width:100%;height:30px;border-radius:6px;border-color:#dfe3df}
.sp-co{display:inline-flex;height:20px;align-items:center;padding:0 8px;border-radius:999px;background:#eef0ec;color:#4d5650;white-space:nowrap}
.sp-warn{display:block;color:#97712e;font-size:11px;margin-top:2px}
.sp-muted,.sp-none{color:#8a918b}
.sp-none{padding:12px 8px}
.central-defaults .sp-allocation{border-top:0;margin-top:16px;padding-top:0}
.central-defaults .sp-allocation .sa-head{font-size:13px;color:#24312a;margin:0 0 4px}
.sp-fold{margin-top:16px;padding-top:8px;border-top:1px solid #edf0ec}
.sp-fold summary{cursor:pointer;font-weight:700;color:#24312a;padding:4px 0}
.sp-fold .cd-history{max-height:none}.sp-fold .cd-history th,.sp-fold .cd-history td{padding:5px 8px}.sp-fold footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:8px}
@media(max-width:900px){.sp-wrap{grid-template-columns:1fr}.sp-side{position:static}.sp-list{max-height:200px}.sp-kv{grid-template-columns:1fr}}
@media(max-width:700px){.sp-main{padding:10px}.sp-f{grid-template-columns:84px minmax(0,1fr)}}
