/* Directory uses the shared register typography and row dimensions. */
#leadDirectoryPanel { min-width: 0; }
body.is-leads-view #contextualHeaderTools .ld-toolbar { overflow: visible !important; }
body.is-leads-view #contextualHeaderTools .ld-toolbar > input {
  flex: 1 1 260px !important; width: 260px; min-width: 150px !important; max-width: 340px !important;
}
.ld-toolbar :is(input[type="search"], summary) { box-sizing: border-box; height: 32px; padding: 0 10px; border: 1px solid #dde3e6; border-radius: 4px; background: #fff; color: var(--text); font: 13px var(--font-main); letter-spacing: 0; }
.ld-filter { flex: 0 0 auto; }
.ld-filter > summary { display: flex; align-items: center; gap: 8px; min-width: 108px; cursor: pointer; list-style: none; }
.ld-filter > summary span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-filter > summary::-webkit-details-marker { display: none; }
.ld-filter > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid #607d77; border-bottom: 2px solid #607d77; transform: rotate(45deg) translateY(-2px); }
.ld-filter[open] > summary { border-color: var(--brand-primary); }
.ld-filter-options { position: fixed; z-index: 200; overflow-y: auto; padding: 4px; background: #fff; border: 1px solid #dde3e6; border-radius: 4px; box-shadow: none; }
.ld-filter-options label { display: flex; align-items: center; gap: 8px; min-height: 29px; padding: 3px 6px; color: var(--text); font: 13px var(--font-main); }
.ld-filter-options label:hover { background: var(--brand-hover); }
.ld-filter-options label span { overflow-wrap: anywhere; }
.ld-filter-options input[type="checkbox"] { width: 16px; height: 16px; min-width: 16px; margin: 0; accent-color: var(--brand-primary); }
.ld-total { margin-left: auto; font: 13px var(--font-main); white-space: nowrap; }
.ld-workspace { width: 100%; min-width: 0; overflow-x: auto; overflow-y: hidden; }
.ld-layout { display: grid; grid-template-columns: minmax(280px, 46fr) 8px minmax(360px, 54fr); height: 100%; min-width: 740px; }
.ld-companies, .ld-contacts { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; border: 1px solid #dde3e6; background: #fff; }
.ld-companies { border-right: 0; border-radius: 4px 0 0 4px; }
.ld-contacts { border-left: 0; border-radius: 0 4px 4px 0; }
.ld-table-scroll { flex: 1; min-height: 0; min-width: 0; overflow: auto; scrollbar-width: thin; }
#leadDirectoryPanel .ld-table { table-layout: fixed; border-collapse: collapse; min-width: 100%; max-width: none !important; margin: 0; }
#leadDirectoryPanel .ld-table th { position: sticky; top: 0; z-index: 1; text-align: left; overflow: visible; }
#leadDirectoryPanel .ld-table td { overflow: hidden; text-overflow: ellipsis; }
#leadDirectoryPanel .ld-table tbody tr[data-ld-company] { cursor: pointer; }
#leadDirectoryPanel .ld-table tbody tr:hover td { background: var(--brand-hover) !important; }
#leadDirectoryPanel .ld-table tbody tr.ld-added td { background: #e4f3ec !important; }
#leadDirectoryPanel .ld-table tbody tr[aria-selected="true"] td { background: #dcefea !important; }
#leadDirectoryPanel .ld-table tbody tr.ld-added td:first-child { box-shadow: inset 3px 0 #70aa91 !important; }
.ld-action-column { text-align: center !important; }
#leadDirectoryPanel .ld-add-button { width: auto; min-width: 48px; height: 24px; min-height: 24px; padding: 0 8px; border-radius: 5px; font: 13px var(--font-main); white-space: nowrap; }
#leadDirectoryPanel .ld-add-button:disabled { opacity: .62; cursor: default; }
#leadDirectoryPanel .ld-table [data-ld-contact-field] { display: block; box-sizing: border-box; width: calc(100% + 8px); height: 26px; min-width: 0; margin: -3px -4px; padding: 0 4px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--text); font: 13px var(--font-main); letter-spacing: 0; text-overflow: ellipsis; }
#leadDirectoryPanel .ld-table [data-ld-contact-field]:is(:hover,:focus) { border-color: #b8d7d2; background: #fff; text-overflow: clip; }
#leadDirectoryPanel .ld-table [data-ld-contact-field][readonly] { cursor: default; }
#leadDirectoryPanel .ld-table tr[aria-busy="true"] [data-ld-contact-field] { background: #f7faf9; }
#leadDirectoryPanel .ld-contact-draft td { background: #f7fbfa !important; }
#leadDirectoryPanel .ld-cancel-contact { width: 24px; min-width: 24px; height: 24px; min-height: 24px; padding: 0; border-radius: 5px; font: 18px/1 var(--font-main); }
.ld-cell { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#leadDirectoryPanel .ld-sort { display: flex; align-items: center; gap: 6px; width: 100%; height: 28px; min-height: 0; border: 0; border-radius: 0; padding: 0; background: transparent; color: inherit !important; font: inherit; font-weight: 600 !important; line-height: inherit; letter-spacing: 0; cursor: pointer; }
.ld-sort-direction { flex: 0 0 auto; margin-left: auto; }
.ld-sort-direction:is(.is-asc,.is-desc) { width: 5px; height: 5px; border-left: 1px solid currentColor; border-top: 1px solid currentColor; transform: rotate(45deg); }
.ld-sort-direction.is-desc { transform: rotate(225deg); }
.ld-column-resizer { position: absolute; right: -3px; top: 0; bottom: 0; width: 7px; cursor: col-resize; touch-action: none; z-index: 2; }
.ld-column-resizer:hover, .ld-column-resizer:focus-visible { background: #a7d7cf; }
.ld-divider { cursor: col-resize; position: relative; touch-action: none; background: #fff; border-block: 1px solid #dde3e6; }
.ld-divider::after { content: ""; position: absolute; left: 3px; top: 0; bottom: 0; width: 2px; background: #e0ece9; }
.ld-divider:hover::after, .ld-divider:focus-visible::after { background: var(--brand-primary); }
.ld-company-info { display: flex; align-content: start; flex-direction: column; gap: 3px; padding: 9px 10px; flex: 0 0 auto; min-height: 39px; max-height: 186px; overflow: auto; border-bottom: 1px solid #e6efed; color: var(--text); font: 13px/1.3 var(--font-main); overflow-wrap: anywhere; }
.ld-company-info a { color: #075f5a !important; text-decoration: none; }
.ld-company-info strong, .ld-contact-toolbar strong { font-weight: 600 !important; }
.ld-company-info dl { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 3px 8px; margin: 2px 0 0; }
.ld-company-info dt { color: var(--muted) !important; }
.ld-company-info dd { min-width: 0; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
#leadDirectoryPanel .ld-company-info select[data-ld-rating] { box-sizing: border-box; width: 96px; max-width: 100%; height: 28px; min-height: 28px; padding: 0 26px 0 8px; border: 1px solid transparent; border-radius: 4px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='m3 4.5 3 3 3-3' stroke='%23647773' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 8px center; background-size: 12px 12px; color: var(--text); font: 13px/18px var(--font-main); appearance: none; cursor: pointer; }
#leadDirectoryPanel .ld-company-info select[data-ld-rating]:hover:not(:disabled) { border-color: #d7e8e3; background-color: #f4faf8; }
#leadDirectoryPanel .ld-company-info select[data-ld-rating]:focus-visible { border-color: var(--brand-primary); background-color: #fff; }
#leadDirectoryPanel .ld-company-info select[data-ld-rating]:disabled { color: #929ba2; cursor: default; }
.ld-contact-toolbar { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 6px 10px; font: 13px var(--font-main); }
#leadDirectoryPanel .ld-error button { min-height: 32px; height: 32px; padding: 0 10px; font: 13px var(--font-main); white-space: nowrap; border-radius: 6px; }
#leadDirectoryPanel .ld-new-contact-row td { padding: 4px 8px !important; text-align: left; background: var(--panel) !important; }
#leadDirectoryPanel .ld-new-contact-row .ld-new-contact { width: 32px; min-width: 32px; min-height: 28px; height: 28px; padding: 0; border-radius: 5px; font: 18px/1 var(--font-main); }
.ld-contact-count { font-weight: 400; }
.ld-pager { flex: 0 0 auto; border-top: 1px solid #e6efed; }
.ld-empty { color: var(--muted); }
.ld-error { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; color: #a13232; font: 13px/1.3 var(--font-main); overflow-wrap: anywhere; }
.ld-error span { min-width: 0; }
#leadDirectoryPanel :focus-visible, .ld-toolbar :focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
