/* CRM-only styles. Calculator, quotation templates and catalogs retain their styling. */
body.crm-page{background:#f3f5f4;color:#243b31}
body.crm-page .layout{padding-left:216px}
body.crm-page .sidebar{width:216px;background:#153d30;border-right:1px solid #214b3d;padding:30px 18px}
body.crm-page .sidebar .nav-button{font-size:12px;padding:13px 14px;border-radius:10px}
body.crm-page .sidebar .nav-button.active{background:#ffffff15;box-shadow:inset 3px 0 #c5d5b3}
body.crm-page .sidebar .local-mark{font-size:0}
body.crm-page .sidebar .local-mark:after{content:'CRM · Данные этого браузера';font-size:9px}
body.crm-page .topbar{height:70px;background:#ffffffc9;border-bottom:1px solid #e3e9e5;padding:0 34px}
body.crm-page .main{padding:25px 34px 60px;max-width:none}
.cx-workspace{font:13px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;--cx-line:#e3e9e5;--cx-green:#174d38;--cx-muted:#718078;--cx-ink:#253a30;--cx-radius:16px;color:var(--cx-ink);min-width:0}
.cx-workspace *{box-sizing:border-box}
.cx-workspace h1,.cx-workspace h2,.cx-workspace h3,.cx-workspace p{margin:0}
.cx-workspace h1{font-family:inherit;font-size:30px;letter-spacing:-1.1px;font-weight:650;line-height:1.25}
.cx-workspace h2{font-size:15px;font-weight:650;letter-spacing:-.2px;color:var(--cx-ink)}
.cx-workspace h3{font-size:14px;font-weight:600}
.cx-workspace button,.cx-workspace input,.cx-workspace select,.cx-workspace textarea{font-family:inherit}
.cx-workspace button{cursor:pointer}
.cx-workspace button:disabled{opacity:.4;cursor:not-allowed}
.cx-workspace button:focus-visible,.cx-workspace input:focus-visible,.cx-workspace select:focus-visible,.cx-workspace textarea:focus-visible{outline:3px solid #80b49b80;outline-offset:2px}
.cx-workspace input,.cx-workspace select,.cx-workspace textarea{width:100%;background:#fff;border:1px solid #d9e2dc;border-radius:9px;padding:11px 12px;color:#243b31;font-size:13px;min-height:42px;box-shadow:0 1px 2px #153d3004}
.cx-workspace textarea{min-height:100px;resize:vertical;line-height:1.6}
.cx-workspace input::placeholder,.cx-workspace textarea::placeholder{color:#98a39c}
.cx-navigation{margin-bottom:30px}
.cx-nav-main{display:flex;flex-wrap:wrap;gap:5px;align-items:center;padding:5px;background:#e7ece8;border:1px solid #e0e7e1;border-radius:12px;width:fit-content;max-width:100%}
.cx-nav-item{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;background:transparent;color:#617369;border-radius:8px;font-size:12px;font-weight:550;padding:10px 15px;white-space:nowrap}
.cx-nav-item.active{background:white;color:#164b35;box-shadow:0 1px 5px #14362513}
.cx-nav-item span{background:#e5ede7;color:#45634f;border-radius:6px;font-size:10px;padding:1px 6px}
.cx-nav-item:hover{color:#174d38}
.cx-admin-nav{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin-top:12px;padding-top:3px}
.cx-admin-nav>span{font-size:9px;letter-spacing:1.2px;color:#a08a63;margin-right:11px;font-weight:600}
.cx-admin-nav .cx-button{padding:5px 10px;min-height:30px;font-size:11px;color:#77857b}
.cx-admin-nav .cx-button.active{color:#705b39;background:#ece6d9}
.cx-page-header{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:0 0 24px}
.cx-page-header p{color:var(--cx-muted);font-size:12px;line-height:1.6;margin-top:9px;max-width:600px}
.cx-eyebrow{font-size:9px;font-weight:650;letter-spacing:1.8px;color:#7a9786;margin-bottom:9px}
.cx-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.cx-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:9px;padding:9px 13px;min-height:37px;font-size:12px;font-weight:550;border:1px solid transparent;background:transparent;color:#42614f;text-decoration:none;line-height:1.3;white-space:nowrap}
.cx-button.primary{background:#194c37;color:white;border-color:#194c37;box-shadow:0 2px 3px #174d3813}
.cx-button.primary:hover{background:#236446}
.cx-button.secondary{background:#fff;border-color:#dce5df;color:#315d44}
.cx-button.secondary:hover{background:#f2f7f2}
.cx-button.ghost:hover{background:#e9eeea}
.cx-button.text{padding:0;min-height:0;border:0;white-space:normal;text-align:left;justify-content:flex-start;color:#214b35}
.cx-button.selected{background:#e0ece3;color:#1c5938}
.cx-button.cx-close{font-size:22px;padding:3px 10px;min-height:34px}
.cx-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}
.cx-metrics.cx-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.cx-metric{background:#fff;border:1px solid #e1e8e2;border-radius:14px;padding:20px 22px;min-height:125px;box-shadow:0 2px 4px #143d2803;position:relative;overflow:hidden}
.cx-metric>span{font-size:11px;color:#718278;font-weight:500}
.cx-metric>strong{display:block;margin:13px 0 5px;font-size:28px;font-weight:600;letter-spacing:-1px;line-height:1.2;font-variant-numeric:tabular-nums}
.cx-metric>small{display:block;font-size:10px;color:#89958e;line-height:1.5}
.cx-metric.green{background:#eef5ef;border-color:#d9e6dc}
.cx-metric.green>strong{color:#245c3d}
.cx-metric.red>strong{color:#b44e3f}
.cx-metric.amber>strong{color:#a27835}
.cx-panel{background:#fff;border:1px solid #e0e7e1;border-radius:var(--cx-radius);padding:22px;margin-bottom:20px;box-shadow:0 2px 3px #153d3003;min-width:0}
.cx-panel-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}
.cx-panel-title p{font-size:11px;color:#819086;margin-top:4px}
.cx-dashboard-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:20px}
.cx-dashboard-grid>.cx-panel{margin-bottom:0}
.cx-badge{display:inline-flex;align-items:center;border-radius:6px;background:#f0f3f1;color:#77867d;font-size:10px;padding:4px 8px;white-space:nowrap;line-height:1.3;font-weight:500}
.cx-badge.green{background:#e6f1e8;color:#39724a}
.cx-badge.amber{background:#f9f0dc;color:#a17b31}
.cx-badge.red{background:#fbece7;color:#b45b48}
.cx-muted{color:#809086;font-size:12px;line-height:1.65}
.cx-green{color:#39764e!important}.cx-red{color:#b44e3f!important}
.cx-empty{padding:45px 25px;text-align:center;color:#778a7d}
.cx-empty h3{margin:15px 0 7px;color:#4e6957}.cx-empty p{font-size:12px;max-width:390px;margin:0 auto 15px;line-height:1.65}
.cx-empty-icon{display:grid;place-items:center;margin:auto;background:#eef4ee;border-radius:14px;width:45px;height:45px;color:#789d84}
.cx-board-top{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:18px}
.cx-board-top>div{display:flex;gap:7px}
.cx-filter-inline,.cx-filter-bar{display:flex;gap:10px;align-items:end;flex-wrap:wrap}
.cx-filter-inline .cx-field{min-width:180px}
.cx-filter-inline .cx-field>span{font-size:10px}
.cx-filter-bar{margin:0 0 20px;padding:15px 18px;border:1px solid #e0e7e1;border-radius:12px;background:#fff}
.cx-filter-bar .cx-field{flex:1;max-width:380px}
.cx-filter-bar>span{margin-left:auto;color:#839187;font-size:11px;padding-bottom:10px}
.cx-board{display:flex;align-items:stretch;gap:15px;overflow-x:auto;padding:0 0 18px;scroll-snap-type:x proximity;min-height:480px;scrollbar-color:#b8c9bc #e4ebe5;scrollbar-width:thin}
.cx-column{flex:0 0 270px;min-width:0;background:#eaf0eb;border-radius:13px;border:1px solid #dfe7e0;padding:12px;scroll-snap-align:start}
.cx-column-heading{display:flex;align-items:center;gap:8px;padding:5px 2px 14px}
.cx-column-heading h2{font-size:12px;flex:1;letter-spacing:0}
.cx-column-heading .cx-badge{background:#dfe8e0;color:#607c67;font-size:10px;padding:2px 6px}
.cx-stage-dot{height:7px;width:7px;border-radius:100%;background:hsl(var(--stage-hue) 25% 50%)}
.cx-column-body{max-height:calc(100vh - 330px);min-height:310px;overflow-y:auto;scrollbar-width:thin}
.cx-column-empty{text-align:center;color:#a1b0a4;font-size:11px;padding:45px 0}
.cx-client-tile{background:#fff;border:1px solid #dce6dd;border-radius:11px;padding:15px 14px;margin-bottom:10px;box-shadow:0 2px 5px #193d3110}
.cx-client-tile:hover{border-color:#b7cebf;box-shadow:0 3px 12px #193d3110}
.cx-client-name{font-size:13px;font-weight:650!important}
.cx-client-tile>p{color:#819186;font-size:11px;margin-top:5px;overflow-wrap:anywhere}
.cx-tile-finance{display:grid;gap:3px;border-top:1px solid #eff3ef;padding-top:10px;margin:12px 0;font-size:10px}
.cx-tile-finance strong{font-size:12px;color:#3e6650}
.cx-tile-finance small,.cx-tile-finance span{font-size:10px;color:#8a9a8d}
.cx-next-action{display:flex;align-items:start;gap:7px;margin:12px 0;color:#7e9282;font-size:10px;line-height:1.5}
.cx-next-action svg{width:13px;height:13px;flex-shrink:0;margin-top:2px}
.cx-next-action small{display:block;font-size:10px;color:#899a8e;margin-top:3px}
.cx-tile-footer{display:flex;align-items:center;gap:7px;padding-top:9px;border-top:1px solid #f0f4f0;color:#8c9a90;font-size:10px}
.cx-avatar{display:inline-grid;place-items:center;flex-shrink:0;width:29px;height:29px;background:#eaf1e8;color:#648568;font-size:11px;font-weight:600;border:1px solid #e0e9df;border-radius:9px}
.cx-tile-footer .cx-avatar{width:22px;height:22px;border-radius:7px;font-size:9px}
.cx-transition-buttons{display:flex;justify-content:space-between;margin-top:12px;gap:8px}
.cx-transition-buttons .cx-button{font-size:10px;padding:5px 8px;min-height:30px}
.cx-field{display:flex;flex-direction:column;gap:7px;min-width:0;margin:0}
.cx-field>span{font-size:11px;color:#75857a;font-weight:500}
.cx-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 16px}
.cx-full{grid-column:1/-1}
.cx-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:20px}
.cx-tabs .cx-button{border:1px solid transparent}
.cx-tabs .cx-button.selected{border-color:#d5e4d8}
.cx-task{display:grid;grid-template-columns:26px minmax(0,1fr) auto;gap:12px;padding:16px 0;align-items:start;border-top:1px solid #ebf0eb}
.cx-task:first-child{border-top:0}
.cx-task-check{width:22px;height:22px;border-radius:7px;border:1.5px solid #cfdbd0;background:#fff;display:grid;place-items:center;margin-top:2px;padding:0;color:#fff}
.cx-task-check.checked{background:#3d7950;border-color:#3d7950}
.cx-task-body>strong{font-size:12px;font-weight:600;display:block;line-height:1.5;color:#38523f}
.cx-task-body>small{font-size:10px;color:#92a095;display:block;margin-top:4px}
.cx-task-body .cx-button.text{font-size:10px;color:#75947b}
.cx-task-body>p{font-size:11px;color:#829689;line-height:1.65;margin-top:5px}
.cx-task-meta{display:grid;gap:7px;justify-items:end;font-size:10px;color:#7d9184}
.cx-task.done .cx-task-body>strong{text-decoration:line-through;color:#97a79a}
.cx-task.done{opacity:.75}
.cx-template-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}
.cx-template-grid>div{border:1px solid #e5ece5;background:#f7faf7;border-radius:10px;padding:15px;display:grid;gap:5px}
.cx-template-grid small{color:#829d87;font-size:10px}.cx-template-grid strong{font-size:12px;color:#42664d}.cx-template-grid p{font-size:11px;color:#8a9c8d}
.cx-templates{margin-top:20px}.cx-templates summary{font-size:12px;font-weight:600;color:#5c7b62;cursor:pointer}
.cx-timeline{margin-top:22px}
.cx-event{display:flex;gap:12px;position:relative;padding:0 0 22px}
.cx-event:before{content:'';position:absolute;left:4px;top:10px;bottom:0;width:1px;background:#e0e9e1}
.cx-event:last-child:before{display:none}
.cx-event>i{width:9px;height:9px;background:#b4c9b5;border:2px solid #e8f0e7;border-radius:100%;flex-shrink:0;margin-top:5px;position:relative;z-index:1}
.cx-event>div{min-width:0}.cx-event small{display:block;color:#93a397;font-size:9px;margin-bottom:4px}.cx-event strong{font-size:11px;font-weight:600;color:#4b6b53;display:block}.cx-event p{font-size:11px;color:#7f9486;margin-top:5px;line-height:1.7;overflow-wrap:anywhere}
.cx-client-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:22px;align-items:start}
.cx-client-stage{display:flex;gap:12px;align-items:center;padding:15px 19px;border-radius:12px;border:1px solid #e0e7df;background:#fff;margin-bottom:20px;color:#85978a;font-size:12px}
.cx-client-stage>.cx-actions{margin-left:auto}
.cx-details{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:0}.cx-details dt{font-size:10px;color:#8a9b8f;margin-bottom:4px}.cx-details dd{margin:0;font-size:12px;color:#48614f;overflow-wrap:anywhere}
.cx-note{margin-top:20px!important;padding:12px;background:#f5f8f3;border-radius:9px;font-size:12px;color:#6d8772;white-space:pre-wrap}
.cx-client-journal{max-height:calc(100vh - 100px);overflow:auto;position:sticky;top:20px}
.cx-client-journal form{display:grid;gap:12px;margin-bottom:25px;padding-bottom:20px;border-bottom:1px solid #edf2ec}
.cx-client-journal textarea{min-height:85px}
.cx-payment-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:20px;border-bottom:1px solid #edf2ec}
.cx-payment-name{display:flex;gap:12px;align-items:center;min-width:0}.cx-payment-name .cx-avatar{width:38px;height:38px;font-size:14px;border-radius:12px}.cx-payment-name .cx-button.text{font-size:15px;font-weight:600}
.cx-payment-name small{display:block;color:#91a092;font-size:10px;margin-top:5px}
.cx-payment-totals{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:20px;margin:24px 0}
.cx-payment-totals>div{border-right:1px solid #e9efe8;padding-right:10px}.cx-payment-totals>div:last-child{border-right:0}
.cx-payment-totals small{font-size:10px;color:#8b9c8e;display:block;margin-bottom:8px}.cx-payment-totals strong{font-size:22px;color:#38583f;font-weight:600;letter-spacing:-.5px;display:block}.cx-payment-totals span{font-size:10px;color:#94a496;display:block;margin-top:5px}
.cx-table-wrap{overflow:auto;scrollbar-width:thin}
.cx-table{border-collapse:collapse;width:100%;text-align:left;font-size:12px;min-width:520px}
.cx-table th{font-size:10px;color:#8b9b8d;font-weight:500;padding:12px;border-top:1px solid #e8eee7;border-bottom:1px solid #e8eee7;background:#f7faf6;text-align:left;white-space:nowrap}
.cx-table td{padding:15px 12px;border-bottom:1px solid #edf2eb;vertical-align:middle;color:#5d7965;overflow-wrap:anywhere}
.cx-table td strong{font-size:12px;font-weight:550;display:block}.cx-table td small{display:block;font-size:10px;color:#95a497;margin-top:4px}
.cx-table .cx-num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.cx-table .cx-button{font-size:10px;min-height:31px;padding:6px 10px}
.cx-table.av-people td,.cx-table.av-people td strong,.cx-table.av-people td small,.cx-table.av-people td .cx-button.text{font-size:12px;line-height:1.35}.cx-table.av-people td .cx-button.text{font-weight:550}
.cx-empty-cell{padding:30px!important;text-align:center;color:#9aa89b!important}
.cx-receipts{margin-top:18px}.cx-receipts summary{font-size:11px;color:#75977c;cursor:pointer;padding:4px 0}.cx-receipts>.cx-muted{padding:15px 0}
.cx-list-row{display:flex;justify-content:space-between;align-items:center;gap:15px;border-top:1px solid #ecf2e9;padding:15px 0}.cx-list-row:first-child{border-top:0}.cx-list-row small{display:block;font-size:10px;color:#92a593;margin-top:6px}
.cx-alert{border-radius:9px;border:1px solid #dfe9db;background:#f5faf2;color:#648066;padding:12px 15px;font-size:11px;line-height:1.7;margin:15px 0;overflow-wrap:anywhere}
.cx-alert.amber{background:#fffaec;border-color:#f0e3bd;color:#a08745}.cx-alert.red{background:#fff0eb;border-color:#f1d5ca;color:#b3644e}.cx-alert[hidden]{display:none}
.cx-report-filters{display:flex;flex-wrap:wrap;gap:14px;align-items:end}.cx-report-filters .cx-field{flex:1;min-width:160px;max-width:240px}
.cx-document-panel{padding:20px;background:#e9eeea}
.cx-document-panel .cx-document{border:1px solid #dae4db;border-radius:8px;box-shadow:0 3px 15px #183c2d08;max-width:1050px;margin:0 auto}
.cx-document-panel>article{overflow-x:auto}
.cx-funnel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.cx-funnel-grid>.cx-panel{margin-bottom:0}
.cx-stage-list{padding-left:22px;color:#7c9681;font-size:12px;display:grid;gap:11px;margin:20px 0 25px}
.cx-funnel-stats{display:grid;gap:16px}.cx-funnel-stats>div{display:grid;grid-template-columns:160px 1fr 30px;gap:15px;align-items:center;font-size:11px;color:#6c8973}.cx-bar{background:#f0f5ec;height:9px;border-radius:5px;overflow:hidden}.cx-bar i{display:block;height:100%;background:#a5c3a3;border-radius:5px}
.cx-overlay{position:fixed;inset:0;z-index:180;display:grid;place-items:center;padding:25px;background:#0c302270;backdrop-filter:blur(5px)}
.cx-modal{background:#fff;width:min(520px,100%);max-height:calc(100dvh - 50px);overflow:auto;overscroll-behavior:contain;border:1px solid #dce7dc;box-shadow:0 25px 110px #0f312440;border-radius:20px;padding:28px}
.cx-modal-wide{width:min(1000px,100%)}
.cx-modal-header{display:flex;align-items:start;justify-content:space-between;gap:20px;margin-bottom:25px}.cx-modal-header h2{font-size:23px;font-weight:600;letter-spacing:-.5px;color:#2e533a}.cx-modal-header p{font-size:11px;color:#8a9d8e;margin-top:8px;line-height:1.6}.cx-modal-header .cx-eyebrow{font-size:8px;color:#9cb69c;letter-spacing:1.5px}
.cx-modal-footer{display:flex;align-items:center;justify-content:end;gap:10px;margin-top:25px;padding-top:20px;border-top:1px solid #e7eee4}
.cx-schedule-editor{margin-top:25px}.cx-editor-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}
.cx-edit-row{display:grid;grid-template-columns:23px 1.5fr 1fr 1fr 28px;align-items:end;gap:10px;background:#f5f9f2;padding:14px;border:1px solid #e5eddf;border-radius:11px;margin-bottom:10px}.cx-row-number{font-size:10px;color:#99b18f;padding-bottom:14px}.cx-edit-row .cx-field span{font-size:10px}
.cx-funnel-stage{display:grid;grid-template-columns:25px 1fr 35px 35px 30px;gap:6px;align-items:center;margin-bottom:10px}.cx-funnel-stage>span{color:#8ca381;font-size:10px}.cx-funnel-stage .cx-field>span{display:none}.cx-funnel-stage .cx-button{padding:4px;min-width:0}
.cx-document-actions{display:flex;gap:10px;justify-content:end;margin-bottom:20px}
#crm-print-root{display:none}
.cx-customer-fields{border-top:1px solid #e4ece2;padding-top:20px;margin-top:6px}.cx-customer-fields h3{margin-bottom:18px}.cx-requisites-details{margin-top:18px}.cx-requisites-details summary{font-size:12px;color:#6d8e75;cursor:pointer;margin-bottom:15px}.cx-requisites-details fieldset{grid-column:1/-1;border:1px solid #e1eade;border-radius:10px;padding:18px;margin:0;min-width:0}.cx-requisites-details legend{color:#729179;font-size:11px;padding:0 7px}.cx-requisites-details fieldset[hidden]{display:none}.cx-contract-create{display:flex;gap:8px;margin-bottom:20px;flex-wrap:wrap}.cx-contract-card{border:1px solid #e0e9dc;border-radius:12px;padding:19px;background:#fbfdf9;margin-top:15px}.cx-contract-title{display:flex;align-items:start;justify-content:space-between;gap:15px}.cx-contract-title strong{display:block;font-size:14px;color:#355c40}.cx-contract-title small{font-size:11px;color:#88a08b;display:block;margin-top:5px}.cx-contract-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;padding:18px 0;color:#90a18e;font-size:10px}.cx-contract-stats b{display:block;font-size:16px;font-weight:550;color:#446c4a;margin-top:5px}.cx-contract-card .cx-actions{padding-top:10px;border-top:1px solid #e7eee2}.cx-contract-card .cx-button{font-size:11px}.cx-contract-quote{font-size:10px;line-height:1.8;color:#8c9e89;margin-top:13px}.cx-contracts-panel .cx-list-row strong{font-size:11px}.cx-template-tokens{font-size:10px;line-height:2.3;margin:10px 0 22px}.cx-template-tokens code{padding:3px 5px;border-radius:4px;background:#edf4e8;color:#66875b;white-space:nowrap;display:inline-block;margin:2px}.cx-template-editor{margin:18px 0;border:1px solid #e2ebdc;border-radius:10px;padding:16px;background:#f9fcf6}.cx-template-editor summary{font-size:13px;font-weight:600;color:#527b48;cursor:pointer}.cx-template-editor .cx-field{margin-top:17px}.cx-template-editor textarea{min-height:430px;font:12px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace}.cx-contract-document h2{margin-top:26px}.cx-contract-document p{line-height:1.7;margin:12px 0}.cx-contract-document .doc-page-break{border-top:2px dashed #e0e8dc;margin:35px 0}.cx-contract-document .doc-page-break:after{content:'ПРИЛОЖЕНИЕ · ОТДЕЛЬНАЯ СТРАНИЦА';display:block;font-size:8px;color:#9cae98;margin-top:10px;letter-spacing:1px}.cx-inline-check{display:flex;align-items:start;gap:8px;font-size:11px;color:#82957d;margin-top:12px}.cx-workspace .cx-inline-check input{width:15px;min-height:15px;flex-shrink:0;margin-top:2px}
@media(max-width:650px){.cx-contract-card{padding:15px}.cx-contract-stats{grid-template-columns:1fr 1fr;gap:13px}.cx-contract-stats b{font-size:15px}.cx-contract-title{flex-direction:column;gap:8px}.cx-requisites-details fieldset{padding:13px}.cx-template-editor{padding:12px}.cx-contract-card .cx-actions .cx-button{flex:1}}
@media print{.cx-contract-document .doc-page-break{break-before:page;page-break-before:always;border:0;margin:0;padding:0}.cx-contract-document .doc-page-break:after{display:none}.cx-contract-document h2{break-after:avoid}}
@media(min-width:1650px){body.crm-page .main{padding:32px 42px 70px}.cx-column{flex-basis:290px}.cx-metric{padding:23px 26px}.cx-metric>strong{font-size:31px}.cx-panel{padding:26px}}
@media(max-width:1250px){.cx-metrics{gap:11px}.cx-metric{padding:16px}.cx-metric>strong{font-size:23px}.cx-client-layout{grid-template-columns:1fr}.cx-client-journal{position:static;max-height:none}.cx-dashboard-grid{grid-template-columns:1fr}.cx-payment-totals strong{font-size:20px}.cx-page-header{gap:15px}.cx-page-header h1{font-size:26px}}
@media(max-width:950px){body.crm-page .layout{padding-left:0}body.crm-page .sidebar{width:100%;padding:16px 20px}body.crm-page .sidebar .nav-button{font-size:10px;padding:10px}body.crm-page .main{padding:25px}body.crm-page .topbar{height:55px;padding:0 25px}.cx-client-layout{grid-template-columns:1fr}.cx-metrics{grid-template-columns:1fr 1fr}.cx-page-header{align-items:flex-start}.cx-board-top{align-items:start;flex-direction:column}.cx-filter-inline{width:100%}.cx-filter-inline .cx-field{flex:1}.cx-funnel-grid{grid-template-columns:1fr}}
@media(max-width:650px){body.crm-page .main{padding:20px 14px 40px}body.crm-page .sidebar{padding:15px}body.crm-page .sidebar .nav{margin-top:10px}body.crm-page .topbar{padding:15px;height:auto}.cx-page-header{flex-direction:column;gap:15px}.cx-page-header h1{font-size:27px}.cx-navigation{margin-bottom:24px}.cx-nav-main{width:100%;padding:4px;gap:3px}.cx-nav-item{flex:1;padding:9px 7px;font-size:11px;gap:5px}.cx-nav-item svg{width:14px;height:14px}.cx-admin-nav{gap:0}.cx-admin-nav>span{font-size:8px;width:100%;margin:4px 0}.cx-admin-nav .cx-button{font-size:10px;padding:4px 8px}.cx-metrics,.cx-metrics.cx-three{grid-template-columns:1fr 1fr;gap:10px}.cx-metrics.cx-three>.cx-metric:last-child{grid-column:1/-1}.cx-metric{padding:16px;min-height:115px}.cx-metric>strong{font-size:23px;margin-top:10px}.cx-metric>span{font-size:10px}.cx-metric>small{font-size:9px}.cx-panel{padding:18px 15px;border-radius:13px}.cx-panel-title{gap:10px}.cx-panel h2{font-size:14px}.cx-payment-heading{align-items:start;flex-direction:column;gap:16px}.cx-payment-totals{gap:12px;grid-template-columns:1fr 1fr}.cx-payment-totals>div:last-child{grid-column:1/-1;border-top:1px solid #e8eee2;padding-top:14px}.cx-payment-totals>div:nth-child(2){border-right:0}.cx-payment-totals strong{font-size:20px}.cx-payment-name .cx-button.text{font-size:14px}.cx-report-filters .cx-field{max-width:none;min-width:125px}.cx-filter-inline .cx-field{min-width:130px}.cx-filter-inline>.cx-button{align-self:end}.cx-client-stage{flex-wrap:wrap}.cx-client-stage>.cx-actions{margin-left:0;width:100%}.cx-task{gap:8px;grid-template-columns:24px minmax(0,1fr)}.cx-task-meta{grid-column:2;display:flex;justify-items:start;gap:10px}.cx-task-body>strong{font-size:12px}.cx-template-grid{grid-template-columns:1fr}.cx-overlay{padding:12px}.cx-modal{padding:22px 18px;max-height:calc(100dvh - 24px);border-radius:16px}.cx-modal-header h2{font-size:21px}.cx-modal-header p{font-size:11px}.cx-form-grid{grid-template-columns:1fr;gap:15px}.cx-edit-row{grid-template-columns:20px 1fr 30px;padding:12px;gap:9px}.cx-edit-row .cx-field:nth-child(2){grid-column:2}.cx-edit-row .cx-field:nth-child(3){grid-column:2}.cx-edit-row .cx-field:nth-child(4){grid-column:2}.cx-edit-row .cx-close{grid-column:3;grid-row:1}.cx-row-number{align-self:start;padding:10px 0 0}.cx-document{padding:20px!important}.cx-document .doc-kpis{grid-template-columns:1fr!important}.cx-document .doc-header{flex-direction:column}.cx-document .doc-issued{text-align:left!important}.cx-document h1{font-size:22px!important}.cx-funnel-stats>div{grid-template-columns:120px 1fr 20px;gap:10px}.cx-document-actions{flex-wrap:wrap;justify-content:start}.cx-modal-footer{flex-wrap:wrap}.cx-modal-footer .cx-button{flex:1}.cx-client-name{font-size:13px}.cx-column{flex-basis:260px}.cx-details{gap:18px 12px}}
@media print{body.crm-printing>#app,body.crm-printing>#toast,body.crm-printing>#dialog-root{display:none!important}body.crm-printing>#crm-print-root{display:block!important;padding:0;margin:0;background:white}body.crm-printing{padding:0!important;margin:0!important;background:white!important}body.crm-printing .cx-document{padding:0!important;border:0!important;box-shadow:none!important;max-width:none!important}.cx-overlay{display:none!important}}
