/* Explicitly approved customer-service, traffic and supervisor page scopes. */
.crm-ui #pageRoot:is(.customer-service-compact-page,.role-compact-page){row-gap:8px}
.crm-ui #pageRoot:is(.customer-service-compact-page,.role-compact-page) .page-head{margin-bottom:4px;padding-top:0;padding-bottom:0;gap:8px;align-items:center;flex-wrap:wrap}
.crm-ui #pageRoot:is(.customer-service-compact-page,.role-compact-page) .page-head p{margin-top:3px;margin-bottom:0}
.crm-ui #pageRoot:is(.customer-service-compact-page,.role-compact-page) .page-head .head-actions{gap:6px;margin-top:0;align-items:center;flex-wrap:wrap}
.crm-ui #pageRoot:is(.customer-service-compact-page,.role-compact-page) .page-guide{margin-top:0;margin-bottom:4px}
.crm-ui #pageRoot:is(.customer-service-compact-page,.role-compact-page) .page-guide>summary{padding-top:2px;padding-bottom:2px}
.crm-ui #pageRoot:is(.customer-service-compact-page,.role-compact-page) [data-compact-context-note]{margin:6px 0 0;color:var(--muted);font-size:12px}
.crm-ui #pageRoot:is(.customer-service-compact-page,.role-compact-page)>.toolbar,.crm-ui #pageRoot:is(.customer-service-compact-page,.role-compact-page)>.customer-records-page>.toolbar{margin-top:0;margin-bottom:6px;padding-top:4px;padding-bottom:4px;gap:6px}
.crm-ui #pageRoot:is(.customer-service-compact-page,.role-compact-page)>.panel,.crm-ui #pageRoot:is(.customer-service-compact-page,.role-compact-page)>.stats{margin-top:0}
@media(max-width:1100px){.crm-ui #pageRoot:is(.customer-service-compact-page,.role-compact-page) .page-head{align-items:flex-start;gap:6px}.crm-ui #pageRoot:is(.customer-service-compact-page,.role-compact-page) .page-head .head-actions{margin:0;width:auto}.crm-ui #pageRoot:is(.customer-service-compact-page,.role-compact-page) .page-head .head-actions .btn{flex:0 1 auto;min-height:33px}}

/* Whole-page hierarchy: business lists first in emphasis, filters second, explanatory copy quiet. */
.crm-ui #pageRoot:is(.customer-service-compact-page,.role-compact-page)>.panel{box-shadow:none}
.crm-ui #pageRoot:is(.customer-service-compact-page,.role-compact-page) .panel-head{padding-top:10px;padding-bottom:8px;min-height:0}
.crm-ui #pageRoot:is(.customer-service-compact-page,.role-compact-page) .panel-head h2{font-size:18px;font-weight:700;color:var(--text)}
.crm-ui #pageRoot.customer-service-compact-page .table-wrap th{font-size:14px;font-weight:650}
.crm-ui #pageRoot:is(.customer-service-compact-page,.role-compact-page) .table-wrap th{color:#34455e;background:#f3f6fa}
.crm-ui #pageRoot:is(.customer-service-compact-page,.role-compact-page) .panel-guide{margin-top:0;margin-bottom:4px}
.crm-ui #pageRoot:is(.customer-service-compact-page,.role-compact-page) .panel-guide>summary{padding-top:2px;padding-bottom:2px;font-weight:400}
.crm-ui #pageRoot:is(.customer-service-compact-page,.role-compact-page) .notice:not(.warn):not(.danger):not(.error):not(.red):not(.amber):not(.green):not([role="alert"]){background:#f3f5f8;color:#63738b;border-color:#e6ebf1;font-weight:400;padding:7px 10px;line-height:1.55}
.crm-ui #pageRoot:is(.customer-service-compact-page,.role-compact-page)>.customer-role-action-bar{background:transparent;box-shadow:none;border-color:transparent;border-bottom-color:var(--line);border-radius:0;padding:5px 0;margin-top:0;margin-bottom:4px}
.crm-ui #pageRoot:is(.customer-service-compact-page,.role-compact-page)>.old-customer-visit-scope{padding:10px 12px;margin-top:0;margin-bottom:6px;box-shadow:none;border-radius:7px}
.crm-ui #pageRoot:is(.customer-service-compact-page,.role-compact-page) .old-customer-visit-scope-description{margin-top:7px;min-height:0;padding:6px 8px;background:#f4f6fa;color:#63738b;border-radius:5px}
.crm-ui #pageRoot:is(.customer-service-compact-page,.role-compact-page)>.visit-summary-cards{margin-top:6px;margin-bottom:6px}
.crm-ui #pageRoot:is(.customer-service-compact-page,.role-compact-page) .visit-summary-card{padding:10px 12px;border-radius:7px;box-shadow:none}
.crm-ui #pageRoot:is(.customer-service-compact-page,.role-compact-page)>br,.crm-ui #pageRoot:is(.customer-service-compact-page,.role-compact-page)>.customer-records-page>br{display:none}

@media(max-width:700px){
.crm-ui #pageRoot .my-report-history-table{min-width:0;table-layout:fixed}
.crm-ui #pageRoot .my-report-history-table th,.crm-ui #pageRoot .my-report-history-table td{padding-left:6px!important;padding-right:6px!important;overflow-wrap:anywhere}
.crm-ui #pageRoot .my-report-history-table .btn{white-space:normal}
}
