/* Lucas GILL V0.88 — single compact CRM visual language, private and shared. */
.lg-crm-pagination{display:flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:6px;margin:14px auto 24px;padding:12px;color:var(--crm-muted,var(--muted,#50677d));font:600 12px/1.35 Inter,system-ui,sans-serif}
.lg-crm-pagination button{min-width:37px;min-height:36px;padding:7px 11px;border:1px solid var(--crm-border,var(--line,#d0dce7));border-radius:9px;color:var(--crm-text,var(--ink,#18334b));background:var(--crm-surface,var(--surface,#fff));font:inherit;cursor:pointer}
.lg-crm-pagination button:hover:not(:disabled){border-color:#4e9dc9;background:var(--v74-soft,var(--soft,#ebf4fc))}.lg-crm-pagination button.is-current{background:#216e9f;color:#fff;border-color:#216e9f}.lg-crm-pagination button:disabled{opacity:.44;cursor:default}.lg88-page-info{padding:0 12px;color:var(--crm-muted,var(--muted,#50677d))}
.crm-main .crm-record,.share-page .share-record{min-height:45px;padding:6px 9px;margin-bottom:4px;border-radius:9px;box-shadow:none;cursor:pointer;transition:background .13s,border-color .13s}
.crm-main .crm-record:focus-visible,.share-page .share-record:focus-visible{outline:3px solid #73b5dc;outline-offset:1px}
.share-page .share-record{display:grid;grid-template-columns:minmax(170px,1.8fr) minmax(220px,2fr) minmax(100px,.65fr);align-items:center;gap:9px}
.share-page .share-record-head{gap:8px;min-width:0}.share-page .share-avatar,.crm-main .crm-avatar{height:30px;width:30px;min-width:30px;flex-basis:30px;font-size:12px;border-radius:8px}
.share-page .share-record-title strong,.crm-main .crm-company strong{font-size:12px;line-height:1.2}.share-page .share-record-title small,.crm-main .crm-company small{font-size:10px;line-height:1.2}
.share-page .share-record-meta,.crm-main .crm-record-meta{gap:5px 7px;font-size:10px}.share-page .share-status,.crm-main .crm-status{font-size:10px;padding:3px 7px}
.share-page .share-record-expand{display:flex;justify-content:flex-end}.share-page .share-detail-btn{min-height:30px;padding:5px 9px;white-space:nowrap;border:1px solid var(--line);border-radius:7px;background:var(--soft);color:var(--accent);font-weight:700;font-size:11px;cursor:pointer}
.share-page .share-detail-btn:hover{background:#dcecf7}
.share-page .share-list-head{grid-template-columns:minmax(170px,1.8fr) minmax(220px,2fr) minmax(100px,.65fr)}
.share-page .share-board-record,.crm-main .crm-column .crm-record{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-height:88px;padding:8px}
.share-page .share-board-record .share-record-meta,.share-page .share-followups .share-record-meta{padding-left:0}.share-page .share-followups .share-record{grid-template-columns:1fr}
.share-page .share-board-record .share-record-expand{justify-content:start}
.share-cv-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:11px 0 12px}.share-cv-actions a{display:inline-flex;align-items:center;gap:7px;min-height:39px;padding:9px 14px;border:1px solid #7ba7c6;background:#ecf5fc;color:#155c8b;border-radius:9px;font-weight:750;font-size:12px}.share-cv-actions a:hover{background:#ddecf9}
html[data-theme="dark"] .share-cv-actions a{background:#1b425e;color:#f2faff;border-color:#5485a8}
html[data-theme="dark"] .share-page .share-detail-btn{background:#1c4160;border-color:#4c7292;color:#fff}
html[data-theme="dark"] .share-page .share-detail-btn:hover{background:#2b597a}
html[data-theme="dark"] .lg-crm-pagination button{background:#1b3650;color:#eff8ff;border-color:#52718e}html[data-theme="dark"] .lg-crm-pagination button.is-current{background:#2b7cae;color:#fff;border-color:#60aad8}
/* Modal detail on top of both CRMs; no data outside granted scope. */
.lg88-dialog{box-sizing:border-box;width:min(780px,calc(100vw - 24px));max-height:min(92dvh,920px);padding:0;border:1px solid #c4d7e6;border-radius:16px;color:#16334c;background:#fff;box-shadow:0 30px 90px #071a2d50;font:400 13px/1.45 Inter,system-ui,sans-serif;overflow:hidden}
.lg88-dialog::backdrop{background:#061626b3;backdrop-filter:blur(5px)}.lg88-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 22px;background:#112f50;color:#fff}.lg88-dialog-head small{font-size:10px;letter-spacing:.1em;color:#b4d9f1}.lg88-dialog h2{font-size:21px;letter-spacing:-.03em;margin:3px 0}.lg88-close{min-width:37px;min-height:37px;border:1px solid #6284a2;color:#fff;border-radius:9px;background:#234967;font-size:16px;cursor:pointer}.lg88-dialog-body{max-height:65dvh;overflow:auto;padding:18px 22px}.lg88-detail-summary{display:flex;flex-direction:column;gap:3px;padding-bottom:14px;border-bottom:1px solid #d4e2ed}.lg88-detail-summary strong{font-size:20px}.lg88-detail-summary span{color:#4e6980}.lg88-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 13px;margin:16px 0}.lg88-detail-pair{min-width:0;border:1px solid #dce6ef;border-radius:9px;background:#f4f8fb;padding:9px 11px}.lg88-detail-pair dt{font-size:10px;text-transform:uppercase;letter-spacing:.06em;font-weight:700;color:#587189}.lg88-detail-pair dd{font-size:12px;margin:5px 0 0;font-weight:650;white-space:pre-wrap;overflow-wrap:anywhere}.lg88-detail-history{padding-top:10px;border-top:1px solid #d6e4ed}.lg88-detail-history h3{font-size:15px}.lg88-history-line{display:grid;grid-template-columns:110px 1fr;gap:4px 8px;padding:8px;border-bottom:1px solid #e1eaf1}.lg88-history-line time{color:#64819a}.lg88-history-line span{grid-column:2;color:#5a7186}.lg88-dialog-footer{display:flex;justify-content:flex-end;gap:9px;padding:12px 22px;border-top:1px solid #d6e4ed}.lg88-action{padding:9px 15px;border:1px solid #226b9b;background:#216e9f;border-radius:9px;color:#fff;font-weight:700;cursor:pointer}.lg88-action-outline{background:#f2f7fc;color:#1c5a80;border-color:#b7d3e5}
html[data-theme="dark"] .lg88-dialog{background:#12283f;color:#f1f8ff;border-color:#496b87}html[data-theme="dark"] .lg88-dialog-head{background:#173757}html[data-theme="dark"] .lg88-detail-summary{border-color:#486983}html[data-theme="dark"] .lg88-detail-summary span,html[data-theme="dark"] .lg88-history-line time,html[data-theme="dark"] .lg88-history-line span{color:#c5d9ea}html[data-theme="dark"] .lg88-detail-pair{background:#1c3b57;border-color:#496a86}html[data-theme="dark"] .lg88-detail-pair dt{color:#b5d4e9}html[data-theme="dark"] .lg88-detail-history,html[data-theme="dark"] .lg88-history-line,html[data-theme="dark"] .lg88-dialog-footer{border-color:#496a86}html[data-theme="dark"] .lg88-action-outline{background:#274d6b;color:#fff;border-color:#557e9b}
@media(max-width:850px){.share-page .share-record{grid-template-columns:minmax(135px,1fr) minmax(135px,1fr) auto}.share-page .share-list-head{display:none}}
@media(max-width:640px){.share-page .share-record{grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;min-height:55px}.share-page .share-record-head{grid-column:1}.share-page .share-record-meta{grid-column:1;padding-left:38px;gap:4px}.share-page .share-record-expand{grid-column:2;grid-row:1/3;align-items:center;padding:0}.share-page .share-record-expand .share-detail-btn{font-size:10px;padding:6px}.share-page .share-board-record{display:flex}.share-page .share-board-record .share-record-meta{padding-left:0}.share-cv-actions a{flex:1 1 145px;justify-content:center;padding:10px 6px}.lg88-dialog-body{padding:13px}.lg88-dialog-head,.lg88-dialog-footer{padding:12px}.lg88-detail-grid{gap:6px;grid-template-columns:1fr}.lg88-page-info{flex:1 1 100%;text-align:center}.lg-crm-pagination{gap:4px}.lg-crm-pagination button{min-height:39px}.crm-main .crm-record{min-height:55px}}
/* Printable, intentional, readable dossier rather than printing navigation or overlays. */
.lg88-print{display:none}
@media print{
 @page{size:A4 landscape;margin:13mm}
 body:has(.lg88-print) > :not(.lg88-print){display:none!important}
 body:has(.lg88-print){background:#fff!important;color:#152d44!important}
 .lg88-print{display:block!important;font:10px/1.4 Arial,sans-serif;color:#152d44}
 .lg88-print-head{display:flex;align-items:center;gap:14px;padding:11px 14px;background:#143453!important;color:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 .lg88-print-head img{height:43px;width:43px;object-fit:contain;background:#fff;border-radius:8px}.lg88-print-head span{font-size:9px;letter-spacing:.13em}.lg88-print-head h1{font-size:19px;margin:2px 0}.lg88-print-head p{margin:0;font-size:10px}
 .lg88-print-meta{font-size:10px;background:#eef4f8;padding:8px 10px;margin-bottom:9px}
 .lg88-print table{width:100%;border-collapse:collapse;table-layout:fixed}.lg88-print th{background:#226089!important;color:#fff!important;text-align:left;padding:8px 7px;font-size:10px;-webkit-print-color-adjust:exact;print-color-adjust:exact}.lg88-print td{font-size:9px;padding:6px 7px;vertical-align:top;border-bottom:1px solid #d9e4ed;overflow-wrap:anywhere}.lg88-print tr:nth-child(even){background:#f2f7fb!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.lg88-print tr{break-inside:avoid}.lg88-print thead{display:table-header-group}.lg88-print-footer{font-size:9px;color:#60768b;margin-top:15px}
}

/* Logo layer: never hide the brand initials until an actual image has loaded. */
.share-page .share-avatar{position:relative;overflow:hidden;isolation:isolate;background:#e8f3fc;color:#225c88}.share-page .lg88-share-company-logo{display:none;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:3px;background:white}.share-page .share-avatar.has-logo .lg88-share-company-logo{display:block}
html[data-theme="dark"] .share-page .share-avatar{background:#1e4463;color:#f2f9ff}
/* V0.88 final dark-mode reconciliation: older light card declarations must not override dark text. */
html[data-theme="dark"] .crm-main .crm-record,
html[data-theme="dark"] .crm-main .crm-column .crm-record,
html[data-theme="dark"] .share-page .share-record,
html[data-theme="dark"] .share-page .share-board-record,
html[data-theme="dark"] .share-page .share-followups .share-record{
 background:#142a42!important;color:#f2f8ff!important;border-color:#476782!important;
}
html[data-theme="dark"] .crm-main .crm-record:hover,
html[data-theme="dark"] .share-page .share-record:hover{background:#1d3b59!important;border-color:#69a4cc!important}
html[data-theme="dark"] .crm-main .crm-company :is(strong,small),
html[data-theme="dark"] .crm-main .crm-record-meta,
html[data-theme="dark"] .share-page .share-record-title :is(strong,small),
html[data-theme="dark"] .share-page .share-record-meta,
html[data-theme="dark"] .share-page .share-record-meta time{color:#edf6ff!important}
html[data-theme="dark"] .crm-main .crm-record-date,
html[data-theme="dark"] .crm-main .crm-record-contact,
html[data-theme="dark"] .share-page .share-next{color:#c7dced!important}
html[data-theme="dark"] .crm-main .crm-record-actions .crm-btn-small,
html[data-theme="dark"] .crm-main .crm-record-actions .crm-status-select{background:#234764!important;color:#fff!important;border-color:#567e9c!important}
html[data-theme="dark"] .share-page .share-detail-btn{background:#254b69!important;color:#fff!important;border-color:#5b83a0!important}
/* Detail opens as a true right-side drawer rather than replacing the CRM view. */
dialog.lg88-dialog{position:fixed;inset:0 0 0 auto;margin:0;width:min(620px,100vw);height:100dvh;max-height:100dvh;border-radius:17px 0 0 17px;overscroll-behavior:contain}
dialog.lg88-dialog[open]{display:flex;flex-direction:column;animation:lg88-slide-in .18s ease-out both}
.lg88-dialog-body{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain}
.lg88-dialog-head,.lg88-dialog-footer{flex:0 0 auto}
@keyframes lg88-slide-in{from{transform:translateX(22px);opacity:.85}to{transform:translateX(0);opacity:1}}
@media(max-width:640px){dialog.lg88-dialog{border-radius:0;width:100vw;max-width:100vw}dialog.lg88-dialog[open]{animation:none}.lg88-dialog-footer{padding-bottom:calc(12px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){dialog.lg88-dialog[open]{animation:none}}
/* Scope-independent appearance for a drawer appended directly to <body>. */
html[data-theme="dark"] body dialog.lg88-dialog,
body[data-theme="dark"] dialog.lg88-dialog{background-color:#12283f!important;color:#f1f8ff!important;border-color:#496b87!important}
html[data-theme="dark"] body dialog.lg88-dialog .lg88-dialog-body,
body[data-theme="dark"] dialog.lg88-dialog .lg88-dialog-body{background:#12283f!important;color:#f1f8ff!important}
html[data-theme="dark"] body dialog.lg88-dialog .lg88-detail-pair,
body[data-theme="dark"] dialog.lg88-dialog .lg88-detail-pair{background:#1c3b57!important;color:#f3f9ff!important;border-color:#496b87!important}
html[data-theme="dark"] body dialog.lg88-dialog .lg88-detail-summary span,
body[data-theme="dark"] dialog.lg88-dialog .lg88-detail-summary span{color:#c7deee!important}
