.crm7-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:18px}.crm7-head h2{margin:2px 0 5px;font-size:27px;letter-spacing:-.5px}.crm7-head p{margin:0;color:var(--muted);font-size:13px}.crm7-tools{display:flex;gap:10px;align-items:center;margin-bottom:12px}.crm7-search{flex:1;max-width:560px;background:#fff;border:1px solid #e3e1ee;border-radius:13px;padding:11px 14px;box-shadow:0 2px 8px rgba(34,25,76,.03)}.crm7-search input{border:0;outline:0;width:90%;background:transparent;font-size:13px}.crm7-stats{display:flex;gap:8px;align-items:center;margin:0 0 18px;color:#77758a;font-size:12px}.crm7-stats span{background:#f5f3fb;border:1px solid #e9e5f4;padding:7px 10px;border-radius:9px}.crm7-stats b{color:#332c5e}.crm7-board{display:grid;grid-template-columns:repeat(var(--stage-count,7),minmax(255px,1fr));gap:12px;overflow-x:auto;padding:0 0 20px;scrollbar-width:thin;cursor:grab;overscroll-behavior-x:contain}.crm7-board.is-panning{cursor:grabbing;user-select:none}.crm7-scroll-top{width:100%;height:20px;overflow-x:auto;overflow-y:hidden;margin:4px 0 10px;scrollbar-width:auto;scrollbar-color:#7658df #e8e4f5}.crm7-scroll-top>div{height:1px}.crm7-scroll-top::-webkit-scrollbar{height:14px}.crm7-scroll-top::-webkit-scrollbar-track{background:#e8e4f5;border-radius:999px}.crm7-scroll-top::-webkit-scrollbar-thumb{background:#7658df;border:3px solid #e8e4f5;border-radius:999px}.crm7-scroll-top::-webkit-scrollbar-thumb:hover{background:#5e42ce}.crm7-col{background:#f2f2f7;border:1px solid #e8e7ef;border-radius:15px;min-height:590px;padding:10px;transition:.15s}.crm7-col.dragover{background:#ece8fb;outline:2px dashed #8c72e5}.crm7-col>header{height:52px;display:flex;align-items:center;justify-content:space-between;padding:0 8px;border-bottom:3px solid #7c67dd;margin-bottom:10px}.crm7-col>header>div{display:flex;flex-direction:column;gap:2px}.crm7-col>header strong{font-size:14px}.crm7-col>header small{font-size:10px;color:#88859a}.crm7-col:nth-child(2)>header{border-color:#4e9ee8}.crm7-col:nth-child(3)>header{border-color:#e0a63e}.crm7-col:nth-child(4)>header{border-color:#8d72f2}.crm7-col:nth-child(5)>header{border-color:#dd7fbd}.crm7-col:nth-child(6)>header{border-color:#37aa78}.crm7-col:nth-child(7)>header{border-color:#dc6570}.crm7-col header>span{background:#fff;border-radius:20px;padding:5px 9px;font-size:11px;box-shadow:0 1px 4px rgba(30,25,60,.06)}.crm7-card{display:block;width:100%;text-align:left;background:#fff;border:1px solid #e3e2ea;border-radius:13px;padding:13px;margin-bottom:9px;box-shadow:0 2px 7px rgba(30,25,60,.035);cursor:pointer;transition:.16s}.crm7-card:hover{transform:translateY(-2px);border-color:#d5cffa;box-shadow:0 8px 20px rgba(30,25,60,.08)}.crm7-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px}.crm7-avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#eeeafd;color:#644fc6;font-weight:800;font-size:13px}.crm7-avatar.big{width:48px;height:48px;font-size:18px;flex:0 0 auto}.crm7-source{font-size:10px;color:#7f7c90;background:#f5f4f8;padding:4px 7px;border-radius:7px}.crm7-card strong{display:block;font-size:14px;color:#28243d}.crm7-card small{display:block;color:#8b8899;margin-top:4px}.crm7-amount{font-weight:800;margin:12px 0 9px;color:#5140b6}.crm7-task{font-size:11px;background:#f4f1ff;color:#6655b7;padding:7px 8px;border-radius:8px;margin-bottom:10px}.crm7-task.empty{color:#9692a6;background:#f7f7f9}.crm7-task.overdue{background:#fff0f1;color:#c64d59}.crm7-card footer{border-top:1px solid #eeedf2;padding-top:9px;display:flex;justify-content:space-between;color:#898697;font-size:11px}.crm7-empty{padding:25px 10px;text-align:center;color:#a0a2b0;font-size:12px;border:1px dashed #d4d5df;border-radius:11px}.crm7-overlay{position:fixed;inset:0;background:rgba(22,18,45,.38);backdrop-filter:blur(2px);z-index:80}.crm7-drawer{position:absolute;right:0;top:0;height:100%;width:min(590px,100%);background:#f8f8fb;padding:30px 32px 44px;overflow:auto;box-shadow:-18px 0 55px rgba(20,17,43,.16)}.crm7-drawer.wide{width:min(760px,100%)}.crm7-drawer h2{margin:0;font-size:25px;letter-spacing:-.4px}.crm7-client-head{display:flex;align-items:center;gap:13px;padding-right:42px}.crm7-client-head p{margin:4px 0 0;color:#777486;font-size:13px}.crm7-quick{display:flex;gap:8px;margin:20px 0 4px}.crm7-quick .secondary-btn{background:#eeeafd;border-color:#e2dcfb;color:#5c49bd;font-weight:700}.crm7-tabs{display:flex;gap:6px;margin:18px 0}.crm7-tabs button{border:1px solid #e5e2ef;background:#f0eef7;padding:9px 14px;border-radius:10px;font-weight:600;color:#5d596d}.crm7-tabs button.active{background:#6f56d9;border-color:#6f56d9;color:#fff}.crm7-drawer .card{background:#fff;border:1px solid #e7e5ed;border-radius:16px;padding:20px;box-shadow:0 2px 9px rgba(32,25,67,.035)}.crm7-drawer .card h3{margin:0 0 17px;font-size:16px}.crm-field{display:block;margin-bottom:14px;font-size:11px;font-weight:700;color:#777386;text-transform:uppercase;letter-spacing:.35px}.crm-field input,.crm-field select{display:block;width:100%;box-sizing:border-box;margin-top:6px;height:42px;border:1px solid #dedbe7;border-radius:10px;background:#fbfbfd;padding:0 12px;font:inherit;font-size:13px;font-weight:500;color:#28243d;text-transform:none;letter-spacing:0;outline:0}.crm-field input:focus,.crm-field select:focus{border-color:#8d78e6;box-shadow:0 0 0 3px rgba(111,86,217,.09);background:#fff}.crm7-drawer .primary-btn{min-height:42px;border-radius:10px;padding:0 18px}.crm7-call{display:flex;align-items:center;justify-content:space-between;background:#fafafd;border:1px solid #e9e7ef;border-radius:11px;padding:13px;margin:8px 0}.crm7-call span{display:block;color:#8b8899;font-size:11px;margin-top:4px}.crm-timeline-row{display:grid;grid-template-columns:36px 1fr auto;gap:11px;align-items:center;padding:12px 0;border-bottom:1px solid #efedf3}.crm-timeline-row:last-child{border-bottom:0}.crm-timeline-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#f0ecff;color:#654fc6;font-weight:800}.crm-timeline-icon.visit{background:#eaf5ff;color:#357cb9}.crm-timeline-icon.pay{background:#eaf8f0;color:#27825b}.crm-timeline-row strong{display:block;font-size:13px}.crm-timeline-row span{display:block;color:#8a8798;font-size:11px;margin-top:3px}.crm-timeline-row time{font-size:10px;color:#9996a5;white-space:nowrap}.crm7-new-modal{width:min(620px,calc(100% - 30px));border-radius:18px;padding:26px}.crm7-new-modal h3{font-size:22px;margin-bottom:4px}.crm7-new-modal .form-grid{gap:14px}.crm7-new-modal label{font-size:12px;font-weight:700;color:#696579}.crm7-new-modal input,.crm7-new-modal select{margin-top:6px;border-radius:10px;min-height:42px}.eyebrow{font-size:10px;letter-spacing:1.3px;font-weight:800;color:#7b68d9}.modal-close{width:34px;height:34px;border-radius:50%;border:0;background:#eeedf3;color:#666274;font-size:20px;cursor:pointer}.crm7-drawer>.modal-close{position:absolute;right:22px;top:22px}@media(max-width:760px){.crm7-head,.crm7-tools{align-items:stretch;flex-direction:column}.crm7-search{max-width:none}.crm7-stats{overflow:auto}.crm7-board{grid-template-columns:repeat(var(--stage-count,7),250px)}.crm7-drawer{padding:24px 18px 38px}.crm7-quick{flex-wrap:wrap}.crm-timeline-row{grid-template-columns:34px 1fr}.crm-timeline-row time{grid-column:2}}
/* Pipeline management */
.crm7-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.crm7-head-actions select{min-width:210px;min-height:48px;border:1px solid #dedbed;border-radius:14px;background:#fff;color:#231d43;padding:0 40px 0 14px;font-weight:700}.crm7-pipeline-modal{width:min(1100px,94vw);max-width:none;padding:26px}.pipeline-settings-head{margin-bottom:20px}.pipeline-settings-head h2{margin:4px 0 5px}.pipeline-settings-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:18px;min-height:480px}.pipeline-list,.pipeline-editor{border:1px solid #e1deee;border-radius:18px;background:#f8f7fc;padding:16px}.pipeline-list-title{font-size:13px;font-weight:800;color:#696579;margin:0 0 10px}.pipeline-list>button{display:flex;width:100%;align-items:center;justify-content:space-between;gap:8px;border:1px solid transparent;border-radius:12px;background:transparent;padding:12px;text-align:left;color:#30294f;cursor:pointer}.pipeline-list>button:hover,.pipeline-list>button.active{border-color:#8064e8;background:#eee9ff;color:#5c42ca}.pipeline-list>button span{font-weight:800;overflow:hidden;text-overflow:ellipsis}.pipeline-list>button small{font-size:10px;color:#755bdd;white-space:nowrap}.pipeline-create{display:grid;gap:8px;border-top:1px solid #e1deee;margin-top:12px;padding-top:14px}.pipeline-create input,.pipeline-editor input{width:100%;min-height:44px;border:1px solid #dcd8eb;border-radius:11px;background:#fff;color:#1e1938;padding:10px 12px}.pipeline-name-field{display:block;font-size:12px;font-weight:800;color:#6e6980}.pipeline-name-field input{display:block;margin-top:7px;font-size:16px}.pipeline-default{display:flex;align-items:center;gap:9px;margin:14px 0 20px;font-size:13px;font-weight:700}.pipeline-default input{width:18px;min-height:18px}.pipeline-stage-title{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #e1deee;padding-top:18px;margin-bottom:10px}.pipeline-stage-title b,.pipeline-stage-title small{display:block}.pipeline-stage-title small{font-size:11px;color:#858096;margin-top:3px}.pipeline-stage-rows{display:grid;gap:8px}.pipeline-stage-row{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:9px;padding:8px;border:1px solid #e1deee;border-radius:12px;background:#fff}.stage-number{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#eee9ff;color:#6549d3;font-weight:800}.pipeline-stage-row input{min-height:38px;border-color:transparent;background:#faf9fd}.stage-actions{display:flex;gap:5px}.stage-actions button{display:grid;place-items:center;width:32px;height:32px;border:1px solid #ded9ec;border-radius:9px;background:#fff;color:#5b4b9d;cursor:pointer;font-weight:900}.stage-actions button:hover:not(:disabled){border-color:#7255df;background:#f0ecff}.stage-actions button:disabled{opacity:.35;cursor:not-allowed}.stage-actions button.danger{color:#cf4054}.pipeline-add-stage{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;margin-top:12px}.pipeline-editor-actions{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #e1deee;margin-top:20px;padding-top:18px}.danger-outline{border:1px solid #e56878;border-radius:12px;background:#fff;color:#c63e52;padding:11px 15px;font-weight:800;cursor:pointer}.pipeline-no-stages,.pipeline-empty-editor{border:1px dashed #d8d3e8;border-radius:14px;padding:28px;text-align:center;color:#888399}.pipeline-empty-editor{display:grid;place-items:center;align-content:center;min-height:360px}.pipeline-empty-editor h3{margin-bottom:4px;color:#26203f}
@media(max-width:850px){.crm7-head-actions{justify-content:stretch}.crm7-head-actions select,.crm7-head-actions button{width:100%}.pipeline-settings-layout{grid-template-columns:1fr}.crm7-pipeline-modal{width:96vw;padding:18px;max-height:94vh;overflow:auto}.pipeline-editor-actions{flex-direction:column-reverse}.pipeline-editor-actions button{width:100%}.pipeline-add-stage{grid-template-columns:1fr}.pipeline-stage-row{grid-template-columns:30px minmax(0,1fr)}.pipeline-stage-row .stage-actions{grid-column:2;justify-content:flex-end}}

.crm7-stats .crm7-stat-link{font:inherit;color:inherit;background:#f8f6ff;border:1px solid #e5def8;border-radius:12px;padding:9px 13px;cursor:pointer}
.crm7-stats .crm7-stat-link:hover{background:#eee9ff;border-color:#8062df;color:#5138b7}
.crm7-overdue-list{display:grid;gap:10px;margin-top:18px}
.crm7-overdue-item{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left;border:1px solid #e5e1ef;background:#fff;border-radius:14px;padding:15px;cursor:pointer;color:#17152a}
.crm7-overdue-item:hover{border-color:#8062df;background:#faf8ff}
.crm7-overdue-item div{display:grid;gap:5px}.crm7-overdue-item span,.crm7-overdue-item small{display:block;color:#746f87}.crm7-overdue-item b:last-child{color:#654fc9;white-space:nowrap}

.crm7-tools{position:sticky;top:86px;z-index:9;background:#fff;padding:8px;border:1px solid #e9e5f4;border-radius:13px;box-shadow:0 3px 12px rgba(34,25,76,.06)}.crm-view-switch button{white-space:nowrap}@media(max-width:760px){.crm7-tools{top:86px;flex-wrap:wrap}.crm7-search{min-width:100%}}

.crm-field textarea{display:block;width:100%;box-sizing:border-box;margin-top:6px;min-height:88px;border:1px solid #dedbe7;border-radius:10px;background:#fbfbfd;padding:10px 12px;font:inherit;font-size:14px;font-weight:500;color:#28243d;text-transform:none;letter-spacing:0;resize:vertical;outline:0}
.crm-field textarea:focus{border-color:#8d78e6;box-shadow:0 0 0 3px rgba(111,86,217,.09);background:#fff}
.crm-field textarea:invalid{border-color:#c86970}
