#zhbCrmRoot { color: #26384a; }
.zhb-crm { display: grid; gap: 16px; }
.zhb-crm-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.zhb-crm-summary span { display: flex; gap: 10px; align-items: center; padding: 16px 18px; border: 1px solid #d7e6ed; border-radius: 14px; background: #f1f9fd; font-size: 14px; }
.zhb-crm-summary strong { font-size: 25px; color: #116783; }
.zhb-crm-tabs { display: flex; flex-wrap: wrap; gap: 7px; padding: 5px; border-radius: 14px; background: #edf4f6; }
.zhb-crm-tabs button { flex: 1; min-width: 135px; border: 0; background: transparent; color: #49606f; border-radius: 10px; }
.zhb-crm-tabs button.active { background: #fff; color: #155c70; box-shadow: 0 1px 5px #2233441a; font-weight: 700; }
.zhb-grid { display: grid; grid-template-columns: minmax(290px, 370px) minmax(0, 1fr); gap: 14px; align-items: start; }
.zhb-panel { padding: 20px; border: 1px solid #dce8ed; border-radius: 16px; background: #fff; box-shadow: 0 4px 22px #2135470b; min-width: 0; }
.zhb-panel h3 { margin: 0 0 15px; font-size: 18px; }
.zhb-panel p { margin: 5px 0; color: #667784; }
.zhb-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.zhb-form { display: grid; gap: 11px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.zhb-form label, .zhb-source-form label { display: grid; gap: 5px; min-width: 0; font-size: 13px; font-weight: 650; color: #4b5d6c; }
.zhb-form input, .zhb-form select, .zhb-form textarea, .zhb-source-form input, .zhb-source-form select, #zhbLeadSearch { width: 100%; min-width: 0; background: #fff; }
.zhb-form .zhb-wide, .zhb-form-actions { grid-column: 1 / -1; }
.zhb-form-actions { display: flex; gap: 8px; }
.zhb-hint { color: #71818c; font-size: 12px; line-height: 1.45; margin-top: 12px !important; }
.zhb-table-scroll { width: 100%; overflow-x: auto; }
.zhb-panel table { width: 100%; border-collapse: collapse; font-size: 13px; }
.zhb-panel th, .zhb-panel td { padding: 11px 9px; border-bottom: 1px solid #e6eef1; text-align: left; vertical-align: top; }
.zhb-panel th { color: #60717d; white-space: nowrap; font-size: 12px; }
.zhb-panel td small { display: block; margin-top: 3px; color: #71818c; }
.zhb-empty { text-align: center !important; color: #71818c; padding: 24px !important; }
.zhb-stage-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.zhb-stage-strip span { border: 1px solid #dce8ed; border-radius: 12px; background: #fff; padding: 10px; color: #667784; font-size: 12px; }
.zhb-stage-strip strong { display: block; font-size: 22px; color: #155c70; }
.zhb-stage { white-space: nowrap; display: inline-block; padding: 4px 8px; border-radius: 999px; background: #edf5f8; color: #175e75; }
.zhb-stage-lost { background: #fff0f0; color: #a73a3a; }
.zhb-stage-bought { background: #e7f8ef; color: #157447; }
.zhb-days, .zhb-action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.zhb-action-row { margin: 16px 0; }
.zhb-source-form { border-top: 1px solid #e6eef1; margin-top: 18px; padding-top: 18px; display: grid; grid-template-columns: 2fr 1fr auto; gap: 10px; align-items: end; }
.zhb-error { color: #a0263d; }
@media (max-width: 1100px) { .zhb-grid { grid-template-columns: 1fr; } .zhb-stage-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 650px) { .zhb-crm-summary { grid-template-columns: 1fr; } .zhb-stage-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .zhb-form, .zhb-source-form { grid-template-columns: 1fr; } .zhb-form .zhb-wide, .zhb-form-actions { grid-column: auto; } .zhb-panel { padding: 15px; } }
