/* SolarGes sales workspace: readable records, deliberate hierarchy, responsive cards. */
.crm-workspace{--crm-accent:var(--teal);min-width:0}.crm-workspace .page-head p{max-width:600px}.crm-workspace button{min-height:42px}.crm-live:empty{display:none}.crm-live{color:var(--teal);margin:0 0 14px}.crm-pulse{display:grid;grid-template-columns:200px minmax(0,1fr);background:linear-gradient(115deg,#143831,#122a30 65%,#12212c);border:1px solid #2b534c;border-radius:20px;overflow:hidden;margin:0 0 16px}.crm-pulse-lead{display:flex;flex-direction:column;gap:4px;padding:24px 28px;background:#051f1b40}.crm-pulse-lead>.eyebrow{margin:0}.crm-pulse-lead>strong{font:800 52px/1.1 Manrope,sans-serif;letter-spacing:-.055em;color:#b9f5df}.crm-pulse-lead>span:last-child{font-size:13px;color:#a2c7bb}.crm-pulse-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;gap:16px;padding:24px}.crm-pulse-stats>div{display:flex;flex-direction:column;gap:6px}.crm-pulse-stats strong{font:700 30px/1.2 Manrope,sans-serif}.crm-pulse-stats span{color:#acc3c8;font-size:12px}.crm-values{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px}.crm-values article{display:flex;flex-direction:column;gap:9px;border:1px solid var(--line);border-radius:14px;padding:18px 20px;background:var(--surface)}.crm-values article>span,.crm-values small{color:var(--muted);font-size:12px}.crm-values strong{font:700 24px/1.3 Manrope,sans-serif;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.crm-scope{color:var(--muted);font-size:12px;line-height:1.7;margin:14px 0 24px;max-width:900px}.crm-tabs{display:flex;gap:8px;margin:24px 0 16px}.crm-list{overflow:visible}.crm-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;padding:20px;border-bottom:1px solid var(--line)}.crm-filters .field{flex:1;min-width:150px;margin:0}.crm-filters .field:has(input[type=search]){flex:1.5}.crm-workspace .field>span{font-size:12px;color:var(--muted);font-weight:500}.crm-workspace .field{gap:7px}.crm-workspace input,.crm-workspace select,.crm-workspace textarea{width:100%;min-width:0}.crm-list-content{min-width:0}.crm-loading{padding:30px}.crm-row{display:grid;grid-template-columns:minmax(160px,1.55fr) minmax(110px,.8fr) minmax(140px,1fr) minmax(130px,1fr);align-items:center;gap:20px;padding:20px;border-bottom:1px solid var(--line)}.crm-row:last-child{border-bottom:0}.crm-row>div{min-width:0;overflow-wrap:anywhere}.crm-row small{display:block;color:var(--muted);font-size:11px;margin-top:6px}.crm-row-main{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.crm-row-main>span{color:var(--muted);font-size:12px}.crm-row-main small{margin:0}.crm-record-link,.crm-parent-link{border:0;padding:0;background:none;text-align:left;color:var(--text);font-weight:600;overflow-wrap:anywhere;max-width:100%;line-height:1.45}.crm-record-link:hover,.crm-parent-link:hover{color:var(--teal);text-decoration:underline}.crm-row-main .crm-parent-link{font-size:11px;font-weight:400;color:var(--teal);min-height:32px}.crm-row-amount{font-weight:600;font-variant-numeric:tabular-nums}.crm-row-owner{font-size:12px}.crm-pill{display:inline-flex;align-items:center;max-width:100%;padding:6px 10px;border-radius:8px;background:var(--surface3);color:#c5d4db;font-size:11px;line-height:1.4}.crm-pill.teal{background:#173d35;color:#7ae6bb}.crm-pill.red{background:#43282f;color:#ffabb2}.crm-pill.amber{background:#423827;color:#f8d08c}.crm-row .crm-warning{color:var(--amber)}.crm-pagination{padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.crm-pagination>div{display:flex;gap:8px}.crm-pagination .btn{font-size:12px}.crm-empty{text-align:center;padding:48px 22px}.crm-empty>span{display:grid;place-items:center;width:50px;height:50px;margin:0 auto 16px;background:var(--teal-dark);color:var(--teal);border-radius:15px;font-size:25px}.crm-empty p{max-width:420px;color:var(--muted);font-size:13px;margin:0 auto}.crm-detail,.crm-editor{padding:26px;margin-top:24px;min-width:0}.crm-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}.crm-section-head h2{font-size:24px;overflow-wrap:anywhere}.crm-section-head p{margin:0;color:var(--muted)}.crm-actions{display:flex;gap:8px;flex-wrap:wrap;flex-shrink:0}.crm-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 24px}.crm-facts>div{padding:16px;background:var(--surface2);border:1px solid var(--line);border-radius:12px;min-width:0}.crm-facts dt{color:var(--muted);font-size:11px;margin-bottom:7px}.crm-facts dd{margin:0;overflow-wrap:anywhere;font-weight:600}.crm-notes{display:grid;gap:16px;margin-bottom:24px}.crm-notes h3{font-size:13px}.crm-notes p{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted);font-size:13px;margin:0}.crm-history{padding-top:28px;margin-top:28px;border-top:1px solid var(--line)}.crm-history>p{font-size:12px}.crm-history details{border:1px solid var(--line);border-radius:12px;margin-bottom:10px;padding:16px}.crm-history summary{cursor:pointer;overflow-wrap:anywhere}.crm-history summary small{display:block;color:var(--muted);font-size:11px;margin-top:6px}.crm-history dl>div{display:grid;grid-template-columns:140px minmax(0,1fr);gap:14px;border-bottom:1px solid var(--line);padding:12px 0;font-size:12px}.crm-history dt{color:var(--muted)}.crm-history dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.crm-history dd span,.crm-history dd del{display:block}.crm-history dd del{color:var(--muted);text-decoration:none;margin-bottom:6px}.crm-history dd span{color:#b7e4d9}.crm-editor-fields{border:0;margin:0;padding:0;min-width:0}.crm-editor .field textarea{min-height:90px;resize:vertical}.crm-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding-top:20px;margin-top:24px}.crm-editor-footer>span{font-size:12px;color:var(--muted)}.crm-editor-error:empty{display:none}.crm-editor-error{border:1px solid #75464c;border-radius:10px;background:#42242b;padding:14px;color:#ffbdc2;margin-bottom:18px;overflow-wrap:anywhere}.crm-conflict{border:1px solid #65543b;border-radius:14px;padding:20px;margin-top:24px;background:#372d1c33}.crm-conflict p{font-size:12px;color:var(--muted);overflow-wrap:anywhere;white-space:pre-wrap}.crm-conflict-field{padding:16px 0;border-bottom:1px solid var(--line)}.crm-conflict-field:last-of-type{margin-bottom:18px}.crm-conflict-field p span{display:block;padding-top:7px}.crm-conflict-field label{display:block;font-size:12px;max-width:350px}.crm-conflict-field select{margin-top:6px}
@media(max-width:1150px){.crm-pulse{grid-template-columns:165px minmax(0,1fr)}.crm-pulse-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.crm-row{grid-template-columns:minmax(130px,1.4fr) minmax(100px,.8fr) minmax(130px,1fr);gap:16px}.crm-row-owner{grid-column:1/-1;display:flex;gap:14px;align-items:baseline}.crm-row-owner small{margin:0}.crm-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-section-head{flex-wrap:wrap}}
@media(max-width:600px){.crm-pulse{grid-template-columns:1fr}.crm-pulse-lead{padding:22px;display:grid;grid-template-columns:1fr auto;align-items:center}.crm-pulse-lead>.eyebrow{grid-column:1}.crm-pulse-lead>strong{grid-column:2;grid-row:1/3;font-size:46px}.crm-pulse-stats{padding:22px;gap:22px}.crm-pulse-stats strong{font-size:25px}.crm-values strong{font-size:22px}.crm-detail,.crm-editor{padding:18px}.crm-row{grid-template-columns:minmax(0,1fr) auto;gap:14px;padding:20px 16px}.crm-row-main{grid-column:1/-1}.crm-row-owner{font-size:11px;flex-wrap:wrap;gap:6px 14px}.crm-row-amount{font-size:13px;text-align:right}.crm-task-row>div:nth-child(3){text-align:right}.crm-tabs .btn{flex:1;font-size:12px}.crm-filters{padding:16px}.crm-filters .field{min-width:min(100%,150px)}.crm-filters>.btn{flex:1}.crm-facts{grid-template-columns:1fr}.crm-pagination{flex-wrap:wrap;padding:16px}.crm-pagination>div{margin-left:auto}.crm-history details{padding:12px}.crm-history dl>div{grid-template-columns:1fr;gap:7px}.crm-section-head h2{font-size:21px}.crm-editor-footer{flex-wrap:wrap}.crm-editor-footer .btn{width:100%}.crm-conflict{padding:14px}.crm-scope{font-size:12px}.crm-pulse-stats span{font-size:12px}}
