.lfcrm-app{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#172033;background:#f5f7fb;padding:20px;border-radius:18px}.lfcrm-app *{box-sizing:border-box}.lfcrm-nav{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:18px;padding:8px;background:#fff;border:1px solid #e4e8ef;border-radius:12px;box-shadow:0 2px 10px rgba(15,23,42,.03)}.lfcrm-brand{font-weight:900;padding:8px 12px;color:#172033;margin-right:4px}.lfcrm-brand span{color:#2563eb}.lfcrm-nav a{padding:9px 11px;border-radius:8px;text-decoration:none;color:#334155;font-weight:700;font-size:13px}.lfcrm-nav a:hover{background:#eef4ff;color:#2563eb}.lfcrm-nav .nav-user{margin-left:auto;color:#687386;font-size:12px}.lfcrm-nav .logout{color:#b91c1c}.nav-notify{background:#fff7e6!important;color:#a16207!important}.lfcrm-header,.section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.lfcrm-kicker{font-size:11px;letter-spacing:.12em;font-weight:800;color:#2563eb}.lfcrm-header h1,.section-head h2,.section-head h3{margin:3px 0 5px;color:#111827}.lfcrm-header p,.muted{color:#687386}.quick-actions{display:flex;gap:8px;flex-wrap:wrap}.lfcrm-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:18px 0}.lfcrm-cards>div,.lfcrm-panel,.lfcrm-import{background:#fff;border:1px solid #e4e8ef;border-radius:14px;padding:18px;box-shadow:0 4px 18px rgba(15,23,42,.04)}.lfcrm-cards b{display:block;font-size:28px;color:#111827}.lfcrm-cards span{color:#687386;font-size:13px}.lfcrm-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.lfcrm-toolbar input,.lfcrm-toolbar select,.lfcrm-app input,.lfcrm-app select,.lfcrm-app textarea{border:1px solid #d5dce6;background:#fff;color:#172033;border-radius:9px;padding:10px 12px;min-height:42px}.lfcrm-btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:9px;padding:10px 14px;background:#2563eb;color:#fff;text-decoration:none;cursor:pointer;font-weight:700}.lfcrm-btn:hover{color:#fff;filter:brightness(.96)}.lfcrm-btn.secondary{background:#fff;color:#263246;border:1px solid #d5dce6}.lfcrm-btn.whatsapp{background:#16a34a}.lfcrm-btn.danger{background:#dc2626}.lfcrm-btn.small{padding:7px 9px;font-size:12px}.lfcrm-table-wrap{overflow:auto;background:#fff;border:1px solid #e4e8ef;border-radius:14px}.lfcrm-table{width:100%;border-collapse:collapse;min-width:1100px}.lfcrm-table th,.lfcrm-table td{padding:12px;border-bottom:1px solid #edf0f4;text-align:left;vertical-align:top}.lfcrm-table th{background:#f9fafb;color:#596579;font-size:11px;text-transform:uppercase}.lfcrm-table td{font-size:13px}.lfcrm-table td small{display:block;color:#758095;margin-top:4px}.lfcrm-table .empty{text-align:center;padding:40px}.phone{font-weight:700;color:#2563eb;text-decoration:none}.lfcrm-badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:#eef2ff;color:#334155;font-size:11px;font-weight:800}.status-converted{background:#e9f9ef;color:#15803d}.status-lost,.status-wrong-number{background:#fff0f0;color:#b91c1c}.status-follow-up,.status-demo-scheduled{background:#fff7e6;color:#a16207}.actions{white-space:nowrap}.bulk-bar{display:flex;gap:12px;align-items:center;margin:10px 0}.lfcrm-overlay{position:fixed;inset:0;background:rgba(15,23,42,.35);z-index:9999;display:flex;align-items:center;justify-content:center;padding:20px}.lfcrm-modal{background:#fff;border-radius:18px;width:min(1100px,100%);max-height:92vh;overflow:auto;padding:24px}.detail-head{display:flex;justify-content:space-between;border-bottom:1px solid #e7ebf0;padding-bottom:14px;margin-bottom:18px}.detail-head h2{margin:5px 0}.close{font-size:28px;text-decoration:none;color:#667085}.detail-grid,.form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.detail-grid>div{background:#f8fafc;border:1px solid #e8ecf2;border-radius:10px;padding:12px}.detail-grid label{display:block;font-size:11px;font-weight:800;color:#718096;margin-bottom:6px;text-transform:uppercase}.form-grid label{font-size:12px;font-weight:700;color:#4b5563}.form-grid input,.form-grid textarea,.form-grid select{display:block;width:100%;margin-top:6px}.form-grid textarea{min-height:90px}.lfcrm-form{margin-top:18px;padding-top:18px;border-top:1px solid #e8ecf2}.lfcrm-action-row{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.inline-form{display:flex;gap:6px}.lfcrm-call-panel{background:#f8fafc;border:1px solid #e4e8ef;border-radius:14px;padding:18px}.call-form{display:grid;grid-template-columns:1fr 1fr 1fr;gap:9px}.call-form textarea{grid-column:1/-1;min-height:90px}.lfcrm-history-grid,.profile-grid,.lfcrm-report-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.management-grid{display:flex;flex-direction:column;gap:18px;margin-top:18px;width:100%;min-width:0}.management-grid>.lfcrm-panel{width:100%;min-width:0}.management-grid .lfcrm-table-wrap{max-width:100%;}.history-item{padding:12px 0;border-bottom:1px solid #e8ecf2}.history-item small{display:block;color:#718096;margin-top:4px}.report-row,.contact-row,.notification-row{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #edf0f4}.contact-row small{display:block;color:#7a8495}.contact-actions{display:flex;gap:5px;flex-wrap:wrap}.lfcrm-notice{background:#fff;border:1px solid #e4e8ef;padding:16px;border-radius:12px}.lfcrm-notice.error{border-color:#fecaca;color:#991b1b;background:#fff7f7}.lfcrm-login{max-width:430px;margin:50px auto;background:#fff;border:1px solid #e4e8ef;border-radius:16px;padding:28px}.lfcrm-login input[type=text],.lfcrm-login input[type=password]{width:100%}.attendance-mini,.attendance-status{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.attendance-mini{padding:12px;background:#f8fafc;border-radius:10px}.attendance-metrics{display:flex;gap:12px;margin-top:20px}.attendance-metrics>div{background:#f8fafc;border-radius:10px;padding:15px;min-width:150px}.attendance-metrics b{font-size:24px;display:block}.checks{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px}.mini-list>div{padding:10px 0;border-bottom:1px solid #edf0f4}.mini-list small{display:block;color:#718096;margin-top:3px}.lfcrm-chat-layout{display:grid;grid-template-columns:280px 1fr;gap:16px}.lfcrm-user-list{display:flex;flex-direction:column;gap:5px}.chat-user{display:flex;justify-content:space-between;padding:11px 12px;border-radius:9px;text-decoration:none;color:#334155;background:#f8fafc}.chat-user:hover,.chat-user.active{background:#eef4ff;color:#1d4ed8}.chat-user b{background:#2563eb;color:#fff;border-radius:999px;padding:2px 7px;font-size:11px}.lfcrm-chat-messages{height:430px;overflow:auto;background:#f8fafc;border:1px solid #e4e8ef;border-radius:12px;padding:15px;display:flex;flex-direction:column;gap:9px;margin:14px 0}.chat-bubble{max-width:78%;padding:10px 12px;border-radius:12px;line-height:1.45}.chat-bubble.mine{align-self:flex-end;background:#2563eb;color:#fff}.chat-bubble.theirs{align-self:flex-start;background:#fff;border:1px solid #e1e6ed;color:#263246}.chat-bubble small{display:block;margin-top:5px;opacity:.7;font-size:10px}.chat-file{display:block;margin-top:8px;color:inherit;text-decoration:underline}.lfcrm-chat-send textarea{width:100%;min-height:70px}.chat-compose{display:flex;justify-content:space-between;align-items:center;margin-top:8px}.file-btn{display:inline-flex;align-items:center;padding:9px 12px;border:1px solid #d5dce6;border-radius:9px;background:#fff;cursor:pointer}.file-btn input{display:none!important}.lfcrm-toast{position:fixed;right:20px;top:20px;z-index:10050;max-width:360px;background:#fff;border:1px solid #dbe2ea;box-shadow:0 10px 30px rgba(15,23,42,.14);padding:14px 16px;border-radius:12px;transform:translateY(-20px);opacity:0;transition:.2s}.lfcrm-toast.show{transform:translateY(0);opacity:1}.lfcrm-toast.error{border-color:#fecaca;color:#991b1b}.import-form{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end}.import-note{margin-top:15px;color:#687386}.lfcrm-pagination{margin:18px 0}.lfcrm-pagination ul{display:flex;gap:6px;list-style:none;padding:0}.lfcrm-pagination a,.lfcrm-pagination span{display:block;padding:8px 11px;background:#fff;border:1px solid #e4e8ef;border-radius:8px;text-decoration:none}
@media(max-width:900px){.lfcrm-cards{grid-template-columns:repeat(2,1fr)}.detail-grid,.form-grid,.lfcrm-report-grid,.lfcrm-history-grid{grid-template-columns:1fr 1fr}.import-form{grid-template-columns:1fr 1fr}.lfcrm-nav .nav-user{display:none}}
@media(max-width:640px){.lfcrm-app{padding:12px}.lfcrm-nav{overflow:auto;flex-wrap:nowrap}.lfcrm-nav a{white-space:nowrap}.lfcrm-header,.section-head{align-items:stretch;flex-direction:column}.lfcrm-cards,.detail-grid,.form-grid,.lfcrm-report-grid,.lfcrm-history-grid,.profile-grid,.import-form{grid-template-columns:1fr}.lfcrm-toolbar>*{width:100%}.lfcrm-toolbar input,.lfcrm-toolbar select{width:100%}.lfcrm-modal{padding:15px}.lfcrm-action-row .lfcrm-btn{flex:1}.lfcrm-chat-layout{grid-template-columns:1fr}.lfcrm-chat-messages{height:360px}.chat-bubble{max-width:90%}.contact-row{flex-direction:column}.quick-actions .lfcrm-btn{flex:1}}
/* v2.3.1 UI refinement */
.lfcrm-quickbar{position:sticky;top:8px;z-index:1000;display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#fff;border:1px solid #dfe6ef;border-radius:12px;padding:7px 10px;margin:0 0 10px;box-shadow:0 5px 20px rgba(15,23,42,.08)}
.quick-user{font-size:12px;color:#526174;margin-right:4px}.quick-status{font-size:11px;color:#64748b}.lfcrm-btn.success{background:#16a34a}.lfcrm-back-btn{border:1px solid #d5dce6;background:#fff;color:#334155;border-radius:8px;padding:8px 10px;cursor:pointer;font-weight:700}.lfcrm-nav{position:sticky;top:0;z-index:11000}
.lfcrm-app{max-width:1600px;margin:0 auto}.lfcrm-panel,.lfcrm-cards>div,.lfcrm-import{box-shadow:0 6px 24px rgba(15,23,42,.05)}
.lfcrm-admin-shell{max-width:1500px}.lfcrm-admin-hero{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(135deg,#ffffff,#f3f7ff);border:1px solid #e1e7f0;border-radius:18px;padding:24px;margin:12px 0 18px;box-shadow:0 8px 28px rgba(15,23,42,.05)}.lfcrm-admin-hero span{font-size:11px;font-weight:800;letter-spacing:.12em;color:#2563eb}.lfcrm-admin-hero h1{margin:5px 0;color:#111827}.lfcrm-admin-hero p{margin:0;color:#64748b}.wrap .lfcrm-panel{margin-bottom:18px}
.lfcrm-field-evidence{display:grid;grid-template-columns:1fr 1fr;gap:18px}.lfcrm-field-evidence img{width:100%;max-height:280px;object-fit:cover;border-radius:12px;border:1px solid #e1e7ef}.lfcrm-sticky-mobile{position:sticky;bottom:8px;z-index:1001}
@media(max-width:640px){.lfcrm-quickbar{top:0;border-radius:10px;padding:6px}.lfcrm-quickbar .lfcrm-btn{flex:0 0 auto}.quick-user{width:100%}.lfcrm-nav{top:0}.lfcrm-nav .lfcrm-back-btn{display:none}.lfcrm-field-evidence{grid-template-columns:1fr}.lfcrm-table-wrap{border-radius:10px}.lfcrm-app{border-radius:0}}
/* v2.4 attendance, dashboard and responsive refinements */
.lfcrm-module-cards>a{display:block;background:#fff;border:1px solid #e4e8ef;border-radius:14px;padding:18px;text-decoration:none;color:#172033;box-shadow:0 4px 18px rgba(15,23,42,.04);transition:.18s}.lfcrm-module-cards>a:hover{transform:translateY(-2px);border-color:#bfd1f8;box-shadow:0 8px 24px rgba(37,99,235,.08)}.lfcrm-module-cards>a b{display:block;font-size:18px;margin-bottom:5px}.lfcrm-module-cards>a span{font-size:12px;color:#687386}.attendance-summary{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0}.attendance-summary>div{background:#f8fafc;border:1px solid #e7ebf1;border-radius:10px;padding:12px 16px;min-width:120px}.attendance-summary b{display:block;font-size:20px}.attendance-summary span{font-size:11px;color:#687386}.status-pill{display:inline-flex;padding:5px 9px;border-radius:999px;background:#eef2ff;color:#334155;font-size:11px;font-weight:800}.lfcrm-admin-card{background:#fff;border:1px solid #e1e7ef;border-radius:16px;padding:20px;margin:0 0 18px;box-shadow:0 6px 24px rgba(15,23,42,.05)}.lfcrm-admin-card h2{margin-top:0}.lead-assign-card{background:#f8fafc;border:1px solid #e4e8ef;border-radius:14px;padding:18px;margin-top:18px}
@media(max-width:640px){.lfcrm-module-cards{grid-template-columns:1fr}.attendance-summary>div{flex:1;min-width:100px}.lfcrm-admin-hero{padding:18px}.lfcrm-quickbar{box-shadow:0 4px 15px rgba(15,23,42,.1)}}

/* v2.4.1 MYR CRM premium compact light-green theme */
:root{--myr-green:#39a96b;--myr-green-dark:#238b57;--myr-green-soft:#eaf8f0;--myr-bg:#f4f8f6;--myr-text:#17221d;--myr-muted:#6b7a72;--myr-border:#dfe9e3}
body{background:#f3f7f5}
.lfcrm-app{background:var(--myr-bg);color:var(--myr-text);padding:16px;border-radius:16px;font-size:14px}
.lfcrm-app h1{font-size:25px!important;line-height:1.2!important;font-weight:750!important;letter-spacing:-.02em}
.lfcrm-app h2{font-size:20px!important;line-height:1.25!important}
.lfcrm-app h3{font-size:16px!important}
.lfcrm-kicker{font-size:10px!important;color:var(--myr-green-dark)!important}
.lfcrm-nav{background:#fff;border-color:var(--myr-border);box-shadow:0 3px 12px rgba(31,72,52,.05);padding:6px}
.lfcrm-brand{font-size:15px;color:var(--myr-green-dark)!important;font-weight:850}
.lfcrm-nav a{font-size:12px;padding:8px 10px}
.lfcrm-nav a:hover{background:var(--myr-green-soft);color:var(--myr-green-dark)}
.lfcrm-btn{background:var(--myr-green);border-radius:8px;padding:9px 13px;font-size:13px;box-shadow:0 2px 7px rgba(35,139,87,.15)}
.lfcrm-btn:hover{background:var(--myr-green-dark)}
.lfcrm-btn.secondary,.lfcrm-back-btn{border-color:var(--myr-border);background:#fff;color:#34423a}
.lfcrm-btn.whatsapp{background:#20a65a}
.lfcrm-btn.danger{background:#dc4b4b}
.lfcrm-cards{gap:10px;margin:14px 0}
.lfcrm-cards>div{padding:14px;border-color:var(--myr-border);border-radius:12px}
.lfcrm-cards b{font-size:22px}
.lfcrm-cards span{font-size:12px}
.lfcrm-module-cards{gap:10px!important}
.lfcrm-module-cards>a{padding:14px;border-color:var(--myr-border);border-radius:12px}
.lfcrm-module-cards>a b{font-size:15px}
.lfcrm-module-cards>a:hover{border-color:#a9d9bd;background:#fbfffc}
.lfcrm-panel,.lfcrm-import,.lfcrm-table-wrap,.lfcrm-admin-card{border-color:var(--myr-border);box-shadow:0 4px 16px rgba(31,72,52,.045)}
.lfcrm-table th{background:#f7faf8;color:#65756d}
.lfcrm-app input,.lfcrm-app select,.lfcrm-app textarea{border-color:#d5e1da;border-radius:8px;font-size:13px}
.lfcrm-quickbar{border-color:#cfe3d7;background:rgba(255,255,255,.98)}
.lfcrm-quickbar .lfcrm-btn.success{background:var(--myr-green)}
.lfcrm-header p,.muted{font-size:13px}
.lfcrm-login{max-width:430px!important;margin:6vh auto!important;padding:30px!important;background:#fff!important;border:1px solid var(--myr-border)!important;border-radius:18px!important;box-shadow:0 12px 36px rgba(31,72,52,.08)!important}
.lfcrm-login .lfcrm-brand-mark{font-size:18px;font-weight:850;letter-spacing:.08em;color:var(--myr-green-dark);margin-bottom:22px}
.lfcrm-login h2{font-size:24px!important;margin:0 0 7px!important;color:#17221d}
.lfcrm-login .login-username label,.lfcrm-login .login-password label{font-size:13px;font-weight:650;color:#33443a}
.lfcrm-login input[type=text],.lfcrm-login input[type=password]{width:100%;min-height:44px;border:1px solid #d4e1d9;border-radius:9px;padding:9px 11px}
.lfcrm-login input[type=submit]{background:var(--myr-green);border:0;border-radius:8px;color:#fff;padding:10px 17px;font-weight:750;cursor:pointer}
.lfcrm-login input[type=submit]:hover{background:var(--myr-green-dark)}
.lfcrm-admin-shell{font-size:13px}
.lfcrm-admin-hero{background:linear-gradient(135deg,#fff,#eef9f2);border-color:#d6e9dc;border-radius:14px;padding:18px}
.lfcrm-admin-hero span{color:var(--myr-green-dark)}
.lfcrm-admin-hero h1{font-size:23px;margin:3px 0}
.lfcrm-admin-card{padding:16px;border-radius:13px}
.lfcrm-admin-card h2{font-size:17px}
.lfcrm-admin-shell .button-primary,.lfcrm-admin-shell .lfcrm-btn{background:var(--myr-green);border-color:var(--myr-green)}
.lfcrm-admin-shell .button-primary:hover{background:var(--myr-green-dark);border-color:var(--myr-green-dark)}
.lfcrm-admin-shell table.widefat th{font-size:11px;color:#617067}
.lfcrm-admin-shell table.widefat td{font-size:13px}
@media(max-width:640px){
 .lfcrm-app{padding:9px}
 .lfcrm-header h1{font-size:21px!important}
 .lfcrm-login{margin:4vh 8px!important;padding:22px!important}
 .lfcrm-cards{grid-template-columns:repeat(2,1fr)!important}
 .lfcrm-cards>div{padding:11px}
 .lfcrm-cards b{font-size:20px}
 .lfcrm-quickbar{overflow-x:auto;flex-wrap:nowrap}
 .lfcrm-quickbar .quick-user{display:none}
}

/* v2.4.2 team schedule UI */
.team-schedule{border:1px solid #dfe9e3;border-radius:12px;background:#fbfefc;margin:10px 0;overflow:hidden}.team-schedule summary{cursor:pointer;display:flex;justify-content:space-between;gap:12px;padding:13px 15px;list-style:none}.team-schedule summary::-webkit-details-marker{display:none}.team-schedule summary span{color:#6b7a72;font-size:12px}.team-schedule-form{padding:15px;border-top:1px solid #e4eee8}

/* v2.4.3 premium wide-screen UI and semantic status palette */
:root{--myr-primary:#2563eb;--myr-primary-dark:#1d4ed8;--myr-green:#16a34a;--myr-green-dark:#15803d;--myr-red:#dc2626;--myr-amber:#d97706;--myr-purple:#7c3aed;--myr-cyan:#0891b2;--myr-border:#dfe7e2;--myr-surface:#ffffff;--myr-bg:#f3f8f5}
body{background:#f3f8f5}
.lfcrm-app{max-width:1840px;width:calc(100% - 28px);margin:0 auto;background:linear-gradient(180deg,#f7fbf8 0%,#f1f7f4 100%);padding:18px 22px;border:1px solid #e0ebe4}
.lfcrm-nav{border-color:#dfe7e2;box-shadow:0 3px 14px rgba(31,72,52,.055);padding:7px 9px}
.lfcrm-brand{color:#172033;font-size:15px}.lfcrm-brand span{color:var(--myr-primary)}
.lfcrm-brand-role-hidden{display:none}
.lfcrm-nav a:hover{background:#eef5ff;color:var(--myr-primary)}
.lfcrm-kicker{color:var(--myr-primary)}
.lfcrm-header h1,.section-head h2,.section-head h3{font-size:22px;line-height:1.2}
.lfcrm-header p,.muted{font-size:13px}
.lfcrm-cards{grid-template-columns:repeat(5,minmax(150px,1fr));gap:12px;margin:14px 0}
.lfcrm-cards>div,.lfcrm-panel,.lfcrm-import{padding:15px;border-radius:12px;box-shadow:0 3px 14px rgba(31,72,52,.045);border-color:var(--myr-border)}
.lfcrm-cards b{font-size:24px}.lfcrm-cards span{font-size:12px}
.lfcrm-btn{background:var(--myr-primary);border-radius:8px;padding:9px 13px;font-size:13px;box-shadow:0 2px 7px rgba(37,99,235,.14)}
.lfcrm-btn:hover{background:var(--myr-primary-dark);filter:none}.lfcrm-btn.secondary,.lfcrm-back-btn{border-color:#d7e0da;background:#fff;color:#34423a}.lfcrm-btn.secondary:hover,.lfcrm-back-btn:hover{background:#f7faf8;color:#172033}
.lfcrm-btn.whatsapp{background:#16a34a}.lfcrm-btn.whatsapp:hover{background:#15803d}.lfcrm-btn.danger{background:#dc2626}.lfcrm-btn.danger:hover{background:#b91c1c}.lfcrm-btn.success{background:#16a34a}.lfcrm-btn.success:hover{background:#15803d}.lfcrm-btn.warning{background:#d97706}.lfcrm-btn.warning:hover{background:#b45309}.lfcrm-btn.info{background:#0891b2}.lfcrm-btn.info:hover{background:#0e7490}.lfcrm-btn.purple{background:#7c3aed}.lfcrm-btn.purple:hover{background:#6d28d9}
.lfcrm-table th{background:#f6faf7}.lfcrm-table td{font-size:13px}.lfcrm-table{min-width:1180px}
/* lead status semantics */
.lfcrm-badge,.status-pill{border:1px solid transparent}
.status-new{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}.status-assigned{background:#eef2ff;color:#4338ca;border-color:#c7d2fe}.status-contacted{background:#e0f2fe;color:#0369a1;border-color:#bae6fd}.status-interested{background:#ecfdf3;color:#15803d;border-color:#bbf7d0}.status-not-interested{background:#fef2f2;color:#b91c1c;border-color:#fecaca}.status-demo-pending{background:#fff7ed;color:#c2410c;border-color:#fed7aa}.status-demo-scheduled{background:#ecfeff;color:#0e7490;border-color:#a5f3fc}.status-demo-done{background:#f5f3ff;color:#6d28d9;border-color:#ddd6fe}.status-follow-up{background:#fffbeb;color:#a16207;border-color:#fde68a}.status-negotiation{background:#f5f3ff;color:#7c3aed;border-color:#ddd6fe}.status-proposal-sent{background:#eef2ff;color:#4338ca;border-color:#c7d2fe}.status-converted{background:#ecfdf3;color:#15803d;border-color:#bbf7d0}.status-lost{background:#fef2f2;color:#b91c1c;border-color:#fecaca}.status-not-reachable{background:#f8fafc;color:#475569;border-color:#cbd5e1}.status-wrong-number{background:#fef2f2;color:#b91c1c;border-color:#fecaca}.status-site-visit-required{background:#fff7ed;color:#c2410c;border-color:#fed7aa}.status-field-visit-scheduled{background:#ecfeff;color:#0e7490;border-color:#a5f3fc}.status-field-visit-done{background:#ecfdf3;color:#15803d;border-color:#bbf7d0}.status-transfer-pending{background:#fff7ed;color:#c2410c;border-color:#fed7aa}.status-transferred{background:#eef2ff;color:#4338ca;border-color:#c7d2fe}.status-on-hold{background:#f1f5f9;color:#475569;border-color:#cbd5e1}
.task-status-pending{background:#fff7ed;color:#a16207;border-color:#fde68a}.task-status-in-progress{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}.task-status-completed{background:#ecfdf3;color:#15803d;border-color:#bbf7d0}.task-status-cancelled{background:#fef2f2;color:#b91c1c;border-color:#fecaca}
.lfcrm-module-cards{grid-template-columns:repeat(5,minmax(160px,1fr))}.lfcrm-module-cards>a{padding:15px;border-radius:12px}.lfcrm-module-cards>a b{font-size:15px}
.lfcrm-quickbar{background:#fff;border-color:#dfe7e2;box-shadow:0 4px 16px rgba(31,72,52,.08)}
.lfcrm-admin-shell{max-width:1840px}.lfcrm-admin-card{border-color:#dfe7e2;box-shadow:0 4px 16px rgba(31,72,52,.05)}.lfcrm-admin-shell .button-primary,.lfcrm-admin-shell .lfcrm-btn{background:var(--myr-primary);border-color:var(--myr-primary)}.lfcrm-admin-shell .button-primary:hover{background:var(--myr-primary-dark);border-color:var(--myr-primary-dark)}
.lfcrm-login{max-width:400px;padding:25px;border-radius:14px}.lfcrm-login h1,.lfcrm-login .lfcrm-logo-title{font-size:32px!important;line-height:1.1}
@media(min-width:1500px){.lfcrm-table-wrap{max-width:100%;}.detail-grid{grid-template-columns:repeat(4,1fr)}.form-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:1100px){.lfcrm-cards,.lfcrm-module-cards{grid-template-columns:repeat(3,minmax(140px,1fr))}}
@media(max-width:760px){.lfcrm-app{width:100%;padding:10px;border-radius:0}.lfcrm-cards,.lfcrm-module-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.lfcrm-cards>div,.lfcrm-module-cards>a{padding:12px}.lfcrm-cards b{font-size:20px}.lfcrm-header h1,.section-head h2,.section-head h3{font-size:19px}.lfcrm-nav{padding:6px}.lfcrm-nav a{font-size:12px;padding:8px 9px}.lfcrm-quickbar{top:0;padding:6px;gap:5px}.lfcrm-quickbar .lfcrm-btn{font-size:11px;padding:7px 8px}.lfcrm-table-wrap{-webkit-overflow-scrolling:touch}.lfcrm-table{min-width:1050px}.lfcrm-action-row .lfcrm-btn{flex:1}.lfcrm-btn{min-height:40px}}
@media(max-width:480px){.lfcrm-cards,.lfcrm-module-cards{grid-template-columns:1fr 1fr}.lfcrm-app{font-size:13px}.lfcrm-header h1,.section-head h2,.section-head h3{font-size:18px}.lfcrm-btn{padding:8px 10px}.lfcrm-login{margin:25px 12px;padding:20px}}
/* LeadFlow 2.5 notification and real-time UI */
.lfcrm-notification-wrap{position:relative;display:inline-flex;align-items:center}.lfcrm-notification-toggle{border:0;background:transparent;cursor:pointer;position:relative;padding:8px 10px;color:inherit}.lfcrm-notification-count{display:inline-flex;min-width:18px;height:18px;padding:0 5px;align-items:center;justify-content:center;border-radius:999px;font-size:11px;font-weight:800;background:#e9edf3;color:#4a5568;vertical-align:middle}.lfcrm-notification-count.has-count{background:#d92d20;color:#fff}.lfcrm-notification-dropdown{position:absolute;z-index:99999;right:0;top:calc(100% + 10px);width:360px;max-width:min(92vw,360px);background:#fff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 18px 50px rgba(15,23,42,.18);overflow:hidden;color:#172033}.notification-dropdown-head{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid #edf0f4}.notification-dropdown-head a{font-size:12px}.lfcrm-notification-items{max-height:360px;overflow:auto}.lfcrm-notification-item{width:100%;border:0;background:#fff;text-align:left;display:flex;gap:10px;padding:13px 15px;cursor:pointer;border-bottom:1px solid #f0f2f5}.lfcrm-notification-item:hover{background:#f7f9fc}.lfcrm-notification-item.unread{background:#f3f7ff}.notification-dot{width:8px;height:8px;border-radius:50%;background:#b9c1ce;margin-top:5px;flex:0 0 auto}.unread .notification-dot{background:#2563eb}.lfcrm-notification-item strong,.lfcrm-notification-item small,.lfcrm-notification-item em{display:block}.lfcrm-notification-item strong{font-size:13px}.lfcrm-notification-item small{margin-top:3px;color:#596579;line-height:1.4}.lfcrm-notification-item em{font-size:10px;color:#8b95a5;margin-top:5px;font-style:normal}.notification-empty{padding:25px 16px;text-align:center;color:#7b8494;font-size:13px}.lfcrm-mark-all{width:100%;padding:10px;border:0;border-top:1px solid #edf0f4;background:#fafbfc;cursor:pointer;font-weight:700}.lfcrm-admin-shell .lfcrm-chat-layout{max-width:1100px}.lfcrm-admin-shell .lfcrm-chat-messages{min-height:430px;max-height:560px}.lfcrm-admin-shell .lfcrm-user-list{max-height:560px;overflow:auto}
@media(max-width:700px){.lfcrm-notification-dropdown{position:fixed;right:10px;left:10px;top:65px;width:auto;max-width:none}.lfcrm-notification-wrap{position:static}}
/* Lead modal must sit above the CRM navigation; keep its close control visible. */
.lfcrm-overlay{z-index:2147483000!important;isolation:isolate}
.lfcrm-modal{position:relative;z-index:2147483001}
.lfcrm-modal .detail-head{position:sticky;top:-24px;z-index:5;background:#fff;padding-top:2px}
.lfcrm-modal .detail-head .close{position:relative;z-index:6;display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;font-size:32px;line-height:1;cursor:pointer;background:#fff;border-radius:10px}
/* Lead workspace refinements */
.lfcrm-followup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0 0 18px}.lfcrm-followup-card{min-width:0}.lfcrm-followup-list{display:flex;flex-direction:column;gap:7px}.lfcrm-followup-item{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #e7edf1;border-radius:10px;background:#f9fbfa;text-decoration:none;color:#172033}.lfcrm-followup-item:hover{background:#f1f8f3;border-color:#cfe3d7}.lfcrm-followup-item strong,.lfcrm-followup-item small{display:block}.lfcrm-followup-item small{color:#718096;margin-top:3px}.lfcrm-followup-item b{font-size:12px}.lfcrm-custom-dates{display:inline-flex;gap:8px;align-items:center}.lfcrm-leads-table-wrap{overflow:hidden}.lfcrm-leads-table{min-width:0!important;width:100%;table-layout:fixed}.lfcrm-leads-table th,.lfcrm-leads-table td{white-space:normal;overflow-wrap:anywhere;word-break:break-word;padding:8px 7px;line-height:1.3}.lfcrm-leads-table th{font-size:10px}.lfcrm-leads-table td{font-size:12px}.lfcrm-leads-table th:nth-child(1){width:3%}.lfcrm-leads-table th:nth-child(2){width:9%}.lfcrm-leads-table th:nth-child(3){width:10%}.lfcrm-leads-table th:nth-child(4){width:8%}.lfcrm-leads-table th:nth-child(5){width:10%}.lfcrm-leads-table th:nth-child(6){width:7%}.lfcrm-leads-table th:nth-child(7){width:7%}.lfcrm-leads-table th:nth-child(8){width:10%}.lfcrm-leads-table th:nth-child(9){width:7%}.lfcrm-leads-table th:nth-child(10){width:8%}.lfcrm-leads-table th:nth-child(11){width:8%}.lfcrm-leads-table th:nth-child(12){width:8%}.lfcrm-leads-table th:nth-child(13){width:13%}.lfcrm-leads-table .actions{white-space:normal}.lfcrm-leads-table .actions .lfcrm-btn{margin:2px 0}.lfcrm-footer{text-align:center;padding:20px 10px 8px;color:#7a8495;font-size:12px}.lfcrm-footer span{color:#4b5563;font-weight:700}
@media(max-width:760px){.lfcrm-followup-grid{grid-template-columns:1fr}.lfcrm-leads-table{min-width:980px!important;table-layout:auto}.lfcrm-leads-table-wrap{overflow:auto}.lfcrm-custom-dates{display:flex!important;width:100%}.lfcrm-custom-dates input{flex:1;min-width:0}}

/* Attendance popup stacking fix: feedback must stay above the sticky CRM header. */
.lfcrm-overlay{z-index:2147483645!important}
.lfcrm-modal{z-index:2147483646!important}
.lfcrm-toast{z-index:2147483647!important}
.lfcrm-notification-dropdown{z-index:2147483644!important}

/* Field Agent attendance modal: scoped so existing desktop CRM layout is unchanged. */
.lfcrm-field-attendance-modal{z-index:2147483647!important}
.lfcrm-field-attendance-modal[hidden]{display:none!important}
.lfcrm-field-attendance-modal .lfcrm-modal{position:relative;max-width:760px}
.lfcrm-field-attendance-close{position:absolute;right:18px;top:10px;background:none;border:0;cursor:pointer}
.lfcrm-field-attendance-submit{min-width:180px}
.lfcrm-submit-spinner{display:inline-flex;align-items:center;gap:8px}
.lfcrm-submit-spinner:before{content:"";width:14px;height:14px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:lfcrm-spin .7s linear infinite}
.lfcrm-field-attendance-preview{min-height:4px}
@keyframes lfcrm-spin{to{transform:rotate(360deg)}}
/* v2.6.2.1: follow-up cards only; lead table/layout intentionally unchanged */
.lfcrm-followup-count-card{display:block;text-decoration:none;color:inherit;padding:16px 18px;min-height:0!important;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.lfcrm-followup-count-card:hover{border-color:#cbded2;box-shadow:0 6px 18px rgba(15,23,42,.07);transform:translateY(-1px)}
.lfcrm-followup-count-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:5px}
.lfcrm-followup-count-row h3{margin:0;font-size:18px}
.lfcrm-followup-count-row strong{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 10px;border-radius:999px;background:#eef3ff;color:#172033;font-size:18px}
.lfcrm-followup-open-hint{display:block;margin-top:8px;color:#718096;font-size:12px}
.lfcrm-followup-management-list{display:flex;flex-direction:column;gap:8px}
.lfcrm-followup-management-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 12px;border:1px solid #e7edf1;border-radius:10px;background:#fff}
.lfcrm-followup-management-row strong,.lfcrm-followup-management-row small{display:block}.lfcrm-followup-management-row small{margin-top:3px;color:#718096}.lfcrm-followup-management-row>div:last-child{display:flex;align-items:center;gap:12px}
@media(max-width:760px){.lfcrm-followup-management-row{align-items:flex-start;flex-direction:column}.lfcrm-followup-management-row>div:last-child{width:100%;justify-content:space-between}}
/* v2.6.2.2 targeted Leads controls - preserve existing table/action layout */
.lfcrm-lead-controls{margin:10px 0 12px}
.lfcrm-search-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.lfcrm-lead-search{width:min(360px,100%)!important;min-height:38px!important;padding:8px 10px!important;font-size:13px!important}
.lfcrm-filter-toggle{padding:8px 11px!important;min-height:38px!important;font-size:12px!important;gap:5px}
.lfcrm-filter-panel{margin-top:8px;padding:10px;background:#f8fafc;border:1px solid #e4e8ef;border-radius:10px}
.lfcrm-filter-grid{display:flex;align-items:flex-end;gap:7px;flex-wrap:wrap}
.lfcrm-filter-grid>select,.lfcrm-filter-grid input{min-height:36px!important;padding:7px 9px!important;font-size:12px!important}
.lfcrm-custom-dates{gap:5px!important}
.lfcrm-custom-dates input{width:140px}
.lfcrm-sl-range{display:flex;gap:5px;align-items:flex-end}
.lfcrm-sl-range label,.lfcrm-filter-grid>label{display:flex;flex-direction:column;gap:3px;font-size:10px;font-weight:700;color:#667085}
.lfcrm-sl-range input{width:82px}
.lfcrm-filter-actions{display:flex;gap:6px;margin-top:8px}
.lfcrm-filter-actions .lfcrm-btn{padding:7px 10px;font-size:12px}
.lfcrm-lead-list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0 8px;font-size:11px;color:#718096}
.lfcrm-list-range{font-size:11px}.lfcrm-list-range strong{color:#344054}
.lfcrm-list-tools{display:flex;align-items:center;gap:5px}.lfcrm-inline-per{min-height:30px!important;padding:4px 7px!important;font-size:11px!important;border-radius:7px!important;width:auto!important}
.lfcrm-sl-col{width:44px!important;text-align:center!important}.lfcrm-sl-cell{width:44px;text-align:center!important;font-weight:800;color:#475467;font-size:11px!important;white-space:nowrap!important}
.lfcrm-leads-table th,.lfcrm-leads-table td{white-space:normal;overflow-wrap:anywhere;word-break:break-word}
@media(max-width:760px){
 .lfcrm-search-row{align-items:stretch}.lfcrm-lead-search{width:100%!important}.lfcrm-filter-toggle{flex:0 0 auto}
 .lfcrm-filter-grid{display:grid;grid-template-columns:1fr 1fr}.lfcrm-filter-grid>select,.lfcrm-filter-grid>label,.lfcrm-sl-range,.lfcrm-custom-dates{min-width:0;width:100%}.lfcrm-custom-dates{grid-column:1/-1}.lfcrm-custom-dates input{width:100%}.lfcrm-sl-range{display:grid;grid-template-columns:1fr 1fr;gap:5px}.lfcrm-filter-actions .lfcrm-btn{flex:1}
 .lfcrm-lead-list-toolbar{align-items:center}.lfcrm-list-tools{flex-wrap:wrap;justify-content:flex-end}.lfcrm-sl-col,.lfcrm-sl-cell{width:auto!important}
}
/* v2.6.2.3: user-only compact filter toggle; manager/admin retain original lead controls */
.lfcrm-user-lead-controls .lfcrm-filter-details{position:relative;display:inline-block;margin-left:auto}
.lfcrm-user-lead-controls .lfcrm-filter-details>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:38px;padding:8px 11px;font-size:12px;font-weight:700;border:1px solid #d8e0e8;border-radius:8px;background:#fff;color:#243447;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.lfcrm-user-lead-controls .lfcrm-filter-details>summary::-webkit-details-marker{display:none}
.lfcrm-user-lead-controls .lfcrm-filter-details[open]>summary{background:#eef5ff;border-color:#b9d0f5}
.lfcrm-user-lead-controls .lfcrm-filter-panel{position:absolute;right:0;top:46px;z-index:12000;width:min(720px,calc(100vw - 40px));box-sizing:border-box}
@media(max-width:760px){.lfcrm-user-lead-controls .lfcrm-filter-details{margin-left:0}.lfcrm-user-lead-controls .lfcrm-filter-panel{position:fixed;right:12px;left:12px;top:78px;width:auto;max-height:calc(100vh - 95px);overflow:auto}}
/* v2.6.2.4: user Leads controls - compact search, external reset, filter icon only. */
.lfcrm-user-lead-controls .lfcrm-search-row{justify-content:flex-start;align-items:center;gap:7px}
.lfcrm-user-lead-controls .lfcrm-search-wrap{display:flex;align-items:center;gap:6px;flex:1;min-width:0}
.lfcrm-user-lead-controls .lfcrm-lead-search{width:min(520px,100%)!important;min-height:36px!important;height:36px!important;padding:7px 11px!important;font-size:12px!important}
.lfcrm-user-lead-controls .lfcrm-user-reset{display:inline-flex;align-items:center;justify-content:center;height:36px;padding:0 10px;border:1px solid #d8e0e8;border-radius:8px;background:#fff;color:#344054;text-decoration:none;font-size:12px;font-weight:700;white-space:nowrap;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.lfcrm-user-lead-controls .lfcrm-user-reset:hover{background:#f8fafc;border-color:#b9c4d0}
.lfcrm-user-lead-controls .lfcrm-filter-details{margin-left:auto;flex:0 0 auto}
.lfcrm-user-lead-controls .lfcrm-filter-toggle{height:36px;min-height:36px;padding:0 11px!important}
.lfcrm-user-lead-controls .lfcrm-filter-panel{top:43px}
.lfcrm-user-lead-controls .lfcrm-filter-actions{justify-content:flex-end}
.lfcrm-user-lead-controls .lfcrm-filter-actions .lfcrm-btn{padding:7px 12px;font-size:12px}
.lfcrm-user-lead-controls .lfcrm-filter-panel select[name="lf_per_page"]{min-width:84px}
.lfcrm-user-lead-controls + .lfcrm-followup-grid{margin-top:12px}
@media(max-width:760px){
 .lfcrm-user-lead-controls .lfcrm-search-row{gap:5px}
 .lfcrm-user-lead-controls .lfcrm-search-wrap{flex:1}
 .lfcrm-user-lead-controls .lfcrm-lead-search{width:100%!important;min-width:0!important}
 .lfcrm-user-lead-controls .lfcrm-user-reset{padding:0 8px}
 .lfcrm-user-lead-controls .lfcrm-filter-toggle{padding:0 9px!important}
}

/* v2.6.2.5: apply the same compact lead controls to Manager/Admin while preserving bulk selection/delete */
.lfcrm-lead-controls .lfcrm-filter-details{position:relative;display:inline-block;margin-left:auto}
.lfcrm-lead-controls .lfcrm-filter-details>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:36px;padding:0 11px;font-size:12px;font-weight:700;border:1px solid #d8e0e8;border-radius:8px;background:#fff;color:#243447;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.lfcrm-lead-controls .lfcrm-filter-details>summary::-webkit-details-marker{display:none}
.lfcrm-lead-controls .lfcrm-filter-details[open]>summary{background:#eef5ff;border-color:#b9d0f5}
.lfcrm-lead-controls .lfcrm-filter-panel{position:absolute;right:0;top:43px;z-index:12000;width:min(760px,calc(100vw - 40px));box-sizing:border-box}
.lfcrm-lead-controls .lfcrm-search-row{justify-content:flex-start;align-items:center;gap:7px}
.lfcrm-lead-controls .lfcrm-search-wrap{display:flex;align-items:center;gap:6px;flex:1;min-width:0}
.lfcrm-lead-controls .lfcrm-lead-search{width:min(520px,100%)!important;min-height:36px!important;height:36px!important;padding:7px 11px!important;font-size:12px!important}
.lfcrm-lead-controls .lfcrm-user-reset{display:inline-flex;align-items:center;justify-content:center;height:36px;padding:0 10px;border:1px solid #d8e0e8;border-radius:8px;background:#fff;color:#344054;text-decoration:none;font-size:12px;font-weight:700;white-space:nowrap;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.lfcrm-lead-controls .lfcrm-filter-toggle{height:36px;min-height:36px;padding:0 11px!important}
.lfcrm-lead-controls .lfcrm-filter-details{margin-left:auto;flex:0 0 auto}
.lfcrm-lead-controls .lfcrm-filter-actions{justify-content:flex-end}
@media(max-width:760px){.lfcrm-lead-controls .lfcrm-filter-details{margin-left:0}.lfcrm-lead-controls .lfcrm-filter-panel{position:fixed;right:12px;left:12px;top:78px;width:auto;max-height:calc(100vh - 95px);overflow:auto}.lfcrm-lead-controls .lfcrm-search-row{gap:5px}.lfcrm-lead-controls .lfcrm-search-wrap{flex:1}.lfcrm-lead-controls .lfcrm-lead-search{width:100%!important;min-width:0!important}}

/* v2.6.2.6 notification actions */
.notification-dropdown-actions{display:flex;gap:8px;padding:8px 10px;border-top:1px solid #e7eee9;}
.notification-dropdown-actions button{flex:1;min-width:0;}
.notification-dropdown-actions .lfcrm-clear-all{color:#b42318;}

/* Notification contrast fix: explicitly define foreground/background colors so
 * theme/plugin button styles cannot make notification text white on white. */
.lfcrm-notification-dropdown .lfcrm-notification-item,
.lfcrm-notification-dropdown .lfcrm-notification-item:visited,
.lfcrm-notification-dropdown .lfcrm-notification-item:hover,
.lfcrm-notification-dropdown .lfcrm-notification-item:focus {
  color:#334155 !important;
  background:#fff !important;
  text-decoration:none !important;
}
.lfcrm-notification-dropdown .lfcrm-notification-item.unread,
.lfcrm-notification-dropdown .lfcrm-notification-item.unread:hover,
.lfcrm-notification-dropdown .lfcrm-notification-item.unread:focus {
  color:#1f2937 !important;
  background:#f3f7ff !important;
}
.lfcrm-notification-dropdown .lfcrm-notification-item strong {
  color:#334155 !important;
  font-weight:800 !important;
}
.lfcrm-notification-dropdown .lfcrm-notification-item small {
  color:#596579 !important;
}
.lfcrm-notification-dropdown .lfcrm-notification-item em {
  color:#8b95a5 !important;
}
.lfcrm-notification-dropdown .lfcrm-notification-item .notification-dot {
  background:#b9c1ce !important;
}
.lfcrm-notification-dropdown .lfcrm-notification-item.unread .notification-dot {
  background:#2563eb !important;
}
.lfcrm-notification-dropdown .notification-dropdown-actions {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  padding:10px;
  background:#fff;
  border-top:1px solid #edf0f4;
}
.lfcrm-notification-dropdown .notification-dropdown-actions button {
  min-height:42px;
  border-radius:8px;
  font-weight:800;
  font-size:13px;
  cursor:pointer;
  transition:filter .15s ease,opacity .15s ease;
}
.lfcrm-notification-dropdown .notification-dropdown-actions .lfcrm-mark-all {
  width:auto;
  padding:10px 12px;
  border:1px solid #cbd5e1 !important;
  background:#f8fafc !important;
  color:#334155 !important;
}
.lfcrm-notification-dropdown .notification-dropdown-actions .lfcrm-mark-all:hover:not(:disabled) {
  background:#eef2f7 !important;
  color:#1f2937 !important;
}
.lfcrm-notification-dropdown .notification-dropdown-actions .lfcrm-clear-all {
  width:auto;
  padding:10px 12px;
  border:1px solid #2563eb !important;
  background:#2563eb !important;
  color:#fff !important;
}
.lfcrm-notification-dropdown .notification-dropdown-actions .lfcrm-clear-all:hover:not(:disabled) {
  background:#1d4ed8 !important;
  color:#fff !important;
}
.lfcrm-notification-dropdown .notification-dropdown-actions button:disabled {
  opacity:.6;
  cursor:not-allowed;
}

/* Unified Attendance & Field Tracking report */
.lfcrm-report-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin:0 0 18px;padding:14px;border:1px solid #dfe7e3;border-radius:12px;background:#f8fbfa}
.lfcrm-report-filters label{display:flex;flex-direction:column;gap:6px;min-width:150px;font-size:13px;font-weight:600;color:#334155}
.lfcrm-report-filters input,.lfcrm-report-filters select{min-height:40px;padding:8px 10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#172033}
.lfcrm-report-filters .lfcrm-btn{min-height:40px;display:inline-flex;align-items:center;justify-content:center}
.lfcrm-report-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 18px}
.lfcrm-report-summary>div{padding:14px 16px;border:1px solid #e1e8e5;border-radius:10px;background:#fff}
.lfcrm-report-summary b{display:block;font-size:20px;line-height:1.2;color:#14213d}
.lfcrm-report-summary span{display:block;margin-top:5px;font-size:12px;color:#64748b}
.lfcrm-attendance-unified-report .lfcrm-table-wrap{overflow-x:auto}
.lfcrm-attendance-unified-report .lfcrm-table{min-width:1250px}
.lfcrm-attendance-unified-report .lfcrm-table th{white-space:nowrap}
@media(max-width:800px){
  .lfcrm-report-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lfcrm-report-filters label{min-width:135px;flex:1 1 135px}
}

/* v2.6.2.7 Assignment & Transfer Center */
.lfcrm-lead-bulk-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0}
.lfcrm-lead-bulk-toolbar>label{display:inline-flex;align-items:center;gap:7px;font-weight:700}
.lfcrm-bulk-assign-form,.lfcrm-delete-form{display:inline-flex;margin:0}
.lfcrm-assignment-search-panel,.lfcrm-selected-lead-panel,.lfcrm-bulk-assignment-panel,.lfcrm-assignment-history-panel{margin-top:16px}
.lfcrm-assignment-search-form{display:grid;grid-template-columns:minmax(280px,1fr) auto auto;gap:10px;align-items:end;margin-top:12px}
.lfcrm-assignment-search-form input[type=search]{min-width:0}
.lfcrm-assignment-results{margin-top:18px}
.assignment-result-count{margin-bottom:8px}
.lfcrm-assignment-selected-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:8px 0 18px}
.lfcrm-assignment-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px;border:1px solid #dfe8e3;border-radius:12px;background:#f8fbf9}
.lfcrm-assignment-detail-grid>div{min-width:0}
.lfcrm-assignment-detail-grid>div.wide{grid-column:1/-1}
.lfcrm-assignment-detail-grid label{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#64748b;margin-bottom:4px}
.lfcrm-assignment-detail-grid strong{display:block;color:#172033;overflow-wrap:anywhere}
.lfcrm-assignment-action-box{margin-top:18px;padding:18px;border:1px solid #dbe6e0;border-radius:12px;background:#fff}
.lfcrm-assignment-form{display:grid;grid-template-columns:1fr 32px 1fr;gap:12px;align-items:end}
.lfcrm-assignment-form .wide{grid-column:1/-1}
.lfcrm-assignment-form .assignment-or{align-self:center;text-align:center;font-weight:800;color:#64748b;padding-top:22px}
.lfcrm-assignment-form label{display:block;font-weight:700;color:#253047}
.lfcrm-assignment-form label select,.lfcrm-assignment-form label textarea{width:100%;margin-top:6px}
.lfcrm-assignment-form .quick-actions{display:flex;gap:10px;flex-wrap:wrap}
.lfcrm-assign-notice{margin-top:14px}
.lfcrm-assignment-history-panel .lfcrm-table-wrap{margin-top:10px}
@media(max-width:900px){.lfcrm-assignment-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lfcrm-assignment-form{grid-template-columns:1fr}.lfcrm-assignment-form .assignment-or{padding:0}.lfcrm-assignment-search-form{grid-template-columns:1fr 1fr}.lfcrm-assignment-search-form input[type=search]{grid-column:1/-1}}
@media(max-width:600px){.lfcrm-assignment-detail-grid{grid-template-columns:1fr}.lfcrm-assignment-detail-grid>div.wide{grid-column:auto}.lfcrm-assignment-selected-head{align-items:flex-start;flex-direction:column}.lfcrm-assignment-search-form{grid-template-columns:1fr}.lfcrm-assignment-search-form input[type=search]{grid-column:auto}.lfcrm-lead-bulk-toolbar{align-items:stretch;flex-direction:column}.lfcrm-bulk-assign-form,.lfcrm-delete-form,.lfcrm-bulk-assign-form button,.lfcrm-delete-form button{width:100%}}

.lfcrm-assignment-results-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}.lfcrm-assignment-bulk-form{display:block;margin:0}.lfcrm-assignment-bulk-actions{display:flex;align-items:center;gap:10px}.lfcrm-assignment-select-all{display:inline-flex;align-items:center;gap:6px;font-weight:700}.lfcrm-select-col{width:42px;text-align:center}.lfcrm-assignment-lead-check,.lfcrm-assignment-select-all-toggle{width:16px;height:16px}.lfcrm-assignment-bulk-btn{white-space:nowrap}.lfcrm-assignment-bulk-form .lfcrm-table-wrap{margin-top:10px}.lfcrm-bulk-assignment-panel .assignment-or{align-self:end;margin-bottom:10px}@media(max-width:700px){.lfcrm-assignment-results-toolbar{align-items:stretch;flex-direction:column}.lfcrm-assignment-bulk-actions{justify-content:space-between}.lfcrm-assignment-bulk-btn{flex:1}.lfcrm-select-col{width:auto}.lfcrm-bulk-assignment-panel .assignment-or{display:none}}

/* Required Lead Field UX */
.lfcrm-form .required-mark{color:#d63638;font-weight:700;margin-left:3px}.lfcrm-notice.error{margin:0 0 14px;padding:12px 14px;border-radius:8px;background:#fff1f2;border:1px solid #fecdd3;color:#991b1b}.lfcrm-form input:required:invalid,.lfcrm-form textarea:required:invalid,.lfcrm-form select:required:invalid{border-color:#fca5a5}.lfcrm-form input:focus:invalid,.lfcrm-form textarea:focus:invalid,.lfcrm-form select:focus:invalid{box-shadow:0 0 0 2px rgba(220,38,38,.08)}

.lfcrm-kb-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}.lfcrm-kb-card{display:flex;gap:12px;padding:14px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;align-items:flex-start}.lfcrm-kb-icon{font-size:26px;line-height:1}.lfcrm-kb-content{min-width:0;flex:1}.lfcrm-kb-content>strong{display:block;color:#172033;font-size:15px;margin-bottom:4px}.lfcrm-kb-content small{display:block;color:#667085;word-break:break-word;margin-bottom:10px}.lfcrm-kb-actions{display:flex;flex-wrap:wrap;gap:7px}.lfcrm-kb-actions .lfcrm-btn{margin:0}.lfcrm-kb-actions .whatsapp{background:#128c7e!important;color:#fff!important}@media(max-width:760px){.lfcrm-kb-grid{grid-template-columns:1fr}.lfcrm-kb-card{padding:12px}.lfcrm-kb-actions .lfcrm-btn{flex:1 1 auto;text-align:center}}

/* LeadFlow CRM 2.6.2.14 — PHONE-ONLY responsive layer.
 * Desktop/tablet base styling above is intentionally preserved.
 * Nothing in this block applies above 767px viewport width.
 */
.lfcrm-mobile-menu-toggle,
.lfcrm-mobile-menu{display:none!important}

@media screen and (max-width: 767px){
  /* ---------- Mobile app header ---------- */
  .lfcrm-nav{
    position:relative!important;
    top:auto!important;
    width:100%!important;
    min-height:58px!important;
    height:auto!important;
    display:flex!important;
    align-items:center!important;
    gap:7px!important;
    padding:7px 8px!important;
    overflow:visible!important;
    flex-wrap:nowrap!important;
    box-sizing:border-box!important;
  }
  .lfcrm-nav > .lfcrm-back-btn,
  .lfcrm-nav > a:not(.logout),
  .lfcrm-nav > .nav-user,
  .lfcrm-nav > .logout{display:none!important}
  .lfcrm-brand{
    display:block!important;
    flex:1 1 auto!important;
    min-width:0!important;
    max-width:none!important;
    font-size:17px!important;
    line-height:1.05!important;
    white-space:normal!important;
  }
  .lfcrm-notification-wrap{position:relative!important;flex:0 0 auto!important}
  .lfcrm-notification-toggle{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:42px!important;
    width:42px!important;
    height:42px!important;
    padding:6px!important;
    margin:0!important;
  }
  .lfcrm-mobile-menu-toggle{
    display:inline-flex!important;
    flex:0 0 42px!important;
    width:42px!important;
    height:42px!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0!important;
    margin:0!important;
    border:1px solid #dfe7e2!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#17221d!important;
    box-shadow:0 2px 7px rgba(15,23,42,.08)!important;
    cursor:pointer!important;
  }
  .lfcrm-mobile-menu-icon{display:flex!important;flex-direction:column!important;gap:4px!important;align-items:center!important;justify-content:center!important}
  .lfcrm-mobile-menu-icon i{display:block!important;width:20px!important;height:2px!important;border-radius:2px!important;background:#17221d!important}
  .lfcrm-mobile-menu[hidden]{display:none!important}
  .lfcrm-mobile-menu{
    position:absolute!important;
    left:5px!important;
    right:5px!important;
    top:calc(100% + 7px)!important;
    z-index:999999!important;
    display:block!important;
    max-height:calc(100vh - 78px)!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding:8px!important;
    margin:0!important;
    box-sizing:border-box!important;
    background:#fff!important;
    border:1px solid #dfe7e2!important;
    border-radius:14px!important;
    box-shadow:0 18px 40px rgba(15,23,42,.22)!important;
  }
  .lfcrm-mobile-menu-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:8px 8px 10px!important;border-bottom:1px solid #edf1ef!important}
  .lfcrm-mobile-menu-head strong{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#17221d!important;font-size:14px!important}
  .lfcrm-mobile-menu-close{width:34px!important;height:34px!important;flex:0 0 34px!important;border:0!important;border-radius:8px!important;background:#f3f7f5!important;color:#17221d!important;font-size:23px!important;line-height:1!important;cursor:pointer!important}
  .lfcrm-mobile-menu-links{display:flex!important;flex-direction:column!important;gap:3px!important;padding-top:6px!important}
  .lfcrm-mobile-menu-links a{
    display:flex!important;
    align-items:center!important;
    min-height:44px!important;
    box-sizing:border-box!important;
    padding:10px 12px!important;
    border-radius:9px!important;
    color:#17221d!important;
    background:#fff!important;
    text-decoration:none!important;
    font-size:14px!important;
    font-weight:700!important;
    white-space:normal!important;
  }
  .lfcrm-mobile-menu-links a:active,.lfcrm-mobile-menu-links a:hover{background:#eaf8f0!important;color:#238b57!important}
  .lfcrm-mobile-menu-links .mobile-logout{margin-top:5px!important;border-top:1px solid #edf1ef!important;border-radius:0 0 9px 9px!important;color:#b42318!important}

  /* ---------- Phone page frame ---------- */
  html,body{max-width:100%!important;overflow-x:hidden!important}
  .lfcrm-app{width:100%!important;max-width:100%!important;box-sizing:border-box!important;margin:0!important;padding:10px!important;border-radius:0!important;overflow-x:hidden!important}
  .lfcrm-panel,.lfcrm-header,.section-head{max-width:100%!important;box-sizing:border-box!important}
  .lfcrm-header h1,.section-head h2,.section-head h3{font-size:20px!important;line-height:1.25!important}
  .section-head{gap:12px!important}
  .lfcrm-btn{min-height:42px!important;box-sizing:border-box!important;touch-action:manipulation!important}
  input,select,textarea,button{max-width:100%!important;box-sizing:border-box!important;font-size:16px!important}

  /* ---------- Dashboard / cards ---------- */
  .lfcrm-cards,.lfcrm-module-cards{grid-template-columns:1fr!important;gap:9px!important}
  .lfcrm-cards>div,.lfcrm-module-cards>a{min-width:0!important;width:100%!important;box-sizing:border-box!important}
  .lfcrm-followup-grid{grid-template-columns:1fr!important;gap:10px!important}
  .lfcrm-followup-card{width:100%!important;box-sizing:border-box!important}
  .quick-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;width:100%!important}
  .quick-actions .lfcrm-btn{width:100%!important}

  /* ---------- Leads: true phone cards, never a desktop-wide table ---------- */
  .lfcrm-leads-table-wrap{width:100%!important;max-width:100%!important;overflow:visible!important;border:0!important}
  .lfcrm-leads-table{display:block!important;width:100%!important;min-width:0!important;border:0!important;border-spacing:0!important}
  .lfcrm-leads-table thead{display:none!important}
  .lfcrm-leads-table tbody{display:block!important;width:100%!important}
  .lfcrm-leads-table tr{display:block!important;width:100%!important;box-sizing:border-box!important;margin:0 0 10px!important;padding:8px!important;background:#fff!important;border:1px solid #dfe7e2!important;border-radius:12px!important;box-shadow:0 2px 10px rgba(15,23,42,.05)!important}
  .lfcrm-leads-table td{display:grid!important;grid-template-columns:82px minmax(0,1fr)!important;gap:7px!important;width:100%!important;box-sizing:border-box!important;padding:7px 3px!important;border:0!important;border-bottom:1px solid #edf1ef!important;text-align:left!important;vertical-align:top!important;overflow-wrap:anywhere!important;word-break:break-word!important}
  .lfcrm-leads-table td:last-child{border-bottom:0!important}
  .lfcrm-leads-table td::before{content:attr(data-label)!important;display:block!important;color:#6b7a72!important;font-size:10px!important;font-weight:800!important;text-transform:uppercase!important;letter-spacing:.03em!important;line-height:1.35!important}
  .lfcrm-leads-table td[data-label="Lead"]{display:block!important;padding:7px 3px 10px!important}
  .lfcrm-leads-table td[data-label="Lead"]::before{display:none!important}
  .lfcrm-leads-table td[data-label="Lead"] strong{display:block!important;color:#17221d!important;font-size:16px!important;line-height:1.25!important}
  .lfcrm-leads-table td[data-label="Lead"] small{display:block!important;margin-top:3px!important;color:#6b7a72!important}
  .lfcrm-leads-table td[data-label="Select"] input{width:24px!important;height:24px!important;margin:0!important}
  .lfcrm-leads-table td[data-label="SL. No."]{font-weight:800!important;color:#17221d!important}
  .lfcrm-leads-table td[data-label="Actions"]{display:flex!important;flex-wrap:wrap!important;gap:7px!important;padding-top:10px!important}
  .lfcrm-leads-table td[data-label="Actions"] .lfcrm-btn{flex:0 0 auto!important;width:auto!important;max-width:100%!important;min-width:76px!important;text-align:center!important;white-space:nowrap!important}
  .lfcrm-leads-table td[data-label="Actions"] .lfcrm-btn.small{padding:8px 12px!important;font-size:13px!important}
  .lfcrm-leads-table td[data-label="Actions"]{align-items:flex-start!important}
  .lfcrm-leads-table td.empty{display:block!important;text-align:center!important;padding:20px!important}
  .lfcrm-leads-table td.empty::before{display:none!important}

  /* ---------- Leads controls ---------- */
  .lfcrm-search-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;gap:6px!important;width:100%!important}
  .lfcrm-search-wrap{min-width:0!important;display:block!important}
  .lfcrm-lead-search{width:100%!important;min-width:0!important;height:44px!important}
  .lfcrm-user-reset{min-width:58px!important;height:44px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0 8px!important}
  .lfcrm-filter-details{min-width:76px!important}
  .lfcrm-filter-toggle{width:100%!important;height:44px!important;padding:0 8px!important}
  .lfcrm-filter-panel{position:fixed!important;left:10px!important;right:10px!important;top:70px!important;width:auto!important;max-height:calc(100vh - 82px)!important;overflow:auto!important;z-index:999990!important}
  .lfcrm-filter-grid{grid-template-columns:1fr!important}
  .lfcrm-custom-dates{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;width:100%!important}
  .lfcrm-custom-dates input{width:100%!important;min-width:0!important}
  .lfcrm-lead-bulk-toolbar{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:7px!important}
  .lfcrm-lead-bulk-toolbar form,.lfcrm-lead-bulk-toolbar button,.lfcrm-lead-bulk-toolbar .lfcrm-btn{width:100%!important}

  /* ---------- Forms / details / profile ---------- */
  .detail-grid,.form-grid,.lfcrm-report-grid,.lfcrm-history-grid,.profile-grid,.import-form{grid-template-columns:1fr!important}
  .lfcrm-action-row{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  .lfcrm-action-row .lfcrm-btn{width:100%!important}
  .contact-row,.report-row{flex-direction:column!important;align-items:stretch!important}
  .contact-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}

  /* ---------- Tables: compact pages use horizontal scroll; lead table above is cards ---------- */
  .lfcrm-table-wrap{width:100%!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
  .lfcrm-table{min-width:680px!important}

  /* ---------- Assignment / Transfer ---------- */
  .lfcrm-assignment-search-form{grid-template-columns:1fr!important}
  .lfcrm-assignment-search-form input[type=search]{grid-column:auto!important;width:100%!important}
  .lfcrm-assignment-results-toolbar{align-items:stretch!important;flex-direction:column!important}
  .lfcrm-assignment-bulk-actions{display:flex!important;flex-direction:column!important;align-items:stretch!important}
  .lfcrm-assignment-bulk-btn{width:100%!important}
  .lfcrm-assignment-detail-grid{grid-template-columns:1fr!important}
  .lfcrm-assignment-form{grid-template-columns:1fr!important}
  .lfcrm-assignment-form .assignment-or{padding:0!important}
  .lfcrm-assignment-form .quick-actions{display:grid!important;grid-template-columns:1fr!important}

  /* ---------- Chat / attendance / reports / knowledge base ---------- */
  .lfcrm-chat-layout{grid-template-columns:1fr!important}
  .lfcrm-user-list{max-height:220px!important;overflow:auto!important}
  .lfcrm-chat-messages{height:55vh!important;min-height:280px!important}
  .chat-compose{flex-direction:column!important;align-items:stretch!important}
  .lfcrm-attendance-unified-report .lfcrm-table{min-width:1100px!important}
  .lfcrm-report-summary{grid-template-columns:1fr 1fr!important}
  .lfcrm-report-filters{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  .lfcrm-kb-grid{grid-template-columns:1fr!important}
  .lfcrm-kb-card{display:block!important;padding:12px!important}
  .lfcrm-kb-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}
  .lfcrm-kb-actions .lfcrm-btn{width:100%!important;text-align:center!important}

  /* Prevent long words/URLs from creating horizontal page overflow. */
  .lfcrm-app *{max-width:100%!important}
  .lfcrm-app img,.lfcrm-app iframe{max-width:100%!important;height:auto!important}
}

/* 2.6.2.15 mobile lead action containment: compact Open/Delete buttons only. */
@media screen and (max-width: 767px){
  .lfcrm-leads-table td[data-label="Actions"]{min-width:0!important;max-width:100%!important;overflow:hidden!important}
  .lfcrm-leads-table td[data-label="Actions"] .lfcrm-btn{flex:0 1 auto!important}
}

/* ========================================================================
 * LeadFlow CRM 2.6.2.16 — FINAL MOBILE PRESENTATION LAYER
 * Desktop styles are intentionally untouched. Everything below is mobile-only.
 * ======================================================================== */
@media screen and (max-width: 767px){
  html,body{width:100%!important;max-width:100%!important;overflow-x:hidden!important}
  .lfcrm-app{width:100%!important;max-width:100%!important;margin:0!important;padding:10px!important;overflow-x:hidden!important}

  /* Compact mobile app header: brand/nav links never compete for phone width. */
  .lfcrm-nav{width:100%!important;min-height:56px!important;height:auto!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;padding:7px!important;overflow:visible!important;flex-wrap:nowrap!important;position:sticky!important;top:0!important;z-index:11000!important}
  .lfcrm-nav > .lfcrm-back-btn,
  .lfcrm-nav > a:not(.logout),
  .lfcrm-nav > .nav-user,
  .lfcrm-nav > .logout{display:none!important}
  .lfcrm-nav > .lfcrm-brand{
    display:block!important;
    flex:1 1 auto!important;
    min-width:0!important;
    max-width:none!important;
    margin:0 auto 0 2px!important;
    padding:5px 4px!important;
    color:#17221d!important;
    font-size:11px!important;
    line-height:1.1!important;
    font-weight:850!important;
    letter-spacing:.01em!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .lfcrm-nav > .lfcrm-brand span{color:#16834d!important}
  .lfcrm-notification-wrap{display:block!important;position:relative!important;flex:0 0 44px!important;width:44px!important;margin:0!important}
  .lfcrm-notification-toggle{display:inline-flex!important;width:44px!important;height:44px!important;min-width:44px!important;align-items:center!important;justify-content:center!important;padding:6px!important;margin:0!important}
  .lfcrm-mobile-menu-toggle{display:inline-flex!important;position:relative!important;z-index:11003!important;width:44px!important;height:44px!important;min-width:44px!important;flex:0 0 44px!important;align-items:center!important;justify-content:center!important;padding:0!important;margin:0!important;border:1px solid #d7e0da!important;border-radius:10px!important;background:#fff!important;color:#17221d!important;cursor:pointer!important;box-shadow:0 1px 3px rgba(15,23,42,.06)!important}
  .lfcrm-mobile-menu-icon{display:flex!important;width:22px!important;height:18px!important;flex-direction:column!important;align-items:stretch!important;justify-content:space-between!important}
  .lfcrm-mobile-menu-icon i{display:block!important;width:22px!important;height:2.5px!important;background:#17221d!important;border-radius:3px!important}
  .lfcrm-mobile-menu{position:absolute!important;right:7px!important;top:57px!important;width:min(310px,calc(100vw - 20px))!important;max-height:calc(100vh - 70px)!important;overflow-y:auto!important;overflow-x:hidden!important;display:block!important;padding:8px!important;background:#fff!important;border:1px solid #dfe7e2!important;border-radius:13px!important;box-shadow:0 16px 40px rgba(15,23,42,.18)!important;z-index:11002!important}
  .lfcrm-mobile-menu[hidden]{display:none!important}
  .lfcrm-mobile-menu-head{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:6px 5px 9px!important;border-bottom:1px solid #edf1ef!important}
  .lfcrm-mobile-menu-links{display:flex!important;flex-direction:column!important;gap:3px!important;padding-top:6px!important}
  .lfcrm-mobile-menu-links a{display:flex!important;align-items:center!important;min-height:44px!important;padding:10px 11px!important;border-radius:9px!important;color:#263246!important;background:#fff!important;text-decoration:none!important;font-size:14px!important;font-weight:700!important;white-space:normal!important}
  .lfcrm-mobile-menu-links a:hover,.lfcrm-mobile-menu-links a:active{background:#eef7f1!important;color:#16834d!important}
  .lfcrm-mobile-menu-links .mobile-logout{margin-top:4px!important;border-top:1px solid #edf1ef!important;border-radius:0 0 9px 9px!important;color:#b42318!important}

  /* Prevent generic quick-action rules from stretching lead-row buttons. */
  .lfcrm-leads-table td[data-label="Actions"]{display:flex!important;align-items:flex-start!important;justify-content:flex-start!important;flex-wrap:wrap!important;gap:7px!important;width:100%!important;min-width:0!important;max-width:100%!important;overflow:hidden!important}
  .lfcrm-leads-table td[data-label="Actions"] .lfcrm-btn,
  .lfcrm-leads-table td[data-label="Actions"] a.lfcrm-btn,
  .lfcrm-leads-table td[data-label="Actions"] button.lfcrm-btn{display:inline-flex!important;flex:0 0 auto!important;width:auto!important;max-width:140px!important;min-width:0!important;height:auto!important;min-height:38px!important;padding:8px 13px!important;margin:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#fff!important;background:#2563eb!important}
  .lfcrm-leads-table td[data-label="Actions"] .lfcrm-btn.danger{background:#dc2626!important}
  .lfcrm-leads-table td[data-label="Actions"]::before{display:block!important;flex:0 0 100%!important;width:100%!important;margin-bottom:2px!important}

  /* True phone cards for Leads. */
  .lfcrm-leads-table-wrap{width:100%!important;max-width:100%!important;overflow:visible!important;border:0!important;background:transparent!important}
  .lfcrm-leads-table{display:block!important;width:100%!important;min-width:0!important;border:0!important;border-spacing:0!important}
  .lfcrm-leads-table thead{display:none!important}
  .lfcrm-leads-table tbody{display:block!important;width:100%!important}
  .lfcrm-leads-table tr{display:block!important;width:100%!important;min-width:0!important;margin:0 0 10px!important;padding:9px!important;background:#fff!important;border:1px solid #dfe7e2!important;border-radius:13px!important;box-shadow:0 2px 10px rgba(15,23,42,.05)!important;overflow:hidden!important}
  .lfcrm-leads-table td{display:grid!important;grid-template-columns:minmax(76px,28%) minmax(0,1fr)!important;gap:8px!important;width:100%!important;min-width:0!important;box-sizing:border-box!important;padding:8px 2px!important;border:0!important;border-bottom:1px solid #edf1ef!important;text-align:left!important;overflow-wrap:anywhere!important;word-break:break-word!important}
  .lfcrm-leads-table td:last-child{border-bottom:0!important}
  .lfcrm-leads-table td::before{display:block!important;min-width:0!important;color:#68776f!important;font-size:10px!important;font-weight:800!important;text-transform:uppercase!important;letter-spacing:.05em!important;line-height:1.35!important}
  .lfcrm-leads-table td[data-label="Lead"]{display:block!important;padding:8px 2px 11px!important}
  .lfcrm-leads-table td[data-label="Lead"]::before{display:none!important}
  .lfcrm-leads-table td[data-label="Lead"] strong{display:block!important;color:#17221d!important;font-size:17px!important;line-height:1.25!important}
  .lfcrm-leads-table td[data-label="Lead"] small{display:block!important;margin-top:3px!important;color:#6b7a72!important}
  .lfcrm-leads-table td[data-label="Select"]{display:flex!important;align-items:center!important;justify-content:flex-start!important}
  .lfcrm-leads-table td[data-label="Select"]::before{content:'SELECT'!important;display:block!important;margin-right:8px!important}
  .lfcrm-leads-table td[data-label="Select"] input{width:24px!important;height:24px!important;margin:0!important}
  .lfcrm-leads-table td[data-label="SL. No."]{display:flex!important;align-items:center!important;gap:10px!important;font-weight:800!important;color:#17221d!important}
  .lfcrm-leads-table td[data-label="SL. No."]::before{content:'SL. NO.'!important}
  .lfcrm-leads-table td.empty{display:block!important;text-align:center!important;padding:24px!important}
  .lfcrm-leads-table td.empty::before{display:none!important}

  /* Generic frontend tables: turn the important operational tables into cards. */
  .lfcrm-tasks-table,
  .lfcrm-users-table,
  .lfcrm-attendance-table,
  .lfcrm-history-table,
  .lfcrm-leave-table,
  .lfcrm-assignment-results-table{display:block!important;width:100%!important;min-width:0!important;border:0!important;border-collapse:separate!important;border-spacing:0!important}
  .lfcrm-tasks-table thead,
  .lfcrm-users-table thead,
  .lfcrm-attendance-table thead,
  .lfcrm-history-table thead,
  .lfcrm-leave-table thead,
  .lfcrm-assignment-results-table thead{display:none!important}
  .lfcrm-tasks-table tbody,
  .lfcrm-users-table tbody,
  .lfcrm-attendance-table tbody,
  .lfcrm-history-table tbody,
  .lfcrm-leave-table tbody,
  .lfcrm-assignment-results-table tbody{display:block!important;width:100%!important}
  .lfcrm-tasks-table tr,
  .lfcrm-users-table tr,
  .lfcrm-attendance-table tr,
  .lfcrm-history-table tr,
  .lfcrm-leave-table tr,
  .lfcrm-assignment-results-table tr{display:block!important;width:100%!important;margin:0 0 10px!important;padding:9px!important;background:#fff!important;border:1px solid #dfe7e2!important;border-radius:12px!important;overflow:hidden!important;box-shadow:0 2px 8px rgba(15,23,42,.04)!important}
  .lfcrm-tasks-table td,
  .lfcrm-users-table td,
  .lfcrm-attendance-table td,
  .lfcrm-history-table td,
  .lfcrm-leave-table td,
  .lfcrm-assignment-results-table td{display:grid!important;grid-template-columns:minmax(88px,31%) minmax(0,1fr)!important;gap:8px!important;width:100%!important;min-width:0!important;padding:8px 2px!important;border:0!important;border-bottom:1px solid #edf1ef!important;box-sizing:border-box!important;overflow-wrap:anywhere!important;word-break:break-word!important;vertical-align:top!important}
  .lfcrm-tasks-table td:last-child,
  .lfcrm-users-table td:last-child,
  .lfcrm-attendance-table td:last-child,
  .lfcrm-history-table td:last-child,
  .lfcrm-leave-table td:last-child,
  .lfcrm-assignment-results-table td:last-child{border-bottom:0!important}
  .lfcrm-tasks-table td::before,
  .lfcrm-users-table td::before,
  .lfcrm-attendance-table td::before,
  .lfcrm-history-table td::before,
  .lfcrm-leave-table td::before,
  .lfcrm-assignment-results-table td::before{content:attr(data-label)!important;display:block!important;color:#68776f!important;font-size:10px!important;font-weight:800!important;text-transform:uppercase!important;letter-spacing:.04em!important;line-height:1.35!important}
  .lfcrm-tasks-table td.empty,
  .lfcrm-users-table td.empty,
  .lfcrm-attendance-table td.empty,
  .lfcrm-history-table td.empty,
  .lfcrm-leave-table td.empty,
  .lfcrm-assignment-results-table td.empty{display:block!important;text-align:center!important;padding:20px!important}
  .lfcrm-tasks-table td.empty::before,
  .lfcrm-users-table td.empty::before,
  .lfcrm-attendance-table td.empty::before,
  .lfcrm-history-table td.empty::before,
  .lfcrm-leave-table td.empty::before,
  .lfcrm-assignment-results-table td.empty::before{display:none!important}
  .lfcrm-tasks-table td[data-label="Actions"],
  .lfcrm-users-table td[data-label="Action"],
  .lfcrm-attendance-table td[data-label="Actions"],
  .lfcrm-assignment-results-table td[data-label="Action"]{display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;gap:7px!important}
  .lfcrm-tasks-table td[data-label="Actions"]::before,
  .lfcrm-users-table td[data-label="Action"]::before,
  .lfcrm-attendance-table td[data-label="Actions"]::before,
  .lfcrm-assignment-results-table td[data-label="Action"]::before{display:block!important;flex:0 0 100%!important;width:100%!important}
  .lfcrm-tasks-table td[data-label="Actions"] .lfcrm-btn,
  .lfcrm-users-table td[data-label="Action"] .lfcrm-btn,
  .lfcrm-attendance-table td[data-label="Actions"] .lfcrm-btn,
  .lfcrm-assignment-results-table td[data-label="Action"] .lfcrm-btn{width:auto!important;min-width:0!important;max-width:100%!important;flex:0 0 auto!important}
  .lfcrm-tasks-table .inline-form{display:flex!important;flex-wrap:wrap!important;gap:6px!important;max-width:100%!important}
  .lfcrm-tasks-table .inline-form select{width:auto!important;max-width:160px!important;min-width:0!important}
  .lfcrm-assignment-results-table td[data-label="Select"]{display:flex!important;align-items:center!important;gap:8px!important}
  .lfcrm-assignment-results-table td[data-label="Select"]::before{content:'SELECT'!important}
  .lfcrm-assignment-results-table td[data-label="Select"] input{width:22px!important;height:22px!important}

  /* Tables not explicitly converted remain contained and horizontally scrollable, never page-wide. */
  .lfcrm-table-wrap{width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch!important}
  .lfcrm-table-wrap > .lfcrm-table:not(.lfcrm-leads-table):not(.lfcrm-tasks-table):not(.lfcrm-users-table):not(.lfcrm-attendance-table):not(.lfcrm-history-table):not(.lfcrm-leave-table):not(.lfcrm-assignment-results-table){min-width:680px!important}

  /* Forms and controls fit the viewport without oversized desktop widths. */
  .section-head,.lfcrm-header{width:100%!important;max-width:100%!important;align-items:stretch!important;flex-direction:column!important;gap:8px!important}
  .quick-actions{width:100%!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
  .quick-actions .lfcrm-btn{width:100%!important;min-width:0!important}
  .lfcrm-action-row{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  .lfcrm-action-row .lfcrm-btn{width:100%!important}
  .form-grid,.detail-grid,.lfcrm-report-grid,.lfcrm-history-grid,.profile-grid,.import-form{grid-template-columns:1fr!important;width:100%!important;min-width:0!important}
  .form-grid label,.form-grid input,.form-grid select,.form-grid textarea{min-width:0!important;max-width:100%!important}
  .lfcrm-modal{width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;padding:15px!important}
  .lfcrm-overlay{padding:10px!important}

  /* Reports: controls stack cleanly; summary cards stay two-up when useful. */
  .lfcrm-report-filters{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
  .lfcrm-report-filters .lfcrm-btn{width:100%!important}
  .lfcrm-report-summary{grid-template-columns:1fr 1fr!important;gap:9px!important}
  .lfcrm-report-summary>div{min-width:0!important;overflow-wrap:anywhere!important}

  /* Attendance/field cards and chat. */
  .attendance-status{align-items:flex-start!important;flex-direction:column!important;gap:8px!important}
  .field-attendance-card .lfcrm-btn{width:auto!important;max-width:100%!important}
  .lfcrm-chat-layout{grid-template-columns:1fr!important}
  .lfcrm-chat-messages{height:52vh!important;min-height:280px!important}
  .chat-compose{flex-wrap:wrap!important;gap:8px!important}
  .chat-compose .lfcrm-btn{width:auto!important}

  /* Knowledge Base buttons remain touch-friendly but do not become oversized. */
  .lfcrm-kb-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}
  .lfcrm-kb-actions .lfcrm-btn{width:100%!important;min-width:0!important}

  /* Never allow long email/URL/content to widen the viewport. */
  .lfcrm-app a,.lfcrm-app strong,.lfcrm-app small,.lfcrm-app p,.lfcrm-app td,.lfcrm-app label{overflow-wrap:anywhere!important;word-break:break-word!important}
  .lfcrm-app img,.lfcrm-app iframe{max-width:100%!important}
}

/* ========================================================================
 * LeadFlow CRM 2.6.2.17 — MOBILE ACCORDION TABLE LAYER
 * Desktop/tablet layout is intentionally untouched.
 * ======================================================================== */
@media screen and (max-width: 767px){
  /* Every CRM data table uses the same compact open/close card pattern. */
  .lfcrm-table-wrap{width:100%!important;max-width:100%!important;overflow:visible!important}
  .lfcrm-table-wrap .lfcrm-table.lfcrm-mobile-accordion-ready{
    display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;border:0!important;border-spacing:0!important
  }
  .lfcrm-table.lfcrm-mobile-accordion-ready thead{display:none!important}
  .lfcrm-table.lfcrm-mobile-accordion-ready tbody{display:block!important;width:100%!important;max-width:100%!important}
  .lfcrm-table.lfcrm-mobile-accordion-ready tr.lfcrm-mobile-row{
    display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
    margin:0 0 10px!important;padding:8px!important;box-sizing:border-box!important;
    background:#fff!important;border:1px solid #dfe7e2!important;border-radius:13px!important;
    box-shadow:0 2px 10px rgba(15,23,42,.05)!important;overflow:hidden!important
  }
  .lfcrm-table.lfcrm-mobile-accordion-ready tr.lfcrm-mobile-row td{
    width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
    padding:8px 2px!important;border:0!important;border-bottom:1px solid #edf1ef!important;
    text-align:left!important;overflow-wrap:anywhere!important;word-break:break-word!important;
    display:grid!important;grid-template-columns:minmax(76px,30%) minmax(0,1fr)!important;gap:8px!important;
  }
  .lfcrm-table.lfcrm-mobile-accordion-ready tr.lfcrm-mobile-row td:last-child{border-bottom:0!important}
  .lfcrm-table.lfcrm-mobile-accordion-ready tr.lfcrm-mobile-row td::before{
    content:attr(data-label)!important;display:block!important;min-width:0!important;
    color:#68776f!important;font-size:10px!important;font-weight:800!important;
    text-transform:uppercase!important;letter-spacing:.04em!important;line-height:1.35!important
  }
  /* The first/primary field is always visible and acts as the accordion header. */
  .lfcrm-table.lfcrm-mobile-accordion-ready tr.lfcrm-mobile-row td.lfcrm-mobile-row-head{
    display:block!important;position:relative!important;min-height:48px!important;
    padding:9px 86px 9px 2px!important;border-bottom:1px solid #edf1ef!important
  }
  .lfcrm-table.lfcrm-mobile-accordion-ready tr.lfcrm-mobile-row td.lfcrm-mobile-row-head::before{display:none!important}
  .lfcrm-table.lfcrm-mobile-accordion-ready tr.lfcrm-mobile-row td.lfcrm-mobile-row-head strong{
    display:block!important;color:#17221d!important;font-size:15px!important;line-height:1.3!important
  }
  .lfcrm-table.lfcrm-mobile-accordion-ready tr.lfcrm-mobile-row td.lfcrm-mobile-row-head small{
    display:block!important;margin-top:3px!important;color:#6b7a72!important
  }
  .lfcrm-mobile-row-toggle{
    position:absolute!important;right:2px!important;top:50%!important;transform:translateY(-50%)!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;
    width:76px!important;min-width:76px!important;height:34px!important;padding:5px 8px!important;
    margin:0!important;border:1px solid #cbd9d0!important;border-radius:9px!important;
    background:#f4faf6!important;color:#16834d!important;font-size:12px!important;font-weight:800!important;
    line-height:1!important;cursor:pointer!important;box-sizing:border-box!important
  }
  .lfcrm-mobile-row-toggle-icon{font-size:16px!important;line-height:1!important;transition:transform .15s ease!important}
  .lfcrm-mobile-row.is-open .lfcrm-mobile-row-toggle{background:#16834d!important;color:#fff!important;border-color:#16834d!important}
  .lfcrm-mobile-row.is-open .lfcrm-mobile-row-toggle-icon{transform:rotate(180deg)!important}

  /* Closed: only the primary row header is shown. Open: all fields/actions appear. */
  .lfcrm-table.lfcrm-mobile-accordion-ready tr.lfcrm-mobile-row.is-collapsed td:not(.lfcrm-mobile-row-head){display:none!important}
  .lfcrm-table.lfcrm-mobile-accordion-ready tr.lfcrm-mobile-row.is-collapsed td.lfcrm-mobile-row-head{border-bottom:0!important}
  .lfcrm-table.lfcrm-mobile-accordion-ready tr.lfcrm-mobile-row.is-open td:not(.lfcrm-mobile-row-head){display:grid!important}

  /* Lead manager/admin checkbox stays available after opening the card. */
  .lfcrm-table.lfcrm-mobile-accordion-ready td[data-label="Select"] input,
  .lfcrm-table.lfcrm-mobile-accordion-ready td[data-label=""] input{max-width:24px!important}

  /* Actions never become full-width desktop-sized buttons on a phone. */
  .lfcrm-table.lfcrm-mobile-accordion-ready td[data-label="Actions"],
  .lfcrm-table.lfcrm-mobile-accordion-ready td[data-label="Action"]{
    display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;gap:7px!important
  }
  .lfcrm-table.lfcrm-mobile-accordion-ready td[data-label="Actions"]::before,
  .lfcrm-table.lfcrm-mobile-accordion-ready td[data-label="Action"]::before{
    display:block!important;flex:0 0 100%!important;width:100%!important
  }
  .lfcrm-table.lfcrm-mobile-accordion-ready td[data-label="Actions"] .lfcrm-btn,
  .lfcrm-table.lfcrm-mobile-accordion-ready td[data-label="Action"] .lfcrm-btn{
    display:inline-flex!important;flex:0 0 auto!important;width:auto!important;min-width:0!important;max-width:145px!important;
    min-height:36px!important;padding:7px 12px!important;margin:0!important;white-space:nowrap!important
  }
  /* Preserve the normal mobile lead card typography while using the accordion. */
  .lfcrm-leads-table.lfcrm-mobile-accordion-ready tr.lfcrm-mobile-row td[data-label="Lead"]{padding:9px 86px 9px 2px!important}
  .lfcrm-leads-table.lfcrm-mobile-accordion-ready tr.lfcrm-mobile-row td[data-label="Lead"] strong{font-size:17px!important}
  .lfcrm-leads-table.lfcrm-mobile-accordion-ready tr.lfcrm-mobile-row td[data-label="SL. No."]{font-weight:800!important;color:#17221d!important}

  /* Empty rows remain simple messages, not accordions. */
  .lfcrm-table.lfcrm-mobile-accordion-ready tr.lfcrm-mobile-empty-row td.empty{display:block!important;padding:20px!important;text-align:center!important}
  .lfcrm-table.lfcrm-mobile-accordion-ready tr.lfcrm-mobile-empty-row td.empty::before{display:none!important}
}

@media screen and (max-width: 767px){
  /* Closed cards must hide action cells as well; the header Open button remains visible. */
  .lfcrm-table.lfcrm-mobile-accordion-ready tr.lfcrm-mobile-row.is-collapsed td[data-label="Actions"],
  .lfcrm-table.lfcrm-mobile-accordion-ready tr.lfcrm-mobile-row.is-collapsed td[data-label="Action"]{display:none!important}
}

/* LeadFlow CRM 2.6.2.19 — Task editor, progress and mobile detail polish */
.lfcrm-task-editor-field{min-width:0}
.lfcrm-task-editor-field>label{display:block;margin-bottom:7px;font-weight:700}
.lfcrm-task-form .wp-editor-wrap{width:100%;max-width:100%;border:1px solid #d9e3dd;border-radius:10px;overflow:hidden;background:#fff}
.lfcrm-task-form .mce-container,.lfcrm-task-form .wp-editor-container,.lfcrm-task-form .quicktags-toolbar{max-width:100%}
.lfcrm-task-form .mce-toolbar-grp{background:#f8faf9;border-bottom:1px solid #e2e9e5}
.lfcrm-task-form .mce-edit-area iframe{min-height:210px}
.lfcrm-task-description{margin-top:7px;color:#52645a;line-height:1.55;font-size:13px}
.lfcrm-task-description p{margin:.35em 0}
.lfcrm-task-description h2,.lfcrm-task-description h3,.lfcrm-task-description h4{color:#18241e;margin:.55em 0 .3em;line-height:1.25}
.lfcrm-task-description ul,.lfcrm-task-description ol{margin:.35em 0 .55em 1.25em}
.lfcrm-task-description strong{color:#18241e}
.lfcrm-task-description blockquote{margin:.5em 0;padding:.45em .75em;border-left:3px solid #2563eb;background:#f5f8ff}
.lfcrm-task-remark{line-height:1.5;font-size:13px;color:#44554c}
.lfcrm-task-progress{height:8px;min-width:80px;max-width:140px;background:#e8eee9;border-radius:999px;overflow:hidden;display:inline-block;vertical-align:middle;margin-right:6px}
.lfcrm-task-progress span{display:block;height:100%;background:#2563eb;border-radius:999px}
.lfcrm-task-status-form{align-items:flex-start!important}
.lfcrm-task-status-form select{min-width:105px!important}
.lfcrm-task-status-form textarea{width:180px!important;min-height:56px!important;resize:vertical!important;padding:7px!important;border:1px solid #d9e3dd!important;border-radius:8px!important;background:#fff!important;font:inherit!important}

@media screen and (max-width:767px){
  .lfcrm-task-form .wp-editor-wrap{font-size:13px}
  .lfcrm-task-form .mce-toolbar-grp .mce-btn{margin:1px!important}
  .lfcrm-task-form .mce-edit-area iframe{min-height:180px!important;height:180px!important}
  .lfcrm-task-description{font-size:13px;line-height:1.5;max-height:none;overflow-wrap:anywhere}
  .lfcrm-task-description img,.lfcrm-task-description table{max-width:100%!important;height:auto!important}
  .lfcrm-task-status-form{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important;gap:7px!important}
  .lfcrm-task-status-form select{width:100%!important;max-width:none!important;min-width:0!important}
  .lfcrm-task-status-form textarea{grid-column:1/-1;width:100%!important;box-sizing:border-box!important;min-height:58px!important}
  .lfcrm-task-status-form .lfcrm-btn{grid-column:1/-1!important;width:100%!important}
  .lfcrm-tasks-table td[data-label="Progress"]{align-items:center!important}
  .lfcrm-task-progress{max-width:110px!important;min-width:70px!important}
  .lfcrm-tasks-table td[data-label="Task"] strong{font-size:16px!important}
}


/* LeadFlow CRM 2.6.2.20 — task table/action layout fix */
.lfcrm-tasks-table{table-layout:fixed;width:100%;}
.lfcrm-tasks-table th:nth-child(1),.lfcrm-tasks-table td:nth-child(1){width:48%;}
.lfcrm-tasks-table th:nth-child(2),.lfcrm-tasks-table td:nth-child(2){width:8%;}
.lfcrm-tasks-table th:nth-child(3),.lfcrm-tasks-table td:nth-child(3){width:6%;}
.lfcrm-tasks-table th:nth-child(4),.lfcrm-tasks-table td:nth-child(4){width:7%;}
.lfcrm-tasks-table th:nth-child(5),.lfcrm-tasks-table td:nth-child(5){width:7%;}
.lfcrm-tasks-table th:nth-child(6),.lfcrm-tasks-table td:nth-child(6){width:7%;}
.lfcrm-tasks-table th:nth-child(7),.lfcrm-tasks-table td:nth-child(7){width:7%;}
.lfcrm-tasks-table th:nth-child(8),.lfcrm-tasks-table td:nth-child(8){width:10%;}
.lfcrm-tasks-table td{vertical-align:top;}
.lfcrm-tasks-table .lfcrm-task-description{max-height:330px;overflow:auto;padding-right:10px;scrollbar-width:thin;}
.lfcrm-tasks-table td[data-label="Actions"]{min-width:290px;}
.lfcrm-task-status-form{display:grid!important;grid-template-columns:1fr 1fr;gap:7px;align-items:start!important;width:100%;}
.lfcrm-task-status-form select{width:100%!important;min-width:0!important;box-sizing:border-box;}
.lfcrm-task-status-form textarea{grid-column:1 / -1;width:100%!important;box-sizing:border-box;min-height:52px!important;}
.lfcrm-task-status-form .lfcrm-btn{grid-column:1 / -1;width:100%;}
.lfcrm-task-status-form + .lfcrm-btn,.lfcrm-task-status-form ~ .lfcrm-btn{margin-top:7px;}
@media screen and (max-width:767px){
 .lfcrm-tasks-table{table-layout:auto;}
 .lfcrm-tasks-table th,.lfcrm-tasks-table td{width:auto!important;}
 .lfcrm-tasks-table .lfcrm-task-description{max-height:none;overflow:visible;padding-right:0;}
 .lfcrm-tasks-table td[data-label="Actions"]{min-width:0;}
 .lfcrm-task-status-form{grid-template-columns:1fr 1fr!important;}
}


/* Lead import/export field selector */
.import-field-selector{grid-column:1/-1;border:1px solid #dbe4e8;border-radius:12px;padding:14px;background:#fbfdfd}.import-field-selector .section-head{margin-bottom:10px}.lfcrm-inline-check{display:flex!important;align-items:center;gap:7px;font-weight:700!important;white-space:nowrap}.lfcrm-import-fields{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 14px;max-height:260px;overflow:auto;padding:8px;background:#fff;border:1px solid #e5ecef;border-radius:9px}.lfcrm-import-fields label{display:flex!important;align-items:center;gap:7px;font-size:13px!important;font-weight:500!important;margin:0!important}.lfcrm-import-fields input{width:auto!important;margin:0!important}@media(max-width:767px){.lfcrm-import-fields{grid-template-columns:1fr 1fr;max-height:320px}.import-field-selector .section-head{align-items:flex-start;gap:10px}.lfcrm-inline-check{font-size:12px!important}.import-field-selector{padding:10px}}

/* v2.6.2.28: compact field attendance corrections and report filters */
.lfcrm-att-edit-form{display:contents}.lfcrm-att-edit-form input[type=number]{width:100%;min-width:90px;max-width:130px}.lfcrm-report-filters label{min-width:150px}.lfcrm-attendance-unified-report .lfcrm-report-filters{align-items:end;gap:10px}.lfcrm-attendance-unified-report .lfcrm-report-filters select,.lfcrm-attendance-unified-report .lfcrm-report-filters input{max-width:100%}@media(max-width:767px){.lfcrm-att-edit-form{display:contents}.lfcrm-att-edit-form input[type=number]{width:100%;max-width:none}.lfcrm-attendance-unified-report .lfcrm-report-filters label{width:100%;min-width:0}}

/* v2.6.2.34 — compact field visit capture and report */
.lfcrm-field-visit-open{width:38px!important;min-width:38px!important;height:38px!important;padding:0!important;display:inline-flex!important;align-items:center;justify-content:center;font-size:18px!important;border-radius:10px!important}
.lfcrm-field-visit-dialog{width:min(520px,calc(100vw - 28px));max-height:90vh;overflow-y:auto;padding:22px!important}
.lfcrm-field-visit-form{display:grid;gap:12px}
.lfcrm-field-visit-form label{display:grid;gap:6px;font-weight:600}
.lfcrm-field-visit-form input[type=text],.lfcrm-field-visit-form textarea{width:100%;min-width:0}
.lfcrm-field-visit-location{padding:9px 11px;border-radius:8px;background:var(--lfcrm-soft,#f3f7f6);font-size:12px;line-height:1.4}
.lfcrm-field-visit-preview-image{display:block;max-width:100%;max-height:220px;object-fit:contain;border-radius:10px;margin:0 auto}
.lfcrm-field-visit-thumb{display:block;width:76px;height:62px;object-fit:cover;border-radius:7px;border:1px solid #dce5e1}
.lfcrm-visit-coordinates{display:block;font-size:11px;opacity:.75;margin-top:3px;overflow-wrap:anywhere}
.lfcrm-field-visit-report{margin-top:16px}
.lfcrm-field-visit-report .section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap}
@media(max-width:767px){.lfcrm-field-visit-dialog{padding:17px!important}.lfcrm-field-visit-open{width:34px!important;min-width:34px!important;height:34px!important}.lfcrm-field-visit-report .lfcrm-field-visit-thumb{width:100%;max-width:180px;height:auto;max-height:140px}}


/* v2.6.2.35 — Field Visit card and compact responsive modal */
.lfcrm-field-visit-modal[hidden]{display:none!important}
.lfcrm-module-cards .lfcrm-module-card.lfcrm-field-visit-open{font:inherit;text-align:left;color:inherit;cursor:pointer;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:7px;width:100%;min-width:0;min-height:110px;padding:16px;background:#fff;border:1px solid #e4e8ef;border-radius:14px;box-shadow:0 2px 10px rgba(15,23,42,.03)}
.lfcrm-module-cards .lfcrm-module-card.lfcrm-field-visit-open:hover{border-color:#b7d9c6;box-shadow:0 5px 16px rgba(15,23,42,.07)}
.lfcrm-visit-card-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;background:#edf8f1;font-size:20px}
.lfcrm-module-cards .lfcrm-module-card.lfcrm-field-visit-open b{font-size:14px;line-height:1.35}
.lfcrm-module-cards .lfcrm-module-card.lfcrm-field-visit-open>span:last-child{font-size:12px;line-height:1.45;color:#687386}
.lfcrm-field-visit-dialog{box-sizing:border-box;width:min(480px,calc(100vw - 24px))!important;max-width:480px!important;max-height:calc(100dvh - 24px)!important;overflow-y:auto;overscroll-behavior:contain;padding:18px!important;border-radius:16px!important;background:#fff}
.lfcrm-field-visit-dialog>.lfcrm-field-visit-close{position:absolute;right:10px;top:8px;width:36px;height:36px;border:0;border-radius:9px;background:#f3f5f7;font-size:25px;line-height:1;cursor:pointer;z-index:3}
.lfcrm-field-visit-dialog h2{font-size:20px;line-height:1.25;padding-right:34px;margin:4px 0 8px}
.lfcrm-field-visit-dialog>p.muted{font-size:12px;line-height:1.45;margin:0 0 12px}
.lfcrm-field-visit-form{display:grid;gap:10px;min-width:0}
.lfcrm-field-visit-form label{display:grid;grid-template-columns:auto auto;justify-content:start;align-items:center;gap:4px 8px;font-size:12px}
.lfcrm-field-visit-form label input,.lfcrm-field-visit-form label textarea{grid-column:1/-1;min-width:0;width:100%;box-sizing:border-box;font-size:14px}
.lfcrm-optional-label{font-size:10px;font-weight:500;color:#7b8494;background:#f1f5f9;border-radius:5px;padding:2px 6px}
.lfcrm-visit-camera-row{display:grid;gap:6px}
.lfcrm-field-visit-camera-trigger{width:100%;display:flex!important;align-items:center;justify-content:center;gap:7px;min-height:42px}
.lfcrm-field-visit-camera-trigger small{font-size:10px;opacity:.85}
.lfcrm-field-visit-file{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important}
.lfcrm-field-visit-location{font-size:11px;line-height:1.35;padding:8px 10px;overflow-wrap:anywhere}
.lfcrm-field-visit-preview-image{max-height:160px;width:auto;max-width:100%;object-fit:contain}
.lfcrm-visit-form-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:2px}
.lfcrm-visit-form-actions .lfcrm-btn{width:100%;min-width:0}
@media(max-width:767px){.lfcrm-overlay.lfcrm-field-visit-modal{padding:8px!important;align-items:center;justify-content:center}.lfcrm-field-visit-dialog{width:calc(100vw - 16px)!important;max-width:460px!important;max-height:calc(100dvh - 16px)!important;padding:14px!important;border-radius:13px!important}.lfcrm-field-visit-dialog h2{font-size:18px}.lfcrm-field-visit-form{gap:8px}.lfcrm-field-visit-form label input,.lfcrm-field-visit-form label textarea{font-size:16px!important}.lfcrm-visit-form-actions{position:sticky;bottom:-14px;background:#fff;padding:8px 0 2px}.lfcrm-module-cards .lfcrm-module-card.lfcrm-field-visit-open{min-height:100px;padding:12px}.lfcrm-module-cards .lfcrm-module-card.lfcrm-field-visit-open b{font-size:12px}}

/* v2.6.2.36 — Field Visit card sits after follow-ups and uses full responsive card width */
.lfcrm-field-visit-card-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0 0 18px;min-width:0}
.lfcrm-field-visit-card-row .lfcrm-module-card.lfcrm-field-visit-open{box-sizing:border-box;font:inherit;text-align:left;color:inherit;cursor:pointer;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:7px;width:100%;max-width:100%;min-width:0;min-height:118px;padding:16px;background:#fff;border:1px solid #e4e8ef;border-radius:14px;box-shadow:0 4px 18px rgba(15,23,42,.04)}
.lfcrm-field-visit-card-row .lfcrm-module-card.lfcrm-field-visit-open b{display:block;font-size:15px;line-height:1.35;overflow-wrap:anywhere}
.lfcrm-field-visit-card-row .lfcrm-module-card.lfcrm-field-visit-open>span:last-child{font-size:12px;line-height:1.45;color:#687386;overflow-wrap:anywhere}
.lfcrm-field-visit-card-row .lfcrm-module-card.lfcrm-field-visit-open:hover{border-color:#b7d9c6;box-shadow:0 8px 24px rgba(37,99,235,.08)}
@media(max-width:760px){.lfcrm-field-visit-card-row{grid-template-columns:minmax(0,1fr);gap:10px;margin-bottom:12px}.lfcrm-field-visit-card-row .lfcrm-module-card.lfcrm-field-visit-open{min-height:88px;padding:12px;gap:5px}.lfcrm-field-visit-card-row .lfcrm-module-card.lfcrm-field-visit-open b{font-size:14px}}

/* v2.6.2.37: Field Visit is a normal dashboard module card, placed before My Leads. */
.lfcrm-module-cards>button.lfcrm-module-card.lfcrm-field-visit-open{box-sizing:border-box;appearance:none;-webkit-appearance:none;width:100%;min-width:0;margin:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:7px;padding:15px;border:1px solid var(--myr-border,#e4e8ef);border-radius:12px;background:#fff;color:inherit;text-align:left;font:inherit;cursor:pointer;box-shadow:none;min-height:100%;}
.lfcrm-module-cards>button.lfcrm-module-card.lfcrm-field-visit-open b{font-size:15px;line-height:1.35;font-weight:700;color:inherit}
.lfcrm-module-cards>button.lfcrm-module-card.lfcrm-field-visit-open>span:not(.lfcrm-visit-card-icon){font-size:12px;line-height:1.45;color:#687386;overflow-wrap:anywhere}
.lfcrm-module-cards>button.lfcrm-module-card.lfcrm-field-visit-open .lfcrm-visit-card-icon{font-size:17px;line-height:1}
.lfcrm-module-cards>button.lfcrm-module-card.lfcrm-field-visit-open .lfcrm-visit-counter{margin-top:auto;padding-top:5px;color:#687386;font-size:12px}
.lfcrm-module-cards>button.lfcrm-module-card.lfcrm-field-visit-open .lfcrm-visit-counter strong{color:#14243a;font-size:15px}
.lfcrm-module-cards>button.lfcrm-module-card.lfcrm-field-visit-open:hover{border-color:#a9d9bd;background:#fbfffc}
@media(max-width:760px){.lfcrm-module-cards>button.lfcrm-module-card.lfcrm-field-visit-open{padding:12px;min-height:100px}.lfcrm-module-cards>button.lfcrm-module-card.lfcrm-field-visit-open b{font-size:15px}}

/* v2.6.2.39: Field Visit is a matching fifth stats card; remark stretches full form width. */
.lfcrm-field-visit-card-row{display:block!important;width:100%;max-width:100%;box-sizing:border-box;margin:0 0 18px!important;min-width:0}
.lfcrm-field-visit-card-row .lfcrm-module-card.lfcrm-field-visit-open{box-sizing:border-box!important;display:flex!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:96px!important;margin:0!important;padding:16px 18px!important;align-items:flex-start!important;justify-content:center!important;gap:6px!important;border:1px solid #e1e9e5!important;border-radius:14px!important;background:#fff!important;color:inherit!important;text-align:left!important;font:inherit!important;box-shadow:0 3px 12px rgba(15,23,42,.035)!important;white-space:normal!important}
.lfcrm-field-visit-card-row .lfcrm-module-card.lfcrm-field-visit-open b{display:block!important;font-size:15px!important;line-height:1.35!important;overflow-wrap:anywhere!important}
.lfcrm-field-visit-card-row .lfcrm-module-card.lfcrm-field-visit-open>span:not(.lfcrm-visit-counter){font-size:12px!important;line-height:1.45!important;color:#687386!important;overflow-wrap:anywhere!important}
.lfcrm-field-visit-card-row .lfcrm-visit-counter{font-size:12px!important;color:#687386!important;margin-top:2px!important}
.lfcrm-field-visit-card-row .lfcrm-visit-counter strong{font-size:14px!important;color:#14243a!important}
.lfcrm-field-visit-form{width:100%;box-sizing:border-box}
.lfcrm-field-visit-form label textarea{width:100%!important;min-height:70px;resize:vertical;box-sizing:border-box}
.lfcrm-field-visit-dialog{width:min(520px,calc(100vw - 24px))!important;max-width:520px!important}
@media(max-width:767px){.lfcrm-field-visit-card-row{margin-bottom:12px!important}.lfcrm-field-visit-card-row .lfcrm-module-card.lfcrm-field-visit-open{padding:13px!important;min-height:88px!important}.lfcrm-field-visit-dialog{width:calc(100vw - 16px)!important;max-width:none!important}.lfcrm-field-visit-form label textarea{font-size:16px!important}}

/* v2.6.2.39 — compact visits counter card in the stats row */
.lfcrm-cards>.lfcrm-field-visit-stat{appearance:none;-webkit-appearance:none;box-sizing:border-box;width:100%;min-width:0;margin:0;padding:14px;background:#fff;border:1px solid var(--myr-border,#e4e8ef);border-radius:12px;box-shadow:0 3px 14px rgba(31,72,52,.045);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;text-align:left;font:inherit;color:inherit;cursor:pointer;min-height:78px}
.lfcrm-cards>.lfcrm-field-visit-stat b{display:block;font-size:24px;line-height:1.2;font-weight:700;color:#111827}
.lfcrm-cards>.lfcrm-field-visit-stat span{display:block;color:#687386;font-size:12px;line-height:1.4}
.lfcrm-cards>.lfcrm-field-visit-stat:hover{border-color:#b7d9c6;background:#fbfffc}
.lfcrm-field-agent-stats{grid-template-columns:repeat(5,minmax(0,1fr))!important}
.lfcrm-field-visit-dialog{width:min(640px,calc(100vw - 32px))!important;max-width:640px!important}
.lfcrm-field-visit-form{width:100%!important;max-width:100%!important;min-width:0!important}
.lfcrm-field-visit-form label{display:grid!important;grid-template-columns:max-content max-content!important;justify-content:stretch!important;align-items:center!important;width:100%!important;min-width:0!important;box-sizing:border-box!important}
.lfcrm-field-visit-form label textarea{display:block!important;grid-column:1/-1!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;resize:vertical!important;min-height:88px!important}
.lfcrm-field-visit-form .lfcrm-visit-form-actions{width:100%!important}
@media(max-width:1100px){.lfcrm-field-agent-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:640px){.lfcrm-field-agent-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}.lfcrm-cards>.lfcrm-field-visit-stat{padding:12px;min-height:76px}.lfcrm-cards>.lfcrm-field-visit-stat b{font-size:21px}.lfcrm-field-visit-dialog{width:calc(100vw - 16px)!important;max-width:none!important;padding:14px!important}.lfcrm-field-visit-form label textarea{font-size:16px!important;min-height:78px!important}}


/* v2.6.2.40 — fix visit statistic card width and full-width remark field */
.lfcrm-cards.lfcrm-field-agent-stats>.lfcrm-field-visit-stat,
.lfcrm-cards>.lfcrm-field-visit-stat.lfcrm-field-visit-open{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  min-height:78px!important;
  height:100%!important;
  box-sizing:border-box!important;
  padding:14px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:4px!important;
  border-radius:12px!important;
  white-space:normal!important;
  text-align:left!important;
}
.lfcrm-cards>.lfcrm-field-visit-stat b{font-size:24px!important;line-height:1.2!important}
.lfcrm-cards>.lfcrm-field-visit-stat span{font-size:12px!important;line-height:1.4!important;white-space:normal!important}
.lfcrm-field-visit-dialog{box-sizing:border-box!important;width:min(560px,calc(100vw - 32px))!important;max-width:560px!important}
.lfcrm-field-visit-form{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;max-width:100%!important;min-width:0!important;gap:10px!important;box-sizing:border-box!important}
.lfcrm-field-visit-form>label{display:grid!important;grid-template-columns:max-content minmax(0,1fr)!important;justify-content:stretch!important;align-items:center!important;gap:6px 8px!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
.lfcrm-field-visit-form>label textarea{grid-column:1/-1!important;display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:96px!important;box-sizing:border-box!important;resize:vertical!important}
.lfcrm-field-visit-form .lfcrm-visit-form-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;max-width:100%!important;gap:8px!important;box-sizing:border-box!important}
.lfcrm-field-visit-form .lfcrm-visit-form-actions .lfcrm-btn{width:100%!important;min-width:0!important;box-sizing:border-box!important}
@media(max-width:640px){
 .lfcrm-field-agent-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .lfcrm-cards.lfcrm-field-agent-stats>.lfcrm-field-visit-stat{min-height:76px!important;padding:12px!important}
 .lfcrm-cards>.lfcrm-field-visit-stat b{font-size:21px!important}
 .lfcrm-field-visit-dialog{width:calc(100vw - 16px)!important;max-width:none!important;max-height:calc(100dvh - 16px)!important;padding:14px!important}
 .lfcrm-field-visit-form>label textarea{font-size:16px!important;min-height:84px!important}
}


/* v2.6.2.41: field visit card and admin deletion controls */
.lfcrm-cards.lfcrm-field-agent-stats>.lfcrm-field-visit-stat{grid-column:auto!important}
.lfcrm-cards>.lfcrm-field-visit-stat .lfcrm-visit-stat-camera{display:inline-block!important;font-size:12px!important;line-height:1!important;margin-right:4px!important;vertical-align:middle!important}
.lfcrm-field-visit-admin-actions{display:flex;justify-content:flex-end;align-items:center;margin:0 0 12px;gap:8px}
.lfcrm-field-visit-admin-actions form{margin:0}
.lfcrm-field-visits-table .lfcrm-field-visit-thumb{width:68px;height:54px;object-fit:cover;border-radius:7px;display:block}
.lfcrm-field-visits-table .lfcrm-visit-coordinates{display:block;font-size:11px;color:#687386;margin-top:3px;overflow-wrap:anywhere}
@media(max-width:640px){
 .lfcrm-cards.lfcrm-field-agent-stats>.lfcrm-field-visit-stat{grid-column:1/-1!important;width:100%!important}
 .lfcrm-field-visit-admin-actions{justify-content:stretch}
 .lfcrm-field-visit-admin-actions .lfcrm-btn{width:100%}
}


/* v2.6.2.42: Admin dashboard customization */
.lfcrm-dashboard-layout-settings{margin:18px 0;padding:20px}
.lfcrm-dashboard-layout-settings h3{margin:22px 0 6px;padding-bottom:8px;border-bottom:1px solid #e5eaf0}
.lfcrm-dashboard-sortable{display:flex;flex-direction:column;gap:7px;max-width:900px;margin:10px 0 18px}
.lfcrm-dashboard-sort-row{display:flex;align-items:center;gap:12px;min-height:48px;padding:10px 12px;background:#fff;border:1px solid #dfe6ed;border-radius:10px;cursor:grab}
.lfcrm-dashboard-sort-row:active{cursor:grabbing}
.lfcrm-dashboard-sort-row.is-dragging{opacity:.45;border-style:dashed}
.lfcrm-dashboard-drag{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:7px;background:#f1f5f9;color:#64748b;font-size:17px}
.lfcrm-dashboard-sort-title{font-weight:650;flex:1;min-width:0}
.lfcrm-dashboard-sort-row label{display:flex;align-items:center;gap:6px;margin:0!important;white-space:nowrap}
.lfcrm-dashboard-sort-row input[type=checkbox]{margin:0}
.lfcrm-dashboard-layout-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
.lfcrm-dashboard-section{min-width:0}
.lfcrm-dashboard-section-stats .lfcrm-cards{margin-top:14px}
.lfcrm-dashboard-section-modules .lfcrm-module-cards{margin-bottom:14px}
@media(max-width:600px){.lfcrm-dashboard-sort-row{align-items:flex-start;flex-wrap:wrap}.lfcrm-dashboard-sort-title{flex-basis:calc(100% - 45px)}.lfcrm-dashboard-sort-row label{margin-left:40px!important}}


/* PWA install action on the CRM login page */
.lfcrm-install-app-wrap{margin-top:18px;padding-top:16px;border-top:1px solid #e5ece7;display:flex;flex-direction:column;align-items:stretch;gap:8px}
.lfcrm-install-app{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;white-space:normal}
.lfcrm-install-app[hidden],.lfcrm-install-app-help[hidden]{display:none!important}
.lfcrm-install-app-help{margin:0;padding:11px 12px;border-radius:9px;background:#f2f7f4;color:#34483b;font-size:13px;line-height:1.5}
@media(max-width:600px){.lfcrm-login{width:calc(100% - 24px)!important;max-width:430px!important;margin:20px auto!important;padding:20px!important}.lfcrm-install-app{min-height:46px;font-size:14px}}

/* v2.6.2.46: install button must remain visible even when install prompt events are unavailable */
.lfcrm-install-app-wrap{display:flex!important;visibility:visible!important;opacity:1!important}
.lfcrm-install-app{display:flex!important;width:100%;min-height:46px;cursor:pointer}
.lfcrm-install-app[hidden]{display:none!important}


/* v2.6.2.49: compact field-agent live duty counter */
.lfcrm-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.lfcrm-duty-counter{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:9px 13px;border:1px solid #dce8e1;border-radius:12px;background:#fff;box-shadow:0 3px 12px rgba(15,35,25,.04);min-width:210px}
.lfcrm-duty-counter-label{font-size:12px;color:#637267;font-weight:600}
.lfcrm-duty-counter-value{font-size:18px;line-height:1.1;color:#142d20;font-variant-numeric:tabular-nums;white-space:nowrap}
.lfcrm-duty-counter-state{font-size:11px;color:#16834a;background:#eaf8ef;border-radius:20px;padding:3px 7px;white-space:nowrap}
.lfcrm-duty-counter.is-running{border-color:#b8e3c7}
.lfcrm-duty-counter.is-running .lfcrm-duty-counter-value{color:#16834a}
@media(max-width:767px){
 .lfcrm-header{align-items:flex-start}
 .lfcrm-duty-counter{min-width:0;width:auto;max-width:100%;padding:7px 10px;gap:7px}
 .lfcrm-duty-counter-value{font-size:16px}
 .lfcrm-duty-counter-label{font-size:11px}
}

/* LeadFlow CRM 2.6.2.50 — fix admin Attendance & Field Reports mobile overflow */
@media screen and (max-width:767px){
  .lfcrm-app,
  .lfcrm-app .lfcrm-shell,
  .lfcrm-app .lfcrm-content,
  .lfcrm-app .lfcrm-panel,
  .lfcrm-app .lfcrm-attendance-unified-report,
  .lfcrm-app .lfcrm-field-visit-report{
    box-sizing:border-box!important;min-width:0!important;max-width:100%!important;
  }
  .lfcrm-app .lfcrm-table-wrap{
    display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
    box-sizing:border-box!important;overflow-x:visible!important;overflow-y:visible!important;
  }
  /* A generic table rule was giving mobile accordion cards a 680px minimum width. */
  .lfcrm-app .lfcrm-table-wrap > .lfcrm-table.lfcrm-mobile-accordion-ready,
  .lfcrm-app .lfcrm-table-wrap > .lfcrm-table.lfcrm-mobile-accordion-ready:not(.lfcrm-leads-table):not(.lfcrm-tasks-table):not(.lfcrm-users-table):not(.lfcrm-attendance-table):not(.lfcrm-history-table):not(.lfcrm-leave-table):not(.lfcrm-assignment-results-table){
    display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
    table-layout:fixed!important;box-sizing:border-box!important;
  }
  .lfcrm-app .lfcrm-table.lfcrm-mobile-accordion-ready tbody{
    width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
  }
  .lfcrm-app .lfcrm-table.lfcrm-mobile-accordion-ready tr.lfcrm-mobile-row{
    width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
    margin-left:0!important;margin-right:0!important;
  }
  .lfcrm-app .lfcrm-table.lfcrm-mobile-accordion-ready tr.lfcrm-mobile-row td{
    min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
  }
  .lfcrm-app .lfcrm-table.lfcrm-mobile-accordion-ready tr.lfcrm-mobile-row td.lfcrm-mobile-row-head{padding-right:88px!important;}
  .lfcrm-app .lfcrm-mobile-row-toggle{right:2px!important;max-width:76px!important;}
}

/* v2.6.2.53 multi-select lead filters */
.lfcrm-multi-filter-label{display:flex;flex-direction:column;gap:5px;min-width:190px;font-size:12px;font-weight:600}
.lfcrm-multi-filter-label .description{font-size:10px;font-weight:400;color:#687a70}
.lfcrm-multi-filter{min-height:94px!important;height:auto!important;padding:5px!important;max-width:100%;border:1px solid #d7e3dc;border-radius:8px;background:#fff}
.lfcrm-multi-filter option{padding:4px 6px}
@media(max-width:767px){.lfcrm-multi-filter-label{min-width:0;width:100%}.lfcrm-multi-filter{width:100%;min-height:110px!important}}

/* v2.6.2.54 leave management polish */
.lfcrm-leave-request-form{gap:12px}
.lfcrm-leave-table td[data-label="HR / Reviewer Remark"]{min-width:150px;white-space:normal}
@media(max-width:767px){.lfcrm-leave-request-form{grid-template-columns:1fr!important}.lfcrm-leave-request-form label[style*="grid-column"]{grid-column:1!important}.lfcrm-leave-table td{overflow-wrap:anywhere}}

/* LeadFlow CRM 2.6.2.60 — compact task list and on-demand task form */
.lfcrm-task-create-toggle{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;align-self:center}
.lfcrm-task-create-icon{font-size:20px;line-height:1;font-weight:600}
.lfcrm-task-create-panel[hidden]{display:none!important}
.lfcrm-task-create-panel{margin-top:10px;padding:14px!important}
.lfcrm-task-form-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;color:#1d3027}
.lfcrm-task-close{border:0;background:#edf3ef;color:#40574a;border-radius:8px;width:30px;height:30px;font-size:22px;line-height:1;cursor:pointer}
.lfcrm-tasks-table .lfcrm-task-summary-head{display:flex;align-items:center;gap:8px;justify-content:space-between}
.lfcrm-tasks-table .lfcrm-task-summary-head strong{font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.lfcrm-task-expand{flex:0 0 25px;width:25px;height:25px;padding:0!important;border:1px solid #cbd9d0!important;border-radius:7px!important;background:#f4f8f5!important;color:#176b45!important;font-size:18px!important;font-weight:600;line-height:1!important;cursor:pointer}
.lfcrm-task-expand:hover{background:#e5f2e9!important}
.lfcrm-task-preview{font-size:12px;line-height:1.4;color:#66766d;margin-top:4px;overflow-wrap:anywhere}
.lfcrm-task-full-description{margin-top:8px;padding:9px 10px;border:1px solid #e1e9e3;border-radius:8px;background:#fbfdfb;max-height:260px;overflow:auto;font-size:12px;line-height:1.5}
.lfcrm-task-full-description[hidden]{display:none!important}
.lfcrm-task-form label{font-size:12px!important;gap:5px!important}
.lfcrm-task-form input:not([type=hidden]),.lfcrm-task-form select,.lfcrm-task-form textarea{padding:8px 10px!important;font-size:13px!important;min-height:36px}
.lfcrm-task-form .wp-editor-wrap{margin-top:4px}
@media(max-width:767px){
 .lfcrm-task-create-toggle{width:auto!important;min-width:0!important;padding:9px 11px!important;font-size:12px!important}
 .lfcrm-task-create-panel{padding:11px!important}
 .lfcrm-tasks-table .lfcrm-task-summary-head strong{font-size:13px!important}
 .lfcrm-task-preview{padding-right:30px}
 .lfcrm-task-full-description{max-height:220px}
}


/* LeadFlow CRM 2.6.2.61 — keep task action controls visible and compact */
.lfcrm-tasks-table{min-width:1180px;width:100%;table-layout:auto}
.lfcrm-tasks-table th:last-child,.lfcrm-tasks-table td:last-child{width:168px;min-width:168px;max-width:190px;white-space:normal;vertical-align:top}
.lfcrm-tasks-table td[data-label="Actions"]{padding:8px!important;overflow:visible}
.lfcrm-tasks-table td[data-label="Actions"] .lfcrm-task-status-form{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:6px!important;align-items:start;width:100%;min-width:0;margin:0 0 7px!important}
.lfcrm-tasks-table td[data-label="Actions"] select{box-sizing:border-box;width:100%!important;min-width:0!important;max-width:100%;height:34px;min-height:34px;padding:5px 6px!important;font-size:12px!important}
.lfcrm-tasks-table td[data-label="Actions"] textarea{box-sizing:border-box;grid-column:1/-1;width:100%!important;min-width:0!important;max-width:100%;min-height:52px;padding:7px 8px!important;font-size:12px!important;resize:vertical}
.lfcrm-tasks-table td[data-label="Actions"] .lfcrm-task-status-form button{grid-column:1/-1;width:100%!important;min-width:0!important;margin:0!important;padding:7px 8px!important;min-height:31px;font-size:12px!important}
.lfcrm-tasks-table td[data-label="Actions"]>.lfcrm-btn,.lfcrm-tasks-table td[data-label="Actions"]>form .lfcrm-btn{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;max-width:100%;min-width:0!important;margin:2px 4px 2px 0!important;padding:6px 9px!important;font-size:12px!important;white-space:nowrap}
.lfcrm-tasks-table td[data-label="Actions"] form.inline-form{min-width:0;max-width:100%;margin:0!important}
.lfcrm-tasks-table td[data-label="Actions"] .danger{background:#e32929!important}
@media(max-width:1100px){.lfcrm-tasks-table{min-width:1180px}.lfcrm-table-wrap{overflow-x:auto!important;max-width:100%;-webkit-overflow-scrolling:touch}}
@media(max-width:767px){.lfcrm-tasks-table{min-width:1180px}.lfcrm-tasks-table td[data-label="Actions"]{min-width:168px!important}.lfcrm-tasks-table td[data-label="Actions"] .lfcrm-task-status-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}}
/* Task overview cards */
.lfcrm-task-overview-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px;margin-bottom:18px}.lfcrm-task-group-card{min-width:0;background:#fff;border:1px solid #dce7e1;border-radius:12px;padding:14px 16px;box-shadow:0 3px 12px rgba(20,50,35,.04)}.lfcrm-task-group-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:1px solid #edf1ee}.lfcrm-task-group-head h3{margin:0;font-size:15px;font-weight:750}.lfcrm-task-count{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;padding:0 8px;border-radius:9px;background:#e9f7ee;color:#087443;font-weight:800;font-size:13px}.lfcrm-task-numbered-list{list-style:none!important;margin:0!important;padding:0!important}.lfcrm-task-numbered-list li{display:flex;align-items:flex-start;gap:10px;padding:11px 0;border-bottom:1px solid #f0f3f1}.lfcrm-task-numbered-list li:last-child{border-bottom:0;padding-bottom:0}.lfcrm-task-number{display:flex;flex:0 0 26px;width:26px;height:26px;align-items:center;justify-content:center;border-radius:8px;background:#f0f5ff;color:#245fe8;font-size:12px;font-weight:800}.lfcrm-task-card-content{min-width:0;flex:1}.lfcrm-task-card-content strong{display:block;font-size:13px;line-height:1.4;overflow-wrap:anywhere}.lfcrm-task-card-content p{margin:3px 0 5px;color:#65736c;font-size:12px;line-height:1.45;overflow-wrap:anywhere}.lfcrm-task-card-content small,.lfcrm-task-assigned-by{display:block;color:#718078;font-size:11px;line-height:1.4;margin-top:3px}.lfcrm-task-empty{font-size:12px;margin:12px 0 2px}.lfcrm-task-overview-cards .lfcrm-task-group-card.week .lfcrm-task-count{background:#eef3ff;color:#285fd4}@media(max-width:760px){.lfcrm-task-overview-cards{grid-template-columns:1fr;gap:10px}.lfcrm-task-group-card{padding:12px}.lfcrm-task-numbered-list li{padding:9px 0}}

/* v2.6.2.63: overview cards show a total count only; no per-task numbering */
.lfcrm-task-numbered-list{list-style:none!important;padding:0!important;margin:0!important}
.lfcrm-task-numbered-list li{list-style:none!important}
/* Interactive task overview cards */
.lfcrm-task-overview-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}
.lfcrm-task-group-card{display:block;width:100%;text-align:left;cursor:pointer;appearance:none;font:inherit;background:#fff;border:1px solid #dce7e1;border-radius:13px;padding:16px 18px;box-shadow:0 3px 12px rgba(20,50,35,.04);transition:border-color .15s,box-shadow .15s,transform .15s}
.lfcrm-task-group-card:hover,.lfcrm-task-group-card:focus-visible{border-color:#8fb9a0;box-shadow:0 5px 16px rgba(20,50,35,.09);outline:none}
.lfcrm-task-group-card.is-selected{border:2px solid #16834a;background:#f7fcf8;box-shadow:0 0 0 3px rgba(22,131,74,.08)}
.lfcrm-task-group-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.lfcrm-task-card-title{font-size:15px;font-weight:750;color:#17251e}
.lfcrm-task-count{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 10px;border-radius:11px;background:#e9f7ee;color:#087443;font-size:20px;font-weight:800}
.lfcrm-task-group-card.week .lfcrm-task-count{background:#eef3ff;color:#285fd4}
.lfcrm-task-card-hint{display:block;margin-top:8px;color:#6b7c72;font-size:12px}
.lfcrm-task-group-card.is-selected .lfcrm-task-card-hint{color:#087443;font-weight:650}
.lfcrm-tasks-table tbody tr[hidden]{display:none!important}
@media(max-width:760px){.lfcrm-task-overview-cards{grid-template-columns:1fr;gap:10px}.lfcrm-task-group-card{padding:13px 14px}}

/* v2.6.2.65: accessible task overview card hover/focus states */
.lfcrm-task-group-card,.lfcrm-task-group-card:visited{color:#17251e!important;background:#ffffff!important;-webkit-text-fill-color:initial}
.lfcrm-task-group-card:hover,.lfcrm-task-group-card:focus,.lfcrm-task-group-card:focus-visible{color:#17251e!important;background:#f8fbf9!important;border-color:#8fb9a0!important;box-shadow:0 5px 16px rgba(20,50,35,.10)!important;outline:2px solid transparent;outline-offset:2px}
.lfcrm-task-group-card:hover .lfcrm-task-card-title,.lfcrm-task-group-card:focus-visible .lfcrm-task-card-title{color:#17251e!important}
.lfcrm-task-group-card:hover .lfcrm-task-card-hint,.lfcrm-task-group-card:focus-visible .lfcrm-task-card-hint{color:#52665a!important}
.lfcrm-task-group-card.today:hover .lfcrm-task-count,.lfcrm-task-group-card.today:focus-visible .lfcrm-task-count{background:#dff4e6!important;color:#08633a!important}
.lfcrm-task-group-card.week:hover .lfcrm-task-count,.lfcrm-task-group-card.week:focus-visible .lfcrm-task-count{background:#e2ebff!important;color:#204fb8!important}
.lfcrm-task-group-card.is-selected,.lfcrm-task-group-card.is-selected:hover,.lfcrm-task-group-card.is-selected:focus-visible{background:#f2faf5!important;color:#17251e!important;border-color:#16834a!important}
.lfcrm-task-group-card.is-selected .lfcrm-task-card-title{color:#17251e!important}.lfcrm-task-group-card.is-selected .lfcrm-task-card-hint{color:#087443!important}
/* Demo booking scheduler */
.lfcrm-booking-page{--lfcrm-booking-border:#dce8e2;--lfcrm-booking-ink:#18332a;--lfcrm-booking-muted:#64748b;color:var(--lfcrm-booking-ink)}
.lfcrm-booking-layout{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(360px,1.1fr);gap:20px;align-items:start}
.lfcrm-booking-form-card,.lfcrm-booking-item{background:#fff;border:1px solid var(--lfcrm-booking-border);border-radius:16px;padding:18px;box-shadow:0 4px 18px rgba(22,70,48,.045)}
.lfcrm-booking-form-card h3,.lfcrm-booking-page h2,.lfcrm-booking-page h3{color:#153c2c}
.lfcrm-booking-form-card .form-grid{gap:12px}
.lfcrm-booking-page input,.lfcrm-booking-page select,.lfcrm-booking-page textarea{max-width:100%;min-width:0;border:1px solid #d5e1da;border-radius:9px;padding:10px;background:#fff;color:#1e293b;box-shadow:none}
.lfcrm-booking-page input:focus,.lfcrm-booking-page select:focus,.lfcrm-booking-page textarea:focus{outline:2px solid #b8e4cb;border-color:#16834a}
.lfcrm-booking-list{display:grid;gap:12px}.lfcrm-booking-item-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.lfcrm-booking-item p{margin:7px 0;color:#52665d;overflow-wrap:anywhere}.lfcrm-booking-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.lfcrm-booking-actions form{margin:0}.lfcrm-booking-filter{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:10px 0 14px}.lfcrm-booking-page .lfcrm-btn{cursor:pointer;text-decoration:none}.lfcrm-booking-page .lfcrm-btn.secondary{background:#f6faf7;color:#234536;border:1px solid #d5e4da}.lfcrm-booking-page .lfcrm-btn.danger{background:#fff1f1;color:#b42318;border:1px solid #f5caca}
@media(max-width:900px){.lfcrm-booking-layout{grid-template-columns:1fr}.lfcrm-booking-form-card{padding:14px}.lfcrm-booking-actions>*{max-width:100%}}

/* Demo Booking professional UI refresh (v2.6.2.69) */
.lfcrm-booking-page{--booking-green:#137a50;--booking-blue:#245fe8;--booking-ink:#172b24;--booking-muted:#63756d;color:var(--booking-ink);background:linear-gradient(145deg,#f7fbf8 0%,#f5f8ff 100%);border:1px solid #e0eae4;border-radius:20px;padding:clamp(16px,2.2vw,28px);box-shadow:0 12px 32px rgba(26,62,44,.06)}
.lfcrm-booking-page>.section-head{padding:22px 24px;margin:-2px -2px 22px;border-radius:16px;background:linear-gradient(115deg,#e7f7ed 0%,#edf3ff 100%);border:1px solid #dcebe3}
.lfcrm-booking-page .lfcrm-kicker{font-size:11px;font-weight:800;letter-spacing:.13em;color:var(--booking-green)}
.lfcrm-booking-page .section-head h2{font-size:clamp(22px,2.2vw,30px);font-weight:800;letter-spacing:-.025em;margin:5px 0 7px;color:#18392b}
.lfcrm-booking-page .section-head p{color:#62766b;margin:0;line-height:1.55}
.lfcrm-booking-layout{grid-template-columns:minmax(320px,.92fr) minmax(360px,1.08fr);gap:22px}
.lfcrm-booking-form-card,.lfcrm-booking-item{border:1px solid #dce8e1;border-radius:17px;padding:clamp(15px,1.7vw,22px);box-shadow:0 7px 22px rgba(25,70,48,.055);transition:box-shadow .18s ease,border-color .18s ease}
.lfcrm-booking-form-card:hover,.lfcrm-booking-item:hover{border-color:#c6dfd0;box-shadow:0 10px 28px rgba(25,70,48,.09)}
.lfcrm-booking-form-card h3,.lfcrm-booking-page h2,.lfcrm-booking-page h3{color:#18392b;font-weight:750}
.lfcrm-booking-page .lfcrm-booking-form label,.lfcrm-booking-page .lfcrm-booking-filter label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:650;color:#344b40}
.lfcrm-booking-page input,.lfcrm-booking-page select,.lfcrm-booking-page textarea{width:100%;box-sizing:border-box;min-height:42px;border:1px solid #d5e2da;border-radius:10px;padding:10px 12px;background:#fff;color:#1d3328;box-shadow:0 1px 2px rgba(20,50,35,.025);transition:border-color .15s,box-shadow .15s}
.lfcrm-booking-page input:focus,.lfcrm-booking-page select:focus,.lfcrm-booking-page textarea:focus{outline:0;border-color:#4ba77a;box-shadow:0 0 0 3px rgba(45,155,99,.13)}
.lfcrm-booking-page .lfcrm-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:9px 15px;border-radius:10px;border:1px solid #245fe8;background:linear-gradient(135deg,#2f6df2,#2457d6);color:#fff;font-weight:750;box-shadow:0 3px 8px rgba(36,95,232,.15);transition:transform .15s,box-shadow .15s,filter .15s}
.lfcrm-booking-page .lfcrm-btn:hover{filter:brightness(1.04);transform:translateY(-1px);box-shadow:0 6px 14px rgba(36,95,232,.2)}
.lfcrm-booking-page .lfcrm-btn.secondary{background:#f2f8f4;color:#21543b;border:1px solid #cfe2d5;box-shadow:none}
.lfcrm-booking-page .lfcrm-btn.secondary:hover{background:#e5f4eb;border-color:#9ccdb0}
.lfcrm-booking-page .lfcrm-btn.danger{background:#fff1f1;color:#b42318;border:1px solid #f2c8c8;box-shadow:none}
.lfcrm-booking-item{position:relative;overflow:hidden}.lfcrm-booking-item:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:linear-gradient(#36a56e,#4f7ff0)}
.lfcrm-booking-item-head strong{font-size:16px;color:#18392b}.lfcrm-booking-item p{font-size:13px;line-height:1.55;color:#5b6f64}
.lfcrm-booking-page .lfcrm-badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;font-size:11px;font-weight:800;background:#e9f1ff;color:#2457c5;border:1px solid #d2e0ff}
.lfcrm-booking-page .lfcrm-badge.status-completed{background:#e8f7ee;color:#147747;border-color:#c9ead7}.lfcrm-booking-page .lfcrm-badge.status-cancelled{background:#fff0f0;color:#b42318;border-color:#f2cccc}.lfcrm-booking-page .lfcrm-badge.status-rescheduled{background:#fff5df;color:#966000;border-color:#f3dfad}
.lfcrm-booking-actions{padding-top:12px;border-top:1px solid #edf1ee}.lfcrm-booking-page .muted{color:#6b7d73;font-size:12px}
.lfcrm-booking-page .lfcrm-notice{padding:12px 15px;border-radius:12px;margin:0 0 18px;font-weight:650}.lfcrm-booking-page .lfcrm-notice.success{background:#eaf8ef;border:1px solid #c5e8d1;color:#176b40}.lfcrm-booking-page .lfcrm-notice.error{background:#fff1f0;border:1px solid #f1cbc7;color:#a42c24}
@media(max-width:900px){.lfcrm-booking-page{padding:12px;border-radius:14px}.lfcrm-booking-page>.section-head{padding:16px;margin-bottom:15px}.lfcrm-booking-layout{grid-template-columns:minmax(0,1fr);gap:15px}.lfcrm-booking-form-card,.lfcrm-booking-item{padding:14px}.lfcrm-booking-actions>*{max-width:100%}}

/* Demo booking refinements v2.6.2.70 */
.lfcrm-book-lead-btn{background:linear-gradient(135deg,#0f8a63,#087e8b)!important;border-color:#087e8b!important;color:#fff!important}.lfcrm-booking-page .lfcrm-booking-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr);gap:22px;align-items:start}.lfcrm-booking-page .lfcrm-booking-form-card{background:#fff;border:1px solid #dce9e1;border-radius:18px;padding:22px;box-shadow:0 8px 24px rgba(24,57,43,.055)}.lfcrm-booking-page .lfcrm-booking-item{background:#fff;border:1px solid #dce9e1;border-radius:14px;padding:16px;box-shadow:0 4px 12px rgba(24,57,43,.04)}.lfcrm-booking-page .lfcrm-booking-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.lfcrm-booking-page .lfcrm-booking-form>label{min-width:0}.lfcrm-booking-page .lfcrm-booking-form label[style*=grid-column]{grid-column:1/-1}.lfcrm-booking-page .lfcrm-booking-form button[formnovalidate]{margin-top:8px;width:100%}.lfcrm-booking-page .lfcrm-booking-form>div[style*=grid-column] .lfcrm-btn{min-width:150px}@media(max-width:900px){.lfcrm-booking-page .lfcrm-booking-layout{grid-template-columns:minmax(0,1fr)}.lfcrm-booking-page .lfcrm-booking-form{grid-template-columns:minmax(0,1fr)}}

/* Demo Booking v2.6.2.71 — navigation, clearer role separation and appointment-style staff picker */
.lfcrm-booking-page .lfcrm-booking-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 16px}
.lfcrm-booking-page .lfcrm-booking-back{display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border:1px solid #d4e2da;border-radius:11px;background:#fff;color:#214c39;text-decoration:none;font-size:13px;font-weight:750;box-shadow:0 2px 7px rgba(20,55,38,.04)}
.lfcrm-booking-page .lfcrm-booking-back:hover{background:#edf8f1;border-color:#9ecfb1;color:#12653e}
.lfcrm-booking-page .lfcrm-booking-step{color:#6a7c72;font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.lfcrm-booking-page .lfcrm-booking-step b{color:#2e8a60;padding:0 5px}
.lfcrm-booking-page .lfcrm-booking-layout{grid-template-columns:minmax(0,1.08fr) minmax(340px,.92fr);gap:22px}
.lfcrm-booking-page .lfcrm-booking-form-card{min-width:0}
.lfcrm-booking-page .lfcrm-booking-form .lfcrm-team-picker-wrap{grid-column:1/-1;min-width:0;margin:2px 0 4px}
.lfcrm-booking-page .lfcrm-team-picker-label{display:block;margin:0 0 9px;font-size:13px;font-weight:750;color:#344b40}
.lfcrm-booking-page .lfcrm-team-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.lfcrm-booking-page .lfcrm-team-choice{position:relative;display:flex!important;flex-direction:row!important;align-items:center;gap:10px!important;min-width:0;padding:11px 12px;border:1px solid #dce7e0;border-radius:13px;background:#fff;cursor:pointer;transition:border-color .16s,background .16s,box-shadow .16s}
.lfcrm-booking-page .lfcrm-team-choice:hover{border-color:#a8d4b8;background:#f8fcf9}
.lfcrm-booking-page .lfcrm-team-choice:has(input:checked),.lfcrm-booking-page .lfcrm-team-choice.is-selected{border-color:#258658;background:linear-gradient(135deg,#effaf3,#f3f7ff);box-shadow:0 0 0 2px rgba(37,134,88,.09)}
.lfcrm-booking-page .lfcrm-team-choice input[type=radio]{position:absolute;opacity:0;width:1px;height:1px;min-height:0;margin:0;padding:0}
.lfcrm-booking-page .lfcrm-team-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:linear-gradient(140deg,#dff5e8,#dce8ff);color:#176b45;font-size:12px;font-weight:850;letter-spacing:.02em}
.lfcrm-booking-page .lfcrm-team-choice-copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.lfcrm-booking-page .lfcrm-team-choice-copy strong{color:#243b30;font-size:12px;line-height:1.35;overflow-wrap:anywhere}
.lfcrm-booking-page .lfcrm-team-choice-copy small{color:#718178;font-size:10px;line-height:1.35;font-weight:550}
.lfcrm-booking-page .lfcrm-team-check{display:flex;align-items:center;justify-content:center;flex:0 0 19px;width:19px;height:19px;border:1px solid #d3e1d8;border-radius:50%;background:#fff;color:transparent;font-size:11px;font-weight:900}
.lfcrm-booking-page .lfcrm-team-choice:has(input:checked) .lfcrm-team-check{border-color:#218353;background:#218353;color:#fff}
.lfcrm-booking-page .lfcrm-team-choice input:focus-visible + .lfcrm-team-avatar{outline:3px solid #9cc7ff;outline-offset:3px}
.lfcrm-booking-page .lfcrm-team-help{display:block;margin-top:7px;color:#718178;font-size:11px;font-weight:500}
.lfcrm-booking-page .lfcrm-booking-form label:has(select[name=booking_time]){align-self:start}
.lfcrm-booking-page .lfcrm-booking-form button[formnovalidate]{min-height:38px;white-space:normal;line-height:1.25}
.lfcrm-booking-page .lfcrm-booking-form input[readonly]{background:#f5f8f6;color:#52665b}
.lfcrm-booking-page .lfcrm-booking-item{overflow-wrap:anywhere}
@media(max-width:1100px){.lfcrm-booking-page .lfcrm-booking-layout{grid-template-columns:minmax(0,1fr)}.lfcrm-booking-page .lfcrm-booking-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.lfcrm-booking-page .lfcrm-booking-topbar{align-items:flex-start}.lfcrm-booking-page .lfcrm-booking-step{width:100%}.lfcrm-booking-page .lfcrm-team-picker{grid-template-columns:minmax(0,1fr)}.lfcrm-booking-page .lfcrm-booking-list{grid-template-columns:minmax(0,1fr)}.lfcrm-booking-page .lfcrm-booking-form{grid-template-columns:minmax(0,1fr)}.lfcrm-booking-page .lfcrm-booking-form>label{grid-column:1/-1}.lfcrm-booking-page .lfcrm-booking-form .lfcrm-team-picker-wrap{grid-column:1/-1}}
.lfcrm-booking-page .lfcrm-booking-layout.lfcrm-booking-view-only{grid-template-columns:minmax(0,1fr)}
.lfcrm-booking-page .lfcrm-booking-view-note{padding:18px 20px;margin-bottom:18px;border:1px solid #d8e9df;border-radius:14px;background:linear-gradient(120deg,#eef9f2,#f1f5ff);color:#274b39}
.lfcrm-booking-page .lfcrm-booking-view-note strong{font-size:15px}.lfcrm-booking-page .lfcrm-booking-view-note p{margin:5px 0 0;color:#607369;font-size:13px;line-height:1.55}


/* Demo Booking v2.6.2.72 — repair inherited form-grid collapse; premium balanced layout */
body .lfcrm-booking-page{max-width:100%;padding:clamp(14px,2vw,28px);background:linear-gradient(145deg,#f7fbf8 0%,#f4f8ff 100%);border:1px solid #e3ece6;border-radius:22px;box-sizing:border-box}
body .lfcrm-booking-page .lfcrm-booking-topbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;margin:0 0 18px!important;padding:0 2px!important}
body .lfcrm-booking-page .lfcrm-booking-back{flex:0 0 auto;margin:0!important;white-space:nowrap;min-height:40px;box-sizing:border-box}
body .lfcrm-booking-page .lfcrm-booking-step{margin-left:auto!important;text-align:right;line-height:1.5;white-space:normal}
body .lfcrm-booking-page>.section-head{padding:clamp(18px,2.3vw,30px)!important;margin:0 0 22px!important;border:1px solid #dcece3!important;border-radius:18px!important;background:linear-gradient(115deg,#e9f8ef 0%,#edf3ff 100%)!important;box-shadow:none!important}
body .lfcrm-booking-page .section-head h2{font-size:clamp(25px,2.7vw,36px)!important;line-height:1.15!important;margin:5px 0 9px!important;color:#163e2d!important}
body .lfcrm-booking-page .section-head p{font-size:15px!important;max-width:760px;line-height:1.6!important}
body .lfcrm-booking-page .lfcrm-booking-layout{display:grid!important;grid-template-columns:minmax(0,1.08fr) minmax(340px,.92fr)!important;align-items:start!important;gap:22px!important}
body .lfcrm-booking-page .lfcrm-booking-form-card{min-width:0!important;padding:clamp(16px,2vw,26px)!important;border-radius:20px!important;border:1px solid #dce9e1!important;background:#fff!important;box-shadow:0 12px 34px rgba(28,68,48,.07)!important}
body .lfcrm-booking-page .lfcrm-booking-form-card>h3{font-size:clamp(21px,2vw,27px)!important;line-height:1.2!important;margin:0 0 18px!important;color:#173f2e!important}
/* Override legacy .form-grid rules that were forcing the team picker into a narrow third column. */
body .lfcrm-booking-page form.lfcrm-booking-form{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-flow:row!important;align-items:start!important;gap:16px!important;width:100%!important;min-width:0!important}
body .lfcrm-booking-page form.lfcrm-booking-form>label{display:flex!important;flex-direction:column!important;grid-column:auto!important;grid-row:auto!important;align-self:start!important;min-width:0!important;width:auto!important;max-width:100%!important;gap:7px!important;box-sizing:border-box!important}
body .lfcrm-booking-page form.lfcrm-booking-form>.lfcrm-team-picker-wrap{display:block!important;grid-column:1 / -1!important;grid-row:auto!important;min-width:0!important;width:100%!important;max-width:100%!important;margin:2px 0 4px!important;box-sizing:border-box!important}
body .lfcrm-booking-page form.lfcrm-booking-form>label[style*="grid-column"]{grid-column:1 / -1!important}
body .lfcrm-booking-page form.lfcrm-booking-form>div[style*="grid-column"]{grid-column:1 / -1!important;min-width:0!important;width:100%!important;display:flex!important;flex-wrap:wrap;align-items:center;gap:10px}
body .lfcrm-booking-page .lfcrm-team-picker-label{display:block!important;margin:0 0 10px!important;font-size:13px!important;font-weight:800!important;color:#263f33!important}
body .lfcrm-booking-page .lfcrm-team-picker{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;width:100%!important;min-width:0!important}
body .lfcrm-booking-page .lfcrm-team-choice{display:flex!important;grid-column:auto!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;min-width:0!important;width:auto!important;max-width:100%!important;min-height:62px!important;padding:11px 12px!important;margin:0!important;border:1px solid #dce8e1!important;border-radius:14px!important;background:#fff!important;box-sizing:border-box!important;overflow:hidden}
body .lfcrm-booking-page .lfcrm-team-choice:hover{border-color:#9bcdb0!important;background:#f7fcf8!important}
body .lfcrm-booking-page .lfcrm-team-choice:has(input:checked),body .lfcrm-booking-page .lfcrm-team-choice.is-selected{border-color:#268557!important;background:linear-gradient(120deg,#eef9f2,#f2f6ff)!important;box-shadow:0 0 0 2px rgba(38,133,87,.10)!important}
body .lfcrm-booking-page .lfcrm-team-avatar{flex:0 0 38px!important;width:38px!important;height:38px!important}
body .lfcrm-booking-page .lfcrm-team-choice-copy{flex:1 1 auto!important;min-width:0!important;overflow:hidden}
body .lfcrm-booking-page .lfcrm-team-choice-copy strong{display:block!important;font-size:12px!important;line-height:1.4!important;overflow-wrap:anywhere!important;word-break:normal!important}
body .lfcrm-booking-page .lfcrm-team-choice-copy small{display:block!important;font-size:10px!important;line-height:1.4!important;overflow-wrap:anywhere!important}
body .lfcrm-booking-page .lfcrm-team-check{flex:0 0 19px!important}
body .lfcrm-booking-page .lfcrm-team-help{margin-top:9px!important;font-size:11px!important;line-height:1.5!important}
body .lfcrm-booking-page .lfcrm-booking-form input,body .lfcrm-booking-page .lfcrm-booking-form select,body .lfcrm-booking-page .lfcrm-booking-form textarea{min-width:0!important;width:100%!important;max-width:100%!important;min-height:44px!important;border-radius:11px!important;box-sizing:border-box!important}
body .lfcrm-booking-page .lfcrm-booking-form textarea{min-height:78px!important}
body .lfcrm-booking-page .lfcrm-booking-form button[formnovalidate]{width:100%!important;max-width:100%!important;margin-top:8px!important;min-height:40px!important;white-space:normal!important;line-height:1.3!important}
body .lfcrm-booking-page .lfcrm-booking-form>div[style*="grid-column"] .lfcrm-btn{min-width:155px!important}
body .lfcrm-booking-page .lfcrm-booking-list{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:14px}
body .lfcrm-booking-page .lfcrm-booking-list>.muted{padding:20px;border:1px dashed #d5e4db;border-radius:14px;background:rgba(255,255,255,.7)}
body .lfcrm-booking-page .lfcrm-booking-item{min-width:0;padding:18px!important;border-radius:16px!important;background:#fff!important;box-shadow:0 8px 22px rgba(24,57,43,.045)!important}
body .lfcrm-booking-page .lfcrm-booking-item-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
body .lfcrm-booking-page .lfcrm-booking-item p{margin:8px 0!important;overflow-wrap:anywhere}
body .lfcrm-booking-page .lfcrm-booking-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px;padding-top:13px!important}
body .lfcrm-booking-page .lfcrm-booking-actions form{margin:0!important}
body .lfcrm-booking-page .lfcrm-booking-actions .lfcrm-btn{min-height:38px}
body .lfcrm-booking-page .lfcrm-booking-filter{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:14px 0}
body .lfcrm-booking-page .lfcrm-booking-filter label{min-width:min(100%,220px);flex:1}
body .lfcrm-booking-page .lfcrm-booking-filter button{min-height:42px}
@media(max-width:1100px){body .lfcrm-booking-page .lfcrm-booking-layout{grid-template-columns:minmax(0,1fr)!important}body .lfcrm-booking-page .lfcrm-booking-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){body .lfcrm-booking-page{padding:12px!important;border-radius:14px!important}body .lfcrm-booking-page .lfcrm-booking-topbar{align-items:flex-start!important;flex-direction:column!important}body .lfcrm-booking-page .lfcrm-booking-step{margin-left:0!important;text-align:left!important;width:100%}body .lfcrm-booking-page form.lfcrm-booking-form{grid-template-columns:minmax(0,1fr)!important;gap:13px!important}body .lfcrm-booking-page form.lfcrm-booking-form>label,body .lfcrm-booking-page form.lfcrm-booking-form>.lfcrm-team-picker-wrap,body .lfcrm-booking-page form.lfcrm-booking-form>label[style*="grid-column"],body .lfcrm-booking-page form.lfcrm-booking-form>div[style*="grid-column"]{grid-column:1/-1!important}body .lfcrm-booking-page .lfcrm-team-picker{grid-template-columns:minmax(0,1fr)!important}body .lfcrm-booking-page .lfcrm-booking-list{grid-template-columns:minmax(0,1fr)!important}body .lfcrm-booking-page .lfcrm-booking-actions{align-items:stretch}body .lfcrm-booking-page .lfcrm-booking-actions>*{max-width:100%}}

/* Demo Booking v2.6.2.73 — compact header, booking list below form, no destructive booking action */
body .lfcrm-booking-page .lfcrm-booking-layout{display:flex!important;flex-direction:column!important;gap:22px!important;align-items:stretch!important;}
body .lfcrm-booking-page .lfcrm-booking-form-card,body .lfcrm-booking-page .lfcrm-booking-layout>section{width:100%;box-sizing:border-box;min-width:0;}
body .lfcrm-booking-page .lfcrm-booking-topbar{justify-content:flex-start!important;margin-bottom:18px!important;}
body .lfcrm-booking-page .lfcrm-booking-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
body .lfcrm-booking-page .lfcrm-booking-layout>section>.section-head{margin:0 0 12px!important;padding:0!important;background:transparent!important;border:0!important;}
@media(max-width:760px){body .lfcrm-booking-page .lfcrm-booking-list{grid-template-columns:minmax(0,1fr)!important;}}


/* Demo booking: clean dropdown and seat-style availability picker */
body .lfcrm-booking-page .lfcrm-assignee-select-wrap{display:flex;flex-direction:column;gap:8px;min-width:0}
body .lfcrm-booking-page .lfcrm-slot-picker-wrap{padding:18px;border:1px solid #dce8e1;border-radius:16px;background:linear-gradient(180deg,#fbfefc,#f5f9f6);min-width:0}
body .lfcrm-booking-page .lfcrm-slot-picker-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px;color:#253b30}
body .lfcrm-booking-page .lfcrm-slot-legend{display:flex;align-items:center;gap:6px;font-size:10px;color:#65766d;flex-wrap:wrap}
body .lfcrm-booking-page .lfcrm-slot-legend i{display:inline-block;width:9px;height:9px;border-radius:3px;background:#fff;border:1px solid #42a777;margin-left:5px}
body .lfcrm-booking-page .lfcrm-slot-legend i.selected{background:#258754;border-color:#258754}
body .lfcrm-booking-page .lfcrm-slot-legend i.unavailable{background:#e6e9e7;border-color:#d1d7d3}
body .lfcrm-booking-page .lfcrm-slot-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:9px;min-height:42px}
body .lfcrm-booking-page .lfcrm-time-slot{display:flex;align-items:center;justify-content:center;min-height:43px;padding:9px 10px;border:1px solid #b9d9c6!important;border-radius:10px!important;background:#fff!important;color:#276b47!important;font-size:12px!important;font-weight:650!important;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
body .lfcrm-booking-page .lfcrm-time-slot:hover{border-color:#258754!important;background:#edf8f1!important;transform:translateY(-1px)}
body .lfcrm-booking-page .lfcrm-time-slot.is-selected{background:#258754!important;color:#fff!important;border-color:#258754!important;box-shadow:0 0 0 3px rgba(37,135,84,.14)!important}
body .lfcrm-booking-page .lfcrm-slot-status{display:block;margin-top:10px;color:#65766d;font-size:11px;line-height:1.5}
body .lfcrm-booking-page .lfcrm-booking-delete-form{display:inline-flex;margin:0}
body .lfcrm-booking-page .lfcrm-booking-delete-form .lfcrm-btn.danger{background:#fff1f1!important;color:#b42318!important;border:1px solid #f1c5c2!important}
@media(max-width:600px){body .lfcrm-booking-page .lfcrm-slot-picker-wrap{padding:13px}body .lfcrm-booking-page .lfcrm-slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body .lfcrm-booking-page .lfcrm-slot-picker-heading{align-items:flex-start;flex-direction:column}}
/* v2.6.2.75: clearly distinguish occupied slots while keeping the picker visible. */
body .lfcrm-booking-page .lfcrm-time-slot.is-booked{background:#f1f3f5!important;border-color:#d7dde3!important;color:#8b949e!important;cursor:not-allowed!important;text-decoration:line-through;opacity:.85;transform:none!important;box-shadow:none!important}
body .lfcrm-booking-page .lfcrm-time-slot:disabled{pointer-events:none}

/* Booking date/time dropdown layout */
body .lfcrm-booking-page .lfcrm-booking-date,
body .lfcrm-booking-page .lfcrm-booking-time{width:100%;min-height:48px;padding:11px 14px;border:1px solid #d5e2dc!important;border-radius:11px!important;background:#fff!important;color:#20352b!important;font-size:14px!important;font-weight:550!important;box-shadow:0 1px 2px rgba(20,50,35,.04)!important;cursor:pointer}
body .lfcrm-booking-page .lfcrm-booking-date:focus,
body .lfcrm-booking-page .lfcrm-booking-time:focus{outline:none!important;border-color:#258754!important;box-shadow:0 0 0 3px rgba(37,135,84,.12)!important}
body .lfcrm-booking-page .lfcrm-booking-time:disabled{background:#f5f7f6!important;color:#7b8981!important;cursor:not-allowed}
body .lfcrm-booking-page .lfcrm-time-select-label{display:block;max-width:460px;margin-top:12px;font-weight:650}
body .lfcrm-booking-page .lfcrm-time-select-label select{display:block;margin-top:8px}

/* v2.6.2.79: date and time are matching side-by-side boxes, not a nested panel. */
body .lfcrm-booking-page form.lfcrm-booking-form>.lfcrm-slot-picker-wrap{grid-column:auto!important;display:flex!important;flex-direction:column!important;align-self:start!important;min-width:0!important;width:auto!important;max-width:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-sizing:border-box!important;gap:7px!important}
body .lfcrm-booking-page .lfcrm-slot-picker-wrap .lfcrm-time-select-label{display:flex!important;flex-direction:column!important;width:100%!important;max-width:none!important;margin:0!important;gap:7px!important;box-sizing:border-box!important}
body .lfcrm-booking-page .lfcrm-slot-picker-wrap .lfcrm-time-select-label select{display:block!important;width:100%!important;max-width:100%!important;margin:0!important;min-height:48px!important}
body .lfcrm-booking-page .lfcrm-slot-picker-wrap .lfcrm-slot-status{font-size:12px!important;line-height:1.45!important;margin-top:2px!important;color:#61766a!important}
@media(max-width:700px){body .lfcrm-booking-page form.lfcrm-booking-form>.lfcrm-slot-picker-wrap{grid-column:1/-1!important}}

/* Demo booking: tap-to-select time slots (v2.6.2.84) */
.lfcrm-booking-page .lfcrm-slot-picker-wrap{display:block}
.lfcrm-booking-page .lfcrm-slot-label{font-size:13px;font-weight:650;color:#344b40;margin-bottom:8px}
.lfcrm-booking-page .lfcrm-slot-picked{font-weight:700;color:#137a50;margin-left:4px}
.lfcrm-booking-page .lfcrm-slot-grid{border:1px solid #d5e2da;border-radius:12px;padding:12px 14px;background:#fbfdfc;transition:opacity .15s}
.lfcrm-booking-page .lfcrm-slot-grid.is-loading{opacity:.5;pointer-events:none}
.lfcrm-booking-page .lfcrm-slot-group+.lfcrm-slot-group{margin-top:12px}
.lfcrm-booking-page .lfcrm-slot-group-title{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#63756d;margin-bottom:7px}
.lfcrm-booking-page .lfcrm-slot-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px}
.lfcrm-booking-page label.lfcrm-slot{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:42px;padding:6px 8px;margin:0;border:1px solid #cfe0d6;border-radius:10px;background:#fff;color:#1e3a2e;font-size:14px;font-weight:700;cursor:pointer;text-align:center;transition:background .12s,border-color .12s,box-shadow .12s}
.lfcrm-booking-page label.lfcrm-slot:hover{border-color:#4ba77a;background:#f1faf5}
.lfcrm-booking-page label.lfcrm-slot input{position:absolute;opacity:0;width:1px;height:1px;min-height:0;padding:0;margin:0;pointer-events:none}
.lfcrm-booking-page label.lfcrm-slot:has(input:checked){background:#137a50;border-color:#137a50;color:#fff;box-shadow:0 4px 12px rgba(19,122,80,.28)}
.lfcrm-booking-page label.lfcrm-slot:has(input:focus-visible){outline:3px solid rgba(45,155,99,.35);outline-offset:1px}
.lfcrm-booking-page label.lfcrm-slot.is-off{background:#f1f3f2;color:#a3aeaa;border-style:dashed;cursor:not-allowed;text-decoration:line-through}
.lfcrm-booking-page label.lfcrm-slot.is-off:hover{background:#f1f3f2;border-color:#cfe0d6}
.lfcrm-booking-page label.lfcrm-slot em{font-style:normal;font-size:10px;font-weight:700;color:#b42318;text-decoration:none;line-height:1}
.lfcrm-booking-page .lfcrm-slot-empty{margin:0 0 10px;padding:9px 12px;border-radius:9px;background:#fff7e6;color:#8a5a00;font-size:13px}
.lfcrm-booking-page .lfcrm-slot-status{display:block;margin-top:7px;color:#63756d}
.lfcrm-booking-page .lfcrm-slot-status.is-error{color:#b42318;font-weight:700}
@media(max-width:600px){.lfcrm-booking-page .lfcrm-slot-row{grid-template-columns:repeat(3,1fr)}}

/* v2.6.2.86: compact assigned-team booking list and reschedule modal */
body .lfcrm-booking-page .lfcrm-booking-view-only .lfcrm-booking-item{padding:12px 15px!important;border-radius:12px!important;box-shadow:none!important;border:1px solid #e0e9e3!important;display:grid;grid-template-columns:minmax(150px,1.2fr) minmax(170px,1.4fr) minmax(130px,1fr) auto;align-items:center;gap:8px 16px}
body .lfcrm-booking-page .lfcrm-booking-view-only .lfcrm-booking-item p{margin:0!important;font-size:13px!important;line-height:1.45}
body .lfcrm-booking-page .lfcrm-booking-view-only .lfcrm-booking-item-head{min-width:0}
body .lfcrm-booking-page .lfcrm-booking-view-only .lfcrm-booking-item .lfcrm-booking-actions{grid-column:1/-1;margin-top:4px;padding-top:8px;border-top:1px solid #edf1ee}
.lfcrm-reschedule-modal{position:fixed;inset:0;z-index:999999;background:rgba(16,35,27,.58);display:none;align-items:center;justify-content:center;padding:24px}
.lfcrm-reschedule-modal.is-open{display:flex}
.lfcrm-reschedule-modal__dialog{position:relative;background:#fff;width:min(760px,96vw);height:min(820px,92vh);border-radius:16px;overflow:hidden;box-shadow:0 24px 80px rgba(0,0,0,.25)}
.lfcrm-reschedule-modal__close{position:absolute;z-index:2;right:12px;top:10px;border:0;border-radius:9px;background:#fff;color:#18392b;font-size:24px;line-height:1;width:38px;height:38px;cursor:pointer;box-shadow:0 2px 10px #0002}
.lfcrm-reschedule-modal__frame{width:100%;height:100%;border:0;background:#fff}
@media(max-width:760px){body .lfcrm-booking-page .lfcrm-booking-view-only .lfcrm-booking-item{grid-template-columns:minmax(0,1fr)!important;gap:8px!important}.lfcrm-reschedule-modal{padding:8px}.lfcrm-reschedule-modal__dialog{width:100%;height:94vh}}
/* Reschedule booking modal */
.lfcrm-reschedule-modal[hidden]{display:none!important}.lfcrm-reschedule-modal{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:20px}.lfcrm-reschedule-modal__backdrop{position:absolute;inset:0;background:rgba(12,28,23,.58)}.lfcrm-reschedule-modal__dialog{position:relative;display:flex;flex-direction:column;width:min(1000px,96vw);height:min(850px,92vh);background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 24px 80px rgba(0,0,0,.25)}.lfcrm-reschedule-modal__head{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;border-bottom:1px solid #e4ece7;color:#143d30}.lfcrm-reschedule-modal__close{border:0;background:transparent;font-size:28px;line-height:1;cursor:pointer;color:#234}.lfcrm-reschedule-modal__dialog iframe{display:block;width:100%;height:100%;flex:1;border:0;background:#f7faf8}body.lfcrm-modal-open{overflow:hidden}


/* =========================================================
   MYR Lead Flow CRM — Dashboard workspace refresh
   Scoped to CRM front-end; existing CRM actions remain intact.
   ========================================================= */
:root{--lfcrm-ink:#172033;--lfcrm-muted:#68758a;--lfcrm-primary:#2457d6;--lfcrm-primary-dark:#183fa9;--lfcrm-line:#e4eaf2;--lfcrm-canvas:#f4f7fc;--lfcrm-green:#16a36a}
body:has(.lfcrm-app){background:var(--lfcrm-canvas)}
body:has(.lfcrm-app) #page,body:has(.lfcrm-app) .site,body:has(.lfcrm-app) .site-content,body:has(.lfcrm-app) main{max-width:none;width:100%}
body .lfcrm-app{--lfcrm-sidebar-width:258px;position:relative;width:auto;max-width:none;margin:0 0 0 var(--lfcrm-sidebar-width);padding:28px clamp(16px,2.2vw,36px) 36px!important;border-radius:0!important;background:var(--lfcrm-canvas)!important;color:var(--lfcrm-ink);min-height:100vh;transition:margin-left .22s ease}
body.lfcrm-sidebar-collapsed .lfcrm-app{margin-left:0}
body .lfcrm-nav{position:fixed!important;z-index:99990;left:0;top:0;bottom:0;width:258px;max-height:100vh;overflow-y:auto;overflow-x:visible;display:flex!important;flex-direction:column!important;align-items:stretch!important;flex-wrap:nowrap!important;gap:5px!important;margin:0!important;padding:20px 14px 18px!important;border:0!important;border-right:1px solid #26334b!important;border-radius:0!important;background:#111d32!important;box-shadow:8px 0 28px rgba(15,23,42,.10)!important;transition:transform .22s ease!important}
body.lfcrm-sidebar-collapsed .lfcrm-nav{transform:translateX(-100%)}
body .lfcrm-nav .lfcrm-brand{display:block!important;margin:0 0 18px!important;padding:12px 12px 18px!important;border-bottom:1px solid #2a3850!important;color:#f8fafc!important;font-size:19px!important;line-height:1.35}
body .lfcrm-nav .lfcrm-brand span{display:block;color:#8eb2ff!important;font-size:12px!important;letter-spacing:.04em;margin-top:3px}
body .lfcrm-nav>a:not(.logout),body .lfcrm-nav>a:not(.mobile-back){display:flex!important;align-items:center;min-height:42px;padding:10px 12px!important;border-radius:9px!important;color:#c7d2e4!important;font-size:13px!important;font-weight:650!important;text-decoration:none!important;transition:background .15s,color .15s}
body .lfcrm-nav>a:hover,body .lfcrm-nav>a:focus{background:#22324d!important;color:#fff!important}
body .lfcrm-nav .nav-user{order:90;margin:14px 0 0!important;padding:14px 10px 4px!important;border-top:1px solid #2a3850;color:#9eacc1!important;font-size:12px!important;overflow-wrap:anywhere}
body .lfcrm-nav .logout{order:91;display:flex!important;align-items:center;min-height:40px;padding:10px 12px!important;border-radius:9px;color:#ffb4b4!important;font-size:13px!important;text-decoration:none}
body .lfcrm-nav .logout:hover{background:#422630!important}
body .lfcrm-nav .lfcrm-back-btn{order:92;display:block;margin-top:3px;padding:9px 12px;border:1px solid #33435d;border-radius:9px;background:transparent;color:#c7d2e4;cursor:pointer;text-align:left}
body .lfcrm-nav .lfcrm-notification-wrap{order:80;margin-top:10px;padding:10px 12px;border-top:1px solid #2a3850}
body .lfcrm-nav .nav-notify{background:#22324d!important;color:#fff!important;border:1px solid #33435d;border-radius:9px;padding:9px 12px;cursor:pointer}
body .lfcrm-nav .lfcrm-notification-dropdown{position:fixed!important;left:266px!important;top:20px!important;width:min(350px,calc(100vw - 280px));max-height:75vh;overflow:auto;z-index:100000;background:#fff;border:1px solid var(--lfcrm-line);border-radius:14px;box-shadow:0 18px 50px #0f172a26}
body .lfcrm-nav .lfcrm-sidebar-toggle{display:flex;align-items:center;justify-content:center;position:fixed;left:calc(var(--lfcrm-sidebar-width,258px) - 18px);top:18px;z-index:100001;width:36px;height:36px;border:1px solid #d8e1ee;border-radius:10px;background:#fff;color:#1d355b;box-shadow:0 4px 16px #0f172a18;cursor:pointer;font-size:20px;line-height:1;transition:left .22s ease}
body.lfcrm-sidebar-collapsed .lfcrm-nav .lfcrm-sidebar-toggle{left:16px}
body .lfcrm-nav .lfcrm-mobile-menu-toggle,body .lfcrm-nav .lfcrm-mobile-menu{display:none!important}
body .lfcrm-header{align-items:flex-start;margin-bottom:24px;padding-bottom:18px;border-bottom:1px solid #e2e8f0}
body .lfcrm-header h1{font-size:clamp(24px,2.3vw,34px);font-weight:800;letter-spacing:-.035em;color:#15223a;line-height:1.15}
body .lfcrm-header p,body .muted{color:var(--lfcrm-muted)}
body .lfcrm-kicker{color:var(--lfcrm-primary);letter-spacing:.13em}
body .lfcrm-cards{gap:16px;margin:22px 0 26px}
body .lfcrm-cards>div,body .lfcrm-panel,body .lfcrm-import{border:1px solid #e5ebf3!important;border-radius:15px!important;padding:20px!important;background:#fff!important;box-shadow:0 5px 20px rgba(23,39,71,.035)!important}
body .lfcrm-cards>div{position:relative;overflow:hidden;min-height:112px}
body .lfcrm-cards>div:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#4778e8}
body .lfcrm-cards b{font-size:clamp(25px,2vw,32px);letter-spacing:-.04em;color:#17233a}
body .lfcrm-cards span{font-size:12px;font-weight:600;color:#718096}
body .lfcrm-toolbar{align-items:center;gap:10px;margin:18px 0}
body .lfcrm-toolbar input,body .lfcrm-toolbar select,body .lfcrm-app input:not([type=checkbox]):not([type=radio]):not([type=file]),body .lfcrm-app select,body .lfcrm-app textarea{border-color:#d9e2ee;border-radius:9px;box-shadow:none;transition:border-color .15s,box-shadow .15s}
body .lfcrm-app input:focus,body .lfcrm-app select:focus,body .lfcrm-app textarea:focus{outline:0;border-color:#6b93f4;box-shadow:0 0 0 3px rgba(36,87,214,.11)}
body .lfcrm-btn{border-radius:9px;background:var(--lfcrm-primary);box-shadow:0 2px 5px rgba(36,87,214,.12);transition:transform .12s,box-shadow .12s}
body .lfcrm-btn:hover{transform:translateY(-1px);box-shadow:0 5px 12px rgba(36,87,214,.16)}
body .lfcrm-btn.secondary{box-shadow:none;border-color:#d7e0ec;color:#34445e}
body .lfcrm-table-wrap{border-color:#e4eaf2;border-radius:13px;box-shadow:0 4px 18px rgba(23,39,71,.025)}
body .lfcrm-table{min-width:1000px}
body .lfcrm-table th{padding:13px 14px;background:#f6f8fc;color:#68758a;font-size:10px;letter-spacing:.07em}
body .lfcrm-table td{padding:14px;border-bottom-color:#edf1f6;line-height:1.5}
body .lfcrm-table tbody tr:hover{background:#f8faff}
body .lfcrm-badge{border:1px solid rgba(100,116,139,.08);letter-spacing:.01em}
body .lfcrm-overlay{backdrop-filter:blur(4px);background:rgba(12,23,42,.48)}
body .lfcrm-modal{border:1px solid #e5ebf3;box-shadow:0 25px 90px rgba(10,25,50,.22)}
body .lfcrm-login{box-shadow:0 20px 60px rgba(20,40,80,.08)}
body .lfcrm-app .section-head{align-items:center}
@media(max-width:1000px){body .lfcrm-app{padding:22px 16px 30px!important}body .lfcrm-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:760px){
 body .lfcrm-app{margin-left:0!important;padding:70px 12px 24px!important;min-height:100vh}
 body .lfcrm-nav{width:min(290px,86vw)!important;transform:translateX(-100%);padding-top:64px!important}
 body.lfcrm-sidebar-open .lfcrm-nav{transform:translateX(0)}
 body .lfcrm-nav .lfcrm-sidebar-toggle{left:14px!important;top:14px!important}
 body .lfcrm-nav .lfcrm-notification-dropdown{left:12px!important;top:65px!important;width:calc(100vw - 24px)!important}
 body .lfcrm-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 body .lfcrm-cards>div{padding:14px!important;min-height:96px}
 body .lfcrm-cards b{font-size:24px}
 body .lfcrm-header{gap:10px;flex-direction:column}
 body .lfcrm-header h1{font-size:25px}
 body .lfcrm-panel{padding:14px!important}
 body .detail-grid,body .form-grid{grid-template-columns:1fr!important}
 body .lfcrm-history-grid,body .profile-grid,body .lfcrm-report-grid{grid-template-columns:1fr!important}
 body .lfcrm-chat-layout{grid-template-columns:1fr!important}
 body .lfcrm-toolbar>*{max-width:100%;min-width:0}
 body .lfcrm-toolbar input,body .lfcrm-toolbar select{flex:1 1 140px}
}
@media(prefers-reduced-motion:reduce){body .lfcrm-app,body .lfcrm-nav,body .lfcrm-btn{transition:none!important}}
