/* KONSALTOFF CRM v96 · типографика, чат и таблицы */
/* v59: чуть крупнее и ровнее интерфейс */
body{font-size:14px}
input,select,textarea,.btn{font-size:13px}
.tabs button{font-size:13px;height:38px;padding:0 17px}.tabs button.active{height:41px}
.page-head h1{font-size:22px}.page-head p{font-size:12px}
.toolbar-filter,.count,.zoom-control,.year-filter label,.manager-registry-toolbar label{font-size:12px}
.toolbar input,.toolbar select,.toolbar .btn,.year-filter select{min-height:36px;height:36px}
.manager-registry-toolbar select,.manager-registry-toolbar input{min-height:36px;height:36px;font-size:13px}
.manager-registry-stat span,.card span{font-size:12px}.manager-registry-stat strong{font-size:20px}
table{font-size:12.5px}th{padding:7px 8px;line-height:1.2}td{padding:6px 8px;line-height:1.25;vertical-align:middle}
.filter-row input,.filter-row select,.manager-filter-row input,.manager-filter-row select{height:28px;min-height:28px;font-size:11.5px;padding:3px 5px}
.filter-row th,.manager-filter-row th{top:31px}
.modal-card{width:min(980px,97vw)}.modal-head h2{font-size:23px}
.form{padding:20px 22px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;align-items:start}
.form-grid>label{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0;font-size:13px;font-weight:700;color:#203b58}
.form-grid input,.form-grid select{height:42px;min-height:42px;font-size:14px}.form-grid textarea{min-height:96px;font-size:14px;resize:vertical}
.form-grid .full{grid-column:1/-1}
.renewal-tabs{border-radius:5px;overflow:hidden;box-shadow:0 1px 0 #e7edf3;margin:12px 0 14px}
.renewal-tabs-nav{background:#edf3f8}.renewal-tab-btn{min-height:43px;padding:0 16px;font-size:12.5px}
.renewal-tab-badge{height:22px;min-width:25px;font-size:11px}.renewal-tab-panel-head{padding:9px 12px;font-size:11.5px}.renewal-tab-panel-head strong{font-size:13px}
.renewal-card{min-width:315px}.renewal-card-main{padding:10px}.renewal-card-actions button{height:30px;font-size:11px}
.renewal-status-note,.renewal-tab-empty{font-size:11.5px}
/* Чат: быстрые смайлики */
.chat-emoji-bar{display:flex;gap:5px;align-items:center;flex-wrap:wrap;padding:7px 0 6px}
.chat-emoji-bar span{font-size:11px;color:#718398;margin-right:3px;font-weight:700}
.chat-emoji-btn{width:34px;height:32px;border:1px solid #ccd8e4;background:#fff;border-radius:7px;cursor:pointer;font-size:18px;line-height:1;padding:0}
.chat-emoji-btn:hover{background:#edf5ff;border-color:#9fbadd;transform:translateY(-1px)}
.chat-compose textarea{font-size:14px;min-height:90px}
/* Более ровные таблицы/графы в сводке */
.summary-panel table{width:100%;min-width:0}.summary-panel th,.summary-panel td{height:32px}
.summary-chart-card{min-height:320px}.summary-chart{height:245px;min-width:820px;gap:10px;padding:10px 12px 0}
.summary-chart-value{font-size:10px;transform:none;min-height:32px;white-space:normal;text-align:center;line-height:1.05}
.summary-chart-barbox{height:170px}.summary-chart-month{font-size:11px}
@media(max-width:900px){.form-grid{grid-template-columns:1fr}.tabs button{font-size:12px}.renewal-tab-btn{font-size:11.5px}}



.manager-registry-stat.annulled-kpi{border-color:#f1b7bd!important;background:#fff6f7!important}
.manager-registry-stat.annulled-kpi span,.manager-registry-stat.annulled-kpi strong{color:#a12835!important}
.manager-registry-stat.annulled-kpi small{display:block;margin-top:4px;font-size:11px;color:#a84b55;font-weight:700}



.manager-work-lock-banner{margin:8px 22px 0;padding:11px 13px;border:1px solid #dba740;background:#fff4cf;color:#765000;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.manager-work-lock-banner .btn{background:#1769e8;border-color:#1769e8;color:#fff}
.directory-grid{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:9px;margin:10px 0 12px}.directory-kpi{border:1px solid #d9e3ed;background:#fff;padding:11px;border-radius:7px}.directory-kpi span{display:block;font-size:10px;color:#6d8095}.directory-kpi b{display:block;margin-top:4px;font-size:18px;color:#173f69}
.directory-table tr{cursor:pointer}.directory-table tr:hover td{background:#f2f7fd}.directory-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-end;padding:4px 0 12px}.directory-card-head h3{margin:0;color:#173f69}.directory-card-head small{display:block;color:#70839a;margin-top:3px}.directory-card-year{width:130px}
.directory-tabs{display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid #d7e0e9;margin:0 0 10px}.directory-tab{border:1px solid #d7e0e9;border-bottom:0;background:#f4f7fa;color:#3c5873;padding:7px 10px;cursor:pointer;font-size:11px;font-weight:800;border-radius:5px 5px 0 0}.directory-tab.active{background:#fff;color:#0b61f4}.directory-pane.hidden{display:none!important}.directory-pane .table-wrap{max-height:420px}.directory-empty{padding:16px;text-align:center;color:#718398}
.intermediary-contact{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.intermediary-contact small{color:#72849a}.ecp-control{margin:10px 0 12px;border:1px solid #d6e0e9;background:#fff}.ecp-control-head{padding:9px 11px;background:#edf5fb;border-bottom:1px solid #d6e0e9;display:flex;justify-content:space-between;gap:10px}.ecp-control-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:7px;padding:8px}.ecp-control-card{border:1px solid #d8e1e9;background:#fafcfe;padding:9px;cursor:pointer}.ecp-control-card.soon{background:#fff7de;border-color:#e7c46c}.ecp-control-card.expired{background:#fff0f2;border-color:#df9ca6}.ecp-control-card b{display:block;color:#173f69}.ecp-control-card small{display:block;color:#6f8193;margin-top:3px}.ecp-control-card.expired b{color:#a42634}.ecp-cell-soon{background:#fff2cc!important;color:#805a05;font-weight:800}.ecp-cell-expired{background:#fbe2e5!important;color:#a42634;font-weight:800}.ecp-cell-ok{background:#e2f0d9!important;color:#2d6f35;font-weight:700}
@media(max-width:900px){.directory-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.directory-grid{grid-template-columns:1fr}.directory-card-head{display:block}.directory-card-year{margin-top:8px;width:100%}}



:root{--crm-global-zoom:1}
.workspace-view-controls{display:flex;align-items:center;gap:5px;margin-right:8px;padding:3px 5px;border:1px solid #ffffff30;background:#ffffff12;border-radius:7px}
.workspace-view-btn{height:30px;min-width:30px;border:1px solid #ffffff38;background:#ffffff10;color:#fff;border-radius:5px;padding:0 8px;cursor:pointer;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:5px}
.workspace-view-btn:hover{background:#ffffff24}
.workspace-view-label{font-size:11px}
.workspace-zoom-range{width:76px!important;min-height:16px!important;height:16px!important;padding:0!important;border:0!important;background:transparent!important;accent-color:#fff}
.workspace-zoom-value{min-width:40px;text-align:center;font-size:11px;font-weight:800;color:#fff;cursor:pointer}
.crm-workspace{zoom:var(--crm-global-zoom)}
.modal-card{zoom:var(--crm-global-zoom)}
.crm-shell.sidebar-collapsed{grid-template-columns:minmax(0,1fr)}
.crm-shell.sidebar-collapsed .crm-sidebar{display:none!important}
.sidebar-collapsed .crm-workspace{width:100%}
.client-section-row td{background:#eef5fc!important;color:#173f69!important;font-weight:900!important;text-transform:uppercase;letter-spacing:.25px;padding:8px 10px!important;cursor:default!important}
.client-card-modal{padding:12px!important}
.client-card-modal .modal-card{width:min(1540px,99vw);max-height:97vh;border-radius:12px;overflow:auto;background:#f6f9fd}
.client-card-modal .modal-head{display:none}
.client-profile{padding:18px 20px 22px;background:#f6f9fd}
.client-profile-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:2px 4px 14px}
.client-profile-title{display:flex;align-items:center;gap:13px;min-width:0}
.client-profile-avatar{width:46px;height:46px;border-radius:11px;display:grid;place-items:center;background:#e5f1ff;color:#0874ee;font-size:25px;flex:0 0 auto}
.client-profile-name{font-size:26px;line-height:1.1;font-weight:900;color:#081341;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.client-profile-badges{display:flex;gap:7px;flex-wrap:wrap;margin-top:7px}.client-badge{display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border-radius:13px;font-size:10px;font-weight:800;background:#e6f7ef;color:#14804c}.client-badge.type{background:#e9f2ff;color:#1769e8}.client-badge.debt{background:#fff2dc;color:#a86400}
.client-profile-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}.client-close-btn{height:36px;min-width:38px;border:1px solid #d4deea;background:#fff;color:#38506c;border-radius:7px;cursor:pointer;font-size:20px}.client-close-btn:hover{background:#eef5fc}
.client-contact-strip{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));border:1px solid #dbe6f2;background:#fff;border-radius:9px;overflow:hidden;margin-bottom:14px}.client-contact-item{padding:11px 15px;border-right:1px solid #e2eaf3}.client-contact-item:last-child{border-right:0}.client-contact-item span{display:block;font-size:10px;color:#70839a;margin-bottom:4px}.client-contact-item b{display:block;font-size:12px;color:#14234d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.client-profile .directory-tabs{margin:0 0 14px;background:#fff;border:1px solid #dbe6f2;border-radius:8px;padding:0 8px;gap:14px}.client-profile .directory-tab{border:0!important;background:transparent!important;border-radius:0!important;padding:12px 8px 10px;font-size:11px;color:#526785;box-shadow:none}.client-profile .directory-tab.active{color:#0874ee!important;box-shadow:inset 0 -3px #0874ee!important}
.client-profile-period{display:flex;align-items:center;gap:6px}.client-profile-period label{font-size:10px;color:#6a7f98;font-weight:800}.client-profile-period select{width:130px;height:34px;min-height:34px}
.client-pane-card{border:1px solid #dbe6f2;background:#fff;border-radius:9px;overflow:hidden;margin-bottom:12px}.client-pane-head{display:flex;align-items:center;gap:10px;padding:11px 15px;background:linear-gradient(90deg,#eaf4ff,#f7fbff);border-bottom:1px solid #dbe6f2}.client-pane-head.green{background:linear-gradient(90deg,#e9faf3,#f7fffb)}.client-pane-head.purple{background:linear-gradient(90deg,#f2ecff,#fbf9ff)}.client-pane-icon{font-size:22px}.client-pane-head h3{margin:0;font-size:15px;color:#12234f}.client-pane-head small{display:block;margin-top:2px;color:#71849a}.client-pane-card .table-wrap{border:0;border-radius:0;max-height:480px}.client-pane-card table{width:100%}.client-profile .directory-grid{grid-template-columns:repeat(8,minmax(110px,1fr));margin:0 0 13px}.client-profile .directory-kpi{padding:9px 10px}.client-profile .directory-kpi b{font-size:15px}
@media(max-width:1250px){.workspace-view-label{display:none}.workspace-zoom-range{width:58px!important}.client-profile .directory-grid{grid-template-columns:repeat(4,1fr)}.client-contact-strip{grid-template-columns:repeat(2,1fr)}.client-contact-item:nth-child(2){border-right:0}}
@media(max-width:900px){.workspace-view-controls{margin-right:2px}.workspace-zoom-range{display:none}.workspace-zoom-value{min-width:34px}.client-profile-top{align-items:flex-start}.client-profile-name{font-size:20px}.client-profile .directory-grid{grid-template-columns:repeat(2,1fr)}.client-contact-strip{grid-template-columns:1fr}.client-contact-item{border-right:0;border-bottom:1px solid #e2eaf3}.client-contact-item:last-child{border-bottom:0}}
@media(max-width:760px){.crm-shell.sidebar-collapsed .crm-sidebar{display:none!important}.workspace-view-controls{position:fixed;right:8px;bottom:8px;z-index:120;background:#123f70;border-color:#ffffff55;box-shadow:0 4px 18px #173a5f45}.client-profile{padding:12px}.client-profile-top{display:block}.client-profile-actions{margin-top:10px;justify-content:space-between}.client-profile-period{flex:1}.client-profile-period select{width:100%}}



