/* ConstructNav v0.9.8.1 — collaboration, mobile field hub, calendar invitations, receipts */
.cn-msg-layout{display:grid;grid-template-columns:minmax(240px,300px) minmax(0,1fr);gap:14px;min-height:620px}.cn-msg-sidebar,.cn-msg-main{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}.cn-msg-sidebar-head,.cn-msg-main-head{padding:14px 16px;border-bottom:1px solid var(--line);background:#f7fafc}.cn-msg-sidebar-head h3,.cn-msg-main-head h3{margin:0}.cn-msg-thread-list{padding:8px;display:grid;gap:5px;max-height:560px;overflow:auto}.cn-msg-thread{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:9px;align-items:center;border:0;background:transparent;border-radius:10px;padding:9px;text-align:left;cursor:pointer;color:#15314b}.cn-msg-thread:hover,.cn-msg-thread.active{background:#eaf3fb}.cn-msg-avatar{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:#0e4f7c;color:#fff;font-weight:900}.cn-msg-thread-copy{display:grid;min-width:0}.cn-msg-thread-copy strong,.cn-msg-thread-copy small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cn-msg-thread-copy small{color:var(--muted);font-size:11px}.cn-msg-unread{min-width:22px;height:22px;border-radius:99px;background:#c52828;color:#fff;display:grid;place-items:center;font-size:10px;font-weight:900}.cn-msg-body{height:470px;overflow:auto;padding:18px;background:#f5f8fb;display:flex;flex-direction:column;gap:9px}.cn-msg-bubble{max-width:min(72%,680px);border-radius:13px;padding:10px 12px;background:#fff;border:1px solid #dbe5ed;align-self:flex-start}.cn-msg-bubble.mine{background:#0d4f7a;color:#fff;border-color:#0d4f7a;align-self:flex-end}.cn-msg-bubble small{display:block;margin-top:5px;opacity:.72;font-size:10px}.cn-msg-compose{padding:12px;border-top:1px solid var(--line);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px}.cn-msg-compose textarea{min-height:44px;max-height:140px;resize:vertical}.cn-msg-empty{padding:50px 20px;text-align:center;color:var(--muted)}
.cn-calendar-invite-box{grid-column:1/-1;border:1px solid #cbd9e5;border-radius:10px;padding:12px;background:#f7fafc}.cn-calendar-invite-box>label{display:block;font-weight:800;margin-bottom:8px}.cn-calendar-attendees{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;max-height:170px;overflow:auto}.cn-calendar-attendee{display:flex;align-items:center;gap:8px;padding:7px 8px;background:#fff;border:1px solid #e0e7ed;border-radius:8px}.cn-calendar-attendee input{width:auto}.cn-calendar-invite-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.cn-calendar-delivery-note{font-size:11px;color:var(--muted);margin-top:7px}
.cn-project-assignment{border:1px solid #cbd9e5;border-radius:12px;padding:14px;background:#f8fbfd;margin-bottom:14px}.cn-project-assignment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.cn-project-assignment-grid label{display:flex;align-items:flex-start;gap:9px;background:#fff;border:1px solid #e0e7ed;border-radius:9px;padding:9px}.cn-project-assignment-grid input{width:auto;margin-top:3px}.cn-project-team-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.cn-team-chip{border-radius:999px;background:#eaf3fb;color:#174e75;padding:5px 9px;font-size:11px;font-weight:800}.cn-incident-project-list{display:grid;gap:10px}.cn-incident-project-card{border:1px solid #d7e2eb;border-left:5px solid #c77b14;border-radius:10px;padding:12px;background:#fff}.cn-incident-project-card.closed{border-left-color:#2f7d4c}.cn-incident-project-card h4{margin:0 0 5px}.cn-incident-project-meta{font-size:11px;color:var(--muted);margin-bottom:7px}.cn-incident-alert{display:inline-flex;align-items:center;gap:5px;border-radius:999px;background:#fff1e2;color:#8b4d0a;padding:5px 8px;font-size:10px;font-weight:900;margin-left:5px}
.cn-receipt-scan-box{border:1px dashed #8fb2cf;border-radius:10px;background:#f1f8fd;padding:12px;margin:10px 0}.cn-receipt-scan-box .actions{display:flex;gap:8px;flex-wrap:wrap}.cn-receipt-scan-status{font-size:11px;color:var(--muted);margin-top:7px}.cn-estimate-filter-note{padding:10px 12px;border-radius:9px;background:#f3f7fa;color:#52687a;font-size:12px;margin-bottom:9px}
.cn-mobile-work-context{display:none}.cn-mobile-job-summary{display:none}
@media(max-width:900px){.cn-msg-layout{grid-template-columns:1fr}.cn-msg-sidebar{max-height:330px}.cn-msg-body{height:390px}.cn-calendar-attendees,.cn-project-assignment-grid{grid-template-columns:1fr}}
html.cn-mobile-mode .view:not(#calendar):not(#field):not(#timesheets):not(#receipts):not(#navigatornotes):not(#messenger){display:none!important}
html.cn-mobile-mode .cn-mobile-work-context{display:block;background:#fff;border:1px solid #cbd8e4;border-radius:13px;padding:12px;margin:0 0 12px;box-shadow:0 2px 8px rgba(13,35,55,.06)}
html.cn-mobile-mode .cn-mobile-work-context-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px}html.cn-mobile-mode .cn-mobile-work-context-head strong{font-size:13px}html.cn-mobile-mode .cn-mobile-work-context select{width:100%;min-height:44px;margin-top:7px}html.cn-mobile-mode .cn-mobile-context-label{font-size:11px;color:var(--muted)}
html.cn-mobile-mode .cn-mobile-job-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}html.cn-mobile-mode .cn-mobile-job-summary>div{background:#f3f7fa;border-radius:9px;padding:8px}html.cn-mobile-mode .cn-mobile-job-summary small{display:block;font-size:9px;text-transform:uppercase;font-weight:850;color:#687b8d}html.cn-mobile-mode .cn-mobile-job-summary strong{font-size:12px;color:#173550}
html.cn-mobile-mode .cn-mobile-bottom-nav{display:flex;overflow-x:auto;justify-content:flex-start;scrollbar-width:none}html.cn-mobile-mode .cn-mobile-bottom-nav::-webkit-scrollbar{display:none}html.cn-mobile-mode .cn-mobile-bottom-nav button{flex:0 0 80px}
html.cn-mobile-mode .cn-mobile-meeting{display:none!important}
html.cn-mobile-mode #field>.grid.two{grid-template-columns:1fr}html.cn-mobile-mode #field>.grid.two>.card:nth-child(2){order:2}html.cn-mobile-mode #field #cnFieldTabs{overflow-x:auto;white-space:nowrap}
html.cn-mobile-mode #messenger .cn-msg-layout{display:block}html.cn-mobile-mode #messenger .cn-msg-sidebar{max-height:250px;margin-bottom:10px}html.cn-mobile-mode #messenger .cn-msg-main{min-height:420px}html.cn-mobile-mode #messenger .cn-msg-body{height:300px}html.cn-mobile-mode #messenger .cn-msg-compose{grid-template-columns:1fr}html.cn-mobile-mode #messenger .cn-msg-compose .btn{width:100%}
html.cn-mobile-mode .page-heading{position:sticky;top:62px;z-index:20;background:#f2f5f8;padding:6px 0}
.cn-mobile-context-empty{grid-column:1/-1;color:var(--muted);font-size:12px;padding:4px}
.cn-mobile-form-context{grid-column:1/-1;border:1px solid #c9d9e6;background:#eef6fb;border-radius:10px;padding:9px 10px;margin-bottom:8px;display:grid;gap:2px}.cn-mobile-form-context small{font-size:9px;text-transform:uppercase;letter-spacing:.05em;color:#60798d;font-weight:900}.cn-mobile-form-context strong{font-size:12px;color:#123f60}.cn-mobile-form-context span{font-size:10px;color:var(--muted)}
html.cn-mobile-mode #cnMobileWorkContext{position:sticky;top:68px;z-index:24}
html.cn-mobile-mode #cnMessengerBadge{position:static;margin-left:4px}
@media(max-width:560px){.cn-calendar-invite-meta{grid-template-columns:1fr}.cn-project-assignment-grid{grid-template-columns:1fr}.cn-msg-thread-list{max-height:220px}}

/* v0.9.8.5 messenger readability and employee-only directory */
#messenger .cn-msg-sidebar,#messenger .cn-msg-main{background:#fff!important;color:#102b45!important}
#messenger .cn-msg-sidebar-head,#messenger .cn-msg-main-head{background:#f4f8fb!important;color:#102b45!important}
#messenger .cn-msg-thread-list{background:#fff!important}
#messenger .cn-msg-thread{background:#fff!important;color:#102b45!important;border:1px solid #d5e1ea!important}
#messenger .cn-msg-thread:hover{background:#edf6fc!important;color:#0b3556!important}
#messenger .cn-msg-thread.active{background:#dceffc!important;color:#082f4d!important;border-color:#4383ad!important}
#messenger .cn-msg-thread-copy strong{color:inherit!important;font-weight:850!important}
#messenger .cn-msg-thread-copy small{color:#4c6579!important}
#messenger .cn-msg-main-head .muted,#messenger .cn-msg-sidebar-head .muted{color:#4c6579!important}
#messenger .cn-msg-compose textarea{background:#fff!important;color:#102b45!important;border:2px solid #9bb8cb!important}
#messenger .cn-msg-compose textarea::placeholder{color:#647b8d!important}
html.cn-mobile-mode #messenger .cn-msg-sidebar{max-height:290px!important}
html.cn-mobile-mode #messenger .cn-msg-thread{min-height:58px!important}
