/* Shared styles from the four immutable compact workspace references. */
.kv14413-host{--ws-paper:var(--p3-surface,#fff);--ws-ground:var(--p3-canvas,#f3f6fa);--ws-soft:var(--p3-brand-soft,#edf2f7);--ws-line:var(--p3-border,#dde5ed);--ws-ink:var(--p3-ink,#1c2838);--ws-quiet:var(--p3-muted,#586a7e);--ws-brand:var(--p3-brand,#486f99);font:14px/1.5 Arial,sans-serif;color:var(--ws-ink);min-width:0;width:100%;max-width:none!important;overflow-wrap:anywhere}
.kv14413-host *{box-sizing:border-box}.kv14413-host h2{font-size:24px;margin:0 0 5px;line-height:1.2}.kv14413-host h3{font-size:16px;margin:0}.kv14413-host p{margin:0 0 12px}.kv14413-host small{display:block;font-size:11px;color:var(--ws-quiet)}
body #appView .kv14413-host button{font-size:14px;min-width:0!important;min-height:40px;box-shadow:none!important;display:inline-flex;align-items:center;justify-content:flex-start;gap:8px;padding:8px 12px;border-radius:8px;text-align:left;white-space:normal}
body #appView .kv14413-host button:not(.primary){background:transparent!important;border:0;color:inherit}body #appView .kv14413-host button.secondary{background:var(--ws-soft)!important}body #appView .kv14413-host button:hover{background:var(--ws-soft)}
.kv14413-host svg{width:17px;height:17px;flex:none}.kv14413-host input:not([type=checkbox]),.kv14413-host select,.kv14413-host textarea{font:inherit;background:var(--ws-paper);border:1px solid var(--ws-line);border-radius:7px;padding:9px 10px;min-width:0;width:100%;color:inherit}
.kv14413-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:20px}.kv14413-heading p{color:var(--ws-quiet);font-size:12px;margin:0}
.kv14413-layout{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:14px;align-items:start}.kv14413-content{min-width:0}.kv14413-tools{background:var(--ws-paper);border:1px solid var(--ws-line);border-radius:12px;padding:7px;position:sticky;top:76px}
body #appView .kv14413-host .kv14413-tool{width:100%;display:flex;flex-direction:column;justify-content:center;gap:4px;min-height:80px;padding:8px 2px;font-size:11px;font-weight:400}
body #appView .kv14413-host .kv14413-tool[aria-pressed=true]{background:var(--ws-soft)!important;color:var(--ws-brand);font-weight:500}.kv14413-subtools{border-bottom:1px solid var(--ws-line);padding:2px 0 8px;margin:0 0 5px}
body #appView .kv14413-host .kv14413-subtool{width:100%;font-size:11px;padding:6px 4px;min-height:40px;gap:5px}body #appView .kv14413-host .kv14413-subtool[aria-pressed=true]{background:var(--ws-soft)!important;color:var(--ws-brand)}
body #appView .kv14413-host .kv14413-mobile{display:none}.kv14413-panel,.kv14413-detail{background:var(--ws-paper);border:1px solid var(--ws-line);border-radius:12px;min-width:0;overflow:hidden}.kv14413-panelhead{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:16px}.kv14413-foot{padding:12px 16px;border-top:1px solid var(--ws-line);font-size:12px;color:var(--ws-quiet);display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}
.kv14413-quick{display:flex;gap:8px;padding:8px 16px 16px}.kv14413-quick input{flex:1}.kv14413-quick button{flex:none}
.kv14413-taskrow{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center;gap:0 8px;border-top:1px solid var(--ws-line);padding:9px 12px;min-height:71px}.kv14413-taskrow>small{grid-column:2;line-height:1.4}.kv14413-check{grid-row:1/3;width:36px!important;min-height:44px!important}.kv14413-tasktitle{font-weight:500!important;min-height:36px!important;padding:4px 5px!important;width:100%}.kv14413-taskrow.done .kv14413-tasktitle{text-decoration:line-through;color:var(--ws-quiet)}.kv14413-empty{padding:32px 20px;color:var(--ws-quiet)}
.kv14413-detail{margin-top:14px;padding:16px}.kv14413-detail header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.kv14413-detail label{display:block;font-size:12px;color:var(--ws-quiet);margin-bottom:11px}.kv14413-detail input,.kv14413-detail textarea,.kv14413-detail select{margin-top:5px}.kv14413-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}.kv14413-actions{display:flex;gap:7px;flex-wrap:wrap}.kv14413-danger{color:#a3372b!important}.kv14413-notice{border-top:1px solid var(--ws-line)}.kv14413-notice-summary{display:flex;gap:9px;cursor:pointer;list-style:none;padding:11px 16px;align-items:flex-start}.kv14413-notice-summary::-webkit-details-marker{display:none}.kv14413-notice-summary strong{font-size:14px;font-weight:500}.kv14413-notice-summary small{margin-top:4px}.kv14413-notice details[open] summary{background:var(--ws-soft)}.kv14413-dot{width:7px;height:7px;background:var(--ws-brand);border-radius:50%;margin-top:8px;flex:none}.kv14413-dot.read{background:transparent}.kv14413-excerpt{display:block;font-size:12px;color:var(--ws-quiet);margin-top:6px}.kv14413-noticebody{padding:16px 31px 18px}.kv14413-noticebody p{white-space:pre-wrap}.kv14413-host .task-form{display:flex;flex-wrap:wrap;gap:8px}.kv14413-host .task-form input,.kv14413-host .task-form select{flex:1;min-width:130px}.kv14413-host .task-form textarea{flex-basis:100%}.kv14413-host #messageForm{padding:16px;background:var(--ws-soft);margin:0}
.kv14413-search{display:flex;gap:8px;margin-bottom:14px}.kv14413-search input{flex:1}.kv14413-customerhead{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:16px}.kv14413-options{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.kv14413-options select{width:auto;font-size:12px}.kv14413-customerlabels,.kv14413-customerrow{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,.9fr) 40px;gap:12px;padding:14px 16px;text-align:left;border-top:1px solid var(--ws-line)}.kv14413-customerlabels{font-size:11px;color:var(--ws-quiet);padding-top:8px;padding-bottom:8px}.kv14413-customerrow>div{min-width:0}.kv14413-customerrow button{padding:0!important;min-height:24px!important;font-size:14px!important}.kv14413-customerrow [data-customer-open]{font-weight:500}.kv14413-customerrow small{margin-top:3px}.kv14413-followups{margin-top:14px;padding:16px;background:var(--ws-paper);border:1px solid var(--ws-line);border-radius:12px}.kv14413-followrow{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--ws-line)}
.kv14413-host .erp133-module-head{display:none}.kv14413-host .card,.kv14413-host .erp133-panel{border:1px solid var(--ws-line)!important;border-radius:12px!important;box-shadow:none!important;background:var(--ws-paper)!important;padding:16px;max-width:none!important;margin:0 0 14px!important}.kv14413-host .section-head{margin-bottom:14px}.kv14413-host .section-head h2{font-size:16px}.kv14413-host .section-head p{font-size:12px;color:var(--ws-quiet)}
.kv14413-host .kv-warehouse-body{width:100%!important;max-width:none!important;margin:0!important}.kv14413-host .kv-warehouse-areas,.kv14413-host .kv-warehouse-location-grid{display:flex!important;flex-direction:column;gap:0!important}.kv14413-host .kv-warehouse-area,.kv14413-host .kv-warehouse-location{border-bottom:1px solid var(--ws-line)!important;border-radius:0!important;width:100%!important;justify-content:space-between!important;flex-direction:row!important;min-height:50px!important;padding:14px 12px!important;box-shadow:none!important}.kv14413-host .kv-warehouse-area small,.kv14413-host .kv-warehouse-location small{display:block}.kv14413-host .kv-warehouse-area strong{font-weight:500}.kv14413-host .kv-warehouse-result{display:block!important;padding:14px 16px!important;border-bottom:1px solid var(--ws-line);border-radius:0;box-shadow:none!important}.kv14413-host .kv-warehouse-result-locations{margin-top:10px;display:flex;flex-direction:column;gap:5px}.kv14413-host .kv-warehouse-result-locations>button{justify-content:flex-start!important;font-size:12px!important}.kv14413-host .kv-warehouse-drilldown{grid-template-columns:minmax(0,.65fr) minmax(0,1.35fr)!important}
/* BUG-252: same renderer/head definitions for every article-list entry. */
#kvArticleResults .kv-table th,#kvArticleResults .kv-table td,.kv14413-host table th,.kv14413-host table td{ text-align:left!important;vertical-align:top;padding-inline:12px!important}.kv14413-quantity{display:block;font-variant-numeric:tabular-nums}.kv14413-quantity small{display:block;margin-top:2px;color:var(--p3-muted,#586a7e);font-size:11px;text-align:left}
@media(max-width:736px){.kv14413-heading{margin-bottom:14px}.kv14413-host h2{font-size:22px}.kv14413-layout{display:flex;flex-direction:column}.kv14413-content,.kv14413-tools{width:100%}.kv14413-tools{position:static;order:-1;display:none}.kv14413-tools.open{display:grid;grid-template-columns:1fr 1fr}.kv14413-subtools{grid-column:1/-1}.kv14413-subtools{display:grid;grid-template-columns:1fr 1fr}body #appView .kv14413-host .kv14413-mobile{display:inline-flex}body #appView .kv14413-host .kv14413-tool{flex-direction:row;justify-content:flex-start;min-height:44px;padding:8px;font-size:12px}.kv14413-quick{flex-wrap:wrap;padding:8px 12px 12px}.kv14413-quick input{flex-basis:100%}.kv14413-pair{grid-template-columns:1fr}.kv14413-customerlabels{display:none}.kv14413-customerrow{grid-template-columns:minmax(0,1fr) 40px;gap:8px}.kv14413-customerrow>div{grid-column:1}.kv14413-customerrow>button{grid-column:2;grid-row:1}.kv14413-options{width:100%}.kv14413-host input:not([type=hidden]),.kv14413-host select,.kv14413-host textarea{font-size:16px!important;min-height:44px}.kv14413-host .kv-warehouse-drilldown{grid-template-columns:1fr!important}.kv14413-search{flex-wrap:wrap}.kv14413-search input{flex-basis:100%}}

.kv14413-stocknumbers{display:flex;gap:18px;flex-wrap:wrap;margin:8px 0;font-size:13px}.kv14413-stocknumbers>span{min-width:100px}.kv14413-stock-details summary{font-size:12px;color:var(--ws-quiet);cursor:pointer;padding:8px 0}.kv14413-host [hidden]{display:none!important}.kv14413-customerlabels button{font-size:11px!important;min-height:24px!important;padding:0!important;color:var(--ws-quiet)!important}.kv14413-host .kv14413-customerrow [data-star]{min-height:40px!important;justify-content:center!important}.kv14413-host #kv14413Compose{margin-bottom:14px}#kvArticleResults .kv-table th,#kvArticleResults .kv-table td{padding-inline:12px!important;text-align:left!important}#kvArticleResults .kv-table td::before{text-align:left!important}
@media(max-width:736px){body #appView .kv14413-host button{min-height:44px}.kv14413-customerrow button{min-height:44px!important}.kv14413-notice-summary{min-height:44px}}

/* Match the confirmed customer proportions and typography in the real ERP frame. */
.kv14413-customerlabels,.kv14413-customerrow{grid-template-columns:minmax(0,1.2fr) minmax(0,1.1fr) minmax(0,1fr) 32px;gap:13px;padding:12px 16px;align-items:center}.kv14413-customerlabels{background:var(--ws-soft);padding:8px 16px}.kv14413-customerrow{min-height:100px}.kv14413-customerrow [data-document-open]{font-size:12px!important;color:var(--ws-brand)!important}.kv14413-customerrow>div:nth-child(3)>span{font-size:12px}.kv14413-tool[data-tool=new]{border-top:1px solid var(--ws-line)!important;border-radius:0!important;margin-top:8px}.kv14413-options select{max-width:155px;padding:7px}.kv14413-options button{font-size:12px!important;padding:6px 9px!important}.kv14413-host label.kv144-card-sort{font-size:12px}.kv14413-heading p{margin:0}
@media(max-width:736px){.kv14413-customerrow{grid-template-columns:minmax(0,1fr) 40px;min-height:100px}.kv14413-options select{max-width:100%;flex:1}.kv14413-customerlabels{display:none}}

/* One shared page title in the ERP frame, never a second title/card. */
body.kv145:is([data-kv14413-area=todos],[data-kv14413-area=exchange],[data-kv14413-area=customers],[data-kv14413-area=logistics]) #kv145Pagebar{border:0!important;background:transparent!important;padding:0!important;box-shadow:none!important;margin-bottom:12px}
body.kv145 #appView:has(#kv145Pagebar h2) .kv14413-heading h2{display:none}
body.kv145 #appView:has(#kv145Pagebar h2) .kv14413-heading{margin-bottom:14px}
.kv14413-toolcount{font-size:10px!important;line-height:1.3;color:var(--ws-quiet)}

/* Readable tool labels and stock rows use the approved compact list layout. */
body #appView .kv14413-host .kv14413-mobile{flex:none;white-space:nowrap;overflow-wrap:normal}
body #appView .kv14413-host .kv14413-mobile span,.kv14413-subtool span{overflow-wrap:normal;word-break:normal}
body #appView .kv14413-host .kv14413-subtool svg{width:14px;height:14px}
.kv14413-stocklabels,.kv14413-host .kv-warehouse-result.kv14413-stockrow{display:grid!important;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) 32px;gap:12px;align-items:start;padding:14px 16px!important;text-align:left;position:relative}
.kv14413-stocklabels{font-size:11px;color:var(--ws-quiet);background:var(--ws-soft);padding-block:8px!important}
.kv14413-stockarticle{min-width:0}.kv14413-stockarticle strong{font-weight:500;font-size:14px}
.kv14413-stockrow .kv14413-stocknumbers{display:contents}.kv14413-stockrow .kv14413-stocknumbers>span{min-width:0;font-size:14px;line-height:1.5}
.kv14413-stockrow .kv14413-stock-details{grid-column:1/-1}.kv14413-stockrow .kv14413-stock-details:not([open]){height:0}
.kv14413-stockrow .kv14413-stock-details summary{position:absolute;top:8px;right:12px;width:32px;min-height:40px;display:flex;justify-content:center;align-items:center;list-style:none;padding:4px;color:var(--ws-quiet)}
.kv14413-stockrow details[open] summary>span:last-child{transform:rotate(180deg)}
.kv14413-stockrow .kv-warehouse-result-locations{margin:0;padding-top:6px;border-top:1px solid var(--ws-line)}
.kv14413-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body #appView .kv14413-host .kv-warehouse-area{display:grid!important;grid-template-columns:28px minmax(0,1fr) auto;gap:9px;justify-content:start!important}
.kv14413-host .kv-warehouse-area b{grid-column:2;grid-row:1;font-weight:500;font-size:13px}.kv14413-host .kv-warehouse-area>small{grid-column:3;grid-row:1}.kv14413-host .kv-warehouse-area-count{display:none!important}
body #appView .kv14413-host .kv-stock-distributed-trigger{font-size:11px;min-height:28px;padding:3px 0;color:var(--ws-brand)}
@media(max-width:736px){.kv14413-stocklabels{display:none}.kv14413-host .kv-warehouse-result.kv14413-stockrow{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 32px;gap:8px;padding-inline:12px!important}.kv14413-stockarticle{grid-column:1/3}.kv14413-stockrow .kv14413-stocknumbers>span:before{content:attr(data-label);display:block;font-size:11px;color:var(--ws-quiet)}.kv14413-stockrow .kv14413-stock-details summary{min-height:44px}.kv14413-host .kv-warehouse-area>small{font-size:10px;max-width:100px}.kv14413-host .kv-warehouse-area-icon{width:28px}}
/* Source modules have id-scoped legacy styles; the shared frame wins on every entry. */
body #appView .kv14413-host .kv-warehouse-result.kv14413-stockrow{grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) 32px!important}
body #appView .kv14413-host .kv-warehouse-area{grid-template-rows:auto!important;align-items:center!important;min-height:50px!important}
body #appView .kv14413-host .kv-warehouse-area b{grid-column:2!important;grid-row:1!important;align-self:center;margin:0!important;font-size:13px!important}
body #appView .kv14413-host .kv-warehouse-area>small{grid-column:3!important;grid-row:1!important;white-space:nowrap}
body #appView .kv14413-host .kv-warehouse-area-icon{grid-column:1!important;grid-row:1!important;width:28px!important;height:28px!important;padding:5px!important}
body #appView .kv14413-host .kv-stock-distributed-trigger{width:auto!important;height:auto!important;white-space:nowrap!important;overflow-wrap:normal;font-size:11px!important;min-height:28px;padding:3px 0!important;color:var(--ws-brand)}
body #appView .kv14413-host button.primary{background:var(--ws-brand)!important;color:#fff!important;font-size:14px!important;font-weight:500!important;border-color:var(--ws-brand)!important;box-shadow:none!important}
@media(max-width:736px){body #appView .kv14413-host .kv-warehouse-result.kv14413-stockrow{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 32px!important}.kv14413-stocklabels{display:none!important}.kv14413-stockrow .kv-warehouse-result-locations>button{flex-wrap:wrap;width:100%;gap:4px!important}.kv14413-stockrow .kv-warehouse-result-locations>button>span,.kv14413-stockrow .kv-warehouse-result-locations>button>b{white-space:nowrap}.kv14413-stockrow .kv-warehouse-result-locations>button>small{flex-basis:100%}.kv14413-host .kv-warehouse-area>small{white-space:normal!important}}
@media(max-width:736px){body #appView .kv14413-host .kv14413-stockrow .kv14413-stockarticle{grid-column:1/3!important;grid-row:1!important}body #appView .kv14413-host .kv14413-stockrow .kv14413-stocknumbers>span:first-child{grid-column:1!important;grid-row:2!important}body #appView .kv14413-host .kv14413-stockrow .kv14413-stocknumbers>span:last-child{grid-column:2!important;grid-row:2!important}body #appView .kv14413-host .kv14413-stockrow .kv14413-stock-details{grid-column:1/-1!important;grid-row:3!important}}
