.crm-workspace{max-width:1560px;margin:0 auto;color:#24272e;padding:8px 6px 28px}.crm-workspace a{color:#2869cb;text-decoration:none}.crm-workspace a:hover{text-decoration:underline}.crm-top,.crm-section-title,.crm-panel-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.crm-top{padding:12px 2px 22px}.crm-eyebrow{font-size:10px;letter-spacing:1.7px;color:#7a808b;font-weight:600}.crm-top h1{font-size:30px;letter-spacing:-1px;margin:7px 0}.crm-top p,.crm-section-title p{color:#7a808b;margin:6px 0;font-size:13px}.crm-top-actions,.crm-card-actions{display:flex;gap:8px;flex-wrap:wrap}.crm-workspace button,.crm-workspace .button{min-height:35px;border-radius:7px}.crm-tabs{display:flex;gap:7px;border-bottom:1px solid #e1e5eb;margin-bottom:22px;overflow:auto}.crm-tabs a{white-space:nowrap;padding:13px 20px;color:#68707e;font-weight:600;border-bottom:3px solid transparent}.crm-tabs a.active{color:#2869cb;border-bottom-color:#2869cb}.crm-tabs a:hover{text-decoration:none;background:#eff3f9}.crm-section-title{margin:14px 0 20px}.crm-section-title h2{font-size:21px;letter-spacing:-.4px;margin:0;overflow-wrap:anywhere}.crm-section-title>span{color:#78808c}.crm-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:22px}.crm-metrics>a,.crm-metrics>div{background:white;border:1px solid #e1e5eb;border-radius:10px;padding:20px 24px;color:inherit;display:flex;align-items:center;gap:16px}.crm-metrics strong{font-size:30px;letter-spacing:-1px;font-weight:600}.crm-metrics span{color:#78808c}.crm-two-col{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}.crm-panel{background:white;border:1px solid #e1e5eb;border-radius:10px;padding:22px;margin-bottom:20px;min-width:0}.crm-panel h3{font-size:14px;margin:0 0 20px}.crm-panel-head h3{margin:0}.crm-panel-head{margin-bottom:18px}.crm-count{color:#8a92a0;padding-left:6px}.crm-empty{text-align:center;padding:36px 20px;color:#78808c}.crm-empty strong{display:block;font-size:15px;color:#4e5766;font-weight:600}.crm-empty p{margin:9px auto 0;max-width:360px;line-height:1.6}.crm-task{display:flex;align-items:center;gap:12px;padding:14px 0;border-top:1px solid #eef0f4}.crm-task>div{flex:1;min-width:0}.crm-task a{overflow-wrap:anywhere}.crm-task small,.crm-table small{display:block;color:#8a909b;font-size:11px;margin-top:5px}.crm-task time{color:#808896;font-size:11px;white-space:nowrap}.crm-task-dot{width:7px;height:7px;border-radius:50%;background:#2869cb;flex-shrink:0}.crm-task-dot.overdue{background:#cf3067}.crm-filters{display:flex;gap:10px;margin-bottom:16px;flex-wrap:wrap}.crm-filters input{flex:1;min-width:220px}.crm-filters input,.crm-filters select{min-height:39px;border-radius:7px;background:white;border:1px solid #dfe4eb;padding:8px 12px}.crm-list{padding:0;overflow:hidden}.crm-table-scroll{overflow-x:auto;max-width:100%}.crm-table{width:100%;border-collapse:collapse;font-size:13px}.crm-table th{font-size:11px;color:#7d8592;text-align:left;font-weight:500;background:#fafbfc;padding:13px 18px;white-space:nowrap;border-bottom:1px solid #e8ecf1}.crm-table td{padding:16px 18px;border-bottom:1px solid #eef1f5;vertical-align:middle;overflow-wrap:anywhere;max-width:420px}.crm-table tr:last-child td{border-bottom:0}.crm-table tbody tr:hover{background:#fafcff}.crm-name{font-weight:600;color:#24272e!important}.crm-pill{font-size:11px;display:inline-block;background:#edf3fd;color:#386ab2;padding:5px 9px;border-radius:5px;white-space:nowrap}.crm-pill.success{background:#eaf6f0;color:#27815e}.crm-pill.muted{background:#f0f1f4;color:#7a818c}.crm-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:16px 20px;border-top:1px solid #edf0f5;color:#7a818c}.crm-pagination>span:first-child{margin-right:auto}.crm-back{display:inline-block;font-size:12px;padding:8px 0}.crm-record-summary{display:flex;gap:22px;align-items:center;flex-wrap:wrap;padding:16px 20px;border:1px solid #e1e5eb;border-radius:9px;background:white;color:#7a818c}.crm-record-summary strong{font-weight:500;color:#3b4555}.crm-card-tabs{display:flex;gap:5px;margin:20px 0 15px;overflow:auto}.crm-card-tabs button{border:0;background:transparent;padding:10px 16px;color:#7b8492;white-space:nowrap}.crm-card-tabs button.active{background:#eaf0fa;color:#2869cb}.crm-timeline{list-style:none;padding:0;margin:0}.crm-timeline li{border-left:2px solid #e8edf5;padding:2px 0 20px 18px;margin-left:4px;position:relative}.crm-timeline li:before{content:"";position:absolute;top:5px;left:-5px;width:8px;height:8px;border-radius:50%;background:#c7d6ed}.crm-timeline li>div{display:flex;justify-content:space-between;gap:15px}.crm-timeline strong{font-size:12px;font-weight:500}.crm-timeline time,.crm-timeline small{font-size:11px;color:#8a929d}.crm-timeline p,.crm-note{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.crm-note{background:#f8f9fc;border-radius:6px;padding:14px;margin-bottom:20px}.crm-warning{padding:13px 16px;background:#fff5e6;color:#8a5d20;border:1px solid #f1dfc5;border-radius:7px;line-height:1.5}.crm-span{grid-column:1/-1}.crm-check{display:flex!important;align-items:center;gap:9px}.crm-check input{width:auto!important}.crm-import-map{display:grid;grid-template-columns:1fr 1fr;gap:14px}.crm-offer-line{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.crm-offer-line button{grid-column:1/-1}.crm-offer-item{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #eee}.crm-offer-total{background:#f2f6fc;padding:18px;border-radius:7px;text-align:right}.crm-pipeline-total{padding:16px 20px;color:#78808c}.crm-pipeline-total strong{color:#2869cb;margin-left:8px}.crm-panel summary{font-weight:500;cursor:pointer;padding:2px 0}.detail-dialog:has(.crm-span){max-width:760px;width:min(760px,calc(100vw - 24px))}.detail-dialog .crm-span input,.detail-dialog .crm-span select{max-width:100%}
@media(max-width:900px){.crm-two-col{grid-template-columns:1fr}.crm-top{align-items:flex-start}.crm-top-actions{justify-content:flex-end}.crm-metrics>a,.crm-metrics>div{padding:15px;gap:10px}.crm-table td,.crm-table th{padding:12px}.crm-record-summary{gap:12px}.crm-task time{white-space:normal;max-width:100px}}
@media(max-width:580px){.crm-workspace{padding:0 0 20px}.crm-top{display:block}.crm-top-actions{justify-content:flex-start;margin-top:16px}.crm-tabs{gap:0}.crm-tabs a{padding:12px 15px}.crm-section-title{align-items:flex-start;flex-wrap:wrap;gap:12px}.crm-metrics{gap:7px}.crm-metrics>a,.crm-metrics>div{display:block;padding:13px 10px}.crm-metrics strong{display:block;font-size:25px;margin-bottom:4px}.crm-metrics span{font-size:10px}.crm-panel{padding:16px}.crm-panel.crm-list{padding:0}.crm-filters input{width:100%;flex-basis:100%}.crm-filters select{min-width:0;max-width:100%;flex:1}.crm-import-map,.crm-offer-line{grid-template-columns:1fr 1fr}.crm-task{gap:8px}.crm-task button{padding:5px 8px}.crm-task time{font-size:10px;max-width:75px}.crm-pagination{padding:12px 10px;gap:7px;font-size:11px}.crm-card-tabs button{padding:10px 12px}.crm-record-summary{font-size:12px}.crm-table{min-width:600px}}

/* CRM dialogs share a consistent vertical field layout. */
.detail-dialog.crm-dialog{width:min(760px,calc(100vw - 24px));max-width:760px;box-sizing:border-box}
.crm-dialog .dialog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 22px;align-items:start}
.crm-dialog .dialog-grid label,.crm-dialog .crm-party-field{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:12px;font-weight:500;color:#4e5766}
.crm-dialog .dialog-grid input:not([type=checkbox]):not([type=hidden]),.crm-dialog .dialog-grid select,.crm-dialog .dialog-grid textarea{display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box;margin:0;font:inherit;font-size:13px;color:#24272e}
.crm-dialog .dialog-grid input:not([type=checkbox]):not([type=hidden]),.crm-dialog .dialog-grid select{min-height:40px}
.crm-dialog .dialog-grid textarea{min-height:92px;resize:vertical}
.crm-dialog .dialog-grid label.crm-check{flex-direction:row;align-items:center;font-weight:400}
.crm-dialog .crm-check input{flex-shrink:0;margin:0}
.crm-dialog .crm-party-field{position:relative}
.crm-dialog .crm-party-results{position:absolute;z-index:5;top:64px;left:0;right:0;max-height:230px;overflow-y:auto;border:1px solid #dfe4eb;border-radius:8px;background:white;box-shadow:0 8px 24px #23345220;padding:5px}
.crm-dialog .crm-party-results[hidden]{display:none}
.crm-dialog .crm-party-results [role=option]{padding:10px 12px;border-radius:5px;cursor:pointer;font-weight:400;overflow-wrap:anywhere}
.crm-dialog .crm-party-results [role=option]:hover,.crm-dialog .crm-party-results [aria-selected=true]{background:#edf3fd}
.crm-dialog .crm-party-results strong{display:block;font-weight:500;color:#24272e}
.crm-dialog .crm-party-results small{display:block;margin-top:4px;color:#7d8592}
.crm-dialog .crm-party-status{font-size:11px;color:#7d8592;font-weight:400;min-height:14px}
@media(max-width:580px){.crm-dialog .dialog-grid{grid-template-columns:minmax(0,1fr);gap:15px}.crm-dialog .crm-import-map{grid-template-columns:minmax(0,1fr)}.crm-dialog .dialog-head h2{font-size:20px}.crm-dialog .crm-party-results{max-height:200px}}
