/* CRM reading surfaces and stage navigation are not solid action buttons. */
@media screen{
#appSection .erp-workspace :is(.crm-detail,.crm-editor,.crm-quick-editor)>header{
 background:#fff!important;color:#24364c!important;border-color:#d6dee8!important;
 min-width:0;gap:12px;padding:12px 14px;align-items:start;
}
#appSection .erp-workspace :is(.crm-detail,.crm-editor,.crm-quick-editor)>header :is(h2,h3,h4,p,small){color:#24364c!important}
#appSection .erp-workspace :is(.crm-detail,.crm-editor,.crm-quick-editor)>header .day-solid-icon{--day-icon-detail:#fff}
#appSection .erp-workspace .crm-detail>header{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center}
#appSection .erp-workspace .crm-detail>header>div{min-width:0}
#appSection .erp-workspace .crm-detail>header h3{font-size:20px;line-height:1.6;overflow-wrap:anywhere;margin:0}
#appSection .erp-workspace .crm-detail>header p{display:flex;flex-wrap:wrap;gap:6px 12px;line-height:1.7;margin:4px 0 0;color:#475467!important}
#appSection .erp-workspace .crm-detail>header .crm-deal-number{display:inline-flex;flex:0 0 auto;gap:5px;width:auto;min-width:max-content;color:#475467!important;visibility:visible;opacity:1;font-size:12px}
#appSection .erp-workspace .crm-detail>header .crm-detail-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px;max-inline-size:32rem;width:auto}
#appSection .erp-workspace .crm-detail>header .crm-detail-actions button{width:auto!important;min-width:36px;flex:0 0 auto!important;white-space:nowrap}
#appSection .erp-workspace .crm-detail>header .secondary-action{--day-command-fill:#fff;--day-command-ink:#344054;background:#fff!important;color:#344054!important;border:1px solid #b8c5d5!important}
#appSection .erp-workspace .crm-detail>header [data-mark-lost]{color:#ae241c!important;border-color:#cf2026!important}
#appSection .erp-workspace :is(.crm-detail,.crm-editor,.crm-quick-editor)>header button.day-close-control{background:transparent!important;color:#475467!important;border-color:transparent!important;box-shadow:none!important}
#appSection .erp-workspace :is(.crm-detail,.crm-editor,.crm-quick-editor)>header button.day-close-control:hover{background:#eef1f5!important;color:#24364c!important}
#appSection .erp-workspace .crm-detail .crm-record-stages{display:flex;flex-wrap:nowrap;gap:7px;overflow-x:auto;padding:10px 14px;min-width:0;scrollbar-width:thin;background:transparent}
#appSection .erp-workspace .crm-detail .crm-record-stages button,
#appSection .erp-workspace .crm-detail .crm-record-stages button.day-action-control{
 --day-command-fill:#fff;--day-command-ink:#344054;background:#fff!important;color:#344054!important;
 border:1px solid #c4cfdb!important;border-radius:8px!important;clip-path:none!important;box-shadow:none!important;
 padding:7px 11px;min-height:38px;line-height:1.6;flex:0 0 auto;white-space:nowrap;filter:none!important;
}
#appSection .erp-workspace .crm-detail .crm-record-stages button:is(.is-current,[aria-current=step]){border-block-end:3px solid #c48a00!important;color:#4e3d0a!important;font-weight:700}
#appSection .erp-workspace .crm-detail .crm-record-stages button small{display:inline-grid;place-items:center;min-width:20px;min-height:20px;padding:1px 4px;border-radius:5px;background:#eef1f5;color:#475467;opacity:1}
#appSection .erp-workspace .crm-detail .crm-record-stages button.is-current small{background:#ffe8a0;color:#4e3d0a}
#appSection .erp-workspace .crm-detail .crm-record-stages button:hover:not(:disabled){background:#f4f5f7!important;color:#24364c!important;border-color:#8797aa!important}
#appSection .erp-workspace .crm-detail .crm-record-stages button:focus-visible{outline:2px solid #7b5a0c!important;outline-offset:2px;box-shadow:none!important}
#appSection .erp-workspace .crm-detail :is(.crm-record-more,.crm-related-documents details)>summary{background:#fff!important;color:#344054!important;border:1px solid #c4cfdb!important;border-radius:8px;padding:9px 11px;gap:8px}
#appSection .erp-workspace .crm-detail :is(.crm-record-more,.crm-related-documents details)>summary :is(b,small,span){color:#344054!important}
#appSection .erp-workspace .crm-detail :is(.crm-record-more,.crm-related-documents details)>summary .day-solid-icon{--day-icon-detail:#fff}
#appSection .erp-workspace .crm-detail :is(.crm-record-more,.crm-related-documents details)>summary:hover{background:#f4f5f7!important}
/* Size the opportunity form by its content; the picker uses a separate top layer. */
.erp-workspace .day-workspace-record-scroll .crm-editor[data-deal-form]{inline-size:min(100%,1120px)!important;max-inline-size:1120px!important;max-block-size:none!important;block-size:auto!important;overflow:visible!important;box-sizing:border-box}
.crm-editor[data-deal-form] .crm-deal-form{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));align-items:end;gap:12px 16px}
.crm-editor[data-deal-form] .crm-deal-form>:is(label,.crm-owner-picker){grid-column:span 4;min-inline-size:0;max-inline-size:none!important}
.crm-editor[data-deal-form] .crm-deal-form>label:has(input[name=title]){grid-column:1/-1;max-inline-size:56rem!important}
.crm-editor[data-deal-form] .crm-deal-form :is(input,.day-select){max-inline-size:100%;min-inline-size:0;box-sizing:border-box}
.crm-editor[data-deal-form]>footer{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:4px;padding-block:10px 2px}
.crm-floating-results[popover],.crm-floating-results{
 position:fixed!important;inset:auto;margin:0!important;padding:5px!important;box-sizing:border-box;min-width:0;
 overflow:auto!important;overscroll-behavior:contain;background:#fff!important;color:#24364c!important;
 border:1px solid #aab9cb;border-radius:10px;box-shadow:0 10px 28px #14253d26;
 font:400 14px/1.65 var(--day-font,Vazir,sans-serif);z-index:1000;
}
.crm-floating-results[hidden]{display:none!important}
.crm-floating-results::backdrop{background:transparent;pointer-events:none}
.crm-floating-results>button{display:flex!important;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;margin:0;padding:8px 10px;border:0;border-radius:6px;background:#fff!important;color:#24364c!important;font:inherit;text-align:start;cursor:pointer;white-space:normal}
.crm-floating-results>button:is(:hover,[aria-selected=true]){background:#f0f3f7!important;color:#24364c!important}
.crm-floating-results>button>b{min-width:0;overflow-wrap:anywhere;font-size:14px}
.crm-floating-results .crm-contact-result-meta{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:12px;color:#475467}
.crm-floating-results .crm-contact-result-phone{white-space:nowrap;display:inline-flex;gap:4px;align-items:center;color:#344054}
.crm-floating-results .day-symbol,.crm-floating-results .day-solid-icon{width:16px;height:16px;flex:none;--day-icon-detail:#fff}
.crm-floating-results>p{margin:0;padding:9px 10px;font:inherit;color:#475467}
.crm-floating-results>.crm-contact-add{border-block-start:1px solid #d8e0ea;color:#8c2947!important;font-weight:700}
@media(max-width:980px){.crm-editor[data-deal-form] .crm-deal-form>:is(label,.crm-owner-picker){grid-column:span 6}#appSection .erp-workspace .crm-detail>header{grid-template-columns:minmax(0,1fr) auto}#appSection .erp-workspace .crm-detail>header .crm-detail-actions{grid-column:1/-1;grid-row:2;justify-content:flex-start;max-inline-size:none}}
@media(max-width:600px){.crm-editor[data-deal-form] .crm-deal-form>:is(label,.crm-owner-picker){grid-column:1/-1}.crm-editor[data-deal-form] .crm-deal-form{gap:10px}#appSection .erp-workspace :is(.crm-detail,.crm-editor,.crm-quick-editor)>header{padding-inline:12px}#appSection .erp-workspace .crm-detail>header h3{font-size:18px}#appSection .erp-workspace .crm-detail .crm-record-stages button{min-height:44px}.crm-floating-results>button{align-items:start}.crm-floating-results .crm-contact-result-meta{justify-content:flex-end}}
}

@media screen{#appSection .crm-detail>header .crm-deal-number{display:inline-flex;align-items:center;gap:4px;background:#fff!important;color:#344054!important;border:1px solid #cbd5e1;border-radius:4px;padding:1px 6px;opacity:1;visibility:visible;white-space:nowrap}#appSection .crm-detail>header .crm-deal-number :is(bdi,svg){color:#344054!important}}
