#page-contacts,.crm-dialog{font-family:Inter,system-ui,sans-serif}.crm-toolbar,.crm-filterbar,.crm-actions,.crm-section-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.crm-toolbar{justify-content:flex-end}.crm-filterbar{margin:18px 0}.crm-filterbar>input{flex:1;min-width:180px;max-width:380px}.crm-tabs{display:flex;gap:3px;padding:3px;background:#f0f4f6;border-radius:9px}.crm-tabs button{border:0;background:transparent;font-size:12px}.crm-tabs button.active{background:#fff;box-shadow:0 1px 4px #173d4f18;color:#245f74}.crm-list{border:1px solid var(--line);border-radius:10px;overflow:hidden}.crm-row{display:grid;grid-template-columns:minmax(180px,1.3fr) minmax(150px,1fr) minmax(120px,.8fr) minmax(150px,1fr);width:100%;gap:18px;text-align:left;border:0;border-radius:0;border-bottom:1px solid var(--line);padding:15px 18px;background:#fff;font-weight:400}.crm-row:last-child{border-bottom:0}.crm-row b{font-size:13px;font-weight:600}.crm-row small{margin-top:4px}.crm-row>span{min-width:0;overflow-wrap:anywhere}.crm-person-row{grid-template-columns:1.2fr 1fr 1fr}.crm-dialog{width:min(880px,calc(100vw - 24px));padding:24px;overflow:auto}.crm-dialog.crm-small{width:min(600px,calc(100vw - 24px))}.crm-dialog header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.crm-dialog header h2{margin:0;overflow-wrap:anywhere}.crm-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.crm-grid label{margin:10px 0}.crm-grid input,.crm-grid select{width:100%}.crm-dialog fieldset{border:1px solid var(--line);border-radius:8px;margin:12px 0;padding:10px 14px;min-width:0}.crm-dialog legend{font-size:12px;font-weight:600;padding:0 4px}.crm-choices{display:flex;flex-wrap:wrap;gap:6px 14px;max-height:150px;overflow:auto}.crm-choice{display:flex;flex-direction:row;align-items:center;gap:6px;margin:4px 0!important;font-size:12px}.crm-choice input{width:16px!important;min-height:16px;height:16px}.crm-address,.crm-references{border-top:1px solid var(--line);margin-top:16px;padding-top:14px}.crm-dialog summary{cursor:pointer;font-size:12px;color:#476773}.crm-dialog textarea{width:100%;resize:vertical}.crm-actions{justify-content:flex-end;margin:18px 0 8px}.crm-section-head{justify-content:space-between;margin:20px 0 10px}.crm-section-head h3{font-size:14px;margin:0}.crm-mini-person{display:grid;grid-template-columns:1fr .8fr 1.2fr 1fr;gap:10px;text-align:left;width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px 4px;font-size:12px;font-weight:400;overflow-wrap:anywhere}.crm-mini-person b{font-weight:550}.crm-references pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f6f9fa;padding:12px;border-radius:6px;max-height:220px;overflow:auto;font:11px/1.5 Inter,system-ui,sans-serif}.crm-catalog-row{display:flex;align-items:center;gap:7px;border-bottom:1px solid var(--line);padding:10px 0}.crm-catalog-row>span{flex:1;min-width:0;overflow-wrap:anywhere}.crm-catalog-row button{font-size:11px;padding:6px 8px}.crm-chat-context{border-top:1px solid var(--line);margin-top:18px;padding-top:8px}.crm-task-context{margin:10px 0 6px}#new-contact{display:none!important}
@media(max-width:1000px){.crm-row{grid-template-columns:1.2fr 1fr;gap:10px 16px}.crm-mini-person{grid-template-columns:1fr 1fr}}@media(max-width:600px){.crm-dialog{padding:16px}.crm-grid{grid-template-columns:1fr}.crm-row{padding:14px 12px;grid-template-columns:1fr}.crm-row>span:nth-child(4){display:flex;justify-content:space-between;gap:10px}.crm-mini-person{grid-template-columns:1fr;gap:4px}.crm-filterbar{gap:10px}.crm-filterbar>input{max-width:none;flex-basis:100%}.crm-tabs{width:100%}.crm-tabs button{flex:1}.crm-toolbar{gap:6px}.crm-catalog-row{flex-wrap:wrap}.crm-catalog-row>span{flex-basis:100%}.crm-actions>*{flex:1}.crm-dialog header button{flex-shrink:0}}
