/* Keep the prospect workflow independent of the invoice survey layout. */
html.ux480 #root dialog.clp-dialog{width:920px;height:calc(100dvh - 64px);max-height:860px;color:var(--text,#243b43)}
html.ux480 #root dialog.clp-dialog>header{padding:12px 24px}
html.ux480 #root dialog.clp-dialog>header h2{font-size:16px!important}
dialog.clp-dialog .clp-body{padding:20px 24px;scrollbar-gutter:stable}
dialog.clp-dialog .clp-identity{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-bottom:16px;border-bottom:1px solid #dce5e6}
dialog.clp-dialog .clp-identity h3{font-size:17px!important;overflow-wrap:anywhere}
dialog.clp-dialog .clp-identity bdi{font-size:15px;color:#176860;font-weight:600}
dialog.clp-dialog .clp-visit{padding:16px 0;border-bottom:1px solid #dce5e6}
dialog.clp-dialog h3{font-size:14px!important;line-height:1.7}
dialog.clp-dialog .clp-visit dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 24px;margin:12px 0 0}
dialog.clp-dialog .clp-visit dl>div{min-width:0}
dialog.clp-dialog .clp-visit dt{font-size:12px;color:var(--muted,#617178)}
dialog.clp-dialog .clp-visit dd{margin:3px 0 0;font-weight:600;font-size:13px;overflow-wrap:anywhere}
dialog.clp-dialog .clp-history-section{border-bottom:1px solid #dce5e6}
dialog.clp-dialog .clp-history-section>summary{padding:12px 0;cursor:pointer;font-size:13px;font-weight:600;background:none}
dialog.clp-dialog .clp-history-section>summary span{margin-inline-start:8px;color:#176860}
dialog.clp-dialog .clp-history header{display:flex;gap:8px 16px;flex-wrap:wrap;align-items:center;padding:0;margin:0 0 8px;font-size:12px}
dialog.clp-dialog .clp-history time{color:var(--muted,#617178)}
dialog.clp-dialog .clp-history:last-child{border:0}
dialog.clp-dialog .clp-history ul{padding-inline-start:20px}
dialog.clp-dialog .clp-form{margin:0;padding:18px 0 0;max-width:none;width:100%}
dialog.clp-dialog .clp-fields{display:block;max-width:340px}
dialog.clp-dialog .clp-fields label,dialog.clp-dialog .clp-note-field{display:block;text-align:right;font-size:13px;font-weight:600}
dialog.clp-dialog select{min-height:44px;text-align:right}
dialog.clp-dialog .clp-feedback{padding:18px 0 0;margin:0}
dialog.clp-dialog .clp-departments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 0}
dialog.clp-dialog .clp-departments:empty{display:none}
dialog.clp-dialog .clp-departments button{width:100%;min-height:66px;justify-content:space-between;text-align:right;padding:10px 12px;border-color:#cbd9df;border-radius:6px;white-space:normal;gap:8px}
dialog.clp-dialog .clp-departments button>span{min-width:0;overflow-wrap:anywhere}
dialog.clp-dialog .clp-departments strong{display:block;font-size:13px}
dialog.clp-dialog .clp-departments small{display:block;margin-top:2px;font-size:12px;color:inherit;font-weight:400}
dialog.clp-dialog .clp-departments img{flex:none;transition:transform .15s}
dialog.clp-dialog .clp-departments button[aria-expanded=true]{color:#145e55;background:#e8f4ef;border-color:#258878}
dialog.clp-dialog .clp-departments button[aria-expanded=true] img{transform:rotate(-90deg)}
dialog.clp-dialog .clp-groups:empty{display:none}
dialog.clp-dialog .clp-groups .contact-survey-group{padding:16px 0 0;margin:16px 0 0;border:0;border-top:1px solid #dce5e6;border-radius:0;background:none}
dialog.clp-dialog .clp-groups .contact-department-owner{margin:4px 0 8px;text-align:right;max-width:none;font-size:12px}
dialog.clp-dialog .clp-groups .contact-reason-list{width:100%;max-width:none;margin:8px 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px}
dialog.clp-dialog .clp-groups legend{font-size:12px;margin-bottom:4px}
dialog.clp-dialog .contact-reason-row{display:flex;align-items:center;gap:8px;min-height:42px;padding:8px 0;cursor:pointer}
dialog.clp-dialog [data-owner-label]{display:block;padding:8px 0 12px;font-size:12px}
dialog.clp-dialog .clp-note-field{margin-top:18px}
dialog.clp-dialog textarea{min-height:96px;line-height:1.8}
dialog.clp-dialog .clp-footer{flex:none;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 24px;border-top:1px solid #dce5e6;background:var(--surface,#fff)}
dialog.clp-dialog .clp-footer [data-error]{margin:0;min-width:0;font-size:12px;line-height:1.7}
dialog.clp-dialog .clp-footer button{flex:none;min-width:168px;min-height:44px;margin-inline-start:auto}
dialog.clp-dialog .clp-footer button img{filter:brightness(0) invert(1)}
dialog.clp-dialog .clp-footer button:hover:not(:disabled){color:#134c41!important;background:#d9eee6!important;border-color:#8dbdae!important}
dialog.clp-dialog .clp-footer button:hover:not(:disabled) img{filter:none}
dialog.clp-dialog [hidden]{display:none!important}
@media(max-width:720px){
 html.ux480 #root dialog.clp-dialog{width:calc(100% - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}
 html.ux480 #root dialog.clp-dialog>header{padding:10px 16px}
 dialog.clp-dialog .clp-body{padding:16px}
 dialog.clp-dialog .clp-visit dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 dialog.clp-dialog .clp-fields{max-width:none}
 dialog.clp-dialog .clp-departments{grid-template-columns:repeat(2,minmax(0,1fr))}
 dialog.clp-dialog .clp-groups .contact-reason-list{grid-template-columns:minmax(0,1fr)}
 dialog.clp-dialog .clp-footer{padding:10px 16px;flex-wrap:wrap;gap:8px}
 dialog.clp-dialog .clp-footer button{width:100%;min-height:44px}
 dialog.clp-dialog .clp-footer [data-error]:empty{display:none}
}
@media(prefers-reduced-motion:reduce){dialog.clp-dialog .clp-departments img{transition:none}}

html.ux480 #root .clp-list-page .clp-list{width:100%;max-width:none;margin:0;padding:0;background:var(--surface,#fff);color:var(--text,#243b43)}
#root .clp-list *{box-sizing:border-box;letter-spacing:0}
#root .clp-list-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 24px;padding:16px 18px;border-bottom:1px solid #dce5e6}
#root .clp-tabs{display:flex;gap:4px;flex-wrap:wrap;margin:0;padding:0}
html.ux480 #root .clp-list .clp-tabs button{height:40px;min-height:40px;margin:0;padding:8px 14px!important;border:0!important;border-radius:6px!important;background:transparent!important;color:var(--text,#344b52)!important;font:inherit;font-size:13px!important;white-space:normal;cursor:pointer}
html.ux480 #root .clp-list .clp-tabs button[aria-selected=true]{background:#e4f3ed!important;color:#12604f!important;font-weight:600!important}
html.ux480 #root .clp-list .clp-tabs button:hover{background:#f0f6f3!important}
#root .clp-list-stats{display:flex;gap:18px;flex-wrap:wrap;font-size:12px;color:var(--muted,#657781)}
#root .clp-list-stats span{display:flex;align-items:center;gap:6px}
#root .clp-list-stats b{font-size:17px;font-variant-numeric:tabular-nums;color:var(--text,#29444a)}
#root .clp-list-stats span:first-child b{color:#956414}
#root .clp-list-stats span:last-child b{color:#176f58}
html.ux480 #root .clp-list .clp-search{display:flex;align-items:center;gap:8px;width:100%;margin:0;padding:14px 18px;max-width:none}
#root .clp-query{display:flex;align-items:center;gap:8px;width:520px;max-width:100%;min-width:0}
html.ux480 #root .clp-list .clp-query input{flex:1;min-width:0;width:100%;height:42px;margin:0;padding:8px 12px;border:1px solid #cbd9df;border-radius:6px;font:inherit;font-size:13px!important;background:var(--surface,#fff);color:inherit}
html.ux480 #root .clp-list .clp-search button{display:grid;place-items:center;flex:none;width:42px;height:42px;min-width:42px;min-height:42px;padding:0!important;margin:0;border:1px solid #cadbd9;border-radius:6px;cursor:pointer;background:var(--surface,#fff);color:#26594f}
html.ux480 #root .clp-list .clp-search .clp-search-button{background:#126c70;border-color:#126c70}
#root .clp-search-button img{filter:brightness(0) invert(1)}
html.ux480 #root .clp-list .clp-search button:hover{background:#dcefe8;border-color:#83b2a4;color:#194c3f}
#root .clp-search-button:hover img{filter:none}
#root .clp-list button:focus-visible,#root .clp-list input:focus-visible,#root .clp-list tr:focus-visible{outline:2px solid #08796c;outline-offset:2px}
#root .clp-list .clp-table-wrap{width:100%;overflow:auto;padding:0 18px}
html.ux480 #root .clp-list table.clp-table{width:100%;border-collapse:collapse;table-layout:fixed;background:transparent;margin:0;font-size:13px}
html.ux480 #root .clp-list .clp-table th{background:#f4f7f8;color:#597078;text-align:right;padding:10px 12px;font-size:12px;font-weight:500;border-block:1px solid #dce5e6}
#root .clp-table th:nth-child(1){width:26%}
#root .clp-table th:nth-child(2){width:15%}
#root .clp-table th:nth-child(3){width:19%}
#root .clp-table th:nth-child(5){width:116px}
html.ux480 #root .clp-list .clp-table td{padding:10px 12px;border-bottom:1px solid #e1e9eb;text-align:right;vertical-align:middle;overflow-wrap:anywhere;line-height:1.7}
#root .clp-table tr[data-id]{cursor:pointer}
#root .clp-table tr[data-id]:hover{background:#f4faf7}
#root .clp-table .clp-person b{font-size:14px;font-weight:600}
#root .clp-table small{display:block;font-size:12px;margin-top:3px;color:var(--muted,#677b83)}
#root .clp-table .clp-date{font-size:12px;color:var(--muted,#677b83)}
#root .clp-table .clp-reason p{margin:0 0 3px;font-size:12px}
#root .clp-status{display:inline-block;font-size:12px;line-height:1.8;padding:3px 8px;border-radius:4px;background:#f0f3f5;color:#536570}
#root .clp-status[data-outcome=pending],#root .clp-status[data-outcome=started]{background:#fff5dc;color:#865b14}
#root .clp-status[data-outcome=answered]{background:#e8f4ed;color:#266343}
#root .clp-status[data-outcome=wrong_number]{background:#fceeed;color:#9b413c}
html.ux480 #root .clp-list .clp-table .clp-action-cell{text-align:center}
html.ux480 #root .clp-list .clp-row-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:6px 10px;border:1px solid #b9d4cc;border-radius:6px;background:#f5fbf8;color:#1c6555;cursor:pointer;white-space:nowrap;font:inherit;font-size:12px!important}
#root .clp-row-actions img{width:16px;height:16px}
html.ux480 #root .clp-list .clp-row-actions button:hover{background:#dcefe8;color:#154d40}
#root .clp-list .clp-pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:12px 18px;font-size:12px;flex-wrap:wrap}
#root .clp-pager>span{margin-inline-end:auto;color:var(--muted,#677b83)}
html.ux480 #root .clp-list .clp-pager button{min-height:36px;padding:6px 12px;border:1px solid #cbd9df;border-radius:6px;background:var(--surface,#fff);color:inherit;font:inherit;cursor:pointer}
#root .clp-pager button:disabled{opacity:.4;cursor:default}
@media(max-width:720px){
 #root .clp-list-heading{padding:12px;gap:12px;flex-direction:row!important}
 #root .clp-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:2px;order:0!important}
 html.ux480 #root .clp-list .clp-tabs button{height:auto;min-height:48px;font-size:11px!important;padding:6px!important}
 #root .clp-list-stats{gap:10px 16px;font-size:11px;order:1!important}
 html.ux480 #root .clp-list .clp-search{padding:12px}
 #root .clp-query{width:100%}
 #root .clp-list .clp-table-wrap{padding:0 12px;overflow:visible}
 html.ux480 #root .clp-list .clp-table,html.ux480 #root .clp-list .clp-table tbody{display:block}
 #root .clp-table thead{display:none}
 #root .clp-table tr[data-id]{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:8px;padding:12px 0;border-bottom:1px solid #dce5e6}
 html.ux480 #root .clp-list .clp-table td{display:block;padding:0!important;border:0;font-size:12px}
 #root .clp-table .clp-person{grid-column:1;grid-row:1}
 #root .clp-table .clp-action-cell{grid-column:2;grid-row:1;align-self:center}
 #root .clp-table .clp-date{grid-column:1;grid-row:2}
 #root .clp-table .clp-date:before{content:attr(data-label) ': ';color:#78878e}
 #root .clp-table .clp-state{grid-column:2;grid-row:2}
 #root .clp-table .clp-reason{grid-column:1/-1;grid-row:3}
 #root .clp-table .clp-reason:before{content:attr(data-label) ': ';color:#78878e;font-size:12px}
 #root .clp-list .clp-pager{padding:12px}
}
