/* Inflow ledger only. Load last after contact styles; no data or consultation layout changes. */
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger{--il-font:"CRM Dashboard Sans",system-ui,sans-serif;--ui-font:var(--il-font);--il-ink:#252a31;--il-muted:#68737f;--il-border:#e5e8ed;--il-blue:#4e6b91;color:var(--il-ink);background:#f7f8fa;font-family:var(--ui-font);font-size:13px;font-weight:400;line-height:1.5;letter-spacing:0;font-variant-numeric:tabular-nums;width:100%;max-width:100%;min-width:0;margin:0}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger :is(*,*::before,*::after){box-sizing:border-box}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger :is(button,input,select,textarea,table,th,strong,b,a,h1,h2,h3){font-family:var(--ui-font);font-size:13px;font-weight:400;letter-spacing:0;line-height:1.5}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger :is(h1,h2,h3,p){margin:0;color:inherit}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger h1.il-title{font-size:24px;font-weight:600;line-height:1.35}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger :is(h2,h3){font-size:16px;font-weight:600}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger :is(small,time,.il-total,.il-range){font-size:12px;font-weight:400;color:var(--il-muted)}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger [hidden]{display:none!important}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger button{min-height:32px;padding:4px 12px;border:1px solid var(--il-border);border-radius:6px;color:var(--il-ink);background:#fff;box-shadow:none;cursor:pointer}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger button:hover:not(:disabled){background:#f7f8fa;border-color:#cbd1d9}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger :is(button,a,input,select,textarea,[tabindex]):focus-visible{outline:2px solid var(--il-blue);outline-offset:2px}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger :is(button,input,select,textarea):disabled{opacity:.5;cursor:not-allowed}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger [aria-disabled="true"]{opacity:.5;cursor:not-allowed}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger :is(input,select){height:32px;min-height:32px;min-width:0;max-width:100%;padding:4px 10px;border:1px solid var(--il-border);border-radius:6px;background:#fff;color:var(--il-ink);box-shadow:none}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-page-head{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap;margin-bottom:16px}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-subtitle{font-size:13px;font-weight:400;color:var(--il-muted)}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-actions{display:flex;align-items:center;gap:8px;margin-left:auto;flex-wrap:wrap}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-actions button{min-height:38px;padding:8px 14px;white-space:nowrap}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-actions :is(.il-primary,.il-new){background:#252a31;border-color:#252a31;color:#fff;font-weight:500}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-actions :is(.il-primary,.il-new):hover:not(:disabled){background:#343b43;border-color:#343b43}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-toolbar{display:flex;align-items:center;gap:12px;min-width:0;padding:12px;margin-bottom:16px;border:1px solid var(--il-border);border-radius:7px;background:#fff}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-search{display:flex;align-items:center;flex:1 1 280px;min-width:0}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-search input{width:100%;height:38px;min-height:38px}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-search input::placeholder{color:var(--il-muted);opacity:1}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-toolbar label:not(.sr-only){display:flex;align-items:center;gap:8px;min-width:0;color:var(--il-muted);white-space:nowrap}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-toolbar select{height:38px;min-height:38px;flex:1 1 auto;min-width:0}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-toolbar> :is(.il-period,.il-source,.il-classification){flex:0 1 180px;min-width:0}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-panel{min-width:0;max-width:100%;border:1px solid var(--il-border);border-radius:7px;background:#fff;box-shadow:none}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-panel-head{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;padding:14px 16px;border-bottom:1px solid var(--il-border)}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-panel-head h2{font-size:16px;font-weight:600}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-panel-head small{margin-left:8px}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-table-wrap{width:100%;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger table.il-table{width:100%;min-width:1050px;table-layout:fixed;border-collapse:collapse;border-spacing:0;font-family:var(--ui-font);background:#fff}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-table :is(th,td){display:table-cell;padding:6px 12px;text-align:left;vertical-align:middle;border:0;border-bottom:1px solid var(--il-border);color:var(--il-ink)}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-table th{height:36px;background:#f7f8fa;color:var(--il-muted);font-size:12px;font-weight:400;white-space:nowrap}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-table td{height:48px;font-size:13px;font-weight:400}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-table :is(th,td):nth-child(1){width:8%}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-table :is(th,td):nth-child(2){width:10%}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-table :is(th,td):nth-child(3){width:12%}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-table :is(th,td):nth-child(4){width:17%}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-table :is(th,td):nth-child(5){width:8%}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-table :is(th,td):nth-child(6){width:11%}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-table :is(th,td):nth-child(7){width:10%}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-row{background:#fff}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-row:hover{background:#f1f4f8;box-shadow:inset 2px 0 var(--il-blue)}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-row.is-selected{background:#edf2f8;box-shadow:inset 2px 0 var(--il-blue)}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-received time{font-size:12px;color:var(--il-muted);white-space:nowrap}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-name-content{display:flex;align-items:center;gap:6px;min-width:0}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger button.il-name{flex:0 1 auto;min-width:0;max-width:100%;min-height:28px;padding:0;border:0;border-radius:2px;background:transparent;font-size:14px;font-weight:500;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger button.il-name:hover:not(:disabled){background:transparent;text-decoration:underline;text-underline-offset:3px}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-new-badge{flex:none;font-size:10px;font-weight:500;line-height:1.4;padding:1px 4px;border-radius:3px;color:var(--il-blue);background:#edf2f8}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger a.il-phone{font-size:14px;font-weight:400;white-space:nowrap;color:var(--il-ink);text-decoration:none}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger a.il-phone:hover{text-decoration:underline}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger td.il-vehicle{display:table-cell}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-vehicle :is(.il-model,.il-vehicle-detail){display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-model{font-size:13px;font-weight:400}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-vehicle-detail{font-size:12px;font-weight:400;color:var(--il-muted)}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-source-text{font-size:13px;color:var(--il-muted)}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-status{font-size:13px;font-weight:400;background:transparent;white-space:nowrap}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-status[data-contact-kind="callback"]{color:#927039}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-status[data-contact-kind="callback"]::before{content:"";display:inline-block;width:6px;height:6px;margin-right:6px;border-radius:50%;background:currentColor;vertical-align:middle}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-next{font-size:13px;font-weight:400;overflow-wrap:normal;white-space:normal}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-row-chevron{opacity:0;color:var(--il-muted)}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-row:is(:hover,:focus-within) .il-row-chevron{opacity:1}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-pagination{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;min-height:56px;padding:10px 16px}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-page-size{display:flex;align-items:center;gap:8px;min-width:0;color:var(--il-muted);font-size:12px}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-page-size select{width:auto;height:32px}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-pagination nav{display:flex;justify-content:center;align-items:center;gap:4px;flex-wrap:wrap}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-pagination button{min-width:32px;min-height:32px;padding:4px 8px}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-pagination [aria-current="page"]{color:var(--il-blue);background:#edf2f8;border-color:#d6dfec}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-range{justify-self:end;white-space:nowrap}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger :is(.il-help,.il-advanced-link){font-size:12px;font-weight:400;color:var(--il-muted)}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-help{margin-top:10px}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-advanced-link{display:inline-block;margin-top:8px;text-underline-offset:3px}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-empty{padding:32px 16px!important;text-align:center!important;color:var(--il-muted)!important}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending):has(.il-ledger):not(:has(#db-detail-drawer:not(.minimized) .db-dual-layout)){--ui-font:"CRM Dashboard Sans",system-ui,sans-serif;font-family:var(--ui-font);background:#f7f8fa}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending):has(.il-ledger):not(:has(#db-detail-drawer:not(.minimized) .db-dual-layout)) :is(button,input,select,textarea,table){font-family:var(--ui-font)}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending):has(.il-ledger):not(:has(#db-detail-drawer:not(.minimized) .db-dual-layout)) .frame>.layout>.main{min-width:0;max-width:100%;padding:24px;background:#f7f8fa}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending):has(.il-ledger):not(:has(#db-detail-drawer:not(.minimized) .db-dual-layout)) #homeDB{min-width:0;max-width:100%;font-family:var(--ui-font)}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending):has(.il-ledger):not(:has(#db-detail-drawer:not(.minimized) .db-dual-layout)) .frame>:is(.top,.layout) :is(.brand,.nav){font-family:var(--ui-font)}
@media(min-width:601px){
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending):has(.il-ledger):not(:has(#db-detail-drawer:not(.minimized) .db-dual-layout)){--brand-sidebar-width:180px}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending):has(.il-ledger):not(:has(#db-detail-drawer:not(.minimized) .db-dual-layout)) .frame>.top{height:56px!important;min-height:56px!important}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending):has(.il-ledger):not(:has(#db-detail-drawer:not(.minimized) .db-dual-layout)) .frame>.top .brand{height:56px;font-size:16px!important;font-weight:600!important;padding:0 16px!important}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending):has(.il-ledger):not(:has(#db-detail-drawer:not(.minimized) .db-dual-layout)) .frame>.layout{margin-top:56px!important;min-height:calc(100dvh - 56px)!important}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending):has(.il-ledger):not(:has(#db-detail-drawer:not(.minimized) .db-dual-layout)) .frame>.layout>nav.nav{inset:56px auto 0 0!important;height:calc(100dvh - 56px)!important}
}
@media(max-width:1100px){
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-toolbar{flex-wrap:wrap}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-search{flex:1 1 100%}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-toolbar> :is(.il-period,.il-source,.il-classification){flex:1 1 160px}
}
@media(max-width:600px){
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending):has(.il-ledger):not(:has(#db-detail-drawer:not(.minimized) .db-dual-layout)) .frame>.layout>.main{width:100%;min-width:0;padding:12px}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-page-head{align-items:flex-start;flex-wrap:wrap}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-actions{margin-left:0;width:100%}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-toolbar{gap:8px;padding:10px;flex-wrap:wrap}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-search{flex:1 1 100%;width:100%}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-toolbar> :is(.il-period,.il-source,.il-classification){flex:1 1 130px;min-width:0}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-toolbar label:not(.sr-only){flex-wrap:wrap;gap:4px}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-toolbar select{width:100%}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-pagination{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:10px}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-pagination nav{grid-row:2;grid-column:1 / -1}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-range{grid-column:2;grid-row:1}
}

/* Compact desktop keeps all seven fields visible before internal mobile panning. */
@media(max-width:1250px){
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger table.il-table{min-width:920px}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-table :is(th,td){padding:6px 8px}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger a.il-phone{font-size:13px}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-received time{white-space:normal}
}

/* Native-cell DOM compatibility: anchors and status span retain cell semantics. */
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger td.il-phone a{font-family:var(--ui-font);font-size:14px;font-weight:400;white-space:nowrap;color:var(--il-ink);text-decoration:none}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger td.il-phone a:hover{text-decoration:underline}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger td.il-status [data-contact-kind="callback"]{color:#927039}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger td.il-status [data-contact-kind="callback"]::before{content:"";display:inline-block;width:6px;height:6px;margin-right:6px;border-radius:50%;background:currentColor;vertical-align:middle}
@media(max-width:1250px){
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger td.il-phone a{font-size:13px}
}

body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:12px;color:var(--il-muted)}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger button.il-advanced-link{margin:0;padding:0;min-height:28px;border:0;background:transparent;color:var(--il-muted);font-size:12px;text-decoration:underline}
@media(min-width:601px){
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-pagination .il-page-size{grid-column:1;grid-row:1}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-pagination nav{grid-column:2;grid-row:1}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-pagination .il-range{grid-column:3;grid-row:1}
}

body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-table th button[data-il-sort]{min-height:24px;padding:0;border:0;border-radius:2px;background:transparent;color:var(--il-muted);font-size:12px;text-align:left}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-footer{justify-content:flex-start}
@media(min-width:601px){
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-pagination .il-range{padding-inline-end:110px}
}

body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger td.il-source-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-table :is(th,td):nth-child(8){width:24%}
body.crm-ui:not(.crm-auth-screen):not(.crm-auth-pending) .il-ledger .il-memo-preview{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--il-muted);font-size:13px;font-weight:400}
