.crm-page{min-width:0}.crm-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:24px}.crm-heading-title{min-width:0}.crm-heading-title>div{display:flex;align-items:center;gap:18px;min-width:0}.crm-heading h1{font-size:27px;overflow-wrap:anywhere}.crm-heading .context-label{margin-bottom:8px}.crm-heading-actions{display:flex;gap:9px;align-items:center;flex-shrink:0}.crm-view-switch{display:flex;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:3px;gap:2px;flex-shrink:0}.crm-view-switch .icon-btn{width:31px;height:29px;border-radius:7px;color:var(--muted)}.crm-view-switch [aria-pressed=true]{background:var(--soft);color:var(--accent)}.crm-toolbar{display:flex;align-items:center;gap:14px;margin-bottom:22px}.crm-search{display:flex;align-items:center;gap:10px;min-width:150px;width:270px;border:1px solid var(--line);border-radius:10px;padding:9px 12px;background:var(--surface);color:var(--muted)}.crm-search .icon{width:16px;height:16px}.crm-search input{background:transparent;color:var(--ink);min-width:0;width:100%;outline:none;font-size:12px}.crm-search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--soft)}#crm-total{margin-left:auto;font-size:11px;color:var(--muted);text-align:right;font-variant-numeric:tabular-nums}.crm-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;min-height:340px;text-align:center;padding:36px}.crm-empty h2{font-size:19px}.crm-empty-icon{display:grid;place-items:center;width:60px;height:60px;border-radius:18px;background:var(--soft);color:var(--accent)}.crm-empty-icon .icon{width:26px;height:26px}.crm-loading{padding:60px 24px;text-align:center;color:var(--muted);font-size:12px}.crm-actions{position:relative}.crm-actions summary{list-style:none;border:1px solid var(--line);background:var(--surface)}.crm-actions summary::-webkit-details-marker{display:none}.crm-action-menu{position:absolute;right:0;top:calc(100% + 7px);width:224px;padding:6px;z-index:12;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 12px 35px #00000014;animation:crm-appear .16s ease-out}.crm-action-menu .btn{border:0;background:transparent;justify-content:flex-start;width:100%;font-size:12px;padding:10px}.crm-action-menu .btn:hover{background:var(--soft)}
.crm-board{display:flex;gap:14px;overflow-x:auto;align-items:stretch;padding:2px 2px 18px;min-height:420px;scrollbar-width:thin;scrollbar-color:var(--line) transparent;overscroll-behavior-x:contain}.crm-column{flex:0 0 270px;min-width:0;border-radius:13px;background:color-mix(in srgb,var(--surface) 40%,transparent);padding:12px 10px;transition:background .18s,box-shadow .18s}.crm-column>header{padding:0 2px 12px;border-bottom:2px solid var(--stage-color);margin-bottom:12px}.crm-column>header>div{display:flex;gap:8px;align-items:center}.crm-column h2{font-family:Plex,sans-serif;font-size:12px;font-weight:600;overflow-wrap:anywhere;min-width:0}.crm-column header .icon-btn{margin-left:auto;width:25px;height:25px;color:var(--muted);flex-shrink:0}.crm-column header .icon-btn .icon{width:15px;height:15px}.crm-stage-count{color:var(--muted);font-size:10px;background:var(--surface);border:1px solid var(--line);border-radius:5px;padding:1px 5px}.crm-column header small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.crm-column-cards{display:grid;align-content:start;gap:9px;min-height:100px}.crm-deal-card{width:100%;text-align:left;border:1px solid var(--line);border-radius:10px;padding:14px;background:var(--surface);box-shadow:0 2px 4px #00000003;cursor:grab;transition:border-color .18s,box-shadow .18s,transform .18s,opacity .18s;user-select:none}.crm-deal-card:hover{border-color:color-mix(in srgb,var(--accent) 40%,var(--line));box-shadow:0 5px 16px #00000009;transform:translateY(-2px)}.crm-deal-card:active{cursor:grabbing}.crm-deal-card strong{font-size:12px;font-weight:600;display:block;line-height:1.5;overflow-wrap:anywhere}.crm-deal-contact{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:10px;margin-top:8px;overflow-wrap:anywhere}.crm-deal-contact .icon{width:12px;height:12px}.crm-card-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:17px}.crm-card-bottom b{font-size:11px;font-weight:500}.crm-card-bottom time{font-size:9px;color:var(--muted)}.crm-deal-card.is-dragging{opacity:.25;transform:scale(.97);border-style:dashed}.crm-drag-preview{position:fixed;left:-1000px;top:-1000px;transform:rotate(-2deg);box-shadow:0 14px 34px #00000030;border-color:var(--accent);cursor:grabbing;pointer-events:none}.crm-column.is-over{background:var(--soft);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 35%,transparent)}.crm-column.is-over .crm-column-cards:after{content:'';height:68px;border:1px dashed var(--accent);border-radius:10px;background:color-mix(in srgb,var(--accent) 5%,transparent);animation:crm-appear .16s ease-out}.crm-column-empty{font-size:11px;color:var(--muted);text-align:center;padding:24px 4px;opacity:.65}.crm-column>.btn{width:100%;margin-top:12px;background:transparent;border-style:dashed;font-size:11px}.crm-table{padding:0;overflow:hidden}.crm-table .data-table{font-size:12px}.crm-table th{padding:13px 16px}.crm-table td{padding:15px 16px}.crm-table .data-table :is(th,td):first-child{width:44px;min-width:44px;max-width:44px;padding-inline:14px;text-align:center}.crm-table-link{display:flex;align-items:center;gap:10px;text-align:left;padding:0;font-size:12px;font-weight:500;overflow-wrap:anywhere}.crm-table-link:hover{color:var(--accent)}.crm-table .avatar{width:29px;height:29px;border-radius:9px}.crm-stage-label{display:inline-flex;align-items:center;gap:7px;font-size:11px}.crm-stage-label i{width:6px;height:6px;border-radius:50%;flex-shrink:0}.crm-table-empty{padding:65px 20px;text-align:center;color:var(--muted);font-size:12px}.crm-pagination{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:9px 15px;color:var(--muted);font-size:10px}.crm-pagination>div{display:flex;gap:4px}.crm-page button:disabled,.crm-row-actions button:disabled{opacity:.3;cursor:default;transform:none}.crm-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.crm-form-grid input,.crm-form-grid select{min-width:0}.crm-contact-select{margin-top:-10px}.crm-editor-dialog{width:min(620px,calc(100vw - 28px))}.crm-editor-heading{display:flex;justify-content:space-between;margin:24px 0 10px}.crm-stage-editor,.crm-order-list{display:grid;gap:8px;margin-bottom:12px;counter-reset:crm-row}.crm-stage-editor-row,.crm-order-row{display:flex;align-items:center;gap:9px;padding:9px;border:1px solid var(--line);border-radius:10px;background:var(--canvas);counter-increment:crm-row}.crm-order-number{font-size:10px;color:var(--muted);min-width:14px;text-align:center}.crm-order-number:before{content:counter(crm-row,decimal-leading-zero)}.crm-stage-name{min-width:0;width:100%;padding:7px;background:var(--surface);border:1px solid var(--line);border-radius:6px;color:var(--ink);font-size:12px}.crm-row-actions{display:flex;gap:1px;flex-shrink:0}.crm-row-actions .icon-btn{width:25px;height:28px}.crm-row-actions .icon{width:13px;height:13px}.crm-order-row strong{min-width:0;flex:1;overflow-wrap:anywhere;font-size:12px;font-weight:500}
@media(max-width:900px){.crm-heading-title>div{gap:10px}.crm-heading h1{font-size:23px}.crm-column{flex-basis:250px}}
@media(max-width:700px){.crm-heading{align-items:flex-start;flex-wrap:wrap;gap:15px;margin-bottom:18px}.crm-heading-title{flex:1 1 100%}.crm-heading-title>div{justify-content:space-between}.crm-heading-actions{width:100%;justify-content:flex-end}.crm-heading-actions>.btn{margin-right:auto}.crm-toolbar{flex-wrap:wrap;gap:8px}.crm-search{flex:1;width:auto}.crm-toolbar #crm-total{order:3;width:100%;text-align:left;margin:4px 0 0}.crm-column{flex-basis:calc(100vw - 65px)}.crm-empty{min-height:280px;padding:25px 16px}.crm-form-grid{gap:10px}.crm-stage-editor-row{gap:4px;padding:8px 5px}.crm-stage-editor-row .crm-order-number{display:none}.crm-row-actions .icon-btn{width:24px}.crm-editor-dialog .dialog-body{padding:20px 16px}.crm-action-menu{width:220px}.crm-heading .context-label{font-size:10px}}
@media(prefers-reduced-motion:reduce){.crm-page *, .crm-drag-preview{animation:none!important;transition:none!important}}

/* Pipeline structure: quiet groups, tactile handles and a bounded color palette. */
.crm-stage-groups{display:grid;gap:22px;margin-top:24px}
.crm-editor-dialog .account-form-footer{position:sticky;bottom:-24px;z-index:2;background:var(--surface);padding:14px 0 24px;margin-bottom:-24px;box-shadow:0 12px 0 var(--surface)}
.crm-stage-group{min-width:0;border-radius:10px;transition:background .18s,box-shadow .18s}
.crm-stage-group>header{display:flex;align-items:center;gap:9px;margin-bottom:10px}
.crm-stage-group h3{font-family:Plex,sans-serif;font-size:12px;font-weight:600}
.crm-stage-group [data-stage-count]{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}
.crm-stage-editor{min-height:0;margin-bottom:6px;gap:7px}
.crm-stage-editor-row{padding:8px;gap:8px;transition:border-color .18s,box-shadow .18s;position:relative}
.crm-stage-editor-row .crm-stage-grip{width:24px;height:34px;flex-shrink:0;color:var(--muted);cursor:grab;touch-action:none}
.crm-stage-grip .icon{width:17px;height:20px}
.crm-stage-grip:active{cursor:grabbing}
.crm-stage-grip:hover{color:var(--ink);background:var(--soft)}
.crm-stage-editor-row .crm-stage-name{padding:9px 10px;font-size:12px;height:35px}
.crm-stage-color{display:grid;place-items:center;width:28px;height:34px;flex-shrink:0;border-radius:7px;transition:background .18s}
.crm-stage-color:before{content:'';width:20px;height:20px;border-radius:6px;background:var(--swatch);box-shadow:inset 0 0 0 1px #0000000a;transition:transform .18s}
.crm-stage-color:hover:before{transform:scale(1.12)}
.crm-stage-color[aria-expanded=true]{background:var(--soft)}
.crm-stage-editor-row .crm-remove-stage{width:28px;height:34px;flex-shrink:0;color:var(--muted)}
.crm-remove-stage .icon{width:14px;height:14px}
.crm-remove-stage:disabled{opacity:.25;cursor:default}
.crm-add-stage{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;height:35px;font-size:11px;color:var(--muted);border:1px dashed var(--line);border-radius:8px;transition:color .18s,background .18s,border-color .18s}
.crm-add-stage .icon{width:14px;height:14px}
.crm-add-stage:hover{background:var(--soft);color:var(--accent);border-color:var(--accent)}
.crm-stage-group.is-stage-target{background:color-mix(in srgb,var(--accent) 4%,transparent);box-shadow:0 0 0 6px color-mix(in srgb,var(--accent) 4%,transparent)}
.crm-stage-group.is-stage-target .crm-add-stage{border-color:var(--accent)}
.crm-stage-editor-row.is-stage-dragging{opacity:.3;border:1px dashed var(--accent);background:var(--soft)}
.crm-stage-editor-row.is-lifted{border-color:var(--accent);box-shadow:0 4px 15px #00000014}
.crm-stage-ghost{position:fixed!important;left:0;top:0;margin:0;z-index:5;pointer-events:none;box-sizing:border-box;box-shadow:0 14px 35px #00000028;border-color:var(--accent);background:var(--surface);opacity:.98;transition:none!important;will-change:transform}
.crm-stage-groups.is-sorting{user-select:none}
.crm-stage-palette{position:fixed;inset:auto;margin:0;padding:10px;grid-template-columns:repeat(6,30px);gap:5px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);box-shadow:0 8px 30px #00000026;width:max-content;max-width:calc(100vw - 24px)}
.crm-stage-palette:popover-open{display:grid;animation:crm-appear .15s ease-out}
.crm-stage-palette button{width:30px;height:30px;display:grid;place-items:center;background:var(--swatch);border-radius:7px;border:2px solid transparent;transition:transform .15s}
.crm-stage-palette button:hover{transform:scale(1.1)}
.crm-stage-palette button[aria-pressed=true]{border-color:var(--ink)}
.crm-stage-palette .icon{width:17px;height:17px;color:#18222e}
.crm-stage-palette button:focus-visible,.crm-stage-color:focus-visible,.crm-stage-grip:focus-visible,.crm-add-stage:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.crm-sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:700px){.crm-editor-dialog .account-form-footer{bottom:-20px;margin-bottom:-20px;padding-bottom:20px}.crm-stage-editor-row{gap:5px;padding:6px}.crm-stage-editor-row .crm-stage-grip{width:22px}.crm-stage-color{width:25px}.crm-stage-editor-row .crm-remove-stage{width:24px}.crm-stage-groups{gap:20px}.crm-stage-editor-row .crm-stage-name{padding:8px;min-width:0}}
@media(prefers-reduced-motion:reduce){.crm-stage-groups *,.crm-stage-palette{transition:none!important;animation:none!important}}

.crm-action-menu{max-height:calc(100dvh - 170px);overflow-y:auto}.crm-action-menu .popover-divider{margin:5px 6px}.crm-action-menu a.btn{text-decoration:none}

/* Deal list: a narrow selector, readable links and colored stages. */
.crm-table .data-table{table-layout:fixed;min-width:var(--crm-table-min,724px)}
.crm-select-col{width:44px}.crm-title-col{width:34%}
.crm-table :is(td,th){overflow:hidden;text-overflow:ellipsis}
.crm-table td{height:54px;padding-block:11px}.crm-table [type=checkbox]{display:block;width:15px;height:15px;accent-color:var(--accent);margin:0}
.crm-table-link{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink)}
.crm-table-link:hover{text-decoration:underline;text-underline-offset:3px}.crm-list-contact{font-weight:400}
.crm-list-title{display:flex;align-items:center;gap:8px;min-width:0}.crm-list-title>.crm-table-link{flex:0 1 auto}
.crm-list-tag-count{flex-shrink:0;min-width:25px;height:24px;padding:1px 5px;border:1px solid var(--line);border-radius:5px;color:var(--muted);background:var(--canvas);font-size:10px;line-height:1}
.crm-list-tag-count:hover,.crm-list-tag-count[aria-expanded=true]{color:var(--ink);border-color:var(--accent);background:var(--soft)}
.crm-stage-badge{display:inline-block;max-width:100%;padding:4px 8px;border-radius:5px;border:1px solid color-mix(in srgb,var(--stage-color) 65%,var(--line));background:color-mix(in srgb,var(--stage-color) 20%,var(--surface));color:var(--ink);font-size:11px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.crm-table [data-column=amount],.crm-table [data-column=price]{text-align:right;font-variant-numeric:tabular-nums}
.crm-table-options{margin-bottom:10px}

.crm-order-row .crm-sort-handle{cursor:grab;touch-action:none;color:var(--muted);flex-shrink:0}.crm-order-row.is-sorting{border-color:var(--accent);background:var(--soft);box-shadow:0 8px 22px #0002}.crm-order-row.is-sorting .crm-sort-handle{cursor:grabbing}.crm-order-row .crm-sort-handle .icon{width:18px;height:18px}
.crm-bulk-controls{display:flex;align-items:center;gap:16px;margin:0 0 14px;padding:13px 16px;border:1px solid var(--line);border-radius:12px;background:var(--soft)}.crm-bulk-controls>div{display:flex;flex:1;gap:17px;flex-wrap:wrap}.crm-bulk-controls [data-crm-selected-count]{white-space:nowrap;font-size:12px;color:var(--muted)}.crm-bulk-controls .text-btn{display:inline-flex;align-items:center;gap:6px;font-size:12px}.crm-bulk-controls .icon{width:16px;height:16px}.crm-table tr.is-selected td{background:var(--soft)}.crm-bulk-task{margin-bottom:20px}.crm-bulk-task .crm-task-options{flex-wrap:wrap}.crm-bulk-field-note{font-size:12px;color:var(--muted);margin-bottom:14px}[data-bulk-contact-search]{margin-bottom:8px}
@media(max-width:700px){.crm-bulk-controls{flex-wrap:wrap;gap:10px}.crm-bulk-controls>div{order:3;flex-basis:100%;gap:13px}.crm-bulk-controls>[data-crm-bulk-clear]{margin-left:auto}}
.crm-table .has-selection-actions>:is(th,td){background:var(--soft)}
.crm-table tr.is-selected>:first-child{box-shadow:inset 3px 0 var(--accent)}
.crm-table [data-selection-cell]{padding:8px 12px;font-weight:400;text-transform:none;letter-spacing:normal}
.crm-table [data-selection-cell] :is(.crm-bulk-controls,.crm-task-bulk){margin:0;padding:0;border:0;border-radius:0;gap:12px;min-height:34px;background:transparent}
.crm-table [data-selection-cell] :is(.crm-bulk-controls,.crm-task-bulk)>div{order:0;gap:8px 16px;flex:1}
.crm-table [data-selection-cell] :is([data-crm-selected-count],.crm-task-selected-count){order:1}
.crm-table [data-selection-cell] :is([data-crm-bulk-clear],[data-task-clear]){order:2;margin-left:0;flex-shrink:0}
.crm-table [data-selection-cell] .text-btn{white-space:nowrap;line-height:1.5}

.crm-table [data-selection-cell] .text-btn.danger{color:#bc6868}

/* All deals identify both the pipeline and its stage in one cell. */
.crm-stage-context-col{width:34%}
.crm-stage-context{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:3px;border:1px solid var(--line);border-radius:6px;vertical-align:middle;white-space:nowrap;background:var(--surface)}
.crm-stage-context-pipeline{min-width:0;overflow:hidden;text-overflow:ellipsis;padding:2px 4px;color:var(--ink);font-size:11px;line-height:1.4}
.crm-stage-context .crm-stage-badge{min-width:0;max-width:200px;flex-shrink:0;padding:4px 7px;background:color-mix(in srgb,var(--stage-color) 32%,var(--surface));border-color:color-mix(in srgb,var(--stage-color) 80%,var(--line));font-weight:500}

.crm-bulk-controls.crm-selection-pinned{position:fixed;z-index:25;margin:0;padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:var(--soft);box-shadow:0 5px 20px #00000018;max-height:calc(100dvh - 100px);overflow:auto;gap:12px}
.crm-selection-pinned>div{order:0;gap:8px 16px}.crm-selection-pinned [data-crm-selected-count]{order:1}.crm-selection-pinned [data-crm-bulk-clear]{order:2;flex-shrink:0}.crm-selection-pinned .text-btn.danger{color:#bc6868}
@media(max-width:700px){.crm-selection-pinned>div{order:3}.crm-selection-pinned [data-crm-selected-count]{order:0}}

/* Deal properties remain anchored while the filtered board refreshes behind them. */
.crm-deal-filter-trigger.is-active{border-color:var(--accent);color:var(--accent);background:var(--soft)}
.crm-filter-reset{font-size:12px;white-space:nowrap}
.crm-deal-filter-popover{position:fixed;margin:0;padding:0;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);box-shadow:0 20px 70px #0003;overflow:auto;overscroll-behavior:contain;box-sizing:border-box}
.crm-deal-filter-popover::backdrop{background:rgba(20,26,39,.22);backdrop-filter:blur(3px)}
.crm-filter-heading{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--surface);z-index:2}
.crm-filter-heading strong{font-size:15px}.crm-filter-heading .icon-btn{width:30px;height:30px;min-height:30px}
.crm-deal-filter-columns{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(0,1fr)}
.crm-filter-properties,.crm-filter-tags{padding:18px;min-width:0}.crm-filter-tags{border-left:1px solid var(--line)}
.crm-deal-filter-columns h2{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;margin:0 0 14px}
.crm-filter-property,.crm-filter-boolean,.crm-filter-text,.crm-filter-range{margin:0 0 10px;min-width:0;box-sizing:border-box}
.crm-filter-property{border:1px solid var(--line);border-radius:9px;overflow:hidden;background:var(--surface)}
.crm-filter-property>summary{list-style:none;display:flex;align-items:center;gap:8px;padding:11px 12px;cursor:pointer;font-size:12px;min-height:40px;box-sizing:border-box}
.crm-filter-property>summary::-webkit-details-marker,.crm-filter-field-group>summary::-webkit-details-marker{display:none}
.crm-filter-property>summary span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-filter-property>summary svg{width:15px;height:15px;flex-shrink:0}
.crm-filter-property.is-active{border-color:var(--accent)}.crm-filter-property[open]>summary{border-bottom:1px solid var(--line)}
.crm-filter-options{max-height:280px;overflow:auto;padding:6px}.crm-filter-options strong{font-size:11px;display:block;color:var(--muted);padding:8px}
.crm-filter-option{display:flex;align-items:center;gap:9px;padding:9px 7px;border-radius:6px;cursor:pointer;font-size:12px}.crm-filter-option:hover{background:var(--soft)}
.crm-filter-option input{width:16px;height:16px;flex-shrink:0;margin:0;accent-color:var(--accent)}.crm-filter-option span{min-width:0;overflow-wrap:anywhere}.crm-filter-option i{width:8px;height:8px;border-radius:3px;background:var(--stage-color);flex-shrink:0}
.crm-filter-boolean,.crm-filter-text{display:flex;flex-direction:column;gap:6px;font-size:11px;color:var(--muted)}
.crm-deal-filter-popover input:not([type=checkbox]),.crm-deal-filter-popover select{width:100%;min-width:0;max-width:100%;box-sizing:border-box;font:inherit;font-size:12px;border:1px solid var(--line);border-radius:8px;padding:10px;background:var(--surface);color:var(--ink)}
.crm-filter-range{padding:0;border:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.crm-filter-range legend{font-size:11px;color:var(--muted);margin-bottom:6px}.crm-filter-range label{min-width:0;position:relative}.crm-filter-range label>span{font-size:10px;position:absolute;left:10px;top:5px;color:var(--muted)}.crm-filter-range input{padding-top:20px!important;padding-bottom:6px!important}
.crm-filter-field-group{border-top:1px solid var(--line);margin-top:12px}.crm-filter-field-group>summary{display:flex;justify-content:space-between;align-items:center;list-style:none;padding:12px 0;font-size:12px;font-weight:600;cursor:pointer}.crm-filter-field-group>summary svg{width:14px;height:14px}.crm-filter-field-group[open]>summary svg{transform:rotate(180deg)}
.crm-filter-date{padding:10px}.crm-filter-date-kind,.crm-filter-tag-mode{display:flex;gap:3px;padding:3px;border:1px solid var(--line);border-radius:8px;margin-bottom:12px}.crm-filter-date-kind button,.crm-filter-tag-mode button{flex:1;background:transparent;color:var(--muted);border:0;border-radius:5px;padding:7px;font:inherit;font-size:11px;cursor:pointer}.crm-filter-date-kind button[aria-pressed=true],.crm-filter-tag-mode button[aria-pressed=true]{background:var(--soft);color:var(--accent)}
.crm-filter-tag-mode[hidden]{display:none}.crm-filter-presets{display:grid;gap:2px;margin-top:8px}.crm-filter-presets button{background:transparent;border:0;text-align:left;padding:9px;border-radius:6px;color:var(--ink);font:inherit;font-size:12px;cursor:pointer}.crm-filter-presets button:hover,.crm-filter-presets button[aria-pressed=true]{background:var(--soft)}
.crm-filter-calendar-details>summary{display:flex;gap:6px;align-items:center;font-size:11px;padding:8px 0;cursor:pointer}.crm-filter-calendar-details svg{width:14px;height:14px}.crm-filter-calendar-details .crm-date-days .is-in-range{background:var(--soft);border-radius:0}
.crm-filter-tags>input{margin-bottom:12px}.crm-filter-tags-list{display:flex;flex-direction:column;gap:7px}.crm-filter-tag{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-width:0;max-width:100%;border:1px solid var(--line);background:transparent;color:var(--ink);border-radius:7px;padding:8px 9px;font:inherit;font-size:12px;text-align:left;cursor:pointer}.crm-filter-tag span{min-width:0;overflow-wrap:anywhere;line-height:1.5}.crm-filter-tag small{color:var(--muted);flex-shrink:0;font-variant-numeric:tabular-nums}.crm-filter-tag[aria-pressed=true]{background:var(--soft);border-color:var(--accent);color:var(--accent)}
.crm-filter-error{color:var(--danger);font-size:12px;margin:0 18px 14px}.crm-filter-error:empty{display:none}
.crm-deal-filter-popover :focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:600px){.crm-deal-filter-columns{grid-template-columns:minmax(0,1fr)}.crm-filter-tags{border-left:0;border-top:1px solid var(--line)}.crm-filter-properties,.crm-filter-tags{padding:14px}.crm-filter-reset{font-size:11px}}

.crm-filter-date-kind[hidden]{display:none}.crm-filter-pipeline>summary{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:600;padding:10px 7px;cursor:pointer;list-style:none}.crm-filter-pipeline>summary svg{width:14px;height:14px}.crm-filter-pipeline>summary::-webkit-details-marker{display:none}.crm-filter-pipeline[open]>summary svg{transform:rotate(180deg)}
.crm-trash-row-actions{white-space:nowrap}.crm-trash-row-actions .btn{font-size:11px;padding:7px 9px;min-height:32px;margin:2px}.crm-deleted-header{flex-wrap:wrap;align-items:flex-start}.crm-deleted-header .crm-record-title{display:flex;flex-direction:column;gap:7px}.crm-deleted-header .crm-record-title strong{font-size:19px;overflow-wrap:anywhere}.crm-deleted-status{font-size:11px;color:var(--muted);font-weight:400}.crm-deleted-actions{display:flex;gap:7px;flex-wrap:wrap;margin-left:auto}.crm-deleted-actions .btn{font-size:11px;padding:8px 10px}.crm-deleted-actions [data-card-action=trash-purge]{color:var(--danger)}
@media(max-width:600px){.crm-deleted-actions{width:100%;margin-left:36px}.crm-deleted-header .crm-record-title{flex:1}}

.crm-deal-card{position:relative}.crm-deal-card strong{padding-right:12px}.crm-task-indicator{position:absolute;right:11px;top:11px;width:6px;height:6px;border-radius:50%;background:#e7b24a}.crm-task-indicator.today{background:#33ad85}.crm-task-indicator.overdue{background:#df656c}.crm-task-indicator[hidden]{display:none}.crm-card-bottom time{margin-left:auto;white-space:nowrap}
