/* Oct 15: presentation scoped to the approved inventory/chat changes. */
td[data-publication] .small-btn{display:block;margin-top:8px;white-space:normal;min-height:40px;line-height:1.4}
.completed-summary-controls :is(input,select,button){box-sizing:border-box;font:inherit;font-size:14px;border:1px solid #ccd9eb;border-radius:7px;background:#fff;color:#16365c;padding:8px 12px;min-width:0}.completed-summary-controls button{cursor:pointer;background:#f4f8ff}.completed-summary-controls :is(input,select):focus-visible{outline:2px solid #1769ff;outline-offset:1px}.completed-summary-controls label{font-size:12px!important}
.upload-link-check{display:flex;align-items:center;border:1px solid #cbd8eb;border-radius:8px;overflow:hidden;background:#fff}.upload-link-check input{border:0!important;min-width:0;flex:1}.upload-link-check button{align-self:stretch;border:0;border-left:1px solid #cbd8eb;color:#1769ff;background:#eef5ff;white-space:nowrap;padding:0 14px}.upload-link-check.duplicate{border:2px solid #e5484d;background:#fff7f7}.image-analysis-trigger{position:absolute;bottom:4px;right:4px;border:1px solid #d5dfed;background:white;border-radius:5px;min-width:32px;min-height:28px}.image-analysis-menu{position:fixed;z-index:100000;background:#fff;padding:6px;border:1px solid #d5dfed;border-radius:8px;box-shadow:0 4px 20px #15345422}.image-analysis-menu button{border:0;background:white;min-height:42px;padding:8px 22px;color:#174b82}
.transaction-customer{font-size:12px;line-height:1.6;margin-top:5px;color:#52647c}.transaction-customer.new{color:#0b7f64}.transaction-customer.existing{color:#6553b9}.partner-delete-toolbar{display:flex;align-items:center;gap:14px;padding:12px 16px;background:#f7faff;border:1px solid #dce6f3;border-radius:8px;margin:12px 0}.partner-delete-toolbar[hidden],.completed-summary[hidden]{display:none}.partner-delete-toolbar label{display:flex;gap:8px;align-items:center}.partner-delete-toolbar input,.partner-select{width:16px!important;height:16px!important;margin-right:8px}.partner-delete-toolbar button{border:1px solid #ffb7be;color:#d83f4f;background:#fff7f7;border-radius:6px;padding:8px 12px}.partner-delete-toolbar button:disabled{opacity:.45}.completed-summary{padding:16px;background:white;border:1px solid #dce6f3;border-radius:12px;margin:12px 0}.completed-summary-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.completed-summary-controls label{display:grid;gap:6px;min-width:145px;flex:1;font-size:12px;color:#52647c}.completed-summary-controls select,.completed-summary-controls input{width:100%;height:40px}.completed-summary-controls button{height:40px}.completed-summary-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}.completed-summary-cards article{padding:16px;border-radius:8px;background:#eff5ff;border-top:3px solid #3178e8}.completed-summary-cards article:nth-child(2){background:#effaf5;border-color:#13a174}.completed-summary-cards article:nth-child(3){background:#f6f1ff;border-color:#8d64d4}.completed-summary-cards span{display:block;font-size:13px;color:#52647c}.completed-summary-cards strong{display:block;font-size:21px;line-height:1.7}.completed-summary p{font-size:12px;color:#6c7b91;margin-bottom:0}.oct15-dialog{border:1px solid #dce6f3;border-radius:14px;padding:24px;width:min(440px,calc(100vw - 32px));box-sizing:border-box}.oct15-dialog::backdrop{background:#10243c66}.oct15-dialog label{display:grid;gap:8px;margin:16px 0}.oct15-dialog input,.oct15-dialog textarea{width:100%;box-sizing:border-box}.oct15-dialog button{min-height:42px;margin:8px 8px 0 0}.oct15-dialog p{color:#d63e4f}
@media(max-width:767px){.completed-summary-controls label{min-width:40%;width:40%}.completed-summary-cards{grid-template-columns:1fr}.partner-delete-toolbar{gap:8px;flex-wrap:wrap}.image-analysis-trigger{min-width:40px;min-height:36px}.upload-link-check button{padding:0 10px;min-height:44px}}
#app .topbar .logo-area{cursor:pointer}#app .topbar .logo-area:focus-visible{outline:2px solid #1769ff;outline-offset:-3px}#app .topbar .logo-area[aria-busy=true]{opacity:.6;cursor:progress}
.margin-positive{color:#e5484d!important;font-weight:700}.margin-negative{color:#0a9966!important;font-weight:700}.margin-zero{color:#8793a3!important;font-weight:700}
.chat-contact-toolbar{display:flex;gap:12px;justify-content:flex-end;padding:8px 16px;background:#fff;border-bottom:1px solid #e1e7ef}.chat-contact-call{display:inline-flex;gap:7px;align-items:center;min-height:40px;border:0;background:transparent;color:#1769ff;cursor:pointer;font-size:14px}.chat-contact-call svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}.chat-contact-call:disabled{opacity:.45;cursor:default}
.trade-chat-message>p,.trade-chat-composer textarea{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif!important;font-size:16px!important;line-height:1.6!important;font-weight:400!important}.trade-chat-message.mine{background:#d9f7b8!important}.chat-message-meta{font-size:12px!important;line-height:1.5}.chat-message-meta small{font-size:12px}.chat-message-menu button{min-height:40px}
@media(min-width:768px){
 :is(#todayInventory,#purchaseResourceLibrary) .inventory-filter-unified.admin-single-filter{grid-template-columns:minmax(220px,360px) 145px 125px 140px 125px 106px 72px!important;justify-content:start;align-items:end!important}
 .inventory-filter-unified .inventory-filter-search{max-width:380px}.inventory-filter-unified>.inventory-filter-reset{width:auto!important;min-width:64px}
 #todayInventory .today-inventory-table{table-layout:fixed;min-width:1180px}
 #todayInventory .today-inventory-table th:nth-child(1){width:270px}#todayInventory .today-inventory-table th:nth-child(2){width:95px}#todayInventory .today-inventory-table th:nth-child(3){width:95px}#todayInventory .today-inventory-table th:nth-child(4){width:115px}#todayInventory .today-inventory-table th:nth-child(5){width:155px}#todayInventory .today-inventory-table th:nth-child(6){width:130px}#todayInventory .today-inventory-table th:nth-child(7){width:95px}#todayInventory .today-inventory-table th:nth-child(8){width:220px}
 #todayInventory .today-product-name{overflow-wrap:anywhere}#todayInventory .today-inventory-table [data-publication-actions]{white-space:normal}
}
@media(max-width:767px){
 :is(#todayInventory,#purchaseResourceLibrary) .inventory-filter-unified.admin-single-filter{grid-template-columns:repeat(2,minmax(0,1fr))!important;overflow:visible!important;gap:10px!important}
 :is(#todayInventory,#purchaseResourceLibrary) .inventory-filter-unified.admin-single-filter>:not(.inventory-filter-extra){grid-row:auto!important;grid-column:auto!important;min-width:0!important}
 :is(#todayInventory,#purchaseResourceLibrary) .inventory-filter-unified.admin-single-filter>.inventory-filter-search{grid-column:1/-1!important;max-width:none!important;min-width:0!important}
 :is(#todayInventory,#purchaseResourceLibrary) .inventory-filter-unified.admin-single-filter>.inventory-filter-extra{grid-row:auto!important;grid-column:1/-1!important}
 #todayInventory .today-inventory-table td:nth-child(7){grid-column:1/-1!important;grid-row:5!important}
 #todayInventory .today-inventory-table td:nth-child(8){grid-column:1/-1!important;grid-row:6!important;display:flex!important;gap:8px;flex-wrap:wrap}
 #todayInventory .today-inventory-table td:nth-child(8):before{display:none!important}#todayInventory .today-inventory-table td:nth-child(8) button{min-height:44px;flex:1;margin:0}
 .chat-contact-call{min-height:44px}.trade-chat-message>p{font-size:17px!important}
}

/* Administrator inventory resources only: compact controls and responsive outer layout. */
#purchaseResourceLibrary .inventory-filter-unified.boss-resource-filter{
 display:flex!important;flex-wrap:nowrap;align-items:flex-end!important;justify-content:flex-start!important;
 gap:12px!important;padding:12px!important;overflow:visible!important;
}
#purchaseResourceLibrary .boss-resource-filter> :not(.inventory-filter-extra){
 flex:1 1 130px;min-width:100px!important;max-width:130px;margin:0!important;
 padding:0;grid-column:auto!important;grid-row:auto!important;align-self:flex-end;
}
#purchaseResourceLibrary .boss-resource-filter>.inventory-filter-search{flex:0 1 320px;min-width:220px!important;width:320px!important;max-width:320px!important;height:40px!important}
#purchaseResourceLibrary .boss-resource-filter>label{gap:6px}
#purchaseResourceLibrary .boss-resource-filter input,
#purchaseResourceLibrary .boss-resource-filter select,
#purchaseResourceLibrary .boss-resource-filter button{height:40px!important;min-height:40px!important;box-sizing:border-box}
#purchaseResourceLibrary .boss-resource-filter>.inventory-filter-toggle{flex:0 0 106px;padding:0 10px}
#purchaseResourceLibrary .boss-resource-filter>.inventory-filter-reset{flex:0 0 64px;width:64px!important;min-width:64px!important;padding:0 10px}
#purchaseResourceLibrary .boss-resource-filter .inventory-filter-clear{top:0;height:40px!important}
#purchaseResourceLibrary .boss-resource-filter .inventory-search-icon{top:7px}
#purchaseResourceLibrary .boss-resource-filter>.inventory-filter-extra{flex:1 0 100%;min-width:0;width:100%;padding:12px;gap:12px}
#purchaseResourceLibrary .boss-resource-filter>.inventory-filter-extra[hidden]{display:none!important}
@media(max-width:767px){
 #purchaseResourceLibrary .inventory-filter-unified.boss-resource-filter{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
 #purchaseResourceLibrary .boss-resource-filter>.inventory-filter-search{grid-column:1/-1!important;width:100%!important;max-width:none!important}
 #purchaseResourceLibrary .boss-resource-filter> :not(.inventory-filter-search):not(.inventory-filter-extra){width:100%!important;max-width:100%;grid-column:auto!important;grid-row:auto!important}
 #purchaseResourceLibrary .boss-resource-filter>.inventory-filter-extra{grid-column:1/-1!important;grid-template-columns:minmax(0,1fr)!important}
 #purchaseResourceLibrary .boss-resource-filter .inventory-date-range{grid-template-columns:minmax(0,1fr)}
}

@media(min-width:768px) and (max-width:1100px){#purchaseResourceLibrary .inventory-filter-unified.boss-resource-filter{flex-wrap:wrap}}
#purchaseResourceLibrary .boss-resource-filter.filters-expanded{flex-wrap:wrap}
#purchaseResourceLibrary .boss-resource-filter>label{text-align:left;align-items:stretch} #purchaseResourceLibrary .boss-resource-filter>label>span{text-align:left;width:100%}
