.save-original{display:none!important}.save-toolbar{position:sticky;top:12px;z-index:25;display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin:0 0 16px;padding:10px 12px;background:rgba(255,255,255,.96);border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 6px 24px #102d5012;backdrop-filter:blur(10px)}.btn.save-primary{background:#df1938;color:#fff;border:1px solid #df1938;box-shadow:0 4px 12px #df193825;font-weight:650;min-height:44px;padding:11px 20px}.btn.save-primary:hover:not(:disabled){background:#bc1230;border-color:#bc1230}.btn.save-primary:disabled{opacity:.5;cursor:wait}.save-primary:focus-visible{outline:3px solid #102d50;outline-offset:3px}@media(max-width:600px){.save-toolbar{top:6px;padding:8px}.save-toolbar .btn{flex:1}}@media print{.save-toolbar{display:none}}
.btn.save-delete{background:#fff;color:#c5223d;border:1px solid #d8324c;min-height:44px;padding:11px 20px;font-weight:600}.btn.save-delete:hover:not(:disabled){background:#fff0f3}.btn.save-delete:focus-visible{outline:3px solid #102d50;outline-offset:3px}
.buyer-copy-field{display:flex;align-items:center;gap:6px;min-width:0}
.buyer-copy-field input{min-width:0;flex:1;width:100%}
.buyer-copy-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;height:32px;border:1px solid #dce2ea;border-radius:8px;background:#fff;color:#52647d;cursor:pointer;padding:0}
.buyer-copy-button:hover{background:#edf2f8;color:#061b36}
.buyer-copy-button:focus-visible{outline:2px solid #df1938;outline-offset:2px}
.buyer-copy-status{display:block;font-size:13px;color:#52647d;margin-top:8px}
.buyer-contact-row{display:grid;grid-template-columns:2fr 1.5fr 80px 2fr 44px;gap:10px;align-items:end;margin-bottom:12px}
.buyer-contact-row input{width:100%;min-width:0}.buyer-contacts{margin:18px 0}.buyer-copy-field textarea{flex:1;min-width:0;width:100%;resize:vertical}
.buyer-danger-zone{margin:24px 0;padding:20px;border-top:1px solid #e7e9ed}.buyer-delete{background:#ffdf7b;color:#5d4300;border:1px solid #deb749;border-radius:10px;padding:12px 18px;font-weight:600;cursor:pointer}.buyer-delete:hover{background:#ffd25c}
@media(max-width:850px){.buyer-contact-row{grid-template-columns:1fr 1fr}.buyer-contact-row button{justify-self:start}}
.buyer-toast{position:fixed;top:24px;right:24px;z-index:10000;background:#e9f8ee;color:#166534;border:1px solid #86d5a1;border-radius:12px;padding:18px 24px;box-shadow:0 8px 30px #163e2420;font-weight:650;max-width:calc(100vw - 48px)}
.buyer-manager-summary{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0 24px}.buyer-manager-summary span{background:#f2f5f9;border-radius:9px;padding:10px 14px;color:#42526a}
.buyer-status-options{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.buyer-status-chip{border:1px solid #dde3ec;background:white;color:#46546a;border-radius:20px;padding:8px 12px;cursor:pointer;font:inherit;font-size:13px}.buyer-status-chip[aria-pressed=true]{background:#edf5f0;border-color:#6caa83;color:#205638;box-shadow:0 0 0 1px #6caa83}.buyer-status-chip:focus-visible{outline:2px solid #061b36;outline-offset:2px}
.buyer-group{padding:18px;background:#f6f8fb;border:1px solid #e5eaf1;border-radius:12px;margin:8px 0}.buyer-dialog{width:min(520px,calc(100vw - 32px));max-height:85vh;overflow:auto;border:1px solid #dce3ec;border-radius:16px;padding:24px;box-shadow:0 24px 80px #061b3630;color:#061b36}.buyer-dialog::backdrop{background:#061b3655}.buyer-dialog .dialog-body{display:grid;gap:14px;margin:18px 0}.buyer-dialog label{display:grid;gap:6px}.buyer-dialog select,.buyer-dialog input,.buyer-dialog textarea{width:100%;box-sizing:border-box}.buyer-header-actions{flex-wrap:wrap}
.save-toolbar .buyer-delete{background:#ffdf7b;color:#5d4300;border:1px solid #deb749}
#buyer-form > label.wide{display:grid;gap:8px;margin:22px 0 8px;font-size:13px;color:#435064}
#buyer-form > label.wide textarea{display:block;width:100%;min-height:120px;resize:vertical;box-sizing:border-box;border:1px solid #cfd7e4;border-radius:8px;background:#fff;color:#162b43;padding:12px;font:inherit;line-height:1.5}
#buyer-form > label.wide textarea:focus{outline:2px solid #102d50;outline-offset:2px;border-color:#102d50}
.buyer-header-actions .buyer-action-task{background:#102d50;color:#fff;box-shadow:0 3px 9px #102d5020}.buyer-header-actions .buyer-action-ovp{background:#fcecef;color:#ae1730;border:1px solid #f0c5ce}.buyer-header-actions .buyer-action-sopr{background:#eaf1f9;color:#123c68;border:1px solid #c8d9ec}.buyer-header-actions .btn{border-radius:11px;min-height:42px;transition:background .15s,box-shadow .15s}.buyer-header-actions .btn:hover{box-shadow:0 4px 12px #102d5025}.buyer-manager-summary span:first-child{border-left:3px solid #df1938}.buyer-manager-summary span:last-child{border-left:3px solid #102d50}
.buyer-list-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end;padding:16px;background:#f6f8fb;border:1px solid #e6ebf1;border-radius:12px;margin:18px 0}.buyer-list-filters label{display:grid;gap:6px;font-size:12px;color:#52647d}.buyer-list-filters input,.buyer-list-filters select{width:100%;min-width:0;border:1px solid #cfd7e4;border-radius:8px;background:white;padding:10px;font:inherit;color:#162b43}.buyer-list-search{grid-column:1/-1}.buyer-list-filters>.btn{justify-self:start}.buyer-work-badge{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;border-radius:20px;padding:7px 12px;font-size:12px;font-weight:650;border:1px solid transparent}.buyer-work-badge.active{background:#e8f6ed;color:#166534;border-color:#b9dfc7}.buyer-work-badge.blocked{background:#ffe9ed;color:#a51632;border-color:#efb6c2}.buyer-work-badge.declined{background:#fff0e7;color:#923f20;border-color:#efc8b1}.buyer-work-badge.neutral{background:#edf1f6;color:#5c687b;border-color:#dbe2eb}.buyer-work-badge.waiting{background:#fff6d9;color:#856017;border-color:#e9d493}@media(max-width:900px){.buyer-list-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.buyer-list-filters{grid-template-columns:1fr}}
.buyer-bulk-bar{background:#edf2f8;border:1px solid #d5dfed;border-radius:10px;padding:12px}.buyer-bulk-bar[hidden]{display:none!important}#buyer-results input[type=checkbox]{width:18px;height:18px;accent-color:#102d50;cursor:pointer}
.checko-locked{background:#f1f4f8!important;color:#52647d;cursor:default}.buyer-top-status{padding:18px;background:#f6f8fb;border:1px solid #e2e8f0;border-radius:12px;margin:12px 0 24px!important}.buyer-top-status .buyer-status-chip{font-size:15px;padding:11px 17px}.buyer-top-status .buyer-status-chip[aria-pressed=true]{box-shadow:0 3px 10px #24613c18;border-width:2px;font-weight:650}
.work-clock{position:relative;margin-right:12px}.work-clock summary{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none;padding:10px 15px;background:white;border:1px solid #dce4ee;border-radius:12px;box-shadow:0 3px 12px #102d5009}.work-clock summary::-webkit-details-marker{display:none}.clock-date{font-size:14px;color:#52647d}.clock-time{font-size:22px;color:#102d50;font-variant-numeric:tabular-nums}.clock-popover{position:absolute;right:0;top:calc(100% + 10px);width:290px;max-width:85vw;padding:20px;background:#102d50;color:white;border-radius:14px;box-shadow:0 12px 35px #102d5033;z-index:50}.clock-popover b{display:block;font-size:17px;line-height:1.5}.clock-popover small{display:block;margin-top:10px;color:#c7d6e7}@media(max-width:600px){.work-clock summary{padding:8px;gap:5px;flex-direction:column}.clock-time{font-size:18px}.clock-date{font-size:11px}.work-clock{margin-right:4px}}
.top-actions{gap:10px;align-items:center}.top-actions .work-clock{margin-right:0}.top-actions .work-clock summary,.top-actions .chat-header-button,.top-actions .notification-button{min-height:56px;border:1px solid #dce4ee;border-radius:14px;background:linear-gradient(145deg,#fff,#f3f6fa);box-shadow:0 4px 14px #102d500b;color:#102d50;transition:box-shadow .18s,background .18s}.top-actions .chat-header-button,.top-actions .notification-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;width:auto;padding:12px 16px;position:relative}.top-actions .notification-label,.top-actions .chat-header-label{font-size:13px;font-weight:650}.top-actions .chat-header-button:hover,.top-actions .notification-button:hover,.work-clock summary:hover{background:#edf3fa;box-shadow:0 5px 18px #102d5019}.top-actions .chat-count,.top-actions .notification-button>span{background:#df1938;color:white;min-width:19px;height:19px;border-radius:10px;font-size:11px;display:grid;place-items:center;position:absolute;right:-5px;top:-5px;border:2px solid white}.top-actions svg{width:20px;height:20px}.clock-time{letter-spacing:.5px}.work-clock summary{border-left:3px solid #df1938!important}@media(max-width:1100px){.top{flex-wrap:wrap;gap:16px}.top-actions .notification-label{display:none}}@media(max-width:600px){.top-actions{gap:7px;flex-wrap:wrap}.top-actions .chat-header-button,.top-actions .notification-button{padding:10px 12px}.top-actions .chat-header-label{display:inline}}
.dashboard-sort-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:20px 0}.dashboard-sort-card{min-width:0;border:1px solid #e0e6ee;border-radius:15px;background:white;overflow:hidden}.dashboard-drag-handle{display:block;width:100%;text-align:left;padding:11px 18px;color:#52647d;background:#f1f5fa;border:0;border-bottom:1px solid #e0e6ee;cursor:grab;font-size:13px;font-weight:600}.dashboard-drag-handle:active{cursor:grabbing}.dashboard-sort-card.dragging{opacity:.45}.dashboard-sort-card>.panel{border:0;box-shadow:none;height:calc(100% - 42px);margin:0}.dashboard-sort-card>.overview-grid{margin:0;padding:15px;grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-layout-controls{justify-content:space-between}.buyer-group label{display:grid;gap:6px}.buyer-group label+label{margin-top:16px}@media(max-width:800px){.dashboard-sort-grid{grid-template-columns:1fr}}
.buyer-history-dialog{width:min(850px,calc(100vw - 32px))}.buyer-history-event{border:1px solid #e1e7ef;border-left:3px solid #102d50;border-radius:10px;padding:16px;margin-bottom:14px}.buyer-history-event>div{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.buyer-history-event time{font-size:12px;color:#738298}.buyer-history-event h3{font-size:14px;margin:12px 0}.buyer-history-event section>strong{font-size:12px;color:#52647d}.history-values{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center}.history-values pre{white-space:pre-wrap;overflow-wrap:anywhere;min-width:0;background:#f4f6f9;border-radius:8px;padding:10px;font:13px/1.5 inherit;margin:6px 0 14px}.history-values pre:last-child{background:#eaf5ee}.history-more[hidden]{display:none}@media(max-width:600px){.history-values{grid-template-columns:1fr}.history-values>span{display:none}}
.buyer-history-dialog{position:fixed;padding-top:28px}.buyer-history-dialog>h2{padding-right:36px}.buyer-history-close{position:absolute;top:12px;right:12px;display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:8px;background:#eef2f7;color:#435064;font-size:24px;line-height:1;cursor:pointer}.buyer-history-close:hover{background:#dfe6ef}.buyer-history-close:focus-visible{outline:2px solid #102d50;outline-offset:2px}
.request-current-status{font-size:16px;padding:12px 18px;border:1px solid #ccdaeb;border-radius:12px}.request-action-panel,.request-status-actions{display:flex;flex-wrap:wrap;gap:10px;padding:16px;border-radius:12px;background:#f3f6fa;border:1px solid #e0e7f0;margin:14px 0}.request-status-actions{background:#fff;border-style:dashed}.request-action-label{flex-basis:100%;font-size:11px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:#758397}.request-assignee{display:inline-block;padding:8px 11px;background:#edf3fa;border:1px solid #d7e3f1;border-radius:9px;color:#102d50;font-weight:600}.request-assignee.unassigned{background:#fff6df;color:#87621a;border-color:#ecdbad}.request-filters{padding:16px;background:#f5f7fb;border:1px solid #e3e9f1;border-radius:12px}.request-edit-controls{padding-bottom:12px;border-bottom:1px solid #e6ebf1}#request-message-edit fieldset:disabled input,#request-message-edit fieldset:disabled select,#request-message-edit fieldset:disabled textarea{background:#f5f7fa;color:#44546a;opacity:1}#request-message-edit [hidden]{display:none!important}
.request-buyer-search{position:relative;min-width:0}.request-buyer-search>small{display:block;margin-top:6px}.request-buyer-results{position:absolute;top:44px;left:0;right:0;z-index:30;background:white;border:1px solid #d6e0ed;border-radius:10px;box-shadow:0 10px 28px #102d5020;max-height:300px;overflow:auto;padding:6px}.request-buyer-results[hidden]{display:none!important}.request-buyer-results button{display:block;width:100%;text-align:left;border:0;border-radius:7px;background:white;padding:10px;color:#102d50}.request-buyer-results button:hover,.request-buyer-results button:focus{background:#edf3fa}.request-buyer-results b,.request-buyer-results small{display:block;overflow-wrap:anywhere}.request-buyer-results small{color:#758397;margin-top:4px}
.request-number-copy{display:inline-flex;vertical-align:middle;margin-left:6px;width:26px;height:26px;font-size:16px}#request-bulk-bar[hidden]{display:none!important}#request-results input[type=checkbox]{width:18px;height:18px;accent-color:#102d50}
.contact-comment{grid-column:1/-1}.buyer-note-form{display:grid;gap:12px;margin:18px 0}.buyer-note-form label{display:grid;gap:8px;font-size:13px}.buyer-note-form textarea{width:100%;padding:12px;border:1px solid #cfd7e4;border-radius:9px;font:inherit;resize:vertical}.buyer-note-form button{justify-self:start}.buyer-activity-item{padding:16px 0;border-bottom:1px solid #e3e9f0}.buyer-activity-item>div{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px}.buyer-activity-item time,.buyer-activity-item small,.buyer-activity-item>p:not(.activity-text){font-size:12px;color:#738298}.activity-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.note-status{color:#16703b}.task-more[hidden],.note-more[hidden]{display:none!important}#buyer-activity{margin-top:22px}
.request-history-list{display:grid;gap:16px;max-width:1000px;margin:12px auto}.request-history-event{border:1px solid #dfe7f0;border-left:4px solid #163857;border-radius:16px;padding:20px;background:#fff;box-shadow:0 5px 18px #061b3606}.request-history-event header{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.request-history-event time,.request-history-author{color:#708198;font-size:13px}.request-history-author{margin:7px 0 14px}.request-history-change{border-top:1px solid #edf1f6;padding-top:12px;margin-top:12px}.request-history-change>b{font-size:13px;color:#44566e}.request-history-values{display:flex;gap:10px;margin-top:8px}.request-history-values>div{flex:1;min-width:0;background:#f4f7fb;border-radius:10px;padding:10px 14px}.request-history-values>div:last-child{background:#edf7f2}.request-history-values small{color:#718198}.request-history-values p{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0;font-size:14px}@media(max-width:600px){.request-history-values{flex-direction:column}.request-history-event{padding:14px}}

/* Buyer contacts live outside the form, so give them the same Invicta controls. */
#buyer-contacts{overflow:visible;border-top:3px solid #df1938}
#buyer-contacts h2{color:#102d50;margin:0 0 16px;padding-bottom:11px;border-bottom:1px solid #e1e7ef}
#buyer-contacts .buyer-contact-list{display:grid;gap:14px}
.buyer-contact-row{grid-template-columns:minmax(150px,1.6fr) minmax(180px,1.4fr) 82px minmax(180px,1.7fr) 38px;gap:10px;padding:16px;background:#f7f9fc;border:1px solid #e0e7f0;border-radius:13px}
.buyer-contact-row>label,.buyer-contact-row .contact-comment{display:grid;gap:6px;color:#52647d;font-size:12px;font-weight:600}
.buyer-contact-row input,.buyer-contact-row textarea{display:block;width:100%;min-width:0;min-height:38px;padding:9px 11px;border:1px solid #ccd7e5;border-radius:8px;background:#fff;color:#102d50;font:inherit;font-size:13px;box-shadow:inset 0 1px 2px #102d5008}
.buyer-contact-row textarea{min-height:62px;resize:vertical}
.buyer-contact-row input:focus,.buyer-contact-row textarea:focus{outline:2px solid #173d67;outline-offset:1px;border-color:#173d67}
.buyer-contact-row input::placeholder,.buyer-contact-row textarea::placeholder{color:#98a4b3}
.buyer-contact-row .buyer-copy-field{width:100%;gap:5px}
.buyer-contact-row .buyer-copy-button{flex:0 0 34px;width:34px;height:34px;border-radius:8px;border-color:#cbd8e7;color:#173d67}
.buyer-contact-row .contact-comment{grid-column:1/-1;max-width:720px}
.buyer-contact-remove{align-self:start;display:grid;place-items:center;width:34px;height:34px;border:1px solid #f0c4cb;border-radius:9px;background:#fff1f3;color:#bd2938;font-size:20px;line-height:1}
.buyer-contact-remove:hover{background:#ffe2e7}
#buyer-contacts .buyer-add-contact{min-height:36px;padding:8px 12px;font-size:12px}
@media(max-width:850px){.buyer-contact-row{grid-template-columns:repeat(2,minmax(0,1fr))}.buyer-contact-row .contact-comment{grid-column:1/-1}.buyer-contact-remove{grid-column:2;grid-row:1;justify-self:end}}
@media(max-width:520px){.buyer-contact-row{grid-template-columns:1fr}.buyer-contact-row .contact-comment{grid-column:1}.buyer-contact-remove{grid-column:1;grid-row:auto;justify-self:end}}

/* Compact, unified sticky buyer toolbar. */
#app .save-toolbar{justify-content:space-between;align-items:center;gap:6px;margin-bottom:12px;padding:6px 8px;border-radius:11px}
#app .save-toolbar>.btn{min-height:32px;padding:6px 10px;border-radius:8px;font-size:11px;box-shadow:none;white-space:nowrap}
#app .save-toolbar .buyer-header-actions{display:contents}
#app .save-toolbar .crm-back-button{order:-1;margin-right:auto}
#app .save-toolbar .buyer-action-task{order:1;background:#102d50;border-color:#102d50;color:#fff}
#app .save-toolbar .buyer-action-history{order:2}
#app .save-toolbar .buyer-manager-summary{order:3;display:flex;gap:4px;margin:0}
#app .save-toolbar .buyer-manager-summary span{padding:5px 7px;border:1px solid #dfe6ef;border-radius:7px;background:#f4f6f9;color:#46566c;font-size:10px;white-space:nowrap}
#app .save-toolbar .buyer-action-ovp{order:4;background:#fff0f2;border:1px solid #efc7ce;color:#a51c33}
#app .save-toolbar .buyer-action-sopr{order:5;background:#eef3f9;border:1px solid #cddbeb;color:#173d67}
#app .save-toolbar .buyer-action-checko{order:6;background:#eaf5ee;border:1px solid #c5e3d0;color:#17643a}
#app .save-toolbar .buyer-checko-source{display:contents}
#app .save-toolbar .buyer-checko-source>.muted{display:none}
#app .save-toolbar .save-delete{order:8}
#app .save-toolbar .save-primary{order:9;min-height:34px;padding:7px 12px;font-size:11px}
@media(max-width:900px){#app .save-toolbar{justify-content:flex-start}#app .save-toolbar .crm-back-button{margin-right:auto}}
@media(max-width:620px){#app .save-toolbar{position:sticky;top:4px;gap:5px;padding:6px}#app .save-toolbar>.btn{flex:0 1 auto;min-height:31px;padding:5px 7px;font-size:10px}#app .save-toolbar .buyer-manager-summary{display:none}}

/* Slide-out workspace for activity, requests, and agreements. */
.buyer-workspace-dock{display:none!important}
.buyer-workspace-dock button{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid #dce4ee;border-right:0;border-radius:10px 0 0 10px;background:#fff;color:#173d67;box-shadow:0 6px 22px #102d5020;font-size:11px;font-weight:700}
.buyer-workspace-dock button span{display:grid;place-items:center;width:22px;height:22px;border-radius:7px;background:#edf3f9;color:#173d67;font-size:15px}
.buyer-workspace-dock button[data-open=notes]{background:#102d50;color:#fff;border-color:#102d50}
.buyer-workspace-dock button[data-open=notes] span{background:#df1938;color:#fff}
.buyer-workspace-drawer[hidden]{display:none!important}
.buyer-workspace-drawer{position:fixed;inset:0 0 0 auto;z-index:1000;display:flex;flex-direction:column;align-items:stretch;width:min(500px,36vw);min-width:390px;background:#fff;border-left:1px solid #dce4ee;box-shadow:-16px 0 45px #102d5022}
.buyer-workspace-drawer>header,.buyer-workspace-drawer>nav,.buyer-drawer-panes{width:100%;background:#fff}
.buyer-workspace-drawer>header{display:flex;justify-content:space-between;align-items:center;padding:18px 20px 14px;border-left:1px solid #dce4ee}
.buyer-workspace-drawer>header small{font-size:9px;letter-spacing:1.4px;color:#8492a5;font-weight:750}
.buyer-workspace-drawer>header h2{margin:4px 0 0;color:#102d50;font-size:20px}
.buyer-drawer-close{width:34px;height:34px;border:0;border-radius:9px;background:#eef2f7;color:#344a64;font-size:23px}
.buyer-workspace-drawer>nav{display:flex;gap:4px;overflow-x:auto;padding:0 16px;border-left:1px solid #dce4ee;border-bottom:1px solid #dce4ee}
.buyer-workspace-drawer>nav button{padding:10px 11px;border:0;border-bottom:3px solid transparent;background:transparent;color:#62738b;font-size:11px;font-weight:650;white-space:nowrap}
.buyer-workspace-drawer>nav button[aria-selected=true]{border-color:#df1938;color:#102d50}
.buyer-drawer-panes{flex:1;overflow:auto;padding:14px 16px 30px}
.buyer-drawer-pane[hidden]{display:none!important}
.buyer-drawer-pane>.panel{margin:0 0 12px;padding:16px;border:1px solid #e1e7ef;border-radius:13px;box-shadow:none;overflow:visible}
.buyer-drawer-pane>.panel h2{color:#102d50;font-size:16px}
.buyer-drawer-pane .section-title{gap:8px;flex-wrap:wrap}
.buyer-drawer-pane .buyer-note-form{margin:12px 0}
.buyer-drawer-pane .buyer-note-form textarea{min-height:96px;border-color:#cbd7e6;border-radius:9px;background:#f9fbfd}
.buyer-drawer-pane .buyer-note-form button{min-height:36px;padding:8px 12px;font-size:12px}
.buyer-drawer-pane .table-scroll{max-width:100%;overflow:auto}
@media(max-width:620px){.buyer-workspace-drawer{width:min(100vw,500px);min-width:0}.buyer-workspace-drawer>header{padding:14px}.buyer-drawer-panes{padding:10px}}

/* The sticky row stays small; secondary actions live in one Invicta menu. */
#app .save-toolbar{display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:7px;min-height:48px;padding:5px 8px}
#app .save-toolbar>.btn{min-height:32px;padding:5px 9px;font-size:10px}
#app .save-toolbar .crm-back-button{margin-right:auto}
#app .save-toolbar .buyer-actions-dropdown{position:relative;order:2;flex:0 0 auto}
#app .buyer-actions-trigger{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:6px 10px;border:1px solid #cbd8e7;border-radius:8px;background:#edf3f9;color:#173d67;font-size:11px;font-weight:750;white-space:nowrap}
#app .buyer-actions-trigger:hover{background:#e2ebf5}
#app .buyer-header-actions:empty{display:none!important}
#app .buyer-actions-menu[hidden]{display:none!important}
#app .buyer-actions-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:60;width:min(360px,calc(100vw - 30px));padding:10px;border:1px solid #dce4ee;border-radius:13px;background:#fff;box-shadow:0 16px 42px #102d5030}
#app .buyer-actions-menu .buyer-header-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:0;padding:0;border:0;background:transparent}
#app .buyer-actions-menu .buyer-header-actions>.btn{min-height:36px;padding:8px 10px;border-radius:8px;font-size:11px;white-space:normal}
#app .buyer-toolbar-actions{display:flex;align-items:center;gap:6px;margin-left:auto}
#app .buyer-toolbar-actions>.btn{min-height:32px;padding:6px 9px;border-radius:8px;font-size:10px;white-space:nowrap}
#app .buyer-toolbar-actions .buyer-action-task{background:#102d50;border-color:#102d50;color:#fff}
#app .buyer-toolbar-actions .buyer-action-comments{background:#fff0f2;border-color:#efc7ce;color:#a51c33}
#app .buyer-toolbar-actions .buyer-action-checko{background:#eaf5ee;border-color:#c5e3d0;color:#17643a}
#app .buyer-actions-menu .buyer-assignment-actions{grid-template-columns:1fr 1fr}
#app .buyer-actions-menu .buyer-action-ovp{background:#fff0f2;border:1px solid #efc7ce;color:#a51c33}
#app .buyer-actions-menu .buyer-action-sopr{background:#eef3f9;border:1px solid #cddbeb;color:#173d67}
#app .buyer-actions-menu .buyer-action-attachment{width:100%;margin-top:8px;background:#102d50;color:#fff;border-color:#102d50}
#app .buyer-manager-summary{display:inline-flex;flex-wrap:wrap;align-items:center;gap:5px;margin:0 0 0 10px}
#app .buyer-manager-summary span{padding:5px 7px;border:1px solid #dfe6ef;border-radius:7px;background:#f4f6f9;color:#46566c;font-size:10px;white-space:nowrap}
@media(min-width:1200px){body.buyer-drawer-open .main.buyer-workspace-split{padding-right:calc(min(500px,36vw) + 28px)}}
@media(max-width:900px){#app .buyer-toolbar-actions{gap:4px}#app .buyer-toolbar-actions>.btn{font-size:9px;padding:5px 7px}}
@media(max-width:1199px){#app .save-toolbar{flex-wrap:wrap}#app .buyer-toolbar-actions{order:10;flex:1 0 100%;justify-content:flex-end;margin:0}#app .buyer-actions-dropdown{order:8}#app .save-toolbar>.save-primary{order:9}}
@media(max-width:620px){#app .save-toolbar{gap:4px;flex-wrap:wrap}#app .save-toolbar .crm-back-button{margin-right:auto}#app .buyer-manager-summary{display:none}#app .save-toolbar>.btn{min-height:30px;padding:4px 7px;font-size:9px}#app .buyer-toolbar-actions{order:10;flex:1 0 100%;justify-content:flex-end;margin:0}#app .buyer-toolbar-actions>.btn{font-size:9px}}

/* Keep the floating activity shortcuts clear of the form fields. */
.buyer-drawer-pane #customer-agreements p{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:9px 0}

/* Adapt contact fields to the available card width, not only viewport width. */
.buyer-contact-row{grid-template-columns:minmax(0,1.2fr) minmax(0,1.25fr) 54px minmax(0,1.3fr) 32px;gap:7px;padding:12px}
.buyer-contact-row>label{min-width:0}
.buyer-contact-row .buyer-copy-field{min-width:0}
.buyer-contact-row .buyer-copy-button{flex-basis:30px;width:30px;height:32px}
.buyer-contact-remove{width:30px;height:32px}
/* Two compact, discoverable shortcuts that do not cover form content. */
@media(max-width:520px){.buyer-contact-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.buyer-contact-row .contact-comment{grid-column:1/-1}.buyer-contact-remove{grid-column:2;grid-row:1;justify-self:end}}

/* Put the customer workspace beside the card instead of over it. */
body.buyer-drawer-open{overflow-x:hidden}
body.buyer-drawer-open #buyer-workspace-drawer{inset:0 0 0 auto}
body.buyer-drawer-open #buyer-workspace-drawer>header{padding-top:24px}
@media(max-width:620px){body.buyer-drawer-open .main.buyer-workspace-split{padding-right:14px}body.buyer-drawer-open #buyer-workspace-drawer{width:100vw}}

/* Compact operating fields: two short fields and one concise note. */
.buyer-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;padding:12px 14px;margin:8px 0;background:#f7f9fc;border-color:#e1e7ef}
.buyer-group>label{min-width:0;margin:0!important}
.buyer-group input{min-height:36px}
#buyer-form>label.wide{margin:10px 0 0;padding:0}
#buyer-form>label.wide textarea{min-height:68px;height:68px;resize:vertical;padding:9px 11px}
@media(max-width:620px){.buyer-group{grid-template-columns:1fr}}

/* Buyer card action hierarchy and task dialog use the existing Invicta type scale. */
#app .save-toolbar{justify-content:flex-end;gap:6px}
#app .save-toolbar>.buyer-delete,#app .save-toolbar>.save-primary{order:20;flex:0 0 34px;width:34px;height:34px;min-width:34px;min-height:34px;padding:0;border-radius:9px;font-size:15px;line-height:1}
#app .save-toolbar>.buyer-delete{margin-left:auto;background:#fff0f2;border:1px solid #f1c4cb;color:#b51e35}
#app .save-toolbar>.buyer-delete:hover{background:#ffe2e7}
#app .save-toolbar>.save-primary{background:#eaf5ee;border:1px solid #b9dfc7;color:#17643a}
#app .save-toolbar>.save-primary:hover:not(:disabled){background:#d8eddf;border-color:#9bcdae}
#app .buyer-toolbar-actions{order:10;margin-left:0}
#app .buyer-toolbar-actions .buyer-action-task{background:#102d50;border:1px solid #102d50;color:#fff}
#app .buyer-toolbar-actions .buyer-action-history{background:#edf3fa;border:1px solid #cad9eb;color:#173d67}
#app .buyer-toolbar-actions .buyer-action-comments{background:#fff0f2;border-color:#efc7ce;color:#a51c33}
#app .buyer-toolbar-actions .buyer-action-checko{background:#eaf5ee;border-color:#c5e3d0;color:#17643a}
#app .buyer-actions-dropdown{order:15!important;margin-left:0}
.buyer-task-panel-actions{display:flex;align-items:center;gap:7px}
.buyer-task-panel-actions .activity-create-task{background:#102d50;border-color:#102d50;color:#fff}
.buyer-refusal-field{margin:0 0 16px;padding:12px 14px;border:1px solid #efc7ce;border-left:4px solid #df1938;border-radius:10px;background:#fff7f8;color:#812238}
.buyer-refusal-field[hidden]{display:none!important}
.buyer-refusal-field label{display:grid;gap:6px;font-size:13px;font-weight:700}
.buyer-refusal-field textarea{width:100%;min-height:62px;box-sizing:border-box;padding:9px 11px;border:1px solid #dfc5cb;border-radius:8px;background:#fff;color:#162b43;font:inherit;resize:vertical}
.buyer-refusal-field small{display:block;margin-top:5px;color:#815766}
.buyer-refusal-list{display:block;max-width:260px;margin-top:5px;color:#a51c33;white-space:normal;overflow-wrap:anywhere;font-size:11px;line-height:1.35}
#app .buyer-dialog{font-family:inherit}
#app .buyer-dialog h2{margin:0 0 18px;color:#102d50;font-size:24px;line-height:1.25}
#app .buyer-dialog .dialog-body{gap:12px;margin:14px 0}
#app .buyer-dialog label{color:#435064;font-size:13px;font-weight:650}
#app .buyer-dialog input,#app .buyer-dialog select,#app .buyer-dialog textarea{min-height:38px;padding:8px 10px;border:1px solid #cbd7e6;border-radius:8px;background:#fff;color:#162b43;font:inherit;font-size:14px;box-shadow:none}
#app .buyer-dialog textarea{min-height:76px;resize:vertical}
#app .buyer-dialog input:focus,#app .buyer-dialog select:focus,#app .buyer-dialog textarea:focus{outline:2px solid #3976bc;outline-offset:1px;border-color:#3976bc}
#app .buyer-dialog .toolbar{gap:8px}
#app .buyer-dialog .toolbar .btn{min-height:38px;padding:8px 13px;border-radius:9px;font:inherit;font-size:13px;font-weight:700}
#app .buyer-dialog .toolbar .btn:not(.secondary){background:#102d50;border-color:#102d50;color:#fff}
#app .buyer-dialog .toolbar .btn.secondary{background:#edf2f8;border-color:#d6e0ec;color:#46566c}
@media(max-width:1199px){#app .buyer-toolbar-actions{order:10;flex:0 1 auto;margin-left:0}#app .buyer-actions-dropdown{order:15!important}#app .save-toolbar>.buyer-delete,#app .save-toolbar>.save-primary{order:20}}
@media(max-width:620px){#app .buyer-toolbar-actions{flex:1 0 100%;justify-content:flex-end}#app .buyer-actions-dropdown{margin-left:auto}.buyer-task-panel-actions{width:100%;justify-content:flex-end}}

/* Buyer toolbar: one clear destination, quiet utilities, two explicit save choices. */
#app .save-toolbar.buyer-save-toolbar{justify-content:flex-end;gap:8px;min-height:50px;padding:7px 10px;border-color:#dce5ef;background:#fff;box-shadow:0 5px 18px #102d500d}
#app .save-toolbar.buyer-save-toolbar .crm-back-button{order:-1;margin-right:auto;background:transparent;border-color:transparent;color:#5c6d82}
#app .save-toolbar.buyer-save-toolbar .crm-back-button:hover{background:#f0f4f8;color:#102d50}
#app .save-toolbar.buyer-save-toolbar .buyer-toolbar-actions{order:1;display:flex;align-items:center;gap:4px;margin-left:0}
#app .save-toolbar.buyer-save-toolbar .buyer-toolbar-actions>.btn{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 11px;border-radius:8px;font-size:11px;font-weight:650;line-height:1.2;box-shadow:none;white-space:nowrap}
#app .save-toolbar.buyer-save-toolbar .buyer-action-workspace{background:#edf2f8;border:1px solid #afc2d8;color:#102d50;font-weight:750}
#app .save-toolbar.buyer-save-toolbar .buyer-action-workspace:hover{background:#e0eaf5;border-color:#7498bc}
#app .save-toolbar.buyer-save-toolbar .buyer-action-workspace svg{display:block;flex:0 0 15px;width:15px;height:15px;margin-right:7px}
#app .save-toolbar.buyer-save-toolbar .buyer-action-task{background:#fff4f5;border:1px solid #e9c3ca;color:#a92238}
#app .save-toolbar.buyer-save-toolbar .buyer-action-task:hover{background:#ffe9ec;border-color:#d98d9b}
#app .save-toolbar.buyer-save-toolbar .buyer-action-task::before{content:'+';font-size:17px;font-weight:500;margin-right:6px;line-height:.8}
#app .save-toolbar.buyer-save-toolbar .buyer-action-history{background:transparent;border:1px solid transparent;color:#68788b}
#app .save-toolbar.buyer-save-toolbar .buyer-action-history:hover{background:#f1f4f8;color:#102d50}
#app .save-toolbar.buyer-save-toolbar .buyer-action-checko{background:#e8f2fc;border:1px solid #a7c6e5;color:#194f7e;font-weight:750}
#app .save-toolbar.buyer-save-toolbar .buyer-action-checko:hover{background:#d8eafa;border-color:#6da3d0;color:#123d67}
#app .save-toolbar.buyer-save-toolbar .buyer-actions-dropdown{order:2;margin-left:0}
#app .save-toolbar.buyer-save-toolbar .buyer-actions-trigger{min-height:34px;padding:7px 9px;border:0;background:transparent;color:#68788b;font-size:11px}
#app .save-toolbar.buyer-save-toolbar .buyer-actions-trigger:hover{background:#f1f4f8;color:#102d50}
#app .save-toolbar.buyer-save-toolbar>.buyer-delete{order:3;display:inline-grid;place-items:center;flex:0 0 34px;width:34px;height:34px;min-width:34px;min-height:34px;margin-left:9px;padding:0;border:1px solid transparent;border-radius:8px;background:transparent;color:#b43d4b;box-shadow:none}
#app .save-toolbar.buyer-save-toolbar>.buyer-delete:hover{border-color:#e8bec5;background:#fff0f2;color:#a51f2e}
#app .save-toolbar.buyer-save-toolbar>.save-primary{order:4;flex:0 0 auto;width:auto;height:34px;min-width:0;min-height:34px;padding:7px 12px;border:1px solid #a7d3b7;border-radius:8px;background:#eff8f2;color:#1d6840;font-size:11px;box-shadow:none}
#app .save-toolbar.buyer-save-toolbar>.save-primary:hover:not(:disabled){background:#dff0e5;border-color:#80bd97;color:#14562f}
#app .save-toolbar.buyer-save-toolbar>.save-close{order:5;min-height:34px;padding:7px 13px;border:1px solid #102d50;border-radius:8px;background:#102d50;color:#fff;font-size:11px;font-weight:750;white-space:nowrap;box-shadow:0 3px 10px #102d5018}
#app .save-toolbar.buyer-save-toolbar>.save-close:hover:not(:disabled){background:#183d66;border-color:#183d66}
#app .save-toolbar.buyer-save-toolbar>.save-close:disabled{opacity:.5;cursor:wait}
#app .save-toolbar.buyer-save-toolbar .btn:focus-visible,#app .save-toolbar.buyer-save-toolbar .buyer-actions-trigger:focus-visible{outline:2px solid #df1938;outline-offset:2px}
#app .buyer-workspace-drawer>nav button{font-size:11px;font-weight:650}
#app .buyer-workspace-drawer>nav button[aria-selected=true]{border-color:#df1938;color:#102d50}
@media(max-width:1050px){#app .save-toolbar.buyer-save-toolbar{flex-wrap:wrap}#app .save-toolbar.buyer-save-toolbar .buyer-toolbar-actions{order:10;flex:1 0 100%;justify-content:flex-start;overflow-x:auto}#app .save-toolbar.buyer-save-toolbar .buyer-actions-dropdown{order:11}#app .save-toolbar.buyer-save-toolbar>.buyer-delete{margin-left:0}}
@media(max-width:620px){#app .save-toolbar.buyer-save-toolbar{gap:4px}#app .save-toolbar.buyer-save-toolbar>.save-primary,#app .save-toolbar.buyer-save-toolbar>.save-close{font-size:10px;padding:6px 8px}#app .save-toolbar.buyer-save-toolbar .buyer-toolbar-actions{gap:2px}#app .save-toolbar.buyer-save-toolbar .buyer-toolbar-actions>.btn{font-size:10px;padding:6px 8px}}
#app .buyer-drawer-pane .buyer-task-entry{padding:0;margin:10px 0;border:0}
#app .buyer-drawer-pane .buyer-task-card{display:flex;flex-direction:column;align-items:stretch;gap:9px;width:100%;padding:14px 16px;border:1px solid #d8e2ee;border-left:4px solid #173b63;border-radius:12px;background:#f8fafc;color:#183354;text-align:left;font:inherit;cursor:pointer;box-shadow:0 2px 8px #102d500b;transition:background .15s,border-color .15s,box-shadow .15s,transform .15s}
#app .buyer-drawer-pane .buyer-task-card:hover{background:#fff;border-color:#a8bdd5;box-shadow:0 7px 18px #102d5018;transform:translateY(-1px)}
#app .buyer-drawer-pane .buyer-task-card:focus-visible{outline:3px solid #df1938;outline-offset:2px}
#app .buyer-drawer-pane .buyer-task-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
#app .buyer-drawer-pane .buyer-task-card-head b{font-size:14px;line-height:1.35;overflow-wrap:anywhere}
#app .buyer-drawer-pane .buyer-task-card .badge{flex:0 0 auto}
#app .buyer-drawer-pane .buyer-task-meta,#app .buyer-drawer-pane .buyer-task-completed{font-size:11px;line-height:1.4;color:#687b94}
#app .buyer-drawer-pane .buyer-task-description{font-size:12px;line-height:1.45;color:#344963;white-space:pre-wrap;overflow-wrap:anywhere}
#app .buyer-drawer-pane .buyer-task-link{align-self:flex-end;font-size:11px;font-weight:700;color:#ad2138}
#app .buyer-drawer-pane .buyer-task-link span{margin-left:4px}
#app .buyer-drawer-pane .buyer-task-entry.is-done .buyer-task-card{border-left-color:#2f9362}
body>.buyer-dialog.buyer-task-dialog{width:min(520px,calc(100vw - 28px));max-height:min(88vh,760px);padding:28px;border:1px solid #d7e0eb;border-radius:18px;background:#fff;color:#172d4b;box-shadow:0 28px 80px #071b3740;font-family:inherit}
body>.buyer-dialog.buyer-task-dialog::backdrop{background:#0b1e3980;backdrop-filter:blur(2px)}
body>.buyer-dialog.buyer-task-dialog h2{margin:0;color:#102d50;font-size:22px;line-height:1.25;font-weight:750}
body>.buyer-dialog.buyer-task-dialog .buyer-task-context{margin:8px 0 0;color:#687b94;font-size:12px;line-height:1.4}
body>.buyer-dialog.buyer-task-dialog .buyer-task-context strong{color:#183354;font-weight:650}
body>.buyer-dialog.buyer-task-dialog .dialog-body{display:grid;gap:15px;margin:24px 0 22px}
body>.buyer-dialog.buyer-task-dialog label{display:grid;gap:7px;margin:0;color:#405570;font-size:12px;font-weight:700}
body>.buyer-dialog.buyer-task-dialog input,body>.buyer-dialog.buyer-task-dialog select,body>.buyer-dialog.buyer-task-dialog textarea{box-sizing:border-box;width:100%;min-height:42px;margin:0;padding:9px 12px;border:1px solid #cbd8e7;border-radius:9px;background:#f9fbfd;color:#142f50;font:inherit;font-size:13px;line-height:1.4;box-shadow:none;appearance:auto}
body>.buyer-dialog.buyer-task-dialog textarea{min-height:90px;resize:vertical}
body>.buyer-dialog.buyer-task-dialog input:hover,body>.buyer-dialog.buyer-task-dialog select:hover,body>.buyer-dialog.buyer-task-dialog textarea:hover{border-color:#9db4cd}
body>.buyer-dialog.buyer-task-dialog input:focus,body>.buyer-dialog.buyer-task-dialog select:focus,body>.buyer-dialog.buyer-task-dialog textarea:focus{outline:2px solid #9dbbdc;outline-offset:1px;border-color:#3b74aa;background:#fff}
body>.buyer-dialog.buyer-task-dialog .toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:0}
body>.buyer-dialog.buyer-task-dialog .toolbar .btn{min-height:38px;padding:8px 14px;border-radius:9px;font:inherit;font-size:12px;font-weight:700}
body>.buyer-dialog.buyer-task-dialog .toolbar .btn:not(.secondary){border:1px solid #102d50;background:#102d50;color:#fff}
body>.buyer-dialog.buyer-task-dialog .toolbar .btn.secondary{border:1px solid #d8e2ed;background:#eef2f7;color:#4a5b72}
body>.buyer-dialog.buyer-task-dialog .form-error{margin-top:12px;font-size:12px}
#app .save-toolbar:not(.buyer-save-toolbar)>.save-primary{order:9;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:auto;min-width:max-content;height:auto;min-height:36px;padding:8px 14px;border-radius:9px;font-size:12px;line-height:1.2;white-space:nowrap;overflow:visible}
#app .save-toolbar:not(.buyer-save-toolbar)>.save-delete{order:8;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:auto;min-width:max-content;min-height:36px;padding:8px 14px;border-radius:9px;font-size:12px;line-height:1.2;white-space:nowrap}
#app .buyer-drawer-pane .buyer-entity-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,0.55fr);gap:9px;margin:14px 0;padding:12px;border:1px solid #dce5ef;border-radius:10px;background:#f6f9fc}
#app .buyer-drawer-pane .buyer-entity-filters label{display:grid;gap:5px;min-width:0;color:#566a82;font-size:11px;font-weight:650}
#app .buyer-drawer-pane .buyer-entity-filters input,#app .buyer-drawer-pane .buyer-entity-filters select{box-sizing:border-box;width:100%;min-width:0;height:34px;margin:0;padding:6px 9px;border:1px solid #cbd8e7;border-radius:7px;background:#fff;color:#183354;font:inherit;font-size:11px}
#app .buyer-drawer-pane .buyer-entity-filters input:focus,#app .buyer-drawer-pane .buyer-entity-filters select:focus{outline:2px solid #9dbbdc;outline-offset:1px;border-color:#3b74aa}
#app .buyer-drawer-pane .buyer-note-filters{grid-template-columns:1fr}
#app .buyer-drawer-pane .buyer-filter-dates{display:grid;grid-template-columns:1fr 1fr;gap:9px}
#app .buyer-drawer-pane .buyer-filter-result{margin:4px 0 8px;color:#74859b;font-size:11px}
#app .buyer-drawer-pane .buyer-entity-filters+.buyer-filter-result{margin-top:-6px}
#app .buyer-drawer-pane .buyer-agreement-row[hidden],#app .buyer-drawer-pane .buyer-section table tr[hidden]{display:none!important}
@media(max-width:480px){#app .buyer-drawer-pane .buyer-entity-filters{grid-template-columns:1fr}}

.activity-notes{display:grid;gap:12px;margin-top:16px}
.buyer-note-entry{display:flex;align-items:flex-start;gap:10px;padding:0;border:0;max-width:92%}
.buyer-note-entry.own{justify-self:end;flex-direction:row-reverse}
.buyer-note-avatar{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:11px;background:#edf2f8;color:var(--note-accent,#234f7c);font-size:11px;font-weight:800}
.buyer-note-entry.own .buyer-note-avatar{background:#e9f5ee;color:#1e7044}
.buyer-note-bubble{min-width:0;padding:12px 14px;border:1px solid #dbe5f0;border-radius:13px;background:#f6f9fd;box-shadow:0 2px 7px #102d5009;border-left:3px solid var(--note-accent,#315f91)}
.buyer-note-entry>.buyer-note-bubble{display:block}
.buyer-note-entry.own .buyer-note-bubble{border-color:#c8e7d2;border-right:3px solid #2f9a61;border-left:1px solid #c8e7d2;background:#eff9f2}
.buyer-note-bubble header{display:flex;gap:8px;align-items:baseline;justify-content:space-between;flex-wrap:wrap}
.buyer-note-bubble time{color:#7c8ca2;font-size:11px}
.buyer-note-bubble .activity-text{margin:7px 0 0}
.buyer-note-form .mention-options{margin-top:-6px}
.workflow-customer-link{border:0;background:none;padding:0;color:#27639f;font:inherit;font-weight:inherit;text-align:left;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.workflow-customer-link:hover{color:#d03549}

/* Keep comments inside the narrow workspace drawer. */
#app .buyer-workspace-drawer,#app .buyer-drawer-panes,#app .buyer-drawer-pane,#app .buyer-drawer-pane>.panel{min-width:0;max-width:100%}
#app .buyer-drawer-pane .buyer-note-form,#app .buyer-drawer-pane .buyer-note-form label,#app .buyer-drawer-pane .buyer-note-form textarea,#app .buyer-drawer-pane .buyer-note-filters{min-width:0;max-width:100%}
#app .buyer-drawer-pane .buyer-note-form textarea{box-sizing:border-box}
#app .buyer-drawer-pane .buyer-filter-dates{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}
#app .buyer-drawer-pane .buyer-filter-dates label{min-width:0}
#app .buyer-drawer-pane .activity-notes{display:flex;flex-direction:column;align-items:stretch;min-width:0;width:100%;overflow:hidden}
#app .buyer-drawer-pane .buyer-note-entry{display:flex;flex:0 0 auto;align-self:flex-start;min-width:0;max-width:100%;width:min(100%,380px)}
#app .buyer-drawer-pane .buyer-note-entry.own{align-self:flex-end}
#app .buyer-drawer-pane .buyer-note-bubble{flex:1 1 auto;min-width:0;max-width:calc(100% - 44px);overflow-wrap:anywhere}
#app .buyer-drawer-pane .buyer-note-bubble header{display:block}
#app .buyer-drawer-pane .buyer-note-bubble header b{display:block;overflow-wrap:anywhere}
#app .buyer-drawer-pane .buyer-note-bubble time{display:block;margin-top:3px}
@media(max-width:450px){#app .buyer-drawer-pane .buyer-filter-dates{grid-template-columns:minmax(0,1fr)}#app .buyer-drawer-pane .buyer-note-entry{width:100%}}
