#offersView .offer-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:6px 0 16px}
#offersView input,#offersView select{padding:11px 12px;border:1px solid var(--line);border-radius:7px;background:#fff;min-width:180px;font:inherit;font-size:12px}
#offersView .offer-toolbar input{flex:1}:is(#offersView,#sendOfferView) .offer-tabs{display:flex;gap:8px;margin:20px 0}
#offersView .offer-toolbar .account-multi-trigger{min-width:180px;min-height:42px}#offersView .offer-toolbar .account-multi{flex:0 0 auto}
:is(#offersView,#sendOfferView) .offer-tabs button{padding:11px 20px;border:1px solid var(--line);background:#fff;border-radius:7px;color:#657168;font:inherit;font-size:13px;font-weight:600}
:is(#offersView,#sendOfferView) .offer-tabs button.active{background:#202622;color:#fff;border-color:#202622}
#offersView .offer-panel{background:white;border:1px solid var(--line);border-radius:12px;padding:20px}
#offersView table{width:100%;border-collapse:collapse;font-size:12px}#offersView th{text-align:left;padding:13px 12px;background:#f5f6f4;color:#667169;font-size:11px;font-weight:600}
#offersView td{padding:14px 12px;border-bottom:1px solid var(--line);vertical-align:middle}#offersView td:nth-child(2){min-width:180px;max-width:360px;line-height:1.6;white-space:normal;overflow-wrap:anywhere}#offersView td:first-child{width:92px}#offersView td:nth-child(3){min-width:110px;white-space:normal;overflow-wrap:anywhere}
#offersView td:last-child,#offersView th:last-child{text-align:right}#offersView small{display:block;font-size:10px;color:#7b857e;margin-top:6px;overflow-wrap:anywhere}
.offer-price{font-weight:700;font-size:14px;white-space:nowrap}.offer-account-name{display:inline-block;background:#f1f4f0;border:1px solid #dce3d9;border-radius:5px;padding:5px 8px;font-size:11px;font-weight:600;white-space:normal;overflow-wrap:anywhere;max-width:100%;box-sizing:border-box}
#offersView button:disabled,#offerDialog button:disabled{opacity:.55;cursor:default}.offer-action{min-width:80px;background:#202622;color:white;border-color:#202622}
.offer-badge{display:inline-block;background:#eef2ec;color:#435d43;padding:5px 8px;border-radius:5px;font-size:11px}
.offer-error{color:#a43f30!important}#offerStatus{font-size:12px;color:#667169;line-height:1.7;margin:12px 0;overflow-wrap:anywhere}
#offerPagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:18px;font-size:12px}
.offer-product-photo{width:72px;height:72px;display:grid;place-items:center;border:1px solid #e3e7e1;border-radius:8px;background:#f7f8f5;overflow:hidden;flex-shrink:0}.offer-product-photo img{width:100%;height:100%;object-fit:contain}.offer-photo-fallback{padding:5px;text-align:center;color:#879083;font-size:10px;line-height:1.5}
#offerDialog{box-sizing:border-box;border:1px solid var(--line);border-radius:14px;padding:24px;width:min(650px,calc(100vw - 28px));max-height:90vh;color:#29352d;background:#fff}
#offerDialog::backdrop{background:#15201780}.offer-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:16px}#offerDialog h2{font-size:20px;margin:0}.offer-dialog-head button{font-size:22px;line-height:1;padding:6px 10px}#offerDialogItem{font-size:12px;color:#748078;overflow-wrap:anywhere;margin:6px 0 20px}
.offer-summary-product{display:flex;align-items:center;gap:16px;padding-bottom:20px;border-bottom:1px solid #e3e7e1}.offer-summary-product .offer-product-photo{width:100px;height:100px}.offer-summary-product strong{font-size:15px;line-height:1.7}.offer-summary-product small{display:block;margin-top:8px;color:#748078;font-size:12px}
.offer-summary-facts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.offer-summary-facts>div{padding:14px;border-radius:8px;background:#f5f6f3}.offer-summary-facts dt{font-size:12px;color:#75806f;margin-bottom:8px}.offer-summary-facts dd{margin:0;font-size:17px;font-weight:650;overflow-wrap:anywhere}.offer-summary-facts dd small{display:block;font-size:11px;font-weight:400;color:#7b857e;margin-top:6px}.offer-summary-facts .offer-buyer-price{background:#edf3e8}.offer-buyer-message,.offer-detail-state{font-size:12px;line-height:1.7;color:#657168}
#offerForm{display:grid;gap:14px;margin:20px 0;padding:18px;border:1px solid #dfe5da;border-radius:8px}#offerForm label{display:grid;gap:7px;font-size:12px}#offerForm input,#offerForm textarea{box-sizing:border-box;width:100%;border:1px solid #d8ded8;border-radius:7px;padding:10px;font:inherit}
#offerReview{background:#f4f6f2;padding:16px;border-radius:8px;line-height:1.7;overflow-wrap:anywhere}#offerReview:empty{display:none}#offerReview h3{font-size:15px;margin:0 0 8px}#offerReview p{font-size:12px;margin:5px 0}
.offer-decisions{display:grid;grid-template-columns:1fr 1.35fr 1fr;gap:8px;margin-top:24px}.offer-decisions .btn{min-height:44px;white-space:normal;padding:10px;font-size:12px}.offer-decline{color:#a24738;border-color:#dfbfb7!important}#offerDialog .offer-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
#offerEmpty{padding:42px 12px;text-align:center;color:#7b857e;font-size:12px}#offerDialog [hidden],#offersView [hidden]{display:none!important}
@media(max-width:700px){#offersView .offer-panel{padding:12px}#offersView .offer-toolbar>*{width:100%;flex:1 0 100%;box-sizing:border-box}:is(#offersView,#sendOfferView) .offer-tabs button{flex:1}#offersView table{min-width:650px}.offer-summary-product .offer-product-photo{width:80px;height:80px}#offerDialog{padding:18px}.offer-summary-facts{gap:8px}.offer-summary-facts>div{padding:12px}.offer-summary-facts dd{font-size:15px}.offer-decisions{grid-template-columns:1fr}.offer-summary-product strong{font-size:13px}}
@media(max-width:700px){#offersView .offer-toolbar .account-multi{flex:1 0 100%;width:100%}#offersView .offer-toolbar .account-multi-trigger{width:100%}}

/* Send Offer listing and trial composer. */
@font-face{font-family:OfferThaiUI;src:url('/thai-invoice-thai.woff2') format('woff2');font-display:swap}


#sendOfferView .sync-time{font-size:11px;color:#879087}#sendOfferView .sync-btn{background:#26352c;border:1px solid #26352c;color:white;border-radius:7px;padding:10px 17px;font:12px OfferThaiUI,Arial,sans-serif;display:flex;gap:8px;align-items:center}#sendOfferView .sync-btn span{font:20px OfferThaiUI,Arial;line-height:14px}#sendOfferView .so-panel{border:1px solid #dfe4dd;border-radius:11px;background:#fff;overflow:hidden}#sendOfferView .so-tools{display:flex;gap:12px;padding:20px;align-items:center;border-bottom:1px solid #edf0eb}#sendOfferView .so-search{border:1px solid #dfe4dd;border-radius:6px;padding:10px 13px;display:flex;align-items:center;gap:10px;flex:1;color:#8e968e;font-size:12px}#sendOfferView .so-search svg{width:15px;height:15px}#sendOfferView .so-filter{border:1px solid #dfe4dd;border-radius:6px;padding:10px 13px;font-size:12px;min-width:195px;display:flex;justify-content:space-between;gap:20px}#sendOfferView .so-filter small{font:11px OfferThaiUI,Arial;color:#89928a}#sendOfferView .so-summary{display:flex;justify-content:space-between;padding:17px 21px;font-size:12px;color:#7e887f;align-items:center}#sendOfferView .so-summary strong{font:600 13px OfferThaiUI,Arial;color:#303c33}#sendOfferView .so-summary .sep{margin:0 14px;color:#d1d7cf}#sendOfferView .eligible-note{display:flex;align-items:center;gap:7px;font-size:11px;color:#66806b}#sendOfferView .dot{width:6px;height:6px;background:#73967a;border-radius:50%;display:inline-block}#sendOfferView table{width:100%;border-collapse:collapse;table-layout:fixed}#sendOfferView thead{background:#f7f8f5}#sendOfferView th{text-align:left;font-size:10px;color:#7f897f;font-weight:500;padding:13px 12px;border-top:1px solid #edf0eb;border-bottom:1px solid #e6ebe3}#sendOfferView td{padding:17px 12px;border-bottom:1px solid #edf0eb;font-size:12px;vertical-align:middle}#sendOfferView .so-check{width:16px;height:16px;display:inline-block;border:1px solid #cbd3c8;border-radius:3px;background:#fff;vertical-align:middle}#sendOfferView .so-product-cell{display:flex;gap:13px;align-items:center}#sendOfferView .product-thumb{width:65px;height:65px;flex:0 0 65px;border:1px solid #e6e8e1;border-radius:7px;background:linear-gradient(140deg,#f9faf8,#eff1eb);display:grid;place-items:center}#sendOfferView .product-thumb svg{width:58px;height:50px}#sendOfferView .product-title{font:500 11px/1.65 OfferThaiUI,Arial,sans-serif;color:#33453a;margin-bottom:5px}#sendOfferView .product-id{font:10px OfferThaiUI,Arial;color:#969e94}#sendOfferView .sku-value{font:11px/1.6 OfferThaiUI,Arial;color:#566350;word-break:break-word}#sendOfferView .account-label{font:9px OfferThaiUI,Arial;letter-spacing:.15px;display:inline-block;padding:5px 6px;background:#f4f5ef;border:1px solid #e6e8df;border-radius:4px;color:#68705a}#sendOfferView .price{text-align:right;font:600 12px OfferThaiUI,Arial;color:#2e3c31}#sendOfferView .price small{display:block;margin-top:6px;color:#939b90;font:9px OfferThaiUI,Arial}#sendOfferView .qty{text-align:center;font:12px OfferThaiUI,Arial}#sendOfferView .eligible-badge{font-size:10px;color:#5a7b60;background:#eff5ee;border:1px solid #e1ecdf;border-radius:5px;padding:5px 8px;white-space:nowrap}#sendOfferView .design-caption{font-size:10px;color:#9ba292;margin-top:13px;display:flex;align-items:center;gap:6px}
#sendOfferView .send-offer-action{border:1px solid #b9c5b6;background:#fff;color:#344b38;border-radius:18px;padding:7px 12px;font:11px OfferThaiUI,Arial,sans-serif;white-space:nowrap}#sendOfferView .action-cell{text-align:right}#sendOfferView .product-title{overflow-wrap:anywhere;white-space:normal}#sendOfferView .so-product-cell>div:last-child{min-width:0}
#sendOfferPreviewDialog{padding:0;border:1px solid #dce2d8;border-radius:14px;width:min(1040px,calc(100vw - 48px));max-height:92vh;box-shadow:0 24px 80px #111e2533;color:#2b382f;background:#fff;font-family:OfferThaiUI,Arial,sans-serif,sans-serif}#sendOfferPreviewDialog::backdrop{background:#18221b66;backdrop-filter:blur(2px)}#sendOfferPreviewDialog *{box-sizing:border-box}#sendOfferPreviewDialog .sd-header{padding:25px 28px 21px;display:flex;justify-content:space-between;align-items:flex-start}#sendOfferPreviewDialog h2{font:600 23px OfferThaiUI,Arial;margin:0 0 8px;letter-spacing:-.4px}#sendOfferPreviewDialog .sd-subtitle{margin:0;color:#899285;font-size:12px}#sendOfferPreviewDialog .sd-close{width:30px;height:30px;display:grid;place-items:center;background:#f4f6f1;border:0;border-radius:50%;font:21px OfferThaiUI,Arial;color:#6e7869}#sendOfferPreviewDialog .sd-body{display:grid;grid-template-columns:1.17fr 1fr;min-height:535px;padding:0 28px 27px;gap:27px}#sendOfferPreviewDialog .sd-form{padding-right:27px;border-right:1px solid #e3e8df}#sendOfferPreviewDialog .sd-label{display:block;font-size:13px;font-weight:600;margin-bottom:10px}#sendOfferPreviewDialog .sd-info{display:inline-grid;place-items:center;border:1px solid #a6afa0;border-radius:50%;width:13px;height:13px;font:9px OfferThaiUI,Arial;color:#89927f;margin-left:4px;vertical-align:middle}#sendOfferPreviewDialog .sd-discount{display:grid;grid-template-columns:1fr 1fr;gap:12px}#sendOfferPreviewDialog .sd-field{display:grid;gap:6px;font-size:11px;color:#77816f}#sendOfferPreviewDialog select,#sendOfferPreviewDialog input[type=number],#sendOfferPreviewDialog textarea{width:100%;font:12px OfferThaiUI,Arial,sans-serif;color:#31402e;border:1px solid #d3dbcd;border-radius:6px;background:#fff;padding:10px 11px;outline:none;min-height:39px}#sendOfferPreviewDialog .sd-amount{position:relative}#sendOfferPreviewDialog .sd-amount input{padding-right:32px;background:#fafbf8}#sendOfferPreviewDialog .sd-unit{position:absolute;right:13px;top:11px;color:#7f8c73;font:13px OfferThaiUI,Arial}#sendOfferPreviewDialog .sd-block{margin-top:30px}#sendOfferPreviewDialog .sd-check{display:flex;align-items:flex-start;gap:10px;font-size:12px;font-weight:600}#sendOfferPreviewDialog input[type=checkbox]{width:15px;height:15px;margin:2px 0 0;accent-color:#334b37;flex-shrink:0}#sendOfferPreviewDialog .sd-help{font-weight:400;font-size:10px;color:#8e9786;line-height:1.7;margin:4px 0 0}#sendOfferPreviewDialog .sd-help a{color:#6d7f60;text-decoration:underline;margin-left:5px}#sendOfferPreviewDialog .sd-duration{margin:15px 0 0 25px;width:calc(100% - 25px)}#sendOfferPreviewDialog .sd-message{margin-top:33px}#sendOfferPreviewDialog textarea{resize:none;min-height:116px;line-height:1.8;background:#fafbf8}#sendOfferPreviewDialog .sd-message-foot{display:flex;justify-content:space-between;font-size:9px;color:#969f8d;margin-top:7px}#sendOfferPreviewDialog .sd-selection-title{display:flex;justify-content:space-between;align-items:center;padding-bottom:15px;border-bottom:1px solid #e3e8df;font-size:13px;font-weight:600}#sendOfferPreviewDialog .sd-account{font:9px OfferThaiUI,Arial;color:#7b876f;background:#f2f4ed;padding:5px 7px;border:1px solid #e3e8dc;border-radius:4px}#sendOfferPreviewDialog .sd-tabs{display:flex;gap:7px;margin:17px 0 14px;font:10px OfferThaiUI,Arial}#sendOfferPreviewDialog .sd-tab{padding:7px 11px;border:1px solid #e2e7dc;border-radius:20px;color:#a0a793}#sendOfferPreviewDialog .sd-tab.active{border-color:#6f8663;color:#425e34;background:#f6f8f2;font-weight:600}#sendOfferPreviewDialog .sd-ready{font-size:10px;color:#75896a;display:flex;align-items:center;gap:6px;margin-bottom:17px}#sendOfferPreviewDialog .sd-ready i{width:6px;height:6px;border-radius:50%;background:#789c69}#sendOfferPreviewDialog .sd-product{display:flex;gap:14px;align-items:flex-start}#sendOfferPreviewDialog .sd-photo{width:96px;height:96px;flex:0 0 96px;border:1px solid #e2e6dc;background:linear-gradient(135deg,#fafbf7,#efeee9);border-radius:8px;display:grid;place-items:center}#sendOfferPreviewDialog .sd-photo svg{width:90px;height:75px}#sendOfferPreviewDialog .sd-product-title{font:12px/1.7 OfferThaiUI,Arial;color:#41553a;margin:0 0 8px;text-decoration:underline;text-underline-offset:3px}#sendOfferPreviewDialog .sd-meta{font:10px/1.9 OfferThaiUI,Arial;color:#969e8c}#sendOfferPreviewDialog .sd-current{font-size:12px;margin-top:17px}#sendOfferPreviewDialog .sd-current strong{font:600 15px OfferThaiUI,Arial;color:#354a2b}#sendOfferPreviewDialog .sd-price-preview{margin-top:23px;padding:16px;background:#f6f8f2;border:1px solid #e4eade;border-radius:8px}#sendOfferPreviewDialog .sd-price-line{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#7e8b73}#sendOfferPreviewDialog .sd-price-line strong{font:600 21px OfferThaiUI,Arial;color:#3a572d}#sendOfferPreviewDialog .sd-savings{text-align:right;font-size:10px;color:#7b966a;margin-top:8px}#sendOfferPreviewDialog .sd-provider-note{font-size:10px;color:#929d87;line-height:1.8;margin-top:15px}#sendOfferPreviewDialog .sd-footer{border-top:1px solid #e5eadd;display:flex;align-items:center;justify-content:space-between;padding:18px 28px;background:#fdfefb}#sendOfferPreviewDialog .sd-draft{font-size:10px;color:#9b9f8e}#sendOfferPreviewDialog .sd-footer-actions{display:flex;gap:9px}#sendOfferPreviewDialog .sd-btn{padding:10px 20px;border:1px solid #cfd8c7;border-radius:7px;background:white;color:#75836a;font:12px OfferThaiUI,Arial,sans-serif}#sendOfferPreviewDialog .sd-primary{color:#fff;background:#30462f;border-color:#30462f}#sendOfferPreviewDialog .sd-primary span{margin-left:8px;color:#c4d2bb} @media(max-width:700px){#sendOfferPreviewDialog .sd-body{grid-template-columns:1fr;min-height:0}#sendOfferPreviewDialog .sd-form{border-right:0;padding:0}#sendOfferPreviewDialog .sd-footer{gap:12px;flex-wrap:wrap}}

#sendOfferView .so-table-scroll{overflow-x:auto}#sendOfferView table{min-width:1000px}#sendOfferView .so-status{font-size:11px;color:#7d8877;padding:0 20px;line-height:1.8;overflow-wrap:anywhere}#sendOfferView .so-status.error{color:#a74736}#sendOfferView .so-filter select,#sendOfferView .so-search input{width:100%;border:0;outline:0;font:inherit;background:transparent;min-width:0}#sendOfferView .so-filter{padding:0;min-width:170px}#sendOfferView .so-filter select{padding:10px}#sendOfferView .so-empty{padding:35px;text-align:center;font-size:12px;color:#7f8d76}#sendOfferView .so-check{accent-color:#30462f}#sendOfferView button:disabled{opacity:.5;cursor:default}#sendOfferPreviewDialog .sd-primary:disabled{opacity:.45;cursor:not-allowed}#sendOfferPreviewDialog .sd-photo img{width:100%;height:100%;object-fit:contain;border-radius:8px}#sendOfferPreviewDialog .sd-selection-products{max-height:250px;overflow:auto;display:grid;gap:16px}#sendOfferView .product-thumb img{width:100%;height:100%;object-fit:contain;border-radius:7px}#sendOfferView .product-thumb{font-size:10px;color:#8e9787;text-align:center}#sendOfferView .so-summary{flex-wrap:wrap;gap:12px}#sendOfferPreviewDialog .sd-provider-note{margin-bottom:0}@media(max-width:700px){#sendOfferView .so-tools{flex-wrap:wrap}#sendOfferView .so-search{flex-basis:100%}#sendOfferView .so-filter{flex:1}#sendOfferPreviewDialog{width:calc(100vw - 20px)}#sendOfferPreviewDialog .sd-header{padding:20px}#sendOfferPreviewDialog .sd-body{padding:0 20px 20px}#sendOfferPreviewDialog .sd-summary{border-top:1px solid #e3e8df;padding-top:20px}}


#sendOfferView .so-filter .account-multi{width:100%;min-width:0}#sendOfferView .so-filter .account-multi-trigger{width:100%;min-height:39px;border:0;background:transparent;padding:10px 13px;text-align:left;border-radius:6px;font-size:12px}

#sendOfferView [hidden]{display:none!important}#sendOfferView .so-tools{flex-wrap:wrap}#sendOfferView .so-bulk{background:#202622;border-color:#202622}#sendEligibleSelectedCount{font-weight:600;color:#344b38}

#sendOfferView .product-thumb{white-space:normal;overflow-wrap:anywhere;overflow:hidden;line-height:1.4}

#sendEligiblePagination{margin:0;border:0;border-top:1px solid var(--line);border-radius:0}#sendEligiblePagination button{font-family:inherit}

#sendOfferView .so-selection-summary{display:flex;align-items:center;flex-wrap:wrap;gap:5px}#sendOfferView .so-selection-summary .so-bulk{margin-left:10px;padding:9px 14px;font-size:11px}#sendOfferPreviewDialog [hidden]{display:none!important}#sendOfferPreviewDialog .sd-error{color:#a74736}#sendOfferPreviewDialog .sd-result{font-size:11px;line-height:1.6;overflow-wrap:anywhere}#sendOfferPreviewDialog .sd-draft{max-width:60%;line-height:1.6;overflow-wrap:anywhere}#sendOfferPreviewDialog button:disabled{opacity:.5;cursor:default}@media(max-width:700px){#sendOfferView .so-selection-summary{gap:6px}#sendOfferPreviewDialog .sd-draft{max-width:100%}}

/* Incoming offers: only the current decision carries its action color. */
body.authed #offerDialog #offerDecisionActions .btn{background:#f2f4f3!important;color:#354039!important;border:1px solid #cbd3ce!important;box-shadow:none}
body.authed #offerDialog #offerDecisionActions [aria-pressed="true"]{color:#fff!important;font-weight:700;box-shadow:0 0 0 2px #fff,0 0 0 4px currentColor}
body.authed #offerDialog #offerDecisionActions [data-offer-decision="Accept"][aria-pressed="true"]{background:#237447!important;border-color:#237447!important}
body.authed #offerDialog #offerDecisionActions [data-offer-decision="Counter"][aria-pressed="true"]{background:#8a6419!important;border-color:#8a6419!important}
body.authed #offerDialog #offerDecisionActions [data-offer-decision="Decline"][aria-pressed="true"]{background:#b33b35!important;border-color:#b33b35!important}
#offerDialog #offerDecisionActions .btn:focus-visible{outline:3px solid #26352c;outline-offset:3px}
