/* One operational surface, with framed surfaces reserved for individual records. */
#page-crm .crm-shell{gap:0;max-width:none;background:transparent;min-height:0}
#page-crm .crm-head{position:relative;flex-wrap:wrap;padding:10px 14px;background:transparent;border:0;border-bottom:1px solid #b6c5d0;gap:12px;align-items:center}
#page-crm .crm-head>[data-crm-tools]{display:flex;flex:1 1 440px;justify-content:flex-end;min-width:0}
#page-crm .crm-head>[data-crm-tools]:empty{display:none}
#page-crm .crm-head .crm-workbar{padding:0;border:0;flex-wrap:nowrap;gap:6px}
#page-crm .crm-head .crm-workbar .day-select,#page-crm .crm-head .crm-workbar select{width:145px}
.crm-search-panel{position:absolute;inset:0;z-index:20;display:flex;align-items:center;gap:8px;background:#f7fafc;padding:8px 14px}
.crm-search-panel .crm-board-search{max-width:none;flex:1}.crm-search-panel .crm-board-search input{height:40px}
.crm-workbar [data-crm-search-open].is-filtered{box-shadow:inset 0 -3px #197e8c!important}
#page-crm .crm-current-query{margin-inline-start:auto;max-width:240px;min-width:0}
.crm-current-query span{overflow-wrap:anywhere}.crm-current-query .day-symbol-only{width:26px!important;min-width:26px!important;height:26px!important}
.crm-heading{display:flex;align-items:center;gap:9px;min-width:0;color:#253c4c}
#page-crm .crm-head h1{font-size:20px;font-weight:700;line-height:1.5;margin:0}
#page-crm .crm-head .module-head-actions{gap:6px;flex-wrap:nowrap;width:auto}
#page-crm .crm-head .day-action-control:not(.primary-action),#page-crm .crm-contact-toolbar>.day-action-control:not(.primary-action){border-color:transparent!important;background:#e7eef5!important;color:#335c77!important;box-shadow:none!important}
#page-crm .crm-head .day-action-control:not(.primary-action):hover{background:#d4e3ef!important}
#page-crm .module-body{padding:0;min-width:0}
#page-crm .crm-workbar,.crm-contact-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 14px;background:transparent;border:0;border-bottom:1px solid #d7e0e6}
.crm-board-search{display:flex!important;align-items:center;position:relative;max-width:280px;flex:1 1 180px;min-width:0}
.crm-board-search>.day-symbol{position:absolute;inset-inline-start:10px;color:#526979;pointer-events:none;width:17px;height:17px}
#page-crm .crm-board-search input{width:100%;min-width:0;padding-inline-start:34px;background:#fff}
#page-crm .crm-workbar select,#page-crm .crm-workbar .day-select{width:165px;flex:none;font-size:13px}
.module-toolbar>.crm-view-switch,.crm-view-switch{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:3px;flex:none;max-width:100%;overflow-x:auto}
.crm-view-switch button,.crm-composer-modes button,.crm-history-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#4d6374;min-height:36px;padding:6px 10px;font:inherit;font-size:13px;cursor:pointer}
.crm-view-switch button[aria-pressed=true],.crm-composer-modes button[aria-pressed=true],.crm-history-tabs button[aria-pressed=true]{color:#16636e;background:#e7f2f4;border-bottom-color:#167b88;font-weight:700}
.crm-due-filter{display:grid;place-items:center;width:36px;height:36px;border:1px solid #aabcc8;border-radius:5px;background:#fff;color:#526979;cursor:pointer;flex:none}
.crm-due-filter[aria-pressed=true]{background:#fff3ca;border-color:#a68320;color:#74500c}
#page-crm .crm-summary{display:flex;flex-wrap:wrap;gap:8px 22px;padding:10px 14px;margin:0;border:0;background:transparent}
#page-crm .crm-summary>div{display:flex;align-items:center;gap:7px;padding:0;border:0;border-radius:0;background:transparent}
#page-crm .crm-summary span{font-size:12px;font-weight:400;color:#536878}
#page-crm .crm-summary b{font-size:13px;font-weight:700;color:#294454}
#page-crm .crm-summary .day-symbol{position:static;width:16px;height:16px;color:#547c8d}
#page-crm .crm-board{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:272px;align-items:start;gap:12px;padding:8px 0 20px;overflow-x:auto;overflow-y:visible;min-height:0;background:transparent;scrollbar-color:#8b9eac #e5ebef;scrollbar-width:thin}
#page-crm .crm-board>.crm-stage{min-width:0;display:grid;grid-template-rows:auto auto;align-content:start;gap:10px;padding:0;border:0;border-radius:0;background:transparent;min-height:0;--stage-color:#377f91}
#page-crm .crm-stage:nth-child(2){--stage-color:#557ab0}#page-crm .crm-stage:nth-child(3){--stage-color:#a17a1a}#page-crm .crm-stage:nth-child(4){--stage-color:#916498}#page-crm .crm-stage:nth-child(5){--stage-color:#328056}#page-crm .crm-stage:nth-child(6){--stage-color:#ac4760}
#page-crm .crm-stage>header{position:static;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:2px;min-height:68px;height:auto;padding:8px 14px 8px 18px;border:0;border-inline-start:4px solid var(--stage-color);border-radius:0;background:color-mix(in srgb,var(--stage-color) 11%,#fff);box-sizing:border-box;clip-path:polygon(100% 0,14px 0,0 50%,14px 100%,100% 100%)}
#page-crm .crm-stage-title{display:flex;align-items:center;gap:6px;min-width:0}
#page-crm .crm-stage-title>b{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;flex:1;min-width:0;color:#263f50;font-size:13px;font-weight:700;line-height:1.7;white-space:normal;overflow-wrap:anywhere}
#page-crm .crm-stage-title>small{position:static;display:grid;place-items:center;min-width:22px;height:22px;padding:0 3px;border-radius:4px;background:#edf1f4;color:#435b6b;font-size:12px;flex:none}
#page-crm .crm-stage-value{position:static;font-size:12px;white-space:normal;color:#556c7b}
#page-crm .crm-stage-add{width:30px!important;min-width:30px!important;height:30px!important;flex:none;margin:0!important;padding:0!important}
#page-crm .crm-deal-list{display:grid;align-content:start;gap:9px;min-height:80px}
#page-crm .crm-empty-card{padding:10px 12px;border:0;background:transparent;font-size:12px;color:#536c7b;text-align:start;min-height:0}
#page-crm .crm-deal-card{width:100%;height:auto;display:grid;align-content:start;gap:6px;padding:14px;text-align:right;border:1px solid #afc2ce;border-inline-start:3px solid var(--stage-color);border-radius:8px;background:color-mix(in srgb,var(--stage-color) 3%,#fff);color:#243746;box-shadow:0 2px 5px #2446550b;cursor:pointer;min-width:0;white-space:normal;transition:box-shadow .15s,border-color .15s}
#page-crm .crm-deal-card:hover{border-color:var(--stage-color);background:#f9fcfd;box-shadow:0 2px 7px #203d4f12}
#page-crm .crm-deal-card>b{font-size:15px;font-weight:700;line-height:1.75;white-space:normal;overflow-wrap:anywhere;min-height:0}
.crm-card-customer{display:flex;align-items:flex-start;gap:6px;font-size:12px;line-height:1.7;color:#566d7b;overflow-wrap:anywhere;min-width:0}
.crm-card-customer .day-symbol{flex:none;width:15px;height:15px;margin-top:3px}
.crm-card-value{display:flex;align-items:center;gap:7px;min-width:0}
#page-crm .crm-card-value small{font-size:18px;font-weight:700;color:#254d5d;overflow-wrap:anywhere}
.crm-card-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;border:0;padding-top:3px}
.crm-card-person{display:flex;align-items:center;gap:5px;min-width:0;font-size:11px;color:#4b6676}
.crm-card-person>span:last-child{overflow-wrap:anywhere;max-width:120px}
.crm-card-owner{display:grid;place-items:center;width:25px;height:25px;flex:none;border-radius:50%;background:#e6f0f3;color:#295e72;font-size:12px;font-weight:700}
.crm-card-owner .day-symbol{width:15px;height:15px}
.crm-card-meta em{display:flex;align-items:center;gap:4px;font-style:normal;font-size:11px;color:#526b7b;white-space:normal}
.crm-card-meta em.is-overdue{color:#a72d48}.crm-card-meta em .day-symbol{width:14px;height:14px}
.crm-deal-card.is-closed{border-inline-start-color:#70848f}
.crm-list{border:0;border-radius:0;background:transparent;margin-top:6px}
.crm-record-link{display:inline-flex;align-items:center;gap:8px;text-align:start;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#245871!important;padding:6px 0!important;font:inherit;white-space:normal;line-height:1.8;cursor:pointer}
.crm-record-link .day-symbol{width:18px;height:18px;flex:none}.crm-record-link small{display:block;font-size:12px;color:#5c7180}
.crm-record-link:hover{text-decoration:underline}.crm-phone{display:inline-flex;align-items:center;gap:6px;color:#25687e}.crm-phone .day-symbol{width:15px;height:15px}
.crm-editor{width:min(720px,100%)}.crm-quick-editor{width:min(520px,100%)}.crm-deal-form{grid-template-columns:minmax(0,1.4fr) minmax(0,.8fr)}
.crm-contact-picker{position:relative}
.crm-contact-picker [data-contact-results]{position:absolute;z-index:90;inset-inline:0;top:calc(100% + 4px);display:grid;gap:4px;padding:5px;border:1px solid #acbfcc;border-radius:5px;background:#fff;box-shadow:0 10px 24px #18243426}
.crm-contact-picker [data-contact-results]:empty{display:none}.crm-contact-picker [data-contact-results] button{display:flex;justify-content:space-between;gap:8px;text-align:start;border:0;background:#fff;color:#293f50;padding:8px;cursor:pointer}.crm-contact-picker [data-contact-results] button:hover{background:#edf5f7}.crm-contact-picker small{font-size:12px;color:#5d7281}
.crm-detail{--day-section-size:18px;width:100%!important;max-width:none!important;margin-inline:auto!important;padding:0!important;gap:0;background:transparent!important;box-shadow:none!important;border:0!important}
.crm-detail>header{position:static!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;padding:12px 14px!important;gap:12px;background:#fff!important;border:0!important;border-bottom:2px solid #287c8c!important;border-radius:0!important;box-shadow:none!important}
.crm-detail>header>div:first-child{min-width:0}.crm-detail>header>[data-close]{margin-inline-start:auto}
.crm-detail>header>.crm-detail-actions{align-self:center}
.crm-detail>header{grid-template-columns:minmax(0,1fr) auto auto auto}
@media(max-width:760px){.crm-detail>header{grid-template-columns:minmax(0,1fr) auto}.crm-detail>header>div:first-child{grid-column:1;grid-row:1}.crm-detail>header>[data-close]{grid-column:2;grid-row:1}.crm-detail>header>.crm-detail-actions{grid-column:1/-1;grid-row:2}}
@media(max-width:760px){.crm-detail>header>.crm-detail-actions{grid-column:1;min-width:0}.crm-detail>header>.day-record-expand{grid-column:2;grid-row:2;align-self:start}}
.crm-detail>header h3{font-size:19px;font-weight:700;line-height:1.7;overflow-wrap:anywhere}.crm-detail>header p{display:flex;align-items:center;gap:7px;margin:4px 0;color:#5b7181;font-size:13px}.crm-detail>header p .day-symbol{width:16px;height:16px}
.crm-record-stages{display:flex;gap:3px;overflow:auto;padding:10px 14px;scrollbar-width:thin}
.crm-detail .crm-record-stages button{display:flex;align-items:center;gap:7px;flex:none;min-height:38px;padding:6px 18px 6px 22px;background:#e8edf2!important;color:#455d6c!important;font:inherit;font-size:12px;white-space:nowrap;border:0!important;border-radius:0!important;box-shadow:none!important;clip-path:polygon(100% 0,12px 0,0 50%,12px 100%,100% 100%,calc(100% - 12px) 50%);cursor:pointer}
.crm-record-stages button small{font-size:11px;font-weight:700;opacity:.8}.crm-detail .crm-record-stages .is-current{background:#f3c716!important;color:#3b330f!important;font-weight:700}.crm-detail .crm-record-stages button:hover{background:#d5e4ef!important}.crm-detail .crm-record-stages button:focus-visible{outline:0;box-shadow:inset 0 0 0 3px #246b87!important}.crm-detail .crm-record-stages button:disabled{opacity:1;cursor:default}.crm-stage-message{padding:4px 14px;margin:0;font-size:12px;color:#6e3348}
.crm-deal-card[data-can-move=true]{cursor:grab!important;touch-action:pan-y}.crm-deal-card[aria-busy=true]{opacity:.65}.crm-drag-placeholder{opacity:.25!important;background:#dbeaf4!important;border-style:dashed!important}.crm-drag-chosen{outline:2px solid #4782a0;outline-offset:1px}.crm-drag-preview{display:grid;gap:7px;box-sizing:border-box;padding:12px;border:1px solid #7097af;border-inline-start:3px solid #376f8b;border-radius:5px;background:#fff;color:#223745;text-align:right;font:inherit;box-shadow:0 10px 30px #233d5540;z-index:1000!important;opacity:.95!important;cursor:grabbing}.crm-drag-preview>b{font-size:14px;font-weight:700;line-height:1.65;overflow-wrap:anywhere}.crm-drag-preview .crm-card-value small{font-size:15px;font-weight:700}.crm-drag-preview .day-symbol{width:16px;height:16px}
.crm-detail-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-start;padding:0!important;margin:0;border:0!important;background:transparent!important;flex:0 1 auto}
.crm-record-layout{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:22px;margin-top:10px;padding:0 14px 20px;align-items:start}
.crm-record-info{min-width:0;border-inline-end:1px solid #b8cdd7;padding-inline-end:18px}
.crm-record-info h4{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:700;margin:0 0 12px;color:#304c5e}.crm-record-info h4 .day-symbol{width:18px;height:18px}
.crm-record-amount{display:block;font-size:22px;font-weight:700;line-height:1.8;color:#145968;overflow-wrap:anywhere;margin-bottom:10px}
.crm-record-info dl{margin:0}.crm-record-info dl>div{display:grid;grid-template-columns:90px minmax(0,1fr);align-items:start;gap:8px;padding:8px 0;border:0}.crm-record-info dt{display:flex;align-items:center;gap:6px;font-size:12px;color:#4e6b7b;flex:none}.crm-record-info dt .day-symbol{width:17px;height:17px}.crm-record-info dd{margin:0;font-size:13px;font-weight:600;color:#2f495a;overflow-wrap:anywhere;min-width:0}
.crm-record-more,.crm-related-documents details{padding-block:10px;border-block-start:1px solid #b8cdd7}.crm-record-more summary,.crm-related-documents summary{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:13px;font-weight:700;color:#2f596c;list-style:none}.crm-record-more summary::-webkit-details-marker,.crm-related-documents summary::-webkit-details-marker{display:none}.crm-record-more summary .day-symbol,.crm-related-documents summary .day-symbol{width:17px;height:17px;flex:none}.crm-record-more summary .day-symbol:last-child,.crm-related-documents summary .day-symbol:last-child{margin-inline-start:auto}.crm-record-more[open] summary{margin-bottom:8px}.crm-record-more dl>div{display:block}.crm-record-more dd{margin:4px 0}.crm-record-stages{flex-wrap:wrap}
.crm-record-history{min-width:0;background:transparent;padding:0}.crm-composer{border:1px solid #b5c5d1;padding:12px;background:#fff;border-radius:5px;margin-top:10px}
.crm-detail .crm-history-entry header>.day-user-avatar{flex:0 0 32px!important;inline-size:32px!important;min-inline-size:32px!important;max-inline-size:32px!important;block-size:32px!important}
.crm-record-commands{display:flex;align-items:center;flex-wrap:wrap;gap:2px;padding:0 0 10px;border-bottom:1px solid #c6d1da}
.crm-record-commands button{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;min-height:38px;border:0!important;border-radius:4px;background:transparent!important;color:#33566d!important;font:inherit;font-size:13px;font-weight:600;box-shadow:none!important;cursor:pointer}.crm-record-commands button:hover{background:#e4edf6!important}.crm-record-commands button .day-symbol{width:19px;height:19px}
.crm-history-heading{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:12px;margin-top:24px;border-bottom:1px solid #b9c8d3;padding-bottom:8px}
.crm-history-heading h4,.crm-planned>h4{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:700;margin:0;color:#344e61}.crm-history-heading h4 .day-symbol,.crm-planned>h4 .day-symbol{width:17px;height:17px}.crm-planned{margin-top:18px}.crm-planned>h4{margin-bottom:10px}.crm-planned .crm-history-entry{background:#fff;border:1px solid #b9cad6;border-inline-start:3px solid #507aab;margin:8px 0;padding:12px;border-radius:5px}
.crm-composer-modes,.crm-history-tabs{display:flex;align-items:center;gap:3px;flex-wrap:wrap}.crm-composer .day-symbol,.crm-history-tabs .day-symbol{width:17px;height:17px;flex:none}
.crm-composer textarea{display:block;box-sizing:border-box;width:100%;min-height:72px;margin-top:6px;padding:10px 12px;border:1px solid #c4a76a!important;border-radius:6px;resize:vertical;font:inherit;font-size:14px;line-height:1.9;color:#3f3826;background:#fff9ed}
.crm-composer-fields{display:grid;grid-template-columns:110px minmax(0,1fr);gap:8px;margin-top:10px}.crm-composer-fields label{display:grid;gap:5px;min-width:0;font-size:12px;color:#506b7d}.crm-composer-fields label:last-child{grid-column:1/-1;max-width:190px}
.crm-composer-footer{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:8px}.crm-composer-footer [role=status]{margin-inline-end:auto;font-size:12px;color:#50697a;overflow-wrap:anywhere}.crm-composer-footer button{flex:none;display:inline-flex;gap:6px;align-items:center}
.crm-history-tabs{padding:0}.crm-detail-body{display:block;min-height:0}
.crm-history-entry{display:grid;grid-template-columns:30px minmax(0,1fr);align-items:start;gap:10px;padding:12px;border:1px solid #cbd8e2;background:#fff;border-radius:5px;min-height:0;margin:10px 0}.crm-history-entry.note{background:#fff9dd;border-color:#d9cf9d}.crm-history-entry.is-complete{border-inline-start:3px solid #448367}
.crm-history-icon{display:grid;place-items:start center;color:#38788c;padding-top:2px}.crm-history-icon .day-symbol{width:19px;height:19px}.crm-history-entry.note .crm-history-icon{color:#8b7131}
.crm-history-entry header{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:0;border:0;background:transparent}.crm-history-entry strong{flex:1 1 150px;min-width:0;font-size:14px;font-weight:700;color:#28485c;overflow-wrap:anywhere}.crm-history-entry time{font-size:12px;color:#526b7b;white-space:nowrap}.crm-history-entry header>button{flex:none}
.crm-history-entry p{margin:7px 0;font-size:13px;line-height:1.9;color:#345165;white-space:pre-wrap;overflow-wrap:anywhere}.crm-history-empty{font-size:13px;color:#5c7383;padding:16px 0}
.crm-complete{display:inline-flex;align-items:center;gap:5px;color:#2b754c;font-size:12px}.crm-complete .day-symbol{width:15px;height:15px}
.crm-related-documents{margin-top:18px;padding:0;border:0}.crm-related-documents button{display:flex;max-width:100%;margin:5px 0;white-space:normal;overflow-wrap:anywhere}.crm-related-documents p{font-size:12px;color:#5d7383}
.crm-detail [hidden],#page-crm [hidden]{display:none!important}
.crm-deal-items{margin:0 0 18px;padding:0 0 16px;border:0;border-bottom:1px solid #c6d7df;background:transparent}
.crm-deal-items>header{display:flex;align-items:center;gap:12px;justify-content:flex-start;padding:0 0 10px;border:0;background:transparent}
.crm-deal-items h4{display:flex;align-items:center;gap:8px;margin:0;font-size:15px;font-weight:700;color:#20485d}.crm-deal-items h4 .day-symbol{color:#a75b20;width:20px;height:20px}.crm-deal-items h4 span{font-size:12px;color:#5c7180}
.crm-product-row{display:flex;align-items:center;gap:10px;padding:12px 0;min-width:0;border:0;border-bottom:1px solid #e1e8ec}
.crm-product-icon{display:grid;place-items:center;width:36px;height:36px;background:#fff0da;color:#925217;border-radius:6px;flex:none}.crm-product-icon .day-symbol{width:20px;height:20px}
.crm-product-row>div{flex:1;min-width:0}.crm-product-row b{font-size:14px;font-weight:700;overflow-wrap:anywhere}.crm-product-row small{display:block;margin-top:4px;font-size:12px;color:#536c7c}.crm-product-row>strong{text-align:end;font-size:15px;font-weight:700;color:#174f61;min-width:0;overflow-wrap:anywhere}.crm-product-row>span:last-child{display:flex;gap:4px;flex:none}.crm-product-row>span:last-child button{width:30px!important;min-width:30px!important;height:30px!important}
.crm-deal-items>output{display:block;font-size:13px;font-weight:700;color:#1c5c6c;padding-top:9px}
.crm-deal-items form{display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding:14px 0 0}.crm-deal-items form label{display:grid;gap:6px;min-width:0;font-size:12px;color:#3c5a6b;flex:0 1 100px}.crm-deal-items .crm-item-choice{flex:1 1 220px}.crm-deal-items .crm-item-price{flex:0 1 210px}.crm-item-form-actions{display:flex;align-items:center;gap:7px}.crm-deal-items input[readonly]{background:#edf5f7!important;border-color:transparent!important;color:#2c5868!important}
.crm-mention-menu{position:fixed;inset:auto;margin:0;padding:5px;border:1px solid #aac5d1;border-radius:6px;background:#fff;box-shadow:0 8px 28px #19384728;overflow:auto;color:#253f50;font:inherit}.crm-mention-menu button{display:flex;align-items:center;gap:9px;width:100%;border:0;background:transparent;padding:8px;text-align:start;font:inherit;font-size:13px;color:#253f50;cursor:pointer}.crm-mention-menu button[aria-selected=true],.crm-mention-menu button:hover{background:#e6f3f5}.crm-person-dot{display:grid;place-items:center;width:28px;height:28px;flex:none;background:#fce7eb;color:#a82e4d;border-radius:50%;font-weight:700}.crm-mention-menu p{font-size:12px;padding:7px;margin:0}
.crm-detail .crm-detail-actions button{border-color:transparent!important;background:#e8f1f8!important;color:#255779!important;box-shadow:none!important}.crm-detail .crm-detail-actions button:hover{background:#cfe4f4!important}
.crm-composer-modes [data-compose-mode=note][aria-pressed=true]{background:#fff0cf;color:#77510d;border-color:#bd8b27}.crm-composer-modes [data-compose-mode=activity][aria-pressed=true]{background:#e4effb;color:#245986;border-color:#376d9d}
.crm-composer:has([data-compose-mode=activity][aria-pressed=true]) textarea{background:#f0f6ff;border-color:#8aabd1!important;color:#243f51}
.crm-detail [data-compose-submit]{background:#a93659!important;border-color:#a93659!important;color:#fff!important;min-width:40px!important;height:36px!important}
.crm-composer:has([data-compose-mode=activity][aria-pressed=true]) [data-compose-submit]{background:#316bb2!important;border-color:#316bb2!important}
.crm-detail .crm-history-icon{width:30px;height:30px;place-items:center;padding:0;border-radius:6px;background:#e7effb;color:#2d609f}
.crm-detail .crm-history-entry.note .crm-history-icon{background:#fff0ce;color:#83560e}
.crm-detail .crm-history-entry [data-done]{background:#d9f0e2!important;color:#206a43!important;border-color:#80b69a!important;min-width:34px!important;width:34px!important;height:32px!important}
.crm-history-entry.is-complete strong{color:#486558}.crm-detail [data-edit]{background:#efe8fc!important;color:#644199!important}.crm-detail [data-activity]{background:#e4edff!important;color:#2c5c9d!important}.crm-detail [data-note]{background:#fff0ce!important;color:#83560e!important}
#page-crm .crm-deal-card{padding:12px;gap:7px;border:1px solid #b9c8d2;border-inline-start:3px solid var(--stage-color);border-radius:5px;background:#fff;box-shadow:none}
#page-crm .crm-deal-card>b{font-size:14px;font-weight:750;line-height:1.65;color:#223745}
.crm-review-unread{background-color:#fff7f8!important}
#page-crm .crm-deal-card.crm-review-unread{border-color:#d12244;box-shadow:0 0 0 1px #d1224426}
#page-crm .crm-deal-card.crm-review-unread>b{font-weight:900;color:#17243a}
#page-crm .crm-list tr.crm-review-unread td{background:#fff7f8}
#page-crm .crm-list tr.crm-review-unread .crm-record-link,
#page-crm .crm-list tr.crm-review-unread .crm-record-link b{font-weight:850;color:#17243a!important}
.crm-review-chip{justify-self:start;border-radius:999px;padding:2px 8px;background:#fae4e9;color:#a51d3e;font-size:11px;font-weight:750;line-height:1.6}
.sidebar-item[data-page="crm"] .sidebar-unread{margin-inline-start:auto}
#page-crm .crm-card-value small{font-size:15px;font-weight:700;color:#32566a}
.crm-card-person>.day-symbol{width:15px;height:15px;flex:none;color:#52707e}
.crm-card-meta{padding-top:7px;border-top:1px solid #e1e8ed}
#page-crm .crm-card-meta em.is-overdue{padding:3px 6px;border-radius:4px;background:#ffedf0;color:#a32b45}
.crm-detail button:focus-visible{outline:2px solid #784292;outline-offset:3px}
[data-workspace-record] .module-editor.crm-detail{max-width:none!important;margin-inline:auto!important}
.crm-detail .crm-history-entry header{min-height:32px!important;padding:0!important}
.crm-detail .crm-composer textarea{background:#fff9ed!important;border-color:#c4a76a!important;color:#3f3826!important}
.crm-detail .crm-composer:has([data-compose-mode=activity][aria-pressed=true]) textarea{background:#f0f6ff!important;border-color:#8aabd1!important;color:#243f51!important}
.crm-detail .crm-detail-actions [data-edit]{background:#efe8fc!important;color:#644199!important}
.crm-detail .crm-detail-actions [data-activity]{background:#e4edff!important;color:#2c5c9d!important}
.crm-detail .crm-detail-actions [data-note]{background:#fff0ce!important;color:#83560e!important}
.crm-detail .crm-deal-items{margin-top:14px;margin-bottom:6px;padding-bottom:10px}
.crm-detail .crm-products-toggle{display:flex;align-items:center;gap:7px;min-height:36px;padding:6px 0;border:0;background:transparent;color:#176b88;font:inherit;font-size:13px;cursor:pointer;box-shadow:none}.crm-products-toggle b{font-weight:750}.crm-products-toggle .day-symbol{width:17px;height:17px}.crm-products-toggle[aria-expanded=true]{color:#963451}.crm-products-toggle[aria-expanded=true]>.day-symbol:last-child{transform:rotate(180deg)}
.crm-detail .crm-deal-items>header{min-height:36px!important;padding:0 0 6px!important}
.crm-deal-items>output:empty{display:none}
@media(max-width:760px){.crm-product-row{flex-wrap:wrap}.crm-product-row>div{flex-basis:calc(100% - 48px)}.crm-product-row>strong{margin-inline-start:46px;flex:1}.crm-deal-items .crm-item-price{flex:1 1 190px}}
@media(max-width:1050px){#page-crm .crm-head>[data-crm-tools]{order:3;flex-basis:100%;justify-content:flex-start}}
@media(max-width:760px){#page-crm .crm-head .crm-workbar{flex-wrap:wrap}#page-crm .crm-head .crm-workbar .day-select,#page-crm .crm-head .crm-workbar select{width:130px}}
.crm-editor>header h3,.crm-quick-editor>header h3{display:flex;align-items:center;gap:8px}.crm-editor>header h3 .day-symbol,.crm-quick-editor>header h3 .day-symbol{width:20px;height:20px;flex:none}
.crm-owner-picker{position:relative}.crm-owner-control{display:flex;align-items:center;gap:6px;min-width:0}.crm-owner-control input{min-width:0;flex:1}.crm-owner-avatar{display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:50%;background:#e6f0f3;color:#2b6275;font-size:13px;font-weight:700}
.crm-owner-picker>label{display:grid;gap:6px;font-size:13px}.crm-owner-picker [data-owner-results] p{margin:0;padding:8px;font-size:12px}.crm-owner-summary{display:flex;align-items:center;gap:8px}.crm-owner-summary .day-user-avatar{width:36px;height:36px}.crm-owner-form{padding-block:10px;border-bottom:1px solid #b8cdd7}.crm-owner-actions{display:flex;gap:6px;align-items:center;justify-content:flex-end;margin-top:8px}.crm-owner-form [data-owner-status]{font-size:12px;line-height:1.7;color:#932c46;margin:6px 0}.crm-owner-form [data-owner-status]:empty{display:none}.crm-card-person .day-user-avatar{inline-size:28px;block-size:28px}.crm-card-person .day-user-avatar>span{max-width:none}
.crm-owner-picker [data-owner-results]:not(:empty){position:absolute;inset-inline:0;top:100%;z-index:100;max-height:240px;overflow:auto;padding:4px;border:1px solid #a6bccb;border-radius:5px;background:#fff;box-shadow:0 8px 22px #1b354b26}.crm-owner-picker [data-owner-results] button{display:flex;align-items:center;gap:8px;min-height:38px;width:100%;padding:6px;border:0;background:#fff;text-align:start;font:inherit;font-size:13px;color:#304e61;cursor:pointer}.crm-owner-picker [data-owner-results] button[aria-selected=true],.crm-owner-picker [data-owner-results] button:hover{background:#e7f2f5}
.crm-done-filter{display:flex!important;align-items:center;gap:6px;color:#456272;font-size:12px}.crm-done-filter input{accent-color:#197b88}.crm-pagination{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:12px 0}.crm-pagination output{font-size:12px;color:#526d7e}.crm-activity-subject{display:flex;align-items:start;gap:7px}.crm-activity-subject .day-symbol{width:18px;height:18px;flex:none;margin-top:3px}.crm-activity-subject small{display:block;font-size:12px;color:#536e7f}
.crm-detail>.crm-record-stages{flex-wrap:nowrap}.crm-detail .crm-record-commands [data-activity]{background:#e7effb!important;color:#295b91!important}.crm-detail .crm-record-commands [data-note]{background:#fff0ce!important;color:#79520c!important}
.crm-detail .crm-record-commands button:hover{filter:brightness(.97)}
.crm-detail .crm-record-amount{padding:8px 10px;margin:0;background:#edf2f6;font-size:20px;color:#244b62;border-radius:4px}
.crm-detail .crm-products-toggle{margin-block:4px 12px;min-height:36px;border-bottom:1px solid #d0dce4;width:100%;justify-content:flex-start}.crm-products-toggle>.day-symbol:last-child{margin-inline-start:auto}
.crm-detail .crm-products-toggle.primary-action{min-height:42px;padding:9px 12px;border:1.5px solid #285cc4;background:#285cc4;color:#fff;border-radius:6px;font-weight:700;box-shadow:0 2px 3px #193a761c}
.crm-detail .crm-products-toggle.primary-action:hover{background:#204da9;border-color:#204da9}.crm-detail .crm-products-toggle.primary-action:focus-visible{outline:3px solid #92ace3;outline-offset:3px}
.crm-products-toggle [data-product-summary]{display:grid;place-items:center;min-width:24px;min-height:24px;padding-inline:4px;border-radius:4px;background:#fff;color:#204da9;box-sizing:border-box}
.crm-detail .crm-products-toggle[aria-expanded=true]>.day-symbol:last-child{transform:none}
.crm-detail .crm-record-more>summary,.crm-detail .crm-related-documents summary{padding:7px 10px;min-height:34px;box-sizing:border-box;border:1px solid #9baecb;border-radius:5px;background:#f1f5fc;color:#244d92}
.crm-detail :is(.crm-record-more>summary,.crm-related-documents summary):hover{background:#e4edfc;border-color:#547bbd}.crm-detail :is(.crm-record-more>summary,.crm-related-documents summary):focus-visible{outline:2px solid #285cc4;outline-offset:2px}
.crm-detail .crm-detail-actions button{border:1.5px solid #94acd0!important}.crm-detail .crm-record-commands button{border:1px solid #94acd0!important}
.crm-deal-items .crm-product-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(620px,2.6fr);align-items:center;gap:16px;padding:12px 0;border-bottom:1px solid #b8c8df}
.crm-product-row>header{display:flex;align-items:center;gap:10px;min-width:0;padding:0;border:0;background:transparent}
.crm-product-row>header>div{min-width:0;flex:1}.crm-product-row>header>span:last-child{display:flex;align-items:center;gap:6px;flex:none}
.crm-product-row>header .secondary-action{white-space:nowrap}
.crm-product-prices{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px 12px;margin:12px 0 0;padding:10px 12px;background:#f3f6fc;border-radius:5px}
.crm-product-prices>div{min-width:0}.crm-product-prices dt{font-size:12px;color:#52627b}.crm-product-prices dd{margin:4px 0 0;font-size:14px;overflow-wrap:anywhere;color:#26364e;font-weight:600}.crm-product-prices>div:last-child dd{font-weight:700;color:#204da9}
.crm-quoted-shelves h5 small{font-size:12px;font-weight:400;color:#52627b;margin-inline-start:10px}
.crm-deal-items [data-item-form]{display:flex;flex-wrap:wrap;gap:12px;padding:14px;border:1px solid #90a7ce;border-radius:6px;background:#f7f9fe;margin-top:14px}
.crm-deal-items [data-item-edit-title]{flex-basis:100%;font-size:14px;font-weight:700;margin:0;overflow-wrap:anywhere}
.crm-deal-items [data-item-form] label{flex:0 1 100px;font-size:13px}.crm-deal-items [data-item-form] .crm-item-price{flex:1 1 160px}.crm-deal-items [data-item-form] .crm-item-choice{flex:1 1 100%}
.crm-deal-items [data-item-preview]{flex-basis:100%;font-size:14px;font-weight:700;color:#204da9}.crm-deal-items [data-item-preview][data-invalid]{color:#a32640}.crm-deal-items .crm-item-form-actions{flex-basis:100%;gap:10px}
.crm-products-empty{margin:12px 0;color:#52627b;font-size:13px}
.crm-product-prices.crm-product-inline{grid-template-columns:80px minmax(120px,1fr) minmax(160px,1.2fr) 84px minmax(110px,1fr);align-items:start;background:transparent;padding:0;margin:0;gap:10px}
.crm-product-inline>label{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;min-width:0;color:#3b4f6c;font-size:12px}
.crm-product-inline>label:has(select){grid-template-columns:76px minmax(0,1fr)}
.crm-product-inline>label>span:not(.day-select){grid-column:1/-1}
.crm-product-inline input{width:100%;min-width:0;box-sizing:border-box;min-height:40px;padding:8px;border:1px solid #90a7ce;border-radius:5px;background:#fff;color:#26364e;font:inherit;font-family:'DayVazirDigits','Vazir',sans-serif;font-size:14px}
.crm-product-inline input:focus-visible{outline:2px solid #285cc4;outline-offset:2px}
.crm-deal-items .crm-product-inline input[data-inline-field=taxRate],.crm-deal-items [data-item-form] input[name=taxRate]{width:60px;max-width:100%;padding-inline:5px;justify-self:start}
.crm-deal-items .crm-product-inline input,.crm-deal-items [data-item-form] input:is([inputmode=decimal],[inputmode=numeric]),.crm-deal-items [data-inline-total]>b,.crm-deal-items .crm-product-totals b{direction:ltr;text-align:left}
.crm-product-inline .day-select{min-width:0;width:76px}.crm-product-inline .day-select-button{padding-inline:6px}
.crm-product-inline>output{display:grid;gap:6px;min-width:0}.crm-product-inline>output>b{font-size:16px;font-weight:700;color:#204da9;overflow-wrap:anywhere}
.crm-products-add{display:flex;justify-content:flex-start;padding-block:12px}
.crm-product-row [data-save-state]{font-size:11px;min-height:16px;color:#4b607a}
.crm-deal-items [data-item-form]{padding:10px 0;border:0;border-bottom:1px solid #b8c8df;background:transparent;gap:10px;margin:0}
.crm-deal-items [data-item-form] .crm-item-choice{flex:1 1 230px}
.crm-deal-items [data-item-form] .crm-item-price{flex:0 1 130px}
.crm-deal-items [data-item-form] label:has([name=taxRate]){flex:0 1 80px}
.crm-deal-items [data-item-form] label:has([name=unit]){flex:0 1 55px}
.crm-deal-items [data-item-form] label:has([name=quantity]){flex:0 1 80px}
.crm-deal-items [data-item-form] input{box-sizing:border-box;width:100%;min-width:0;min-height:40px;border:1px solid #90a7ce;border-radius:5px;padding:8px;background:#fff;color:#26364e;font:14px 'DayVazirDigits','Vazir',sans-serif}
.crm-deal-items [data-item-form] input:focus-visible{outline:2px solid #285cc4;outline-offset:2px}
.crm-deal-items:has([data-item-form]:not([hidden])) .crm-products-add{display:none}
.crm-deal-items [data-item-preview]{font-size:13px;flex-basis:auto;margin-inline-start:auto}
.crm-deal-items .crm-item-form-actions{flex-basis:auto}
@media(max-width:1050px){.crm-deal-items .crm-product-row{grid-template-columns:minmax(0,1fr);gap:8px}.crm-product-prices.crm-product-inline{grid-template-columns:80px minmax(120px,1fr) minmax(160px,1.2fr) 84px minmax(100px,1fr)}.crm-product-inline>output{grid-column:auto}}
@media(max-width:760px){.crm-product-prices.crm-product-inline{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-product-inline>output{grid-column:1/-1}}
@media(max-width:430px){.crm-product-prices.crm-product-inline{grid-template-columns:minmax(0,1fr)}}
.crm-deal-items .crm-product-totals{display:flex;justify-content:flex-end;gap:14px 24px;flex-wrap:wrap;padding:14px 0}.crm-product-totals>span{display:grid;gap:4px;min-width:120px}.crm-product-totals small,.crm-products-currency{font-size:12px;font-weight:400;color:#52627b}.crm-product-totals b{font-size:15px;font-weight:700;color:#26364e}.crm-product-totals>span:last-child b{color:#204da9;font-size:18px}.crm-products-currency{margin-inline-end:auto}
@media(max-width:760px){.crm-product-prices{grid-template-columns:repeat(3,minmax(0,1fr))}.crm-product-row>header{align-items:start;flex-wrap:wrap}.crm-product-row>header>div{flex-basis:calc(100% - 48px)}.crm-product-row>header>span:last-child{margin-inline-start:46px}.crm-deal-items [data-item-form]{padding:10px}}
@media(max-width:430px){.crm-product-prices{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-deal-items [data-item-form] .crm-item-price{flex-basis:100%}}
@media(max-width:760px){.crm-record-layout{padding-inline:0}.crm-record-info dl>div{grid-template-columns:82px minmax(0,1fr)}.crm-record-info dl{display:block}.crm-history-entry{padding:10px}.crm-record-info{padding-bottom:12px}.crm-detail .crm-record-amount{font-size:20px}}
@media(prefers-reduced-motion:reduce){.crm-detail *{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:760px){#page-crm .crm-workbar,.crm-contact-toolbar{padding:8px 0}#page-crm .crm-head{padding-inline:12px}#page-crm .crm-summary{padding-inline:0;gap:8px 14px}#page-crm .crm-board{grid-auto-columns:235px}#page-crm .crm-workbar .day-select,#page-crm .crm-workbar select{width:145px}.crm-board-search{max-width:none;flex-basis:100%}.crm-record-layout{grid-template-columns:minmax(0,1fr);gap:16px}.crm-record-info{padding:0 0 14px;border-inline-end:0;border-bottom:1px solid #c7d5df}.crm-record-info dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.crm-deal-form{grid-template-columns:minmax(0,1fr)}.crm-composer-fields{grid-template-columns:minmax(0,1fr)}.crm-composer-fields label:last-child{grid-column:auto}.crm-detail>header h3{font-size:17px}}
@media(max-width:760px){.crm-detail .crm-record-info dl{display:block}.crm-detail .crm-record-info dl>div{grid-template-columns:94px minmax(0,1fr);padding-block:5px}.crm-detail .crm-record-amount{font-size:18px}.crm-detail>header h3{font-size:17px!important}.crm-detail .crm-record-layout{padding-inline:12px}.crm-detail .crm-record-info .crm-related-documents{margin-top:8px}.crm-detail .crm-record-info .crm-record-more{padding-block:8px}}

.contract-flow-summary{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:12px 14px;margin:0 0 14px;background:var(--day-module-soft);border-inline-start:3px solid var(--day-module-accent);border-radius:6px;}
.contract-flow-summary>div{display:grid;gap:4px;min-width:0;}.contract-flow-summary small,.contract-flow-summary>span{color:var(--module-muted);font-size:12px;}.contract-list-actions{white-space:nowrap;}.contract-list-actions button+button{margin-inline-start:6px;}.contract-flow-state{font-weight:700;color:var(--day-module-accent);}

.crm-collaborators{padding-block:12px;border-bottom:1px solid #d5dfed;}
.crm-collaborators-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;font-size:13px;}
.crm-collaborator-avatars{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;}.crm-collaborator-avatars:empty{display:none;}.crm-collaborator-avatars .is-inactive{filter:grayscale(1);opacity:.65;}
.crm-collaborators [data-status]:empty,.crm-collaborators [data-message]:empty{display:none;}
.crm-collaborators [data-status],.crm-collaborators [data-message]{font-size:12px;color:#8f2842;overflow-wrap:anywhere;}
dialog.crm-collaborators-dialog{position:fixed;inset:0;margin:auto;width:min(540px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);height:fit-content;padding:0;border:1px solid #c6d3e7;border-radius:12px;box-sizing:border-box;background:#fff;color:#27364e;font-family:'Vazir',sans-serif;box-shadow:0 18px 60px #152c4d33;overflow:auto;}
dialog.crm-collaborators-dialog::backdrop{background:#19283b66;}
.crm-collaborators-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;border-bottom:1px solid #d5dfed;background:#f5f7fc;}
.crm-collaborators-dialog h3{margin:0;font-size:17px;font-weight:700;}
.crm-collaborators-body{padding:14px;}.crm-collaborators-hint{margin:0 0 14px;font-size:13px;line-height:1.9;color:#465875;}
.crm-collaborator-member{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #e2e8f2;}.crm-collaborator-member>span{flex:1;min-width:0;font-size:13px;overflow-wrap:anywhere;}.crm-collaborator-member small{display:block;color:#8f2842;}
.crm-collaborators-dialog [data-add]{margin-top:16px;}.crm-collaborators-dialog [data-add]>label{display:block;font-size:13px;font-weight:700;margin-bottom:6px;}
.crm-collaborator-add{display:flex;align-items:center;gap:8px;}.crm-collaborator-add input{flex:1;min-width:0;box-sizing:border-box;width:100%;min-height:44px;padding:8px 10px;border:1px solid #91a5c4;border-radius:6px;background:#fff;color:#27364e;font:14px 'Vazir',sans-serif;text-align:right;}
.crm-collaborator-add button{flex:none;}.crm-collaborators-dialog button{min-height:40px;}.crm-collaborators-dialog button svg,.crm-collaborators-head button svg{width:18px;height:18px;flex:none;}
.crm-collaborator-options{max-height:min(240px,32dvh);overflow:auto;overscroll-behavior:contain;margin-top:6px;border:1px solid #c6d3e7;border-radius:6px;}
.crm-collaborator-options button{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:8px 10px;border:0;border-bottom:1px solid #e2e8f2;background:#fff;color:#27364e;font:14px 'Vazir',sans-serif;text-align:right;cursor:pointer;}
.crm-collaborator-options button:hover,.crm-collaborator-options button[aria-selected=true]{background:#eaf0ff;color:#183f91;}.crm-collaborator-options p{padding:10px;font-size:13px;}
.crm-collaborators-dialog :is(input,button):focus-visible{outline:2px solid #285cc4;outline-offset:2px;}
.crm-collaborators-dialog>footer{display:flex;justify-content:flex-end;gap:12px;padding:12px 14px;border-top:1px solid #d5dfed;}
@media(max-width:600px){.crm-collaborators-dialog>header,.crm-collaborators-dialog>footer,.crm-collaborators-body{padding:12px;}.crm-collaborators-dialog button{min-height:44px;}}

/* Opportunity products: one shared column layout for saved and new rows. */
dialog.crm-products-dialog:has(>.crm-products-sheet){width:min(1360px,calc(100vw - 40px));}
.crm-deal-items.crm-products-sheet{--crm-product-columns:minmax(250px,2fr) 56px 72px minmax(120px,1fr) minmax(160px,1.2fr) 62px minmax(135px,1fr) 72px;min-width:0;font-family:'Vazir',sans-serif;}
.crm-products-sheet>.crm-products-scroll{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-gutter:stable;padding:2px 2px 8px;}
.crm-products-sheet .crm-products-columns,.crm-products-sheet .crm-sheet-row{display:grid;grid-template-columns:var(--crm-product-columns);gap:8px;align-items:center;min-width:1010px;width:100%;box-sizing:border-box;}
.crm-products-sheet .crm-products-columns{padding:9px 4px;background:#f0f4fb;border-bottom:1px solid #c6d3e7;color:#354967;font-size:12px;font-weight:700;text-align:center;}
.crm-products-sheet .crm-sheet-row{margin:0;padding:8px 4px;border:0;border-bottom:1px solid #e0e6f0;border-radius:0;min-height:62px;background:transparent;}
.crm-products-sheet .crm-sheet-row>*{min-width:0;max-width:100%;box-sizing:border-box;}
.crm-products-sheet .crm-sheet-row :is(input:not([type=hidden]),.day-select-button){width:100%;min-width:0;max-width:100%;height:38px;min-height:38px;box-sizing:border-box;margin:0;padding:6px 8px;border:1px solid #9cacc6;border-radius:6px;background:#fff;color:#27364e;font-family:'Vazir',sans-serif;font-size:14px;line-height:1.5;}
.crm-products-sheet .crm-sheet-row input[dir=ltr]{text-align:left;direction:ltr;}
.crm-products-sheet .crm-sheet-row input{font-family:'DayVazirDigits','Vazir',sans-serif;}
.crm-products-sheet .crm-sheet-row input[readonly]{background:#f7f9fc;}
.crm-products-sheet .crm-sheet-row .day-select-button{white-space:nowrap;overflow-wrap:normal;overflow:hidden;text-overflow:clip;}
.crm-products-sheet .crm-new-item-choice .day-select-button{display:block;padding-inline-end:26px;}
.crm-products-sheet .crm-sheet-discount{display:grid;grid-template-columns:60px minmax(0,1fr);align-items:center;gap:6px;}
.crm-products-sheet .crm-sheet-discount .day-select-button{font-size:12px;padding-inline:6px;}
.crm-products-sheet .crm-sheet-identity{text-align:right;overflow:hidden;}
.crm-products-sheet .crm-fit-title{display:block;max-width:100%;font-size:14px;font-weight:700;line-height:1.6;white-space:nowrap;overflow-wrap:normal;word-break:normal;overflow:hidden;text-overflow:clip;}
.crm-products-sheet .crm-sheet-meta{display:flex;gap:8px;align-items:center;white-space:nowrap;overflow:hidden;min-height:15px;color:#52627b;}
.crm-products-sheet .crm-sheet-meta small{font-size:10px;}
.crm-products-sheet .crm-sheet-unit{height:38px;display:flex;align-items:center;justify-content:center;font-size:12px;white-space:nowrap;overflow:hidden;}
.crm-products-sheet .crm-sheet-tax{position:relative;}
.crm-products-sheet .crm-sheet-tax small{display:block;font-size:9px;white-space:nowrap;color:#52627b;}
.crm-products-sheet .crm-sheet-row>output{display:block;min-width:0;white-space:nowrap;text-align:left;direction:ltr;font-size:13px;font-weight:700;color:#234eab;overflow:auto;}
.crm-products-sheet .crm-sheet-row>output b{font-size:inherit;}
.crm-products-sheet .crm-sheet-actions{display:flex;justify-content:center;align-items:center;gap:6px;}
.crm-products-sheet .crm-sheet-actions button,.crm-products-sheet [data-remove-new]{width:32px;min-width:32px;height:34px;min-height:34px;padding:5px;justify-self:center;}
.crm-products-sheet .crm-new-product{background:#f9fbff;}
.crm-products-sheet .crm-new-product[data-invalid=true]{box-shadow:inset -3px 0 #ad2447;}
.crm-products-sheet .crm-products-add{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:8px;padding:10px 2px;margin:0;}
.crm-products-sheet .crm-products-add button{width:auto;flex:0 0 auto;min-height:36px;}
.crm-products-sheet .crm-quoted-shelves{margin:0;border:0;min-width:1010px;}
.crm-products-sheet .crm-quoted-shelves>header{padding:8px 4px;}
.crm-products-sheet .crm-product-totals{display:flex;flex-wrap:wrap;gap:16px 28px;justify-content:flex-end;padding:12px 4px;margin:0;border-top:1px solid #d5dfed;}
.crm-products-sheet .crm-product-totals>span{display:grid;gap:3px;}
.crm-products-sheet .crm-product-totals small{font-size:11px;color:#52627b;}
.crm-products-sheet .crm-product-totals b{font-size:14px;direction:ltr;text-align:left;}
.crm-products-sheet [hidden]{display:none!important;}
@media(max-width:760px){dialog.crm-products-dialog:has(>.crm-products-sheet){width:calc(100vw - 24px);}.crm-products-sheet .crm-products-add button{min-height:44px;}.crm-products-sheet .crm-sheet-row :is(input:not([type=hidden]),.day-select-button){min-height:44px;height:44px;}}

/* Sales review inbox uses the shared shell and table conventions. */
.crm-review-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px}.crm-review-filters>label{display:grid;gap:6px;min-width:0}.crm-review-filters>label:first-child{flex:1 1 260px;max-width:480px}.crm-review-filters>label:nth-child(2){width:160px}.crm-review-inbox .module-pagination{display:flex;align-items:center;gap:12px;margin-top:14px}.crm-review-badge{display:inline-grid;place-items:center;min-width:22px;height:22px;padding-inline:5px;box-sizing:border-box;border-radius:11px;background:#a3204f;color:#fff;font-size:11px;font-weight:700;margin-inline-start:auto}.crm-review-badge[hidden]{display:none}#day-erp-sidebar [data-module-menu-key="review"]{display:flex;align-items:center;gap:8px}.crm-review-unread .crm-record-link{font-weight:700}.sales-price-comparison{margin-block:12px}.sales-price-comparison-summary{display:flex;flex-wrap:wrap;gap:12px;align-items:center;padding:12px 14px;background:#f3f5fb;color:#24364c}.sales-price-comparison-summary small{font-size:12px}.sales-price-comparison table{min-width:850px}.sales-price-comparison summary{font-weight:700;cursor:pointer;padding-block:8px}

.sales-price-comparison tbody tr[data-price-status="lower"]>td{background:#fff0f1!important;color:#8f1830!important}.sales-price-comparison tbody tr[data-price-status="higher"]>td{background:#edf8f0!important;color:#185a30!important}.sales-price-comparison tbody tr[data-price-status="within"]>td{background:#fff!important;color:#26364d!important}

/* CRM intake uses the shared form scale and keeps optional detail progressive. */
.crm-contact-editor{width:min(880px,100%)}
.crm-contact-section{min-width:0;margin:0 0 14px;padding:10px 0 0;border:0;border-top:1px solid #d5dfed}
.crm-contact-section legend{padding-inline-end:10px;font-size:14px;font-weight:700;color:#26364d}
.crm-contact-section .module-form-grid,.crm-contact-extra .module-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
.crm-contact-editor [hidden],.crm-form-error[hidden]{display:none!important}
.crm-contact-extra{padding-block:4px 12px}.crm-contact-extra>summary{cursor:pointer;font-weight:700;padding-block:8px}.crm-contact-extra[open]>summary{margin-bottom:8px}
.crm-contact-picker [data-company-results]:not(:empty){position:absolute;z-index:100;inset-inline:0;top:100%;max-height:240px;overflow:auto;padding:5px;border:1px solid #acbfcc;border-radius:5px;background:#fff;box-shadow:0 10px 24px #18243426}
.crm-contact-picker :is([data-contact-results],[data-company-results]){max-height:240px;overflow:auto;overscroll-behavior:contain}
.crm-contact-picker :is([data-contact-results],[data-company-results]) button{display:flex;align-items:center;justify-content:space-between;width:100%;gap:8px;padding:8px;border:0;background:#fff;color:#293f50;text-align:start;font:inherit;cursor:pointer}
.crm-contact-picker :is([data-contact-results],[data-company-results]) button[aria-selected=true]{background:#e8eefb}
.crm-contact-picker :is([data-contact-results],[data-company-results]) p{margin:0;padding:8px}
.crm-form-error{margin-block:12px;padding:10px 12px;background:#fff1f4;color:#8e1838;border-radius:6px;font-size:13px;line-height:1.8}
.crm-contact-editor input[aria-invalid=true],.crm-deal-form input[aria-invalid=true]{border-color:#a3204f}
.crm-related-contacts{margin-block:12px}.crm-related-contacts .crm-record-link{margin:4px}
@media(max-width:600px){.crm-contact-section .module-form-grid,.crm-contact-extra .module-form-grid{grid-template-columns:minmax(0,1fr)}.crm-contact-editor .span-2{grid-column:auto}.crm-contact-picker :is([data-contact-results],[data-company-results]) button{min-height:44px}}

.crm-field-caption,.crm-contact-add>span{display:flex;align-items:center;gap:6px;min-inline-size:0}
.crm-field-symbol{display:inline-flex;flex:none;color:#435c80}
.crm-field-symbol>svg,.crm-contact-add>span>svg{inline-size:16px;block-size:16px;flex:none}
.crm-contact-picker [data-contact-results] .crm-contact-add{background:#edf2fc;color:#24497d;font-weight:700}
.crm-contact-picker [data-contact-results] .crm-contact-add:is(:hover,[aria-selected=true]){background:#dee8f9}
.crm-contact-add>span{overflow-wrap:anywhere;text-align:start}
.crm-deal-form{align-items:end}
.crm-deal-form>label{min-inline-size:0}
.crm-deal-form>label.crm-deal-short{max-inline-size:16rem}
.crm-deal-form>label.span-2{max-inline-size:36rem}

.crm-contact-editor :is(.crm-contact-section,.crm-contact-extra)>.module-form-grid{
  grid-template-columns:repeat(12,minmax(0,1fr));align-items:end;gap:9px 12px;
}
.crm-contact-editor :is(.crm-contact-section,.crm-contact-extra)>.module-form-grid>:is(label,.crm-owner-picker){
  min-inline-size:0;inline-size:100%;grid-column:span 6;
}
.crm-contact-editor :is(.crm-contact-section,.crm-contact-extra)>.module-form-grid>.crm-field-narrow{grid-column:span 4}
.crm-contact-editor :is(.crm-contact-section,.crm-contact-extra)>.module-form-grid>:is(.crm-field-wide,.crm-owner-picker){grid-column:span 8}
.crm-contact-editor :is(.crm-contact-section,.crm-contact-extra)>.module-form-grid>.crm-field-full{grid-column:1/-1}
.crm-contact-editor .crm-field-number{max-inline-size:14rem}
.crm-contact-editor .module-form-grid label>:is(input,textarea,.day-select){min-inline-size:0;max-inline-size:100%}

dialog.crm-person-dialog{
  box-sizing:border-box;width:min(650px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);
  margin:auto;padding:0;overflow:auto;overscroll-behavior:contain;background:#fff;
  border:1px solid #c9d7e9;border-radius:14px;box-shadow:0 20px 60px #1223423b;
}
dialog.crm-person-dialog::backdrop{background:#17284063}
dialog.crm-person-dialog:not([open]){display:none}
.crm-contact-result-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.crm-contact-result-phone{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;color:#254675}
.crm-contact-result-phone>svg{width:14px;height:14px;flex:none}
.crm-contact-repeated:not(:empty){display:grid;gap:6px;margin:0 0 10px}
.crm-contact-repeated>[data-extra-add]{justify-self:start}
.crm-extra-contact-row{display:flex;gap:8px;align-items:end;margin-block:4px}
.crm-extra-contact-row>label{display:grid;gap:4px;flex:0 1 16rem;min-width:0}
[data-contact-extra=addresses] .crm-extra-contact-row>label{flex-basis:36rem}
.crm-products-footer{display:flex;justify-content:flex-start;padding:10px 0 2px;border-top:1px solid #d8e1ef}
.crm-completion-note{white-space:pre-wrap}
dialog.crm-person-dialog>.crm-contact-editor{
  position:static;transform:none;width:100%;max-height:none;overflow:visible;
  margin:0;padding:16px 18px;border:0;border-radius:0;box-shadow:none;
}
@media(max-width:600px){
  .crm-contact-editor :is(.crm-contact-section,.crm-contact-extra)>.module-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .crm-contact-editor :is(.crm-contact-section,.crm-contact-extra)>.module-form-grid>:is(label,.crm-owner-picker){grid-column:span 1}
  .crm-contact-editor :is(.crm-contact-section,.crm-contact-extra)>.module-form-grid>:is(.crm-field-wide,.crm-field-full,.crm-owner-picker){grid-column:1/-1}
  dialog.crm-person-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}
  dialog.crm-person-dialog>.crm-contact-editor{padding:12px}
}

/* Contact submission feedback: preserve form content and expose failure. */
.crm-contact-editor .crm-form-error:not([hidden]){display:flex;align-items:flex-start;gap:8px;background:#fff4f4!important;color:#a71920!important;border:1px solid #cb2931;line-height:1.8}
.crm-contact-editor .crm-form-error>svg{flex:none;width:20px;height:20px;margin-top:2px;stroke:currentColor}
.crm-contact-editor .crm-form-error>span{min-width:0;overflow-wrap:anywhere}
.crm-contact-editor .crm-form-error:focus{outline:2px solid #a71920;outline-offset:2px}
.crm-contact-editor .crm-contact-save-status{font-size:13px;line-height:1.7;color:#34465d}
.crm-contact-editor footer button[aria-busy=true]{cursor:progress}
