/* Compact CRM workspace. Overview deliberately retains its summaries. */
.sc-root{--sc-line:#e2e8e0;--sc-ink:#203c2e;--sc-muted:#748176;--sc-bg:#f4f6f1}
.sc-root .crm-heading{margin-bottom:16px;align-items:center}.sc-root .crm-heading .eyebrow{display:none}.sc-root .crm-heading h1{font-size:clamp(24px,2.1vw,32px);line-height:1.18;letter-spacing:-1px}.sc-root .crm-heading p{font-size:13px;margin:5px 0 0}.sc-root .crm-heading .row .btn{min-height:39px;font-size:13px;border-radius:10px}
.sc-nav{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;border-bottom:1px solid var(--sc-line);padding-bottom:8px;overflow:visible}.sc-primary{display:flex;gap:4px;align-items:center;min-width:0}.sc-primary>button{border:0;background:none;color:#637566;border-radius:9px;padding:10px 16px;font-size:13px;font-weight:750;font-family:inherit;cursor:pointer;white-space:nowrap}.sc-primary>button.active{background:var(--forest,#213b2f);color:#fff}.sc-primary>button:not(.active):hover{background:#eaf0e5;color:#244c32}
.sc-more{position:relative;flex:none;font-size:12px;color:#4f6756}.sc-more summary{cursor:pointer;list-style:none;padding:9px 12px;border-radius:9px;border:1px solid var(--sc-line);background:#fff;font-weight:650}.sc-more summary::-webkit-details-marker{display:none}.sc-more>div{position:absolute;z-index:50;right:0;top:calc(100% + 8px);width:230px;padding:7px;border:1px solid var(--sc-line);background:#fff;border-radius:13px;box-shadow:0 12px 35px #1d3c2920;display:grid;gap:3px}.sc-more>div button{font:inherit;text-align:left;border:0;border-radius:8px;padding:10px 12px;background:transparent;cursor:pointer;color:#2d4635}.sc-more>div button:hover,.sc-more>div button.active{background:#eef4e8}
.sc-root .crm-controls{gap:8px;margin-bottom:5px;flex-wrap:wrap;align-items:center}.sc-root .crm-controls .searchbox{min-width:210px;max-width:460px;flex:1 1 220px;height:37px;border-radius:9px}.sc-root .crm-controls .searchbox input{font-size:12px}.sc-root .crm-controls>select,.sc-root .crm-controls>label>select{min-height:37px;padding:8px 10px;font-size:12px;border-radius:9px;max-width:220px}.sc-root .crm-controls .view-switch{margin-left:auto;min-height:35px}.sc-root .crm-controls .view-switch button{padding:7px 10px;font-size:11px}.sc-root #scFilterBtn{font-size:12px;min-height:37px;padding:8px 12px;border-radius:9px}.sc-root #scFilterBtn.active{background:#e6efdc;border-color:#a8bd93}.sc-root #crmNotice:empty{display:none}.sc-root #crmPrivacy{font-size:10px;margin-top:12px;color:#849186}
.sc-board-info{display:flex;align-items:center;justify-content:flex-start;gap:12px;flex-wrap:wrap;min-height:35px;font-size:12px;color:#6c7f71;margin:3px 0 7px}.sc-board-info>span:first-child{margin-right:auto}.sc-board-info b{padding:0 6px;font-weight:400;color:#a2ada0}.sc-board-info strong{color:#294735}.sc-board-info .btn{font-size:11px;padding:4px 6px;min-height:24px}.sc-empty-hint{margin:0 0 10px;padding:8px 11px;font-size:12px;line-height:1.5;color:#5f755d;background:#eef4e6;border-radius:8px;border:1px solid #e0e8d7}
.sc-root .sc-board{display:grid;grid-template-columns:repeat(var(--sc-columns,4),minmax(230px,1fr));gap:10px;overflow-x:auto;align-items:stretch;margin:0;padding:0 0 6px;min-height:440px}.sc-root .sc-lane{padding:0;background:#f1f4ee;border:1px solid #e2e8df;border-radius:11px;display:flex;flex-direction:column;overflow:hidden;min-width:0;min-height:440px}.sc-root .sc-lane header{padding:13px 12px 10px;background:color-mix(in srgb,var(--crm-tone) 48%,#fafcf9);border-bottom:1px solid #dfe7d9}.sc-root .sc-lane header>div{display:flex;align-items:center;gap:6px;justify-content:space-between}.sc-root .sc-lane header strong{text-transform:uppercase;font-size:11px;line-height:1.35;letter-spacing:.25px}.sc-root .sc-lane header p{font-size:10px;margin:6px 0 0;color:#789078}.sc-root .sc-lane .crm-count{font-size:10px;min-width:20px;padding:2px 4px;background:#ffffff80;border:1px solid #ffffff70;border-radius:5px}.sc-root .sc-lane .crm-lane-cards{padding:6px;display:flex;flex-direction:column;gap:5px;flex:1;min-height:0}
.sc-root .sc-card{margin:0;padding:0;border:1px solid #dfe5db;border-radius:7px;background:#fff;box-shadow:0 1px 2px #1e392a08;min-height:0;overflow:hidden;transition:border-color .12s,box-shadow .12s;transform:none}.sc-root .sc-card:hover{border-color:#aabd9d;box-shadow:0 3px 7px #213b2f0d;transform:none}.sc-card-main{display:grid;gap:4px;text-align:left;padding:9px 10px 5px;border:0;background:transparent;font-family:inherit;width:100%;cursor:pointer;color:#2c3e31;min-width:0}.sc-card-main>strong{font-size:12px;line-height:1.25;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sc-card-main>span{font-size:10px;color:#7a877e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sc-card-main>small{font-size:10px;color:#526c57;font-weight:600;line-height:1.2;margin-top:1px}
.sc-root .sc-next{display:flex;align-items:center;justify-content:flex-start;gap:4px;width:100%;padding:5px 9px 7px;font:inherit;font-size:10px!important;line-height:1.35;min-height:22px;height:auto;text-align:left;border:none;border-radius:0;background:transparent;color:#60815f;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.sc-next .ico{width:12px;height:12px;flex:none}.sc-next>span{font-size:9px;margin-left:auto;color:inherit;white-space:nowrap;flex:none}.sc-next.late{color:#b96145!important;background:#fff9f4!important}.sc-next.missing{color:#89958a!important}.sc-next:hover{background:#f4f8ef!important}.sc-empty-lane{font-size:11px;text-align:center;color:#93a08f;margin:auto 0;padding:65px 5px}.sc-root .sc-lane .crm-lane-add{padding:10px;text-align:left;font-size:11px;background:transparent;border-top:1px dashed #dfe6d8;margin:0;min-height:34px}
.sc-root .sc-outcomes{gap:10px;margin:10px 0 0}.sc-outcomes>div{font-size:11px;padding:9px!important;border-radius:8px}.sc-outcomes .ico{width:14px;height:14px}.sc-unmapped{border:1px solid #e1c69e;padding:12px;border-radius:10px;margin-top:10px;display:grid;gap:8px}.sc-list-wrap{border:1px solid var(--sc-line);border-radius:11px;background:#fff;overflow:auto}.sc-deal-table{font-size:12px}.sc-deal-table td,.sc-deal-table th{padding:10px 12px!important}.sc-deal-table .task-link{font-size:12px}.sc-deal-table .sc-next{width:auto;max-width:280px;padding:0}.sc-deal-table td>small{font-size:10px;margin-top:4px}
.sc-activity-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0;font-size:12px;color:#788678;flex-wrap:wrap}.sc-activity-tools .view-switch{flex-wrap:wrap;gap:3px;padding:3px}.sc-activity-tools button{font-size:12px;padding:7px 11px}.sc-activity-list .crm-activity-row{padding:12px 16px}.sc-activity-list .task-link{font-size:13px}.sc-root .crm-personal-history .task-link{font-size:12px}
#crmDealDialog.sc-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(650px,94vw);height:100dvh;max-height:100dvh;max-width:100vw;border:0;border-left:1px solid #dce4d7;border-radius:17px 0 0 17px;padding:0;box-shadow:-12px 0 50px #173c2529;overflow:hidden}#crmDealDialog.sc-drawer::backdrop{background:#16312045;backdrop-filter:blur(1px)}.sc-drawer>.dialog-head{padding:22px 23px 17px;border-bottom:1px solid #e5eadf;background:#fbfcf8}.sc-drawer>.dialog-head h2{font-size:22px;line-height:1.3;max-width:520px;overflow-wrap:anywhere}.sc-drawer .dialog-main{padding:18px 23px;overflow:auto;max-height:calc(100dvh - 115px);height:calc(100dvh - 115px)}
.sc-drawer-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:15px}.sc-drawer-top>strong{font-size:21px;letter-spacing:-.6px;color:#24472f}.sc-drawer-top>div{display:flex;gap:5px;flex-wrap:wrap}.sc-drawer-top .btn{font-size:11px;min-height:30px;padding:7px 10px}.sc-stage-select{display:flex;align-items:center;gap:12px;color:#748171;font-size:12px;margin:12px 0}.sc-stage-select select{flex:1;padding:9px 10px;font:inherit;font-weight:700;color:#294c32;border:1px solid #d8e1d1;border-radius:9px;background:#f9fcf5}.sc-contact-card{display:grid;gap:5px;padding:13px 15px;border-radius:11px;background:#f2f6eb;color:#496043;font-size:12px;overflow-wrap:anywhere;margin:16px 0}.sc-contact-card a{color:#3f7048}.sc-contact-card>strong{font-size:14px}
.sc-drawer-section{margin:22px 0}.sc-drawer-section h3{font-size:14px;margin:0 0 10px}.sc-drawer-section .between{align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:9px}.sc-drawer-section .between h3{margin:0}.sc-drawer-section .btn{font-size:11px;min-height:30px}.sc-drawer-section .crm-activity-row{padding:11px 0;border-bottom:1px solid #edf0e8;align-items:flex-start}.sc-drawer-section .crm-activity-row .task-link{font-size:12px;line-height:1.4}.sc-drawer-section .crm-activity-sub{font-size:10px}.sc-drawer-section .crm-activity-due{font-size:10px}.sc-drawer #crmNoteForm{display:grid;gap:8px;margin-bottom:16px}.sc-drawer #crmNoteForm textarea{width:100%;min-height:75px;border:1px solid #dce5d5;border-radius:9px;padding:11px;font:inherit;font-size:12px;resize:vertical}.sc-drawer #crmNoteForm button{justify-self:start}.sc-drawer .crm-notes article{margin:10px 0;padding:11px;background:#fafbf7;border-radius:8px}.sc-drawer .crm-notes p{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.sc-drawer .crm-notes article>div{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#82917e}
.sc-drawer-extra{border-top:1px solid #e5ecde;padding:12px 0;font-size:12px;line-height:1.5}.sc-drawer-extra summary{cursor:pointer;font-weight:700;color:#61735b;padding:4px 0}.sc-drawer-extra>dl{display:grid;grid-template-columns:130px 1fr;gap:8px}.sc-drawer-extra dd{margin:0;color:#4d6048}.sc-drawer-extra .crm-prewrap{white-space:pre-wrap;overflow-wrap:anywhere}.sc-drawer-handoff{display:flex;gap:8px;margin-top:16px;flex-wrap:wrap}.sc-archive{margin:18px 0}.sc-archive button{font-size:11px;color:#9a7164}.sc-form-extra{border-top:1px solid #e2e8dc;margin-top:14px;padding-top:13px}.sc-form-extra summary{font-size:12px;color:#64745b;cursor:pointer;margin-bottom:12px}
.sc-overview-tools{display:flex;align-items:end;gap:12px;margin:16px 0}.sc-overview-tools label{display:grid;gap:5px;font-size:11px;color:#687a61;font-weight:700}.sc-overview-tools select{min-width:145px;padding:10px;border:1px solid var(--sc-line);border-radius:9px;background:#fff;font:inherit;font-size:12px}.sc-overview-tools .btn{margin-left:auto;font-size:12px;min-height:36px}.sc-overview-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 20px}.sc-overview-stats .crm-stat{padding:18px 21px;min-height:104px}.sc-overview-stats strong{font-size:28px;letter-spacing:-.7px}.sc-overview-stats small{font-size:11px}
.sc-revenue-chart{background:#fff;border:1px solid var(--sc-line);border-radius:14px;padding:18px 20px;margin-bottom:24px;overflow:auto}.sc-revenue-chart h2{font-size:13px;color:#4c674e;margin:0 0 18px}.sc-bars{display:grid;grid-template-columns:repeat(12,minmax(60px,1fr));gap:7px;min-width:770px}.sc-bar{display:grid;gap:7px;border:0;background:none;font-family:inherit;font-size:10px;color:#71816c;cursor:pointer;padding:4px 1px;border-radius:6px}.sc-bar:hover,.sc-bar.selected{background:#f0f5e7;color:#2d512b}.sc-bar-value{font-size:10px;font-weight:600;white-space:nowrap}.sc-bar-track{height:90px;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid #e6edde;margin:0 10px}.sc-bar-track i{display:block;width:70%;min-width:12px;max-width:40px;border-radius:5px 5px 0 0;background:#a7c596;transition:height .2s}.sc-bar.selected .sc-bar-track i{background:#335d36}
.sc-table-title{display:flex;justify-content:space-between;gap:8px;align-items:baseline;flex-wrap:wrap;margin-bottom:10px}.sc-table-title h2{font-size:15px;color:#2e4b30;margin:0}.sc-table-title span{font-size:11px;color:#7d8d73}.sc-revenue-wrap{width:100%;overflow:auto;border:1px solid var(--sc-line);border-radius:12px;background:#fff;max-height:65vh}.sc-revenue-table{border-collapse:separate;border-spacing:0;min-width:100%;font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums}.sc-revenue-table th,.sc-revenue-table td{padding:12px 10px;text-align:right;border-bottom:1px solid #edf0e7;min-width:86px}.sc-revenue-table th:first-child{position:sticky;left:0;z-index:2;text-align:left;min-width:205px;max-width:255px;white-space:normal;background:#fff;border-right:1px solid #e5ebdf}.sc-revenue-table thead th{position:sticky;top:0;background:#edf3e6;color:#5b7355;z-index:3;font-size:10px}.sc-revenue-table thead th:first-child{z-index:4;background:#edf3e6}.sc-revenue-table button{font-family:inherit;border:0;background:none;color:inherit;cursor:pointer;font-size:inherit;padding:0;text-align:inherit}.sc-revenue-table .sc-client-total th button{display:flex;align-items:center;gap:9px;font-weight:750;width:100%;font-size:12px}.sc-client-total th button>span{color:#8b9d7b;font-weight:400;font-size:17px;flex:none}.sc-client-total td{font-weight:650;color:#345335}.sc-revenue-table .sc-year-total{background:#f5f8ed;font-weight:800;color:#2d4d29;border-left:1px solid #e3e9da}.sc-revenue-table .sc-service-row td,.sc-revenue-table .sc-service-row th{background:#fafbf6;font-weight:400;color:#738369;padding-top:9px;padding-bottom:9px;font-size:10px}.sc-service-row th{padding-left:32px!important}.sc-service-row th small{display:block;font-size:9px;color:#98a38f;margin-top:3px}.sc-service-row td button{padding:5px 4px;border-radius:5px;min-width:60px;border:1px solid transparent}.sc-service-row td button:hover{border-color:#b0c899;background:#edf5e4;color:#274e2c}.sc-revenue-table tfoot td,.sc-revenue-table tfoot th{font-weight:800;background:#eaf2de;color:#34512c;position:sticky;bottom:0;z-index:3;border-top:1px solid #d1dfc3}.sc-revenue-table tfoot th:first-child{background:#eaf2de;z-index:4}.sc-this-month{box-shadow:inset 0 2px 0 #bdcf9e}.sc-table-empty{text-align:center!important;padding:28px!important;color:#829174}.sc-revenue-note{font-size:11px;color:#7e8c74;line-height:1.5;margin-top:11px}.sc-loading{padding:24px;color:#6d7d63;font-size:13px}
@media(min-width:1500px){.sc-root .sc-board{grid-template-columns:repeat(var(--sc-columns,4),minmax(250px,1fr))}}
@media(max-width:1000px){.sc-overview-stats strong{font-size:23px}.sc-root .crm-controls .view-switch{margin-left:0}.sc-root .sc-board{min-height:410px}.sc-root .sc-lane{min-height:410px}}
@media(max-width:640px){.sc-nav{gap:7px}.sc-primary{gap:2px;flex:1}.sc-primary>button{font-size:11px;padding:10px 8px}.sc-more summary{font-size:11px;padding:9px 7px}.sc-root .crm-heading{gap:10px;align-items:flex-start}.sc-root .crm-heading h1{font-size:25px}.sc-root .crm-heading p{display:none}.sc-root .crm-heading .row .btn{padding:9px;font-size:11px}.sc-root .crm-controls .searchbox{min-width:100%;max-width:none}.sc-root .crm-controls>select{max-width:calc(50% - 4px);font-size:11px}.sc-root .crm-controls .view-switch button{font-size:10px}.sc-board-info{font-size:11px;gap:6px}.sc-root .sc-board{grid-template-columns:repeat(var(--sc-columns,4),minmax(245px,78vw));min-height:350px}.sc-root .sc-lane{min-height:350px}.sc-overview-stats{grid-template-columns:1fr;gap:8px}.sc-overview-stats .crm-stat{min-height:80px;padding:14px 18px}.sc-overview-stats strong{font-size:26px}.sc-overview-tools{gap:7px;flex-wrap:wrap}.sc-overview-tools label{flex:1}.sc-overview-tools select{min-width:0;width:100%}.sc-overview-tools .btn{margin-left:0}.sc-table-title span{font-size:10px;line-height:1.5}.sc-revenue-table th:first-child{min-width:150px;max-width:165px}.sc-revenue-table .sc-client-total th button{font-size:10px}.sc-revenue-table td{min-width:78px;padding:10px 8px;font-size:10px}.sc-revenue-chart{padding:15px}.sc-root #crmPrivacy{font-size:9px}.sc-activity-tools .view-switch button{font-size:10px;padding:8px}.sc-drawer>.dialog-head{padding:18px 15px}.sc-drawer>.dialog-head h2{font-size:20px}.sc-drawer .dialog-main{padding:14px 15px}.sc-drawer-top>strong{font-size:20px}}
@media(prefers-reduced-motion:reduce){.sc-root .sc-card,.sc-bar-track i{transition:none}}
